PageSourceSearch

https://homfort.ru/local/templates/homfort/scripts/bundle.js

js homfort.ru collected 2026-10-08 19:53:24 UTC 319,820 bytes, 13 lines download raw bytes

1import"./modernizr.js";import{c as _i,r as js,$ as ie}from"./scripts.js";import"./href.js";import"./anik-shop.js";const Ye=typeof window<"u",Ns=Ye&&!("onscroll"in window)||typeof navigator<"u"&&/(gle|ing|ro)bot|crawl|spider/i.test(navigator.userAgent),Hs=Ye&&window.devicePixelRatio>1,Hn={elements_selector:".lazy",container:Ns||Ye?document:null,threshold:300,thresholds:null,data_src:"src",data_srcset:"srcset",data_sizes:"sizes",data_bg:"bg",data_bg_hidpi:"bg-hidpi",data_bg_multi:"bg-multi",data_bg_multi_hidpi:"bg-multi-hidpi",data_bg_set:"bg-set",data_poster:"poster",class_applied:"applied",class_loading:"loading",class_loaded:"loaded",class_error:"error",class_entered:"entered",class_exited:"exited",unobserve_completed:!0,unobserve_entered:!1,cancel_on_exit:!0,callback_enter:null,callback_exit:null,callback_applied:null,callback_loading:null,callback_loaded:null,callback_error:null,callback_finish:null,callback_cancel:null,use_native:!1,restore_on_error:!1},$s=n=>Object.assign({},Hn,n),Ki=function(n,e){let t;const i="LazyLoad::Initialized",r=new n(e);try{t=new CustomEvent(i,{detail:{instance:r}})}catch{t=document.createEvent("CustomEvent"),t.initCustomEvent(i,!1,!1,{instance:r})}window.dispatchEvent(t)},$n=(n,e)=>{if(e)if(e.length)for(let t,i=0;t=e[i];i+=1)Ki(n,t);else Ki(n,e)},He="src",Fi="srcset",Ri="sizes",Vs="poster",St="llOriginalAttrs",qs="data",Bi="loading",Gs="loaded",Ws="applied",Vn="entered",ji="error",Ys="native",Xs="data-",Us="ll-status",xe=(n,e)=>n.getAttribute(Xs+e),qn=(n,e,t)=>{const i=Xs+e;t!==null?n.setAttribute(i,t):n.removeAttribute(i)},Ct=n=>xe(n,Us),st=(n,e)=>qn(n,Us,e),Kt=n=>st(n,null),Ni=n=>Ct(n)===null,Gn=n=>Ct(n)===Bi,Wn=n=>Ct(n)===ji,Hi=n=>Ct(n)===Ys,Yn=[Bi,Gs,Ws,ji],Xn=n=>Yn.indexOf(Ct(n))>=0,Xe=(n,e,t,i)=>{n&&typeof n=="function"&&(i===void 0?t===void 0?n(e):n(e,t):n(e,t,i))},ht=(n,e)=>{Ye&&e!==""&&n.classList.add(e)},ke=(n,e)=>{Ye&&e!==""&&n.classList.remove(e)},Un=n=>{n.llTempImage=document.createElement("IMG")},Kn=n=>{delete n.llTempImage},Ks=n=>n.llTempImage,Zt=(n,e)=>{if(!e)return;const t=e._observer;t&&t.unobserve(n)},Zn=n=>{n.disconnect()},Jn=(n,e,t)=>{e.unobserve_entered&&Zt(n,t)},$i=(n,e)=>{n&&(n.loadingCount+=e)},Qn=n=>{n&&(n.toLoadCount-=1)},Zs=(n,e)=>{n&&(n.toLoadCount=e)},er=n=>n.loadingCount>0,tr=n=>n.toLoadCount>0,Js=n=>{let e=[];for(let t,i=0;t=n.children[i];i+=1)t.tagName==="SOURCE"&&e.push(t);return e},Vi=(n,e)=>{const t=n.parentNode;t&&t.tagName==="PICTURE"&&Js(t).forEach(e)},Qs=(n,e)=>{Js(n).forEach(e)},Jt=[He],en=[He,Vs],wt=[He,Fi,Ri],tn=[qs],Qt=n=>!!n[St],sn=n=>n[St],nn=n=>delete n[St],ft=(n,e)=>{if(Qt(n))return;const t={};e.forEach(i=>{t[i]=n.getAttribute(i)}),n[St]=t},ir=n=>{Qt(n)||(n[St]={backgroundImage:n.style.backgroundImage})},tt=(n,e)=>{if(!Qt(n))return;const t=sn(n);e.forEach(i=>{((r,s,o)=>{o?r.setAttribute(s,o):r.removeAttribute(s)})(n,i,t[i])})},sr=n=>{if(!Qt(n))return;const e=sn(n);n.style.backgroundImage=e.backgroundImage},rn=(n,e,t)=>{ht(n,e.class_applied),st(n,Ws),t&&(e.unobserve_completed&&Zt(n,e),Xe(e.callback_applied,n,t))},on=(n,e,t)=>{ht(n,e.class_loading),st(n,Bi),t&&($i(t,1),Xe(e.callback_loading,n,t))},We=(n,e,t)=>{t&&n.setAttribute(e,t)},Zi=(n,e)=>{We(n,Ri,xe(n,e.data_sizes)),We(n,Fi,xe(n,e.data_srcset)),We(n,He,xe(n,e.data_src))},nr=(n,e)=>{Vi(n,t=>{ft(t,wt),Zi(t,e)}),ft(n,wt),Zi(n,e)},rr=(n,e)=>{ft(n,Jt),We(n,He,xe(n,e.data_src))},or=(n,e)=>{Qs(n,t=>{ft(t,Jt),We(t,He,xe(t,e.data_src))}),ft(n,en),We(n,Vs,xe(n,e.data_poster)),We(n,He,xe(n,e.data_src)),n.load()},ar=(n,e)=>{ft(n,tn),We(n,qs,xe(n,e.data_src))},lr=(n,e,t)=>{const i=xe(n,e.data_bg),r=xe(n,e.data_bg_hidpi),s=Hs&&r?r:i;s&&(n.style.backgroundImage=`url("${s}")`,Ks(n).setAttribute(He,s),on(n,e,t))},cr=(n,e,t)=>{const i=xe(n,e.data_bg_multi),r=xe(n,e.data_bg_multi_hidpi),s=Hs&&r?r:i;s&&(n.style.backgroundImage=s,rn(n,e,t))},dr=(n,e,t)=>{const i=xe(n,e.data_bg_set);if(!i)return;let r=i.split("|").map(s=>`image-set(${s})`);n.style.backgroundImage=r.join(),rn(n,e,t)},an={IMG:nr,IFRAME:rr,VIDEO:or,OBJECT:ar},ur=(n,e)=>{const t=an[n.tagName];t&&t(n,e)},fr=(n,e,t)=>{const i=an[n.tagName];i&&(i(n,e),on(n,e,t))},hr=["IMG","IFRAME","VIDEO","OBJECT"],pr=n=>hr.indexOf(n.tagName)>-1,ln=(n,e)=>{!e||er(e)||tr(e)||Xe(n.callback_finish,e)},Ji=(n,e,t)=>
1{n.addEventListener(e,t),n.llEvLisnrs[e]=t},gr=(n,e,t)=>{n.removeEventListener(e,t)},qi=n=>!!n.llEvLisnrs,mr=(n,e,t)=>{qi(n)||(n.llEvLisnrs={});const i=n.tagName==="VIDEO"?"loadeddata":"load";Ji(n,i,e),Ji(n,"error",t)},Oi=n=>{if(!qi(n))return;const e=n.llEvLisnrs;for(let t in e){const i=e[t];gr(n,t,i)}delete n.llEvLisnrs},cn=(n,e,t)=>{Kn(n),$i(t,-1),Qn(t),ke(n,e.class_loading),e.unobserve_completed&&Zt(n,t)},vr=(n,e,t,i)=>{const r=Hi(e);cn(e,t,i),ht(e,t.class_loaded),st(e,Gs),Xe(t.callback_loaded,e,i),r||ln(t,i)},br=(n,e,t,i)=>{const r=Hi(e);cn(e,t,i),ht(e,t.class_error),st(e,ji),Xe(t.callback_error,e,i),t.restore_on_error&&tt(e,wt),r||ln(t,i)},Mi=(n,e,t)=>{const i=Ks(n)||n;qi(i)||mr(i,r=>{vr(0,n,e,t),Oi(i)},r=>{br(0,n,e,t),Oi(i)})},Li=(n,e,t)=>{pr(n)?((i,r,s)=>{Mi(i,r,s),fr(i,r,s)})(n,e,t):((i,r,s)=>{Un(i),Mi(i,r,s),ir(i),lr(i,r,s),cr(i,r,s),dr(i,r,s)})(n,e,t)},yr=(n,e,t)=>{n.setAttribute("loading","lazy"),Mi(n,e,t),ur(n,e),st(n,Ys)},Qi=n=>{n.removeAttribute(He),n.removeAttribute(Fi),n.removeAttribute(Ri)},wr=n=>{Vi(n,e=>{Qi(e)}),Qi(n)},dn=n=>{Vi(n,e=>{tt(e,wt)}),tt(n,wt)},xr=n=>{Qs(n,e=>{tt(e,Jt)}),tt(n,en),n.load()},Sr=n=>{tt(n,Jt)},Cr=n=>{tt(n,tn)},Er={IMG:dn,IFRAME:Sr,VIDEO:xr,OBJECT:Cr},Tr=(n,e)=>{(t=>{const i=Er[t.tagName];i?i(t):sr(t)})(n),((t,i)=>{Ni(t)||Hi(t)||(ke(t,i.class_entered),ke(t,i.class_exited),ke(t,i.class_applied),ke(t,i.class_loading),ke(t,i.class_loaded),ke(t,i.class_error))})(n,e),Kt(n),nn(n)},Pr=(n,e,t,i)=>{t.cancel_on_exit&&Gn(n)&&n.tagName==="IMG"&&(Oi(n),wr(n),dn(n),ke(n,t.class_loading),$i(i,-1),Kt(n),Xe(t.callback_cancel,n,e,i))},Or=(n,e,t,i)=>{const r=Xn(n);st(n,Vn),ht(n,t.class_entered),ke(n,t.class_exited),Jn(n,t,i),Xe(t.callback_enter,n,e,i),r||Li(n,t,i)},Mr=(n,e,t,i)=>{Ni(n)||(ht(n,t.class_exited),Pr(n,e,t,i),Xe(t.callback_exit,n,e,i))},Lr=["IMG","IFRAME","VIDEO"],un=n=>n.use_native&&"loading"in HTMLImageElement.prototype,Ir=(n,e,t)=>{n.forEach(i=>{Lr.indexOf(i.tagName)!==-1&&yr(i,e,t)}),Zs(t,0)},Ar=n=>n.isIntersecting||n.intersectionRatio>0,kr=(n,e)=>{e.forEach(t=>{n.observe(t)})},zr=(n,e)=>{Zn(n),kr(n,e)},Dr=(n,e)=>{un(n)||(e._observer=new IntersectionObserver(t=>{((i,r,s)=>{i.forEach(o=>Ar(o)?Or(o.target,o,r,s):Mr(o.target,o,r,s))})(t,n,e)},(t=>({root:t.container===document?null:t.container,rootMargin:t.thresholds||t.threshold+"px"}))(n)))},fn=n=>Array.prototype.slice.call(n),Ht=n=>n.container.querySelectorAll(n.elements_selector),_r=n=>fn(n).filter(Ni),Fr=n=>Wn(n),Rr=n=>fn(n).filter(Fr),es=(n,e)=>_r(n||Ht(e)),Br=(n,e)=>{Rr(Ht(n)).forEach(t=>{ke(t,n.class_error),Kt(t)}),e.update()},jr=(n,e)=>{Ye&&(e._onlineHandler=()=>{Br(n,e)},window.addEventListener("online",e._onlineHandler))},Nr=n=>{Ye&&window.removeEventListener("online",n._onlineHandler)},vt=function(n,e){const t=$s(n);this._settings=t,this.loadingCount=0,Dr(t,this),jr(t,this),this.update(e)};vt.prototype={update:function(n){const e=this._settings,t=es(n,e);Zs(this,t.length),Ns?this.loadAll(t):un(e)?Ir(t,e,this):zr(this._observer,t)},destroy:function(){this._observer&&this._observer.disconnect(),Nr(this),Ht(this._settings).forEach(n=>{nn(n)}),delete this._observer,delete this._settings,delete this._onlineHandler,delete this.loadingCount,delete this.toLoadCount},loadAll:function(n){const e=this._settings;es(n,e).forEach(t=>{Zt(t,this),Li(t,e,this)})},restoreAll:function(){const n=this._settings;Ht(n).forEach(e=>{Tr(e,n)})}},vt.load=(n,e)=>{const t=$s(e);Li(n,t)},vt.resetStatus=n=>{Kt(n)},Ye&&$n(vt,window.lazyLoadOptions);var Hr={exports:{}},ii={exports:{}},ts;function $r(){return ts||(ts=1,function(n,e){(function(t,i){n.exports=i()})(_i,function(){var t=function(f,h){this.items=f,this.settings=h||{diacritics:!0}};t.prototype.tokenize=function(f){if(f=o(String(f||"").toLowerCase()),!f||!f.length)return[];var h,p,m,v,S=[],w=f.split(/ +/);for(h=0,p=w.length;h<p;h++){if(m=a(w[h]),this.settings.diacritics)for(v in c)c.hasOwnProperty(v)&&(m=m.replace(new RegExp(v,"g"),c[v]));S.push({string:w[h],regex:new RegExp(m,"i")})}return S},t.prototype.iterator=function(f,h){var p;l(f)?p=Array.prototype.forEach||function(m){for(var v=0,S=this.length;v<S;v++)m(this[v],v,this)}:p=function(m){for(var v in this)this.hasOwnProperty(v)&&m(this[v],v,this)},p.apply(f,[h])},t.prototype.getScoreFunction=function(f,h){var p,m,v,S,w;p=this,f=p.prepareSearch(f,h),v=f.tokens,m=f.options.fields,S=v.length,w=f.options.nesting;var y=function(P,M){var D,k;return!P||(P=String(P||""),k=P.search(M.regex),k===-1)?0:(D=M.string.length/P.length,k===0&&(D+=.5),D)},x=function(){var P=m.length;return P?P===1?function(M,D){return y(s(D,m[0],w),M)}:function(M,D){for(var k=0,B=0;k<P;k++)B+=y(s(D,m[k],w),M);return B/P}:function(){return 0}}();return S?S===1?function(P){return x(v[0],P)}:f.options.conjunction==="and"?function(P){for(var M,D=0,k=0;D<S;D++){if(M=x(v[D],P),M<=0)return 0;k+=M}return k/S}:function(P){for(var M=0,D=0;M<S;M++)D+=x(v[M],P);return D/S}:function(){return 0}},t.prototype.getSortFunction=function(f,h){var p,m,v,S,w,y,x,P,M,D,k;if(v=this,f=v.prepareSearch(f,h),k=!f.query&&h.sort_empty||h.sort,M=function(B,W){return B==="$score"?W.score:s(v.items[W.id],B,h.nesting)},w=[],k)for(p=0,m=k.length;p<m;p++)(f.query||k[p].field!=="$score")&&w.push(k[p]);if(f.query){for(D=!0,p=0,m=w.length;p<m;p++)if(w[p].field==="$score"){D=!1;break}D&&w.unshift({field:"$score",direction:"desc"})}else for(p=0,m=w.length;p<m;p++)if(w[p].field==="$score"){w.splice(p,1);break}for(P=[],p=0,m=w.length;p<m;p++)P.push(w[p].direction==="desc"?-1:1);return y=w.length,y?y===1?(S=w[0].field,x=P[0],function(B,W){return x*i(M(S,B),M(S,W))}):function(B,W){var _,I,L;for(_=0;_<y;_++)if(L=w[_].field,I=P[_]*i(M(L,B),M(L,W)),I)return I;return 0}:null},t.prototype.prepareSearch=function(f,h){if(typeof f=="object")return f;h=r({},h);var p=h.fields,m=h.sort,v=h.sort_empty;return p&&!l(p)&&(h.fields=[p]),m&&!l(m)&&(h.sort=[m]),v&&!l(v)&&(h.sort_empty=[v]),{options:h,query:String(f||"").toLowerCase(),tokens:this.tokenize(f),total:0,items:[]}},t.prototype.search=function(f,h){var p=this,m,v,S,w;return v=this.prepareSearch(f,h),h=v.options,f=v.query,w=h.score||p.get
1ScoreFunction(v),f.length?p.iterator(p.items,function(y,x){m=w(y),(h.filter===!1||m>0)&&v.items.push({score:m,id:x})}):p.iterator(p.items,function(y,x){v.items.push({score:1,id:x})}),S=p.getSortFunction(v,h),S&&v.items.sort(S),v.total=v.items.length,typeof h.limit=="number"&&(v.items=v.items.slice(0,h.limit)),v};var i=function(f,h){return typeof f=="number"&&typeof h=="number"?f>h?1:f<h?-1:0:(f=u(String(f||"")),h=u(String(h||"")),f>h?1:h>f?-1:0)},r=function(f,h){var p,m,v,S;for(p=1,m=arguments.length;p<m;p++)if(S=arguments[p],!!S)for(v in S)S.hasOwnProperty(v)&&(f[v]=S[v]);return f},s=function(f,h,p){if(!(!f||!h)){if(!p)return f[h];for(var m=h.split(".");m.length&&(f=f[m.shift()]););return f}},o=function(f){return(f+"").replace(/^\s+|\s+$|/g,"")},a=function(f){return(f+"").replace(/([.?*+^$[\]\\(){}|-])/g,"\\$1")},l=Array.isArray||typeof $<"u"&&$.isArray||function(f){return Object.prototype.toString.call(f)==="[object Array]"},c={a:"[aḀḁĂăÂâǍǎȺⱥȦȧẠạÄäÀàÁáĀāÃãÅåąĄÃąĄ]",b:"[b␢βΒB฿𐌁ᛒ]",c:"[cĆćĈĉČčĊċC̄c̄ÇçḈḉȻȼƇƈɕᴄCc]",d:"[dĎďḊḋḐḑḌḍḒḓḎḏĐđD̦d̦ƉɖƊɗƋƌᵭᶁᶑȡᴅDdð]",e:"[eÉéÈèÊêḘḙĚěĔĕẼẽḚḛẺẻĖėËëĒēȨȩĘęᶒɆɇȄȅẾếỀềỄễỂểḜḝḖḗḔḕȆȇẸẹỆệⱸᴇEeɘǝƏƐε]",f:"[fƑƒḞḟ]",g:"[gɢ₲ǤǥĜĝĞğĢģƓɠĠġ]",h:"[hĤĥĦħḨḩẖẖḤḥḢḣɦʰǶƕ]",i:"[iÍíÌìĬĭÎîǏǐÏïḮḯĨĩĮįĪīỈỉȈȉȊȋỊịḬḭƗɨɨ̆ᵻᶖİiIıɪIi]",j:"[jȷĴĵɈɉʝɟʲ]",k:"[kƘƙꝀꝁḰḱǨǩḲḳḴḵκϰ₭]",l:"[lŁłĽľĻļĹĺḶḷḸḹḼḽḺḻĿŀȽƚⱠⱡⱢɫɬᶅɭȴʟLl]",n:"[nŃńǸǹŇňÑñṄṅŅņṆṇṊṋṈṉN̈n̈ƝɲȠƞᵰᶇɳȵɴNnŊŋ]",o:"[oØøÖöÓóÒòÔôǑǒŐőŎŏȮȯỌọƟɵƠơỎỏŌōÕõǪǫȌȍՕօ]",p:"[pṔṕṖṗⱣᵽƤƥᵱ]",q:"[qꝖꝗʠɊɋꝘꝙq̃]",r:"[rŔŕɌɍŘřŖŗṘṙȐȑȒȓṚṛⱤɽ]",s:"[sŚśṠṡṢṣꞨꞩŜŝŠšŞşȘșS̈s̈]",t:"[tŤťṪṫŢţṬṭƮʈȚțṰṱṮṯƬƭ]",u:"[uŬŭɄʉỤụÜüÚúÙùÛûǓǔŰűŬŭƯưỦủŪūŨũŲųȔȕ∪]",v:"[vṼṽṾṿƲʋꝞꝟⱱʋ]",w:"[wẂẃẀẁŴŵẄẅẆẇẈẉ]",x:"[xẌẍẊẋχ]",y:"[yÝýỲỳŶŷŸÿỸỹẎẏỴỵɎɏƳƴ]",z:"[zŹźẐẑŽžŻżẒẓẔẕƵƶ]"},u=function(){var f,h,p,m,v="",S={};for(p in c)if(c.hasOwnProperty(p))for(m=c[p].substring(2,c[p].length-1),v+=m,f=0,h=m.length;f<h;f++)S[m.charAt(f)]=p;var w=new RegExp("["+v+"]","g");return function(y){return y.replace(w,function(x){return S[x]}).toLowerCase()}}();return t})}(ii)),ii.exports}var si={exports:{}},is;function Vr(){return is||(is=1,function(n,e){(function(t,i){n.exports=i()})(_i,function(){var t={};t.mixin=function(r){r.plugins={},r.prototype.initializePlugins=function(s){var o,a,l,c=this,u=[];if(c.plugins={names:[],settings:{},requested:{},loaded:{}},i.isArray(s))for(o=0,a=s.length;o<a;o++)typeof s[o]=="string"?u.push(s[o]):(c.plugins.settings[s[o].name]=s[o].options,u.push(s[o].name));else if(s)for(l in s)s.hasOwnProperty(l)&&(c.plugins.settings[l]=s[l],u.push(l));for(;u.length;)c.require(u.shift())},r.prototype.loadPlugin=function(s){var o=this,a=o.plugins,l=r.plugins[s];if(!r.plugins.hasOwnProperty(s))throw new Error('Unable to find "'+s+'" plugin');a.requested[s]=!0,a.loaded[s]=l.fn.apply(o,[o.plugins.settings[s]||{}]),a.names.push(s)},r.prototype.require=function(s){var o=this,a=o.plugins;if(!o.plugins.loaded.hasOwnProperty(s)){if(a.requested[s])throw new Error('Plugin has circular dependency ("'+s+'")');o.loadPlugin(s)}return a.loaded[s]},r.define=function(s,o){r.plugins[s]={name:s,fn:o}}};var i={isArray:Array.isArray||function(r){return Object.prototype.toString.call(r)==="[object Array]"}};return t})}(si)),si.exports}(function(n,e){(function(t,i){n.exports=i(js(),$r(),Vr())})(_i,function(t,i,r){var s=function(d,g){if(!(typeof g=="string"&&!g.length)){var b=typeof g=="string"?new RegExp(g,"i"):g,C=function(T){var E=0;if(T.nodeType===3){var O=T.data.search(b);if(O>=0&&T.data.length>0){var V=T.data.match(b),z=document.createElement("span");z.className="highlight";var R=T.splitText(O);R.splitText(V[0].length);var G=R.cloneNode(!0);z.appendChild(G),R.parentNode.replaceChild(z,R),E=1}}else if(T.nodeType===1&&T.childNodes&&!/(script|style)/i.test(T.tagName)&&(T.className!=="highlight"||T.tagName!=="SPAN"))for(var se=0;se<T.childNodes.length;++se)se+=C(T.childNodes[se]);return E};return d.each(function(){C(this)})}};t.fn.removeHighlight=function(){return this.find("span.highlight").each(function(){this.parentNode.firstChild.nodeName;var d=this.parentNode;d.replaceChild(this.firstChild,this),d.normalize()}).end()};var o=function(){};o.prototype={on:function(d,g){this._events=this._events||{},this._events[d]=this._events[d]||[],this._events[d].push(g)},off:function(d,g){var b=arguments.length;if(b===0)return delete this._events;if(b===1)return delete this._events[d];this._events=this._events||{},d in this._events&&this._events[d].splice(this._events[d].indexOf(g),1)},trigger:function(d){if(this._events=this._events||{},d in this._events)for(var g=0;g<this._events[d].length;g++)this._events[d][g].apply(this,Array.prototype.slice.call(arguments,1
1))}},o.mixin=function(d){for(var g=["on","off","trigger"],b=0;b<g.length;b++)d.prototype[g[b]]=o.prototype[g[b]]};var a=/Mac/.test(navigator.userAgent),l=65,c=13,u=27,f=37,h=38,p=80,m=39,v=40,S=78,w=8,y=46,x=16,P=a?91:17,M=a?18:17,D=9,k=1,B=2,W=!/android/i.test(window.navigator.userAgent)&&!!document.createElement("input").validity,_=function(d){return typeof d<"u"},I=function(d){return typeof d>"u"||d===null?null:typeof d=="boolean"?d?"1":"0":d+""},L=function(d){return(d+"").replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")},A={};A.before=function(d,g,b){var C=d[g];d[g]=function(){return b.apply(d,arguments),C.apply(d,arguments)}},A.after=function(d,g,b){var C=d[g];d[g]=function(){var T=C.apply(d,arguments);return b.apply(d,arguments),T}};var F=function(d){var g=!1;return function(){g||(g=!0,d.apply(this,arguments))}},q=function(d,g){var b;return function(){var C=this,T=arguments;window.clearTimeout(b),b=window.setTimeout(function(){d.apply(C,T)},g)}},N=function(d,g,b){var C,T=d.trigger,E={};d.trigger=function(){var O=arguments[0];if(g.indexOf(O)!==-1)E[O]=arguments;else return T.apply(d,arguments)},b.apply(d,[]),d.trigger=T;for(C in E)E.hasOwnProperty(C)&&T.apply(d,E[C])},J=function(d,g,b,C){d.on(g,b,function(T){for(var E=T.target;E&&E.parentNode!==d[0];)E=E.parentNode;return T.currentTarget=E,C.apply(this,[T])})},Y=function(d){var g={};if("selectionStart"in d)g.start=d.selectionStart,g.length=d.selectionEnd-g.start;else if(document.selection){d.focus();var b=document.selection.createRange(),C=document.selection.createRange().text.length;b.moveStart("character",-d.value.length),g.start=b.text.length-C,g.length=C}return g},U=function(d,g,b){var C,T,E={};if(b)for(C=0,T=b.length;C<T;C++)E[b[C]]=d.css(b[C]);else E=d.css();g.css(E)},ue=function(d,g){return d?(ne.$testInput||(ne.$testInput=t("<span />").css({position:"absolute",top:-99999,left:-99999,width:"auto",padding:0,whiteSpace:"pre"}).appendTo("body")),ne.$testInput.text(d),U(g,ne.$testInput,["letterSpacing","fontSize","fontFamily","fontWeight","textTransform"]),ne.$testInput.width()):0},Fe=function(d){var g=null,b=function(C,T){var E,O,V,z,R,G,se,K;C=C||window.event||{},T=T||{},!(C.metaKey||C.altKey)&&(!T.force&&d.data("grow")===!1||(E=d.val(),C.type&&C.type.toLowerCase()==="keydown"&&(O=C.keyCode,V=O>=48&&O<=57||O>=65&&O<=90||O>=96&&O<=111||O>=186&&O<=222||O===32,O===y||O===w?(K=Y(d[0]),K.length?E=E.substring(0,K.start)+E.substring(K.start+K.length):O===w&&K.start?E=E.substring(0,K.start-1)+E.substring(K.start+1):O===y&&typeof K.start<"u"&&(E=E.substring(0,K.start)+E.substring(K.start+1))):V&&(G=C.shiftKey,se=String.fromCharCode(C.keyCode),G?se=se.toUpperCase():se=se.toLowerCase(),E+=se)),z=d.attr("placeholder"),!E&&z&&(E=z),R=ue(E,d)+4,R!==g&&(g=R,d.width(R),d.triggerHandler("resize"))))};d.on("keydown keyup update blur",b),b()},nt=function(d){var g=document.createElement("div");return g.appendChild(d.cloneNode(!0)),g.innerHTML},Nn=function(d,g){g||(g={});var b="Selectize";console.error(b+": "+d),g.explanation&&(console.group&&console.group(),console.error(g.explanation),console.group&&console.groupEnd())},ne=function(d,g){var b,C,T,E,O=this;E=d[0],E.selectize=O;var V=window.getComputedStyle&&window.getComputedStyle(E,null);if(T=V?V.getPropertyValue("direction"):E.currentStyle&&E.currentStyle.direction,T=T||d.parents("[dir]:first").attr("dir")||"",t.extend(O,{order:0,settings:g,$input:d,tabIndex:d.attr("tabindex")||"",tagType:E.tagName.toLowerCase()==="select"?k:B,rtl:/rtl/i.test(T),eventNS:".selectize"+ ++ne.count,highlightedValue:null,isBlurring:!1,isOpen:!1,isDisabled:!1,isRequired:d.is("[required]"),isInvalid:!1,isLocked:!1,isFocused:!1,isInputHidden:!1,isSetup:!1,isShiftDown:!1,isCmdDown:!1,isCtrlDown:!1,ignoreFocus:!1,ignoreBlur:!1,ignoreHover:!1,hasOptions:!1,currentResults:null,lastValue:"",caretPos:0,loading:0,loadedSearches:{},$activeOption:null,$activeItems:[],optgroups:{},options:{},userOptions:{},items:[],renderCache:{},onSearchChange:g.loadThrottle===null?O.onSearchChange:q(O.onSearchChange,g.loadThrottle)}),O.sifter=new i(this.options,{diacritics:g.diacritics}),O.settings.options){for(b=0,C=O.settings.options.length;b<C;b++)O.registerOption(O.settings.options[b]);delete O.settings.options}if(O.settings.optgroups){for(b=0,C=O.settings.optgroups.length;b<C;b++)O.registerOptionGroup(O.settings.optgroups[b]);delete O.settings.optgroups}O.settings.mode=O.settings.mode||(O.settings.maxItems===1?"single":"multi"),t
1ypeof O.settings.hideSelected!="boolean"&&(O.settings.hideSelected=O.settings.mode==="multi"),O.initializePlugins(O.settings.plugins),O.setupCallbacks(),O.setupTemplates(),O.setup()};return o.mixin(ne),typeof r<"u"?r.mixin(ne):Nn("Dependency MicroPlugin is missing",{explanation:'Make sure you either: (1) are using the "standalone" version of Selectize, or (2) require MicroPlugin before you load Selectize.'}),t.extend(ne.prototype,{setup:function(){var d=this,g=d.settings,b=d.eventNS,C=t(window),T=t(document),E=d.$input,O,V,z,R,G,se,K,re,Q,oe;if(K=d.settings.mode,re=E.attr("class")||"",O=t("<div>").addClass(g.wrapperClass).addClass(re).addClass(K),V=t("<div>").addClass(g.inputClass).addClass("items").appendTo(O),z=t('<input type="text" autocomplete="off" />').appendTo(V).attr("tabindex",E.is(":disabled")?"-1":d.tabIndex),se=t(g.dropdownParent||O),R=t("<div>").addClass(g.dropdownClass).addClass(K).hide().appendTo(se),G=t("<div>").addClass(g.dropdownContentClass).appendTo(R),(oe=E.attr("id"))&&(z.attr("id",oe+"-selectized"),t("label[for='"+oe+"']").attr("for",oe+"-selectized")),d.settings.copyClassesToDropdown&&R.addClass(re),O.css({width:E[0].style.width}),d.plugins.names.length&&(Q="plugin-"+d.plugins.names.join(" plugin-"),O.addClass(Q),R.addClass(Q)),(g.maxItems===null||g.maxItems>1)&&d.tagType===k&&E.attr("multiple","multiple"),d.settings.placeholder&&z.attr("placeholder",g.placeholder),!d.settings.splitOn&&d.settings.delimiter){var ge=d.settings.delimiter.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&");d.settings.splitOn=new RegExp("\\s*"+ge+"+\\s*")}E.attr("autocorrect")&&z.attr("autocorrect",E.attr("autocorrect")),E.attr("autocapitalize")&&z.attr("autocapitalize",E.attr("autocapitalize")),z[0].type=E[0].type,d.$wrapper=O,d.$control=V,d.$control_input=z,d.$dropdown=R,d.$dropdown_content=G,R.on("mouseenter mousedown click","[data-disabled]>[data-selectable]",function(H){H.stopImmediatePropagation()}),R.on("mouseenter","[data-selectable]",function(){return d.onOptionHover.apply(d,arguments)}),R.on("mousedown click","[data-selectable]",function(){return d.onOptionSelect.apply(d,arguments)}),J(V,"mousedown","*:not(input)",function(){return d.onItemSelect.apply(d,arguments)}),Fe(z),V.on({mousedown:function(){return d.onMouseDown.apply(d,arguments)},click:function(){return d.onClick.apply(d,arguments)}}),z.on({mousedown:function(H){H.stopPropagation()},keydown:function(){return d.onKeyDown.apply(d,arguments)},keyup:function(){return d.onKeyUp.apply(d,arguments)},keypress:function(){return d.onKeyPress.apply(d,arguments)},resize:function(){d.positionDropdown.apply(d,[])},blur:function(){return d.onBlur.apply(d,arguments)},focus:function(){return d.ignoreBlur=!1,d.onFocus.apply(d,arguments)},paste:function(){return d.onPaste.apply(d,arguments)}}),T.on("keydown"+b,function(H){d.isCmdDown=H[a?"metaKey":"ctrlKey"],d.isCtrlDown=H[a?"altKey":"ctrlKey"],d.isShiftDown=H.shiftKey}),T.on("keyup"+b,function(H){H.keyCode===M&&(d.isCtrlDown=!1),H.keyCode===x&&(d.isShiftDown=!1),H.keyCode===P&&(d.isCmdDown=!1)}),T.on("mousedown"+b,function(H){if(d.isFocused){if(H.target===d.$dropdown[0]||H.target.parentNode===d.$dropdown[0])return!1;!d.$control.has(H.target).length&&H.target!==d.$control[0]&&d.blur(H.target)}}),C.on(["scroll"+b,"resize"+b].join(" "),function(){d.isOpen&&d.positionDropdown.apply(d,arguments)}),C.on("mousemove"+b,function(){d.ignoreHover=!1}),this.revertSettings={$children:E.children().detach(),tabindex:E.attr("tabindex")},E.attr("tabindex",-1).hide().after(d.$wrapper),t.isArray(g.items)&&(d.setValue(g.items),delete g.items),W&&E.on("invalid"+b,function(H){H.preventDefault(),d.isInvalid=!0,d.refreshState()}),d.updateOriginalInput(),d.refreshItems(),d.refreshState(),d.updatePlaceholder(),d.isSetup=!0,E.is(":disabled")&&d.disable(),d.on("change",this.onChange),E.data("selectize",d),E.addClass("selectized"),d.trigger("initialize"),g.preload===!0&&d.onSearchChange("")},setupTemplates:function(){var d=this,g=d.settings.labelField,b=d.settings.optgroupLabelField,C={optgroup:function(T){return'<div class="optgroup">'+T.html+"</div>"},optgroup_header:function(T,E){return'<div class="optgroup-header">'+E(T[b])+"</div>"},option:function(T,E){return'<div class="option">'+E(T[g])+"</div>"},item:function(T,E){return'<div class="item">'+E(T[g])+"</div>"},option_create:function(T,E){return'<div class="create">Add <strong>'+E(T.input)+"</strong>&hellip;</div>"}};d.settings.render=t.extend({},C,d.settings.render)},setupCallbacks:function(){var d,g,b={initialize:"onInitialize",change:"onChange",item_add:"onItemAdd",item_remove:"onItemRemove",clear:"onClear",option_add:"onOptionAdd",option_remove:"onOptionRemove",option_clear:"onOptionClear",optgroup_add:"onOptionGroupAdd",optgroup_remove:"onOptionGroupRemove",optgroup_clear:"onOptionGroupClear",dropdown_open:"onDropdownOpen",dropdown_close:"onDropdownClose",type:"onType",load:"onLoad",focus:"onFocus",blur:"onBlur"};for(d in b)b.hasOwnProperty(d)&&(g=this.settings[b[d]],g&&this.on(d,g))},onClick:function(d){var g=this;(!g.isFocused||!g.isOpen)&&(g.focus(),d.preventDefault())},onMouseDown:function(d){var g=this,b=d.isDefaultPrevented();if(t(d.target),g.isFocused){if(d.target!==g.$control_input[0])return g.settings.mode==="single"?g.isOpen?g.close():g.open():b||g.setActiveItem(null),!1}else b||window.setTimeout(function(){g.focus()},0)},onChange:function(){this.$input.trigger("change")},onPaste:function(d){var g=this;
1if(g.isFull()||g.isInputHidden||g.isLocked){d.preventDefault();return}g.settings.splitOn&&setTimeout(function(){var b=g.$control_input.val();if(b.match(g.settings.splitOn))for(var C=t.trim(b).split(g.settings.splitOn),T=0,E=C.length;T<E;T++)g.createItem(C[T])},0)},onKeyPress:function(d){if(this.isLocked)return d&&d.preventDefault();var g=String.fromCharCode(d.keyCode||d.which);if(this.settings.create&&this.settings.mode==="multi"&&g===this.settings.delimiter)return this.createItem(),d.preventDefault(),!1},onKeyDown:function(d){d.target,this.$control_input[0];var g=this;if(g.isLocked){d.keyCode!==D&&d.preventDefault();return}switch(d.keyCode){case l:if(g.isCmdDown){g.selectAll();return}break;case u:g.isOpen&&(d.preventDefault(),d.stopPropagation(),g.close());return;case S:if(!d.ctrlKey||d.altKey)break;case v:if(!g.isOpen&&g.hasOptions)g.open();else if(g.$activeOption){g.ignoreHover=!0;var b=g.getAdjacentOption(g.$activeOption,1);b.length&&g.setActiveOption(b,!0,!0)}d.preventDefault();return;case p:if(!d.ctrlKey||d.altKey)break;case h:if(g.$activeOption){g.ignoreHover=!0;var C=g.getAdjacentOption(g.$activeOption,-1);C.length&&g.setActiveOption(C,!0,!0)}d.preventDefault();return;case c:g.isOpen&&g.$activeOption&&(g.onOptionSelect({currentTarget:g.$activeOption}),d.preventDefault());return;case f:g.advanceSelection(-1,d);return;case m:g.advanceSelection(1,d);return;case D:g.settings.selectOnTab&&g.isOpen&&g.$activeOption&&(g.onOptionSelect({currentTarget:g.$activeOption}),g.isFull()||d.preventDefault()),g.settings.create&&g.createItem()&&d.preventDefault();return;case w:case y:g.deleteSelection(d);return}if((g.isFull()||g.isInputHidden)&&!(a?d.metaKey:d.ctrlKey)){d.preventDefault();return}},onKeyUp:function(d){var g=this;if(g.isLocked)return d&&d.preventDefault();var b=g.$control_input.val()||"";g.lastValue!==b&&(g.lastValue=b,g.onSearchChange(b),g.refreshOptions(),g.trigger("type",b))},onSearchChange:function(d){var g=this,b=g.settings.load;b&&(g.loadedSearches.hasOwnProperty(d)||(g.loadedSearches[d]=!0,g.load(function(C){b.apply(g,[d,C])})))},onFocus:function(d){var g=this,b=g.isFocused;if(g.isDisabled)return g.blur(),d&&d.preventDefault(),!1;g.ignoreFocus||(g.isFocused=!0,g.settings.preload==="focus"&&g.onSearchChange(""),b||g.trigger("focus"),g.$activeItems.length||(g.showInput(),g.setActiveItem(null),g.refreshOptions(!!g.settings.openOnFocus)),g.refreshState())},onBlur:function(d,g){var b=this;if(b.isFocused&&(b.isFocused=!1,!b.ignoreFocus)){if(!b.ignoreBlur&&document.activeElement===b.$dropdown_content[0]){b.ignoreBlur=!0,b.onFocus(d);return}var C=function(){b.close(),b.setTextboxValue(""),b.setActiveItem(null),b.setActiveOption(null),b.setCaret(b.items.length),b.refreshState(),g&&g.focus&&g.focus(),b.isBlurring=!1,b.ignoreFocus=!1,b.trigger("blur")};b.isBlurring=!0,b.ignoreFocus=!0,b.settings.create&&b.settings.createOnBlur?b.createItem(null,!1,C):C()}},onOptionHover:function(d){this.ignoreHover||this.setActiveOption(d.currentTarget,!1)},onOptionSelect:function(d){var g,b,C=this;d.preventDefault&&(d.preventDefault(),d.stopPropagation()),b=t(d.currentTarget),b.hasClass("create")?C.createItem(null,function(){C.settings.closeAfterSelect&&C.close()}):(g=b.attr("data-value"),typeof g<"u"&&(C.lastQuery=null,C.setTextboxValue(""),C.addItem(g),C.settings.closeAfterSelect?C.close():!C.settings.hideSelected&&d.type&&/mouse/.test(d.type)&&C.setActiveOption(C.getOption(g))))},onItemSelect:function(d){var g=this;g.isLocked||g.settings.mode==="multi"&&(d.preventDefault(),g.setActiveItem(d.currentTarget,d))},load:function(d){var g=this,b=g.$wrapper.addClass(g.settings.loadingClass);g.loading++,d.apply(g,[function(C){g.loading=Math.max(g.loading-1,0),C&&C.length&&(g.addOption(C),g.refreshOptions(g.isFocused&&!g.isInputHidden)),g.loading||b.removeClass(g.settings.loadingClass),g.trigger("load",C)}])},setTextboxValue:function(d){var g=this.$control_input,b=g.val()!==d;b&&(g.val(d).triggerHandler("update"),this.lastValue=d)},getValue:function(){return this.tagType===k&&this.$input.attr("multiple")?this.items:this.items.join(this.settings.delimiter)},setValue:function(d,g){var b=g?[]:["change"];N(this,b,function(){this.clear(g),this.addItems(d,g)})},setActiveItem:function(d,g){var b=this,C,T,E,O,V,z,R,G;if(b.settings.mode!=="single"){if(d=t(d),!d.length){t(b.$activeItems).removeClass("active"),b.$activeItems=[],b.isFocused&&b.showInput();return}if(C=g&&g.type.toLowerCase(),C==="mousedown"&&b.isShiftDown&&b.$activeItems.length){for(G=b.$control.children(".active:last"),O=Array.prototype.indexOf.apply(b.$control[0].childNodes,[G[0]]),V=Array.prototype.indexOf.apply(b.$control[0].childNodes,[d[0]]),O>V&&(R=O,O=V,V=R),T=O;T<=V;T++)z=b.$control[0].childNodes[T],b.$activeItems.indexOf(z)===-1&&(t(z).addClass("active"),b.$activeItems.push(z));g.preventDefault()}else C==="mousedown"&&b.isCtrlDown||C==="keydown"&&this.isShiftDown?d.hasClass("active")?(E=b.$activeItems.indexOf(d[0]),b.$activeItems.splice(E,1),d.removeClass("active")):b.$activeItems.push(d.addClass("active")[0]):(t(b.$activeItems).removeClass("active"),b.$activeItems=[d.addClass("active")[0]]);b.hideInput(),this.isFocused||b.focus()}}
1,setActiveOption:function(d,g,b){var C,T,E,O,V,z=this;z.$activeOption&&z.$activeOption.removeClass("active"),z.$activeOption=null,d=t(d),d.length&&(z.$activeOption=d.addClass("active"),(g||!_(g))&&(C=z.$dropdown_content.height(),T=z.$activeOption.outerHeight(!0),g=z.$dropdown_content.scrollTop()||0,E=z.$activeOption.offset().top-z.$dropdown_content.offset().top+g,O=E,V=E-C+T,E+T>C+g?z.$dropdown_content.stop().animate({scrollTop:V},b?z.settings.scrollDuration:0):E<g&&z.$dropdown_content.stop().animate({scrollTop:O},b?z.settings.scrollDuration:0)))},selectAll:function(){var d=this;d.settings.mode!=="single"&&(d.$activeItems=Array.prototype.slice.apply(d.$control.children(":not(input)").addClass("active")),d.$activeItems.length&&(d.hideInput(),d.close()),d.focus())},hideInput:function(){var d=this;d.setTextboxValue(""),d.$control_input.css({opacity:0,position:"absolute",left:d.rtl?1e4:-1e4}),d.isInputHidden=!0},showInput:function(){this.$control_input.css({opacity:1,position:"relative",left:0}),this.isInputHidden=!1},focus:function(){var d=this;d.isDisabled||(d.ignoreFocus=!0,d.$control_input[0].focus(),window.setTimeout(function(){d.ignoreFocus=!1,d.onFocus()},0))},blur:function(d){this.$control_input[0].blur(),this.onBlur(null,d)},getScoreFunction:function(d){return this.sifter.getScoreFunction(d,this.get
1SearchOptions())},getSearchOptions:function(){var d=this.settings,g=d.sortField;return typeof g=="string"&&(g=[{field:g}]),{fields:d.searchField,conjunction:d.searchConjunction,sort:g,nesting:d.nesting}},search:function(d){var g,b,C,T=this,E=T.settings,O=this.getSearchOptions();if(E.score&&(C=T.settings.score.apply(this,[d]),typeof C!="function"))throw new Error('Selectize "score" setting must be a function that returns a function');if(d!==T.lastQuery?(T.lastQuery=d,b=T.sifter.search(d,t.extend(O,{score:C})),T.currentResults=b):b=t.extend(!0,{},T.currentResults),E.hideSelected)for(g=b.items.length-1;g>=0;g--)T.items.indexOf(I(b.items[g].id))!==-1&&b.items.splice(g,1);return b},refreshOptions:function(d){var g,b,C,T,E,O,V,z,R,G,se,K,re,Q,oe,ge;typeof d>"u"&&(d=!0);var H=this,$e=t.trim(H.$control_input.val()),fe=H.search($e),Re=H.$dropdown_content,pt=H.$activeOption&&I(H.$activeOption.attr("data-value"));for(T=fe.items.length,typeof H.settings.maxOptions=="number"&&(T=Math.min(T,H.settings.maxOptions)),E={},O=[],g=0;g<T;g++)for(V=H.options[fe.items[g].id],z=H.render("option",V),R=V[H.settings.optgroupField]||"",G=t.isArray(R)?R:[R],b=0,C=G&&G.length;b<C;b++)R=G[b],H.optgroups.hasOwnProperty(R)||(R=""),E.hasOwnProperty(R)||(E[R]=document.createDocumentFragment(),O.push(R)),E[R].appendChild(z);for(this.settings.lockOptgroupOrder&&O.sort(function(ei,ce){var me=H.optgroups[ei].$order||0,Se=H.optgroups[ce].$order||0;return me-Se}),se=document.createDocumentFragment(),g=0,T=O.length;g<T;g++)R=O[g],H.optgroups.hasOwnProperty(R)&&E[R].childNodes.length?(K=document.createDocumentFragment(),K.appendChild(H.render("optgroup_header",H.optgroups[R])),K.appendChild(E[R]),se.appendChild(H.render("optgroup",t.extend({},H.optgroups[R],{html:nt(K),dom:K})))):se.appendChild(E[R]);if(Re.html(se),H.settings.highlight&&(Re.removeHighlight(),fe.query.length&&fe.tokens.length))for(g=0,T=fe.tokens.length;g<T;g++)s(Re,fe.tokens[g].regex);if(!H.settings.hideSelected)for(g=0,T=H.items.length;g<T;g++)H.getOption(H.items[g]).addClass("selected");re=H.canCreate($e),re&&(Re.prepend(H.render("option_create",{input:$e})),ge=t(Re[0].childNodes[0])),H.hasOptions=fe.items.length>0||re,H.hasOptions?(fe.items.length>0?(oe=pt&&H.getOption(pt),oe&&oe.length?Q=oe:H.settings.mode==="single"&&H.items.length&&(Q=H.getOption(H.items[0])),(!Q||!Q.length)&&(ge&&!H.settings.addPrecedence?Q=H.getAdjacentOption(ge,1):Q=Re.find("[data-selectable]:first"))):Q=ge,H.setActiveOption(Q),d&&!H.isOpen&&H.open()):(H.setActiveOption(null),d&&H.isOpen&&H.close())},addOption:function(d){var g,b,C,T=this;if(t.isArray(d)){for(g=0,b=d.length;g<b;g++)T.addOption(d[g]);return}(C=T.registerOption(d))&&(T.userOptions[C]=!0,T.lastQuery=null,T.trigger("option_add",C,d))},registerOption:function(d){var g=I(d[this.settings.valueField]);return typeof g>"u"||g===null||this.options.hasOwnProperty(g)?!1:(d.$order=d.$order||++this.order,this.options[g]=d,g)},registerOptionGroup:function(d){var g=I(d[this.settings.optgroupValueField]);return g?(d.$order=d.$order||++this.order,this.optgroups[g]=d,g):!1},addOptionGroup:function(d,g){g[this.settings.optgroupValueField]=d,(d=this.registerOptionGroup(g))&&this.trigger("optgroup_add",d,g)},removeOptionGroup:function(d){this.optgroups.hasOwnProperty(d)&&(delete this.optgroups[d],this.renderCache={},this.trigger("optgroup_remove",d))},clearOptionGroups:function(){this.optgroups={},this.renderCache={},this.trigger("optgroup_clear")},updateOption:function(d,g){var b=this,C,T,E,O,V,z,R;if(d=I(d),E=I(g[b.settings.valueField]),d!==null&&b.options.hasOwnProperty(d)){if(typeof E!="string")throw new Error("Value must be set in option data");R=b.options[d].$order,E!==d&&(delete b.options[d],O=b.items.indexOf(d),O!==-1&&b.items.splice(O,1,E)),g.$order=g.$order||R,b.options[E]=g,V=b.renderCache.item,z=b.renderCache.option,V&&(delete V[d],delete V[E]),z&&(delete z[d],delete z[E]),b.items.indexOf(E)!==-1&&(C=b.getItem(d),T=t(b.render("item",g)),C.hasClass("active")&&T.addClass("active"),C.replaceWith(T)),b.lastQuery=null,b.isOpen&&b.refreshOptions(!1)}},removeOption:function(d,g){var b=this;d=I(d);var C=b.renderCache.item,T=b.renderCache.option;C&&delete C[d],T&&delete T[d],delete b.userOptions[d],delete b.options[d],b.lastQuery=null,b.trigger("option_remove",d),b.removeItem(d,g)},clearOptions:function(){var d=this;d.loadedSearches={},d.userOptions={},d.renderCache={};var g=d.options;t.each(d.options,function(b,C){d.items.indexOf(b)==-1&&delete g[b]}),d.options=d.sifter.items=g,d.lastQuery=null,d.trigger("option_clear")},getOption:function(d){return this.getElementWithValue(d,this.$dropdown_content.find("[data-selectable]"))},getAdjacentOption:function(d,g){var b=this.$dropdown.find("[data-selectable]"),C=b.index(d)+g;return C>=0&&C<b.length?b.eq(C):t()},getElementWithValue:function(d,g){if(d=I(d),typeof d<"u"&&d!==null){for(var b=0,C=g.length;b<C;b++)if(g[b].getAttribute("data-value")===d)return t(g[b])}return t()},getItem:function(d){return this.getElementWithValue(d,this.$control.children())},addItems:function(d,g){this.buffer=document.createDocumentFragment();for(var b=this.$control[0].childNodes,C=0;C<b.length;C++)this.buffer.appendChild(b[C]);for(var T=t.isArray(d)?d:[d],C=0,E=T.length;C<E;C++)this.isPending=C<E-1,this.addItem(T[C],g);var O=this.$control[0];O.insertBefore(this.buffer,O.firstChild),this.buffer=null},addItem:function(d,g){var b=g?[]:["change"];N(this,b,function(){var C,T,E,O=this,V=O.settings.mode,z,R;if(d=I(d),O.items.indexOf(d)!==-1){V==="single"&&O.close();return}
1O.options.hasOwnProperty(d)&&(V==="single"&&O.clear(g),!(V==="multi"&&O.isFull())&&(C=t(O.render("item",O.options[d])),R=O.isFull(),O.items.splice(O.caretPos,0,d),O.insertAtCaret(C),(!O.isPending||!R&&O.isFull())&&O.refreshState(),O.isSetup&&(E=O.$dropdown_content.find("[data-selectable]"),O.isPending||(T=O.getOption(d),z=O.getAdjacentOption(T,1).attr("data-value"),O.refreshOptions(O.isFocused&&V!=="single"),z&&O.setActiveOption(O.getOption(z))),!E.length||O.isFull()?O.close():O.isPending||O.positionDropdown(),O.updatePlaceholder(),O.trigger("item_add",d,C),O.isPending||O.updateOriginalInput({silent:g}))))})},removeItem:function(d,g){var b=this,C,T,E;C=d instanceof t?d:b.getItem(d),d=I(C.attr("data-value")),T=b.items.indexOf(d),T!==-1&&(C.remove(),C.hasClass("active")&&(E=b.$activeItems.indexOf(C[0]),b.$activeItems.splice(E,1)),b.items.splice(T,1),b.lastQuery=null,!b.settings.persist&&b.userOptions.hasOwnProperty(d)&&b.removeOption(d,g),T<b.caretPos&&b.setCaret(b.caretPos-1),b.refreshState(),b.updatePlaceholder(),b.updateOriginalInput({silent:g}),b.positionDropdown(),b.trigger("item_remove",d,C))},createItem:function(d,g){var b=this,C=b.caretPos;d=d||t.trim(b.$control_input.val()||"");var T=arguments[arguments.length-1];if(typeof T!="function"&&(T=function(){}),typeof g!="boolean"&&(g=!0),!b.canCreate(d))return T(),!1;b.lock();var E=typeof b.settings.create=="function"?this.settings.create:function(z){var R={};return R[b.settings.labelField]=z,R[b.settings.valueField]=z,R},O=F(function(z){if(b.unlock(),!z||typeof z!="object")return T();var R=I(z[b.settings.valueField]);if(typeof R!="string")return T();b.setTextboxValue(""),b.addOption(z),b.setCaret(C),b.addItem(R),b.refreshOptions(g&&b.settings.mode!=="single"),T(z)}),V=E.apply(this,[d,O]);return typeof V<"u"&&O(V),!0},refreshItems:function(){this.lastQuery=null,this.isSetup&&this.addItem(this.items),this.refreshState(),this.updateOriginalInput()},refreshState:function(){this.refreshValidityState(),this.refreshClasses()},refreshValidityState:function(){if(!this.isRequired)return!1;var d=!this.items.length;this.isInvalid=d,this.$control_input.prop("required",d),this.$input.prop("required",!d)},refreshClasses:function(){var d=this,g=d.isFull(),b=d.isLocked;d.$wrapper.toggleClass("rtl",d.rtl),d.$control.toggleClass("focus",d.isFocused).toggleClass("disabled",d.isDisabled).toggleClass("required",d.isRequired).toggleClass("invalid",d.isInvalid).toggleClass("locked",b).toggleClass("full",g).toggleClass("not-full",!g).toggleClass("input-active",d.isFocused&&!d.isInputHidden).toggleClass("dropdown-active",d.isOpen).toggleClass("has-options",!t.isEmptyObject(d.options)).toggleClass("has-items",d.items.length>0),d.$control_input.data("grow",!g&&!b)},isFull:function(){return this.settings.maxItems!==null&&this.items.length>=this.settings.maxItems},updateOriginalInput:function(d){var g,b,C,T,E=this;if(d=d||{},E.tagType===k){for(C=[],g=0,b=E.items.length;g<b;g++)T=E.options[E.items[g]][E.settings.labelField]||"",C.push('<option value="'+L(E.items[g])+'" selected="selected">'+L(T)+"</option>");!C.length&&!this.$input.attr("multiple")&&C.push('<option value="" selected="selected"></option>'),E.$input.html(C.join(""))}else E.$input.val(E.getValue()),E.$input.attr("value",E.$input.val());E.isSetup&&(d.silent||E.trigger("change",E.$input.val()))},updatePlaceholder:function(){if(this.settings.placeholder){var d=this.$control_input;this.items.length?d.removeAttr("placeholder"):d.attr("placeholder",this.settings.placeholder),d.triggerHandler("update",{force:!0})}},open:function(){var d=this;d.isLocked||d.isOpen||d.settings.mode==="multi"&&d.isFull()||(d.focus(),d.isOpen=!0,d.refreshState(),d.$dropdown.css({visibility:"hidden",display:"block"}),d.positionDropdown(),d.$dropdown.css({visibility:"visible"}),d.trigger("dropdown_open",d.$dropdown))},close:function(){var d=this,g=d.isOpen;d.settings.mode==="single"&&d.items.length&&(d.hideInput(),d.isBlurring||d.$control_input.blur()),d.isOpen=!1,d.$dropdown.hide(),d.setActiveOption(null),d.refreshState(),g&&d.trigger("dropdown_close",d.$dropdown)},positionDropdown:function(){var d=this.$control,g=this.settings.dropdownParent==="body"?d.offset():d.position();g.top+=d.outerHeight(!0),this.$dropdown.css({width:d[0].getBoundingClientRect().width,top:g.top,left
1:g.left})},clear:function(d){var g=this;g.items.length&&(g.$control.children(":not(input)").remove(),g.items=[],g.lastQuery=null,g.setCaret(0),g.setActiveItem(null),g.updatePlaceholder(),g.updateOriginalInput({silent:d}),g.refreshState(),g.showInput(),g.trigger("clear"))},insertAtCaret:function(d){var g=Math.min(this.caretPos,this.items.length),b=d[0],C=this.buffer||this.$control[0];g===0?C.insertBefore(b,C.firstChild):C.insertBefore(b,C.childNodes[g]),this.setCaret(g+1)},deleteSelection:function(d){var g,b,C,T,E,O,V,z,R,G=this;if(C=d&&d.keyCode===w?-1:1,T=Y(G.$control_input[0]),G.$activeOption&&!G.settings.hideSelected&&(V=G.getAdjacentOption(G.$activeOption,-1).attr("data-value")),E=[],G.$activeItems.length){for(R=G.$control.children(".active:"+(C>0?"last":"first")),O=G.$control.children(":not(input)").index(R),C>0&&O++,g=0,b=G.$activeItems.length;g<b;g++)E.push(t(G.$activeItems[g]).attr("data-value"));d&&(d.preventDefault(),d.stopPropagation())}else(G.isFocused||G.settings.mode==="single")&&G.items.length&&(C<0&&T.start===0&&T.length===0?E.push(G.items[G.caretPos-1]):C>0&&T.start===G.$control_input.val().length&&E.push(G.items[G.caretPos]));if(!E.length||typeof G.settings.onDelete=="function"&&G.settings.onDelete.apply(G,[E])===!1)return!1;for(typeof O<"u"&&G.setCaret(O);E.length;)G.removeItem(E.pop());return G.showInput(),G.positionDropdown(),G.refreshOptions(!0),V&&(z=G.getOption(V),z.length&&G.setActiveOption(z)),!0},advanceSelection:function(d,g){var b,C,T,E,O,V,z=this;d!==0&&(z.rtl&&(d*=-1),b=d>0?"last":"first",C=Y(z.$control_input[0]),z.isFocused&&!z.isInputHidden?(E=z.$control_input.val().length,O=d<0?C.start===0&&C.length===0:C.start===E,O&&!E&&z.advanceCaret(d,g)):(V=z.$control.children(".active:"+b),V.length&&(T=z.$control.children(":not(input)").index(V),z.setActiveItem(null),z.setCaret(d>0?T+1:T))))},advanceCaret:function(d,g){var b=this,C,T;d!==0&&(C=d>0?"next":"prev",b.isShiftDown?(T=b.$control_input[C](),T.length&&(b.hideInput(),b.setActiveItem(T),g&&g.preventDefault())):b.setCaret(b.caretPos+d))},setCaret:function(d){var g=this;if(g.settings.mode==="single"?d=g.items.length:d=Math.max(0,Math.min(g.items.length,d)),!g.isPending){var b,C,T,E;for(T=g.$control.children(":not(input)"),b=0,C=T.length;b<C;b++)E=t(T[b]).detach(),b<d?g.$control_input.before(E):g.$control.append(E)}g.caretPos=d},lock:function(){this.close(),this.isLocked=!0,this.refreshState()},unlock:function(){this.isLocked=!1,this.refreshState()},disable:function(){var d=this;d.$input.prop("disabled",!0),d.$control_input.prop("disabled",!0).prop("tabindex",-1),d.isDisabled=!0,d.lock()},enable:function(){var d=this;d.$input.prop("disabled",!1),d.$control_input.prop("disabled",!1).prop("tabindex",d.tabIndex),d.isDisabled=!1,d.unlock()},destroy:function(){var d=this,g=d.eventNS,b=d.revertSettings;d.trigger("destroy"),d.off(),d.$wrapper.remove(),d.$dropdown.remove(),d.$input.html("").append(b.$children).removeAttr("tabindex").removeClass("selectized").attr({tabindex:b.tabindex}).show(),d.$control_input.removeData("grow"),d.$input.removeData("selectize"),--ne.count==0&&ne.$testInput&&(ne.$testInput.remove(),ne.$testInput=void 0),t(window).off(g),t(document).off(g),t(document.body).off(g),delete d.$input[0].selectize},render:function(d,g){var b,C,T="",E=!1,O=this;return(d==="option"||d==="item")&&(b=I(g[O.settings.valueField]),E=!!b),E&&(_(O.renderCache[d])||(O.renderCache[d]={}),O.renderCache[d].hasOwnProperty(b))?O.renderCache[d][b]:(T=t(O.settings.render[d].apply(this,[g,L])),d==="option"||d==="option_create"?g[O.settings.disabledField]||T.attr("data-selectable",""):d==="optgroup"&&(C=g[O.settings.optgroupValueField]||"",T.attr("data-group",C),g[O.settings.disabledField]&&T.attr("data-disabled","")),(d==="option"||d==="item")&&T.attr("data-value",b||""),E&&(O.renderCache[d][b]=T[0]),T[0])},clearCache:function(d){var g=this;typeof d>"u"?g.renderCache={}:delete g.renderCache[d]},canCreate:function(d){var g=this;if(!g.settings.create)return!1;var b=g.settings.createFilter;return d.length&&(typeof b!="function"||b.apply(g,[d]))&&(typeof b!="string"||new RegExp(b).test(d))&&(!(b instanceof RegExp)||b.test(d))}}),ne.count=0,ne.defaults={options:[],optgroups:[],plugins:[],delimiter:",",splitOn:null,persist:!0,diacritics:!0,create:!1,
1createOnBlur:!1,createFilter:null,highlight:!0,openOnFocus:!0,maxOptions:1e3,maxItems:null,hideSelected:null,addPrecedence:!1,selectOnTab:!1,preload:!1,allowEmptyOption:!1,closeAfterSelect:!1,scrollDuration:60,loadThrottle:300,loadingClass:"loading",dataAttr:"data-data",optgroupField:"optgroup",valueField:"value",labelField:"text",disabledField:"disabled",optgroupLabelField:"label",optgroupValueField:"value",lockOptgroupOrder:!1,sortField:"$order",searchField:["text"],searchConjunction:"and",mode:null,wrapperClass:"selectize-control",inputClass:"selectize-input",dropdownClass:"selectize-dropdown",dropdownContentClass:"selectize-dropdown-content",dropdownParent:null,copyClassesToDropdown:!0,render:{}},t.fn.selectize=function(d){var g=t.fn.selectize.defaults,b=t.extend({},g,d),C=b.dataAttr,T=b.labelField,E=b.valueField,O=b.disabledField,V=b.optgroupField,z=b.optgroupLabelField,R=b.optgroupValueField,G=function(K,re){var Q,oe,ge,H,$e=K.attr(C);if($e)for(re.options=JSON.parse($e),Q=0,oe=re.options.length;Q<oe;Q++)re.items.push(re.options[Q][E]);else{var fe=t.trim(K.val()||"");if(!b.allowEmptyOption&&!fe.length)return;for(ge=fe.split(b.delimiter),Q=0,oe=ge.length;Q<oe;Q++)H={},H[T]=ge[Q],H[E]=ge[Q],re.options.push(H);re.items=ge}},se=function(K,re){var Q,oe,ge,H,$e=re.options,fe={},Re=function(ce){var me=C&&ce.attr(C);return typeof me=="string"&&me.length?JSON.parse(me):null},pt=function(ce,me){ce=t(ce);var Se=I(ce.val());if(!(!Se&&!b.allowEmptyOption)){if(fe.hasOwnProperty(Se)){if(me){var Ie=fe[Se][V];Ie?t.isArray(Ie)?Ie.push(me):fe[Se][V]=[Ie,me]:fe[Se][V]=me}return}var ve=Re(ce)||{};ve[T]=ve[T]||ce.text(),ve[E]=ve[E]||Se,ve[O]=ve[O]||ce.prop("disabled"),ve[V]=ve[V]||me,fe[Se]=ve,$e.push(ve),ce.is(":selected")&&re.items.push(Se)}},ei=function(ce){var me,Se,Ie,ve,ti;for(ce=t(ce),Ie=ce.attr("label"),Ie&&(ve=Re(ce)||{},ve[z]=Ie,ve[R]=Ie,ve[O]=ce.prop("disabled"),re.optgroups.push(ve)),ti=t("option",ce),me=0,Se=ti.length;me<Se;me++)pt(ti[me],Ie)};for(re.maxItems=K.attr("multiple")?null:1,H=K.children(),Q=0,oe=H.length;Q<oe;Q++)ge=H[Q].tagName.toLowerCase(),ge==="optgroup"?ei(H[Q]):ge==="option"&&pt(H[Q])};return this.each(function(){if(!this.selectize){var K=t(this),re=this.tagName.toLowerCase(),Q=K.attr("placeholder")||K.attr("data-placeholder");!Q&&!b.allowEmptyOption&&(Q=K.children('option[value=""]').text());var oe={placeholder:Q,options:[],optgroups:[],items:[]};re==="select"?se(K,oe):G(K,oe),new ne(K,t.extend(!0,{},g,oe,d))}})},t.fn.selectize.defaults=ne.defaults,t.fn.selectize.support={validity:W},ne.define("drag_drop",function(d){if(!t.fn.sortable)throw new Error('The "drag_drop" plugin requires jQuery UI "sortable".');if(this.settings.mode==="multi"){var g=this;g.lock=function(){var b=g.lock;return function(){var C=g.$control.data("sortable");return C&&C.disable(),b.apply(g,arguments)}}(),g.unlock=function(){var b=g.unlock;return function(){var C=g.$control.data("sortable");return C&&C.enable(),b.apply(g,arguments)}}(),g.setup=function(){var b=g.setup;return function(){b.apply(this,arguments);var C=g.$control.sortable({items:"[data-value]",forcePlaceholderSize:!0,disabled:g.isLocked,start:function(T,E){E.placeholder.css("width",E.helper.css("width")),C.css({overflow:"visible"})},stop:function(){C.css({overflow:"hidden"});var T=g.$activeItems?g.$activeItems.slice():null,E=[];C.children("[data-value]").each(function(){E.push(t(this).attr("data-value"))}),g.setValue(E),g.setActiveItem(T)}})}}()}}),ne.define("dropdown_header",function(d){var g=this;d=t.extend({title:"Untitled",headerClass:"selectize-dropdown-header",titleRowClass:"selectize-dropdown-header-title",labelClass:"selectize-dropdown-header-label",closeClass:"selectize-dropdown-header-close",html:function(b){return'<div class="'+b.headerClass+'"><div class="'+b.titleRowClass+'"><span class="'+b.labelClass+'">'+b.title+'</span><a href="javascript:void(0)" class="'+b.closeClass+'">&times;</a></div></div>'}},d),g.setup=function(){var b=g.setup;return function(){b.apply(g,arguments),g.$dropdown_header=t(d.html(d)),g.$dropdown.prepend(g.$dropdown_header)}}()}),ne.define("optgroup_columns",function(d){var g=this;
1d=t.extend({equalizeWidth:!0,equalizeHeight:!0},d),this.getAdjacentOption=function(T,E){var O=T.closest("[data-group]").find("[data-selectable]"),V=O.index(T)+E;return V>=0&&V<O.length?O.eq(V):t()},this.onKeyDown=function(){var T=g.onKeyDown;return function(E){var O,V,z,R;if(this.isOpen&&(E.keyCode===f||E.keyCode===m)){g.ignoreHover=!0,R=this.$activeOption.closest("[data-group]"),O=R.find("[data-selectable]").index(this.$activeOption),E.keyCode===f?R=R.prev("[data-group]"):R=R.next("[data-group]"),z=R.find("[data-selectable]"),V=z.eq(Math.min(z.length-1,O)),V.length&&this.setActiveOption(V);return}return T.apply(this,arguments)}}();var b=function(){var T,E=b.width,O=document;return typeof E>"u"&&(T=O.createElement("div"),T.innerHTML='<div style="width:50px;height:50px;position:absolute;left:-50px;top:-50px;overflow:auto;"><div style="width:1px;height:100px;"></div></div>',T=T.firstChild,O.body.appendChild(T),E=b.width=T.offsetWidth-T.clientWidth,O.body.removeChild(T)),E},C=function(){var T,E,O,V,z,R,G;if(G=t("[data-group]",g.$dropdown_content),E=G.length,!(!E||!g.$dropdown_content.width())){if(d.equalizeHeight){for(O=0,T=0;T<E;T++)O=Math.max(O,G.eq(T).height());G.css({height:O})}d.equalizeWidth&&(R=g.$dropdown_content.innerWidth()-b(),V=Math.round(R/E),G.css({width:V}),E>1&&(z=R-V*(E-1),G.eq(E-1).css({width:z})))}};(d.equalizeHeight||d.equalizeWidth)&&(A.after(this,"positionDropdown",C),A.after(this,"refreshOptions",C))}),ne.define("remove_button",function(d){d=t.extend({label:"&times;",title:"Remove",className:"remove",append:!0},d);var g=function(C,T){T.className="remove-single";var E=C,O='<a href="javascript:void(0)" class="'+T.className+'" tabindex="-1" title="'+L(T.title)+'">'+T.label+"</a>",V=function(z,R){return t("<span>").append(z).append(R)};C.setup=function(){var z=E.setup;return function(){if(T.append){var R=t(E.$input.context).attr("id");t("#"+R);var G=E.settings.render.item;E.settings.render.item=function(se){return V(G.apply(C,arguments),O)}}z.apply(C,arguments),C.$control.on("click","."+T.className,function(se){se.preventDefault(),!E.isLocked&&E.clear()})}}()},b=function(C,T){var E=C,O='<a href="javascript:void(0)" class="'+T.className+'" tabindex="-1" title="'+L(T.title)+'">'+T.label+"</a>",V=function(z,R){var G=z.search(/(<\/[^>]+>\s*)$/);return z.substring(0,G)+R+z.substring(G)};C.setup=function(){var z=E.setup;return function(){if(T.append){var R=E.settings.render.item;E.settings.render.item=function(G){return V(R.apply(C,arguments),O)}}z.apply(C,arguments),C.$control.on("click","."+T.className,function(G){if(G.preventDefault(),!E.isLocked){var se=t(G.currentTarget).parent();E.setActiveItem(se),E.deleteSelection()&&E.setCaret(E.items.length)}})}}()};if(this.settings.mode==="single"){g(this,d);return}else b(this,d)}),ne.define("restore_on_backspace",function(d){var g=this;d.text=d.text||function(b){return b[this.settings.labelField]},this.onKeyDown=function(){var b=g.onKeyDown;return function(C){var T,E;if(C.keyCode===w&&this.$control_input.val()===""&&!this.$activeItems.length&&(T=this.caretPos-1,T>=0&&T<this.items.length)){E=this.options[this.items[T]],this.deleteSelection(C)&&(this.setTextboxValue(d.text.apply(this,[E])),this.refreshOptions(!0)),C.preventDefault();return}return b.apply(this,arguments)}}()}),ne})})(Hr);var qr={exports:{}};/*!
2 * jQuery Validation Plugin v1.21.0
3 *
4 * https://jqueryvalidation.org/
5 *
6 * Copyright (c) 2024 Jörn Zaefferer
7 * Released under the MIT license
8 */(function(n){(function(e){n.exports?n.exports=e(js()):e(jQuery)})(function(e){e.extend(e.fn,{validate:function(s){if(!this.length){s&&s.debug&&window.console&&console.warn("Nothing selected, can't validate, returning nothing.");return}var o=e.data(this[0],"validator");return o||(this.attr("novalidate","novalidate"),o=new e.validator(s,this[0]),e.data(this[0],"validator",o),o.settings.onsubmit&&(this.on("click.validate",":submit",function(a){o.submitButton=a.currentTarget,e(this).hasClass("cancel")&&(o.cancelSubmit=!0),e(this).attr("formnovalidate")!==void 0&&(o.cancelSubmit=!0)}),this.on("submit.validate",function(a){o.settings.debug&&a.preventDefault();function l(){var c,u;return o.submitButton&&(o.settings.submitHandler||o.formSubmitted)&&(c=e("<input type='hidden'/>").attr("name",o.submitButton.name).val(e(o.submitButton).val()).appendTo(o.currentForm)),o.settings.submitHandler&&!o.settings.debug?(u=o.settings.submitHandler.call(o,o.currentForm,a),c&&c.remove(),u!==void 0?u:!1):!0}return o.cancelSubmit?(o.cancelSubmit=!1,l()):o.form()?o.pendingRequest?(o.formSubmitted=!0,!1):l():(o.focusInvalid(),!1)})),o)},valid:function(){var s,o,a;return e(this[0]).is("form")?s=this.validate().form():(a=[],s=!0,o=e(this[0].form).validate(),this.each(function(){s=o.element
8(this)&&s,s||(a=a.concat(o.errorList))}),o.errorList=a),s},rules:function(s,o){var a=this[0],l=typeof this.attr("contenteditable")<"u"&&this.attr("contenteditable")!=="false",c,u,f,h,p,m;if(a!=null&&(!a.form&&l&&(a.form=this.closest("form")[0],a.name=this.attr("name")),a.form!=null)){if(s)switch(c=e.data(a.form,"validator").settings,u=c.rules,f=e.validator.staticRules(a),s){case"add":e.extend(f,e.validator.normalizeRule(o)),delete f.messages,u[a.name]=f,o.messages&&(c.messages[a.name]=e.extend(c.messages[a.name],o.messages));break;case"remove":return o?(m={},e.each(o.split(/\s/),function(v,S){m[S]=f[S],delete f[S]}),m):(delete u[a.name],f)}return h=e.validator.normalizeRules(e.extend({},e.validator.classRules(a),e.validator.attributeRules(a),e.validator.dataRules(a),e.validator.staticRules(a)),a),h.required&&(p=h.required,delete h.required,h=e.extend({required:p},h)),h.remote&&(p=h.remote,delete h.remote,h=e.extend(h,{remote:p})),h}}});var t=function(s){return s.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")};e.extend(e.expr.pseudos||e.expr[":"],{blank:function(s){return!t(""+e(s).val())},filled:function(s){var o=e(s).val();return o!==null&&!!t(""+o)},unchecked:function(s){return!e(s).prop("checked")}}),e.validator=function(s,o){this.settings=e.extend(!0,{},e.validator.defaults,s),this.currentForm=o,this.init()},e.validator.format=function(s,o){return arguments.length===1?function(){var a=e.makeArray(arguments);return a.unshift(s),e.validator.format.apply(this,a)}:(o===void 0||(arguments.length>2&&o.constructor!==Array&&(o=e.makeArray(arguments).slice(1)),o.constructor!==Array&&(o=[o]),e.each(o,function(a,l){s=s.replace(new RegExp("\\{"+a+"\\}","g"),function(){return l})})),s)},e.extend(e.validator,{defaults:{messages:{},groups:{},rules:{},errorClass:"error",pendingClass:"pending",validClass:"valid",errorElement:"label",focusCleanup:!1,focusInvalid:!0,errorContainer:e([]),errorLabelContainer:e([]),onsubmit:!0,ignore:":hidden",ignoreTitle:!1,customElements:[],onfocusin:function(s){this.lastActive=s,this.settings.focusCleanup&&(this.settings.unhighlight&&this.settings.unhighlight.call(this,s,this.settings.errorClass,this.settings.validClass),this.hideThese(this.errorsFor(s)))},onfocusout:function(s){!this.checkable(s)&&(s.name in this.submitted||!this.optional(s))&&this.element(s)},onkeyup:function(s,o){var a=[16,17,18,20,35,36,37,38,39,40,45,144,225];o.which===9&&this.elementValue(s)===""||e.inArray(o.keyCode,a)!==-1||(s.name in this.submitted||s.name in this.invalid)&&this.element(s)},onclick:function(s){s.name in this.submitted?this.element(s):s.parentNode.name in this.submitted&&this.element(s.parentNode)},highlight:function(s,o,a){s.type==="radio"?this.findByName(s.name).addClass(o).removeClass(a):e(s).addClass(o).removeClass(a)},unhighlight:function(s,o,a){s.type==="radio"?this.findByName(s.name).removeClass(o).addClass(a):e(s).removeClass(o).addClass(a)}},setDefaults:function(s){e.extend(e.validator.defaults,s)},messages:{required:"This field is required.",remote:"Please fix this field.",email:"Please enter a valid email address.",url:"Please enter a valid URL.",date:"Please enter a valid date.",dateISO:"Please enter a valid date (ISO).",number:"Please enter a valid number.",digits:"Please enter only digits.",equalTo:"Please enter the same value again.",maxlength:e.validator.format("Please enter no more than {0} characters."),minlength:e.validator.format("Please enter at least {0} characters."),rangelength:e.validator.format("Please enter a value between {0} and {1} characters long."),range:e.validator.format("Please enter a value between {0} and {1}."),max:e.validator.format("Please enter a value less than or equal to {0}."),min:e.validator.format("Please enter a value greater than or equal to {0}."),step:e.validator.format("Please enter a multiple of {0}.")},autoCreateRanges:!1,prototype:{init:function(){this.labelContainer=e(this.settings.errorLabelContainer),this.errorContext=this.labelContainer.length&&this.labelContainer||e(this.currentForm),this.containers=e(this.settings.errorContainer).add(this.settings.errorLabelContainer),this.submitted={},this.valueCache={},this.pendingRequest=0,this.pending={},this.invalid={},this.reset();var s=this.currentForm,o=this.groups={},a;e.each(this.settings.groups,function(f,h){typeof h=="string"&&(h=h.split(/\s/)),e.each(h,function(p,m){o[m]=f})}),a=this.settings.rules,e.each(a,function(f,h){a[f]=e.validator.normalizeRule(h)});function l(f){var h=typeof e(this).attr("contenteditable")<"u"&&e(this).attr("contenteditable")!=="false";if(!this.form&&h&&(this.form=e(this).closest("form")[0],this.name=e(this).attr("name")),s===this.form){var p=e.data(this.form,"validator"),m="on"+f.type.replace(/^validate/,""),v=p.settings;v[m]&&!e(this).is(v.ignore)&&v[m].call(p,this,f)}}var c=[":text","[type='password']","[type='file']","select","textarea","[type='number']","[type='search']","[type='tel']","[type='url']","[type='email']","[type='datetime']","[type='date']","[type='month']","[type='week']","[type='time']","[type='datetime-local']","[type='range']","[type='color']","[type='radio']","[type='checkbox']","[contenteditable]","[type='button']"],u=["select","option","[type='radio']","[type='checkbox']"];e(this.currentForm).on("focusin.validate focusout.validate keyup.validate",c.concat(this.settings.customElements).join(", "),l).on("click.validate",u.concat(this.settings.customElements).join(", "),l),this.settings.invalidHandler&&e(this.currentForm).on("invalid-form.validate",this.settings.invalidHandler)},form:function(){return this.checkForm(),e.extend(this.submitted,this.errorMap),this.invalid=e.extend({},this.errorMap),this.valid()||e(this.currentForm).triggerHandler("invalid-form",[this]),this.showErrors(),this.valid()},checkForm:function(){this.prepareForm();for(var s=0,o=this.currentElements=this.elements();o[s];s++)this.check(o[s]);return this.valid()},element:function(s){var o=this.clean(s),a=this.validationTargetFor(o),l=this,c=!0,u,f;return a===void 0?delete this.invalid[o.name]:(this.prepareElement(a),this.currentElements=e(a),f=this.groups[a.name],f&&e.each(this.groups,function(h,p){p===f&&h!==a.name&&(o=l.validationTargetFor(l.clean(l.findByName(h))),o&&o.name in l.invali
8d&&(l.currentElements.push(o),c=l.check(o)&&c))}),u=this.check(a)!==!1,c=c&&u,u?this.invalid[a.name]=!1:this.invalid[a.name]=!0,this.numberOfInvalids()||(this.toHide=this.toHide.add(this.containers)),this.showErrors(),e(s).attr("aria-invalid",!u)),c},showErrors:function(s){if(s){var o=this;e.extend(this.errorMap,s),this.errorList=e.map(this.errorMap,function(a,l){return{message:a,element:o.findByName(l)[0]}}),this.successList=e.grep(this.successList,function(a){return!(a.name in s)})}this.settings.showErrors?this.settings.showErrors.call(this,this.errorMap,this.errorList):this.defaultShowErrors()},resetForm:function(){e.fn.resetForm&&e(this.currentForm).resetForm(),this.invalid={},this.submitted={},this.prepareForm(),this.hideErrors();var s=this.elements().removeData("previousValue").removeAttr("aria-invalid");this.resetElements(s)},resetElements:function(s){var o;if(this.settings.unhighlight)for(o=0;s[o];o++)this.settings.unhighlight.call(this,s[o],this.settings.errorClass,""),this.findByName(s[o].name).removeClass(this.settings.validClass);else s.removeClass(this.settings.errorClass).removeClass(this.settings.validClass)},numberOfInvalids:function(){return this.objectLength(this.invalid)},objectLength:function(s){var o=0,a;for(a in s)s[a]!==void 0&&s[a]!==null&&s[a]!==!1&&o++;return o},hideErrors:function(){this.hideThese(this.toHide)},hideThese:function(s){s.not(this.containers).text(""),this.addWrapper(s).hide()},valid:function(){return this.size()===0},size:function(){return this.errorList.length},focusInvalid:function(){if(this.settings.focusInvalid)try{e(this.findLastActive()||this.errorList.length&&this.errorList[0].element||[]).filter(":visible").trigger("focus").trigger("focusin")}catch{}},findLastActive:function(){var s=this.lastActive;return s&&e.grep(this.errorList,function(o){return o.element.name===s.name}).length===1&&s},elements:function(){var s=this,o={},a=["input","select","textarea","[contenteditable]"];return e(this.currentForm).find(a.concat(this.settings.customElements).join(", ")).not(":submit, :reset, :image, :disabled").not(this.settings.ignore).filter(function(){var l=this.name||e(this).attr("name"),c=typeof e(this).attr("contenteditable")<"u"&&e(this).attr("contenteditable")!=="false";return!l&&s.settings.debug&&window.console&&console.error("%o has no name assigned",this),c&&(this.form=e(this).closest("form")[0],this.name=l),this.form!==s.currentForm||l in o||!s.objectLength(e(this).rules())?!1:(o[l]=!0,!0)})},clean:function(s){return e(s)[0]},errors:function(){var s=this.settings.errorClass.split(" ").join(".");return e(this.settings.errorElement+"."+s,this.errorContext)},resetInternals:function(){this.successList=[],this.errorList=[],this.errorMap={},this.toShow=e([]),this.toHide=e([])},reset:function(){this.resetInternals(),this.currentElements=e([])},prepareForm:function(){this.reset(),this.toHide=this.errors().add(this.containers)},prepareElement:function(s){this.reset(),this.toHide=this.errorsFor(s)},elementValue:function(s){var o=e(s),a=s.type,l=typeof o.attr("contenteditable")<"u"&&o.attr("contenteditable")!=="false",c,u;return a==="radio"||a==="checkbox"?this.findByName(s.name).filter(":checked").val():a==="number"&&typeof s.validity<"u"?s.validity.badInput?"NaN":o.val():(l?c=o.text():c=o.val(),a==="file"?c.substr(0,12)==="C:\\fakepath\\"?c.substr(12):(u=c.lastIndexOf("/"),u>=0||(u=c.lastIndexOf("\\"),u>=0)?c.substr(u+1):c):typeof c=="string"?c.replace(/\r/g,""):c)},check:function(s){s=this.validationTargetFor(this.clean(s));var o=e(s).rules(),a=e.map(o,function(m,v){return v}).length,l=!1,c=this.elementValue(s),u,f,h,p;this.abortRequest(s),typeof o.normalizer=="function"?p=o.normalizer:typeof this.settings.normalizer=="function"&&(p=this.settings.normalizer),p&&(c=p.call(s,c),delete o.normalizer);for(f in o){h={method:f,parameters:o[f]};try{if(u=e.validator.methods[f].call(this,c,s,h.parameters),u==="dependency-mismatch"&&a===1){l=!0;continue}if(l=!1,u==="pending"){this.toHide=this.toHide.not(this.errorsFor(s));return}if(!u)return this.formatAndAdd(s,h),!1}catch(m){throw this.settings.debug&&window.console&&console.log("Exception occurred when checking element "+s.id+", check the '"+h.method+"' method.",m),m instanceof TypeError&&(m.message+=".  Exception occurred when checking element "+s.id+", check the '"+h.method+"' method."),m}}if(!l)return this.objectLength(o)&&this.successList.push(s),!0},customDataMessage:function(s,o){return e(s).data("msg"+o.charAt(0).toUpperCase()+o.substring(1).toLowerCase())||e(s).data("msg")},customMessage:function(s,o){var a=this.settings.messages[s];return a&&(a.constructor===String?a:a[o])},findDefined:function(){for(var s=0;s<arguments.length;
8s++)if(arguments[s]!==void 0)return arguments[s]},defaultMessage:function(s,o){typeof o=="string"&&(o={method:o});var a=this.findDefined(this.customMessage(s.name,o.method),this.customDataMessage(s,o.method),!this.settings.ignoreTitle&&s.title||void 0,e.validator.messages[o.method],"<strong>Warning: No message defined for "+s.name+"</strong>"),l=/\$?\{(\d+)\}/g;return typeof a=="function"?a=a.call(this,o.parameters,s):l.test(a)&&(a=e.validator.format(a.replace(l,"{$1}"),o.parameters)),a},formatAndAdd:function(s,o){var a=this.defaultMessage(s,o);this.errorList.push({message:a,element:s,method:o.method}),this.errorMap[s.name]=a,this.submitted[s.name]=a},addWrapper:function(s){return this.settings.wrapper&&(s=s.add(s.parent(this.settings.wrapper))),s},defaultShowErrors:function(){var s,o,a;for(s=0;this.errorList[s];s++)a=this.errorList[s],this.settings.highlight&&this.settings.highlight.call(this,a.element,this.settings.errorClass,this.settings.validClass),this.showLabel(a.element,a.message);if(this.errorList.length&&(this.toShow=this.toShow.add(this.containers)),this.settings.success)for(s=0;this.successList[s];s++)this.showLabel(this.successList[s]);if(this.settings.unhighlight)for(s=0,o=this.validElements();o[s];s++)this.settings.unhighlight.call(this,o[s],this.settings.errorClass,this.settings.validClass);this.toHide=this.toHide.not(this.toShow),this.hideErrors(),this.addWrapper(this.toShow).show()},validElements:function(){return this.currentElements.not(this.invalidElements())},invalidElements:function(){return e(this.errorList).map(function(){return this.element})},showLabel:function(s,o){var a,l,c,u,f=this.errorsFor(s),h=this.idOrName(s),p=e(s).attr("aria-describedby");f.length?(f.removeClass(this.settings.validClass).addClass(this.settings.errorClass),this.settings&&this.settings.escapeHtml?f.text(o||""):f.html(o||"")):(f=e("<"+this.settings.errorElement+">").attr("id",h+"-error").addClass(this.settings.errorClass),this.settings&&this.settings.escapeHtml?f.text(o||""):f.html(o||""),a=f,this.settings.wrapper&&(a=f.hide().show().wrap("<"+this.settings.wrapper+"/>").parent()),this.labelContainer.length?this.labelContainer.append(a):this.settings.errorPlacement?this.settings.errorPlacement.call(this,a,e(s)):a.insertAfter(s),f.is("label")?f.attr("for",h):f.parents("label[for='"+this.escapeCssMeta(h)+"']").length===0&&(c=f.attr("id"),p?p.match(new RegExp("\\b"+this.escapeCssMeta(c)+"\\b"))||(p+=" "+c):p=c,e(s).attr("aria-describedby",p),l=this.groups[s.name],l&&(u=this,e.each(u.groups,function(m,v){v===l&&e("[name='"+u.escapeCssMeta(m)+"']",u.currentForm).attr("aria-describedby",f.attr("id"))})))),!o&&this.settings.success&&(f.text(""),typeof this.settings.success=="string"?f.addClass(this.settings.success):this.settings.success(f,s)),this.toShow=this.toShow.add(f)},errorsFor:function(s){var o=this.escapeCssMeta(this.idOrName(s)),a=e(s).attr("aria-describedby"),l="label[for='"+o+"'], label[for='"+o+"'] *";return a&&(l=l+", #"+this.escapeCssMeta(a).replace(/\s+/g,", #")),this.errors().filter(l)},escapeCssMeta:function(s){return s===void 0?"":s.replace(/([\\!"#$%&'()*+,./:;<=>?@\[\]^`{|}~])/g,"\\$1")},idOrName:function(s){return this.groups[s.name]||(this.checkable(s)?s.name:s.id||s.name)},validationTargetFor:function(s){return this.checkable(s)&&(s=this.findByName(s.name)),e(s).not(this.settings.ignore)[0]},checkable:function(s){return/radio|checkbox/i.test(s.type)},findByName:function(s){return e(this.currentForm).find("[name='"+this.escapeCssMeta(s)+"']")},getLength:function(s,o){switch(o.nodeName.toLowerCase()){case"select":return e("option:selected",o).length;case"input":if(this.checkable(o))return this.findByName(o.name).filter(":checked").length}return s.length},depend:function(s,o){return this.dependTypes[typeof s]?this.dependTypes[typeof s](s,o):!0},dependTypes:{boolean:function(s){return s},string:function(s,o){return!!e(s,o.form).length},function:function(s,o){return s(o)}},optional:function(s){var o=this.elementValue(s);return!e.validator.methods.required.call(this,o,s)&&"dependency-mismatch"},elementAjaxPort:function(s){return"validate"+s.name},startRequest:function(s){this.pending[s.name]||(this.pendingRequest++,e(s).addClass(this.settings.pendingClass),this.pending[s.name]=!0)},stopRequest:function(s,o){this.pendingRequest--,this.pendingRequest<0&&(this.pendingRequest=0),delete this.pending[s.name],e(s).removeClass(this.settings.pendingClass),o&&this.pendingRequest===0&&this.formSubmitted&&this.form()&&this.pendingRequest===0?(e(this.currentForm).trigger("submit"),this.submitButton&&e("input:hidden[name='"+this.submitButton.name+"']",this.currentForm).remove(),this.formSubmitted=!1):!o&&this.pendingRequest===0&&this.formSubmitted&&(e(this.currentForm).triggerHandler("invalid-form",[this]),this.formSubmitted=!1)},abortRequest:function(s){var o;this.pending[s.name]&&(o=this.elementAjaxPort(s),e.ajaxAbort(o),this.pendingRequest--,this.pendingRequest<0&&(this.pendingRequest=0),delete this.pending[s.name],e(s).removeClass(this.settings.pendingClass))}
8,previousValue:function(s,o){return o=typeof o=="string"&&o||"remote",e.data(s,"previousValue")||e.data(s,"previousValue",{old:null,valid:!0,message:this.defaultMessage(s,{method:o})})},destroy:function(){this.resetForm(),e(this.currentForm).off(".validate").removeData("validator").find(".validate-equalTo-blur").off(".validate-equalTo").removeClass("validate-equalTo-blur").find(".validate-lessThan-blur").off(".validate-lessThan").removeClass("validate-lessThan-blur").find(".validate-lessThanEqual-blur").off(".validate-lessThanEqual").removeClass("validate-lessThanEqual-blur").find(".validate-greaterThanEqual-blur").off(".validate-greaterThanEqual").removeClass("validate-greaterThanEqual-blur").find(".validate-greaterThan-blur").off(".validate-greaterThan").removeClass("validate-greaterThan-blur")}},classRuleSettings:{required:{required:!0},email:{email:!0},url:{url:!0},date:{date:!0},dateISO:{dateISO:!0},number:{number:!0},digits:{digits:!0},creditcard:{creditcard:!0}},addClassRules:function(s,o){s.constructor===String?this.classRuleSettings[s]=o:e.extend(this.classRuleSettings,s)},classRules:function(s){var o={},a=e(s).attr("class");return a&&e.each(a.split(" "),function(){this in e.validator.classRuleSettings&&e.extend(o,e.validator.classRuleSettings[this])}),o},normalizeAttributeRule:function(s,o,a,l){/min|max|step/.test(a)&&(o===null||/number|range|text/.test(o))&&(l=Number(l),isNaN(l)&&(l=void 0)),l||l===0?s[a]=l:o===a&&o!=="range"&&(s[o==="date"?"dateISO":a]=!0)},attributeRules:function(s){var o={},a=e(s),l=s.getAttribute("type"),c,u;for(c in e.validator.methods)c==="required"?(u=s.getAttribute(c),u===""&&(u=!0),u=!!u):u=a.attr(c),this.normalizeAttributeRule(o,l,c,u);return o.maxlength&&/-1|2147483647|524288/.test(o.maxlength)&&delete o.maxlength,o},dataRules:function(s){var o={},a=e(s),l=s.getAttribute("type"),c,u;for(c in e.validator.methods)u=a.data("rule"+c.charAt(0).toUpperCase()+c.substring(1).toLowerCase()),u===""&&(u=!0),this.normalizeAttributeRule(o,l,c,u);return o},staticRules:function(s){var o={},a=e.data(s.form,"validator");return a.settings.rules&&(o=e.validator.normalizeRule(a.settings.rules[s.name])||{}),o},normalizeRules:function(s,o){return e.each(s,function(a,l){if(l===!1){delete s[a];return}if(l.param||l.depends){var c=!0;switch(typeof l.depends){case"string":c=!!e(l.depends,o.form).length;break;case"function":c=l.depends.call(o,o);break}c?s[a]=l.param!==void 0?l.param:!0:(e.data(o.form,"validator").resetElements(e(o)),delete s[a])}}),e.each(s,function(a,l){s[a]=typeof l=="function"&&a!=="normalizer"?l(o):l}
8),e.each(["minlength","maxlength"],function(){s[this]&&(s[this]=Number(s[this]))}),e.each(["rangelength","range"],function(){var a;s[this]&&(Array.isArray(s[this])?s[this]=[Number(s[this][0]),Number(s[this][1])]:typeof s[this]=="string"&&(a=s[this].replace(/[\[\]]/g,"").split(/[\s,]+/),s[this]=[Number(a[0]),Number(a[1])]))}),e.validator.autoCreateRanges&&(s.min!=null&&s.max!=null&&(s.range=[s.min,s.max],delete s.min,delete s.max),s.minlength!=null&&s.maxlength!=null&&(s.rangelength=[s.minlength,s.maxlength],delete s.minlength,delete s.maxlength)),s},normalizeRule:function(s){if(typeof s=="string"){var o={};e.each(s.split(/\s/),function(){o[this]=!0}),s=o}return s},addMethod:function(s,o,a){e.validator.methods[s]=o,e.validator.messages[s]=a!==void 0?a:e.validator.messages[s],o.length<3&&e.validator.addClassRules(s,e.validator.normalizeRule(s))},methods:{required:function(s,o,a){if(!this.depend(a,o))return"dependency-mismatch";if(o.nodeName.toLowerCase()==="select"){var l=e(o).val();return l&&l.length>0}return this.checkable(o)?this.getLength(s,o)>0:s!=null&&s.length>0},email:function(s,o){return this.optional(o)||/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/.test(s)},url:function(s,o){return this.optional(o)||/^(?:(?:(?:https?|ftp):)?\/\/)(?:(?:[^\]\[?\/<~#`!@$^&*()+=}|:";',>{ ]|%[0-9A-Fa-f]{2})+(?::(?:[^\]\[?\/<~#`!@$^&*()+=}|:";',>{ ]|%[0-9A-Fa-f]{2})*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u00a1-\uffff][a-z0-9\u00a1-\uffff_-]{0,62})?[a-z0-9\u00a1-\uffff]\.)+(?:[a-z\u00a1-\uffff]{2,}\.?))(?::\d{2,5})?(?:[/?#]\S*)?$/i.test(s)},date:function(){var s=!1;return function(o,a){return s||(s=!0,this.settings.debug&&window.console&&console.warn("The `date` method is deprecated and will be removed in version '2.0.0'.\nPlease don't use it, since it relies on the Date constructor, which\nbehaves very differently across browsers and locales. Use `dateISO`\ninstead or one of the locale specific methods in `localizations/`\nand `additional-methods.js`.")),this.optional(a)||!/Invalid|NaN/.test(new Date(o).toString())}}(),dateISO:function(s,o){return this.optional(o)||/^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$/.test(s)},number:function(s,o){return this.optional(o)||/^(?:-?\d+|-?\d{1,3}(?:,\d{3})+)?(?:-?\.\d+)?$/.test(s)},digits:function(s,o){return this.optional(o)||/^\d+$/.test(s)},minlength:function(s,o,a){var l=Array.isArray(s)?s.length:this.getLength(s,o);return this.optional(o)||l>=a},maxlength:function(s,o,a){var l=Array.isArray(s)?s.length:this.getLength(s,o);return this.optional(o)||l<=a},rangelength:function(s,o,a){var l=Array.isArray(s)?s.length:this.getLength(s,o);return this.optional(o)||l>=a[0]&&l<=a[1]},min:function(s,o,a){return this.optional(o)||s>=a},max:function(s,o,a){return this.optional(o)||s<=a},range:function(s,o,a){return this.optional(o)||s>=a[0]&&s<=a[1]},step:function(s,o,a){var l=e(o).attr("type"),c="Step attribute on input type "+l+" is not supported.",u=["text","number","range"],f=new RegExp("\\b"+l+"\\b"),h=l&&!f.test(u.join()),p=function(w){var y=(""+w).match(/(?:\.(\d+))?$/);return y&&y[1]?y[1].length:0},m=function(w){return Math.round(w*Math.pow(10,S))},v=!0,S;if(h)throw new Error(c);return S=p(a),(p(s)>S||m(s)%m(a)!==0)&&(v=!1),this.optional(o)||v},equalTo:function(s,o,a){var l=e(a);return this.settings.onfocusout&&l.not(".validate-equalTo-blur").length&&l.addClass("validate-equalTo-blur").on("blur.validate-equalTo",function(){e(o).valid()}),s===l.val()},remote:function(s,o,a,l){if(this.optional(o))return"dependency-mismatch";l=typeof l=="string"&&l||"remote";var c=this.previousValue(o,l),u,f,h;return this.settings.messages[o.name]||(this.settings.messages[o.name]={}),c.originalMessage=c.originalMessage||this.settings.messages[o.name][l],this.settings.messages[o.name][l]=c.message,a=typeof a=="str
8ing"&&{url:a}||a,h=e.param(e.extend({data:s},a.data)),c.valid!==null&&c.old===h?c.valid:(c.old=h,c.valid=null,u=this,this.startRequest(o),f={},f[o.name]=s,e.ajax(e.extend(!0,{mode:"abort",port:this.elementAjaxPort(o),dataType:"json",data:f,context:u.currentForm,success:function(p){var m=p===!0||p==="true",v,S,w;u.settings.messages[o.name][l]=c.originalMessage,m?(w=u.formSubmitted,u.toHide=u.errorsFor(o),u.formSubmitted=w,u.successList.push(o),u.invalid[o.name]=!1,u.showErrors()):(v={},S=p||u.defaultMessage(o,{method:l,parameters:s}),v[o.name]=c.message=S,u.invalid[o.name]=!0,u.showErrors(v)),c.valid=m,u.stopRequest(o,m)}},a)),"pending")}}});var i={},r;return e.ajaxPrefilter?e.ajaxPrefilter(function(s,o,a){var l=s.port;s.mode==="abort"&&(e.ajaxAbort(l),i[l]=a)}):(r=e.ajax,e.ajax=function(s){var o=("mode"in s?s:e.ajaxSettings).mode,a=("port"in s?s:e.ajaxSettings).port;return o==="abort"?(e.ajaxAbort(a),i[a]=r.apply(this,arguments),i[a]):r.apply(this,arguments)}),e.ajaxAbort=function(s){i[s]&&(i[s].abort(),delete i[s])},e})})(qr);function ss(n){return n!==null&&typeof n=="object"&&"constructor"in n&&n.constructor===Object}function Gi(n,e){n===void 0&&(n={}),e===void 0&&(e={});const t=["__proto__","constructor","prototype"];Object.keys(e).filter(i=>t.indexOf(i)<0).forEach(i=>{typeof n[i]>"u"?n[i]=e[i]:ss(e[i])&&ss(n[i])&&Object.keys(e[i]).length>0&&Gi(n[i],e[i])})}const hn={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector(){return null},querySelectorAll(){return[]},getElementById(){return null},createEvent(){return{initEvent(){}}},createElement(){return{children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName(){return[]}}},createElementNS(){return{}},importNode(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function Ee(){const n=typeof document<"u"?document:{};return Gi(n,hn),n}const Gr={document:hn,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle(){return{getPropertyValue(){return""}}},Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia(){return{}},requestAnimationFrame(n){return typeof setTimeout>"u"?(n(),null):setTimeout(n,0)},cancelAnimationFrame(n){typeof setTimeout>"u"||clearTimeout(n)}};function pe(){const n=typeof window<"u"?window:{};return Gi(n,Gr),n}function qe(n){return n===void 0&&(n=""),n.trim().split(" ").filter(e=>!!e.trim())}function Wr(n){const e=n;Object.keys(e).forEach(t=>{try{e[t]=null}catch{}try{delete e[t]}catch{}})}function $t(n,e){return e===void 0&&(e=0),setTimeout(n,e)}function Vt(){return Date.now()}function Yr(n){const e=pe();let t;return e.getComputedStyle&&(t=e.getComputedStyle(n,null)),!t&&n.currentStyle&&(t=n.currentStyle),t||(t=n.style),t}function Xr(n,e){e===void 0&&(e="x");const t=pe();let i,r,s;const o=Yr(n);return t.WebKitCSSMatrix?(r=o.transform||o.webkitTransform,r.split(",").length>6&&(r=r.split(", ").map(a=>a.replace(",",".")).join(", ")),s=new t.WebKitCSSMatrix(r==="none"?"":r)):(s=o.MozTransform||o.OTransform||o.MsTransform||o.msTransform||o.transform||o.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),i=s.toString().split(",")),e==="x"&&(t.WebKitCSSMatrix?r=s.m41:i.length===16?r=parseFloat(i[12]):r=parseFloat(i[4])),e==="y"&&(t.WebKitCSSMatrix?r=s.m42:i.length===16?r=parseFloat(i[13]):r=parseFloat(i[5])),r||0}function Et(n){return typeof n=="object"&&n!==null&&n.constructor&&Object.prototype.toString.call(n).slice(8,-1)==="Object"}function Ur(n){return typeof window<"u"&&typeof window.HTMLElement<"u"?n instanceof HTMLElement:n&&(n.nodeType===1||n.nodeType===11)}function Ce(){const n=Object(arguments.length<=0?void 0:arguments[0]),e=["__proto__","constructor","prototype"];for(let t=1;t<arguments.length;t+=1){const i=t<0||arguments.length<=t?void 0:arguments[t];if(i!=null&&!Ur(i)){const r=Object.keys(Object(i)).filter(s=>e.indexOf(s)<0);for(let s=0,o=r.length;s<o;s+=1){const a=r[s],l=Object.getOwnPropertyDescriptor(i,a);l!==void 0&&l.enumerable&&(Et(n[a])&&Et(i[a])?i[a].__swiper__?n[a]=i[a]:Ce(n[a],i[a]):!Et(n[a])&&Et(i[a])?(n[a]={},i[a].__swiper__?n[a]=i[a]:Ce(n[a],i[a])):n[a]=i[a])}}}return n}function Tt(n,e,t){n.style.setProperty(e,t)}function pn(n){let{swiper:e,targetPosition:t,side:i}=n;const r=pe(),s=-e.translate;let o=null,a;const l=e.params.speed;e.wrapperEl.style.scrollSnapType="none",r.cancelAnimationFrame(e.cssModeFrameID);const c=t>s?"next":"prev",u=(h,p)=>c==="next"&&h>=p||c==="prev"&&h<=p,f=()=>{a=new Date().getTime(),o===null&&(o=a);const h=Math.max(Math.min((a-o)/l,1),0),p=.5-Math.cos(h*Math.PI)/2;let m=s+p*(t-s);if(u(m,t)&&(m=t),e.wrapperEl.scrollTo({[i]:m}),u(m,t)){e.wrapperEl.style.overflow="hidden",e.wrapperEl.style.scrollSnapType="",setTimeout(()=>{e.wrapperEl.style.overflow="",e.wrapperEl.scrollTo({[i]:m})}),r.cancelAnimationFrame(e.cssModeFrameID);return}e.cssModeFrameID=r.requestAnimationFrame(f)};f()}function gn(n){return n.querySelector(".swiper-slide-transform")||n.shadowRoot&&n.shadowRoot.querySelector(".swiper-slide-transform")||n}function ze(n,e){e===void 0&&(e="");const t=pe(),i=[...n.children];return t.HTMLSlotElement&&n instanceof HTMLSlotElement&&i.push(...n.assignedElements()),e?i.filter(r=>r.matches(e)):i}function Kr(n,e){const t=[e];for(;t.length>0;){const i=t.shift();if(n===i)return!0;t.push(...i.children,...i.shadowRoot?i.shadowRoot.children:[],...i.assignedElements?i.assignedElements():[])}}function Zr(n,e){const t=pe();let i=e.contains(n);return!i&&t.HTMLSlotElement&&e instanceof HTMLSlotElement&&(i=[...e.assignedElements()].includes(n),i||(i=Kr(n,e))),i}function qt(n){try{console.warn(n);return}catch{}}function xt(n,e){e===void 0&&(e=[]);const t=document.createElement(n);return t.classList.add(...Array.isArray(e)?e:qe(e)),t}function mn(n){const e=pe(),t=Ee(),i=n.getBoundingClientRect(),r=t.body,s=n.clientTop||r.clientTop||0,o=n.clientLeft||r.clientLeft||0,a=n===e?e.scrollY:n.scrollTop,l=n===e?e.scrollX:n.scrollLeft;return{top:i.top+a-s,left:i.left+l-o}}function Jr(n,e){const t=[];for(;n.previousElementSibling;){const i=n.previousElementSibling;e?i.matches(e)&&t.push(i):t.push(i),n=i}return t}function Qr(n,e){const t=[];for(;n.nextElementSibling;){const i=n.nextElementSibling;e?i.matches(e)&&t.push(i):t.push(i),n=i}return t}function Ge(n,e){return pe().getComputedStyle(n,null).getPropertyValue(e)}function Gt(n){let e=n,t;if(e){for(t=0;(e=e.previousSibling)!==null;)e.nodeType===1&&(t+=1);return t}}function Wt(n,e){const t=[];let i=n.parentElement;for(;i;)e?i.matches(e)&&t.push(i):t.push(i),i=i.parentElement;return t}function eo(n,e){function t(i){i.target===n&&(e.call(n,i),n.removeEventListener("transitionend",t))}e&&n.addEventListener("transitionend",t)}function Ii(n,e,t){const i=pe();return n[e==="width"?"offsetWidth":"offsetHeight"]+parseFloat(i.getComputedStyle(n,null).getPropertyValue(e==="width"?"margin-right":"margin-top"))+parseFloat(i.getComputedStyle(n,null).getPropertyValue(e==="width"?"margin-left":"margin-bottom"))}function le(n){return(Array.isArray(n)?n:[n]).filter(e=>!!e)}let ni;function to(){const n=pe(),e=Ee();return{smoothScroll:e.documentElement&&e.documentElement.style&&"scrollBehavior"in e.documentElement.style,touch:!!("ontouchstart"in n||n.DocumentTouch&&e instanceof n.DocumentTouch)}}function vn(){return ni||(ni=to()),ni}let ri;function io(n){let{userAgent:e}=n===void 0?{}:n;const t=vn(),i=pe(),r=i.navigator.platform,s=e||i.navigator.userAgent,o={ios:!1,android:!1},a=i.screen.width,l=i.screen.height,c=s.match(/(Android);?[\s\/]+([\d.]+)?/);let u=s.match(/(iPad).*OS\s([\d_]+)/);const f=s.match(/(iPod)(.*OS\s([\d_]+))?/),h=!u&&s.match(/(iPhone\sOS|iOS)\s([\d_]+)/),p=r==="Win32";let m=r==="MacIntel";const v=["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"];return!u&&m&&t.touch&&v.indexOf(`${a}x${l}`)>=0&&(u=s.match(/(Version)\/([\d.]+)/),u||(u=[0,1,"13_0_0"]),m=!1),c&&!p&&(o.os="android",o.android=!0),(u||h||f)&&(o.os="ios",o.ios=!0),o}function bn(n){return n===void 0&&(n={}),ri||(ri=io(n)),ri}let oi;function so(){const n=pe(),e=bn();let t=!1;function i(){const a=n.navigator.userAgent.toLowerCase();return a.indexOf("safari")>=0&&a.indexOf("chrome")<0&&a.indexOf("android")<0}if(i()){const a=String(n.navigator.userAgent);if(a.includes("Version/")){const[l,c]=a.split("Version/")[1].split(" ")[0].split(".").map(u=>Number(u));t=l<16||l===16&&c<2}}
8const r=/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(n.navigator.userAgent),s=i(),o=s||r&&e.ios;return{isSafari:t||s,needPerspectiveFix:t,need3dFix:o,isWebView:r}}function yn(){return oi||(oi=so()),oi}function no(n){let{swiper:e,on:t,emit:i}=n;const r=pe();let s=null,o=null;const a=()=>{!e||e.destroyed||!e.initialized||(i("beforeResize"),i("resize"))},l=()=>{!e||e.destroyed||!e.initialized||(s=new ResizeObserver(f=>{o=r.requestAnimationFrame(()=>{const{width:h,height:p}=e;let m=h,v=p;f.forEach(S=>{let{contentBoxSize:w,contentRect:y,target:x}=S;x&&x!==e.el||(m=y?y.width:(w[0]||w).inlineSize,v=y?y.height:(w[0]||w).blockSize)}),(m!==h||v!==p)&&a()})}),s.observe(e.el))},c=()=>{o&&r.cancelAnimationFrame(o),s&&s.unobserve&&e.el&&(s.unobserve(e.el),s=null)},u=()=>{!e||e.destroyed||!e.initialized||i("orientationchange")};t("init",()=>{if(e.params.resizeObserver&&typeof r.ResizeObserver<"u"){l();return}r.addEventListener("resize",a),r.addEventListener("orientationchange",u)}),t("destroy",()=>{c(),r.removeEventListener("resize",a),r.removeEventListener("orientationchange",u)})}function ro(n){let{swiper:e,extendParams:t,on:i,emit:r}=n;const s=[],o=pe(),a=function(u,f){f===void 0&&(f={});const h=o.MutationObserver||o.WebkitMutationObserver,p=new h(m=>{if(e.__preventObserver__)return;if(m.length===1){r("observerUpdate",m[0]);return}const v=function(){r("observerUpdate",m[0])};o.requestAnimationFrame?o.requestAnimationFrame(v):o.setTimeout(v,0)});p.observe(u,{attributes:typeof f.attributes>"u"?!0:f.attributes,childList:e.isElement||(typeof f.childList>"u"?!0:f).childList,characterData:typeof f.characterData>"u"?!0:f.characterData}),s.push(p)},l=()=>{if(e.params.observer){if(e.params.observeParents){const u=Wt(e.hostEl);for(let f=0;f<u.length;f+=1)a(u[f])}a(e.hostEl,{childList:e.params.observeSlideChildren}),a(e.wrapperEl,{attributes:!1})}},c=()=>{s.forEach(u=>{u.disconnect()}),s.splice(0,s.length)};t({observer:!1,observeParents:!1,observeSlideChildren:!1}),i("init",l),i("destroy",c)}var oo={on(n,e,t){const i=this;if(!i.eventsListeners||i.destroyed||typeof e!="function")return i;const r=t?"unshift":"push";return n.split(" ").forEach(s=>{i.eventsListeners[s]||(i.eventsListeners[s]=[]),i.eventsListeners[s][r](e)}),i},once(n,e,t){const i=this;if(!i.eventsListeners||i.destroyed||typeof e!="function")return i;function r(){i.off(n,r),r.__emitterProxy&&delete r.__emitterProxy;for(var s=arguments.length,o=new Array(s),a=0;a<s;a++)o[a]=arguments[a];e.apply(i,o)}return r.__emitterProxy=e,i.on(n,r,t)},onAny(n,e){const t=this;if(!t.eventsListeners||t.destroyed||typeof n!="function")return t;const i=e?"unshift":"push";return t.eventsAnyListeners.indexOf(n)<0&&t.eventsAnyListeners[i](n),t},offAny(n){const e=this;if(!e.eventsListeners||e.destroyed||!e.eventsAnyListeners)return e;const t=e.eventsAnyListeners.indexOf(n);return t>=0&&e.eventsAnyListeners.splice(t,1),e},off(n,e){const t=this;return!t.eventsListeners||t.destroyed||!t.eventsListeners||n.split(" ").forEach(i=>{typeof e>"u"?t.eventsListeners[i]=[]:t.eventsListeners[i]&&t.eventsListeners[i].forEac
8h((r,s)=>{(r===e||r.__emitterProxy&&r.__emitterProxy===e)&&t.eventsListeners[i].splice(s,1)})}),t},emit(){const n=this;if(!n.eventsListeners||n.destroyed||!n.eventsListeners)return n;let e,t,i;for(var r=arguments.length,s=new Array(r),o=0;o<r;o++)s[o]=arguments[o];return typeof s[0]=="string"||Array.isArray(s[0])?(e=s[0],t=s.slice(1,s.length),i=n):(e=s[0].events,t=s[0].data,i=s[0].context||n),t.unshift(i),(Array.isArray(e)?e:e.split(" ")).forEach(l=>{n.eventsAnyListeners&&n.eventsAnyListeners.length&&n.eventsAnyListeners.forEach(c=>{c.apply(i,[l,...t])}),n.eventsListeners&&n.eventsListeners[l]&&n.eventsListeners[l].forEach(c=>{c.apply(i,t)})}),n}};function ao(){const n=this;let e,t;const i=n.el;typeof n.params.width<"u"&&n.params.width!==null?e=n.params.width:e=i.clientWidth,typeof n.params.height<"u"&&n.params.height!==null?t=n.params.height:t=i.clientHeight,!(e===0&&n.isHorizontal()||t===0&&n.isVertical())&&(e=e-parseInt(Ge(i,"padding-left")||0,10)-parseInt(Ge(i,"padding-right")||0,10),t=t-parseInt(Ge(i,"padding-top")||0,10)-parseInt(Ge(i,"padding-bottom")||0,10),Number.isNaN(e)&&(e=0),Number.isNaN(t)&&(t=0),Object.assign(n,{width:e,height:t,size:n.isHorizontal()?e:t}))}function lo(){const n=this;function e(_,I){return parseFloat(_.getPropertyValue(n.getDirectionLabel(I))||0)}const t=n.params,{wrapperEl:i,slidesEl:r,size:s,rtlTranslate:o,wrongRTL:a}=n,l=n.virtual&&t.virtual.enabled,c=l?n.virtual.slides.length:n.slides.length,u=ze(r,`.${n.params.slideClass}, swiper-slide`),f=l?n.virtual.slides.length:u.length;let h=[];const p=[],m=[];let v=t.slidesOffsetBefore;typeof v=="function"&&(v=t.slidesOffsetBefore.call(n));let S=t.slidesOffsetAfter;typeof S=="function"&&(S=t.slidesOffsetAfter.call(n));const w=n.snapGrid.length,y=n.slidesGrid.length;let x=t.spaceBetween,P=-v,M=0,D=0;if(typeof s>"u")return;typeof x=="string"&&x.indexOf("%")>=0?x=parseFloat(x.replace("%",""))/100*s:typeof x=="string"&&(x=parseFloat(x)),n.virtualSize=-x,u.forEach(_=>{o?_.style.marginLeft="":_.style.marginRight="",_.style.marginBottom="",_.style.marginTop=""}),t.centeredSlides&&t.cssMode&&(Tt(i,"--swiper-centered-offset-before",""),Tt(i,"--swiper-centered-offset-after",""));const k=t.grid&&t.grid.rows>1&&n.grid;k?n.grid.initSlides(u):n.grid&&n.grid.unsetSlides();let B;const W=t.slidesPerView==="auto"&&t.breakpoints&&Object.keys(t.breakpoints).filter(_=>typeof t.breakpoints[_].slidesPerView<"u").length>0;for(let _=0;_<f;_+=1){B=0;let I;if(u[_]&&(I=u[_]),k&&n.grid.updateSlide(_,I,u),!(u[_]&&Ge(I,"display")==="none")){if(t.slidesPerView==="auto"){W&&(u[_].style[n.getDirectionLabel("width")]="");const L=getComputedStyle(I),A=I.style.transform,F=I.style.webkitTransform;if(A&&(I.style.transform="none"),F&&(I.style.webkitTransform="none"),t.roundLengths)B=n.isHorizontal()?Ii(I,"width"):Ii(I,"height");else{const q=e(L,"width"),N=e(L,"padding-left"),J=e(L,"padding-right"),Y=e(L,"margin-left"),U=e(L,"margin-right"),ue=L.getPropertyValue("box-sizing");if(ue&&ue==="border-box")B=q+Y+U;else{const{clientWidth:Fe,offsetWidth:nt}=I;B=q+N+J+Y+U+(nt-Fe)}}A&&(I.style.transform=A),F&&(I.style.webkitTransform=F),t.roundLengths&&(B=Math.floor(B))}else B=(s-(t.slidesPerView-1)*x)/t.slidesPerView,t.roundLengths&&(B=Math.floor(B)),u[_]&&(u[_].style[n.getDirectionLabel("width")]=`${B}px`);u[_]&&(u[_].swiperSlideSize=B),m.push(B),t.centeredSlides?(P=P+B/2+M/2+x,M===0&&_!==0&&(P=P-s/2-x),_===0&&(P=P-s/2-x),Math.abs(P)<1/1e3&&(P=0),t.roundLengths&&(P=Math.floor(P)),D%t.slidesPerGroup===0&&h.push(P),p.push(P)):(t.roundLengths&&(P=Math.floor(P)),(D-Math.min(n.params.slidesPerGroupSkip,D))%n.params.slidesPerGroup===0&&h.push(P),p.push(P),P=P+B+x),n.virtualSize+=B+x,M=B,D+=1}}if(n.virtualSize=Math.max(n.virtualSize,s)+S,o&&a&&(t.effect==="slide"||t.effect==="coverflow")&&(i.style.width=`${n.virtualSize+x}px`),t.setWrapperSize&&(i.style[n.getDirectionLabel("width")]=`${n.virtualSize+x}px`),k&&n.grid.updateWrapperSize(B,h),!t.centeredSlides){const _=[];for(let I=0;I<h.length;I+=1){let L=h[I];t.roundLengths&&(L=Math.floor(L)),h[I]<=n.virtualSize-s&&_.push(L)}h=_,Math.floor(n.virtualSize-s)-Math.floor(h[h.length-1])>1&&h.push(n.virtualSize-s)}if(l&&t.loop){const _=m[0]+x;if(t.slidesPerGroup>1){const I=Math.ceil((n.virtual.slidesBefore+n.virtual.slidesAfter)/t.slidesPerGroup),L=_*t.slidesPerGroup;for(let A=0;A<I;A+=1)h.push(h[h.length-1]+L)}for(let I=0;I<n.virtual.slidesBefore+n.virtual.slidesAfter;I+=1)t.slidesPerGroup===1&&h.push(h[h.length-1]+_),p.push(p[p.length-1]+_),n.virtualSize+=_}if(h.length===0&&(h=[0]),x!==0){const _=n.isHorizontal()&&o?"marginLeft":n.getDirectionLabel("marginRight");u.filter((I,L)=>
vendor: 7,920 bytes, line 8
8!t.cssMode||t.loop?!0:L!==u.length-1).forEach(I=>{I.style[_]=`${x}px`})}if(t.centeredSlides&&t.centeredSlidesBounds){let _=0;m.forEach(L=>{_+=L+(x||0)}),_-=x;const I=_>s?_-s:0;h=h.map(L=>L<=0?-v:L>I?I+S:L)}if(t.centerInsufficientSlides){let _=0;m.forEach(L=>{_+=L+(x||0)}),_-=x;const I=(t.slidesOffsetBefore||0)+(t.slidesOffsetAfter||0);if(_+I<s){const L=(s-_-I)/2;h.forEach((A,F)=>{h[F]=A-L}),p.forEach((A,F)=>{p[F]=A+L})}}if(Object.assign(n,{slides:u,snapGrid:h,slidesGrid:p,slidesSizesGrid:m}),t.centeredSlides&&t.cssMode&&!t.centeredSlidesBounds){Tt(i,"--swiper-centered-offset-before",`${-h[0]}px`),Tt(i,"--swiper-centered-offset-after",`${n.size/2-m[m.length-1]/2}px`);const _=-n.snapGrid[0],I=-n.slidesGrid[0];n.snapGrid=n.snapGrid.map(L=>L+_),n.slidesGrid=n.slidesGrid.map(L=>L+I)}if(f!==c&&n.emit("slidesLengthChange"),h.length!==w&&(n.params.watchOverflow&&n.checkOverflow(),n.emit("snapGridLengthChange")),p.length!==y&&n.emit("slidesGridLengthChange"),t.watchSlidesProgress&&n.updateSlidesOffset(),n.emit("slidesUpdated"),!l&&!t.cssMode&&(t.effect==="slide"||t.effect==="fade")){const _=`${t.containerModifierClass}backface-hidden`,I=n.el.classList.contains(_);f<=t.maxBackfaceHiddenSlides?I||n.el.classList.add(_):I&&n.el.classList.remove(_)}}function co(n){const e=this,t=[],i=e.virtual&&e.params.virtual.enabled;let r=0,s;typeof n=="number"?e.setTransition(n):n===!0&&e.setTransition(e.params.speed);const o=a=>i?e.slides[e.getSlideIndexByData(a)]:e.slides[a];if(e.params.slidesPerView!=="auto"&&e.params.slidesPerView>1)if(e.params.centeredSlides)(e.visibleSlides||[]).forEach(a=>{t.push(a)});else for(s=0;s<Math.ceil(e.params.slidesPerView);s+=1){const a=e.activeIndex+s;if(a>e.slides.length&&!i)break;t.push(o(a))}else t.push(o(e.activeIndex));for(s=0;s<t.length;s+=1)if(typeof t[s]<"u"){const a=t[s].offsetHeight;r=a>r?a:r}(r||r===0)&&(e.wrapperEl.style.height=`${r}px`)}function uo(){const n=this,e=n.slides,t=n.isElement?n.isHorizontal()?n.wrapperEl.offsetLeft:n.wrapperEl.offsetTop:0;for(let i=0;i<e.length;i+=1)e[i].swiperSlideOffset=(n.isHorizontal()?e[i].offsetLeft:e[i].offsetTop)-t-n.cssOverflowAdjustment()}const ns=(n,e,t)=>{e&&!n.classList.contains(t)?n.classList.add(t):!e&&n.classList.contains(t)&&n.classList.remove(t)};function fo(n){n===void 0&&(n=this&&this.translate||0);const e=this,t=e.params,{slides:i,rtlTranslate:r,snapGrid:s}=e;if(i.length===0)return;typeof i[0].swiperSlideOffset>"u"&&e.updateSlidesOffset();let o=-n;r&&(o=n),e.visibleSlidesIndexes=[],e.visibleSlides=[];let a=t.spaceBetween;typeof a=="string"&&a.indexOf("%")>=0?a=parseFloat(a.replace("%",""))/100*e.size:typeof a=="string"&&(a=parseFloat(a));for(let l=0;l<i.length;l+=1){const c=i[l];let u=c.swiperSlideOffset;t.cssMode&&t.centeredSlides&&(u-=i[0].swiperSlideOffset);const f=(o+(t.centeredSlides?e.minTranslate():0)-u)/(c.swiperSlideSize+a),h=(o-s[0]+(t.centeredSlides?e.minTranslate():0)-u)/(c.swiperSlideSize+a),p=-(o-u),m=p+e.slidesSizesGrid[l],v=p>=0&&p<=e.size-e.slidesSizesGrid[l],S=p>=0&&p<e.size-1||m>1&&m<=e.size||p<=0&&m>=e.size;S&&(e.visibleSlides.push(c),e.visibleSlidesIndexes.push(l)),ns(c,S,t.slideVisibleClass),ns(c,v,t.slideFullyVisibleClass),c.progress=r?-f:f,c.originalProgress=r?-h:h}}function ho(n){const e=this;if(typeof n>"u"){const u=e.rtlTranslate?-1:1;n=e&&e.translate&&e.translate*u||0}const t=e.params,i=e.maxTranslate()-e.minTranslate();let{progress:r,isBeginning:s,isEnd:o,progressLoop:a}=e;const l=s,c=o;if(i===0)r=0,s=!0,o=!0;else{r=(n-e.minTranslate())/i;const u=Math.abs(n-e.minTranslate())<1,f=Math.abs(n-e.maxTranslate())<1;s=u||r<=0,o=f||r>=1,u&&(r=0),f&&(r=1)}if(t.loop){const u=e.getSlideIndexByData(0),f=e.getSlideIndexByData(e.slides.length-1),h=e.slidesGrid[u],p=e.slidesGrid[f],m=e.slidesGrid[e.slidesGrid.length-1],v=Math.abs(n);v>=h?a=(v-h)/m:a=(v+m-p)/m,a>1&&(a-=1)}Object.assign(e,{progress:r,progressLoop:a,isBeginning:s,isEnd:o}),(t.watchSlidesProgress||t.centeredSlides&&t.autoHeight)&&e.updateSlidesProgress(n),s&&!l&&e.emit("reachBeginning toEdge"),o&&!c&&e.emit("reachEnd toEdge"),(l&&!s||c&&!o)&&e.emit("fromEdge"),e.emit("progress",r)}const ai=(n,e,t)=>{e&&!n.classList.contains(t)?n.classList.add(t):!e&&n.classList.contains(t)&&n.classList.remove(t)};function po(){const n=this,{slides:e,params:t,slidesEl:i,activeIndex:r}=n,s=n.virtual&&t.virtual.enabled,o=n.grid&&t.grid&&t.grid.rows>1,a=f=>ze(i,`.${t.slideClass}${f}, swiper-slide${f}`)[0];let l,c,u;if(s)if(t.loop){let f=r-n.virtual.slidesBefore;f<0&&(f=n.virtual.slides.length+f),f>=n.virtual.slides.length&&(f-=n.virtual.slides.length),l=a(`[data-swiper-slide-index="${f}"]`)}else l=a(`[data-swiper-slide-index="${r}"]`);else o?(l=e.find(f=>f.column===r),u=e.find(f=>f.column===r+1),c=e.find(f=>f.column===r-1)):l=e[r];l&&(o||(u=Qr(l,`.${t.slideClass}, swiper-slide`)[0],t.loop&&!u&&(u=e[0]),c=Jr(l,`.${t.slideClass}, swiper-slide`)[0],t.loop&&!c===0&&(c=e[e.length-1]))),e.forEach(f=>{ai(f,f===l,t.slideActiveClass),ai(f,f===u,t.slideNextClass),ai(f,f===c,t.slidePrevClass)}),n.emitSlidesClasses()}const Nt=(n,e)=>{if(!n||n.destroyed||!n.params)return;const t=()=>n.isElement?"swiper-slide":`.${n.params.slideClass}`,i=e.closest(t());if(i){let r=i.querySelector(`.${n.params.lazyPreloaderClass}`);!r&&n.isElement&&(i.shadowRoot?r=i.shadowRoot.querySelector(`.${n.params.lazyPreloaderClass}`):requestAnimationFrame(()=>{i.shadowRoot&&(r=i.shadowRoot.querySelector(`.${n.params.lazyPreloaderClass}`),r&&r.remove())})),r&&r.remove()}},li=(n,e)=>{if(!n.slides[e])return;const t=n.slides[e].querySelector('[loading="lazy"]');t&&t.removeAttribute("loading")},Ai=n=>{if(!n||n.destroyed||!n.params)return;let e=n.params.lazyPreloadPrevNext;const t=n.slides.length;if(!t||!e||e<0)return;e=Math.min(e,t);const i=n.params.slidesPerView==="auto"?n.slidesPerViewDynamic():Math.ceil(n.params.slidesPerView),r=n.activeIndex;if(n.params.grid&&n.params.grid.rows>1){const o=r,a=[o-e];a.push(...Array.from({length:e}).map((l,c)=>o+i+c)),n.slides.forEach((l,c)=>{a.includes(l.column)&&li(n,c)});return}const s=r+i-1;if(n.params.rewind||n.params.loop)for(let o=r-e;o<=s+e;o+=1){const a=(o%t+t)%t;(a<r||a>s)&&li(n,a)}else for(let o=Math.max(r-e,0);o<=Math.min(s+e,t-1);o+=1)o!==r&&(o>s||o<r)&&li(n,o)};function go(n){const{slidesGrid:e,params:t}=n,i=n.rtlTranslate?n.translate:-n.translate;let r;for(let s=0;s<e.length;s+=1)typeof e[s+1]<"u"?i>=e[s]&&i<e[s+1]-(e[s+1]-e[s])/2?r=s:i>=e[s]&&i<e[s+1]&&(r=s+1):i>=e[s]&&(r=s);return t.normalizeSlideIndex&&(r<0||typeof r>"u")&&(r=0),r}function mo(n){const e=this,t=e.rtlTranslate?e.translate:-e.translate,{snapGrid:i,params:r,activeIndex:s,realIndex:o,snapIndex:a}=e;let l=n,c;const u=p=>{let m=p-e.virtual.slidesBefore;return m<0&&(m=e.virtual.slides.length+m),m>=e.virtual.slides.length&&(m-=e.virtual.slides.length),m};if(typeof l>"u"&&(l=go(e)),i.indexOf(t)>=0)c=i.indexOf(t);else{const p=Math.min(r.slidesPerGroupSkip,l);c=p+Math.floor((l-p)/r.slidesPerGroup)}if(c>=i.length&&(c=i.length-1),l===s&&!e.params.loop){c!==a&&(e.snapIndex=c,e.emit("snapIndexChange"));return}if(l===s&&e.params.loop&&e.virtual&&e.params.virtual.enabled){e.realIndex=u(l);return}const f=e.grid&&r.grid&&r.grid.rows>1;let h;if(e.virtual&&r.virtual.enabled&&r.loop)h=u(l);else if(f){const p=e.slides.find(v=>v.column===l);let m=parseInt(p.getAttribute("data-swiper-slide-index"),10);Number.isNaN(m)&&(m=Math.max(e.slides.indexOf(p),0)),h=Math.floor(m/r.grid.rows)}else if(e.slides[l]){const p=e.slides[l].getAttribute("data-swiper-slide-index");p?h=parseInt(p,10):h=l}else h=l;Object.assign(e,{previousSnapIndex:a,snapIndex:c,previousRealIndex:o,realIndex:h,previousIndex:s,activeIndex:l}),e.initialized&&Ai(e),e.emit("activeIndexChange"),e.emit("snapIndexChange"),(e.initialized||e.params.runCallbacksOnInit)&&(o!==h&&e.emit("realIndexChange"),e.emit("slideChange"))}function vo(n,e){const t=this,i=t.params;let r=n.closest(`.${i.slideClass}, swiper-slide`);!r&&t.isElement&&e&&e.length>
81&&e.includes(n)&&[...e.slice(e.indexOf(n)+1,e.length)].forEach(a=>{!r&&a.matches&&a.matches(`.${i.slideClass}, swiper-slide`)&&(r=a)});let s=!1,o;if(r){for(let a=0;a<t.slides.length;a+=1)if(t.slides[a]===r){s=!0,o=a;break}}if(r&&s)t.clickedSlide=r,t.virtual&&t.params.virtual.enabled?t.clickedIndex=parseInt(r.getAttribute("data-swiper-slide-index"),10):t.clickedIndex=o;else{t.clickedSlide=void 0,t.clickedIndex=void 0;return}i.slideToClickedSlide&&t.clickedIndex!==void 0&&t.clickedIndex!==t.activeIndex&&t.slideToClickedSlide()}var bo={updateSize:ao,updateSlides:lo,updateAutoHeight:co,updateSlidesOffset:uo,updateSlidesProgress:fo,updateProgress:ho,updateSlidesClasses:po,updateActiveIndex:mo,updateClickedSlide:vo};function yo(n){n===void 0&&(n=this.isHorizontal()?"x":"y");const e=this,{params:t,rtlTranslate:i,translate:r,wrapperEl:s}=e;if(t.virtualTranslate)return i?-r:r;if(t.cssMode)return r;let o=Xr(s,n);return o+=e.cssOverflowAdjustment(),i&&(o=-o),o||0}function wo(n,e){const t=this,{rtlTranslate:i,params:r,wrapperEl:s,progress:o}=t;let a=0,l=0;const c=0;t.isHorizontal()?a=i?-n:n:l=n,r.roundLengths&&(a=Math.floor(a),l=Math.floor(l)),t.previousTranslate=t.translate,t.translate=t.isHorizontal()?a:l,r.cssMode?s[t.isHorizontal()?"scrollLeft":"scrollTop"]=t.isHorizontal()?-a:-l:r.virtualTranslate||(t.isHorizontal()?a-=t.cssOverflowAdjustment():l-=t.cssOverflowAdjustment(),s.style.transform=`translate3d(${a}px, ${l}px, ${c}px)`);let u;const f=t.maxTranslate()-t.minTranslate();f===0?u=0:u=(n-t.minTranslate())/f,u!==o&&t.updateProgress(n),t.emit("setTranslate",t.translate,e)}function xo(){return-this.snapGrid[0]}function So(){return-this.snapGrid[this.snapGrid.length-1]}function Co(n,e,t,i,r){n===void 0&&(n=0),e===void 0&&(e=this.params.speed),t===void 0&&(t=!0),i===void 0&&(i=!0);const s=this,{params:o,wrapperEl:a}=s;if(s.animating&&o.preventInteractionOnTransition)return!1;const l=s.minTranslate(),c=s.maxTranslate();let u;if(i&&n>l?u=l:i&&n<c?u=c:u=n,s.updateProgress(u),o.cssMode){const f=s.isHorizontal();if(e===0)a[f?"scrollLeft":"scrollTop"]=-u;else{if(!s.support.smoothScroll)return pn({swiper:s,targetPosition:-u,side:f?"left":"top"}),!0;
vendor: 6,264 bytes, line 8
8a.scrollTo({[f?"left":"top"]:-u,behavior:"smooth"})}return!0}return e===0?(s.setTransition(0),s.setTranslate(u),t&&(s.emit("beforeTransitionStart",e,r),s.emit("transitionEnd"))):(s.setTransition(e),s.setTranslate(u),t&&(s.emit("beforeTransitionStart",e,r),s.emit("transitionStart")),s.animating||(s.animating=!0,s.onTranslateToWrapperTransitionEnd||(s.onTranslateToWrapperTransitionEnd=function(h){!s||s.destroyed||h.target===this&&(s.wrapperEl.removeEventListener("transitionend",s.onTranslateToWrapperTransitionEnd),s.onTranslateToWrapperTransitionEnd=null,delete s.onTranslateToWrapperTransitionEnd,s.animating=!1,t&&s.emit("transitionEnd"))}),s.wrapperEl.addEventListener("transitionend",s.onTranslateToWrapperTransitionEnd))),!0}var Eo={getTranslate:yo,setTranslate:wo,minTranslate:xo,maxTranslate:So,translateTo:Co};function To(n,e){const t=this;t.params.cssMode||(t.wrapperEl.style.transitionDuration=`${n}ms`,t.wrapperEl.style.transitionDelay=n===0?"0ms":""),t.emit("setTransition",n,e)}function wn(n){let{swiper:e,runCallbacks:t,direction:i,step:r}=n;const{activeIndex:s,previousIndex:o}=e;let a=i;if(a||(s>o?a="next":s<o?a="prev":a="reset"),e.emit(`transition${r}`),t&&s!==o){if(a==="reset"){e.emit(`slideResetTransition${r}`);return}e.emit(`slideChangeTransition${r}`),a==="next"?e.emit(`slideNextTransition${r}`):e.emit(`slidePrevTransition${r}`)}}function Po(n,e){n===void 0&&(n=!0);const t=this,{params:i}=t;i.cssMode||(i.autoHeight&&t.updateAutoHeight(),wn({swiper:t,runCallbacks:n,direction:e,step:"Start"}))}function Oo(n,e){n===void 0&&(n=!0);const t=this,{params:i}=t;t.animating=!1,!i.cssMode&&(t.setTransition(0),wn({swiper:t,runCallbacks:n,direction:e,step:"End"}))}var Mo={setTransition:To,transitionStart:Po,transitionEnd:Oo};function Lo(n,e,t,i,r){n===void 0&&(n=0),t===void 0&&(t=!0),typeof n=="string"&&(n=parseInt(n,10));const s=this;let o=n;o<0&&(o=0);const{params:a,snapGrid:l,slidesGrid:c,previousIndex:u,activeIndex:f,rtlTranslate:h,wrapperEl:p,enabled:m}=s;if(!m&&!i&&!r||s.destroyed||s.animating&&a.preventInteractionOnTransition)return!1;typeof e>"u"&&(e=s.params.speed);const v=Math.min(s.params.slidesPerGroupSkip,o);let S=v+Math.floor((o-v)/s.params.slidesPerGroup);S>=l.length&&(S=l.length-1);const w=-l[S];if(a.normalizeSlideIndex)for(let k=0;k<c.length;k+=1){const B=-Math.floor(w*100),W=Math.floor(c[k]*100),_=Math.floor(c[k+1]*100);typeof c[k+1]<"u"?B>=W&&B<_-(_-W)/2?o=k:B>=W&&B<_&&(o=k+1):B>=W&&(o=k)}if(s.initialized&&o!==f&&(!s.allowSlideNext&&(h?w>s.translate&&w>s.minTranslate():w<s.translate&&w<s.minTranslate())||!s.allowSlidePrev&&w>s.translate&&w>s.maxTranslate()&&(f||0)!==o))return!1;o!==(u||0)&&t&&s.emit("beforeSlideChangeStart"),s.updateProgress(w);let y;o>f?y="next":o<f?y="prev":y="reset";const x=s.virtual&&s.params.virtual.enabled;if(!(x&&r)&&(h&&-w===s.translate||!h&&w===s.translate))return s.updateActiveIndex(o),a.autoHeight&&s.updateAutoHeight(),s.updateSlidesClasses(),a.effect!=="slide"&&s.setTranslate(w),y!=="reset"&&(s.transitionStart(t,y),s.transitionEnd(t,y)),!1;if(a.cssMode){const k=s.isHorizontal(),B=h?w:-w;if(e===0)x&&(s.wrapperEl.style.scrollSnapType="none",s._immediateVirtual=!0),x&&!s._cssModeVirtualInitialSet&&s.params.initialSlide>0?(s._cssModeVirtualInitialSet=!0,requestAnimationFrame(()=>{p[k?"scrollLeft":"scrollTop"]=B})):p[k?"scrollLeft":"scrollTop"]=B,x&&requestAnimationFrame(()=>{s.wrapperEl.style.scrollSnapType="",s._immediateVirtual=!1});else{if(!s.support.smoothScroll)return pn({swiper:s,targetPosition:B,side:k?"left":"top"}),!0;p.scrollTo({[k?"left":"top"]:B,behavior:"smooth"})}return!0}const D=yn().isSafari;return x&&!r&&D&&s.isElement&&s.virtual.update(!1,!1,o),s.setTransition(e),s.setTranslate(w),s.updateActiveIndex(o),s.updateSlidesClasses(),s.emit("beforeTransitionStart",e,i),s.transitionStart(t,y),e===0?s.transitionEnd(t,y):s.animating||(s.animating=!0,s.onSlideToWrapperTransitionEnd||(s.onSlideToWrapperTransitionEnd=function(B){!s||s.destroyed||B.target===this&&(s.wrapperEl.removeEventListener("transitionend",s.onSlideToWrapperTransitionEnd),s.onSlideToWrapperTransitionEnd=null,delete s.onSlideToWrapperTransitionEnd,s.transitionEnd(t,y))}),s.wrapperEl.addEventListener("transitionend",s.onSlideToWrapperTransitionEnd)),!0}function Io(n,e,t,i){n===void 0&&(n=0),t===void 0&&(t=!0),typeof n=="string"&&(n=parseInt(n,10));const r=this;if(r.destroyed)return;typeof e>"u"&&(e=r.params.speed);const s=r.grid&&r.params.grid&&r.params.grid.rows>1;let o=n;if(r.params.loop)if(r.virtual&&r.params.virtual.enabled)o=o+r.virtual.slidesBefore;else{let a;if(s){const h=o*r.params.grid.rows;a=r.slides.find(p=>p.getAttribute("data-swiper-slide-index")*1===h).column}else a=r.getSlideIndexByData(o);const l=s?Math.ceil(r.slides.length/r.params.grid.rows):r.slides.length,{centeredSlides:c}=r.params;let u=r.params.slidesPerView;u==="auto"?u=r.slidesPerViewDynamic():(u=Math.ceil(parseFloat(r.params.slidesPerView,10)),c&&u%2===0&&(u=u+1));let f=l-a<u;if(c&&(f=f||a<Math.ceil(u/2)),i&&c&&r.params.slidesPerView!=="auto"&&!s&&(f=!1),f){const h=c?a<r.activeIndex?"prev":"next":a-r.activeIndex-1<r.params.slidesPerView?"next":"prev";r.loopFix({direction:h,slideTo:!0,activeSlideIndex:h==="next"?a+1:a-l+1,slideRealIndex:h==="next"?r.realIndex:void 0})}if(s){const h=o*r.params.grid.rows;o=r.slides.find(p=>p.getAttribute("data-swiper-slide-index")*1===h).column}else o=r.getSlideIndexByData(o)}return requestAnimationFrame(()=>{r.slideTo(o,e,t,i)}),r}function Ao(n,e,t){e===void 0&&(e=!0);const i=this,{enabled:r,params:s,animating:o}=i;if(!r||i.destroyed)return i;typeof n>"u"&&(n=i.params.speed);let a=s.slidesPerGroup;s.slidesPerView==="auto"&&s.slidesPerGroup===1&&s.slidesPerGroupAuto&&(a=Math.max(i.slidesPerViewDynamic("current",!0),1));const l=i.activeIndex<s.slidesPerGroupSkip?1:a,c=i.virtual&&s.virtual.enabled;if(s.loop){if(o&&!c&&s.loopPreventsSliding)return!1;if(i.loopFix({direction:"next"}),i._clientLeft=i.wrapperEl.clientLeft,i.activeIndex===i.slides.length-1&&s.cssMode)return requestAnimationFrame(()=>{i.slideTo(i.activeIndex+l,n,e,t)}),!0}return s.rewind&&i.isEnd?i.slideTo(0,n,e,t):i.slideTo(i.activeIndex+l,n,e,t)}function ko(n,e,t){e===void 0&&(e=!0);const i=this,{params:r,snapGrid:s,slidesGrid:o,rtlTranslate:a,enabled:l,animating:c}=i;
8if(!l||i.destroyed)return i;typeof n>"u"&&(n=i.params.speed);const u=i.virtual&&r.virtual.enabled;if(r.loop){if(c&&!u&&r.loopPreventsSliding)return!1;i.loopFix({direction:"prev"}),i._clientLeft=i.wrapperEl.clientLeft}const f=a?i.translate:-i.translate;function h(y){return y<0?-Math.floor(Math.abs(y)):Math.floor(y)}const p=h(f),m=s.map(y=>h(y)),v=r.freeMode&&r.freeMode.enabled;let S=s[m.indexOf(p)-1];if(typeof S>"u"&&(r.cssMode||v)){let y;s.forEach((x,P)=>{p>=x&&(y=P)}),typeof y<"u"&&(S=v?s[y]:s[y>0?y-1:y])}let w=0;if(typeof S<"u"&&(w=o.indexOf(S),w<0&&(w=i.activeIndex-1),r.slidesPerView==="auto"&&r.slidesPerGroup===1&&r.slidesPerGroupAuto&&(w=w-i.slidesPerViewDynamic("previous",!0)+1,w=Math.max(w,0))),r.rewind&&i.isBeginning){const y=i.params.virtual&&i.params.virtual.enabled&&i.virtual?i.virtual.slides.length-1:i.slides.length-1;return i.slideTo(y,n,e,t)}else if(r.loop&&i.activeIndex===0&&r.cssMode)return requestAnimationFrame(()=>{i.slideTo(w,n,e,t)}),!0;return i.slideTo(w,n,e,t)}function zo(n,e,t){e===void 0&&(e=!0);const i=this;if(!i.destroyed)return typeof n>"u"&&(n=i.params.speed),i.slideTo(i.activeIndex,n,e,t)}function Do(n,e,t,i){e===void 0&&(e=!0),i===void 0&&(i=.5);const r=this;if(r.destroyed)return;typeof n>"u"&&(n=r.params.speed);let s=r.activeIndex;const o=Math.min(r.params.slidesPerGroupSkip,s),a=o+Math.floor((s-o)/r.params.slidesPerGroup),l=r.rtlTranslate?r.translate:-r.translate;if(l>=r.snapGrid[a]){const c=r.snapGrid[a],u=r.snapGrid[a+1];l-c>(u-c)*i&&(s+=r.params.slidesPerGroup)}else{const c=r.snapGrid[a-1],u=r.snapGrid[a];l-c<=(u-c)*i&&(s-=r.params.slidesPerGroup)}return s=Math.max(s,0),s=Math.min(s,r.slidesGrid.length-1),r.slideTo(s,n,e,t)}function _o(){const n=this;if(n.destroyed)return;const{params:e,slidesEl:t}=n,i=e.slidesPerView==="auto"?n.slidesPerViewDynamic():e.slidesPerView;let r=n.clickedIndex,s;const o=n.isElement?"swiper-slide":`.${e.slideClass}`;if(e.loop){if(n.animating)return;s=parseInt(n.clickedSlide.getAttribute("data-swiper-slide-index"),10),e.centeredSlides?r<n.loopedSlides-i/2||r>n.slides.length-n.loopedSlides+i/2?(n.loopFix(),r=n.getSlideIndex(ze(t,`${o}[data-swiper-slide-index="${s}"]`)[0]),$t(()=>{n.slideTo(r)})):n.slideTo(r):r>n.slides.length-i?(n.loopFix(),r=n.getSlideIndex(ze(t,`${o}[data-swiper-slide-index="${s}"]`)[0]),$t(()=>{n.slideTo(r)})):n.slideTo(r)}else n.slideTo(r)}var Fo={slideTo:Lo,slideToLoop:Io,slideNext:Ao,slidePrev:ko,slideReset:zo,slideToClosest:Do,slideToClickedSlide:_o};function Ro(n,e){const t=this,{params:i,slidesEl:r}=t;if(!i.loop||t.virtual&&t.params.virtual.enabled)return;const s=()=>{ze(r,`.${i.slideClass}, swiper-slide`).forEach((h,p)=>{h.setAttribute("data-swiper-slide-index",p)})},o=t.grid&&i.grid&&i.grid.rows>1,a=i.slidesPerGroup*(o?i.grid.rows:1),l=t.slides.length%a!==0,c=o&&t.slides.length%i.grid.rows!==0,u=f=>{for(let h=0;h<f;h+=1){const p=t.isElement?xt("swiper-slide",[i.slideBlankClass]):xt("div",[i.slideClass,i.slideBlankClass]);t.slidesEl.append(p)}};if(l){if(i.loopAddBlankSlides){const f=a-t.slides.length%a;u(f),t.recalcSlides(),t.updateSlides()}else qt("Swiper Loop Warning: The number of slides is not even to slidesPerGroup, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)");s()}else if(c){if(i.loopAddBlankSlides){const f=i.grid.rows-t.slides.length%i.grid.rows;u(f),t.recalcSlides(),t.updateSlides()}else qt("Swiper Loop Warning: The number of slides is not even to grid.rows, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)");s()}else s();t.loopFix({slideRealIndex:n,direction:i.centeredSlides?void 0:"next",initial:e})}function Bo(n){let{slideRealIndex:e,slideTo:t=!0,direction:i,setTranslate:r,activeSlideIndex:s,initial:o,byController:a,byMousewheel:l}=n===void 0?{}:n;const c=this;if(!c.params.loop)return;c.emit("beforeLoopFix");const{slides:u,allowSlidePrev:f,allowSlideNext:h,slidesEl:p,params:m}=c,{centeredSlides:v,initialSlide:S}=m;if(c.allowSlidePrev=!0,c.allowSlideNext=!0,c.virtual&&m.virtual.enabled){t&&(!m.centeredSlides&&c.snapIndex===0?c.slideTo(c.virtual.slides.length,0,!1,!0):m.centeredSlides&&c.snapIndex<m.slidesPerView?c.slideTo(c.virtual.slides.length+c.snapIndex,0,!1,!0):c.snapIndex===c.snapGrid.length-1&&
vendor: 20,283 bytes, line 8
8c.slideTo(c.virtual.slidesBefore,0,!1,!0)),c.allowSlidePrev=f,c.allowSlideNext=h,c.emit("loopFix");return}let w=m.slidesPerView;w==="auto"?w=c.slidesPerViewDynamic():(w=Math.ceil(parseFloat(m.slidesPerView,10)),v&&w%2===0&&(w=w+1));const y=m.slidesPerGroupAuto?w:m.slidesPerGroup;let x=y;x%y!==0&&(x+=y-x%y),x+=m.loopAdditionalSlides,c.loopedSlides=x;const P=c.grid&&m.grid&&m.grid.rows>1;u.length<w+x||c.params.effect==="cards"&&u.length<w+x*2?qt("Swiper Loop Warning: The number of slides is not enough for loop mode, it will be disabled or not function properly. You need to add more slides (or make duplicates) or lower the values of slidesPerView and slidesPerGroup parameters"):P&&m.grid.fill==="row"&&qt("Swiper Loop Warning: Loop mode is not compatible with grid.fill = `row`");const M=[],D=[],k=P?Math.ceil(u.length/m.grid.rows):u.length,B=o&&k-S<w&&!v;let W=B?S:c.activeIndex;typeof s>"u"?s=c.getSlideIndex(u.find(N=>N.classList.contains(m.slideActiveClass))):W=s;const _=i==="next"||!i,I=i==="prev"||!i;let L=0,A=0;const q=(P?u[s].column:s)+(v&&typeof r>"u"?-w/2+.5:0);if(q<x){L=Math.max(x-q,y);for(let N=0;N<x-q;N+=1){const J=N-Math.floor(N/k)*k;if(P){const Y=k-J-1;for(let U=u.length-1;U>=0;U-=1)u[U].column===Y&&M.push(U)}else M.push(k-J-1)}}else if(q+w>k-x){A=Math.max(q-(k-x*2),y),B&&(A=Math.max(A,w-k+S+1));for(let N=0;N<A;N+=1){const J=N-Math.floor(N/k)*k;P?u.forEach((Y,U)=>{Y.column===J&&D.push(U)}):D.push(J)}}if(c.__preventObserver__=!0,requestAnimationFrame(()=>{c.__preventObserver__=!1}),c.params.effect==="cards"&&u.length<w+x*2&&(D.includes(s)&&D.splice(D.indexOf(s),1),M.includes(s)&&M.splice(M.indexOf(s),1)),I&&M.forEach(N=>{u[N].swiperLoopMoveDOM=!0,p.prepend(u[N]),u[N].swiperLoopMoveDOM=!1}),_&&D.forEach(N=>{u[N].swiperLoopMoveDOM=!0,p.append(u[N]),u[N].swiperLoopMoveDOM=!1}),c.recalcSlides(),m.slidesPerView==="auto"?c.updateSlides():P&&(M.length>0&&I||D.length>0&&_)&&c.slides.forEach((N,J)=>{c.grid.updateSlide(J,N,c.slides)}),m.watchSlidesProgress&&c.updateSlidesOffset(),t){if(M.length>0&&I){if(typeof e>"u"){const N=c.slidesGrid[W],Y=c.slidesGrid[W+L]-N;l?c.setTranslate(c.translate-Y):(c.slideTo(W+Math.ceil(L),0,!1,!0),r&&(c.touchEventsData.startTranslate=c.touchEventsData.startTranslate-Y,c.touchEventsData.currentTranslate=c.touchEventsData.currentTranslate-Y))}else if(r){const N=P?M.length/m.grid.rows:M.length;c.slideTo(c.activeIndex+N,0,!1,!0),c.touchEventsData.currentTranslate=c.translate}}else if(D.length>0&&_)if(typeof e>"u"){const N=c.slidesGrid[W],Y=c.slidesGrid[W-A]-N;l?c.setTranslate(c.translate-Y):(c.slideTo(W-A,0,!1,!0),r&&(c.touchEventsData.startTranslate=c.touchEventsData.startTranslate-Y,c.touchEventsData.currentTranslate=c.touchEventsData.currentTranslate-Y))}else{const N=P?D.length/m.grid.rows:D.length;c.slideTo(c.activeIndex-N,0,!1,!0)}}if(c.allowSlidePrev=f,c.allowSlideNext=h,c.controller&&c.controller.control&&!a){const N={slideRealIndex:e,direction:i,setTranslate:r,activeSlideIndex:s,byController:!0};Array.isArray(c.controller.control)?c.controller.control.forEach(J=>{!J.destroyed&&J.params.loop&&J.loopFix({...N,slideTo:J.params.slidesPerView===m.slidesPerView?t:!1})}):c.controller.control instanceof c.constructor&&c.controller.control.params.loop&&c.controller.control.loopFix({...N,slideTo:c.controller.control.params.slidesPerView===m.slidesPerView?t:!1})}c.emit("loopFix")}function jo(){const n=this,{params:e,slidesEl:t}=n;if(!e.loop||!t||n.virtual&&n.params.virtual.enabled)return;n.recalcSlides();const i=[];n.slides.forEach(r=>{const s=typeof r.swiperSlideIndex>"u"?r.getAttribute("data-swiper-slide-index")*1:r.swiperSlideIndex;i[s]=r}),n.slides.forEach(r=>{r.removeAttribute("data-swiper-slide-index")}),i.forEach(r=>{t.append(r)}),n.recalcSlides(),n.slideTo(n.realIndex,0)}var No={loopCreate:Ro,loopFix:Bo,loopDestroy:jo};function Ho(n){const e=this;if(!e.params.simulateTouch||e.params.watchOverflow&&e.isLocked||e.params.cssMode)return;const t=e.params.touchEventsTarget==="container"?e.el:e.wrapperEl;e.isElement&&(e.__preventObserver__=!0),t.style.cursor="move",t.style.cursor=n?"grabbing":"grab",e.isElement&&requestAnimationFrame(()=>{e.__preventObserver__=!1})}function $o(){const n=this;n.params.watchOverflow&&n.isLocked||n.params.cssMode||(n.isElement&&(n.__preventObserver__=!0),n[n.params.touchEventsTarget==="container"?"el":"wrapperEl"].style.cursor="",n.isElement&&requestAnimationFrame(()=>{n.__preventObserver__=!1}))}var Vo={setGrabCursor:Ho,unsetGrabCursor:$o};function qo(n,e){e===void 0&&(e=this);function t(i){if(!i||i===Ee()||i===pe())return null;i.assignedSlot&&(i=i.assignedSlot);const r=i.closest(n);return!r&&!i.getRootNode?null:r||t(i.getRootNode().host)}return t(e)}function rs(n,e,t){const i=pe(),{params:r}=n,s=r.edgeSwipeDetection,o=r.edgeSwipeThreshold;return s&&(t<=o||t>=i.innerWidth-o)?s==="prevent"?(e.preventDefault(),!0):!1:!0}function Go(n){const e=this,t=Ee();let i=n;i.originalEvent&&(i=i.originalEvent);const r=e.touchEventsData;if(i.type==="pointerdown"){if(r.pointerId!==null&&r.pointerId!==i.pointerId)return;r.pointerId=i.pointerId}else i.type==="touchstart"&&i.targetTouches.length===1&&(r.touchId=i.targetTouches[0].identifier);if(i.type==="touchstart"){rs(e,i,i.targetTouches[0].pageX);return}const{params:s,touches:o,enabled:a}=e;if(!a||!s.simulateTouch&&i.pointerType==="mouse"||e.animating&&s.preventInteractionOnTransition)return;!e.animating&&s.cssMode&&s.loop&&e.loopFix();let l=i.target;if(s.touchEventsTarget==="wrapper"&&!Zr(l,e.wrapperEl)||"which"in i&&i.which===3||"button"in i&&i.button>0||r.isTouched&&r.isMoved)return;const c=!!s.noSwipingClass&&s.noSwipingClass!=="",u=i.composedPath?i.composedPath():i.path;c&&i.target&&i.target.shadowRoot&&u&&(l=u[0]);const f=s.noSwipingSelector?s.noSwipingSelector:`.${s.noSwipingClass}`,h=!!(i.target&&i.target.shadowRoot);if(s.noSwiping&&(h?qo(f,l):l.closest(f))){e.allowClick=!0;return}if(s.swipeHandler&&!l.closest(s.swipeHandler))return;o.currentX=i.pageX,o.currentY=i.pageY;const p=o.currentX,m=o.currentY;if(!rs(e,i,p))return;Object.assign(r,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),o.startX=p,o.startY=m,r.touchStartTime=Vt(),e.allowClick=!0,e.updateSize(),e.swipeDirection=void 0,s.threshold>0&&(r.allowThresholdMove=!1);let v=!0;l.matches(r.focusableElements)&&(v=!1,l.nodeName==="SELECT"&&(r.isTouched=!1)),t.activeElement&&t.activeElement.matches(r.focusableElements)&&t.activeElement!==l&&(i.pointerType==="mouse"||i.pointerType!=="mouse"&&!l.matches(r.focusableElements))&&t.activeElement.blur();const S=v&&e.allowTouchMove&&s.touchStartPreventDefault;(s.touchStartForcePreventDefault||S)&&!l.isContentEditable&&i.preventDefault(),s.freeMode&&s.freeMode.enabled&&e.freeMode&&e.animating&&!s.cssMode&&e.freeMode.onTouchStart(),e.emit("touchStart",i)}function Wo(n){const e=Ee(),t=this,i=t.touchEventsData,{params:r,touches:s,rtlTranslate:o,enabled:a}=t;if(!a||!r.simulateTouch&&n.pointerType==="mouse")return;let l=n;if(l.originalEvent&&(l=l.originalEvent),l.type==="pointermove"&&(i.touchId!==null||l.pointerId!==i.pointerId))return;let c;if(l.type==="touchmove"){if(c=[...l.changedTouches].find(M=>M.identifier===i.touchId),!c||c.identifier!==i.touchId)return}else c=l;if(!i.isTouched){i.startMoving&&i.isScrolling&&t.emit("touchMoveOpposite",l);return}const u=c.pageX,f=c.pageY;if(l.preventedByNestedSwiper){s.startX=u,s.startY=f;return}if(!t.allowTouchMove){l.target.matches(i.focusableElements)||(t.allowClick=!1),i.isTouched&&(Object.assign(s,{startX:u,startY:f,currentX:u,currentY:f}),i.touchStartTime=Vt());return}if(r.touchReleaseOnEdges&&!r.loop)if(t.isVertical()){if(f<s.startY&&t.translate<=t.maxTranslate()||f>s.startY&&t.translate>=t.minTranslate()){i.isTouched=!1,i.isMoved=!1;return}}else{if(o&&(u>s.startX&&-t.translate<=t.maxTranslate()||u<s.startX&&-t.translate>=t.minTranslate()))return;if(!o&&(u<s.startX&&t.translate<=t.maxTranslate()||u>s.startX&&t.translate>=t.minTranslate()))return}if(e.activeElement&&e.activeElement.matches(i.focusableElements)&&e.activeElement!==l.target&&l.pointerType!=="mouse"&&e.activeElement.blur(),e.activeElement&&l.target===e.activeElement&&l.target.matches(i.focusableElements)){i.isMoved=!0,t.allowClick=!1;return}i.allowTouchCallbacks&&t.emit("touchMove",l),s.previousX=s.currentX,s.previousY=s.currentY,s.currentX=u,s.currentY=f;const h=s.currentX-s.startX,p=s.currentY-s.startY;if(t.params.threshold&&Math.sqrt(h**2+p**2)<t.params.threshold)return;if(typeof i.isScrolling>"u"){let M;t.isHorizontal()&&s.currentY===s.startY||t.isVertical()&&s.currentX===s.startX?i.isScrolling=!1:h*h+p*p>=25&&(M=Math.atan2(Math.abs(p),Math.abs(h))*180/Math.PI,i.isScrolling=t.isHorizontal()?M>r.touchAngle:90-M>r.touchAngle)}if(i.isScrolling&&t.emit("touchMoveOpposite",l),typeof i.startMoving>"u"&&(s.currentX!==s.startX||s.currentY!==s.startY)&&(i.startMoving=!0),i.isScrolling||l.type==="touchmove"&&i.preventTouchMoveFromPointerMove){i.isTouched=!1;return}if(!i.startMoving)return;t.allowClick=!1,!r.cssMode&&l.cancelable&&l.preventDefault(),r.touchMoveStopPropagation&&!r.nested&&l.stopPropagation();let m=t.isHorizontal()?h:p,v=t.isHorizontal()?s.currentX-s.previousX:s.currentY-s.previousY;r.oneWayMovement&&(m=Math.abs(m)*(o?1:-1),v=Math.abs(v)*(o?1:-1)),s.diff=m,m*=r.touchRatio,o&&(m=-m,v=-v);const S=t.touchesDirection;t.swipeDirection=m>0?"prev":"next",t.touchesDirection=v>0?"prev":"next";const w=t.params.loop&&!r.cssMode,y=t.touchesDirection==="next"&&t.allowSlideNext||t.touchesDirection==="prev"&&t.allowSlidePrev;if(!i.isMoved){if(w&&y&&t.loopFix({direction:t.swipeDirection}),i.startTranslate=t.getTranslate(),t.setTransition(0),t.animating){const M=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0,detail:{bySwiperTouchMove:!0}});t.wrapperEl.dispatchEvent(M)}i.allowMomentumBounce=!1,r.grabCursor&&(t.allowSlideNext===!0||t.allowSlidePrev===!0)&&t.setGrabCursor(!0),t.emit("sliderFirstMove",l)}if(new Date().getTime(),r._loopSwapReset!==!1&&i.isMoved&&i.allowThresholdMove&&S!==t.touchesDirection&&w&&y&&Math.abs(m)>=1){Object.assign(s,{startX:u,startY:f,currentX:u,currentY:f,startTranslate:i.currentTranslate}),i.loopSwapReset=!0,i.startTranslate=i.currentTranslate;return}t.emit("sliderMove",l),i.isMoved=!0,i.currentTranslate=m+i.startTranslate;let x=!0,P=r.resistanceRatio;if(r.touchReleaseOnEdges&&(P=0),m>0?(w&&y&&i.allowThresholdMove&&i.currentTranslate>(r.centeredSlides?t.minTranslate()-t.slidesSizesGrid[t.activeIndex+1]-(r.slidesPerView!=="auto"&&t.slides.length-r.slidesPerView>=2?t.slidesSizesGrid[t.activeIndex+1]+t.params.spaceBetween:0)-t.params.spaceBetween:t.minTranslate())&&t.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),i.currentTranslate>t.minTranslate()&&(x=!1,r.resistance&&(i.currentTranslate=t.minTranslate()-1+(-t.minTranslate()+i.startTranslate+m)**P))):m<0&&(w&&y&&i.allowThresholdMove&&i.currentTranslate<(r.centeredSlides?t.maxTranslate()+t.slidesSizesGrid[t.slidesSizesGrid.length-1]+t.params.spaceBetween+(r.slidesPerView!=="auto"&&t.slides.length-r.slidesPerView>=2?t.slidesSizesGrid[t.slidesSizesGrid.length-1]+t.params.spaceBetween:0):t.maxTranslate())&&t.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:t.slides.length-(r.slidesPerView==="auto"?t.slidesPerViewDynamic():Math.ceil(parseFloat(r.slidesPerView,10)))}),i.currentTranslate<t.maxTranslate()&&(x=!1,r.resistance&&(i.currentTranslate=t.maxTranslate()+1-(t.maxTranslate()-i.startTranslate-m)**P))),x&&(l.preventedByNestedSwiper=!0),!t.allowSlideNext&&t.swipeDirection==="next"&&i.currentTranslate<i.startTranslate&&(i.currentTranslate=i.startTranslate),!t.allowSlidePrev&&t.swipeDirection==="prev"&&i.currentTranslate>i.startTranslate&&(i.currentTranslate=i.startTranslate),!t.allowSlidePrev&&!t.allowSlideNext&&(i.currentTranslate=i.startTranslate),r.threshold>0)if(Math.abs(m)>r.threshold||i.allowThresholdMove){if(!i.allowThresholdMove){i.allowThresholdMove=!0,s.startX=s.currentX,s.startY=s.currentY,i.currentTranslate=i.startTranslate,s.diff=t.isHorizontal()?s.currentX-s.startX:s.currentY-s.startY;return}}else{i.currentTranslate=i.startTranslate;return}!r.followFinger||r.cssMode||((r.freeMode&&r.freeMode.enabled&&t.freeMode||r.watchSlidesProgress)&&(t.updateActiveIndex(),t.updateSlidesClasses()),r.freeMode&&r.freeMode.enabled&&t.freeMode&&t.freeMode.onTouchMove(),t.updateProgress(i.currentTranslate),t.setTranslate(i.currentTranslate))}function Yo(n){const e=this,t=e.touchEventsData;let i=n;i.originalEvent&&(i=i.originalEvent);let r;if(i.type==="touchend"||i.type==="touchcancel"){if(r=[...i.changedTouches].find(M=>M.identifier===t.touchId),!r||r.identifier!==t.touchId)return}else{if(t.touchId!==null||i.pointerId!==t.pointerId)return;r=i}if(["pointercancel","pointerout","pointerleave","contextmenu"].includes(i.type)&&!(["pointercancel","contextmenu"].includes(i.type)&&(e.browser.isSafari||e.browser.isWebView)))return;t.pointerId=null,t.touchId=null;const{params:o,touches:a,rtlTranslate:l,slidesGrid:c,enabled:u}=e;if(!u||!o.simulateTouch&&i.pointerType==="mouse")return;if(t.allowTouchCallbacks&&e.emit("touchEnd",i),t.allowTouchCallbacks=!1,!t.isTouched){t.isMoved&&o.grabCursor&&e.setGrabCursor(!1),t.isMoved=!1,t.startMoving=!1;return}o.grabCursor&&t.isMoved&&t.isTouched&&(e.allowSlideNext===!0||e.allowSlidePrev===!0)&&e.setGrabCursor(!1);const f=Vt(),h=f-t.touchStartTime;if(e.allowClick){const M=i.path||i.composedPath&&i.composedPath();e.updateClickedSlide(M&&M[0]||i.target,M),e.emit("tap click",i),h<300&&f-t.lastClickTime<300&&e.emit("doubleTap doubleClick",i)}if(t.lastClickTime=Vt(),$t(()=>{e.destroyed||(e.allowClick=!0)}),!t.isTouched||!t.isMoved||!e.swipeDirection||a.diff===0&&!t.loopSwapReset||t.currentTranslate===t.startTranslate&&!t.loopSwapReset){t.isTouched=!1,t.isMoved=!1,t.startMoving=!1;return}t.isTouched=!1,t.isMoved=!1,t.startMoving=!1;let p;if(o.followFinger?p=l?e.translate:-e.translate:p=-t.currentTranslate,o.cssMode)return;if(o.freeMode&&o.freeMode.enabled){e.freeMode.onTouchEnd({currentPos:p});return}const m=p>=-e.maxTranslate()&&!e.params.loop;let v=0,S=e.slidesSizesGrid[0];for(let M=0;M<c.length;M+=M<o.slidesPerGroupSkip?1:o.slidesPerGroup){const D=M<o.slidesPerGroupSkip-1?1:o.slidesPerGroup;typeof c[M+D]<"u"?(m||p>=c[M]&&p<c[M+D])&&(v=M,S=c[M+D]-c[M]):(m||p>=c[M])&&(v=M,S=c[c.length-1]-c[c.length-2])}let w=null,y=null;o.rewind&&(e.isBeginning?y=o.virtual&&o.virtual.enabled&&e.virtual?e.virtual.slides.length-1:e.slides.length-1:e.isEnd&&(w=0));const x=(p-c[v])/S,P=v<o.slidesPerGroupSkip-1?1:o.slidesPerGroup;if(h>o.longSwipesMs){if(!o.longSwipes){e.slideTo(e.activeIndex);return}e.swipeDirection==="next"&&(x>=o.longSwipesRatio?e.slideTo(o.rewind&&e.isEnd?w:v+P):e.slideTo(v)),e.swipeDirection==="prev"&&(x>1-o.longSwipesRatio?e.slideTo(v+P):y!==null&&x<0&&Math.abs(x)>o.longSwipesRatio?e.slideTo(y):e.slideTo(v))}else{if(!o.shortSwipes){e.slideTo(e.activeIndex);return}e.navigation&&(i.target===e.navigation.nextEl||i.target===e.navigation.prevEl)?i.target===e.navigation.nextEl?e.slideTo(v+P):e.slideTo(v):(e.swipeDirection==="next"&&e.slideTo(w!==null?w:v+P),e.swipeDirection==="prev"&&e.slideTo(y!==null?y:v))}}function os(){const n=this,{params:e,el:t}=n;if(t&&t.offsetWidth===0)return;e.breakpoints&&n.setBreakpoint();const{allowSlideNext:i,allowSlidePrev:r,snapGrid:s}=n,o=n.virtual&&n.params.virtual.enabled;n.allowSlideNext=!0,n.allowSlidePrev=!0,n.updateSize(),n.updateSlides(),n.updateSlidesClasses();const a=o&&e.loop;(e.slidesPerView==="auto"||e.slidesPerView>1)&&n.isEnd&&!n.isBeginning&&!n.params.centeredSlides&&!a?n.slideTo(n.slides.length-1,0,!1,!0):n.params.loop&&!o?n.slideToLoop(n.realIndex,0,!1,!0):n.slideTo(n.activeIndex,0,!1,!0),n.autoplay&&n.autoplay.running&&n.autoplay.paused&&(clearTimeout(n.autoplay.resizeTimeout),n.autoplay.resizeTimeout=setTimeout(()=>{n.autoplay&&n.autoplay.running&&n.autoplay.paused&&n.autoplay.resume()},500)),n.allowSlidePrev=r,n.allowSlideNext=i,n.params.watchOverflow&&s!==n.snapGrid&&n.checkOverflow()}function Xo(n){const e=this;e.enabled&&(e.allowClick||(e.params.preventClicks&&n.preventDefault(),e.params.preventClicksPropagation&&e.animating&&(n.stopPropagation(),n.stopImmediatePropagation())))}function Uo(){const n=this,{wrapperEl:e,rtlTranslate:t,enabled:i}=n;if(!i)return;n.previousTranslate=n.translate,n.isHorizontal()?n.translate=-e.scrollLeft:n.translate=-e.scrollTop,n.translate===0&&(n.translate=0),n.updateActiveIndex(),n.updateSlidesClasses();let r;const s=n.maxTranslate()-n.minTranslate();s===0?r=0:r=(n.translate-n.minTranslate())/s,r!==n.progress&&n.updateProgress(t?-n.translate:n.translate),n.emit("setTranslate",n.translate,!1)}function Ko(n){const e=this;Nt(e,n.target),!(e.params.cssMode||e.params.slidesPerView!=="auto"&&!e.params.autoHeight)&&e.update()}function Zo(){const n=this;n.documentTouchHandlerProceeded||(n.documentTouchHandlerProceeded=!0,n.params.touchReleaseOnEdges&&(n.el.style.touchAction="auto"))}const xn=(n,e)=>{const t=Ee(),{params:i,el:r,wrapperEl:s,device:o}=n,a=!!i.nested,l=e==="on"?"addEventListener":"removeEventListener",c=e;!r||typeof r=="string"||(t[l]("touchstart",n.onDocumentTouchStart,{passive:!1,capture:a}),r[l]("touchstart",n.onTouchStart,{passive:!1}),r[l]("pointerdown",n.onTouchStart,{passive:!1}),t[l]("touchmove",n.onTouchMove,{passive:!1,capture:a}),t[l]("pointermove",n.onTouchMove,{passive:!1,capture:a}),t[l]("touchend",n.onTouchEnd,{passive:!0}),t[l]("pointerup",n.onTouchEnd,{passive:!0}),t[l]("pointercancel",n.onTouchEnd,{passive:!0}),t[l]("touchcancel",n.onTouchEnd,{passive:!0}),t[l]("pointerout",n.onTouchEnd,{passive:!0}),t[l]("pointerleave",n.onTouchEnd,{passive:!0}),t[l]("contextmenu",n.onTouchEnd,{passive:!0}),(i.preventClicks||i.preventClicksPropagation)&&r[l]("click",n.onClick,!0),i.cssMode&&s[l]("scroll",n.onScroll),i.updateOnWindowResize?n[c](o.ios||o.android?"resize orientationchange observerUpdate":"resize observerUpdate",os,!0):n[c]("observerUpdate",os,!0),r[l]("load",n.onLoad,{capture:!0}))};function Jo(){const n=this,{params:e}=n;n.onTouchStart=Go.bind(n),n.onTouchMove=Wo.bind(n),n.onTouchEnd=Yo.bind(n),n.onDocumentTouchStart=Zo.bind(n),e.cssMode&&(n.onScroll=Uo.bind(n)),n.onClick=Xo.bind(n),n.onLoad=Ko.bind(n),xn(n,"on")}function Qo(){xn(this,"off")}var ea={attachEvents:Jo,detachEvents:Qo};const as=(n,e)=>n.grid&&e.grid&&e.grid.rows>1;function ta(){const n=this,{realIndex:e,initialized:t,params:i,el:r}=n,s=i.breakpoints;if(!s||s&&Object.keys(s).length===0)return;const o=Ee(),a=i.breakpointsBase==="window"||!i.breakpointsBase?i.breakpointsBase:"container",l=["window","container"].includes(i.breakpointsBase)||!i.breakpointsBase?n.el:o.querySelector(i.breakpointsBase),c=n.getBreakpoint(s,a,l);if(!c||n.currentBreakpoint===c)return;const f=(c in s?s[c]:void 0)||n.originalParams,h=as(n,i),p=as(n,f),m=n.params.grabCursor,v=f.grabCursor,S=i.enabled;h&&!p?(r.classList.remove(`${i.containerModifierClass}grid`,`${i.containerModifierClass}grid-column`),n.emitContainerClasses()):!h&&p&&(r.classList.add(`${i.containerModifierClass}grid`),(f.grid.fill&&f.grid.fill==="column"||!f.grid.fill&&i.grid.fill==="column")&&r.classList.add(`${i.containerModifierClass}grid-column`),n.emitContainerClasses()),m&&!v?n.unsetGrabCursor():!m&&v&&n.setGrabCursor(),["navigation","pagination","scrollbar"].forEach(D=>{if(typeof f[D]>"u")return;const k=i[D]&&i[D].enabled,B=f[D]&&f[D].enabled;k&&!B&&n[D].disable(),!k&&B&&n[D].enable()});const w=f.direction&&f.direction!==i.direction,y=i.loop&&(f.slidesPerView!==i.slidesPerView||w),x=i.loop;w&&t&&n.changeDirection(),Ce(n.params,f);const P=n.params.enabled,M=n.params.loop;Object.assign(n,{allowTouchMove:n.params.allowTouchMove,allowSlideNext:n.params.allowSlideNext,allowSlidePrev:n.params.allowSlidePrev}),S&&!P?n.disable():!S&&P&&n.enable(),n.currentBreakpoint=c,n.emit("_beforeBreakpoint",f),t&&(y?(n.loopDestroy(),n.loopCreate(e),n.updateSlides()):!x&&M?(n.loopCreate(e),n.updateSlides()):x&&!M&&n.loopDestroy()),n.emit("breakpoint",f)}function ia(n,e,t){if(e===void 0&&(e="window"),!n||e==="container"&&!t)return;let i=!1;const r=pe(),s=e==="window"?r.innerHeight:t.clientHeight,o=Object.keys(n).map(a=>{if(typeof a=="string"&&a.indexOf("@")===0){const l=parseFloat(a.substr(1));return{value:s*l,point:a}}return{value:a,point:a}});o.sort((a,l)=>
vendor: 11,238 bytes, line 8
8parseInt(a.value,10)-parseInt(l.value,10));for(let a=0;a<o.length;a+=1){const{point:l,value:c}=o[a];e==="window"?r.matchMedia(`(min-width: ${c}px)`).matches&&(i=l):c<=t.clientWidth&&(i=l)}return i||"max"}var sa={setBreakpoint:ta,getBreakpoint:ia};function na(n,e){const t=[];return n.forEach(i=>{typeof i=="object"?Object.keys(i).forEach(r=>{i[r]&&t.push(e+r)}):typeof i=="string"&&t.push(e+i)}),t}function ra(){const n=this,{classNames:e,params:t,rtl:i,el:r,device:s}=n,o=na(["initialized",t.direction,{"free-mode":n.params.freeMode&&t.freeMode.enabled},{autoheight:t.autoHeight},{rtl:i},{grid:t.grid&&t.grid.rows>1},{"grid-column":t.grid&&t.grid.rows>1&&t.grid.fill==="column"},{android:s.android},{ios:s.ios},{"css-mode":t.cssMode},{centered:t.cssMode&&t.centeredSlides},{"watch-progress":t.watchSlidesProgress}],t.containerModifierClass);e.push(...o),r.classList.add(...e),n.emitContainerClasses()}function oa(){const n=this,{el:e,classNames:t}=n;!e||typeof e=="string"||(e.classList.remove(...t),n.emitContainerClasses())}var aa={addClasses:ra,removeClasses:oa};function la(){const n=this,{isLocked:e,params:t}=n,{slidesOffsetBefore:i}=t;if(i){const r=n.slides.length-1,s=n.slidesGrid[r]+n.slidesSizesGrid[r]+i*2;n.isLocked=n.size>s}else n.isLocked=n.snapGrid.length===1;t.allowSlideNext===!0&&(n.allowSlideNext=!n.isLocked),t.allowSlidePrev===!0&&(n.allowSlidePrev=!n.isLocked),e&&e!==n.isLocked&&(n.isEnd=!1),e!==n.isLocked&&n.emit(n.isLocked?"lock":"unlock")}var ca={checkOverflow:la},ls={init:!0,direction:"horizontal",oneWayMovement:!1,swiperElementNodeName:"SWIPER-CONTAINER",touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,eventsPrefix:"swiper",enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:5,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,loop:!1,loopAddBlankSlides:!0,loopAdditionalSlides:0,loopPreventsSliding:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,maxBackfaceHiddenSlides:10,containerModifierClass:"swiper-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-blank",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideFullyVisibleClass:"swiper-slide-fully-visible",slideNextClass:"swiper-slide-next",slidePrevClass:"swiper-slide-prev",wrapperClass:"swiper-wrapper",lazyPreloaderClass:"swiper-lazy-preloader",lazyPreloadPrevNext:0,runCallbacksOnInit:!0,_emitClasses:!1};function da(n,e){return function(i){i===void 0&&(i={});const r=Object.keys(i)[0],s=i[r];if(typeof s!="object"||s===null){Ce(e,i);return}if(n[r]===!0&&(n[r]={enabled:!0}),r==="navigation"&&n[r]&&n[r].enabled&&!n[r].prevEl&&!n[r].nextEl&&(n[r].auto=!0),["pagination","scrollbar"].indexOf(r)>=0&&n[r]&&n[r].enabled&&!n[r].el&&(n[r].auto=!0),!(r in n&&"enabled"in s)){Ce(e,i);return}typeof n[r]=="object"&&!("enabled"in n[r])&&(n[r].enabled=!0),n[r]||(n[r]={enabled:!1}),Ce(e,i)}}const ci={eventsEmitter:oo,update:bo,translate:Eo,transition:Mo,slide:Fo,loop:No,grabCursor:Vo,events:ea,breakpoints:sa,checkOverflow:ca,classes:aa},di={};class he{constructor(){let e,t;for(var i=arguments.length,r=new Array(i),s=0;s<i;s++)r[s]=arguments[s];r.length===1&&r[0].constructor&&Object.prototype.toString.call(r[0]).slice(8,-1)==="Object"?t=r[0]:[e,t]=r,t||(t={}),t=Ce({},t),e&&!t.el&&(t.el=e);const o=Ee();if(t.el&&typeof t.el=="string"&&o.querySelectorAll(t.el).length>1){const u=[];return o.querySelectorAll(t.el).forEach(f=>{const h=Ce({},t,{el:f});u.push(new he(h))}),u}const a=this;a.__swiper__=!0,a.support=vn(),a.device=bn({userAgent:t.userAgent}),a.browser=yn(),a.eventsListeners={},a.eventsAnyListeners=[],a.modules=[...a.__modules__],t.modules&&Array.isArray(t.modules)&&a.modules.push(...t.modules);const l={};a.modules.forEach(u=>{u({params:t,swiper:a,extendParams:da(t,l),on:a.on.bind(a),once:a.once.bind(a),off:a.off.bind(a),emit:a.emit.bind(a)})});const c=Ce({},ls,l);return a.params=Ce({},c,di,t),a.originalParams=Ce({},a.params),a.passedParams=Ce({},t),a.params&&a.params.on&&Object.keys(a.params.on).forEach(u=>{a.on(u,a.params.on[u])}),a.params&&a.params.onAny&&a.onAny(a.params.onAny),Object.assign(a,{enabled:a.params.enabled,el:e,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal(){return a.params.direction==="horizontal"},isVertical(){return a.params.direction==="vertical"},activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,cssOverflowAdjustment(){return Math.trunc(this.translate/2**23)*2**23},allowSlideNext:a.params.allowSlideNext,allowSlidePrev:a.params.allowSlidePrev,touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:a.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,pointerId:null,touchId:null},allowClick:!0,allowTouchMove:a.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),a.emit("_swiper"),a.params.init&&a.init(),a}getDirectionLabel(e){return this.isHorizontal()?e:{width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"}[e]}getSlideIndex(e){const{slidesEl:t,params:i}=this,r=ze(t,`.${i.slideClass}, swiper-slide`),s=Gt(r[0]);return Gt(e)-s}getSlideIndexByData(e){return this.getSlideIndex(this.slides.find(t=>t.getAttribute("data-swiper-slide-index")*1===e))}recalcSlides(){const e=this,{slidesEl:t,params:i}=e;e.slides=ze(t,`.${i.slideClass}, swiper-slide`)}enable(){const e=this;e.enabled||(e.enabled=!0,e.params.grabCursor&&e.setGrabCursor(),e.emit("enable"))}disable(){const e=this;e.enabled&&(e.enabled=!1,e.params.grabCursor&&e.unsetGrabCursor(),e.emit("disable"))}setProgress(e,t){const i=this;e=Math.min(Math.max(e,0),1);const r=i.minTranslate(),o=(i.maxTranslate()-r)*e+r;i.translateTo(o,typeof t>"u"?0:t),i.updateActiveIndex(),i.updateSlidesClasses()}emitContainerClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const t=e.el.className.split(" ").filter(i=>i.indexOf("swiper")===0||i.indexOf(e.params.containerModifierClass)===0);e.emit("_containerClasses",t.join(" "))}getSlideClasses(e){const t=this;return t.destroyed?"":e.className.split(" ").filter(i=>i.indexOf("swiper-slide")===0||i.indexOf(t.params.slideClass)===0).join(" ")}emitSlidesClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const t=[];e.slides.forEach(i=>{const r=e.getSlideClasses(i);t.push({slideEl:i,classNames:r}),e.emit("_slideClass",i,r)}),e.emit("_slideClasses",t)}slidesPerViewDynamic(e,t){e===void 0&&(e="current"),t===void 0&&(t=!1);const i=this,{params:r,slides:s,slidesGrid:o,slidesSizesGrid:a,size:l,activeIndex:c}=i;let u=1;if(typeof r.slidesPerView=="number")return r.slidesPerView;if(r.centeredSlides){let f=s[c]?Math.ceil(s[c].swiperSlideSize):0,h;for(let p=c+1;p<s.length;p+=1)s[p]&&!h&&(f+=Math.ceil(s[p].swiperSlideSize),u+=1,f>l&&(h=!0));for(let p=c-1;p>=0;p-=1)s[p]&&!h&&(f+=s[p].swiperSlideSize,u+=1,f>l&&(h=!0))}else if(e==="current")for(let f=c+1;f<s.length;f+=1)(t?o[f]+a[f]-o[c]<l:o[f]-o[c]<l)&&(u+=1);else for(let f=c-1;f>=0;f-=1)o[c]-o[f]<l&&(u+=1);return u}update(){const e=this;if(!e||e.destroyed)return;const{snapGrid:t,params:i}=e;i.breakpoints&&e.setBreakpoint(),[...e.el.querySelectorAll('[loading="lazy"]')].forEach(o=>{o.complete&&Nt(e,o)}),e.updateSize(),e.updateSlides(),e.updateProgress(),e.updateSlidesClasses();function r(){const o=e.rtlTranslate?e.translate*-1:e.translate,a=Math.min(Math.max(o,e.maxTranslate()),e.minTranslate());e.setTranslate(a),e.updateActiveIndex(),e.updateSlidesClasses()}let s;if(i.freeMode&&i.freeMode.enabled&&!i.cssMode)r(),i.autoHeight&&e.updateAutoHeight();else{if((i.slidesPerView==="auto"||i.slidesPerView>1)&&e.isEnd&&!i.centeredSlides){const o=e.virtual&&i.virtual.enabled?e.virtual.slides:e.slides;s=e.slideTo(o.length-1,0,!1,!0)}else s=e.slideTo(e.activeIndex,0,!1,!0);s||r()}i.watchOverflow&&t!==e.snapGrid&&e.checkOverflow(),e.emit("update")}changeDirection(e,t){t===void 0&&(t=!0);const i=this,r=i.params.direction;return e||(e=r==="horizontal"?"vertical":"horizontal"),e===r||e!=="horizontal"&&e!=="vertical"||(i.el.classList.remove(`${i.params.containerModifierClass}${r}`),i.el.classList.add(`${i.params.containerModifierClass}${e}`),i.emitContainerClasses(),i.params.direction=e,i.slides.forEach(s=>{e==="vertical"?s.style.width="":s.style.height=""}),i.emit("changeDirection"),t&&i.update()),i}changeLanguageDirection(e){const t=this;t.rtl&&e==="rtl"||!t.rtl&&e==="ltr"||(t.rtl=e==="rtl",t.rtlTranslate=t.params.direction==="horizontal"&&t.rtl,t.rtl?(t.el.classList.add(`${t.params.containerModifierClass}rtl`),t.el.dir="rtl"):(t.el.classList.remove(`${t.params.containerModifierClass}rtl`),t.el.dir="ltr"),t.update())}mount(e){const t=this;if(t.mounted)return!0;let i=e||t.params.el;if(typeof i=="string"&&(i=document.querySelector(i)),!i)return!1;i.swiper=t,i.parentNode&&i.parentNode.host&&i.parentNode.host.nodeName===t.params.swiperElementNodeName.toUpperCase()&&(t.isElement=!0);const r=()=>`.${(t.params.wrapperClass||"").trim().split(" ").join(".")}`;let o=i&&i.shadowRoot&&i.shadowRoot.querySelector?i.shadowRoot.querySelector(r()):ze(i,r())[0];return!o&&t.params.createElements&&(o=xt("div",t.params.wrapperClass),i.append(o),ze(i,`.${t.params.slideClass}`).forEach(a=>{o.append(a)})),Object.assign(t,{el:i,wrapperEl:o,slidesEl:t.isElement&&!i.parentNode.host.slideSlots?i.parentNode.host:o,hostEl:t.isElement?i.parentNode.host:i,mounted:!0,rtl:i.dir.toLowerCase()==="rtl"||Ge(i,"direction")==="rtl",rtlTranslate:t.params.direction==="horizontal"&&(i.dir.toLowerCase()==="rtl"||Ge(i,"direction")==="rtl"),wrongRTL:Ge(o,"display")==="-webkit-box"}),!0}init(e){const t=this;if(t.initialized||t.mount(e)===!1)return t;t.emit("beforeInit"),t.params.breakpoints&&t.setBreakpoint(),t.addClasses(),t.updateSize(),t.updateSlides(),t.params.watchOverflow&&t.checkOverflow(),t.params.grabCursor&&t.enabled&&t.setGrabCursor(
vendor: 1,626 bytes, line 8
8),t.params.loop&&t.virtual&&t.params.virtual.enabled?t.slideTo(t.params.initialSlide+t.virtual.slidesBefore,0,t.params.runCallbacksOnInit,!1,!0):t.slideTo(t.params.initialSlide,0,t.params.runCallbacksOnInit,!1,!0),t.params.loop&&t.loopCreate(void 0,!0),t.attachEvents();const r=[...t.el.querySelectorAll('[loading="lazy"]')];return t.isElement&&r.push(...t.hostEl.querySelectorAll('[loading="lazy"]')),r.forEach(s=>{s.complete?Nt(t,s):s.addEventListener("load",o=>{Nt(t,o.target)})}),Ai(t),t.initialized=!0,Ai(t),t.emit("init"),t.emit("afterInit"),t}destroy(e,t){e===void 0&&(e=!0),t===void 0&&(t=!0);const i=this,{params:r,el:s,wrapperEl:o,slides:a}=i;return typeof i.params>"u"||i.destroyed||(i.emit("beforeDestroy"),i.initialized=!1,i.detachEvents(),r.loop&&i.loopDestroy(),t&&(i.removeClasses(),s&&typeof s!="string"&&s.removeAttribute("style"),o&&o.removeAttribute("style"),a&&a.length&&a.forEach(l=>{l.classList.remove(r.slideVisibleClass,r.slideFullyVisibleClass,r.slideActiveClass,r.slideNextClass,r.slidePrevClass),l.removeAttribute("style"),l.removeAttribute("data-swiper-slide-index")})),i.emit("destroy"),Object.keys(i.eventsListeners).forEach(l=>{i.off(l)}),e!==!1&&(i.el&&typeof i.el!="string"&&(i.el.swiper=null),Wr(i)),i.destroyed=!0),null}static extendDefaults(e){Ce(di,e)}static get extendedDefaults(){return di}static get defaults(){return ls}static installModule(e){he.prototype.__modules__||(he.prototype.__modules__=[]);const t=he.prototype.__modules__;typeof e=="function"&&t.indexOf(e)<0&&t.push(e)}static use(e){return Array.isArray(e)?(e.forEach(t=>he.installModule(t)),he):(he.installModule(e),he)}}
vendor: 2,027 bytes, line 8
8Object.keys(ci).forEach(n=>{Object.keys(ci[n]).forEach(e=>{he.prototype[e]=ci[n][e]})});he.use([no,ro]);function Pt(n){let{swiper:e,extendParams:t,on:i,emit:r}=n;const s=Ee(),o=pe();e.keyboard={enabled:!1},t({keyboard:{enabled:!1,onlyInViewport:!0,pageUpDown:!0}});function a(u){if(!e.enabled)return;const{rtlTranslate:f}=e;let h=u;h.originalEvent&&(h=h.originalEvent);const p=h.keyCode||h.charCode,m=e.params.keyboard.pageUpDown,v=m&&p===33,S=m&&p===34,w=p===37,y=p===39,x=p===38,P=p===40;if(!e.allowSlideNext&&(e.isHorizontal()&&y||e.isVertical()&&P||S)||!e.allowSlidePrev&&(e.isHorizontal()&&w||e.isVertical()&&x||v))return!1;if(!(h.shiftKey||h.altKey||h.ctrlKey||h.metaKey)&&!(s.activeElement&&s.activeElement.nodeName&&(s.activeElement.nodeName.toLowerCase()==="input"||s.activeElement.nodeName.toLowerCase()==="textarea"))){if(e.params.keyboard.onlyInViewport&&(v||S||w||y||x||P)){let M=!1;if(Wt(e.el,`.${e.params.slideClass}, swiper-slide`).length>0&&Wt(e.el,`.${e.params.slideActiveClass}`).length===0)return;const D=e.el,k=D.clientWidth,B=D.clientHeight,W=o.innerWidth,_=o.innerHeight,I=mn(D);f&&(I.left-=D.scrollLeft);const L=[[I.left,I.top],[I.left+k,I.top],[I.left,I.top+B],[I.left+k,I.top+B]];for(let A=0;A<L.length;A+=1){const F=L[A];if(F[0]>=0&&F[0]<=W&&F[1]>=0&&F[1]<=_){if(F[0]===0&&F[1]===0)continue;M=!0}}if(!M)return}e.isHorizontal()?((v||S||w||y)&&(h.preventDefault?h.preventDefault():h.returnValue=!1),((S||y)&&!f||(v||w)&&f)&&e.slideNext(),((v||w)&&!f||(S||y)&&f)&&e.slidePrev()):((v||S||x||P)&&(h.preventDefault?h.preventDefault():h.returnValue=!1),(S||P)&&e.slideNext(),(v||x)&&e.slidePrev()),r("keyPress",p)}}function l(){e.keyboard.enabled||(s.addEventListener("keydown",a),e.keyboard.enabled=!0)}function c(){e.keyboard.enabled&&(s.removeEventListener("keydown",a),e.keyboard.enabled=!1)}i("init",()=>{e.params.keyboard.enabled&&l()}),i("destroy",()=>{e.keyboard.enabled&&c()}),Object.assign(e.keyboard,{enable:l,disable:c})}function Wi(n,e,t,i){return n.params.createElements&&Object.keys(i).forEac
vendor: 5,350 bytes, line 8
8h(r=>{if(!t[r]&&t.auto===!0){let s=ze(n.el,`.${i[r]}`)[0];s||(s=xt("div",i[r]),s.className=i[r],n.el.append(s)),t[r]=s,e[r]=s}}),t}function cs(n){let{swiper:e,extendParams:t,on:i,emit:r}=n;t({navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock",navigationDisabledClass:"swiper-navigation-disabled"}}),e.navigation={nextEl:null,prevEl:null};function s(m){let v;return m&&typeof m=="string"&&e.isElement&&(v=e.el.querySelector(m)||e.hostEl.querySelector(m),v)?v:(m&&(typeof m=="string"&&(v=[...document.querySelectorAll(m)]),e.params.uniqueNavElements&&typeof m=="string"&&v&&v.length>1&&e.el.querySelectorAll(m).length===1?v=e.el.querySelector(m):v&&v.length===1&&(v=v[0])),m&&!v?m:v)}function o(m,v){const S=e.params.navigation;m=le(m),m.forEach(w=>{w&&(w.classList[v?"add":"remove"](...S.disabledClass.split(" ")),w.tagName==="BUTTON"&&(w.disabled=v),e.params.watchOverflow&&e.enabled&&w.classList[e.isLocked?"add":"remove"](S.lockClass))})}function a(){const{nextEl:m,prevEl:v}=e.navigation;if(e.params.loop){o(v,!1),o(m,!1);return}o(v,e.isBeginning&&!e.params.rewind),o(m,e.isEnd&&!e.params.rewind)}function l(m){m.preventDefault(),!(e.isBeginning&&!e.params.loop&&!e.params.rewind)&&(e.slidePrev(),r("navigationPrev"))}function c(m){m.preventDefault(),!(e.isEnd&&!e.params.loop&&!e.params.rewind)&&(e.slideNext(),r("navigationNext"))}function u(){const m=e.params.navigation;if(e.params.navigation=Wi(e,e.originalParams.navigation,e.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),!(m.nextEl||m.prevEl))return;let v=s(m.nextEl),S=s(m.prevEl);Object.assign(e.navigation,{nextEl:v,prevEl:S}),v=le(v),S=le(S);const w=(y,x)=>{y&&y.addEventListener("click",x==="next"?c:l),!e.enabled&&y&&y.classList.add(...m.lockClass.split(" "))};v.forEach(y=>w(y,"next")),S.forEach(y=>w(y,"prev"))}function f(){let{nextEl:m,prevEl:v}=e.navigation;m=le(m),v=le(v);const S=(w,y)=>{w.removeEventListener("click",y==="next"?c:l),w.classList.remove(...e.params.navigation.disabledClass.split(" "))};m.forEach(w=>S(w,"next")),v.forEach(w=>S(w,"prev"))}i("init",()=>{e.params.navigation.enabled===!1?p():(u(),a())}),i("toEdge fromEdge lock unlock",()=>{a()}),i("destroy",()=>{f()}),i("enable disable",()=>{let{nextEl:m,prevEl:v}=e.navigation;if(m=le(m),v=le(v),e.enabled){a();return}[...m,...v].filter(S=>!!S).forEach(S=>S.classList.add(e.params.navigation.lockClass))}),i("click",(m,v)=>{let{nextEl:S,prevEl:w}=e.navigation;S=le(S),w=le(w);const y=v.target;let x=w.includes(y)||S.includes(y);if(e.isElement&&!x){const P=v.path||v.composedPath&&v.composedPath();P&&(x=P.find(M=>S.includes(M)||w.includes(M)))}if(e.params.navigation.hideOnClick&&!x){if(e.pagination&&e.params.pagination&&e.params.pagination.clickable&&(e.pagination.el===y||e.pagination.el.contains(y)))return;let P;S.length?P=S[0].classList.contains(e.params.navigation.hiddenClass):w.length&&(P=w[0].classList.contains(e.params.navigation.hiddenClass)),r(P===!0?"navigationShow":"navigationHide"),[...S,...w].filter(M=>!!M).forEach(M=>M.classList.toggle(e.params.navigation.hiddenClass))}});const h=()=>{e.el.classList.remove(...e.params.navigation.navigationDisabledClass.split(" ")),u(),a()},p=()=>{e.el.classList.add(...e.params.navigation.navigationDisabledClass.split(" ")),f()};Object.assign(e.navigation,{enable:h,disable:p,update:a,init:u,destroy:f})}function ut(n){return n===void 0&&(n=""),`.${n.trim().replace(/([\.:!+\/])/g,"\\$1").replace(/ /g,".")}`}function ua(n){let{swiper:e,extendParams:t,on:i,emit:r}=n;const s="swiper-pagination";t({pagination:{el:null,bulletElement:"span",clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:"bullets",dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:y=>y,formatFractionTotal:y=>y,bulletClass:`${s}-bullet`,bulletActiveClass:`${s}-bullet-active`,modifierClass:`${s}-`,currentClass:`${s}-current`,totalClass:`${s}-total`,hiddenClass:`${s}-hidden`,progressbarFillClass:`${s}-progressbar-fill`,progressbarOppositeClass:`${s}-progressbar-opposite`,clickableClass:`${s}-clickable`,lockClass:`${s}-lock`,horizontalClass:`${s}-horizontal`,verticalClass:`${s}-vertical`,paginationDisabledClass:`${s}-disabled`}}),e.pagination={el:null,bullets:[]};let o,a=0;function l(){return!e.params.pagination.el||!e.pagination.el||Array.isArray(e.pagination.el)&&e.pagination.el.length===0}function c(y,x){const{bulletActiveClass:P}=e.params.pagination;y&&(y=y[`${x==="prev"?"previous":"next"}ElementSibling`],y&&(y.classList.add(`${P}-${x}`),y=y[`${x==="prev"?"previous":"next"}ElementSibling`],y&&y.classList.add(`${P}-${x}-${x}`)))}function u(y,x,P){if(y=y%P,x=x%P,x===y+1)return"next";if(x===y-1)return"previous"}function f(y){const x=y.target.closest(ut(e.params.pagination.bulletClass));if(!x)return;y.preventDefault();const P=Gt(x)*e.params.slidesPerGroup;if(e.params.loop){if(e.realIndex===P)return;const M=u(e.realIndex,P,e.slides.length);M==="next"?e.slideNext():M==="previous"?e.slidePrev():e.slideToLoop(P)}else e.slideTo(P)}function h(){const y=e.rtl,x=e.params.pagination;if(l())return;let P=e.pagination.el;P=le(P);let M,D;const k=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.slides.length,B=e.params.loop?Math.
vendor: 5,168 bytes, line 8
8ceil(k/e.params.slidesPerGroup):e.snapGrid.length;if(e.params.loop?(D=e.previousRealIndex||0,M=e.params.slidesPerGroup>1?Math.floor(e.realIndex/e.params.slidesPerGroup):e.realIndex):typeof e.snapIndex<"u"?(M=e.snapIndex,D=e.previousSnapIndex):(D=e.previousIndex||0,M=e.activeIndex||0),x.type==="bullets"&&e.pagination.bullets&&e.pagination.bullets.length>0){const W=e.pagination.bullets;let _,I,L;if(x.dynamicBullets&&(o=Ii(W[0],e.isHorizontal()?"width":"height"),P.forEach(A=>{A.style[e.isHorizontal()?"width":"height"]=`${o*(x.dynamicMainBullets+4)}px`}),x.dynamicMainBullets>1&&D!==void 0&&(a+=M-(D||0),a>x.dynamicMainBullets-1?a=x.dynamicMainBullets-1:a<0&&(a=0)),_=Math.max(M-a,0),I=_+(Math.min(W.length,x.dynamicMainBullets)-1),L=(I+_)/2),W.forEach(A=>{const F=[...["","-next","-next-next","-prev","-prev-prev","-main"].map(q=>`${x.bulletActiveClass}${q}`)].map(q=>typeof q=="string"&&q.includes(" ")?q.split(" "):q).flat();A.classList.remove(...F)}),P.length>1)W.forEach(A=>{const F=Gt(A);F===M?A.classList.add(...x.bulletActiveClass.split(" ")):e.isElement&&A.setAttribute("part","bullet"),x.dynamicBullets&&(F>=_&&F<=I&&A.classList.add(...`${x.bulletActiveClass}-main`.split(" ")),F===_&&c(A,"prev"),F===I&&c(A,"next"))});else{const A=W[M];if(A&&A.classList.add(...x.bulletActiveClass.split(" ")),e.isElement&&W.forEach((F,q)=>{F.setAttribute("part",q===M?"bullet-active":"bullet")}),x.dynamicBullets){const F=W[_],q=W[I];for(let N=_;N<=I;N+=1)W[N]&&W[N].classList.add(...`${x.bulletActiveClass}-main`.split(" "));c(F,"prev"),c(q,"next")}}if(x.dynamicBullets){const A=Math.min(W.length,x.dynamicMainBullets+4),F=(o*A-o)/2-L*o,q=y?"right":"left";W.forEach(N=>{N.style[e.isHorizontal()?q:"top"]=`${F}px`})}}P.forEach((W,_)=>{if(x.type==="fraction"&&(W.querySelectorAll(ut(x.currentClass)).forEach(I=>{I.textContent=x.formatFractionCurrent(M+1)}),W.querySelectorAll(ut(x.totalClass)).forEach(I=>{I.textContent=x.formatFractionTotal(B)})),x.type==="progressbar"){let I;x.progressbarOpposite?I=e.isHorizontal()?"vertical":"horizontal":I=e.isHorizontal()?"horizontal":"vertical";const L=(M+1)/B;let A=1,F=1;I==="horizontal"?A=L:F=L,W.querySelectorAll(ut(x.progressbarFillClass)).forEach(q=>{q.style.transform=`translate3d(0,0,0) scaleX(${A}) scaleY(${F})`,q.style.transitionDuration=`${e.params.speed}ms`})}x.type==="custom"&&x.renderCustom?(W.innerHTML=x.renderCustom(e,M+1,B),_===0&&r("paginationRender",W)):(_===0&&r("paginationRender",W),r("paginationUpdate",W)),e.params.watchOverflow&&e.enabled&&W.classList[e.isLocked?"add":"remove"](x.lockClass)})}function p(){const y=e.params.pagination;if(l())return;const x=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.grid&&e.params.grid.rows>1?e.slides.length/Math.ceil(e.params.grid.rows):e.slides.length;let P=e.pagination.el;P=le(P);let M="";if(y.type==="bullets"){let D=e.params.loop?Math.ceil(x/e.params.slidesPerGroup):e.snapGrid.length;e.params.freeMode&&e.params.freeMode.enabled&&D>x&&(D=x);for(let k=0;k<D;k+=1)y.renderBullet?M+=y.renderBullet.call(e,k,y.bulletClass):M+=`<${y.bulletElement} ${e.isElement?'part="bullet"':""} class="${y.bulletClass}"></${y.bulletElement}>`}y.type==="fraction"&&(y.renderFraction?M=y.renderFraction.call(e,y.currentClass,y.totalClass):M=`<span class="${y.currentClass}"></span> / <span class="${y.totalClass}"></span>`),y.type==="progressbar"&&(y.renderProgressbar?M=y.renderProgressbar.call(e,y.progressbarFillClass):M=`<span class="${y.progressbarFillClass}"></span>`),e.pagination.bullets=[],P.forEach(D=>{y.type!=="custom"&&(D.innerHTML=M||""),y.type==="bullets"&&e.pagination.bullets.push(...D.querySelectorAll(ut(y.bulletClass)))}),y.type!=="custom"&&r("paginationRender",P[0])}function m(){e.params.pagination=Wi(e,e.originalParams.pagination,e.params.pagination,{el:"swiper-pagination"});const y=e.params.pagination;if(!y.el)return;let x;typeof y.el=="string"&&e.isElement&&(x=e.el.querySelector(y.el)),!x&&typeof y.el=="string"&&(x=[...document.querySelectorAll(y.el)]),x||(x=y.el),!(!x||x.length===0)&&(e.params.uniqueNavElements&&typeof y.el=="string"&&Array.isArray(x)&&x.length>1&&(x=[...e.el.querySelectorAll(y.el)],x.length>1&&(x=x.find(P=>Wt(P,".swiper")[0]===e.el))),Array.isArray(x)&&x.length===1&&(x=x[0]),Object.assign(e.pagination,{el:x}),x=le(x),x.forEach(P=>{y.type==="bullets"&&y.clickable&&P.classList.add(...(y.clickableClass||"").split(" ")),P.classList.add(y.modifierClass+y.type),P.classList.add(e.isHorizontal()?y.horizontalClass:y.verticalClass),y.type==="bullets"&&y.dynamicBullets&&(P.classList.add(`${y.modifierClass}${y.type}-dynamic`),a=0,y.dynamicMainBullets<1&&(y.dynamicMainBullets=1)),y.type==="progressbar"&&y.progressbarOpposite&&P.classList.add(y.progressbarOppositeClass),y.clickable&&P.addEventListener("click",f),e.enabled||P.classList.add(y.lockClass)}))}function v(){const y=e.params.pagination;if(l())return;let x=e.pagination.el;x&&(x=le(x),x.forEach(P=>{P.classList.remove(y.hiddenClass),P.classList.remove(y.modifierClass+y.type),P.classList.remove(e.isHorizontal()?y.horizontalClass:y.verticalClass),y.clickable&&(P.classList.remove(...(y.clickableClass||"").split(" ")),P.removeEventListener("click",f))}
vendor: 12,718 bytes, line 8
8)),e.pagination.bullets&&e.pagination.bullets.forEach(P=>P.classList.remove(...y.bulletActiveClass.split(" ")))}i("changeDirection",()=>{if(!e.pagination||!e.pagination.el)return;const y=e.params.pagination;let{el:x}=e.pagination;x=le(x),x.forEach(P=>{P.classList.remove(y.horizontalClass,y.verticalClass),P.classList.add(e.isHorizontal()?y.horizontalClass:y.verticalClass)})}),i("init",()=>{e.params.pagination.enabled===!1?w():(m(),p(),h())}),i("activeIndexChange",()=>{typeof e.snapIndex>"u"&&h()}),i("snapIndexChange",()=>{h()}),i("snapGridLengthChange",()=>{p(),h()}),i("destroy",()=>{v()}),i("enable disable",()=>{let{el:y}=e.pagination;y&&(y=le(y),y.forEach(x=>x.classList[e.enabled?"remove":"add"](e.params.pagination.lockClass)))}),i("lock unlock",()=>{h()}),i("click",(y,x)=>{const P=x.target,M=le(e.pagination.el);if(e.params.pagination.el&&e.params.pagination.hideOnClick&&M&&M.length>0&&!P.classList.contains(e.params.pagination.bulletClass)){if(e.navigation&&(e.navigation.nextEl&&P===e.navigation.nextEl||e.navigation.prevEl&&P===e.navigation.prevEl))return;const D=M[0].classList.contains(e.params.pagination.hiddenClass);r(D===!0?"paginationShow":"paginationHide"),M.forEach(k=>k.classList.toggle(e.params.pagination.hiddenClass))}});const S=()=>{e.el.classList.remove(e.params.pagination.paginationDisabledClass);let{el:y}=e.pagination;y&&(y=le(y),y.forEach(x=>x.classList.remove(e.params.pagination.paginationDisabledClass))),m(),p(),h()},w=()=>{e.el.classList.add(e.params.pagination.paginationDisabledClass);let{el:y}=e.pagination;y&&(y=le(y),y.forEach(x=>x.classList.add(e.params.pagination.paginationDisabledClass))),v()};Object.assign(e.pagination,{enable:S,disable:w,render:p,update:h,init:m,destroy:v})}function Ot(n){let{swiper:e,extendParams:t,on:i,emit:r}=n;const s=Ee();let o=!1,a=null,l=null,c,u,f,h;t({scrollbar:{el:null,dragSize:"auto",hide:!1,draggable:!1,snapOnRelease:!0,lockClass:"swiper-scrollbar-lock",dragClass:"swiper-scrollbar-drag",scrollbarDisabledClass:"swiper-scrollbar-disabled",horizontalClass:"swiper-scrollbar-horizontal",verticalClass:"swiper-scrollbar-vertical"}}),e.scrollbar={el:null,dragEl:null};function p(){if(!e.params.scrollbar.el||!e.scrollbar.el)return;const{scrollbar:L,rtlTranslate:A}=e,{dragEl:F,el:q}=L,N=e.params.scrollbar,J=e.params.loop?e.progressLoop:e.progress;let Y=u,U=(f-u)*J;A?(U=-U,U>0?(Y=u-U,U=0):-U+u>f&&(Y=f+U)):U<0?(Y=u+U,U=0):U+u>f&&(Y=f-U),e.isHorizontal()?(F.style.transform=`translate3d(${U}px, 0, 0)`,F.style.width=`${Y}px`):(F.style.transform=`translate3d(0px, ${U}px, 0)`,F.style.height=`${Y}px`),N.hide&&(clearTimeout(a),q.style.opacity=1,a=setTimeout(()=>{q.style.opacity=0,q.style.transitionDuration="400ms"},1e3))}function m(L){!e.params.scrollbar.el||!e.scrollbar.el||(e.scrollbar.dragEl.style.transitionDuration=`${L}ms`)}function v(){if(!e.params.scrollbar.el||!e.scrollbar.el)return;const{scrollbar:L}=e,{dragEl:A,el:F}=L;A.style.width="",A.style.height="",f=e.isHorizontal()?F.offsetWidth:F.offsetHeight,h=e.size/(e.virtualSize+e.params.slidesOffsetBefore-(e.params.centeredSlides?e.snapGrid[0]:0)),e.params.scrollbar.dragSize==="auto"?u=f*h:u=parseInt(e.params.scrollbar.dragSize,10),e.isHorizontal()?A.style.width=`${u}px`:A.style.height=`${u}px`,h>=1?F.style.display="none":F.style.display="",e.params.scrollbar.hide&&(F.style.opacity=0),e.params.watchOverflow&&e.enabled&&L.el.classList[e.isLocked?"add":"remove"](e.params.scrollbar.lockClass)}function S(L){return e.isHorizontal()?L.clientX:L.clientY}function w(L){const{scrollbar:A,rtlTranslate:F}=e,{el:q}=A;let N;N=(S(L)-mn(q)[e.isHorizontal()?"left":"top"]-(c!==null?c:u/2))/(f-u),N=Math.max(Math.min(N,1),0),F&&(N=1-N);const J=e.minTranslate()+(e.maxTranslate()-e.minTranslate())*N;e.updateProgress(J),e.setTranslate(J),e.updateActiveIndex(),e.updateSlidesClasses()}function y(L){const A=e.params.scrollbar,{scrollbar:F,wrapperEl:q}=e,{el:N,dragEl:J}=F;o=!0,c=L.target===J?S(L)-L.target.getBoundingClientRect()[e.isHorizontal()?"left":"top"]:null,L.preventDefault(),L.stopPropagation(),q.style.transitionDuration="100ms",J.style.transitionDuration="100ms",w(L),clearTimeout(l),N.style.transitionDuration="0ms",A.hide&&(N.style.opacity=1),e.params.cssMode&&(e.wrapperEl.style["scroll-snap-type"]="none"),r("scrollbarDragStart",L)}function x(L){const{scrollbar:A,wrapperEl:F}=e,{el:q,dragEl:N}=A;o&&(L.preventDefault&&L.cancelable?L.preventDefault():L.returnValue=!1,w(L),F.style.transitionDuration="0ms",q.style.transitionDuration="0ms",N.style.transitionDuration="0ms",r("scrollbarDragMove",L))}function P(L){const A=e.params.scrollbar,{scrollbar:F,wrapperEl:q}=e,{el:N}=F;o&&(o=!1,e.params.cssMode&&(e.wrapperEl.style["scroll-snap-type"]="",q.style.transitionDuration=""),A.hide&&(clearTimeout(l),l=$t(()=>{N.style.opacity=0,N.style.transitionDuration="400ms"},1e3)),r("scrollbarDragEnd",L),A.snapOnRelease&&e.slideToClosest())}function M(L){const{scrollbar:A,params:F}=e,q=A.el;if(!q)return;const N=q,J=F.passiveListeners?{passive:!1,capture:!1}:!1,Y=F.passiveListeners?{passive:!0,capture:!1}:!1;if(!N)return;const U=L==="on"?"addEventListener":"removeEventListener";N[U]("pointerdown",y,J),s[U]("pointermove",x,J),s[U]("pointerup",P,Y)}function D(){!e.params.scrollbar.el||!e.scrollbar.el||M("on")}function k(){!e.params.scrollbar.el||!e.scrollbar.el||M("off")}function B(){const{scrollbar:L,el:A}=e;e.params.scrollbar=Wi(e,e.originalParams.scrollbar,e.params.scrollbar,{el:"swiper-scrollbar"});const F=e.params.scrollbar;if(!F.el)return;let q;if(typeof F.el=="string"&&e.isElement&&(q=e.el.querySelector(F.el)),!q&&typeof F.el=="string"){if(q=s.querySelectorAll(F.el),!q.length)return}else q||(q=F.el);e.params.uniqueNavElements&&typeof F.el=="string"&&q.length>1&&A.querySelectorAll(F.el).length===1&&(q=A.querySelector(F.el)),q.length>0&&(q=q[0]),q.classList.add(e.isHorizontal()?F.horizontalClass:F.verticalClass);let N;q&&(N=q.querySelector(ut(e.params.scrollbar.dragClass)),N||(N=xt("div",e.params.scrollbar.dragClass),q.append(N))),Object.assign(L,{el:q,dragEl:N}),F.draggable&&D(),q&&q.classList[e.enabled?"remove":"add"](...qe(e.params.scrollbar.lockClass))}function W(){const L=e.params.scrollbar,A=e.scrollbar.el;A&&A.classList.remove(...qe(e.isHorizontal()?L.horizontalClass:L.verticalClass)),k()}i("changeDirection",()=>{if(!e.scrollbar||!e.scrollbar.el)return;const L=e.params.scrollbar;let{el:A}=e.scrollbar;A=le(A),A.forEach(F=>{F.classList.remove(L.horizontalClass,L.verticalClass),F.classList.add(e.isHorizontal()?L.horizontalClass:L.verticalClass)})}),i("init",()=>{e.params.scrollbar.enabled===!1?I():(B(),v(),p())}),i("update resize observerUpdate lock unlock changeDirection",()=>{v()}),i("setTranslate",()=>{p()}),i("setTransition",(L,A)=>{m(A)}),i("enable disable",()=>{const{el:L}=e.scrollbar;L&&L.classList[e.enabled?"remove":"add"](...qe(e.params.scrollbar.lockClass))}),i("destroy",()=>{W()});const _=()=>{e.el.classList.remove(...qe(e.params.scrollbar.scrollbarDisabledClass)),e.scrollbar.el&&e.scrollbar.el.classList.remove(...qe(e.params.scrollbar.scrollbarDisabledClass)),B(),v(),p()},I=()=>{e.el.classList.add(...qe(e.params.scrollbar.scrollbarDisabledClass)),e.scrollbar.el&&e.scrollbar.el.classList.add(...qe(e.params.scrollbar.scrollbarDisabledClass)),W()};Object.assign(e.scrollbar,{enable:_,disable:I,updateSize:v,setTranslate:p,init:B,destroy:W})}function fa(n){let{swiper:e,extendParams:t,on:i,emit:r,params:s}=n;e.autoplay={running:!1,paused:!1,timeLeft:0},t({autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!1,stopOnLastSlide:!1,reverseDirection:!1,pauseOnMouseEnter:!1}});let o,a,l=s&&s.autoplay?s.autoplay.delay:3e3,c=s&&s.autoplay?s.autoplay.delay:3e3,u,f=new Date().getTime(),h,p,m,v,S,w,y;function x(Y){!e||e.destroyed||!e.wrapperEl||Y.target===e.wrapperEl&&(e.wrapperEl.removeEventListener("transitionend",x),!(y||Y.detail&&Y.detail.bySwiperTouchMove)&&_())}const P=()=>{if(e.destroyed||!e.autoplay.running)return;e.autoplay.paused?h=!0:h&&(c=u,h=!1);const Y=e.autoplay.paused?u:f+c-new Date().getTime();e.autoplay.timeLeft=Y,r("autoplayTimeLeft",Y,Y/l),a=requestAnimationFrame(()=>{P()})},M=()=>{let Y;return e.virtual&&e.params.virtual.enabled?Y=e.slides.find(ue=>ue.classList.contains("swiper-slide-active")):Y=e.slides[e.activeIndex],Y?parseInt(Y.getAttribute("data-swiper-autoplay"),10):void 0},D=Y=>{if(e.destroyed||!e.autoplay.running)return;cancelAnimationFrame(a),P();let U=typeof Y>"u"?e.params.autoplay.delay:Y;l=e.params.autoplay.delay,c=e.params.autoplay.delay;const ue=M();!Number.isNaN(ue)&&ue>0&&typeof Y>"u"&&(U=ue,l=ue,c=ue),u=U;const Fe=e.params.speed,nt=()=>{!e||e.destroyed||(e.params.autoplay.reverseDirection?!e.isBeginning||e.params.loop||e.params.rewind?(e.slidePrev(Fe,!0,!0),r("autoplay")):e.params.autoplay.stopOnLastSlide||(e.slideTo(e.slides.length-1,Fe,!0,!0),r("autoplay")):!e.isEnd||e.params.loop||e.params.rewind?(e.slideNext(Fe,!0,!0),r("autoplay")):e.params.autoplay.stopOnLastSlide||(e.slideTo(0,Fe,!0,!0),r("autoplay")),e.params.cssMode&&(f=new Date().getTime(),requestAnimationFrame(()=>{D()})))};return U>0?(clearTimeout(o),o=setTimeout(()=>{nt()},U)):requestAnimationFrame(()=>{nt()}),U},k=()=>{f=new Date().getTime(),e.autoplay.running=!0,D(),r("autoplayStart")},B=()=>{e.autoplay.running=!1,clearTimeout(o),cancelAnimationFrame(a),r("autoplayStop")},W=(Y,U)=>{if(e.destroyed||!e.autoplay.running)return;clearTimeout(o),Y||(w=!0);const ue=()=>{r("autoplayPause"),e.params.autoplay.waitForTransition?e.wrapperEl.addEventListener("transitionend",x):_()};if(e.autoplay.paused=!0,U){S&&(u=e.params.autoplay.delay),S=!1,ue();return}u=(u||e.params.autoplay.delay)-(new Date().getTime()-f),!(e.isEnd&&u<0&&!e.params.loop)&&(u<0&&(u=0),ue())},_=()=>{e.isEnd&&u<0&&!e.params.loop||e.destroyed||!e.autoplay.running||(f=new Date().getTime(),w?(w=!1,D(u)):D(),e.autoplay.paused=!1,r("autoplayResume"))},I=()=>{if(e.destroyed||!e.autoplay.running)return;const Y=Ee();Y.visibilityState==="hidden"&&(w=!0,W(!0)),Y.visibilityState==="visible"&&_()},L=Y=>{Y.pointerType==="mouse"&&(w=!0,y=!0,!(e.animating||e.autoplay.paused)&&W(!0))},A=Y=>{Y.pointerType==="mouse"&&(y=!1,e.autoplay.paused&&_())},F=()=>{e.params.autoplay.pauseOnMouseEnter&&(e.el.addEventListener("pointerenter",L),e.el.addEventListener("pointerleave",A))},q=()=>{e.el&&typeof e.el!="string"&&(e.el.removeEventListener("pointerenter",L),e.el.removeEventListener("pointerleave",A))},N=()=>{Ee().addEventListener("visibilitychange",I)},J=()=>{Ee().removeEventListener("visibilitychange",I)};i("init",()=>{e.params.autoplay.enabled&&(F(),N(),k())}),i("destroy",()=>{q(),J(),e.autoplay.running&&B()}),i("_freeModeStaticRelease",()=>{(m||w)&&_()}),i("_freeModeNoMomentumRelease",()=>{e.params.autoplay.disableOnInteraction?B():W(!0,!0)}),i("beforeTransitionStart",(Y,U,ue)=>{e.destroyed||!e.autoplay.running||(ue||!e.params.autoplay.disableOnInteraction?W(!0,!0):B())}),i("sliderFirstMove",()=>{if(!(e.destroyed||!e.autoplay.running)){if(e.params.autoplay.disableOnInteraction){B();return}p=!0,m=!1,w=!1,v=setTimeout(()=>{w=!0,m=!0,W(!0)},200)}}),i("touchEnd",()=>{if(!(e.destroyed||!e.autoplay.running||!p)){if(clearTimeout(v),clearTimeout(o),e.params.autoplay.disableOnInteraction){m=!1,p=!1;return}m&&e.params.cssMode&&_(),m=!1,p=!1}}),i("slideChange",()=>{e.destroyed||!e.autoplay.running||(S=!0)}),Object.assign(e.autoplay,{start:k,stop:B,pause:W,resume:_})}function ha(n){const{effect:e,swiper:t,on:i,setTranslate:r,setTransition:s,overwriteParams:o,perspective:a,recreateShadows:l,getEffectParams:c}=n;i("beforeInit",()=>{if(t.params.effect!==e)return;t.classNames.push(`${t.params.containerModifierClass}${e}`),a&&a()&&t.classNames.push(`${t.params.containerModifierClass}3d`);const f=o?o():{};Object.assign(t.params,f),Object.assign(t.originalParams,f)}),i("setTranslate",()=>{t.params.effect===e&&r()}),i("setTransition",(f,h)=>{t.params.effect===e&&s(h)}),i("transitionEnd",()=>{if(t.params.effect===e&&l){if(!c||!c().slideShadows)return;t.slides.forEach(f=>{f.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach(h=>h.remove())}),l()}});let u;i("virtualUpdate",()=>{t.params.effect===e&&(t.slides.length||(u=!0),requestAnimationFrame(()=>{u&&t.slides&&t.slides.length&&(r(),u=!1)}))})}function pa(n,e){const t=gn(e);return t!==e&&(t.style.backfaceVisibility="hidden",t.style["-webkit-backface-visibility"]="hidden"),t}function ga(n){let{swiper:e,duration:t,transformElements:i}=n;const{activeIndex:r}=e;if(e.params.virtualTranslate&&t!==0){let s=!1,o;o=i,o.forEach(a=>{eo(a,()=>{if(s||!e||e.destroyed)return;s=!0,e.animating=!1;const l=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0});
8e.wrapperEl.dispatchEvent(l)})})}}function ma(n){let{swiper:e,extendParams:t,on:i}=n;t({fadeEffect:{crossFade:!1}}),ha({effect:"fade",swiper:e,on:i,setTranslate:()=>{const{slides:o}=e,a=e.params.fadeEffect;for(let l=0;l<o.length;l+=1){const c=e.slides[l];let f=-c.swiperSlideOffset;e.params.virtualTranslate||(f-=e.translate);let h=0;e.isHorizontal()||(h=f,f=0);const p=e.params.fadeEffect.crossFade?Math.max(1-Math.abs(c.progress),0):1+Math.min(Math.max(c.progress,-1),0),m=pa(a,c);m.style.opacity=p,m.style.transform=`translate3d(${f}px, ${h}px, 0px)`}},setTransition:o=>{const a=e.slides.map(l=>gn(l));a.forEach(l=>{l.style.transitionDuration=`${o}ms`}),ga({swiper:e,duration:o,transformElements:a})},overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!e.params.cssMode})})}const j=(n,e=1e4)=>(n=parseFloat(n+"")||0,Math.round((n+Number.EPSILON)*e)/e),ki=function(n){if(!(n&&n instanceof Element&&n.offsetParent))return!1;const e=n.scrollHeight>n.clientHeight,t=window.getComputedStyle(n).overflowY,i=t.indexOf("hidden")!==-1,r=t.indexOf("visible")!==-1;return e&&!i&&!r},Yt=function(n,e=void 0){return!(!n||n===document.body||e&&n===e)&&(ki(n)?n:Yt(n.parentElement,e))},De=function(n){var e=new DOMParser().parseFromString(n,"text/html").body;if(e.childElementCount>1){for(var t=document.createElement("div");e.firstChild;)t.appendChild(e.firstChild);return t}return e.firstChild},Yi=n=>`${n||""}`.split(" ").filter(e=>!!e),_e=(n,e,t)=>{n&&Yi(e).forEach(i=>{n.classList.toggle(i,t||!1)})};class rt{constructor(e){Object.defineProperty(this,"pageX",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"pageY",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"clientX",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"clientY",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"id",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"time",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"nativePointer",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.nativePointer=e,this.pageX=e.pageX,this.pageY=e.pageY,this.clientX=e.clientX,this.clientY=e.clientY,this.id=self.Touch&&e instanceof Touch?e.identifier:-1,this.time=Date.now()}}const ot={passive:!1};class va{constructor(e,{start:t=()=>!0,move:i=()=>{},end:r=()=>{}}){Object.defineProperty(this,"element",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"startCallback",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"moveCallback",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"endCallback",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"currentPointers",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"startPointers",{enumerable:!0,configurable:!0,writable:!0,value:[]}),this.element=e,this.startCallback=t,this.moveCallback=i,this.endCallback=r;for(const s of["onPointerStart","onTouchStart","onMove","onTouchEnd","onPointerEnd","onWindowBlur"])this[s]=this[s].bind(this);this.element.addEventListener("mousedown",this.onPointerStart,ot),this.element.addEventListener("touchstart",this.onTouchStart,ot),this.element.addEventListener("touchmove",this.onMove,ot),this.element.addEventListener("touchend",this.onTouchEnd),this.element.addEventListener("touchcancel",this.onTouchEnd)}onPointerStart(e){if(!e.buttons||e.button!==0)return;const t=new rt(e);this.currentPointers.some(i=>i.id===t.id)||this.triggerPointerStart(t,e)&&(window.addEventListener("mousemove",this.onMove),window.addEventListener("mouseup",this.onPointerEnd),window.addEventListener("blur",this.onWindowBlur))}onTouchStart(e){for(const t of Array.from(e.changedTouches||[]))this.triggerPointerStart(new rt(t),e);window.addEventListener("blur",this.onWindowBlur)}onMove(e){const t=this.currentPointers.slice(),i="changedTouches"in e?Array.from(e.changedTouches||[]).map(s=>new rt(s)):[new rt(e)],r=[];for(const s of i){const o=this.currentPointers.findIndex(a=>a.id===s.id);o<0||(r.push(s),this.currentPointers[o]=s)}r.length&&this.moveCallback(e,this.currentPointers.slice(),t)}onPointerEnd(e){e.buttons>0&&e.button!==0||(this.triggerPointerEnd(e,new rt(e)),window.removeEventListener("mousemove",this.onMove),window.removeEventListener("mouseup",this.onPointerEnd),window.removeEventListener("blur",this.onWindowBlur))}onTouchEnd(e){for(const t of Array.from(e.changedTouches||[]))this.triggerPointerEnd(e,new rt(t))}triggerPointerStart(e,t){return!!this.startCallback(t,e,this.currentPointers.slice())&&(this.currentPointers.push(e),this.startPointers.push(e),!0)}triggerPointerEnd(e,t){const i=this.currentPointers.findIndex(r=>
8r.id===t.id);i<0||(this.currentPointers.splice(i,1),this.startPointers.splice(i,1),this.endCallback(e,t,this.currentPointers.slice()))}onWindowBlur(){this.clear()}clear(){for(;this.currentPointers.length;){const e=this.currentPointers[this.currentPointers.length-1];this.currentPointers.splice(this.currentPointers.length-1,1),this.startPointers.splice(this.currentPointers.length-1,1),this.endCallback(new Event("touchend",{bubbles:!0,cancelable:!0,clientX:e.clientX,clientY:e.clientY}),e,this.currentPointers.slice())}}stop(){this.element.removeEventListener("mousedown",this.onPointerStart,ot),this.element.removeEventListener("touchstart",this.onTouchStart,ot),this.element.removeEventListener("touchmove",this.onMove,ot),this.element.removeEventListener("touchend",this.onTouchEnd),this.element.removeEventListener("touchcancel",this.onTouchEnd),window.removeEventListener("mousemove",this.onMove),window.removeEventListener("mouseup",this.onPointerEnd),window.removeEventListener("blur",this.onWindowBlur)}}function ds(n,e){return e?Math.sqrt(Math.pow(e.clientX-n.clientX,2)+Math.pow(e.clientY-n.clientY,2)):0}function us(n,e){return e?{clientX:(n.clientX+e.clientX)/2,clientY:(n.clientY+e.clientY)/2}:n}const zi=n=>typeof n=="object"&&n!==null&&n.constructor===Object&&Object.prototype.toString.call(n)==="[object Object]",we=(n,...e)=>{const t=e.length;for(let i=0;i<t;i++){const r=e[i]||{};Object.entries(r).forEach(([s,o])=>{const a=Array.isArray(o)?[]:{};n[s]||Object.assign(n,{[s]:a}),zi(o)?Object.assign(n[s],we(a,o)):Array.isArray(o)?Object.assign(n,{[s]:[...o]}):Object.assign(n,{[s]:o})})}return n},ui=function(n,e){return n.split(".").reduce((t,i)=>typeof t=="object"?t[i]:void 0,e)};class Xt{constructor(e={}){Object.defineProperty(this,"options",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(this,"events",{enumerable:!0,configurable:!0,writable:!0,value:new Map}),this.setOptions(e);for(const t of Object.getOwnPropertyNames(Object.getPrototypeOf(this)))t.startsWith("on")&&typeof this[t]=="function"&&(this[t]=this[t].bind(this))}setOptions(e){this.options=e?we({},this.constructor.defaults,e):{};for(const[t,i]of Object.entries(this.option("on")||{}))this.on(t,i)}option(e,...t){let i=ui(e,this.options);return i&&typeof i=="function"&&(i=i.call(this,this,...t)),i}optionFor(e,t,i,...r){let s=ui(t,e);var o;typeof(o=s)!="string"||isNaN(o)||isNaN(parseFloat(o))||(s=parseFloat(s)),s==="true"&&(s=!0),s==="false"&&(s=!1),s&&typeof s=="function"&&(s=s.call(this,this,e,...r));let a=ui(t,this.options);return a&&typeof a=="function"?s=a.call(this,this,e,...r,s):s===void 0&&(s=a),s===void 0?i:s}cn(e){const t=this.options.classes;return t&&t[e]||""}localize(e,t=[]){e=String(e).replace(/\{\{(\w+).?(\w+)?\}\}/g,(i,r,s)=>{let o="";return s?o=this.option(`${r[0]+r.toLowerCase().substring(1)}.l10n.${s}`):r&&(o=this.option(`l10n.${r}`)),o||(o=i),o});for(let i=0;i<t.length;i++)e=e.split(t[i][0]).join(t[i][1]);return e=e.replace(/\{\{(.*?)\}\}/g,(i,r)=>r)}on(e,t){let i=[];typeof e=="string"?i=e.split(" "):Array.isArray(e)&&(i=e),this.events||(this.events=new Map),i.forEac
8h(r=>{let s=this.events.get(r);s||(this.events.set(r,[]),s=[]),s.includes(t)||s.push(t),this.events.set(r,s)})}off(e,t){let i=[];typeof e=="string"?i=e.split(" "):Array.isArray(e)&&(i=e),i.forEach(r=>{const s=this.events.get(r);if(Array.isArray(s)){const o=s.indexOf(t);o>-1&&s.splice(o,1)}})}emit(e,...t){[...this.events.get(e)||[]].forEach(i=>i(this,...t)),e!=="*"&&this.emit("*",e,...t)}}Object.defineProperty(Xt,"version",{enumerable:!0,configurable:!0,writable:!0,value:"5.0.36"}),Object.defineProperty(Xt,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:{}});class Xi extends Xt{constructor(e={}){super(e),Object.defineProperty(this,"plugins",{enumerable:!0,configurable:!0,writable:!0,value:{}})}attachPlugins(e={}){const t=new Map;for(const[i,r]of Object.entries(e)){const s=this.option(i),o=this.plugins[i];o||s===!1?o&&s===!1&&(o.detach(),delete this.plugins[i]):t.set(i,new r(this,s||{}))}for(const[i,r]of t)this.plugins[i]=r,r.attach()}detachPlugins(e){e=e||Object.keys(this.plugins);for(const t of e){const i=this.plugins[t];i&&i.detach(),delete this.plugins[t]}return this.emit("detachPlugins"),this}}var te;(function(n){n[n.Init=0]="Init",n[n.Error=1]="Error",n[n.Ready=2]="Ready",n[n.Panning=3]="Panning",n[n.Mousemove=4]="Mousemove",n[n.Destroy=5]="Destroy"})(te||(te={}));const Be=["a","b","c","d","e","f"],Sn={PANUP:"Move up",PANDOWN:"Move down",PANLEFT:"Move left",PANRIGHT:"Move right",ZOOMIN:"Zoom in",ZOOMOUT:"Zoom out",TOGGLEZOOM:"Toggle zoom level",TOGGLE1TO1:"Toggle zoom level",ITERATEZOOM:"Toggle zoom level",ROTATECCW:"Rotate counterclockwise",ROTATECW:"Rotate clockwise",FLIPX:"Flip horizontally",FLIPY:"Flip vertically",FITX:"Fit horizontally",FITY:"Fit vertically",RESET:"Reset",TOGGLEFS:"Toggle fullscreen"},ba={content:null,width:"auto",height:"auto",panMode:"drag",touch:!0,dragMinThreshold:3,lockAxis:!1,mouseMoveFactor:1,mouseMoveFriction:.12,zoom:!0,pinchToZoom:!0,panOnlyZoomed:"auto",minScale:1,maxScale:2,friction:.25,dragFriction:.35,decelFriction:.05,click:"toggleZoom",dblClick:!1,wheel:"zoom",wheelLimit:7,spinner:!0,bounds:"auto",infinite:!1,rubberband:!0,bounce:!0,maxVelocity:75,transformParent:!1,classes:{content:"f-panzoom__content",isLoading:"is-loading",canZoomIn:"can-zoom_in",canZoomOut:"can-zoom_out",isDraggable:"is-draggable",isDragging:"is-dragging",inFullscreen:"in-fullscreen",htmlHasFullscreen:"with-panzoom-in-fullscreen"},l10n:Sn},fs='<circle cx="25" cy="25" r="20"></circle>',Ui='<div class="f-spinner"><svg viewBox="0 0 50 50">'+fs+fs+"</svg></div>",ye=n=>n&&n!==null&&n instanceof Element&&"nodeType"in n,ee=(n,e)=>{n&&Yi(e).forEach(t=>{n.classList.remove(t)})},X=(n,e)=>{n&&Yi(e).forEach(t=>{n.classList.add(t)})},Mt={a:1,b:0,c:0,d:1,e:0,f:0},ya=1e5,Lt=1e4,Te="mousemove",hs="drag",ps="content",Pe="auto";let fi=null,hi=null;class it extends Xi{get fits(){return this.contentRect.width-this.contentRect.fitWidth<1&&this.contentRect.height-this.contentRect.fitHeight<1}get isTouchDevice(){return hi===null&&(hi=window.matchMedia("(hover: none)").matches),hi}get isMobile(){return fi===null&&(fi=/iPhone|iPad|iPod|Android/i.test(navigator.userAgent)),fi}get panMode(){return this.options.panMode!==Te||this.isTouchDevice?hs:Te}get panOnlyZoomed(){const e=this.options.panOnlyZoomed;return e===Pe?this.isTouchDevice:e}get isInfinite(){return this.option("infinite")}get angle(){return 180*Math.atan2(this.current.b,this.current.a)/Math.PI||0}get targetAngle(){return 180*Math.atan2(this.target.b,this.target.a)/Math.PI||0}get scale(){const{a:e,b:t}=this.current;return Math.sqrt(e*e+t*t)||1}get targetScale(){const{a:e,b:t}=this.target;return Math.sqrt(e*e+t*t)||1}get minScale(){return this.option("minScale")||1}get fullScale(){const{contentRect:e}=this;return e.fullWidth/e.fitWidth||1}get maxScale(){return this.fullScale*(this.option("maxScale")||1)||1}get coverScale(){const{containerRect:e,contentRect:t}=this,i=Math.max(e.height/t.fitHeight,e.width/t.fitWidth)||1;return Math.min(this.fullScale,i)}get isScaling(){return Math.abs(this.targetScale-this.scale)>1e-5&&!this.isResting}get isContentLoading(){const e=this.content;return!!(e&&e instanceof HTMLImageElement)&&!e.complete}get isResting(){if(this.isBouncingX||this.isBouncingY)return!1;for(const e of Be){const t=e=="e"||e==="f"?1e-4:1e-5;
vendor: 4,108 bytes, line 8
8if(Math.abs(this.target[e]-this.current[e])>t)return!1}return!(!this.ignoreBounds&&!this.checkBounds().inBounds)}constructor(e,t={},i={}){var r;if(super(t),Object.defineProperty(this,"pointerTracker",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"resizeObserver",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"updateTimer",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"clickTimer",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"rAF",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"isTicking",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"ignoreBounds",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"isBouncingX",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"isBouncingY",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"clicks",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"trackingPoints",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"pwt",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"cwd",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"pmme",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"friction",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"state",{enumerable:!0,configurable:!0,writable:!0,value:te.Init}),Object.defineProperty(this,"isDragging",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"container",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"content",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"spinner",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"containerRect",{enumerable:!0,configurable:!0,writable:!0,value:{width:0,height:0,innerWidth:0,innerHeight:0}}),Object.defineProperty(this,"contentRect",{enumerable:!0,configurable:!0,writable:!0,value:{top:0,right:0,bottom:0,left:0,fullWidth:0,fullHeight:0,fitWidth:0,fitHeight:0,width:0,height:0}}),Object.defineProperty(this,"dragStart",{enumerable:!0,configurable:!0,writable:!0,value:{x:0,y:0,top:0,left:0,time:0}}),Object.defineProperty(this,"dragOffset",{enumerable:!0,configurable:!0,writable:!0,value:{x:0,y:0,time:0}}),Object.defineProperty(this,"current",{enumerable:!0,configurable:!0,writable:!0,value:Object.assign({},Mt)}),Object.defineProperty(this,"target",{enumerable:!0,configurable:!0,writable:!0,value:Object.assign({},Mt)}),Object.defineProperty(this,"velocity",{enumerable:!0,configurable:!0,writable:!0,value:{a:0,b:0,c:0,d:0,e:0,f:0}}),Object.defineProperty(this,"lockedAxis",{enumerable:!0,configurable:!0,writable:!0,value:!1}),!e)throw new Error("Container Element Not Found");this.container=e,this.initContent(),this.attachPlugins(Object.assign(Object.assign({},it.Plugins),i)),this.emit("attachPlugins"),this.emit("init");const s=this.content;if(s.addEventListener("load",this.onLoad),s.addEventListener("error",this.onError),this.isContentLoading){if(this.option("spinner")){e.classList.add(this.cn("isLoading"));const o=De(Ui);!e.contains(s)||s.parentElement instanceof HTMLPictureElement?this.spinner=e.appendChild(o):this.spinner=((r=s.parentElement)===null||r===void 0?void 0:r.insertBefore(o,s))||null}this.emit("beforeLoad")}else queueMicrotask(()=>{this.enable()})}initContent(){const{container:e}=this,t=this.cn(ps);let i=this.option(ps)||e.querySelector(`.${t}`);if(i||(i=e.querySelector("img,picture")||e.firstElementChild,i&&X(i,t)),i instanceof HTMLPictureElement&&(i=i.querySelector("img")),!i)throw new Error("No content found");this.content=i}onLoad(){const{spinner:e,container:t,state:i}=this;e&&(e.remove(),this.spinner=null),this.option("spinner")&&t.classList.remove(this.cn("isLoading")),this.emit
8("afterLoad"),i===te.Init?this.enable():this.updateMetrics()}onError(){this.state!==te.Destroy&&(this.spinner&&(this.spinner.remove(),this.spinner=null),this.stop(),this.detachEvents(),this.state=te.Error,this.emit("error"))}getNextScale(e){const{fullScale:t,targetScale:i,coverScale:r,maxScale:s,minScale:o}=this;let a=o;switch(e){case"toggleMax":a=i-o<.5*(s-o)?s:o;break;case"toggleCover":a=i-o<.5*(r-o)?r:o;break;case"toggleZoom":a=i-o<.5*(t-o)?t:o;break;case"iterateZoom":let l=[1,t,s].sort((u,f)=>u-f),c=l.findIndex(u=>u>i+1e-5);a=l[c]||1}return a}attachObserver(){var e;const t=()=>{const{container:i,containerRect:r}=this;return Math.abs(r.width-i.getBoundingClientRect().width)>.1||Math.abs(r.height-i.getBoundingClientRect().height)>.1};this.resizeObserver||window.ResizeObserver===void 0||(this.resizeObserver=new ResizeObserver(()=>{this.updateTimer||(t()?(this.onResize(),this.isMobile&&(this.updateTimer=setTimeout(()=>{t()&&this.onResize(),this.updateTimer=null},500))):this.updateTimer&&(clearTimeout(this.updateTimer),this.updateTimer=null))})),(e=this.resizeObserver)===null||e===void 0||e.observe(this.container)}detachObserver(){var e;(e=this.resizeObserver)===null||e===void 0||e.disconnect()}attachEvents(){const{container:e}=this;e.addEventListener("click",this.onClick,{passive:!1,capture:!1}),e.addEventListener("wheel",this.onWheel,{passive:!1}),this.pointerTracker=new va(e,{start:this.onPointerDown,move:this.onPointerMove,end:this.onPointerUp}),document.addEventListener(Te,this.onMouseMove)}detachEvents(){var e;const{container:t}=this;t.removeEventListener("click",this.onClick,{passive:!1,capture:!1}),t.removeEventListener("wheel",this.onWheel,{passive:!1}),(e=this.pointerTracker)===null||e===void 0||e.stop(),this.pointerTracker=null,document.removeEventListener(Te,this.onMouseMove),document.removeEventListener("keydown",this.onKeydown,!0),this.clickTimer&&(clearTimeout(this.clickTimer),this.clickTimer=null),this.updateTimer&&(clearTimeout(this.updateTimer),this.updateTimer=null)}animate(){this.setTargetForce();const e=this.friction,t=this.option("maxVelocity");for(const i of Be)e?(this.velocity[i]*=1-e,t&&!this.isScaling&&(this.velocity[i]=Math.max(Math.min(this.velocity[i],t),-1*t)),this.current[i]+=this.velocity[i]):this.current[i]=this.target[i];this.setTransform(),this.setEdgeForce(),!this.isResting||this.isDragging?this.rAF=requestAnimationFrame(()=>this.animate()):this.stop("current")}setTargetForce(){for(const e of Be)e==="e"&&this.isBouncingX||e==="f"&&this.isBouncingY||(this.velocity[e]=(1/(1-this.friction)-1)*(this.target[e]-this.current[e]))}checkBounds(e=0,t=0){const{current:i}=this,r=i.e+e,s=i.f+t,o=this.getBounds(),{x:a,y:l}=o,c=a.min,u=a.max,f=l.min,h=l.max;let p=0,m=0;return c!==1/0&&r<c?p=c-r:u!==1/0&&r>u&&(p=u-r),f!==1/0&&s<f?m=f-s:h!==1/0&&s>h&&(m=h-s),Math.abs(p)<1e-4&&(p=0),Math.abs(m)<1e-4&&(m=0),Object.assign(Object.assign({},o),{xDiff:p,yDiff:m,inBounds:!p&&!m})}clampTargetBounds(){const{target:e}=this,{x:t,y:i}=this.getBounds();t.min!==1/0&&(e.e=Math.max(e.e,t.min)),t.max!==1/0&&(e.e=Math.min(e.e,t.max)),i.min!==1/0&&(e.f=Math.max(e.f,i.min)),i.max!==1/0&&(e.f=Math.min(e.f,i.max))}calculateContentDim(e=this.current){const{content:t,contentRect:i}=this,{fitWidth:r,fitHeight:s,fullWidth:o,fullHeight:a}=i;let l=o,c=a;if(this.option("zoom")||this.angle!==0){const u=!(t instanceof HTMLImageElement)&&(window.getComputedStyle(t).maxWidth==="none"||window.getComputedStyle(t).maxHeight==="none"),f=u?o:r,h=u?a:s,p=this.getMatrix(e),m=new DOMPoint(0,0).matrixTransform(p),v=new DOMPoint(0+f,0).matrixTransform(p),S=new DOMPoint(0+f,0+h).matrixTransform(p),w=new DOMPoint(0,0+h).matrixTransform(p),y=Math.abs(S.x-m.x),x=Math.abs(S.y-m.y),P=Math.abs(w.x-v.x),M=Math.abs(w.y-v.y);l=Math.max(y,P),c=Math.max(x,M)}return{contentWidth:l,contentHeight:c}}setEdgeForce(){if(this.ignoreBounds||this.isDragging||this.panMode===Te||this.targetScale<this.scale)return this.isBouncingX=!1,void(this.isBouncingY=!1);const{target:e}=this,{x:t,y:i,xDiff:r,yDiff:s}=this.checkBounds(),o=this.option("maxVelocity");let a=this.velocity.e,l=this.velocity.f;r!==0?(this.isBouncingX=!0,r*a<=0?a+=.14*r:(a=.14*r,t.min!==1/0&&(this.target.e=Math.max(e.e,t.min)),t.max!==1/0&&(this.target.e=Math.min(e.e,t.max))),o&&(a=Math.max(Math.min(a,o),-1*o))):this.isBouncingX=!1,s!==0?(this.isBouncingY=!0,s*l<=0?l+=.14*s:(l=.14*s,i.min!==1/0&&(this.target.f=Math.max(e.f,i.min)),i.max!==1/0&&(this.target.f=Math.min(e.f,i.max))),o&&(l=Math.max(Math.min(l,o),-1*o))):this.isBouncingY=!1,this.isBouncingX&&(this.velocity.e=a
8),this.isBouncingY&&(this.velocity.f=l)}enable(){const{content:e}=this,t=new DOMMatrixReadOnly(window.getComputedStyle(e).transform);for(const i of Be)this.current[i]=this.target[i]=t[i];this.updateMetrics(),this.attachObserver(),this.attachEvents(),this.state=te.Ready,this.emit("ready")}onClick(e){var t;e.type==="click"&&e.detail===0&&(this.dragOffset.x=0,this.dragOffset.y=0),this.isDragging&&((t=this.pointerTracker)===null||t===void 0||t.clear(),this.trackingPoints=[],this.startDecelAnim());const i=e.target;if(!i||e.defaultPrevented)return;if(i.hasAttribute("disabled"))return e.preventDefault(),void e.stopPropagation();if((()=>{const p=window.getSelection();return p&&p.type==="Range"})()&&!i.closest("button"))return;const r=i.closest("[data-panzoom-action]"),s=i.closest("[data-panzoom-change]"),o=r||s,a=o&&ye(o)?o.dataset:null;if(a){const p=a.panzoomChange,m=a.panzoomAction;if((p||m)&&e.preventDefault(),p){let v={};try{v=JSON.parse(p)}catch{console&&console.warn("The given data was not valid JSON")}return void this.applyChange(v)}if(m)return void(this[m]&&this[m]())}if(Math.abs(this.dragOffset.x)>3||Math.abs(this.dragOffset.y)>3)return e.preventDefault(),void e.stopPropagation();if(i.closest("[data-fancybox]"))return;const l=this.content.getBoundingClientRect(),c=this.dragStart;if(c.time&&!this.canZoomOut()&&(Math.abs(l.x-c.x)>2||Math.abs(l.y-c.y)>2))return;this.dragStart.time=0;const u=p=>{this.option("zoom",e)&&p&&typeof p=="string"&&/(iterateZoom)|(toggle(Zoom|Full|Cover|Max)|(zoomTo(Fit|Cover|Max)))/.test(p)&&typeof this[p]=="function"&&(e.preventDefault(),this[p]({event:e}))},f=this.option("click",e),h=this.option("dblClick",e);h?(this.clicks++,this.clicks==1&&(this.clickTimer=setTimeout(()=>{this.clicks===1?(this.emit("click",e),!e.defaultPrevented&&f&&u(f)):(this.emit("dblClick",e),e.defaultPrevented||u(h)),this.clicks=0,this.clickTimer=null},350))):(this.emit("click",e),!e.defaultPrevented&&f&&u(f))}addTrackingPoint(e){const t=this.trackingPoints.filter(i=>i.time>Date.now()-100);t.push(e),this.trackingPoints=t}onPointerDown(e,t,i){var r;if(this.option("touch",e)===!1)return!1;this.pwt=0,this.dragOffset={x:0,y:0,time:0},this.trackingPoints=[];const s=this.content.getBoundingClientRect();if(this.dragStart={x:s.x,y:s.y,top:s.top,left:s.left,time:Date.now()},this.clickTimer)return!1;if(this.panMode===Te&&this.targetScale>1)return e.preventDefault(),e.stopPropagation(),!1;const o=e.composedPath()[0];if(!i.length){if(["TEXTAREA","OPTION","INPUT","SELECT","VIDEO","IFRAME"].includes(o.nodeName)||o.closest("[contenteditable],[data-selectable],[data-draggable],[data-clickable],[data-panzoom-change],[data-panzoom-action]"))return!1;(r=window.getSelection())===null||r===void 0||r.removeAllRanges()}if(e.type==="mousedown")["A","BUTTON"].includes(o.nodeName)||e.preventDefault();else if(Math.abs(this.velocity.a)>.3)return!1;return this.target.e=this.current.e,this.target.f=this.current.f,this.stop(),this.isDragging||(this.isDragging=!0,this.addTrackingPoint(t),this.emit("touchStart",e)),!0}onPointerMove(e,t,i){if(this.option("touch",e)===!1||!this.isDragging||t.length<2&&this.panOnlyZoomed&&j(this.targetScale)<=j(this.minScale)||(this.emit("touchMove",e),e.defaultPrevented))return;this.addTrackingPoint(t[0]);const{content:r}=this,s=us(i[0],i[1]),o=us(t[0],t[1]);let a=0,l=0;if(t.length>1){const x=r.getBoundingClientRect();a=s.clientX-x.left-.5*x.width,l=s.clientY-x.top-.5*x.height}const c=ds(i[0],i[1]),u=ds(t[0],t[1]);let f=c?u/c:1,h=o.clientX-s.clientX,p=o.clientY-s.clientY;this.dragOffset.x+=h,this.dragOffset.y+=p,this.dragOffset.time=Date.now()-this.dragStart.time;let m=j(this.targetScale)===j(this.minScale)&&this.option("lockAxis");if(m&&!this.lockedAxis)if(m==="xy"||m==="y"||e.type==="touchmove"){if(Math.abs(this.dragOffset.x)<6&&Math.abs(this.dragOffset.y)<6)return void e.preventDefault();const x=Math.abs(180*Math.atan2(this.dragOffset.y,this.dragOffset.x)/Math.PI);this.lockedAxis=x>45&&x<135?"y":"x",this.dragOffset.x=0,this.dragOffset.y=0,h=0,p=0}else this.lockedAxis=m;if(Yt(e.target,this.content)&&(m="x",this.dragOffset.y=0),m&&m!=="xy"&&this.lockedAxis!==m&&j(this.targetScale)===j(this.minScale))return;e.cancelable&&e.preventDefault(),this.container.classList.add(this.cn("isDragging"));const v=this.checkBounds(h,p);this.option("rubberband")?(this.isInfinite!=="x"&&(v.xDiff>0&&h<0||v.xDiff<0&&h>0)&&(h*=Math.max(0,.5-Math.abs(.75/this.contentRect.fitWidth*v.xDiff))),this.isInfinite!=="y"&&(v.yDiff>0&&p<0||v.yDiff<0&&p>0)&&(p*=Math.max(0,.5-Math.abs(.75/this.contentRect.fitHeight*v.yDiff)))):(v.xDiff&&(h=0),v.yDiff&&(p=0));const S=this.targetScale,w=this.minScale,y=this.maxScale;S<.5*w&&(f=Math.max(f,w)),S>1.5*y&&(f=Math.min(f,y)),this.lockedAxis==="y"&&j(S)===j(w)&&(h=0),this.lockedAxis==="x"&&j(S)===j(w)&&(p=0),this.applyChange({originX:a,originY:l,panX:h,panY:p,scale:f,friction:this.option("dragFriction"),ignoreBounds:!0})}onPointerUp(e,t,i){if(i.length)return this.dragOffset.x=0,this.dragOffset.y=0,void(this.trackingPoints=[]);this.container.classList.remove(this.cn("isDragging")),this.isDragging&&(this.addTrackingPoint(t),this.panOnlyZoomed&&this.contentRect.width-this.contentRect.fitWidth<1&&this.contentRect.height-this.contentRect.fitHeight<1&&(this.trackingPoints=[]),Yt(e.target,this.content)&&this.lockedAxis==="y"&&(this.trackingPoints=[]),this.emit
8("touchEnd",e),this.isDragging=!1,this.lockedAxis=!1,this.state!==te.Destroy&&(e.defaultPrevented||this.startDecelAnim()))}startDecelAnim(){var e;const t=this.isScaling;this.rAF&&(cancelAnimationFrame(this.rAF),this.rAF=null),this.isBouncingX=!1,this.isBouncingY=!1;for(const x of Be)this.velocity[x]=0;this.target.e=this.current.e,this.target.f=this.current.f,ee(this.container,"is-scaling"),ee(this.container,"is-animating"),this.isTicking=!1;const{trackingPoints:i}=this,r=i[0],s=i[i.length-1];let o=0,a=0,l=0;s&&r&&(o=s.clientX-r.clientX,a=s.clientY-r.clientY,l=s.time-r.time);const c=((e=window.visualViewport)===null||e===void 0?void 0:e.scale)||1;c!==1&&(o*=c,a*=c);let u=0,f=0,h=0,p=0,m=this.option("decelFriction");const v=this.targetScale;if(l>0){h=Math.abs(o)>3?o/(l/30):0,p=Math.abs(a)>3?a/(l/30):0;const x=this.option("maxVelocity");x&&(h=Math.max(Math.min(h,x),-1*x),p=Math.max(Math.min(p,x),-1*x))}h&&(u=h/(1/(1-m)-1)),p&&(f=p/(1/(1-m)-1)),(this.option("lockAxis")==="y"||this.option("lockAxis")==="xy"&&this.lockedAxis==="y"&&j(v)===this.minScale)&&(u=h=0),(this.option("lockAxis")==="x"||this.option("lockAxis")==="xy"&&this.lockedAxis==="x"&&j(v)===this.minScale)&&(f=p=0);const S=this.dragOffset.x,w=this.dragOffset.y,y=this.option("dragMinThreshold")||0;Math.abs(S)<y&&Math.abs(w)<y&&(u=f=0,h=p=0),(this.option("zoom")&&(v<this.minScale-1e-5||v>this.maxScale+1e-5)||t&&!u&&!f)&&(m=.35),this.applyChange({panX:u,panY:f,friction:m}),this.emit("decel",h,p,S,w)}onWheel(e){var t=[-e.deltaX||0,-e.deltaY||0,-e.detail||0].reduce(function(s,o){return Math.abs(o)>Math.abs(s)?o:s});const i=Math.max(-1,Math.min(1,t));if(this.emit("wheel",e,i),this.panMode===Te||e.defaultPrevented)return;const r=this.option("wheel");r==="pan"?(e.preventDefault(),this.panOnlyZoomed&&!this.canZoomOut()||this.applyChange({panX:2*-e.deltaX,panY:2*-e.deltaY,bounce:!1})):r==="zoom"&&this.option("zoom")!==!1&&this.zoomWithWheel(e)}onMouseMove(e){this.panWithMouse(e)}onKeydown(e){e.key==="Escape"&&this.toggleFS()}onResize(){this.updateMetrics(),this.checkBounds().inBounds||this.requestTick()}setTransform(){this.emit("beforeTransform");const{current:e,target:t,content:i,contentRect:r}=this,s=Object.assign({},Mt);for(const S of Be){const w=S=="e"||S==="f"?Lt:ya;s[S]=j(e[S],w),Math.abs(t[S]-e[S])<(S=="e"||S==="f"?.51:.001)&&(e[S]=t[S])}let{a:o,b:a,c:l,d:c,e:u,f}=s,h=`matrix(${o}, ${a}, ${l}, ${c}, ${u}, ${f})`,p=i.parentElement instanceof HTMLPictureElement?i.parentElement:i;if(this.option("transformParent")&&(p=p.parentElement||p),p.style.transform===h)return;p.style.transform=h;const{contentWidth:m,contentHeight:v}=this.calculateContentDim();r.width=m,r.height=v,this.emit("afterTransform")}updateMetrics(e=!1){var t;if(!this||this.state===te.Destroy||this.isContentLoading)return;const i=Math.max(1,((t=window.visualViewport)===null||t===void 0?void 0:t.scale)||1),{container:r,content:s}=this,o=s instanceof HTMLImageElement,a=r.getBoundingClientRect(),l=getComputedStyle(this.container);let c=a.width*i,u=a.height*i;const f=parseFloat(l.paddingTop)+parseFloat(l.paddingBottom),h=c-(parseFloat(l.paddingLeft)+parseFloat(l.paddingRight)),p=u-f;this.containerRect={width:c,height:u,innerWidth:h,innerHeight:p};const m=parseFloat(s.dataset.width||"")||(A=>{let F=0;return F=A instanceof HTMLImageElement?A.naturalWidth:A instanceof SVGElement?A.width.baseVal.value:Math.max(A.offsetWidth,A.scrollWidth),F||0})(s),v=parseFloat(s.dataset.height||"")||(A=>{let F=0;return F=A instanceof HTMLImageElement?A.naturalHeight:A instanceof SVGElement?A.height.baseVal.value:Math.max(A.offsetHeight,A.scrollHeight),F||0})(s);let S=this.option("width",m)||Pe,w=this.option("height",v)||Pe;const y=S===Pe,x=w===Pe;typeof S!="number"&&(S=m),typeof w!="number"&&(w=v),y&&(S=m*(w/v)),x&&(w=v/(m/S));let P=s.parentElement instanceof HTMLPictureElement?s.parentElement:s;this.option("transformParent")&&(P=P.parentElement||P);const M=P.getAttribute("style")||"";P.style.setProperty("transform","none","important"),o&&(P.style.width="",P.style.height=""),P.offsetHeight;const D=s.getBoundingClientRect();let k=D.width*i,B=D.height*i,W=k,_=B;k=Math.min(k,S),B=Math.min(B,w),o?{width:k,height:B}=((A,F,q,N)=>{const J=q/A,Y=N/F,U=Math.min(J,Y);return{width:A*=U,height:F*=U}})(S,w,k,B):(k=Math.min(k,S),B=Math.min(B,w));let I=.5*(_-B),L=.5*(W-k);this.contentRect=Object.assign(Object.assign({},this.contentRect),{top:D.top-a.top+I,bottom:a.bottom-D.bottom+I,left
vendor: 9,093 bytes, line 8
8:D.left-a.left+L,right:a.right-D.right+L,fitWidth:k,fitHeight:B,width:k,height:B,fullWidth:S,fullHeight:w}),P.style.cssText=M,o&&(P.style.width=`${k}px`,P.style.height=`${B}px`),this.setTransform(),e!==!0&&this.emit("refresh"),this.ignoreBounds||(j(this.targetScale)<j(this.minScale)?this.zoomTo(this.minScale,{friction:0}):this.targetScale>this.maxScale?this.zoomTo(this.maxScale,{friction:0}):this.state===te.Init||this.checkBounds().inBounds||this.requestTick()),this.updateControls()}calculateBounds(){const{contentWidth:e,contentHeight:t}=this.calculateContentDim(this.target),{targetScale:i,lockedAxis:r}=this,{fitWidth:s,fitHeight:o}=this.contentRect;let a=0,l=0,c=0,u=0;const f=this.option("infinite");if(f===!0||r&&f===r)a=-1/0,c=1/0,l=-1/0,u=1/0;else{let{containerRect:h,contentRect:p}=this,m=j(s*i,Lt),v=j(o*i,Lt),{innerWidth:S,innerHeight:w}=h;if(h.width===m&&(S=h.width),h.width===v&&(w=h.height),e>S){c=.5*(e-S),a=-1*c;let y=.5*(p.right-p.left);a+=y,c+=y}if(s>S&&e<S&&(a-=.5*(s-S),c-=.5*(s-S)),t>w){u=.5*(t-w),l=-1*u;let y=.5*(p.bottom-p.top);l+=y,u+=y}o>w&&t<w&&(a-=.5*(o-w),c-=.5*(o-w))}return{x:{min:a,max:c},y:{min:l,max:u}}}getBounds(){const e=this.option("bounds");return e!==Pe?e:this.calculateBounds()}updateControls(){const e=this,t=e.container,{panMode:i,contentRect:r,targetScale:s,minScale:o}=e;let a=o,l=e.option("click")||!1;l&&(a=e.getNextScale(l));let c=e.canZoomIn(),u=e.canZoomOut(),f=i===hs&&!!this.option("touch"),h=u&&f;if(f&&(j(s)<j(o)&&!this.panOnlyZoomed&&(h=!0),(j(r.width,1)>j(r.fitWidth,1)||j(r.height,1)>j(r.fitHeight,1))&&(h=!0)),j(r.width*s,1)<j(r.fitWidth,1)&&(h=!1),i===Te&&(h=!1),_e(t,this.cn("isDraggable"),h),!this.option("zoom"))return;let p=c&&j(a)>j(s),m=!p&&!h&&u&&j(a)<j(s);_e(t,this.cn("canZoomIn"),p),_e(t,this.cn("canZoomOut"),m);for(const v of t.querySelectorAll("[data-panzoom-action]")){let S=!1,w=!1;switch(v.dataset.panzoomAction){case"zoomIn":c?S=!0:w=!0;break;case"zoomOut":u?S=!0:w=!0;break;case"toggleZoom":case"iterateZoom":c||u?S=!0:w=!0;const y=v.querySelector("g");y&&(y.style.display=c?"":"none")}S?(v.removeAttribute("disabled"),v.removeAttribute("tabindex")):w&&(v.setAttribute("disabled",""),v.setAttribute("tabindex","-1"))}}panTo({x:e=this.target.e,y:t=this.target.f,scale:i=this.targetScale,friction:r=this.option("friction"),angle:s=0,originX:o=0,originY:a=0,flipX:l=!1,flipY:c=!1,ignoreBounds:u=!1}){this.state!==te.Destroy&&this.applyChange({panX:e-this.target.e,panY:t-this.target.f,scale:i/this.targetScale,angle:s,originX:o,originY:a,friction:r,flipX:l,flipY:c,ignoreBounds:u})}applyChange({panX:e=0,panY:t=0,scale:i=1,angle:r=0,originX:s=-this.current.e,originY:o=-this.current.f,friction:a=this.option("friction"),flipX:l=!1,flipY:c=!1,ignoreBounds:u=!1,bounce:f=this.option("bounce")}){const h=this.state;if(h===te.Destroy)return;this.rAF&&(cancelAnimationFrame(this.rAF),this.rAF=null),this.friction=a||0,this.ignoreBounds=u;const{current:p}=this,m=p.e,v=p.f,S=this.getMatrix(this.target);let w=new DOMMatrix().translate(m,v).translate(s,o).translate(e,t);if(this.option("zoom")){if(!u){const y=this.targetScale,x=this.minScale,P=this.maxScale;y*i<x&&(i=x/y),y*i>P&&(i=P/y)}w=w.scale(i)}w=w.translate(-s,-o).translate(-m,-v).multiply(S),r&&(w=w.rotate(r)),l&&(w=w.scale(-1,1)),c&&(w=w.scale(1,-1));for(const y of Be)y!=="e"&&y!=="f"&&(w[y]>this.minScale+1e-5||w[y]<this.minScale-1e-5)?this.target[y]=w[y]:this.target[y]=j(w[y],Lt);(this.targetScale<this.scale||Math.abs(i-1)>.1||this.panMode===Te||f===!1)&&!u&&this.clampTargetBounds(),h===te.Init?this.animate():this.isResting||(this.state=te.Panning,this.requestTick())}stop(e=!1){if(this.state===te.Init||this.state===te.Destroy)return;const t=this.isTicking;this.rAF&&(cancelAnimationFrame(this.rAF),this.rAF=null),this.isBouncingX=!1,this.isBouncingY=!1;for(const i of Be)this.velocity[i]=0,e==="current"?this.current[i]=this.target[i]:e==="target"&&(this.target[i]=this.current[i]);this.setTransform(),ee(this.container,"is-scaling"),ee(this.container,"is-animating"),this.isTicking=!1,this.state=te.Ready,t&&(this.emit("endAnimation"),this.updateControls())}requestTick(){this.isTicking||(this.emit("startAnimation"),this.updateControls(),X(this.container,"is-animating"),this.isScaling&&X(this.container,"is-scaling")),this.isTicking=!0,this.rAF||(this.rAF=requestAnimationFrame(()=>this.animate()))}panWithMouse(e,t=this.option("mouseMoveFriction")){if(this.pmme=e,this.panMode!==Te||!e||j(this.targetScale)<=j(this.minScale))return;this.emit("mouseMove",e);const{container:i,containerRect:r,contentRect:s}=this,o=r.width,a=r.height,l=i.getBoundingClientRect(),c=(e.clientX||0)-l.left,u=(e.clientY||0)-l.top;let{contentWidth:f,contentHeight:h}=this.calculateContentDim(this.target);const p=this.option("mouseMoveFactor");p>1&&(f!==o&&(f*=p),h!==a&&(h*=p));let m=.5*(f-o)-c/o*100/100*(f-o);m+=.5*(s.right-s.left);let v=.5*(h-a)-u/a*100/100*(h-a);v+=.5*(s.bottom-s.top),this.applyChange({panX:m-this.target.e,panY:v-this.target.f,friction:t})}zoomWithWheel(e){if(this.state===te.Destroy||this.state===te.Init)return;const t=Date.now();if(t-this.pwt<45)return void e.preventDefault();this.pwt=t;var i=[-e.deltaX||0,-e.deltaY||0,-e.detail||0].reduce(function(c,u){return Math.abs(u)>Math.abs(c)?u:c});const r=Math.max(-1,Math.min(1,i)),{targetScale:s,maxScale:o,minScale:a}=this;let l=s*(100+45*r)/100;j(l)<j(a)&&j(s)<=j(a)?(this.cwd+=Math.abs(r),l=a):j(l)>j(o)&&j(s)>=j(o)?(this.cwd+=Math.abs(r),l=o):(this.cwd=0,l=Math.max(Math.min(l,o),a)),this.cwd>this.option("wheelLimit")||(e.preventDefault(),j(l)!==j(s)&&this.zoomTo(l,{event:e}))}canZoomIn(){return this.option("zoom")&&(j(this.contentRect.width,1)<j(this.contentRect.fitWidth,1)||j(this.targetScale)<j(this.maxScale))}canZoomOut(){return this.option("zoom")&&j(this.targetScale)>j(this.minScale)}zoomIn(e=1.25,t){this.zoomTo(this.targetScale*e,t)}zoomOut(e=.8,t){this.zoomTo(this.targetScale*e,t)}zoomToFit(e){this.zoomTo("fit",e)}zoomToCover(e){this.zoomTo("cover",e)}zoomToFull(e){this.zoomTo("full",e)}zoomToMax(e){this.zoomTo("max",e)}toggleZoom(e){this.zoomTo(this.getNextScale("toggleZoom"),e)}toggleMax(e){this.zoomTo(this.getNextScale("toggleMax"),e)}toggleCover(e){this.zoomTo(this.getNextScale("toggleCover"),e)}iterateZoom(e){this.zoomTo("next",e)}zoomTo(e=1,{friction:t=Pe,originX:i=Pe,originY:r=Pe,event:s}={}){if(this.isContentLoading||this.state===te.Destroy)return;const{targetScale:o,fullScale:a,maxScale:l,coverScale:c}=this;if(this.stop(),this.panMode===Te&&(s=this.pmme||s),s||i===Pe||r===Pe){const f=this.content.getBoundingClientRect(),h=this.container.getBoundingClientRect(),p=s?s.clientX:h.left+.5*h.width,m=s?s.clientY:h.top+.5*h.height;i=p-f.left-.5*f.width,r=m-f.top-.5*f.height}let u=1;typeof e=="number"?u=e:e==="full"?u=a:e==="cover"?u=c:e==="max"?u=l:e==="fit"?u=1:e==="next"&&(u=this.getNextScale("iterateZoom")),u=u/o||1,t=t===Pe?u>1?.15:.25:t,this.applyChange({scale:u,originX:i,originY:r,friction:t}),s&&this.panMode===Te&&this.panWithMouse(s,t)}rotateCCW(){this.applyChange({angle:-90})}rotateCW(){this.applyChange({angle:90})}flipX(){this.applyChange({flipX:!0})}flipY(){this.applyChange({flipY:!0})}fitX(){this.stop("target");const{containerRect:e,contentRect:t,target:i}=this;this.applyChange({panX:.5*e.width-(t.left+.5*t.fitWidth)-i.e,panY:.5*e.height-(t.top+.5*t.fitHeight)-i.f,scale:e.width/t.fitWidth/this.targetScale,originX:0,originY:0,ignoreBounds:!0})}fitY(){this.stop("target");const{containerRect:e,contentRect:t,target:i}=this;this.applyChange({panX:.5*e.width-(t.left+.5*t.fitWidth)-i.e,panY:.5*e.innerHeight-(t.top+.5*t.fitHeight)-i.f,scale:e.height/t.fitHeight/this.targetScale,originX:0,originY:0,ignoreBounds:!0})}toggleFS(){const{container:e}=this,t=this.cn("inFullscreen"),i=this.cn("htmlHasFullscreen");e.classList.toggle(t);const r=e.classList.contains(t);r?(document.documentElement.classList.add(i),document.addEventListener("keydown",this.onKeydown,!0)):(document.documentElement.classList.remove(i),document.removeEventListener("keydown",this.onKeydown,!0)),this.updateMetrics(),this.emit(r?"enterFS":"exitFS")}getMatrix(e=this.current){const{a:t,b:i,c:r,d:s,e:o,f:a}=e;return new DOMMatrix([t,i,r,s,o,a])}reset(e){if(this.state!==te.Init&&this.state!==te.Destroy){this.stop("current");for(const t of Be)this.target[t]=Mt[t];this.target.a=this.minScale,this.target.d=this.minScale,this.clampTargetBounds(),this.isResting||(this.friction=e===void 0?this.option("friction"):e,this.state=te.Panning,this.requestTick())}}destroy(){this.stop(),this.state=te.Destroy,this.detachEvents(),this.detachObserver();const{container:e,content:t}=this,i=this.option("classes")||{};for(const r of Object.values(i))e.classList.remove(r+"");t&&(t.removeEventListener("load",this.onLoad),t.removeEventListener("error",this.onError)),this.detachPlugins()}}Object.defineProperty(it,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:ba}),Object.defineProperty(it,"Plugins",{enumerable:!0,configurable:!0,writable:!0,value:{}});const gs=function(n,e){let t=!0;return(...i)=>{t&&(t=!1,n(...i),setTimeout(()=>{t=!0},e))}},ms=(n,e)=>{let t=[];
8return n.childNodes.forEach(i=>{i.nodeType!==Node.ELEMENT_NODE||e&&!i.matches(e)||t.push(i)}),t},wa={viewport:null,track:null,enabled:!0,slides:[],axis:"x",transition:"fade",preload:1,slidesPerPage:"auto",initialPage:0,friction:.12,Panzoom:{decelFriction:.12},center:!0,infinite:!0,fill:!0,dragFree:!1,adaptiveHeight:!1,direction:"ltr",classes:{container:"f-carousel",viewport:"f-carousel__viewport",track:"f-carousel__track",slide:"f-carousel__slide",isLTR:"is-ltr",isRTL:"is-rtl",isHorizontal:"is-horizontal",isVertical:"is-vertical",inTransition:"in-transition",isSelected:"is-selected"},l10n:{NEXT:"Next slide",PREV:"Previous slide",GOTO:"Go to slide #%d"}};var ae;(function(n){n[n.Init=0]="Init",n[n.Ready=1]="Ready",n[n.Destroy=2]="Destroy"})(ae||(ae={}));const pi=n=>{if(typeof n=="string"||n instanceof HTMLElement)n={html:n};else{const e=n.thumb;e!==void 0&&(typeof e=="string"&&(n.thumbSrc=e),e instanceof HTMLImageElement&&(n.thumbEl=e,n.thumbElSrc=e.src,n.thumbSrc=e.src),delete n.thumb)}return Object.assign({html:"",el:null,isDom:!1,class:"",customClass:"",index:-1,dim:0,gap:0,pos:0,transition:!1},n)},xa=(n={})=>Object.assign({index:-1,slides:[],dim:0,pos:-1},n);class Le extends Xt{constructor(e,t){super(t),Object.defineProperty(this,"instance",{enumerable:!0,configurable:!0,writable:!0,value:e})}attach(){}detach(){}}const Sa={classes:{list:"f-carousel__dots",isDynamic:"is-dynamic",hasDots:"has-dots",dot:"f-carousel__dot",isBeforePrev:"is-before-prev",isPrev:"is-prev",isCurrent:"is-current",isNext:"is-next",isAfterNext:"is-after-next"},dotTpl:'<button type="button" data-carousel-page="%i" aria-label="{{GOTO}}"><span class="f-carousel__dot" aria-hidden="true"></span></button>',dynamicFrom:11,maxCount:1/0,minCount:2};class Cn extends Le{constructor(){super(...arguments),Object.defineProperty(this,"isDynamic",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"list",{enumerable:!0,configurable:!0,writable:!0,value:null})}onRefresh(){this.refresh()}build(){let e=this.list;if(!e){e=document.createElement("ul"),X(e,this.cn("list")),e.setAttribute("role","tablist");const t=this.instance.container;t.appendChild(e),X(t,this.cn("hasDots")),this.list=e}return e}refresh(){var e;const t=this.instance.pages.length,i=Math.min(2,this.option("minCount")),r=Math.max(2e3,this.option("maxCount")),s=this.option("dynamicFrom");if(t<i||t>r)return void this.cleanup();const o=typeof s=="number"&&t>5&&t>=s,a=!this.list||this.isDynamic!==o||this.list.children.length!==t;a&&this.cleanup();const l=this.build();if(_e(l,this.cn("isDynamic"),!!o),a)for(let f=0;f<t;f++)l.append(this.createItem(f));let c,u=0;for(const f of[...l.children]){const h=u===this.instance.page;h&&(c=f),_e(f,this.cn("isCurrent"),h),(e=f.children[0])===null||e===void 0||e.setAttribute("aria-selected",h?"true":"false");for(const p of["isBeforePrev","isPrev","isNext","isAfterNext"])ee(f,this.cn(p));u++}if(c=c||l.firstChild,o&&c){const f=c.previousElementSibling,h=f&&f.previousElementSibling;X(f,this.cn("isPrev")),X(h,this.cn("isBeforePrev"));const p=c.nextElementSibling,m=p&&p.nextElementSibling;X(p,this.cn("isNext")),X(m,this.cn("isAfterNext"))}this.isDynamic=o}createItem(e=0){var t;const i=document.createElement("li");i.setAttribute("role","presentation");const r=De(this.instance.localize(this.option("dotTpl"),[["%d",e+1]]).replace(/\%i/g,e+""));return i.appendChild(r),(t=i.children[0])===null||t===void 0||t.setAttribute("role","tab"),i}cleanup(){this.list&&(this.list.remove(),this.list=null),this.isDynamic=!1,ee(this.instance.container,this.cn("hasDots"))}attach(){this.instance.on(["refresh","change"],this.onRefresh)}detach(){this.instance.off(["refresh","change"],this.onRefresh),this.cleanup()}}Object.defineProperty(Cn,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:Sa});const It="disabled",At="next",vs="prev";class En extends Le{constructor(){super(...arguments),Object.defineProperty(this,"container",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"prev",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"next",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"isDom",{enumerable:!0,configurable:!0,writable:!0,value:!1})}onRefresh(){const e=this.instance,t=e.pages.length,i=e.page;if(t<2)return void this.cleanup();this.build();let r=this.prev,s=this.next;r&&s&&(r.removeAttribute(It),s.removeAttribute(It),e.isInfinite||(i<=0&&r.setAttribute(It,""),i>=t-1&&s.setAttribute(It,"")))}addBtn(e){var t;const i=this.instance,r=document.createElement("button");r.setAttribute("tabindex","0"),r.setAttribute("title",i.localize(`{{${e.toUpperCase()}}}`)),X(r,this.cn("button")+" "+this.cn(e===At?"isNext":"isPrev"));const s=i.isRTL?e===At?vs:At:e;var o;return r.innerHTML=i.localize(this.option(`${s}Tpl`)),r.dataset[`carousel${o=e,o?o.match("^[a-z]")?o.charAt(0).toUpperCase()+o.substring(1):o:""}`]="true",(t=this.container)===null||t===void 0||t.appendChild(r),r}build(){const e=this.instance.container,t=this.cn("container");let{container:i,prev:r,next:s}=this;i||(i=e.querySelector("."+t),this.isDom=!!i),i||(i=document.createElement("div"),X(i,t),e.appendChild(i)),this.container=i,s||(s=i.querySelector("[data-carousel-next]")),s||(s=this.addBtn(At)),this.next=s,r||(r=i.querySelector("[data-carousel-prev]")),r||(r=this.addBtn(vs)),this.prev=r}cleanup(){this.isDom||(this.prev&&this.prev.remove(),this.next&&this.next.remove(),this.container&&this.container.remove()),this.prev=null,this.next=null,this.container=null,this.isDom=!1}attach(){this.instance.on(["refresh","change"],this.onRefresh)}detach(){this.instance.off(["refresh","change"],this.onRefresh),this.cleanup()}}Object.defineProperty(En,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:{classes:{container:"f-carousel__nav",button:"f-button",isNext:"is-next",isPrev:"is-prev"},nextTpl:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" tabindex="-1"><path d="M9 3l9 9-9 9"/></svg>
8',prevTpl:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" tabindex="-1"><path d="M15 3l-9 9 9 9"/></svg>'}});class Tn extends Le{constructor(){super(...arguments),Object.defineProperty(this,"selectedIndex",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"target",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"nav",{enumerable:!0,configurable:!0,writable:!0,value:null})}addAsTargetFor(e){this.target=this.instance,this.nav=e,this.attachEvents()}addAsNavFor(e){this.nav=this.instance,this.target=e,this.attachEvents()}attachEvents(){const{nav:e,target:t}=this;e&&t&&(e.options.initialSlide=t.options.initialPage,e.state===ae.Ready?this.onNavReady(e):e.on("ready",this.onNavReady),t.state===ae.Ready?this.onTargetReady(t):t.on("ready",this.onTargetReady))}onNavReady(e){e.on("createSlide",this.onNavCreateSlide),e.on("Panzoom.click",this.onNavClick),e.on("Panzoom.touchEnd",this.onNavTouch),this.onTargetChange()}onTargetReady(e){e.on("change",this.onTargetChange),e.on("Panzoom.refresh",this.onTargetChange),this.onTargetChange()}onNavClick(e,t,i){this.onNavTouch(e,e.panzoom,i)}onNavTouch(e,t,i){var r,s;if(Math.abs(t.dragOffset.x)>3||Math.abs(t.dragOffset.y)>3)return;const o=i.target,{nav:a,target:l}=this;if(!a||!l||!o)return;const c=o.closest("[data-index]");if(i.stopPropagation(),i.preventDefault(),!c)return;const u=parseInt(c.dataset.index||"",10)||0,f=l.getPageForSlide(u),h=a.getPageForSlide(u);a.slideTo(h),l.slideTo(f,{friction:((s=(r=this.nav)===null||r===void 0?void 0:r.plugins)===null||s===void 0?void 0:s.Sync.option("friction"))||0}),this.markSelectedSlide(u)}onNavCreateSlide(e,t){t.index===this.selectedIndex&&this.markSelectedSlide(t.index)}onTargetChange(){var e,t;const{target:i,nav:r}=this;if(!i||!r||r.state!==ae.Ready||i.state!==ae.Ready)return;const s=(t=(e=i.pages[i.page])===null||e===void 0?void 0:e.slides[0])===null||t===void 0?void 0:t.index,o=r.getPageForSlide(s);this.markSelectedSlide(s),r.slideTo(o,r.prevPage===null&&i.prevPage===null?{friction:0}:void 0)}markSelectedSlide(e){const t=this.nav;t&&t.state===ae.Ready&&(this.selectedIndex=e,[...t.slides].map(i=>{i.el&&i.el.classList[i.index===e?"add":"remove"]("is-nav-selected")}))}attach(){const e=this;let t=e.options.target,i=e.options.nav;t?e.addAsNavFor(t):i&&e.addAsTargetFor(i)}detach(){const e=this,t=e.nav,i=e.target;t&&(t.off("ready",e.onNavReady),t.off("createSlide",e.onNavCreateSlide),t.off("Panzoom.click",e.onNavClick),t.off("Panzoom.touchEnd",e.onNavTouch)),e.nav=null,i&&(i.off("ready",e.onTargetReady),i.off("refresh",e.onTargetChange),i.off("change",e.onTargetChange)),e.target=null}}Object.defineProperty(Tn,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:{friction:.35}});const Ca={Navigation:En,Dots:Cn,Sync:Tn},kt="animationend",bs="isSelected",zt="slide";class et extends Xi{get axis(){return this.isHorizontal?"e":"f"}get isEnabled(){return this.state===ae.Ready}get isInfinite(){let e=!1;const{contentDim:t,viewportDim:i,pages:r,slides:s}=this,o=s[0];return r.length>=2&&o&&t+o.dim>=i&&(e=this.option("infinite")),e}get isRTL(){return this.option("direction")==="rtl"}get isHorizontal(){return this.option("axis")==="x"}constructor(e,t={},i={}){if(super(),Object.defineProperty(this,"bp",{enumerable:!0,configurable:!0,writable:!0,value:""}),Object.defineProperty(this,"lp",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"userOptions",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"userPlugins",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"state",{enumerable:!0,configurable:!0,writable:!0,value:ae.Init}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"prevPage",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"container",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"viewport",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"track",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"slides",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"pages",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"panzoom",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"inTransition",{enumerable:!0,configurable:!0,writable:!0,value:new Set}),Object.defineProperty(this,"contentDim",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"viewportDim",{enumerable:!0,configurable:!0,writable:!0,value:0}),typeof e=="string"&&(e=document.querySelector(e)),!e||!ye(e))throw new Error("No Element found");this.container=e,this.slideNext=gs(this.slideNext.bind(this),150),this.slidePrev=gs(this.slidePrev.bind(this),150),this.userOptions=t,this.userPlugins=i,queueMicrotask(()=>{this.processOptions()})}processOptions(){var e,t;const i=we({},et.defaults,this.userOptions);let r="";
8const s=i.breakpoints;if(s&&zi(s))for(const[o,a]of Object.entries(s))window.matchMedia(o).matches&&zi(a)&&(r+=o,we(i,a));r===this.bp&&this.state!==ae.Init||(this.bp=r,this.state===ae.Ready&&(i.initialSlide=((t=(e=this.pages[this.page])===null||e===void 0?void 0:e.slides[0])===null||t===void 0?void 0:t.index)||0),this.state!==ae.Init&&this.destroy(),super.setOptions(i),this.option("enabled")===!1?this.attachEvents():setTimeout(()=>{this.init()},0))}init(){this.state=ae.Init,this.emit("init"),this.attachPlugins(Object.assign(Object.assign({},et.Plugins),this.userPlugins)),this.emit("attachPlugins"),this.initLayout(),this.initSlides(),this.updateMetrics(),this.setInitialPosition(),this.initPanzoom(),this.attachEvents(),this.state=ae.Ready,this.emit("ready")}initLayout(){const{container:e}=this,t=this.option("classes");X(e,this.cn("container")),_e(e,t.isLTR,!this.isRTL),_e(e,t.isRTL,this.isRTL),_e(e,t.isVertical,!this.isHorizontal),_e(e,t.isHorizontal,this.isHorizontal);let i=this.option("viewport")||e.querySelector(`.${t.viewport}`);i||(i=document.createElement("div"),X(i,t.viewport),i.append(...ms(e,`.${t.slide}`)),e.prepend(i)),i.addEventListener("scroll",this.onScroll);let r=this.option("track")||e.querySelector(`.${t.track}`);r||(r=document.createElement("div"),X(r,t.track),r.append(...Array.from(i.childNodes))),r.setAttribute("aria-live","polite"),i.contains(r)||i.prepend(r),this.viewport=i,this.track=r,this.emit("initLayout")}initSlides(){const{track:e}=this;if(!e)return;const t=[...this.slides],i=[];[...ms(e,`.${this.cn(zt)}`)].forEach(r=>{if(ye(r)){const s=pi({el:r,isDom:!0,index:this.slides.length});i.push(s)}});for(let r of[...this.option("slides",[])||[],...t])i.push(pi(r));this.slides=i;for(let r=0;r<this.slides.length;r++)this.slides[r].index=r;
vendor: 9,718 bytes, line 8
8for(const r of i)this.emit("beforeInitSlide",r,r.index),this.emit("initSlide",r,r.index);this.emit("initSlides")}setInitialPage(){const e=this.option("initialSlide");this.page=typeof e=="number"?this.getPageForSlide(e):parseInt(this.option("initialPage",0)+"",10)||0}setInitialPosition(){const{track:e,pages:t,isHorizontal:i}=this;if(!e||!t.length)return;let r=this.page;t[r]||(this.page=r=0);const s=(t[r].pos||0)*(this.isRTL&&i?1:-1),o=i?`${s}px`:"0",a=i?"0":`${s}px`;e.style.transform=`translate3d(${o}, ${a}, 0) scale(1)`,this.option("adaptiveHeight")&&this.setViewportHeight()}initPanzoom(){this.panzoom&&(this.panzoom.destroy(),this.panzoom=null);const e=this.option("Panzoom")||{};this.panzoom=new it(this.viewport,we({},{content:this.track,zoom:!1,panOnlyZoomed:!1,lockAxis:this.isHorizontal?"x":"y",infinite:this.isInfinite,click:!1,dblClick:!1,touch:t=>!(this.pages.length<2&&!t.options.infinite),bounds:()=>this.getBounds(),maxVelocity:t=>Math.abs(t.target[this.axis]-t.current[this.axis])<2*this.viewportDim?100:0},e)),this.panzoom.on("*",(t,i,...r)=>{this.emit(`Panzoom.${i}`,t,...r)}),this.panzoom.on("decel",this.onDecel),this.panzoom.on("refresh",this.onRefresh),this.panzoom.on("beforeTransform",this.onBeforeTransform),this.panzoom.on("endAnimation",this.onEndAnimation)}attachEvents(){const e=this.container;e&&(e.addEventListener("click",this.onClick,{passive:!1,capture:!1}),e.addEventListener("slideTo",this.onSlideTo)),window.addEventListener("resize",this.onResize)}createPages(){let e=[];const{contentDim:t,viewportDim:i}=this;let r=this.option("slidesPerPage");r=(r==="auto"||t<=i)&&this.option("fill")!==!1?1/0:parseFloat(r+"");let s=0,o=0,a=0;for(const l of this.slides)(!e.length||o+l.dim-i>.05||a>=r)&&(e.push(xa()),s=e.length-1,o=0,a=0),e[s].slides.push(l),o+=l.dim+l.gap,a++;return e}processPages(){const e=this.pages,{contentDim:t,viewportDim:i,isInfinite:r}=this,s=this.option("center"),o=this.option("fill"),a=o&&s&&t>i&&!r;if(e.forEach((u,f)=>{var h;u.index=f,u.pos=((h=u.slides[0])===null||h===void 0?void 0:h.pos)||0,u.dim=0;for(const[p,m]of u.slides.entries())u.dim+=m.dim,p<u.slides.length-1&&(u.dim+=m.gap);a&&u.pos+.5*u.dim<.5*i?u.pos=0:a&&u.pos+.5*u.dim>=t-.5*i?u.pos=t-i:s&&(u.pos+=-.5*(i-u.dim))}),e.forEach(u=>{o&&!r&&t>i&&(u.pos=Math.max(u.pos,0),u.pos=Math.min(u.pos,t-i)),u.pos=j(u.pos,1e3),u.dim=j(u.dim,1e3),Math.abs(u.pos)<=.1&&(u.pos=0)}),r)return e;const l=[];let c;return e.forEach(u=>{const f=Object.assign({},u);c&&f.pos===c.pos?(c.dim+=f.dim,c.slides=[...c.slides,...f.slides]):(f.index=l.length,c=f,l.push(f))}),l}getPageFromIndex(e=0){const t=this.pages.length;let i;return e=parseInt((e||0).toString())||0,i=this.isInfinite?(e%t+t)%t:Math.max(Math.min(e,t-1),0),i}getSlideMetrics(e){var t,i;const r=this.isHorizontal?"width":"height";let s=0,o=0,a=e.el;const l=!(!a||a.parentNode);if(a?s=parseFloat(a.dataset[r]||"")||0:(a=document.createElement("div"),a.style.visibility="hidden",(this.track||document.body).prepend(a)),X(a,this.cn(zt)+" "+e.class+" "+e.customClass),s)a.style[r]=`${s}px`,a.style[r==="width"?"height":"width"]="";else{l&&(this.track||document.body).prepend(a),s=a.getBoundingClientRect()[r]*Math.max(1,((t=window.visualViewport)===null||t===void 0?void 0:t.scale)||1);let u=a[this.isHorizontal?"offsetWidth":"offsetHeight"];u-1>s&&(s=u)}const c=getComputedStyle(a);return c.boxSizing==="content-box"&&(this.isHorizontal?(s+=parseFloat(c.paddingLeft)||0,s+=parseFloat(c.paddingRight)||0):(s+=parseFloat(c.paddingTop)||0,s+=parseFloat(c.paddingBottom)||0)),o=parseFloat(c[this.isHorizontal?"marginRight":"marginBottom"])||0,l?(i=a.parentElement)===null||i===void 0||i.removeChild(a):e.el||a.remove(),{dim:j(s,1e3),gap:j(o,1e3)}}getBounds(){const{isInfinite:e,isRTL:t,isHorizontal:i,pages:r}=this;let s={min:0,max:0};if(e)s={min:-1/0,max:1/0};else if(r.length){const o=r[0].pos,a=r[r.length-1].pos;s=t&&i?{min:o,max:a}:{min:-1*a,max:-1*o}}return{x:i?s:{min:0,max:0},y:i?{min:0,max:0}:s}}repositionSlides(){let e,{isHorizontal:t,isRTL:i,isInfinite:r,viewport:s,viewportDim:o,contentDim:a,page:l,pages:c,slides:u,panzoom:f}=this,h=0,p=0,m=0,v=0;f?v=-1*f.current[this.axis]:c[l]&&(v=c[l].pos||0),e=t?i?"right":"left":"top",i&&t&&(v*=-1);for(const x of u){const P=x.el;P?(e==="top"?(P.style.right="",P.style.left=""):P.style.top="",x.index!==h?P.style[e]=p===0?"":`${j(p,1e3)}px`:P.style[e]="",m+=x.dim+x.gap,h++):p+=x.dim+x.gap}if(r&&m&&s){let x=getComputedStyle(s),P="padding",M=t?"Right":"Bottom",D=parseFloat(x[P+(t?"Left":"Top")]);v-=D,o+=D,o+=parseFloat(x[P+M]);for(const k of u)k.el&&(j(k.pos)<j(o)&&j(k.pos+k.dim+k.gap)<j(v)&&j(v)>j(a-o)&&(k.el.style[e]=`${j(p+m,1e3)}px`),j(k.pos+k.gap)>=j(a-o)&&j(k.pos)>j(v+o)&&j(v)<j(o)&&(k.el.style[e]=`-${j(m,1e3)}px`))}let S,w,y=[...this.inTransition];if(y.length>1&&(S=c[y[0]],w=c[y[1]]),S&&w){let x=0;for(const P of u)P.el?this.inTransition.has(P.index)&&S.slides.indexOf(P)<0&&(P.el.style[e]=`${j(x+(S.pos-w.pos),1e3)}px`):x+=P.dim+P.gap}}createSlideEl(e){const{track:t,slides:i}=this;if(!t||!e||e.el&&e.el.parentNode)return;const r=e.el||document.createElement("div");X(r,this.cn(zt)),X(r,e.class),X(r,e.customClass);const s=e.html;s&&(s instanceof HTMLElement?r.appendChild(s):r.innerHTML=e.html+"");const o=[];i.forEach((u,f)=>{u.el&&o.push(f)});const a=e.index;let l=null;o.length&&(l=i[o.reduce((u,f)=>Math.abs(f-a)<Math.abs(u-a)?f:u)]);const c=l&&l.el&&l.el.parentNode?l.index<e.index?l.el.nextSibling:l.el:null;t.insertBefore(r,t.contains(c)?c:null),e.el=r,this.emit("createSlide",e)}removeSlideEl(e,t=!1){const i=e==null?void 0:e.el;if(!i||!i.parentNode)return;const r=this.cn(bs);if(i.classList.contains(r)&&(ee(i,r),this.emit("unselectSlide",e)),e.isDom&&!t)return i.removeAttribute("aria-hidden"),i.removeAttribute("data-index"),void(i.style.left="");this.emit("removeSlide",e);const s=new CustomEvent(kt);i.dispatchEvent(s),e.el&&(e.el.remove(),e.el=null)}transitionTo(e=0,t=this.option("transition")){var i,r,s,o;if(!t)return!1;const a=this.page,{pages:l,panzoom:c}=this;e=parseInt((e||0).toString())||0;const u=this.getPageFromIndex(e);if(!c||!l[u]||l.length<2||Math.abs((((r=(i=l[a])===null||i===void 0?void 0:i.slides[0])===null||r===void 0?void 0:r.dim)||0)-this.viewportDim)>1)return!1;let f=e>a?1:-1;this.isInfinite&&(a===0&&e===l.length-1&&(f=-1),a===l.length-1&&e===0&&(f=1));const h=l[u].pos*(this.isRTL?1:-1);if(a===u&&Math.abs(h-c.target[this.axis])<1)return!1;this.clearTransitions();const p=c.isResting;X(this.container,this.cn("inTransition"));const m=((s=l[a])===null||s===void 0?void 0:s.slides[0])||null,v=((o=l[u])===null||o===void 0?void 0:o.slides[0])||null;this.inTransition.add(v.index),this.createSlideEl(v);let S=m.el,w=v.el;p||t===zt||(t="fadeFast",S=null);const y=this.isRTL?"next":"prev",x=this.isRTL?"prev":"next";return S&&(this.inTransition.add(m.index),m.transition=t,S.addEventListener(kt,this.onAnimationEnd),S.classList.add(`f-${t}Out`,`to-${f>0?x:y}`)),w&&(v.transition=t,w.addEventListener(kt,this.onAnimationEnd),w.classList.add(`f-${t}In`,`from-${f>0?y:x}`)),c.current[this.axis]=h,c.target[this.axis]=h,c.requestTick(),this.onChange(u),!0}manageSlideVisiblity(){const e=new Set,t=new Set,i=this.getVisibleSlides(parseFloat(this.option("preload",0)+"")||0);for(const r of this.slides)i.has(r)?e.add(r):t.add(r);for(const r of this.inTransition)e.add(this.slides[r]);for(const r of e)this.createSlideEl(r),this.lazyLoadSlide(r);for(const r of t)e.has(r)||this.removeSlideEl(r);this.markSelectedSlides(),this.repositionSlides()}markSelectedSlides(){if(!this.pages[this.page]||!this.pages[this.page].slides)return;const e="aria-hidden";let t=this.cn(bs);if(t)for(const i of this.slides){const r=i.el;r&&(r.dataset.index=`${i.index}`,r.classList.contains("f-thumbs__slide")?this.getVisibleSlides(0).has(i)?r.removeAttribute(e):r.setAttribute(e,"true"):this.pages[this.page].slides.includes(i)?(r.classList.contains(t)||(X(r,t),this.emit("selectSlide",i)),r.removeAttribute(e)):(r.classList.contains(t)&&(ee(r,t),this.emit("unselectSlide",i)),r.setAttribute(e,"true")))}}flipInfiniteTrack(){const{axis:e,isHorizontal:t,isInfinite:i,isRTL:r,viewportDim:s,contentDim:o}=this,a=this.panzoom;if(!a||!i)return;let l=a.current[e],c=a.target[e]-l,u=0,f=.5*s;r&&t?(l<-f&&(u=-1,l+=o),l>o-f&&(u=1,l-=o)):(l>f&&(u=1,l-=o),l<-o+f&&(u=-1,l+=o)),u&&(a.current[e]=l,a.target[e]=l+c)}lazyLoadImg(e,t){const i=this,r="f-fadeIn",s="is-preloading";let o=!1,a=null;const l=()=>{o||(o=!0,a&&(a.remove(),a=null),ee(t,s),t.complete&&(X(t,r),setTimeout(()=>{ee(t,r)},350)),this.option("adaptiveHeight")&&e.el&&this.pages[this.page].slides.indexOf(e)>-1&&(i.updateMetrics(),i.setViewportHeight()),this.emit("load",e))};X(t,s),t.src=t.dataset.lazySrcset||t.dataset.lazySrc||"",delete t.dataset.lazySrc,delete t.dataset.lazySrcset,t.addEventListener("error",()=>{l()}),t.addEventListener("load",()=>{l()}),setTimeout(()=>{const c=t.parentNode;c&&e.el&&(t.complete?l():o||(a=De(Ui),c.insertBefore(a,t)))},300)}lazyLoadSlide(e){const t=e&&e.el;if(!t)return;const i=new Set;let r=Array.from(t.querySelectorAll("[data-lazy-src],[data-lazy-srcset]"));t.dataset.lazySrc&&r.push(t),r.map(s=>{s instanceof HTMLImageElement?i.add(s):s instanceof HTMLElement&&s.dataset.lazySrc&&(s.style.backgroundImage=`url('${s.dataset.lazySrc}')`,delete s.dataset.lazySrc)});for(const s of i)this.lazyLoadImg(e,s)}onAnimationEnd(e){var t;const i=e.target,r=i?parseInt(i.dataset.index||"",10)||0:-1,s=this.slides[r],o=e.animationName;if(!i||!s||!o)return;const a=!!this.inTransition.has(r)&&s.transition;a&&o.substring(0,a.length+2)===`f-${a}`&&this.inTransition.delete(r),this.inTransition.size||this.clearTransitions(),r===this.page&&(!((t=this.panzoom)===null||t===void 0)&&t.isResting)&&this.emit
8("settle")}onDecel(e,t=0,i=0,r=0,s=0){if(this.option("dragFree"))return void this.setPageFromPosition();const{isRTL:o,isHorizontal:a,axis:l,pages:c}=this,u=c.length,f=Math.abs(Math.atan2(i,t)/(Math.PI/180));let h=0;if(h=f>45&&f<135?a?0:i:a?t:0,!u)return;let p=this.page,m=o&&a?1:-1;const v=e.current[l]*m;let{pageIndex:S}=this.getPageFromPosition(v);Math.abs(h)>5?(c[p].dim<document.documentElement["client"+(this.isHorizontal?"Width":"Height")]-1&&(p=S),p=o&&a?h<0?p-1:p+1:h<0?p+1:p-1):p=r===0&&s===0?p:S,this.slideTo(p,{transition:!1,friction:e.option("decelFriction")})}onClick(e){const t=e.target,i=t&&ye(t)?t.dataset:null;let r,s;i&&(i.carouselPage!==void 0?(s="slideTo",r=i.carouselPage):i.carouselNext!==void 0?s="slideNext":i.carouselPrev!==void 0&&(s="slidePrev")),s?(e.preventDefault(),e.stopPropagation(),t&&!t.hasAttribute("disabled")&&this[s](r)):this.emit("click",e)}onSlideTo(e){const t=e.detail||0;this.slideTo(this.getPageForSlide(t),{friction:0})}onChange(e,t=0){const i=this.page;this.prevPage=i,this.page=e,this.option("adaptiveHeight")&&this.setViewportHeight(),e!==i&&(this.markSelectedSlides(),this.emit("change",e,i,t))}onRefresh(){let e=this.contentDim,t=this.viewportDim;this.updateMetrics(),this.contentDim===e&&this.viewportDim===t||this.slideTo(this.page,{friction:0,transition:!1})}onScroll(){var e;(e=this.viewport)===null||e===void 0||e.scroll(0,0)}onResize(){this.option("breakpoints")&&this.processOptions()}onBeforeTransform(e){this.lp!==e.current[this.axis]&&(this.flipInfiniteTrack(),this.manageSlideVisiblity()),this.lp=e.current.e}onEndAnimation(){this.inTransition.size||this.emit("settle")}reInit(e=null,t=null){this.destroy(),this.state=ae.Init,this.prevPage=null,this.userOptions=e||this.userOptions,this.userPlugins=t||this.userPlugins,this.processOptions()}slideTo(e=0,{friction:t=this.option("friction"),transition:i=this.option("transition")}={}){if(this.state===ae.Destroy)return;e=parseInt((e||0).toString())||0;const r=this.getPageFromIndex(e),{axis:s,isHorizontal:o,isRTL:a,pages:l,panzoom:c}=this,u=l.length,f=a&&o?1:-1;if(!c||!u)return;if(this.page!==r){const p=new Event("beforeChange",{bubbles:!0,cancelable:!0});if(this.emit("beforeChange",p,e),p.defaultPrevented)return}if(this.transitionTo(e,i))return;let h=l[r].pos;if(this.isInfinite){const p=this.contentDim,m=c.target[s]*f;u===2?h+=p*Math.floor(parseFloat(e+"")/2):h=[h,h-p,h+p].reduce(function(v,S){return Math.abs(S-m)<Math.abs(v-m)?S:v})}h*=f,Math.abs(c.target[s]-h)<1||(c.panTo({x:o?h:0,y:o?0:h,friction:t}),this.onChange(r))}slideToClosest(e){if(this.panzoom){const{pageIndex:t}=this.getPageFromPosition();this.slideTo(t,e)}}slideNext(){this.slideTo(this.page+1)}slidePrev(){this.slideTo(this.page-1)}clearTransitions(){this.inTransition.clear(),ee(this.container,this.cn("inTransition"));const e=["to-prev","to-next","from-prev","from-next"];for(const t of this.slides){const i=t.el;if(i){i.removeEventListener(kt,this.onAnimationEnd),i.classList.remove(...e);const r=t.transition;r&&i.classList.remove(`f-${r}Out`,`f-${r}In`)}}this.manageSlideVisiblity()}addSlide(e,t){var i,r,s,o;const a=this.panzoom,l=((i=this.pages[this.page])===null||i===void 0?void 0:i.pos)||0,c=((r=this.pages[this.page])===null||r===void 0?void 0:r.dim)||0,u=this.contentDim<this.viewportDim;let f=Array.isArray(t)?t:[t];const h=[];for(const p of f)h.push(pi(p));this.slides.splice(e,0,...h);for(let p=0;p<this.slides.length;p++)this.slides[p].index=p;for(const p of h)this.emit("beforeInitSlide",p,p.index);if(this.page>=e&&(this.page+=h.length),this.updateMetrics(),a){const p=((s=this.pages[this.page])===null||s===void 0?void 0:s.pos)||0,m=((o=this.pages[this.page])===null||o===void 0?void 0:o.dim)||0,v=this.pages.length||1,S=this.isRTL?c-m:m-c,w=this.isRTL?l-p:p-l;u&&v===1?(e<=this.page&&(a.current[this.axis]-=S,a.target[this.axis]-=S),a.panTo({[this.isHorizontal?"x":"y"]:-1*p})):w&&e<=this.page&&(a.target[this.axis]-=w,a.current[this.axis]-=w,a.requestTick())}for(const p of h)this.emit("initSlide",p,p.index)}prependSlide(e){this.addSlide(0,e)}appendSlide(e){this.addSlide(this.slides.length,e)}removeSlide(e){const t=this.slides.length;e=(e%t+t)%t;const i=this.slides[e];if(i){this.removeSlideEl(i,!0),this.slides.splice(e,1);for(let r=0;r<this.slides.length;r++)this.slides[r].index=r;this.updateMetrics(),this.slideTo(this.page,{friction:0,transition:!1}
vendor: 4,509 bytes, line 8
8),this.emit("destroySlide",i)}}updateMetrics(){const{panzoom:e,viewport:t,track:i,slides:r,isHorizontal:s,isInfinite:o}=this;if(!i)return;const a=s?"width":"height",l=s?"offsetWidth":"offsetHeight";if(t){let f=Math.max(t[l],j(t.getBoundingClientRect()[a],1e3)),h=getComputedStyle(t),p="padding",m=s?"Right":"Bottom";f-=parseFloat(h[p+(s?"Left":"Top")])+parseFloat(h[p+m]),this.viewportDim=f}let c,u=0;for(const[f,h]of r.entries()){let p=0,m=0;!h.el&&c?(p=c.dim,m=c.gap):({dim:p,gap:m}=this.getSlideMetrics(h),c=h),p=j(p,1e3),m=j(m,1e3),h.dim=p,h.gap=m,h.pos=u,u+=p,(o||f<r.length-1)&&(u+=m)}u=j(u,1e3),this.contentDim=u,e&&(e.contentRect[a]=u,e.contentRect[s?"fullWidth":"fullHeight"]=u),this.pages=this.createPages(),this.pages=this.processPages(),this.state===ae.Init&&this.setInitialPage(),this.page=Math.max(0,Math.min(this.page,this.pages.length-1)),this.manageSlideVisiblity(),this.emit("refresh")}getProgress(e,t=!1,i=!1){e===void 0&&(e=this.page);const r=this,s=r.panzoom,o=r.contentDim,a=r.pages[e]||0;if(!a||!s)return e>this.page?-1:1;let l=-1*s.current.e,c=j((l-a.pos)/(1*a.dim),1e3),u=c,f=c;this.isInfinite&&i!==!0&&(u=j((l-a.pos+o)/(1*a.dim),1e3),f=j((l-a.pos-o)/(1*a.dim),1e3));let h=[c,u,f].reduce(function(p,m){return Math.abs(m)<Math.abs(p)?m:p});return t?h:h>1?1:h<-1?-1:h}setViewportHeight(){const{page:e,pages:t,viewport:i,isHorizontal:r}=this;if(!i||!t[e])return;let s=0;r&&this.track&&(this.track.style.height="auto",t[e].slides.forEach(o=>{o.el&&(s=Math.max(s,o.el.offsetHeight))})),i.style.height=s?`${s}px`:""}getPageForSlide(e){for(const t of this.pages)for(const i of t.slides)if(i.index===e)return t.index;return-1}getVisibleSlides(e=0){var t;const i=new Set;let{panzoom:r,contentDim:s,viewportDim:o,pages:a,page:l}=this;if(o){s=s+((t=this.slides[this.slides.length-1])===null||t===void 0?void 0:t.gap)||0;let c=0;c=r&&r.state!==te.Init&&r.state!==te.Destroy?-1*r.current[this.axis]:a[l]&&a[l].pos||0,this.isInfinite&&(c-=Math.floor(c/s)*s),this.isRTL&&this.isHorizontal&&(c*=-1);const u=c-o*e,f=c+o*(e+1),h=this.isInfinite?[-1,0,1]:[0];for(const p of this.slides)for(const m of h){const v=p.pos+m*s,S=v+p.dim+p.gap;v<f&&S>u&&i.add(p)}}return i}getPageFromPosition(e){const{viewportDim:t,contentDim:i,slides:r,pages:s,panzoom:o}=this,a=s.length,l=r.length,c=r[0],u=r[l-1],f=this.option("center");let h=0,p=0,m=0,v=e===void 0?-1*((o==null?void 0:o.target[this.axis])||0):e;f&&(v+=.5*t),this.isInfinite?(v<c.pos-.5*u.gap&&(v-=i,m=-1),v>u.pos+u.dim+.5*u.gap&&(v-=i,m=1)):v=Math.max(c.pos||0,Math.min(v,u.pos));let S=u,w=r.find(y=>{const x=y.pos-.5*S.gap,P=y.pos+y.dim+.5*y.gap;return S=y,v>=x&&v<P});return w||(w=u),p=this.getPageForSlide(w.index),h=p+m*a,{page:h,pageIndex:p}}setPageFromPosition(){const{pageIndex:e}=this.getPageFromPosition();this.onChange(e)}destroy(){if([ae.Destroy].includes(this.state))return;this.state=ae.Destroy;const{container:e,viewport:t,track:i,slides:r,panzoom:s}=this,o=this.option("classes");e.removeEventListener("click",this.onClick,{passive:!1,capture:!1}),e.removeEventListener("slideTo",this.onSlideTo),window.removeEventListener("resize",this.onResize),s&&(s.destroy(),this.panzoom=null),r&&r.forEach(l=>{this.removeSlideEl(l)}),this.detachPlugins(),t&&(t.removeEventListener("scroll",this.onScroll),t.offsetParent&&i&&i.offsetParent&&t.replaceWith(...i.childNodes));for(const[l,c]of Object.entries(o))l!=="container"&&c&&e.classList.remove(c);this.track=null,this.viewport=null,this.page=0,this.slides=[];const a=this.events.get("ready");this.events=new Map,a&&this.events.set("ready",a)}}Object.defineProperty(et,"Panzoom",{enumerable:!0,configurable:!0,writable:!0,value:it}),Object.defineProperty(et,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:wa}),Object.defineProperty(et,"Plugins",{enumerable:!0,configurable:!0,writable:!0,value:Ca});const Pn=function(n){if(!ye(n))return 0;const e=window.scrollY,t=window.innerHeight,i=e+t,r=n.getBoundingClientRect(),s=r.y+e,o=r.height,a=s+o;if(e>a||i<s)return 0;if(e<s&&i>a||s<e&&a>i)return 100;let l=o;s<e&&(l-=e-s),a>i&&(l-=a-i);const c=l/t*100;return Math.round(c)},yt=!(typeof window>"u"||!window.document||!window.document.createElement);let gi;const mi=["a[href]","area[href]",'input:not([disabled]):not([type="hidden"]):not([aria-hidden])',"select:not([disabled]):not([aria-hidden])","textarea:not([disabled]):not([aria-hidden])","button:not([disabled]):not([aria-hidden]):not(.fancybox-focus-guard)","iframe","object","embed","video","audio","[contenteditable]",'[tabindex]:not
8([tabindex^="-"]):not([disabled]):not([aria-hidden])'].join(","),ys=n=>{if(n&&yt){gi===void 0&&document.createElement("div").focus({get preventScroll(){return gi=!0,!1}});try{if(gi)n.focus({preventScroll:!0});else{const e=window.scrollY||document.body.scrollTop,t=window.scrollX||document.body.scrollLeft;n.focus(),document.body.scrollTo({top:e,left:t,behavior:"auto"})}}catch{}}},On=()=>{const n=document;let e,t="",i="",r="";return n.fullscreenEnabled?(t="requestFullscreen",i="exitFullscreen",r="fullscreenElement"):n.webkitFullscreenEnabled&&(t="webkitRequestFullscreen",i="webkitExitFullscreen",r="webkitFullscreenElement"),t&&(e={request:function(s=n.documentElement){return t==="webkitRequestFullscreen"?s[t](Element.ALLOW_KEYBOARD_INPUT):s[t]()},exit:function(){return n[r]&&n[i]()},isFullscreen:function(){return n[r]}}),e},Di={animated:!0,autoFocus:!0,backdropClick:"close",Carousel:{classes:{container:"fancybox__carousel",viewport:"fancybox__viewport",track:"fancybox__track",slide:"fancybox__slide"}},closeButton:"auto",closeExisting:!1,commonCaption:!1,compact:()=>window.matchMedia("(max-width: 578px), (max-height: 578px)").matches,contentClick:"toggleZoom",contentDblClick:!1,defaultType:"image",defaultDisplay:"flex",dragToClose:!0,Fullscreen:{autoStart:!1},groupAll:!1,groupAttr:"data-fancybox",hideClass:"f-fadeOut",hideScrollbar:!0,idle:3500,keyboard:{Escape:"close",Delete:"close",Backspace:"close",PageUp:"next",PageDown:"prev",ArrowUp:"prev",ArrowDown:"next",ArrowRight:"next",ArrowLeft:"prev"},l10n:Object.assign(Object.assign({},Sn),{CLOSE:"Close",NEXT:"Next",PREV:"Previous",MODAL:"You can close this modal content with the ESC key",ERROR:"Something Went Wrong, Please Try Again Later",IMAGE_ERROR:"Image Not Found",ELEMENT_NOT_FOUND:"HTML Element Not Found",AJAX_NOT_FOUND:"Error Loading AJAX : Not Found",AJAX_FORBIDDEN:"Error Loading AJAX : Forbidden",IFRAME_ERROR:"Error Loading Page",TOGGLE_ZOOM:"Toggle zoom level",TOGGLE_THUMBS:"Toggle thumbnails",TOGGLE_SLIDESHOW:"Toggle slideshow",TOGGLE_FULLSCREEN:"Toggle full-screen mode",DOWNLOAD:"Download"}),parentEl:null,placeFocusBack:!0,showClass:"f-zoomInUp",startIndex:0,tpl:{closeButton:'<button data-fancybox-close class="f-button is-close-btn" title="{{CLOSE}}"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" tabindex="-1"><path d="M20 20L4 4m16 0L4 20"/></svg></button>',main:`<div class="fancybox__container" role="dialog" aria-modal="true" aria-label="{{MODAL}}" tabindex="-1">
9    <div class="fancybox__backdrop"></div>
10    <div class="fancybox__carousel"></div>
11    <div class="fancybox__footer"></div>
12  </div>`},trapFocus:!0,wheel:"zoom"};var de,be;(function(n){n[n.Init=0]="Init",n[n.Ready=1]="Ready",n[n.Closing=2]="Closing",n[n.CustomClosing=3]="CustomClosing",n[n.Destroy=4]="Destroy"})(de||(de={})),function(n){n[n.Loading=0]="Loading",n[n.Opening=1]="Opening",n[n.Ready=2]="Ready",n[n.Closing=3]="Closing"}(be||(be={}));let ws="",bt=!1,Dt=!1,Je=null;const Mn=()=>{let n="",e="";const t=Z.getInstance();if(t){const i=t.carousel,r=t.getSlide();if(i&&r){let s=r.slug||void 0,o=r.triggerEl||void 0;e=s||t.option("slug")||"",!e&&o&&o.dataset&&(e=o.dataset.fancybox||""),e&&e!=="true"&&(n="#"+e+(!s&&i.slides.length>1?"-"+(r.index+1):""))}}return{hash:n,slug:e,index:1}},Ut=()=>{const n=new URL(document.URL).hash,e=n.slice(1).split("-"),t=e[e.length-1],i=t&&/^\+?\d+$/.test(t)&&parseInt(e.pop()||"1",10)||1;return{hash:n,slug:e.join("-"),index:i}},Ln=()=>{const{slug:n,index:e}=Ut();if(!n)return;let t=document.querySelector(`[data-slug="${n}"]`);if(t&&t.dispatchEvent(new CustomEvent("click",{bubbles:!0,cancelable:!0})),Z.getInstance())return;const i=document.querySelectorAll(`[data-fancybox="${n}"]`);i.length&&(t=i[e-1],t&&t.dispatchEvent(new CustomEvent("click",{bubbles:!0,cancelable:!0})))},In=()=>{if(Z.defaults.Hash===!1)return;const n=Z.getInstance();if((n==null?void 0:n.options.Hash)===!1)return;const{slug:e,index:t}=Ut(),{slug:i}=Mn();n&&(e===i?n.jumpTo(t-1):(bt=!0,n.close())),Ln()},An=()=>{Je&&clearTimeout(Je),queueMicrotask(()=>{In()})},xs=()=>{window.addEventListener("hashchange",An,!1),setTimeout(()=>{In()},500)};yt&&(/complete|interactive|loaded/.test(document.readyState)?xs():document.addEventListener("DOMContentLoaded",xs));const _t="is-zooming-in";class kn extends Le{onCreateSlide(e,t,i){const r=this.instance.optionFor(i,"src")||"";i.el&&i.type==="image"&&typeof r=="string"&&this.setImage(i,r)}onRemoveSlide(e,t,i){i.panzoom&&i.panzoom.destroy(),i.panzoom=void 0,i.imageEl=void 0}onChange(e,t,i,r){ee(this.instance.container,_t);for(const s of t.slides){const o=s.panzoom;o&&s.index!==i&&o.reset(.35)}}onClose(){var e;const t=this.instance,i=t.container,r=t.getSlide();if(!i||!i.parentElement||!r)return;const{el:s,contentEl:o,panzoom:a,thumbElSrc:l}=r;
12if(!s||!l||!o||!a||a.isContentLoading||a.state===te.Init||a.state===te.Destroy)return;a.updateMetrics();let c=this.getZoomInfo(r);if(!c)return;this.instance.state=de.CustomClosing,i.classList.remove(_t),i.classList.add("is-zooming-out"),o.style.backgroundImage=`url('${l}')`;const u=i.getBoundingClientRect();(((e=window.visualViewport)===null||e===void 0?void 0:e.scale)||1)===1&&Object.assign(i.style,{position:"absolute",top:`${i.offsetTop+window.scrollY}px`,left:`${i.offsetLeft+window.scrollX}px`,bottom:"auto",right:"auto",width:`${u.width}px`,height:`${u.height}px`,overflow:"hidden"});const{x:f,y:h,scale:p,opacity:m}=c;if(m){const v=((S,w,y,x)=>{const P=w-S,M=x-y;return D=>y+((D-S)/P*M||0)})(a.scale,p,1,0);a.on("afterTransform",()=>{o.style.opacity=v(a.scale)+""})}a.on("endAnimation",()=>{t.destroy()}),a.target.a=p,a.target.b=0,a.target.c=0,a.target.d=p,a.panTo({x:f,y:h,scale:p,friction:m?.2:.33,ignoreBounds:!0}),a.isResting&&t.destroy()}setImage(e,t){const i=this.instance;e.src=t,this.process(e,t).then(r=>{const{contentEl:s,imageEl:o,thumbElSrc:a,el:l}=e;if(i.isClosing()||!s||!o)return;s.offsetHeight;const c=!!i.isOpeningSlide(e)&&this.getZoomInfo(e);if(this.option("protected")&&l){l.addEventListener("contextmenu",h=>{h.preventDefault()});const f=document.createElement("div");X(f,"fancybox-protected"),s.appendChild(f)}if(a&&c){const f=r.contentRect,h=Math.max(f.fullWidth,f.fullHeight);let p=null;!c.opacity&&h>1200&&(p=document.createElement("img"),X(p,"fancybox-ghost"),p.src=a,s.appendChild(p));const m=()=>{p&&(X(p,"f-fadeFastOut"),setTimeout(()=>{p&&(p.remove(),p=null)},200))};(u=a,new Promise((v,S)=>{const w=new Image;w.onload=v,w.onerror=S,w.src=u})).then(()=>{i.hideLoading(e),e.state=be.Opening,this.instance.emit("reveal",e),this.zoomIn(e).then(()=>{m(),this.instance.done(e)},()=>{}),p&&setTimeout(()=>{m()},h>2500?800:200)},()=>{i.hideLoading(e),i.revealContent(e)})}else{const f=this.optionFor(e,"initialSize"),h=this.optionFor(e,"zoom"),p={event:i.prevMouseMoveEvent||i.options.event,friction:h?.12:0};let m=i.optionFor(e,"showClass")||void 0,v=!0;i.isOpeningSlide(e)&&(f==="full"?r.zoomToFull(p):f==="cover"?r.zoomToCover(p):f==="max"?r.zoomToMax(p):v=!1,r.stop("current")),v&&m&&(m=r.isDragging?"f-fadeIn":""),i.hideLoading(e),i.revealContent(e,m)}var u},()=>{i.setError(e,"{{IMAGE_ERROR}}")})}process(e,t){return new Promise((i,r)=>{var s;const o=this.instance,a=e.el;o.clearContent(e),o.showLoading(e);let l=this.optionFor(e,"content");if(typeof l=="string"&&(l=De(l)),!l||!ye(l)){if(l=document.createElement("img"),l instanceof HTMLImageElement){let c="",u=e.caption;c=typeof u=="string"&&u?u.replace(/<[^>]+>/gi,"").substring(0,1e3):`Image ${e.index+1} of ${((s=o.carousel)===null||s===void 0?void 0:s.pages.length)||1}`,l.src=t||"",l.alt=c,l.draggable=!1,e.srcset&&l.setAttribute("srcset",e.srcset),this.instance.isOpeningSlide(e)&&(l.fetchPriority="high")}e.sizes&&l.setAttribute("sizes",e.sizes)}X(l,"fancybox-image"),e.imageEl=l,o.setContent(e,l,!1),e.panzoom=new it(a,we({transformParent:!0},this.option("Panzoom")||{},{content:l,width:(c,u)=>o.optionFor(e,"width","auto",u)||"auto",height:(c,u)=>o.optionFor(e,"height","auto",u)||"auto",wheel:()=>{const c=o.option("wheel");return(c==="zoom"||c=="pan")&&c},click:(c,u)=>{var f,h;if(o.isCompact||o.isClosing()||e.index!==((f=o.getSlide())===null||f===void 0?void 0:f.index))return!1;if(u){const m=u.composedPath()[0];if(["A","BUTTON","TEXTAREA","OPTION","INPUT","SELECT","VIDEO"].includes(m.nodeName))return!1}let p=!u||u.target&&((h=e.contentEl)===null||h===void 0?void 0:h.contains(u.target));return o.option(p?"contentClick":"backdropClick")||!1},dblClick:()=>o.isCompact?"toggleZoom":o.option("contentDblClick")||!1,spinner:!1,panOnlyZoomed:!0,wheelLimit:1/0,on:{ready:c=>{i(c)},error:()=>{r()},destroy:()=>{r()}}}))})}zoomIn(e){return new Promise((t,i)=>{const r=this.instance,s=r.container,{panzoom:o,contentEl:a,el:l}=e;o&&o.updateMetrics();const c=this.getZoomInfo(e);if(!(c&&l&&a&&o&&s))return void i();const{x:u,y:f,scale:h,opacity:p}=c,m=()=>{e.state!==be.Closing&&(p&&(a.style.opacity=Math.max(Math.min(1,1-(1-o.scale)/(1-h)),0)+""),o.scale>=1&&o.scale>o.targetScale-.1&&t(o))},v=y=>{(y.scale<.99||y.scale>1.01)&&!y.isDragging||(ee(s,_t),a.style.opacity="",y.off("endAnimation",v),y.off("touchStart",v),y.off("afterTransform",m),t(y))};o.on("endAnimation",v),o.on("touchStart",v),o.on("afterTransform",m),o.on(["error","destroy"],()=>{i()}),o.panTo({x:u,y:f,scale:h,friction:0,ignoreBounds:!0}),o.stop("current");const S={event:o.panMode==="mousemove"?r.prevMouseMoveEvent||r.options.event:void 0},w=this.optionFor(e,"initialSize");X(s,_t),r.hideLoading(e),w==="full"?o.zoomToFull(S):w==="cover"?o.zoomToCover(S):w==="max"?o.zoomToMax(S):o.reset(.172)})}getZoomInfo(e){const{el:t,imageEl:i,thumbEl:r,panzoom:s}=e,o=this.instance,a=o.container;if(!t||!i||!r||!s||Pn(r)<3||!this.optionFor(e,"zoom")||!a||o.state===de.De
12stroy||getComputedStyle(a).getPropertyValue("--f-images-zoom")==="0")return!1;const l=window.visualViewport||null;if((l?l.scale:1)!==1)return!1;let{top:c,left:u,width:f,height:h}=r.getBoundingClientRect(),{top:p,left:m,fitWidth:v,fitHeight:S}=s.contentRect;if(!(f&&h&&v&&S))return!1;const w=s.container.getBoundingClientRect();m+=w.left,p+=w.top;const y=-1*(m+.5*v-(u+.5*f)),x=-1*(p+.5*S-(c+.5*h)),P=f/v;let M=this.option("zoomOpacity")||!1;return M==="auto"&&(M=Math.abs(f/h-v/S)>.1),{x:y,y:x,scale:P,opacity:M}}attach(){const e=this,t=e.instance;t.on("Carousel.change",e.onChange),t.on("Carousel.createSlide",e.onCreateSlide),t.on("Carousel.removeSlide",e.onRemoveSlide),t.on("close",e.onClose)}detach(){const e=this,t=e.instance;t.off("Carousel.change",e.onChange),t.off("Carousel.createSlide",e.onCreateSlide),t.off("Carousel.removeSlide",e.onRemoveSlide),t.off("close",e.onClose)}}Object.defineProperty(kn,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:{initialSize:"fit",Panzoom:{maxScale:1},protected:!1,zoom:!0,zoomOpacity:"auto"}}),typeof SuppressedError=="function"&&SuppressedError;const vi="html",Ss="image",bi="map",je="youtube",Ue="vimeo",gt="html5video",Cs=(n,e={})=>{const t=new URL(n),i=new URLSearchParams(t.search),r=new URLSearchParams;for(const[a,l]of[...i,...Object.entries(e)]){let c=l+"";if(a==="t"){let u=c.match(/((\d*)m)?(\d*)s?/);u&&r.set("start",60*parseInt(u[2]||"0")+parseInt(u[3]||"0")+"")}else r.set(a,c)}let s=r+"",o=n.match(/#t=((.*)?\d+s)/);return o&&(s+=`#t=${o[1]}`),s},Ea={ajax:null,autoSize:!0,iframeAttr:{allow:"autoplay; fullscreen",scrolling:"auto"},preload:!0,videoAutoplay:!0,videoRatio:16/9,videoTpl:`<video class="fancybox__html5video" playsinline controls controlsList="nodownload" poster="{{poster}}">
13  <source src="{{src}}" type="{{format}}" />Sorry, your browser doesn't support embedded videos.</video>`,videoFormat:"",vimeo:{byline:1,color:"00adef",controls:1,dnt:1,muted:0},youtube:{controls:1,enablejsapi:1,nocookie:1,rel:0,fs:1}},Ta=["image","html","ajax","inline","clone","iframe","map","pdf","html5video","youtube","vimeo"];class zn extends Le{onBeforeInitSlide(e,t,i){this.processType(i)}onCreateSlide(e,t,i){this.setContent(i)}onClearContent(e,t){t.xhr&&(t.xhr.abort(),t.xhr=null);const i=t.iframeEl;i&&(i.onload=i.onerror=null,i.src="//about:blank",t.iframeEl=null);const r=t.contentEl,s=t.placeholderEl;if(t.type==="inline"&&r&&s)r.classList.remove("fancybox__content"),getComputedStyle(r).getPropertyValue("display")!=="none"&&(r.style.display="none"),setTimeout(()=>{s&&(r&&s.parentNode&&s.parentNode.insertBefore(r,s),s.remove())},0),t.contentEl=void 0,t.placeholderEl=void 0;else for(;t.el&&t.el.firstChild;)t.el.removeChild(t.el.firstChild)}onSelectSlide(e,t,i){i.state===be.Ready&&this.playVideo()}onUnselectSlide(e,t,i){var r,s;if(i.type===gt){try{(s=(r=i.el)===null||r===void 0?void 0:r.querySelector("video"))===null||s===void 0||s.pause()}catch{}return}let o;i.type===Ue?o={method:"pause",value:"true"}:i.type===je&&(o={event:"command",func:"pauseVideo"}),o&&i.iframeEl&&i.iframeEl.contentWindow&&i.iframeEl.contentWindow.postMessage(JSON.stringify(o),"*"),i.poller&&clearTimeout(i.poller)}onDone(e,t){e.isCurrentSlide(t)&&!e.isClosing()&&this.playVideo()}onRefresh(e,t){t.slides.forEach(i=>{i.el&&(this.resizeIframe(i),this.setAspectRatio(i))})}onMessage(e){try{let t=JSON.parse(e.data);if(e.origin==="https://player.vimeo.com"){if(t.event==="ready")for(let i of Array.from(document.getElementsByClassName("fancybox__iframe")))i instanceof HTMLIFrameElement&&i.contentWindow===e.source&&(i.dataset.ready="true")}else if(e.origin.match(/^https:\/\/(www.)?youtube(-nocookie)?.com$/)&&t.event==="onReady"){const i=document.getElementById(t.id);i&&(i.dataset.ready="true")}}catch{}}loadAjaxContent(e){const t=this.instance.optionFor(e,"src")||"";this.instance.showLoading(e);const i=this.instance,r=new XMLHttpRequest;i.showLoading(e),r.onreadystatechange=function(){r.readyState===XMLHttpRequest.DONE&&i.state===de.Ready&&(i.hideLoading(e),r.status===200?i.setContent(e,r.responseText):i.setError(e,r.status===404?"{{AJAX_NOT_FOUND}}":"{{AJAX_FORBIDDEN}}"))};const s=e.ajax||null;r.open(s?"POST":"GET",t+""),r.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),r.setRequestHeader("X-Requested-With","XMLHttpRequest"),r.send(s),e.xhr=r}setInlineContent(e){let t=null;if(ye(e.src))t=e.src;else if(typeof e.src=="string"){const i=e.src.split("#",2).pop();t=i?document.getElementById(i):null}if(t){if(e.type==="clone"||t.closest(".fancybox__slide")){t=t.cloneNode(!0);const i=t.dataset.animationName;i&&(t.classList.remove(i),delete t.dataset.animationName);let r=t.getAttribute("id");r=r?`${r}--clone`:`clone-${this.instance.id}-${e.index}`,t.setAttribute("id",r)}else if(t.parentNode){const i=document.createElement("div");i.classList.add("fancybox-placeholder"),t.parentNode.insertBefore(i,t),e.placeholderEl=i}this.instance.setContent(e,t)}else this.instance.setError(e,"{{ELEMENT_NOT_FOUND}}")}setIframeContent(e){const{src:t,el:i}=e;if(!t||typeof t!="string"||!i)return;i.classList.add("is-loading");const r=this.instance,s=document.createElement("iframe");s.className="fancybox__iframe",s.setAttribute("id",`fancybox__iframe_${r.id}_${e.index}`);for(const[a,l]of Object.entries(this.optionFor(e,"iframeAttr")||{}))s.setAttribute(a,l);s.onerror=()=>{r.setError(e,"{{IFRAME_ERROR}}")},e.iframeEl=s;const o=this.optionFor(e,"preload");if(e.type!=="iframe"||o===!1)return s.setAttribute("src",e.src+""),r.setContent(e,s,!1),this.resizeIframe(e),void r.revealContent(e);r.showLoading(e),s.onload=()=>
13{if(!s.src.length)return;const a=s.dataset.ready!=="true";s.dataset.ready="true",this.resizeIframe(e),a?r.revealContent(e):r.hideLoading(e)},s.setAttribute("src",t),r.setContent(e,s,!1)}resizeIframe(e){const{type:t,iframeEl:i}=e;if(t===je||t===Ue)return;const r=i==null?void 0:i.parentElement;if(!i||!r)return;let s=e.autoSize;s===void 0&&(s=this.optionFor(e,"autoSize"));let o=e.width||0,a=e.height||0;o&&a&&(s=!1);const l=r&&r.style;if(e.preload!==!1&&s!==!1&&l)try{const c=window.getComputedStyle(r),u=parseFloat(c.paddingLeft)+parseFloat(c.paddingRight),f=parseFloat(c.paddingTop)+parseFloat(c.paddingBottom),h=i.contentWindow;if(h){const p=h.document,m=p.getElementsByTagName(vi)[0],v=p.body;l.width="",v.style.overflow="hidden",o=o||m.scrollWidth+u,l.width=`${o}px`,v.style.overflow="",l.flex="0 0 auto",l.height=`${v.scrollHeight}px`,a=m.scrollHeight+f}}catch{}if(o||a){const c={flex:"0 1 auto",width:"",height:""};o&&o!=="auto"&&(c.width=`${o}px`),a&&a!=="auto"&&(c.height=`${a}px`),Object.assign(l,c)}}playVideo(){const e=this.instance.getSlide();if(!e)return;const{el:t}=e;if(!t||!t.offsetParent||!this.optionFor(e,"videoAutoplay"))return;if(e.type===gt)try{const r=t.querySelector("video");if(r){const s=r.play();s!==void 0&&s.then(()=>{}).catch(o=>{r.muted=!0,r.play()})}}catch{}if(e.type!==je&&e.type!==Ue)return;const i=()=>{if(e.iframeEl&&e.iframeEl.contentWindow){let r;if(e.iframeEl.dataset.ready==="true")return r=e.type===je?{event:"command",func:"playVideo"}:{method:"play",value:"true"},r&&e.iframeEl.contentWindow.postMessage(JSON.stringify(r),"*"),void(e.poller=void 0);e.type===je&&(r={event:"listening",id:e.iframeEl.getAttribute("id")},e.iframeEl.contentWindow.postMessage(JSON.stringify(r),"*"))}e.poller=setTimeout(i,250)};i()}processType(e){if(e.html)return e.type=vi,e.src=e.html,void(e.html="");const t=this.instance.optionFor(e,"src","");if(!t||typeof t!="string")return;let i=e.type,r=null;if(r=t.match(/(youtube\.com|youtu\.be|youtube\-nocookie\.com)\/(?:watch\?(?:.*&)?v=|v\/|u\/|shorts\/|embed\/?)?(videoseries\?list=(?:.*)|[\w-]{11}|\?listType=(?:.*)&list=(?:.*))(?:.*)/i)){const s=this.optionFor(e,je),{nocookie:o}=s,a=function(f,h){var p={};for(var m in f)Object.prototype.hasOwnProperty.call(f,m)&&h.indexOf(m)<0&&(p[m]=f[m]);if(f!=null&&typeof Object.getOwnPropertySymbols=="function"){var v=0;for(m=Object.getOwnPropertySymbols(f);v<m.length;v++)h.indexOf(m[v])<0&&Object.prototype.propertyIsEnumerable.call(f,m[v])&&(p[m[v]]=f[m[v]])}return p}(s,["nocookie"]),l=`www.youtube${o?"-nocookie":""}.com`,c=Cs(t,a),u=encodeURIComponent(r[2]);e.videoId=u,e.src=`https://${l}/embed/${u}?${c}`,e.thumbSrc=e.thumbSrc||`https://i.ytimg.com/vi/${u}/mqdefault.jpg`,i=je}else if(r=t.match(/^.+vimeo.com\/(?:\/)?([\d]+)((\/|\?h=)([a-z0-9]+))?(.*)?/)){const s=Cs(t,this.optionFor(e,Ue)),o=encodeURIComponent(r[1]),a=r[4]||"";e.videoId=o,e.src=`https://player.vimeo.com/video/${o}?${a?`h=${a}${s?"&":""}`:""}${s}`,i=Ue}if(!i&&e.triggerEl){const s=e.triggerEl.dataset.type;Ta.includes(s)&&(i=s)}i||typeof t=="string"&&(t.charAt(0)==="#"?i="inline":(r=t.match(/\.(mp4|mov|ogv|webm)((\?|#).*)?$/i))?(i=gt,e.videoFormat=e.videoFormat||"video/"+(r[1]==="ogv"?"ogg":r[1])):t.match(/(^data:image\/[a-z0-9+\/=]*,)|(\.(jp(e|g|eg)|gif|png|bmp|webp|svg|ico)((\?|#).*)?$)/i)?i=Ss:t.match(/\.(pdf)((\?|#).*)?$/i)&&(i="pdf")),(r=t.match(/(?:maps\.)?google\.([a-z]{2,3}(?:\.[a-z]{2})?)\/(?:(?:(?:maps\/(?:place\/(?:.*)\/)?\@(.*),(\d+.?\d+?)z))|(?:\?ll=))(.*)?/i))?(e.src=`https://maps.google.${r[1]}/?ll=${(r[2]?r[2]+"&z="+Math.floor(parseFloat(r[3]))+(r[4]?r[4].replace(/^\//,"&"):""):r[4]+"").replace(/\?/,"&")}&output=${r[4]&&r[4].indexOf("layer=c")>0?"svembed":"embed"}`,i=bi):(r=t.match(/(?:maps\.)?google\.([a-z]{2,3}(?:\.[a-z]{2})?)\/(?:maps\/search\/)(.*)/i))&&(e.src=`https://maps.google.${r[1]}/maps?q=${r[2].replace("query=","q=").replace("api=1","")}&output=embed`,i=bi),i=i||this.instance.option("defaultType"),e.type=i,i===Ss&&(e.thumbSrc=e.thumbSrc||e.src)}setContent(e){const t=this.instance.optionFor(e,"src")||"";if(e&&e.type&&t){switch(e.type){case vi:this.instance.setContent(e,t);break;case gt:const i=this.option("videoTpl");i&&this.instance.setContent(e,i.replace(/\{\{src\}\}/gi,t+"").replace(/\{\{format\}\}/gi,this.optionFor(e,"videoFormat")||"").replace(/\{\{poster\}\}/gi,e.poster||e.thumbSrc||""));break;case"inline":case"clone":this.setInlineContent(e);break;case"ajax":this.loadAjaxContent(e);break;case"pdf":case bi:case je:case Ue:e.preload=!1;case"iframe":this.setIframeContent(e)}this.setAspectRatio(e)}}setAspectRatio(e){const t=e.contentEl;if(!(e.el&&t&&e.type&&[je,Ue,gt].includes(e.type)))return;let i,r=e.width||"auto",s=e.height||"auto";if(r==="auto"||s==="auto"){i=this.optionFor(e,"videoRatio");const c=(i+"").match(/(\d+)\s*\/\s?(\d+)/);i=c&&c.length>2?parseFloat(c[1])/parseFloat(c[2]):parseFloat(i+"")}else r&&s&&(i=r/s);if(!i)return;t.style.aspectRatio="",t.style.width="",t.style.height="",t.offsetHeight;const o=t.getBoundingClientRect(),a=o.width||1,l=o.height||1;t.style.aspectRatio=i+"",i<a/l?(s=s==="auto"?l:Math.min(l,s),t.style.width="auto",t.style.height=`${s}px`):(r=r==="auto"?a:Math.min(a,r),t.style.width=`${r}px`,t.style.height="auto")}attach(){const e=this,t=e.instance;t.on("Carousel.beforeInitSlide",e.onBeforeInitSlide),t.on("Carousel.createSlide",e.onCreateSlide),t.on("Carousel.selectSlide",e.onSelectSlide),t.on("Carousel.unselectSlide",e.onUnselectSlide),t.on("Carousel.Panzoom.refresh",e.onRefresh),t.on("done",e.onDone),t.on("clearContent",e.onClearContent),window.addEventListener("message",e.onMessage)}detach(){const e=this,t=e.instance;t.off("Carousel.beforeInitSlide",e.onBeforeInitSlide),t.off("Carousel.createSlide",e.onCreateSlide),t.off("Carousel.selectSlide",e.onSelectSlide),t.off("Carousel.unselectSlide",e.onUnselectSlide),t.off("Carousel.Panzoom.refresh",e.onRefresh),t.off("done",e.onDone),t.off("clearContent",e.onClearContent),window.removeEventListener("message",e.onMessage)}}Object.defineProperty(zn,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:Ea});const Ft="play",Rt="pause",mt="ready";class Dn extends Le{constructor(){super(...arguments),Object.defineProperty(this,"state",{enumerable:!0,configurable:!0,writable:!0,value:mt}),Object.defineProperty(this,"inHover",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"timer",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"progressBar",{enumerable:!0,configurable:!0,writable:!0,value:null})}get isActive(){return this.state!==mt}onReady(e){this.option("autoStart")&&(e.isInfinite||e.page<e.pages.length-1)&&this.start()}onChange(){this.removeProgressBar(),this.pause()}onSettle(){this.resume()}onVisibilityChange(){document.visibilityState==="visible"?this.resume():this.pause()}onMouseEnter(){this.inHover=!0,this.pause()}onMouseLeave(){var e;this.inHover=!1,!((e=this.instance.panzoom)===null||e===void 0)&&e.isResting&&this.resume()}onTimerEnd(){const e=this.instance;this.state==="play"&&(e.isInfinite||e.page!==e.pages.length-1?e.
13slideNext():e.slideTo(0))}removeProgressBar(){this.progressBar&&(this.progressBar.remove(),this.progressBar=null)}createProgressBar(){var e;if(!this.option("showProgress"))return null;this.removeProgressBar();const t=this.instance,i=((e=t.pages[t.page])===null||e===void 0?void 0:e.slides)||[];let r=this.option("progressParentEl");if(r||(r=(i.length===1?i[0].el:null)||t.viewport),!r)return null;const s=document.createElement("div");return X(s,"f-progress"),r.prepend(s),this.progressBar=s,s.offsetHeight,s}set(){const e=this,t=e.instance;if(t.pages.length<2||e.timer)return;const i=e.option("timeout");e.state=Ft,X(t.container,"has-autoplay");let r=e.createProgressBar();r&&(r.style.transitionDuration=`${i}ms`,r.style.transform="scaleX(1)"),e.timer=setTimeout(()=>{e.timer=null,e.inHover||e.onTimerEnd()},i),e.emit("set")}clear(){const e=this;e.timer&&(clearTimeout(e.timer),e.timer=null),e.removeProgressBar()}start(){const e=this;if(e.set(),e.state!==mt){if(e.option("pauseOnHover")){const t=e.instance.container;t.addEventListener("mouseenter",e.onMouseEnter,!1),t.addEventListener("mouseleave",e.onMouseLeave,!1)}document.addEventListener("visibilitychange",e.onVisibilityChange,!1),e.emit("start")}}stop(){const e=this,t=e.state,i=e.instance.container;e.clear(),e.state=mt,i.removeEventListener("mouseenter",e.onMouseEnter,!1),i.removeEventListener("mouseleave",e.onMouseLeave,!1),document.removeEventListener("visibilitychange",e.onVisibilityChange,!1),ee(i,"has-autoplay"),t!==mt&&e.emit("stop")}pause(){const e=this;e.state===Ft&&(e.state=Rt,e.clear(),e.emit(Rt))}resume(){const e=this,t=e.instance;if(t.isInfinite||t.page!==t.pages.length-1)if(e.state!==Ft){if(e.state===Rt&&!e.inHover){const i=new Event("resume",{bubbles:!0,cancelable:!0});e.emit("resume",i),i.defaultPrevented||e.set()}}else e.set();else e.stop()}toggle(){this.state===Ft||this.state===Rt?this.stop():this.start()}attach(){const e=this,t=e.instance;t.on("ready",e.onReady),t.on("Panzoom.startAnimation",e.onChange),t.on("Panzoom.endAnimation",e.onSettle),t.on("Panzoom.touchMove",e.onChange)}detach(){const e=this,t=e.instance;t.off("ready",e.onReady),t.off("Panzoom.startAnimation",e.onChange),t.off("Panzoom.endAnimation",e.onSettle),t.off("Panzoom.touchMove",e.onChange),e.stop()}}Object.defineProperty(Dn,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:{autoStart:!0,pauseOnHover:!0,progressParentEl:null,showProgress:!0,timeout:3e3}});class _n extends Le{constructor(){super(...arguments),Object.defineProperty(this,"ref",{enumerable:!0,configurable:!0,writable:!0,value:null})}onPrepare(e){const t=e.carousel;if(!t)return;const i=e.container;i&&(t.options.Autoplay=we({autoStart:!1},this.option("Autoplay")||{},{pauseOnHover:!1,timeout:this.option("timeout"),progressParentEl:()=>this.option("progressParentEl")||null,on:{start:()=>{e.emit("startSlideshow")},set:r=>{var s;i.classList.add("has-slideshow"),((s=e.getSlide())===null||s===void 0?void 0:s.state)!==be.Ready&&r.pause()},stop:()=>{i.classList.remove("has-slideshow"),e.isCompact||e.endIdle(),e.emit("endSlideshow")},resume:(r,s)=>{var o,a,l;!s||!s.cancelable||((o=e.getSlide())===null||o===void 0?void 0:o.state)===be.Ready&&(!((l=(a=e.carousel)===null||a===void 0?void 0:a.panzoom)===null||l===void 0)&&l.isResting)||s.preventDefault()}}}),t.attachPlugins({Autoplay:Dn}),this.ref=t.plugins.Autoplay)}onReady(e){const t=e.carousel,i=this.ref;i&&t&&this.option("playOnStart")&&(t.isInfinite||t.page<t.pages.length-1)&&i.start()}onDone(e,t){const i=this.ref,r=e.carousel;if(!i||!r)return;const s=t.panzoom;s&&s.on("startAnimation",()=>{e.isCurrentSlide(t)&&i.stop()}),e.isCurrentSlide(t)&&i.resume()}onKeydown(e,t){var i;const r=this.ref;r&&t===this.option("key")&&((i=document.activeElement)===null||i===void 0?void 0:i.nodeName)!=="BUTTON"&&r.toggle(
13)}attach(){const e=this,t=e.instance;t.on("Carousel.init",e.onPrepare),t.on("Carousel.ready",e.onReady),t.on("done",e.onDone),t.on("keydown",e.onKeydown)}detach(){const e=this,t=e.instance;t.off("Carousel.init",e.onPrepare),t.off("Carousel.ready",e.onReady),t.off("done",e.onDone),t.off("keydown",e.onKeydown)}}Object.defineProperty(_n,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:{key:" ",playOnStart:!1,progressParentEl:n=>{var e;return((e=n.instance.container)===null||e===void 0?void 0:e.querySelector(".fancybox__toolbar [data-fancybox-toggle-slideshow]"))||n.instance.container},timeout:3e3}});const Fn={classes:{container:"f-thumbs f-carousel__thumbs",viewport:"f-thumbs__viewport",track:"f-thumbs__track",slide:"f-thumbs__slide",isResting:"is-resting",isSelected:"is-selected",isLoading:"is-loading",hasThumbs:"has-thumbs"},minCount:2,parentEl:null,thumbTpl:'<button class="f-thumbs__slide__button" tabindex="0" type="button" aria-label="{{GOTO}}" data-carousel-index="%i"><img class="f-thumbs__slide__img" data-lazy-src="{{%s}}" alt="" /></button>',type:"modern"};var Ne;(function(n){n[n.Init=0]="Init",n[n.Ready=1]="Ready",n[n.Hidden=2]="Hidden"})(Ne||(Ne={}));
vendor: 4,222 bytes, line 13
13const Es="isResting",Bt="thumbWidth",at="thumbHeight",Ae="thumbClipWidth";let Rn=class extends Le{constructor(){super(...arguments),Object.defineProperty(this,"type",{enumerable:!0,configurable:!0,writable:!0,value:"modern"}),Object.defineProperty(this,"container",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"track",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"carousel",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"thumbWidth",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"thumbClipWidth",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"thumbHeight",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"thumbGap",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"thumbExtraGap",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"state",{enumerable:!0,configurable:!0,writable:!0,value:Ne.Init})}get isModern(){return this.type==="modern"}onInitSlide(n,e){const t=e.el?e.el.dataset:void 0;t&&(e.thumbSrc=t.thumbSrc||e.thumbSrc||"",e[Ae]=parseFloat(t[Ae]||"")||e[Ae]||0,e[at]=parseFloat(t.thumbHeight||"")||e[at]||0),this.addSlide(e)}onInitSlides(){this.build()}onChange(){var n;if(!this.isModern)return;const e=this.container,t=this.instance,i=t.panzoom,r=this.carousel,s=r?r.panzoom:null,o=t.page;if(i&&r&&s){if(i.isDragging){ee(e,this.cn(Es));let a=((n=r.pages[o])===null||n===void 0?void 0:n.pos)||0;a+=t.getProgress(o)*(this[Ae]+this.thumbGap);let l=s.getBounds();-1*a>l.x.min&&-1*a<l.x.max&&s.panTo({x:-1*a,friction:.12})}else _e(e,this.cn(Es),i.isResting);this.shiftModern()}}onRefresh(){this.updateProps();for(const n of this.instance.slides||[])this.resizeModernSlide(n);this.shiftModern()}isDisabled(){const n=this.option("minCount")||0;if(n){const t=this.instance;let i=0;for(const r of t.slides||[])r.thumbSrc&&i++;if(i<n)return!0}const e=this.option("type");return["modern","classic"].indexOf(e)<0}getThumb(n){const e=this.option("thumbTpl")||"";return{html:this.instance.localize(e,[["%i",n.index],["%d",n.index+1],["%s",n.thumbSrc||"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"]])}}addSlide(n){const e=this.carousel;e&&e.addSlide(n.index,this.getThumb(n))}getSlides(){const n=[];for(const e of this.instance.slides||[])n.push(this.getThumb(e));return n}resizeModernSlide(n){this.isModern&&(n[Bt]=n[Ae]&&n[at]?Math.round(this[at]*(n[Ae]/n[at])):this[Bt])}updateProps(){const n=this.container;if(!n)return;const e=t=>parseFloat(getComputedStyle(n).getPropertyValue("--f-thumb-"+t))||0;this.thumbGap=e("gap"),this.thumbExtraGap=e("extra-gap"),this[Bt]=e("width")||40,this[Ae]=e("clip-width")||40,this[at]=e("height")||40}build(){const n=this;if(n.state!==Ne.Init)return;if(n.isDisabled())return void n.emit("disabled");const e=n.instance,t=e.container,i=n.getSlides(),r=n.option("type");n.type=r;const s=n.option("parentEl"),o=n.cn("container"),a=n.cn("track");let l=s==null?void 0:s.querySelector("."+o);l||(l=document.createElement("div"),X(l,o),s?s.appendChild(l):t.after(l)),X(l,`is-${r}`),X(t,n.cn("hasThumbs")),n.container=l,n.updateProps();let c=l.querySelector("."+a);c||(c=document.createElement("div"),X(c,n.cn("track")),l.appendChild(c)),n.track=c;const u=we({},{track:c,infinite:!1,center:!0,fill:r==="classic",dragFree:!0,slidesPerPage:1,transition:!1,preload:.25,friction:.12,Panzoom:{maxVelocity:0},Dots:!1,Navigation:!1,classes:{container:"f-thumbs",viewport:"f-thumbs__viewport",track:"f-thumbs__track",slide:"f-thumbs__slide"}},n.option("Carousel")||{},{Sync:{target:e},slides:i}),f=new e.constructor(l,u);f.on("createSlide",(h,p)=>{n.setProps(p.index),n.emit("createSlide",p,p.el)}),f.on("ready",()=>{n.shiftModern(),n.emit("ready")}),f.on("refresh",()=>{n.shiftModern()}),f.on("Panzoom.click",(h,p,m)=>{n.onClick(m)}),n.carousel=f,n.state=Ne.Ready}onClick(n){n.preventDefault(),n.stopPropagation();const e=this.instance,{pages:t,page:i}=e,r=v=>{if(v){const S=v.closest("[data-carousel-index]");if(S)return[parseInt(S.dataset.carouselIndex||"",10)||0,S]}return[-1,void 0]},s=(v,S)=>
13{const w=document.elementFromPoint(v,S);return w?r(w):[-1,void 0]};let[o,a]=r(n.target);if(o>-1)return;const l=this[Ae],c=n.clientX,u=n.clientY;let[f,h]=s(c-l,u),[p,m]=s(c+l,u);h&&m?(o=Math.abs(c-h.getBoundingClientRect().right)<Math.abs(c-m.getBoundingClientRect().left)?f:p,o===i&&(o=o===f?p:f)):h?o=f:m&&(o=p),o>-1&&t[o]&&e.slideTo(o)}getShift(n){var e;const t=this,{instance:i}=t,r=t.carousel;if(!i||!r)return 0;const s=t[Bt],o=t[Ae],a=t.thumbGap,l=t.thumbExtraGap;if(!(!((e=r.slides[n])===null||e===void 0)&&e.el))return 0;const c=.5*(s-o),u=i.pages.length-1;let f=i.getProgress(0),h=i.getProgress(u),p=i.getProgress(n,!1,!0),m=0,v=c+l+a;const S=f<0&&f>-1,w=h>0&&h<1;return n===0?(m=v*Math.abs(f),w&&f===1&&(m-=v*Math.abs(h))):n===u?(m=v*Math.abs(h)*-1,S&&h===-1&&(m+=v*Math.abs(f))):S||w?(m=-1*v,m+=v*Math.abs(f),m+=v*(1-Math.abs(h))):m=v*p,m}setProps(n){var e;const t=this;if(!t.isModern)return;const{instance:i}=t,r=t.carousel;if(i&&r){const s=(e=r.slides[n])===null||e===void 0?void 0:e.el;if(s&&s.childNodes.length){let o=j(1-Math.abs(i.getProgress(n))),a=j(t.getShift(n));s.style.setProperty("--progress",o?o+"":""),s.style.setProperty("--shift",a+"")}}}shiftModern(){const n=this;if(!n.isModern)return;const{instance:e,track:t}=n,i=e.panzoom,r=n.carousel;if(!(e&&t&&i&&r)||i.state===te.Init||i.state===te.Destroy)return;for(const o of e.slides)n.setProps(o.index);let s=(n[Ae]+n.thumbGap)*(r.slides.length||0);t.style.setProperty("--width",s+"")}cleanup(){const n=this;n.carousel&&n.carousel.destroy(),n.carousel=null,n.container&&n.container.remove(),n.container=null,n.track&&n.track.remove(),n.track=null,n.state=Ne.Init,ee(n.instance.container,n.cn("hasThumbs"))}attach(){const n=this,e=n.instance;e.on("initSlide",n.onInitSlide),e.state===ae.Init?e.on("initSlides",n.onInitSlides):n.onInitSlides(),e.on(["change","Panzoom.afterTransform"],n.onChange),e.on("Panzoom.refresh",n.onRefresh)}detach(){const n=this,e=n.instance;e.off("initSlide",n.onInitSlide),e.off("initSlides",n.onInitSlides),e.off(["change","Panzoom.afterTransform"],n.onChange),e.off("Panzoom.refresh",n.onRefresh),n.cleanup()}};Object.defineProperty(Rn,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:Fn});const Pa=Object.assign(Object.assign({},Fn),{key:"t",showOnStart:!0,parentEl:null}),Ts="is-masked",Ps="aria-hidden";class Bn extends Le{constructor(){super(...arguments),Object.defineProperty(this,"ref",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"hidden",{enumerable:!0,configurable:!0,writable:!0,value:!1})}get isEnabled(){const e=this.ref;return e&&!e.isDisabled()}get isHidden(){return this.hidden}onClick(e,t){t.stopPropagation()}onCreateSlide(e,t){var i,r,s;const o=((s=(r=(i=this.instance)===null||i===void 0?void 0:i.carousel)===null||r===void 0?void 0:r.slides[t.index])===null||s===void 0?void 0:s.type)||"",a=t.el;if(a&&o){let l=`for-${o}`;["video","youtube","vimeo","html5video"].includes(o)&&(l+=" for-video"),X(a,l)}}onInit(){var e;const t=this,i=t.instance,r=i.carousel;if(t.ref||!r)return;const s=t.option("parentEl")||i.footer||i.container;if(!s)return;const o=we({},t.options,{parentEl:s,classes:{container:"f-thumbs fancybox__thumbs"},Carousel:{Sync:{friction:i.option("Carousel.friction")||0}},on:{ready:a=>{const l=a.container;l&&this.hidden&&(t.refresh(),l.style.transition="none",t.hide(),l.offsetHeight,queueMicrotask(()=>{l.style.transition="",t.show()}))}}});o.Carousel=o.Carousel||{},o.Carousel.on=we(((e=t.options.Carousel)===null||e===void 0?void 0:e.on)||{},{click:this.onClick,createSlide:this.onCreateSlide}),r.options.Thumbs=o,r.attachPlugins({Thumbs:Rn}),t.ref=r.plugins.Thumbs,t.option("showOnStart")||(t.ref.state=Ne.Hidden,t.hidden=!0)}onResize(){var e;const t=(e=this.ref)===null||e===void 0?void 0:e.container;t&&(t.style.maxHeight="")}onKeydown(e,t){const i=this.option("key");i&&i===t&&this.toggle()}toggle(){const e=this.ref;if(e&&!e.isDisabled())return e.state===Ne.Hidden?(e.state=Ne.Init,void e.build()):void(this.hidden?this.show():this.hide())}show(){const e=this.ref;if(!e||e.isDisabled())return;const t=e.container;t&&(this.refresh(),t.offsetHeight,t.removeAttribute(Ps),t.classList.remove(Ts),this.hidden=!1)}
13hide(){const e=this.ref,t=e&&e.container;t&&(this.refresh(),t.offsetHeight,t.classList.add(Ts),t.setAttribute(Ps,"true")),this.hidden=!0}refresh(){const e=this.ref;if(!e||!e.state)return;const t=e.container,i=(t==null?void 0:t.firstChild)||null;t&&i&&i.childNodes.length&&(t.style.maxHeight=`${i.getBoundingClientRect().height}px`)}attach(){const e=this,t=e.instance;t.state===de.Init?t.on("Carousel.init",e.onInit):e.onInit(),t.on("resize",e.onResize),t.on("keydown",e.onKeydown)}detach(){var e;const t=this,i=t.instance;i.off("Carousel.init",t.onInit),i.off("resize",t.onResize),i.off("keydown",t.onKeydown),(e=i.carousel)===null||e===void 0||e.detachPlugins(["Thumbs"]),t.ref=null}}Object.defineProperty(Bn,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:Pa});const yi={panLeft:{icon:'<svg><path d="M5 12h14M5 12l6 6M5 12l6-6"/></svg>',change:{panX:-100}},panRight:{icon:'<svg><path d="M5 12h14M13 18l6-6M13 6l6 6"/></svg>',change:{panX:100}},panUp:{icon:'<svg><path d="M12 5v14M18 11l-6-6M6 11l6-6"/></svg>',change:{panY:-100}},panDown:{icon:'<svg><path d="M12 5v14M18 13l-6 6M6 13l6 6"/></svg>',change:{panY:100}},zoomIn:{icon:'<svg><circle cx="11" cy="11" r="7.5"/><path d="m21 21-4.35-4.35M11 8v6M8 11h6"/></svg>',action:"zoomIn"},zoomOut:{icon:'<svg><circle cx="11" cy="11" r="7.5"/><path d="m21 21-4.35-4.35M8 11h6"/></svg>',action:"zoomOut"},toggle1to1:{icon:'<svg><path d="M3.51 3.07c5.74.02 11.48-.02 17.22.02 1.37.1 2.34 1.64 2.18 3.13 0 4.08.02 8.16 0 12.23-.1 1.54-1.47 2.64-2.79 2.46-5.61-.01-11.24.02-16.86-.01-1.36-.12-2.33-1.65-2.17-3.14 0-4.07-.02-8.16 0-12.23.1-1.36 1.22-2.48 2.42-2.46Z"/><path d="M5.65 8.54h1.49v6.92m8.94-6.92h1.49v6.92M11.5 9.4v.02m0 5.18v0"/></svg>',action:"toggleZoom"},toggleZoom:{icon:'<svg><g><line x1="11" y1="8" x2="11" y2="14"></line></g><circle cx="11" cy="11" r="7.5"/><path d="m21 21-4.35-4.35M8 11h6"/></svg>',action:"toggleZoom"},iterateZoom:{icon:'<svg><g><line x1="11" y1="8" x2="11" y2="14"></line></g><circle cx="11" cy="11" r="7.5"/><path d="m21 21-4.35-4.35M8 11h6"/></svg>',action:"iterateZoom"},rotateCCW:{icon:'<svg><path d="M15 4.55a8 8 0 0 0-6 14.9M9 15v5H4M18.37 7.16v.01M13 19.94v.01M16.84 18.37v.01M19.37 15.1v.01M19.94 11v.01"/></svg>',action:"rotateCCW"},rotateCW:{icon:'<svg><path d="M9 4.55a8 8 0 0 1 6 14.9M15 15v5h5M5.63 7.16v.01M4.06 11v.01M4.63 15.1v.01M7.16 18.37v.01M11 19.94v.01"/></svg>',action:"rotateCW"},flipX:{icon:'<svg style="stroke-width: 1.3"><path d="M12 3v18M16 7v10h5L16 7M8 7v10H3L8 7"/></svg>',action:"flipX"},flipY:{icon:'<svg style="stroke-width: 1.3"><path d="M3 12h18M7 16h10L7 21v-5M7 8h10L7 3v5"/></svg>',action:"flipY"},fitX:{icon:'<svg><path d="M4 12V6a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v6M10 18H3M21 18h-7M6 15l-3 3 3 3M18 15l3 3-3 3"/></svg>',action:"fitX"},fitY:{icon:'<svg><path d="M12 20H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h6M18 14v7M18 3v7M15 18l3 3 3-3M15 6l3-3 3 3"/></svg>',action:"fitY"},reset:{icon:'<svg><path d="M20 11A8.1 8.1 0 0 0 4.5 9M4 5v4h4M4 13a8.1 8.1 0 0 0 15.5 2m.5 4v-4h-4"/></svg>',action:"reset"},toggleFS:{icon:'<svg><g><path d="M14.5 9.5 21 3m0 0h-6m6 0v6M3 21l6.5-6.5M3 21v-6m0 6h6"/></g><g><path d="m14 10 7-7m-7 7h6m-6 0V4M3 21l7-7m0 0v6m0-6H4"/></g></svg>',action:"toggleFS"}};var Qe;(function(n){n[n.Init=0]="Init",n[n.Ready=1]="Ready",n[n.Disabled=2]="Disabled"})(Qe||(Qe={}));const Oa={absolute:"auto",display:{left:["infobar"],middle:[],right:["iterateZoom","slideshow","fullscreen","thumbs","close"]},enabled:"auto",items:{infobar:{tpl:'<div class="fancybox__infobar" tabindex="-1"><span data-fancybox-current-index></span>/<span data-fancybox-count></span></div>'},download:{tpl:'<a class="f-button" title="{{DOWNLOAD}}" data-fancybox-download href="javasript:;"><svg><path d="M4 17v2a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-2M7 11l5 5 5-5M12 4v12"/></svg></a>'},prev:{tpl:'<button class="f-button" title="{{PREV}}" data-fancybox-prev><svg><path d="m15 6-6 6 6 6"/></svg></button>'},next:{tpl:'<button class="f-button" title="{{NEXT}}" data-fancybox-next><svg><path d="m9 6 6 6-6 6"/></svg></button>'},slideshow:{tpl:'<button class="f-button" title="{{TOGGLE_SLIDESHOW}}" data-fancybox-toggle-slideshow><svg><g><path d="M8 4v16l13 -8z"></path></g><g>
13<path d="M8 4v15M17 4v15"/></g></svg></button>'},fullscreen:{tpl:'<button class="f-button" title="{{TOGGLE_FULLSCREEN}}" data-fancybox-toggle-fullscreen><svg><g><path d="M4 8V6a2 2 0 0 1 2-2h2M4 16v2a2 2 0 0 0 2 2h2M16 4h2a2 2 0 0 1 2 2v2M16 20h2a2 2 0 0 0 2-2v-2"/></g><g><path d="M15 19v-2a2 2 0 0 1 2-2h2M15 5v2a2 2 0 0 0 2 2h2M5 15h2a2 2 0 0 1 2 2v2M5 9h2a2 2 0 0 0 2-2V5"/></g></svg></button>'},thumbs:{tpl:'<button class="f-button" title="{{TOGGLE_THUMBS}}" data-fancybox-toggle-thumbs><svg><circle cx="5.5" cy="5.5" r="1"/><circle cx="12" cy="5.5" r="1"/><circle cx="18.5" cy="5.5" r="1"/><circle cx="5.5" cy="12" r="1"/><circle cx="12" cy="12" r="1"/><circle cx="18.5" cy="12" r="1"/><circle cx="5.5" cy="18.5" r="1"/><circle cx="12" cy="18.5" r="1"/><circle cx="18.5" cy="18.5" r="1"/></svg></button>'},close:{tpl:'<button class="f-button" title="{{CLOSE}}" data-fancybox-close><svg><path d="m19.5 4.5-15 15M4.5 4.5l15 15"/></svg></button>'}},parentEl:null},Ma={tabindex:"-1",width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},Os="has-toolbar",wi="fancybox__toolbar";class jn extends Le{constructor(){super(...arguments),Object.defineProperty(this,"state",{enumerable:!0,configurable:!0,writable:!0,value:Qe.Init}),Object.defineProperty(this,"container",{enumerable:!0,configurable:!0,writable:!0,value:null})}onReady(e){var t;if(!e.carousel)return;let i=this.option("display"),r=this.option("absolute"),s=this.option("enabled");if(s==="auto"){const c=this.instance.carousel;let u=0;if(c)for(const f of c.slides)(f.panzoom||f.type==="image")&&u++;u||(s=!1)}s||(i=void 0);let o=0;const a={left:[],middle:[],right:[]};if(i)for(const c of["left","middle","right"])for(const u of i[c]){const f=this.createEl(u);f&&((t=a[c])===null||t===void 0||t.push(f),o++)}let l=null;if(o&&(l=this.createContainer()),l){for(const[c,u]of Object.entries(a)){const f=document.createElement("div");X(f,wi+"__column is-"+c);for(const h of u)f.appendChild(h);r!=="auto"||c!=="middle"||u.length||(r=!0),l.appendChild(f)}r===!0&&X(l,"is-absolute"),this.state=Qe.Ready,this.onRefresh()}else this.state=Qe.Disabled}onClick(e){var t,i;const r=this.instance,s=r.getSlide(),o=s==null?void 0:s.panzoom,a=e.target,l=a&&ye(a)?a.dataset:null;if(!l)return;if(l.fancyboxToggleThumbs!==void 0)return e.preventDefault(),e.stopPropagation(),void((t=r.plugins.Thumbs)===null||t===void 0||t.toggle());if(l.fancyboxToggleFullscreen!==void 0)return e.preventDefault(),e.stopPropagation(),void this.instance.toggleFullscreen();if(l.fancyboxToggleSlideshow!==void 0){e.preventDefault(),e.stopPropagation();const f=(i=r.carousel)===null||i===void 0?void 0:i.plugins.Autoplay;let h=f.isActive;return o&&o.panMode==="mousemove"&&!h&&o.reset(),void(h?f.stop():f.start())}const c=l.panzoomAction,u=l.panzoomChange;if((u||c)&&(e.preventDefault(),e.stopPropagation()),u){let f={};try{f=JSON.parse(u)}catch{}o&&o.applyChange(f)}else c&&o&&o[c]&&o[c]()}onChange(){this.onRefresh()}onRefresh(){if(this.instance.isClosing())return;const e=this.container;if(!e)return;const t=this.instance.getSlide();if(!t||t.state!==be.Ready)return;const i=t&&!t.error&&t.panzoom;for(const o of e.querySelectorAll("[data-panzoom-action]"))i?(o.removeAttribute("disabled"),o.removeAttribute("tabindex")):(o.setAttribute("disabled",""),o.setAttribute("tabindex","-1"));let r=i&&i.canZoomIn(),s=i&&i.canZoomOut();for(const o of e.querySelectorAll('[data-panzoom-action="zoomIn"]'))r?(o.removeAttribute("disabled"),o.removeAttribute("tabindex")):(o.setAttribute("disabled",""),o.setAttribute("tabindex","-1"));for(const o of e.querySelectorAll('[data-panzoom-action="zoomOut"]'))s?(o.removeAttribute("disabled"),o.removeAttribute("tabindex")):(o.setAttribute("disabled",""),o.setAttribute("tabindex","-1"));for(const o of e.querySelectorAll('[data-panzoom-action="toggleZoom"],[data-panzoom-action="iterateZoom"]')){s||r?(o.removeAttribute("disabled"),o.removeAttribute("tabindex")):(o.setAttribute("disabled",""),o.setAttribute("tabindex","-1"));const a=o.querySelector("g");a&&(a.style.display=r?"":"none")}}onDone(e,t){var i;(i=t.panzoom)===null||i===void 0||i.on("afterTransform",()=>{this.instance.isCurrentSlide(t)&&this.onRefresh()}),this.instance.isCurrentSlide(t)&&this.onRefresh()}createContainer(){const e=this.instance.container;if(!e)return null;const t=this.option("parentEl")||e;let i=t.querySelector("."+wi);
13return i||(i=document.createElement("div"),X(i,wi),t.prepend(i)),i.addEventListener("click",this.onClick,{passive:!1,capture:!0}),e&&X(e,Os),this.container=i,i}createEl(e){const t=this.instance,i=t.carousel;if(!i||e==="toggleFS"||e==="fullscreen"&&!On())return null;let r=null;const s=i.slides.length||0;let o=0,a=0;for(const c of i.slides)(c.panzoom||c.type==="image")&&o++,(c.type==="image"||c.downloadSrc)&&a++;if(s<2&&["infobar","prev","next"].includes(e))return r;if(yi[e]!==void 0&&!o||e==="download"&&!a)return null;if(e==="thumbs"){const c=t.plugins.Thumbs;if(!c||!c.isEnabled)return null}if(e==="slideshow"&&(!i.plugins.Autoplay||s<2))return null;if(yi[e]!==void 0){const c=yi[e];r=document.createElement("button"),r.setAttribute("title",this.instance.localize(`{{${e.toUpperCase()}}}`)),X(r,"f-button"),c.action&&(r.dataset.panzoomAction=c.action),c.change&&(r.dataset.panzoomChange=JSON.stringify(c.change)),r.appendChild(De(this.instance.localize(c.icon)))}else{const c=(this.option("items")||[])[e];c&&(r=De(this.instance.localize(c.tpl)),typeof c.click=="function"&&r.addEventListener("click",u=>{u.preventDefault(),u.stopPropagation(),typeof c.click=="function"&&c.click.call(this,this,u)}))}const l=r==null?void 0:r.querySelector("svg");if(l)for(const[c,u]of Object.entries(Ma))l.getAttribute(c)||l.setAttribute(c,String(u));return r}removeContainer(){const e=this.container;e&&e.remove(),this.container=null,this.state=Qe.Disabled;const t=this.instance.container;t&&ee(t,Os)}attach(){const e=this,t=e.instance;t.on("Carousel.initSlides",e.onReady),t.on("done",e.onDone),t.on(["reveal","Carousel.change"],e.onChange),e.onReady(e.instance)}detach(){const e=this,t=e.instance;t.off("Carousel.initSlides",e.onReady),t.off("done",e.onDone),t.off(["reveal","Carousel.change"],e.onChange),e.removeContainer()}}Object.defineProperty(jn,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:Oa});const La={Hash:class extends Le{onReady(){bt=!1}onChange(n){Je&&clearTimeout(Je);const{hash:e}=Mn(),{hash:t}=Ut(),i=n.isOpeningSlide(n.getSlide());i&&(ws=t===e?"":t),e&&e!==t&&(Je=setTimeout(()=>{try{if(n.state===de.Ready){let r="replaceState";i&&!Dt&&(r="pushState",Dt=!0),window.history[r]({},document.title,window.location.pathname+window.location.search+e)}}catch{}},300))}onClose(n){if(Je&&clearTimeout(Je),!bt&&Dt)return Dt=!1,bt=!1,void window.history.back();if(!bt)try{window.history.replaceState({},document.title,window.location.pathname+window.location.search+(ws||""))}catch{}}attach(){const n=this.instance;n.on("ready",this.onReady),n.on(["Carousel.ready","Carousel.change"],this.onChange),n.on("close",this.onClose)}detach(){const n=this.instance;n.off("ready",this.onReady),n.off(["Carousel.ready","Carousel.change"],this.onChange),n.off("close",this.onClose)}static parseURL(){return Ut()}static startFromUrl(){Ln()}static destroy(){window.removeEventListener("hashchange",An,!1)}},Html:zn,Images:kn,Slideshow:_n,Thumbs:Bn,Toolbar:jn},Ms="with-fancybox",xi="hide-scrollbar",Ls="--fancybox-scrollbar-compensate",Is="--fancybox-body-margin",Si="aria-hidden",Ci="is-using-tab",Ei="is-animated",As="is-compact",ks="is-loading",Ti="is-opening",jt="has-caption",lt="disabled",Ke="tabindex",zs="download",Pi="href",ct="src",Ve=n=>typeof n=="string",Ds=function(){var n=window.getSelection();return!!n&&n.type==="Range"};let Oe,Me=null,Ze=null,_s=0,Fs=0,Rs=0,Bs=0;const dt=new Map;let Ia=0;class Z extends Xi{get isIdle(){return this.idle}get isCompact(){return this.option("compact")}constructor(e=[],t={},i={}){super(t),Object.defineProperty(this,"userSlides",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"userPlugins",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"idle",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"idleTimer",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"clickTimer",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"pwt",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"ignoreFocusChange",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"startedFs",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"state",{enumerable:!0,configurable:!0,writable:!0,value:de.Init}),Object.defineProperty(this,"id",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"container",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"footer",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"carousel",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"lastFocus",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"prevMouseMoveEvent",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Oe||(Oe=On()),this.id=t.id||++Ia,dt.set(this.id,this),this.userSlides=e,this.userPlugins=i,queueMicrotask(()=>{this.init()})}
13init(){if(this.state===de.Destroy)return;this.state=de.Init,this.attachPlugins(Object.assign(Object.assign({},Z.Plugins),this.userPlugins)),this.emit("init"),this.emit("attachPlugins"),this.option("hideScrollbar")===!0&&(()=>{if(!yt)return;const t=document,i=t.body,r=t.documentElement;if(i.classList.contains(xi))return;let s=window.innerWidth-r.getBoundingClientRect().width;const o=parseFloat(window.getComputedStyle(i).marginRight);s<0&&(s=0),r.style.setProperty(Ls,`${s}px`),o&&i.style.setProperty(Is,`${o}px`),i.classList.add(xi)})(),this.initLayout(),this.scale();const e=()=>{this.initCarousel(this.userSlides),this.state=de.Ready,this.attachEvents(),this.emit("ready"),setTimeout(()=>{this.container&&this.container.setAttribute(Si,"false")},16)};this.option("Fullscreen.autoStart")&&Oe&&!Oe.isFullscreen()?Oe.request().then(()=>{this.startedFs=!0,e()}).catch(()=>e()):e()}initLayout(){var e,t;const i=this.option("parentEl")||document.body,r=De(this.localize(this.option("tpl.main")||""));if(r){if(r.setAttribute("id",`fancybox-${this.id}`),r.setAttribute("aria-label",this.localize("{{MODAL}}")),r.classList.toggle(As,this.isCompact),X(r,this.option("mainClass")||""),X(r,Ti),this.container=r,this.footer=r.querySelector(".fancybox__footer"),i.appendChild(r),X(document.documentElement,Ms),Me&&Ze||(Me=document.createElement("span"),X(Me,"fancybox-focus-guard"),Me.setAttribute(Ke,"0"),Me.setAttribute(Si,"true"),Me.setAttribute("aria-label","Focus guard"),Ze=Me.cloneNode(),(e=r.parentElement)===null||e===void 0||e.insertBefore(Me,r),(t=r.parentElement)===null||t===void 0||t.append(Ze)),r.addEventListener("mousedown",s=>{_s=s.pageX,Fs=s.pageY,ee(r,Ci)}),this.option("closeExisting"))for(const s of dt.values())s.id!==this.id&&s.close();else this.option("animated")&&(X(r,Ei),setTimeout(()=>{this.isClosing()||ee(r,Ei)},350));this.emit("initLayout")}}initCarousel(e){const t=this.container;if(!t)return;const i=t.querySelector(".fancybox__carousel");if(!i)return;const r=this.carousel=new et(i,we({},{slides:e,transition:"fade",Panzoom:{lockAxis:this.option("dragToClose")?"xy":"x",infinite:!!this.option("dragToClose")&&"y"},Dots:!1,Navigation:{classes:{container:"fancybox__nav",button:"f-button",isNext:"is-next",isPrev:"is-prev"}},initialPage:this.option("startIndex"),l10n:this.option("l10n")},this.option("Carousel")||{}));r.on("*",(s,o,...a)=>{this.emit(`Carousel.${o}`,s,...a)}),r.on(["ready","change"],()=>{this.manageCaption()}),this.on("Carousel.removeSlide",(s,o,a)=>{this.clearContent(a),a.state=void 0}),r.on("Panzoom.touchStart",()=>{var s,o;this.isCompact||this.endIdle(),!((s=document.activeElement)===null||s===void 0)&&s.closest(".f-thumbs")&&((o=this.container)===null||o===void 0||o.focus())}),r.on("settle",()=>{this.idleTimer||this.isCompact||!this.option("idle")||this.setIdle(),this.option("autoFocus")&&!this.isClosing&&this.checkFocus()}),this.option("dragToClose")&&(r.on("Panzoom.afterTransform",(s,o)=>{const a=this.getSlide();if(a&&ki(a.el))return;const l=this.container;if(l){const c=Math.abs(o.current.f),u=c<1?"":Math.max(.5,Math.min(1,1-c/o.contentRect.fitHeight*1.5));l.style.setProperty("--fancybox-ts",u?"0s":""),l.style.setProperty("--fancybox-opacity",u+"")}}),r.on("Panzoom.touchEnd",(s,o,a)=>{var l;const c=this.getSlide();if(c&&ki(c.el)||o.isMobile&&document.activeElement&&["TEXTAREA","INPUT"].indexOf((l=document.activeElement)===null||l===void 0?void 0:l.nodeName)!==-1)return;const u=Math.abs(o.dragOffset.y);o.lockedAxis==="y"&&(u>=200||u>=50&&o.dragOffset.time<300)&&(a&&a.cancelable&&a.preventDefault(),this.close(a,"f-throwOut"+(o.current.f<0?"Up":"Down")))})),r.on("change",s=>{var o;let a=(o=this.getSlide())===null||o===void 0?void 0:o.triggerEl;if(a){const l=new CustomEvent("slideTo",{bubbles:!0,cancelable:!0,detail:s.page});a.dispatchEvent(l)}}),r.on(["refresh","change"],s=>{const o=this.container;if(!o)return;for(const c of o.querySelectorAll("[data-fancybox-current-index]"))c.innerHTML=s.page+1;for(const c of o.querySelectorAll("[data-fancybox-count]"))c.innerHTML=s.pages.length;if(!s.isInfinite){for(const c of o.querySelectorAll("[data-fancybox-next]"))s.page<s.pages.length-1?(c.removeAttribute(lt),c.removeAttribute(Ke)):(c.setAttribute(lt,""),c.setAttribute(Ke,"-1"));for(const c of o.querySelectorAll("[data-fancybox-prev]"))s.page>0?(c.removeAttribute(lt),c.removeAttribute(Ke)):(c.setAttribute(lt,""),c.setAttribute(Ke,"-1"))}const a=this.getSlide();if(!a)return;let l=a.downloadSrc||"";l||a.type!=="image"||a.error||!Ve(a[ct])||(l=a[ct]);for(const c of o.querySelectorAll("[data-fancybox-download]")){const u=a.downloadFilename;l?(c.removeAttribute(lt),c.removeAttribute(Ke),c.setAttribute(Pi,l),c.setAttribute(zs,u||l),c.setAttribute("target","_blank")):(c.setAttribute(lt,""),c.setAttribute(Ke,"-1"),c.removeAttribute(Pi),c.removeAttribute(zs))}}
13),this.emit("initCarousel")}attachEvents(){const e=this,t=e.container;if(!t)return;t.addEventListener("click",e.onClick,{passive:!1,capture:!1}),t.addEventListener("wheel",e.onWheel,{passive:!1,capture:!1}),document.addEventListener("keydown",e.onKeydown,{passive:!1,capture:!0}),document.addEventListener("visibilitychange",e.onVisibilityChange,!1),document.addEventListener("mousemove",e.onMousemove),e.option("trapFocus")&&document.addEventListener("focus",e.onFocus,!0),window.addEventListener("resize",e.onResize);const i=window.visualViewport;i&&(i.addEventListener("scroll",e.onResize),i.addEventListener("resize",e.onResize))}detachEvents(){const e=this,t=e.container;if(!t)return;document.removeEventListener("keydown",e.onKeydown,{passive:!1,capture:!0}),t.removeEventListener("wheel",e.onWheel,{passive:!1,capture:!1}),t.removeEventListener("click",e.onClick,{passive:!1,capture:!1}),document.removeEventListener("mousemove",e.onMousemove),window.removeEventListener("resize",e.onResize);const i=window.visualViewport;i&&(i.removeEventListener("resize",e.onResize),i.removeEventListener("scroll",e.onResize)),document.removeEventListener("visibilitychange",e.onVisibilityChange,!1),document.removeEventListener("focus",e.onFocus,!0)}scale(){const e=this.container;if(!e)return;const t=window.visualViewport,i=Math.max(1,(t==null?void 0:t.scale)||1);let r="",s="",o="";if(t&&i>1){let a=`${t.offsetLeft}px`,l=`${t.offsetTop}px`;r=t.width*i+"px",s=t.height*i+"px",o=`translate3d(${a}, ${l}, 0) scale(${1/i})`}e.style.transform=o,e.style.width=r,e.style.height=s}onClick(e){var t;const{container:i,isCompact:r}=this;if(!i||this.isClosing())return;!r&&this.option("idle")&&this.resetIdle();const s=e.composedPath()[0];if(s.closest(".fancybox-spinner")||s.closest("[data-fancybox-close]"))return e.preventDefault(),void this.close(e);if(s.closest("[data-fancybox-prev]"))return e.preventDefault(),void this.prev();if(s.closest("[data-fancybox-next]"))return e.preventDefault(),void this.next();if(e.type==="click"&&e.detail===0||Math.abs(e.pageX-_s)>30||Math.abs(e.pageY-Fs)>30)return;const o=document.activeElement;if(Ds()&&o&&i.contains(o))return;if(r&&((t=this.getSlide())===null||t===void 0?void 0:t.type)==="image")return void(this.clickTimer?(clearTimeout(this.clickTimer),this.clickTimer=null):this.clickTimer=setTimeout(()=>{this.toggleIdle(),this.clickTimer=null},350));if(this.emit("click",e),e.defaultPrevented)return;let a=!1;if(s.closest(".fancybox__content")){if(o){if(o.closest("[contenteditable]"))return;s.matches(mi)||o.blur()}if(Ds())return;a=this.option("contentClick")}else s.closest(".fancybox__carousel")&&!s.matches(mi)&&(a=this.option("backdropClick"));a==="close"?(e.preventDefault(),this.close(e)):a==="next"?(e.preventDefault(),this.next()):a==="prev"&&(e.preventDefault(),this.prev())}onWheel(e){const t=e.target;let i=this.option("wheel",e);t.closest(".fancybox__thumbs")&&(i="slide");const r=i==="slide",s=[-e.deltaX||0,-e.deltaY||0,-e.detail||0].reduce(function(l,c){return Math.abs(c)>Math.abs(l)?c:l}),o=Math.max(-1,Math.min(1,s)),a=Date.now();this.pwt&&a-this.pwt<300?r&&e.preventDefault():(this.pwt=a,this.emit("wheel",e,o),e.defaultPrevented||(i==="close"?(e.preventDefault(),this.close(e)):i==="slide"&&(Yt(t)||(e.preventDefault(),this[o>0?"prev":"next"]()))))}onScroll(){window.scrollTo(Rs,Bs)}onKeydown(e){if(!this.isTopmost())return;this.isCompact||!this.option("idle")||this.isClosing()||this.resetIdle();const t=e.key,i=this.option("keyboard");if(!i)return;const r=e.composedPath()[0],s=document.activeElement&&document.activeElement.classList,o=s&&s.contains("f-button")||r.dataset.carouselPage||r.dataset.carouselIndex;if(t!=="Escape"&&!o&&ye(r)&&(r.isContentEditable||["TEXTAREA","OPTION","INPUT","SELECT","VIDEO"].indexOf(r.nodeName)!==-1)||(e.key==="Tab"?X(this.container,Ci):ee(this.container,Ci),e.ctrlKey||e.altKey||e.shiftKey))return;this.emit("keydown",t,e);const a=i[t];a&&typeof this[a]=="function"&&(e.preventDefault(),this[a]())}onResize(){const e=this.container;if(!e)return;const t=this.isCompact;e.classList.toggle(As,t),this.manageCaption(this.getSlide()),this.isCompact?this.clearIdle():this.endIdle(),this.scale(),this.emit
13("resize")}onFocus(e){this.isTopmost()&&this.checkFocus(e)}onMousemove(e){this.prevMouseMoveEvent=e,!this.isCompact&&this.option("idle")&&this.resetIdle()}onVisibilityChange(){document.visibilityState==="visible"?this.checkFocus():this.endIdle()}manageCloseBtn(e){const t=this.optionFor(e,"closeButton")||!1;if(t==="auto"){const r=this.plugins.Toolbar;if(r&&r.state===Qe.Ready)return}if(!t||!e.contentEl||e.closeBtnEl)return;const i=this.option("tpl.closeButton");if(i){const r=De(this.localize(i));e.closeBtnEl=e.contentEl.appendChild(r),e.el&&X(e.el,"has-close-btn")}}manageCaption(e=void 0){var t,i;const r="fancybox__caption",s=this.container;if(!s)return;ee(s,jt);const o=this.isCompact||this.option("commonCaption"),a=!o;if(this.caption&&this.stop(this.caption),a&&this.caption&&(this.caption.remove(),this.caption=null),o&&!this.caption)for(const f of((t=this.carousel)===null||t===void 0?void 0:t.slides)||[])f.captionEl&&(f.captionEl.remove(),f.captionEl=void 0,ee(f.el,jt),(i=f.el)===null||i===void 0||i.removeAttribute("aria-labelledby"));if(e||(e=this.getSlide()),!e||o&&!this.isCurrentSlide(e))return;const l=e.el;
13let c=this.optionFor(e,"caption","");if(!c)return void(o&&this.caption&&this.animate(this.caption,"f-fadeOut",()=>{this.caption&&(this.caption.innerHTML="")}));let u=null;if(a){if(u=e.captionEl||null,l&&!u){const f=r+`_${this.id}_${e.index}`;u=document.createElement("div"),X(u,r),u.setAttribute("id",f),e.captionEl=l.appendChild(u),X(l,jt),l.setAttribute("aria-labelledby",f)}}else u=this.caption,u||(u=s.querySelector("."+r)),!u&&(u=document.createElement("div"),u.dataset.fancyboxCaption="",X(u,r),(this.footer||s).prepend(u)),X(s,jt),this.caption=u;u&&(u.innerHTML="",Ve(c)||typeof c=="number"?u.innerHTML=c+"":c instanceof HTMLElement&&u.appendChild(c))}checkFocus(e){this.focus(e)}focus(e){var t;if(this.ignoreFocusChange)return;const i=document.activeElement||null,r=(e==null?void 0:e.target)||null,s=this.container,o=(t=this.carousel)===null||t===void 0?void 0:t.viewport;if(!s||!o||!e&&i&&s.contains(i))return;const a=this.getSlide(),l=a&&a.state===be.Ready?a.el:null;if(!l||l.contains(i)||s===i)return;e&&e.cancelable&&e.preventDefault(),this.ignoreFocusChange=!0;const c=Array.from(s.querySelectorAll(mi));let u=[],f=null;for(let p of c){const m=!p.offsetParent||!!p.closest('[aria-hidden="true"]'),v=l&&l.contains(p),S=!o.contains(p);if(p===s||(v||S)&&!m){u.push(p);const w=p.dataset.origTabindex;w!==void 0&&w&&(p.tabIndex=parseFloat(w)),p.removeAttribute("data-orig-tabindex"),!p.hasAttribute("autoFocus")&&f||(f=p)}else{const w=p.dataset.origTabindex===void 0?p.getAttribute("tabindex")||"":p.dataset.origTabindex;w&&(p.dataset.origTabindex=w),p.tabIndex=-1}}let h=null;e?(!r||u.indexOf(r)<0)&&(h=f||s,u.length&&(i===Ze?h=u[0]:this.lastFocus!==s&&i!==Me||(h=u[u.length-1]))):h=a&&a.type==="image"?s:f||s,h&&ys(h),this.lastFocus=document.activeElement,this.ignoreFocusChange=!1}next(){const e=this.carousel;e&&e.pages.length>1&&e.slideNext()}prev(){const e=this.carousel;e&&e.pages.length>1&&e.slidePrev()}jumpTo(...e){this.carousel&&this.carousel.slideTo(...e)}isTopmost(){var e;return((e=Z.getInstance())===null||e===void 0?void 0:e.id)==this.id}animate(e=null,t="",i){if(!e||!t)return void(i&&i());this.stop(e);const r=s=>{s.target===e&&e.dataset.animationName&&(e.removeEventListener("animationend",r),delete e.dataset.animationName,i&&i(),ee(e,t))};e.dataset.animationName=t,e.addEventListener("animationend",r),X(e,t)}stop(e){e&&e.dispatchEvent(new CustomEvent("animationend",{bubbles:!1,cancelable:!0,currentTarget:e}))}setContent(e,t="",i=!0){if(this.isClosing())return;const r=e.el;if(!r)return;let s=null;if(ye(t)?s=t:(s=De(t+""),ye(s)||(s=document.createElement("div"),s.innerHTML=t+"")),["img","picture","iframe","video","audio"].includes(s.nodeName.toLowerCase())){const o=document.createElement("div");o.appendChild(s),s=o}ye(s)&&e.filter&&!e.error&&(s=s.querySelector(e.filter)),s&&ye(s)?(X(s,"fancybox__content"),e.id&&s.setAttribute("id",e.id),r.classList.add(`has-${e.error?"error":e.type||"unknown"}`),r.prepend(s),s.style.display==="none"&&(s.style.display=""),getComputedStyle(s).getPropertyValue("display")==="none"&&(s.style.display=e.display||this.option("defaultDisplay")||"flex"),e.contentEl=s,i&&this.revealContent(e),this.manageCloseBtn(e),this.manageCaption(e)):this.setError(e,"{{ELEMENT_NOT_FOUND}}")}revealContent(e,t){const i=e.el,r=e.contentEl;
13i&&r&&(this.emit("reveal",e),this.hideLoading(e),e.state=be.Opening,(t=this.isOpeningSlide(e)?t===void 0?this.optionFor(e,"showClass"):t:"f-fadeIn")?this.animate(r,t,()=>{this.done(e)}):this.done(e))}done(e){this.isClosing()||(e.state=be.Ready,this.emit("done",e),X(e.el,"is-done"),this.isCurrentSlide(e)&&this.option("autoFocus")&&queueMicrotask(()=>{var t;(t=e.panzoom)===null||t===void 0||t.updateControls(),this.option("autoFocus")&&this.focus()}),this.isOpeningSlide(e)&&(ee(this.container,Ti),!this.isCompact&&this.option("idle")&&this.setIdle()))}isCurrentSlide(e){const t=this.getSlide();return!(!e||!t)&&t.index===e.index}isOpeningSlide(e){var t,i;return((t=this.carousel)===null||t===void 0?void 0:t.prevPage)===null&&e&&e.index===((i=this.getSlide())===null||i===void 0?void 0:i.index)}showLoading(e){e.state=be.Loading;const t=e.el;t&&(X(t,ks),this.emit("loading",e),e.spinnerEl||setTimeout(()=>{if(!this.isClosing()&&!e.spinnerEl&&e.state===be.Loading){let i=De(Ui);X(i,"fancybox-spinner"),e.spinnerEl=i,t.prepend(i),this.animate(i,"f-fadeIn")}},250))}hideLoading(e){const t=e.el;if(!t)return;const i=e.spinnerEl;this.isClosing()?i==null||i.remove():(ee(t,ks),i&&this.animate(i,"f-fadeOut",()=>{i.remove()}
13),e.state===be.Loading&&(this.emit("loaded",e),e.state=be.Ready))}setError(e,t){if(this.isClosing())return;const i=new Event("error",{bubbles:!0,cancelable:!0});if(this.emit("error",i,e),i.defaultPrevented)return;e.error=t,this.hideLoading(e),this.clearContent(e);const r=document.createElement("div");r.classList.add("fancybox-error"),r.innerHTML=this.localize(t||"<p>{{ERROR}}</p>"),this.setContent(e,r)}clearContent(e){if(e.state===void 0)return;this.emit("clearContent",e),e.contentEl&&(e.contentEl.remove(),e.contentEl=void 0);const t=e.el;t&&(ee(t,"has-error"),ee(t,"has-unknown"),ee(t,`has-${e.type||"unknown"}`)),e.closeBtnEl&&e.closeBtnEl.remove(),e.closeBtnEl=void 0,e.captionEl&&e.captionEl.remove(),e.captionEl=void 0,e.spinnerEl&&e.spinnerEl.remove(),e.spinnerEl=void 0}getSlide(){var e;const t=this.carousel;return((e=t==null?void 0:t.pages[t==null?void 0:t.page])===null||e===void 0?void 0:e.slides[0])||void 0}close(e,t){if(this.isClosing())return;const i=new Event("shouldClose",{bubbles:!0,cancelable:!0});if(this.emit
vendor: 4,499 bytes, line 13
13("shouldClose",i,e),i.defaultPrevented)return;e&&e.cancelable&&(e.preventDefault(),e.stopPropagation());const r=()=>{this.proceedClose(e,t)};this.startedFs&&Oe&&Oe.isFullscreen()?Promise.resolve(Oe.exit()).then(()=>r()):r()}clearIdle(){this.idleTimer&&clearTimeout(this.idleTimer),this.idleTimer=null}setIdle(e=!1){const t=()=>{this.clearIdle(),this.idle=!0,X(this.container,"is-idle"),this.emit("setIdle")};if(this.clearIdle(),!this.isClosing())if(e)t();else{const i=this.option("idle");i&&(this.idleTimer=setTimeout(t,i))}}endIdle(){this.clearIdle(),this.idle&&!this.isClosing()&&(this.idle=!1,ee(this.container,"is-idle"),this.emit("endIdle"))}resetIdle(){this.endIdle(),this.setIdle()}toggleIdle(){this.idle?this.endIdle():this.setIdle(!0)}toggleFullscreen(){Oe&&(Oe.isFullscreen()?Oe.exit():Oe.request().then(()=>{this.startedFs=!0}))}isClosing(){return[de.Closing,de.CustomClosing,de.Destroy].includes(this.state)}proceedClose(e,t){var i,r;this.state=de.Closing,this.clearIdle(),this.detachEvents();const s=this.container,o=this.carousel,a=this.getSlide(),l=a&&this.option("placeFocusBack")?a.triggerEl||this.option("triggerEl"):null;if(l&&(Pn(l)?ys(l):l.focus()),s&&(ee(s,Ti),X(s,"is-closing"),s.setAttribute(Si,"true"),this.option("animated")&&X(s,Ei),s.style.pointerEvents="none"),o){o.clearTransitions(),(i=o.panzoom)===null||i===void 0||i.destroy(),(r=o.plugins.Navigation)===null||r===void 0||r.detach();for(const c of o.slides){c.state=be.Closing,this.hideLoading(c);const u=c.contentEl;u&&this.stop(u);const f=c==null?void 0:c.panzoom;f&&(f.stop(),f.detachEvents(),f.detachObserver()),this.isCurrentSlide(c)||o.emit("removeSlide",c)}}Rs=window.scrollX,Bs=window.scrollY,window.addEventListener("scroll",this.onScroll),this.emit("close",e),this.state!==de.CustomClosing?(t===void 0&&a&&(t=this.optionFor(a,"hideClass")),t&&a?(this.animate(a.contentEl,t,()=>{o&&o.emit("removeSlide",a)}),setTimeout(()=>{this.destroy()},500)):this.destroy()):setTimeout(()=>{this.destroy()},500)}destroy(){var e;if(this.state===de.Destroy)return;window.removeEventListener("scroll",this.onScroll),this.state=de.Destroy,(e=this.carousel)===null||e===void 0||e.destroy();const t=this.container;t&&t.remove(),dt.delete(this.id);const i=Z.getInstance();i?i.focus():(Me&&(Me.remove(),Me=null),Ze&&(Ze.remove(),Ze=null),ee(document.documentElement,Ms),(()=>{if(!yt)return;const r=document,s=r.body;s.classList.remove(xi),s.style.setProperty(Is,""),r.documentElement.style.setProperty(Ls,"")})(),this.emit("destroy"))}static bind(e,t,i){if(!yt)return;let r,s="",o={};if(e===void 0?r=document.body:Ve(e)?(r=document.body,s=e,typeof t=="object"&&(o=t||{})):(r=e,Ve(t)&&(s=t),typeof i=="object"&&(o=i||{})),!r||!ye(r))return;s=s||"[data-fancybox]";const a=Z.openers.get(r)||new Map;a.set(s,o),Z.openers.set(r,a),a.size===1&&r.addEventListener("click",Z.fromEvent)}static unbind(e,t){let i,r="";if(Ve(e)?(i=document.body,r=e):(i=e,Ve(t)&&(r=t)),!i)return;const s=Z.openers.get(i);s&&r&&s.delete(r),r&&s||(Z.openers.delete(i),i.removeEventListener("click",Z.fromEvent))}static destroy(){let e;for(;e=Z.getInstance();)e.destroy();for(const t of Z.openers.keys())t.removeEventListener("click",Z.fromEvent);Z.openers=new Map}static fromEvent(e){if(e.defaultPrevented||e.button&&e.button!==0||e.ctrlKey||e.metaKey||e.shiftKey)return;let t=e.composedPath()[0];const i=t.closest("[data-fancybox-trigger]");if(i){const m=i.dataset.fancyboxTrigger||"",v=document.querySelectorAll(`[data-fancybox="${m}"]`),S=parseInt(i.dataset.fancyboxIndex||"",10)||0;t=v[S]||t}if(!(t&&t instanceof Element))return;let r,s,o,a;if([...Z.openers].reverse().find(([m,v])=>!(!m.contains(t)||![...v].reverse().find(([S,w])=>{let y=t.closest(S);return!!y&&(r=m,s=S,o=y,a=w,!0)}))),!r||!s||!o)return;a=a||{},e.preventDefault(),t=o;let l=[],c=we({},Di,a);c.event=e,c.triggerEl=t,c.delegate=i;const u=c.groupAll,f=c.groupAttr,h=f&&t?t.getAttribute(`${f}`):"";if((!t||h||u)&&(l=[].slice.call(r.querySelectorAll(s))),t&&!u&&(l=h?l.filter(m=>m.getAttribute(`${f}`)===h):[t]),!l.length)return;const p=Z.getInstance();return p&&p.options.triggerEl&&l.indexOf(p.options.triggerEl)>-1?void 0:(t&&(c.startIndex=l.indexOf(t)),Z.fromNodes(l,c))}static fromSelector(e,t,i){let r=null,s="",o={};if(Ve(e)?(r=document.body,s=e,typeof t=="object"&&(o=t||{})):e instanceof HTMLElement&&Ve(t)&&(r=e,s=t,typeof i=="object"&&(o=i||{})),!r||!s)return!1;const a=Z.openers.get(r);return!!a&&(o=we({},a.get(s)||{},o),!!o&&Z.fromNodes(Array.from(r.querySelectorAll(s)),o))}
13static fromNodes(e,t){t=we({},Di,t||{});const i=[];for(const r of e){const s=r.dataset||{},o=s[ct]||r.getAttribute(Pi)||r.getAttribute("currentSrc")||r.getAttribute(ct)||void 0;let a;const l=t.delegate;let c;l&&i.length===t.startIndex&&(a=l instanceof HTMLImageElement?l:l.querySelector("img:not([aria-hidden])")),a||(a=r instanceof HTMLImageElement?r:r.querySelector("img:not([aria-hidden])")),a&&(c=a.currentSrc||a[ct]||void 0,!c&&a.dataset&&(c=a.dataset.lazySrc||a.dataset[ct]||void 0));const u={src:o,triggerEl:r,thumbEl:a,thumbElSrc:c,thumbSrc:c};for(const f in s){let h=s[f]+"";h=h!=="false"&&(h==="true"||h),u[f]=h}i.push(u)}return new Z(i,t)}static getInstance(e){return e?dt.get(e):Array.from(dt.values()).reverse().find(t=>!t.isClosing()&&t)||null}static getSlide(){var e;return((e=Z.getInstance())===null||e===void 0?void 0:e.getSlide())||null}static show(e=[],t={}){return new Z(e,t)}static next(){const e=Z.getInstance();e&&e.next()}static prev(){const e=Z.getInstance();e&&e.prev()}static close(e=!0,...t){if(e)for(const i of dt.values())i.close(...t);else{const i=Z.getInstance();i&&i.close(...t)}}}Object.defineProperty(Z,"version",{enumerable:!0,configurable:!0,writable:!0,value:"5.0.36"}),Object.defineProperty(Z,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:Di}),Object.defineProperty(Z,"Plugins",{enumerable:!0,configurable:!0,writable:!0,value:La}),Object.defineProperty(Z,"openers",{enumerable:!0,configurable:!0,writable:!0,value:new Map});document.documentElement.classList.add("fz");const Aa=new vt({elements_selector:".lazy",threshold:300,use_native:!0});Aa.update();window.jQuery=window.$=ie;var ka=document.querySelector(":root");ka.style.setProperty("--scrollbar-width",window.innerWidth-document.documentElement.clientWidth+"px");document.addEventListener("DOMContentLoaded",function(){function n(){const e=window.innerHeight;document.documentElement.style.setProperty("--full-vh",`${e}px`)}window.addEventListener("load",n),za(),Z.bind("[data-fancybox]",{}),ie("select").selectize()});function za(){function n(){var h=ie(window).scrollTop();h>ie("#hf-top-header").outerHeight()?(ie("#header-box").addClass("fixed"),ie("#header-catalog").addClass("fixed")):(ie("#header-box").removeClass("fixed"),ie("#header-catalog").removeClass("fixed"))}ie(window).scroll(n),n(),new he(".main-slider",{modules:[ma,cs,fa,ua],direction:"horizontal",slidesPerView:1,spaceBetween:0,loop:!0,effect:"fade",fadeEffect:{crossFade:!0},autoplay:{delay:3e3,disableOnInteraction:!1},navigation:{nextEl:".swiper-button-next",prevEl:".swiper-button-prev"},pagination:{el:".swiper-pagination",clickable:!0}});function e(){return window.innerWidth>1280?40:20}function t(){i.params.spaceBetween=e(),i.update(),r.params.spaceBetween=e(),r.update(),s.params.spaceBetween=e(),s.update(),l.params.spaceBetween=e(),l.update()}window.addEventListener("resize",t);const i=new he(".swiper-category-slider",{modules:[Ot,cs,Pt],direction:"horizontal",slidesPerView:"auto",spaceBetween:e(),freeMode:!0,mousewheel:!1,keyboard:!0,scrollbar:{el:".swiper-scrollbar",draggable:!0}}),r=new he(".swiper-new-cards-slider",{modules:[Ot,Pt],direction:"horizontal",slidesPerView:"auto",spaceBetween:e(),freeMode:!0,mousewheel:!1,keyboard:!0,scrollbar:{el:".swiper-scrollbar",draggable:!0}}),s=new he(".swiper-popular-slider",{modules:[Ot,Pt],direction:"horizontal",slidesPerView:"auto",spaceBetween:e(),freeMode:!0,mousewheel:!1,keyboard:!0,scrollbar:{el:".swiper-scrollbar",draggable:!0}}),o=new he("#product-slider .swiper-container",{slidesPerView:1,spaceBetween:10,effect:"fade",fadeEffect:{crossFade:!0},loop:!0}),a=document.querySelectorAll("#product-slider .thumbnail img");a.forEach(h=>{h.addEventListener("click",function(){const p=parseInt(this.getAttribute("data-slide"));o.slideTo(p),a.forEach(m=>m.classList.remove("active")),this.classList.add("active")})}),o.on("slideChange",function(){const h=o.realIndex;a.forEach(p=>p.classList.remove("active")),document.querySelector(`#product-slider .thumbnail img[data-slide="${h}"]`).classList.add("active")});const l=new he(".swiper-actions-cards-slider",{modules:[Ot,Pt],direction:"horizontal",slidesPerView:"auto",spaceBetween:e(),freeMode:!0,mou
13sewheel:!1,keyboard:!0,scrollbar:{el:".swiper-scrollbar",draggable:!0}});function c(h){var p=ie(h.target),m=ie("#"+p.data("target"));ie(".js-catalog").length&&m.length&&(p.val().length>2?m.show():m.hide())}ie(document).on("focus",".js-search",function(h){c(h)}),ie(document).on("input",".js-search",function(h){c(h)}),ie(".js-fast-search").on("click",function(){if(ie(".js-search").length){var h=ie(this).data("search");ie(".js-search").val(h),ie(".js-fast-search").removeClass("active"),ie(this).addClass("active")}}),ie(".js-search").on("input",function(){ie(".js-fast-search").removeClass("active")}),ie(".js-catalog").on("click",function(){const h=ie(this),p=h.data("target");h.hasClass("open")?(h.removeClass("open"),ie(p).removeClass("open"),setTimeout(()=>{h.removeClass("show"),ie(p).removeClass("show")},500)):(h.addClass("show"),ie(p).addClass("show"),setTimeout(()=>{h.addClass("open"),ie(p).addClass("open")},50))});const u=.3*document.documentElement.clientHeight;function f(){const h={root:null,rootMargin:`-${u}px 0px`,threshold:0},p=new IntersectionObserver((v,S)=>{v.forEach(w=>{w.isIntersecting&&(w.target.classList.add("anim"),S.unobserve(w.target))})},h);document.querySelectorAll(".vc").forEach(v=>{p.observe(v)})}f()}

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.