Files
bestpc/public_html/assets/builder/index.js
2025-05-31 20:29:02 +07:00

9 lines
395 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
var Tt,A,_s,Be,fn,Ss,Es,Ts,Zi,Di,zi,Ps,St={},Cs=[],Yr=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Pt=Array.isArray;function be(i,e){for(var t in e)i[t]=e[t];return i}function Ki(i){i&&i.parentNode&&i.parentNode.removeChild(i)}function I(i,e,t){var n,r,a,l={};for(a in e)a=="key"?n=e[a]:a=="ref"?r=e[a]:l[a]=e[a];if(arguments.length>2&&(l.children=arguments.length>3?Tt.call(arguments,2):t),typeof i=="function"&&i.defaultProps!=null)for(a in i.defaultProps)l[a]==null&&(l[a]=i.defaultProps[a]);return wt(i,l,n,r,null)}function wt(i,e,t,n,r){var a={type:i,props:e,key:t,ref:n,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:r??++_s,__i:-1,__u:0};return r==null&&A.vnode!=null&&A.vnode(a),a}function Zr(){return{current:null}}function W(i){return i.children}function me(i,e){this.props=i,this.context=e}function at(i,e){if(e==null)return i.__?at(i.__,i.__i+1):null;for(var t;e<i.__k.length;e++)if((t=i.__k[e])!=null&&t.__e!=null)return t.__e;return typeof i.type=="function"?at(i):null}function ks(i){var e,t;if((i=i.__)!=null&&i.__c!=null){for(i.__e=i.__c.base=null,e=0;e<i.__k.length;e++)if((t=i.__k[e])!=null&&t.__e!=null){i.__e=i.__c.base=t.__e;break}return ks(i)}}function ji(i){(!i.__d&&(i.__d=!0)&&Be.push(i)&&!Jt.__r++||fn!=A.debounceRendering)&&((fn=A.debounceRendering)||Ss)(Jt)}function Jt(){for(var i,e,t,n,r,a,l,o=1;Be.length;)Be.length>o&&Be.sort(Es),i=Be.shift(),o=Be.length,i.__d&&(t=void 0,r=(n=(e=i).__v).__e,a=[],l=[],e.__P&&((t=be({},n)).__v=n.__v+1,A.vnode&&A.vnode(t),Ji(e.__P,t,n,e.__n,e.__P.namespaceURI,32&n.__u?[r]:null,a,r??at(n),!!(32&n.__u),l),t.__v=n.__v,t.__.__k[t.__i]=t,As(a,t,l),t.__e!=r&&ks(t)));Jt.__r=0}function Ms(i,e,t,n,r,a,l,o,c,d,u){var h,p,m,f,v,b,g=n&&n.__k||Cs,x=e.length;for(c=Kr(t,e,g,c,x),h=0;h<x;h++)(m=t.__k[h])!=null&&(p=m.__i==-1?St:g[m.__i]||St,m.__i=h,b=Ji(i,m,p,r,a,l,o,c,d,u),f=m.__e,m.ref&&p.ref!=m.ref&&(p.ref&&Qi(p.ref,null,m),u.push(m.ref,m.__c||f,m)),v==null&&f!=null&&(v=f),4&m.__u||p.__k===m.__k?c=Ls(m,c,i):typeof m.type=="function"&&b!==void 0?c=b:f&&(c=f.nextSibling),m.__u&=-7);return t.__e=v,c}function Kr(i,e,t,n,r){var a,l,o,c,d,u=t.length,h=u,p=0;for(i.__k=new Array(r),a=0;a<r;a++)(l=e[a])!=null&&typeof l!="boolean"&&typeof l!="function"?(c=a+p,(l=i.__k[a]=typeof l=="string"||typeof l=="number"||typeof l=="bigint"||l.constructor==String?wt(null,l,null,null,null):Pt(l)?wt(W,{children:l},null,null,null):l.constructor==null&&l.__b>0?wt(l.type,l.props,l.key,l.ref?l.ref:null,l.__v):l).__=i,l.__b=i.__b+1,o=null,(d=l.__i=Jr(l,t,c,h))!=-1&&(h--,(o=t[d])&&(o.__u|=2)),o==null||o.__v==null?(d==-1&&(r>u?p--:r<u&&p++),typeof l.type!="function"&&(l.__u|=4)):d!=c&&(d==c-1?p--:d==c+1?p++:(d>c?p--:p++,l.__u|=4))):i.__k[a]=null;if(h)for(a=0;a<u;a++)(o=t[a])!=null&&(2&o.__u)==0&&(o.__e==n&&(n=at(o)),Is(o,o));return n}function Ls(i,e,t){var n,r;if(typeof i.type=="function"){for(n=i.__k,r=0;n&&r<n.length;r++)n[r]&&(n[r].__=i,e=Ls(n[r],e,t));return e}i.__e!=e&&(e&&i.type&&!t.contains(e)&&(e=at(i)),t.insertBefore(i.__e,e||null),e=i.__e);do e=e&&e.nextSibling;while(e!=null&&e.nodeType==8);return e}function Ce(i,e){return e=e||[],i==null||typeof i=="boolean"||(Pt(i)?i.some(function(t){Ce(t,e)}):e.push(i)),e}function Jr(i,e,t,n){var r,a,l=i.key,o=i.type,c=e[t];if(c===null&&i.key==null||c&&l==c.key&&o==c.type&&(2&c.__u)==0)return t;if(n>(c!=null&&(2&c.__u)==0?1:0))for(r=t-1,a=t+1;r>=0||a<e.length;){if(r>=0){if((c=e[r])&&(2&c.__u)==0&&l==c.key&&o==c.type)return r;r--}if(a<e.length){if((c=e[a])&&(2&c.__u)==0&&l==c.key&&o==c.type)return a;a++}}return-1}function gn(i,e,t){e[0]=="-"?i.setProperty(e,t??""):i[e]=t==null?"":typeof t!="number"||Yr.test(e)?t:t+"px"}function At(i,e,t,n,r){var a;e:if(e=="style")if(typeof t=="string")i.style.cssText=t;else{if(typeof n=="string"&&(i.style.cssText=n=""),n)for(e in n)t&&e in t||gn(i.style,e,"");if(t)for(e in t)n&&t[e]==n[e]||gn(i.style,e,t[e])}else if(e[0]=="o"&&e[1]=="n")a=e!=(e=e.replace(Ts,"$1")),e=e.toLowerCase()in i||e=="onFocusOut"||e=="onFocusIn"?e.toLowerCase().slice(2):e.slice(2),i.l||(i.l={}),i.l[e+a]=t,t?n?t.u=n.u:(t.u=Zi,i.addEventListener(e,a?zi:Di,a)):i.removeEventListener(e,a?zi:Di,a);else{if(r=="http://www.w3.org/2000/svg")e=e.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(e!="width"&&e!="height"&&e!="href"&&e!="list"&&e!="form"&&e!="tabIndex"&&e!="download"&&e!="rowSpan"&&e!="colSpan"&&e!="role"&&e!="popover"&&e in i)try{i[e]=t??"";break e}catch{}typeof t=="function"||(t==null||t===!1&&e[4]!="-"?i.removeAttribute(e):i.setAttribute(e,e=="popover"&&t==1?"":t))}}function vn(i){return function(e){if(this.l){var t=this.l[e.type+i];if(e.t==null)e.t=Zi++;else if(e.t<t.u)return;return t(A.event?A.event(e):e)}}}function Ji(i,e,t,n,r,a,l,o,c,d){var u,h,p,m,f,v,b,g,x,y,w,N,k,E,_,S,T,C=e.type;if(e.constructor!=null)return null;128&t.__u&&(c=!!(32&t.__u),a=[o=e.__e=t.__e]),(u=A.__b)&&u(e);e:if(typeof C=="function")try{if(g=e.props,x="prototype"in C&&C.prototype.render,y=(u=C.contextType)&&n[u.__c],w=u?y?y.props.value:u.__:n,t.__c?b=(h=e.__c=t.__c).__=h.__E:(x?e.__c=h=new C(g,w):(e.__c=h=new me(g,w),h.constructor=C,h.render=ea),y&&y.sub(h),h.props=g,h.state||(h.state={}),h.context=w,h.__n=n,p=h.__d=!0,h.__h=[],h._sb=[]),x&&h.__s==null&&(h.__s=h.state),x&&C.getDerivedStateFromProps!=null&&(h.__s==h.state&&(h.__s=be({},h.__s)),be(h.__s,C.getDerivedStateFromProps(g,h.__s))),m=h.props,f=h.state,h.__v=e,p)x&&C.getDerivedStateFromProps==null&&h.componentWillMount!=null&&h.componentWillMount(),x&&h.componentDidMount!=null&&h.__h.push(h.componentDidMount);else{if(x&&C.getDerivedStateFromProps==null&&g!==m&&h.componentWillReceiveProps!=null&&h.componentWillReceiveProps(g,w),!h.__e&&h.shouldComponentUpdate!=null&&h.shouldComponentUpdate(g,h.__s,w)===!1||e.__v==t.__v){for(e.__v!=t.__v&&(h.props=g,h.state=h.__s,h.__d=!1),e.__e=t.__e,e.__k=t.__k,e.__k.some(function(L){L&&(L.__=e)}),N=0;N<h._sb.length;N++)h.__h.push(h._sb[N]);h._sb=[],h.__h.length&&l.push(h);break e}h.componentWillUpdate!=null&&h.componentWillUpdate(g,h.__s,w),x&&h.componentDidUpdate!=null&&h.__h.push(function(){h.componentDidUpdate(m,f,v)})}if(h.context=w,h.props=g,h.__P=i,h.__e=!1,k=A.__r,E=0,x){for(h.state=h.__s,h.__d=!1,k&&k(e),u=h.render(h.props,h.state,h.context),_=0;_<h._sb.length;_++)h.__h.push(h._sb[_]);h._sb=[]}else do h.__d=!1,k&&k(e),u=h.render(h.props,h.state,h.context),h.state=h.__s;while(h.__d&&++E<25);h.state=h.__s,h.getChildContext!=null&&(n=be(be({},n),h.getChildContext())),x&&!p&&h.getSnapshotBeforeUpdate!=null&&(v=h.getSnapshotBeforeUpdate(m,f)),S=u,u!=null&&u.type===W&&u.key==null&&(S=Os(u.props.children)),o=Ms(i,Pt(S)?S:[S],e,t,n,r,a,l,o,c,d),h.base=e.__e,e.__u&=-161,h.__h.length&&l.push(h),b&&(h.__E=h.__=null)}catch(L){if(e.__v=null,c||a!=null)if(L.then){for(e.__u|=c?160:128;o&&o.nodeType==8&&o.nextSibling;)o=o.nextSibling;a[a.indexOf(o)]=null,e.__e=o}else for(T=a.length;T--;)Ki(a[T]);else e.__e=t.__e,e.__k=t.__k;A.__e(L,e,t)}else a==null&&e.__v==t.__v?(e.__k=t.__k,e.__e=t.__e):o=e.__e=Qr(t.__e,e,t,n,r,a,l,c,d);return(u=A.diffed)&&u(e),128&e.__u?void 0:o}function As(i,e,t){for(var n=0;n<t.length;n++)Qi(t[n],t[++n],t[++n]);A.__c&&A.__c(e,i),i.some(function(r){try{i=r.__h,r.__h=[],i.some(function(a){a.call(r)})}catch(a){A.__e(a,r.__v)}})}function Os(i){return typeof i!="object"||i==null||i.__b&&i.__b>0?i:Pt(i)?i.map(Os):be({},i)}function Qr(i,e,t,n,r,a,l,o,c){var d,u,h,p,m,f,v,b=t.props,g=e.props,x=e.type;if(x=="svg"?r="http://www.w3.org/2000/svg":x=="math"?r="http://www.w3.org/1998/Math/MathML":r||(r="http://www.w3.org/1999/xhtml"),a!=null){for(d=0;d<a.length;d++)if((m=a[d])&&"setAttribute"in m==!!x&&(x?m.localName==x:m.nodeType==3)){i=m,a[d]=null;break}}if(i==null){if(x==null)return document.createTextNode(g);i=document.createElementNS(r,x,g.is&&g),o&&(A.__m&&A.__m(e,a),o=!1),a=null}if(x==null)b===g||o&&i.data==g||(i.data=g);else{if(a=a&&Tt.call(i.childNodes),b=t.props||St,!o&&a!=null)for(b={},d=0;d<i.attributes.length;d++)b[(m=i.attributes[d]).name]=m.value;for(d in b)if(m=b[d],d!="children"){if(d=="dangerouslySetInnerHTML")h=m;else if(!(d in g)){if(d=="value"&&"defaultValue"in g||d=="checked"&&"defaultChecked"in g)continue;At(i,d,null,m,r)}}for(d in g)m=g[d],d=="children"?p=m:d=="dangerouslySetInnerHTML"?u=m:d=="value"?f=m:d=="checked"?v=m:o&&typeof m!="function"||b[d]===m||At(i,d,m,b[d],r);if(u)o||h&&(u.__html==h.__html||u.__html==i.innerHTML)||(i.innerHTML=u.__html),e.__k=[];else if(h&&(i.innerHTML=""),Ms(e.type=="template"?i.content:i,Pt(p)?p:[p],e,t,n,x=="foreignObject"?"http://www.w3.org/1999/xhtml":r,a,l,a?a[0]:t.__k&&at(t,0),o,c),a!=null)for(d=a.length;d--;)Ki(a[d]);o||(d="value",x=="progress"&&f==null?i.removeAttribute("value"):f!=null&&(f!==i[d]||x=="progress"&&!f||x=="option"&&f!=b[d])&&At(i,d,f,b[d],r),d="checked",v!=null&&v!=i[d]&&At(i,d,v,b[d],r))}return i}function Qi(i,e,t){try{if(typeof i=="function"){var n=typeof i.__u=="function";n&&i.__u(),n&&e==null||(i.__u=i(e))}else i.current=e}catch(r){A.__e(r,t)}}function Is(i,e,t){var n,r;if(A.unmount&&A.unmount(i),(n=i.ref)&&(n.current&&n.current!=i.__e||Qi(n,null,e)),(n=i.__c)!=null){if(n.componentWillUnmount)try{n.componentWillUnmount()}catch(a){A.__e(a,e)}n.base=n.__P=null}if(n=i.__k)for(r=0;r<n.length;r++)n[r]&&Is(n[r],e,t||typeof i.type!="function");t||Ki(i.__e),i.__c=i.__=i.__e=void 0}function ea(i,e,t){return this.constructor(i,t)}function lt(i,e,t){var n,r,a,l;e==document&&(e=document.documentElement),A.__&&A.__(i,e),r=(n=typeof t=="function")?null:t&&t.__k||e.__k,a=[],l=[],Ji(e,i=(!n&&t||e).__k=I(W,null,[i]),r||St,St,e.namespaceURI,!n&&t?[t]:r?null:e.firstChild?Tt.call(e.childNodes):null,a,!n&&t?t:r?r.__e:e.firstChild,n,l),As(a,i,l)}function Rs(i,e){lt(i,e,Rs)}function ta(i,e,t){var n,r,a,l,o=be({},i.props);for(a in i.type&&i.type.defaultProps&&(l=i.type.defaultProps),e)a=="key"?n=e[a]:a=="ref"?r=e[a]:o[a]=e[a]==null&&l!=null?l[a]:e[a];return arguments.length>2&&(o.children=arguments.length>3?Tt.call(arguments,2):t),wt(i.type,o,n||i.key,r||i.ref,null)}function se(i){function e(t){var n,r;return this.getChildContext||(n=new Set,(r={})[e.__c]=this,this.getChildContext=function(){return r},this.componentWillUnmount=function(){n=null},this.shouldComponentUpdate=function(a){this.props.value!=a.value&&n.forEach(function(l){l.__e=!0,ji(l)})},this.sub=function(a){n.add(a);var l=a.componentWillUnmount;a.componentWillUnmount=function(){n&&n.delete(a),l&&l.call(a)}}),t.children}return e.__c="__cC"+Ps++,e.__=i,e.Provider=e.__l=(e.Consumer=function(t,n){return t.children(n)}).contextType=e,e}Tt=Cs.slice,A={__e:function(i,e,t,n){for(var r,a,l;e=e.__;)if((r=e.__c)&&!r.__)try{if((a=r.constructor)&&a.getDerivedStateFromError!=null&&(r.setState(a.getDerivedStateFromError(i)),l=r.__d),r.componentDidCatch!=null&&(r.componentDidCatch(i,n||{}),l=r.__d),l)return r.__E=r}catch(o){i=o}throw i}},_s=0,me.prototype.setState=function(i,e){var t;t=this.__s!=null&&this.__s!=this.state?this.__s:this.__s=be({},this.state),typeof i=="function"&&(i=i(be({},t),this.props)),i&&be(t,i),i!=null&&this.__v&&(e&&this._sb.push(e),ji(this))},me.prototype.forceUpdate=function(i){this.__v&&(this.__e=!0,i&&this.__h.push(i),ji(this))},me.prototype.render=W,Be=[],Ss=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Es=function(i,e){return i.__v.__b-e.__v.__b},Jt.__r=0,Ts=/(PointerCapture)$|Capture$/i,Zi=0,Di=vn(!1),zi=vn(!0),Ps=0;var ia=0;function s(i,e,t,n,r,a){e||(e={});var l,o,c=e;if("ref"in c)for(o in c={},e)o=="ref"?l=e[o]:c[o]=e[o];var d={type:i,props:c,key:t,ref:l,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--ia,__i:-1,__u:0,__source:r,__self:a};if(typeof i=="function"&&(l=i.defaultProps))for(o in l)c[o]===void 0&&(c[o]=l[o]);return A.vnode&&A.vnode(d),d}var Ie,H,oi,bn,ot=0,Ds=[],G=A,xn=G.__b,yn=G.__r,wn=G.diffed,Nn=G.__c,_n=G.unmount,Sn=G.__;function ct(i,e){G.__h&&G.__h(H,i,ot||e),ot=0;var t=H.__H||(H.__H={__:[],__h:[]});return i>=t.__.length&&t.__.push({}),t.__[i]}function Q(i){return ot=1,en(Bs,i)}function en(i,e,t){var n=ct(Ie++,2);if(n.t=i,!n.__c&&(n.__=[t?t(e):Bs(void 0,e),function(o){var c=n.__N?n.__N[0]:n.__[0],d=n.t(c,o);c!==d&&(n.__N=[d,n.__[1]],n.__c.setState({}))}],n.__c=H,!H.__f)){var r=function(o,c,d){if(!n.__c.__H)return!0;var u=n.__c.__H.__.filter(function(p){return!!p.__c});if(u.every(function(p){return!p.__N}))return!a||a.call(this,o,c,d);var h=n.__c.props!==o;return u.forEach(function(p){if(p.__N){var m=p.__[0];p.__=p.__N,p.__N=void 0,m!==p.__[0]&&(h=!0)}}),a&&a.call(this,o,c,d)||h};H.__f=!0;var a=H.shouldComponentUpdate,l=H.componentWillUpdate;H.componentWillUpdate=function(o,c,d){if(this.__e){var u=a;a=void 0,r(o,c,d),a=u}l&&l.call(this,o,c,d)},H.shouldComponentUpdate=r}return n.__N||n.__}function fe(i,e){var t=ct(Ie++,3);!G.__s&&tn(t.__H,e)&&(t.__=i,t.u=e,H.__H.__h.push(t))}function Re(i,e){var t=ct(Ie++,4);!G.__s&&tn(t.__H,e)&&(t.__=i,t.u=e,H.__h.push(t))}function J(i){return ot=5,ue(function(){return{current:i}},[])}function zs(i,e,t){ot=6,Re(function(){if(typeof i=="function"){var n=i(e());return function(){i(null),n&&typeof n=="function"&&n()}}if(i)return i.current=e(),function(){return i.current=null}},t==null?t:t.concat(i))}function ue(i,e){var t=ct(Ie++,7);return tn(t.__H,e)&&(t.__=i(),t.__H=e,t.__h=i),t.__}function qe(i,e){return ot=8,ue(function(){return i},e)}function B(i){var e=H.context[i.__c],t=ct(Ie++,9);return t.c=i,e?(t.__==null&&(t.__=!0,e.sub(H)),e.props.value):i.__}function js(i,e){G.useDebugValue&&G.useDebugValue(e?e(i):i)}function Fs(){var i=ct(Ie++,11);if(!i.__){for(var e=H.__v;e!==null&&!e.__m&&e.__!==null;)e=e.__;var t=e.__m||(e.__m=[0,0]);i.__="P"+t[0]+"-"+t[1]++}return i.__}function na(){for(var i;i=Ds.shift();)if(i.__P&&i.__H)try{i.__H.__h.forEach(Ut),i.__H.__h.forEach(Fi),i.__H.__h=[]}catch(e){i.__H.__h=[],G.__e(e,i.__v)}}G.__b=function(i){H=null,xn&&xn(i)},G.__=function(i,e){i&&e.__k&&e.__k.__m&&(i.__m=e.__k.__m),Sn&&Sn(i,e)},G.__r=function(i){yn&&yn(i),Ie=0;var e=(H=i.__c).__H;e&&(oi===H?(e.__h=[],H.__h=[],e.__.forEach(function(t){t.__N&&(t.__=t.__N),t.u=t.__N=void 0})):(e.__h.forEach(Ut),e.__h.forEach(Fi),e.__h=[],Ie=0)),oi=H},G.diffed=function(i){wn&&wn(i);var e=i.__c;e&&e.__H&&(e.__H.__h.length&&(Ds.push(e)!==1&&bn===G.requestAnimationFrame||((bn=G.requestAnimationFrame)||sa)(na)),e.__H.__.forEach(function(t){t.u&&(t.__H=t.u),t.u=void 0})),oi=H=null},G.__c=function(i,e){e.some(function(t){try{t.__h.forEach(Ut),t.__h=t.__h.filter(function(n){return!n.__||Fi(n)})}catch(n){e.some(function(r){r.__h&&(r.__h=[])}),e=[],G.__e(n,t.__v)}}),Nn&&Nn(i,e)},G.unmount=function(i){_n&&_n(i);var e,t=i.__c;t&&t.__H&&(t.__H.__.forEach(function(n){try{Ut(n)}catch(r){e=r}}),t.__H=void 0,e&&G.__e(e,t.__v))};var En=typeof requestAnimationFrame=="function";function sa(i){var e,t=function(){clearTimeout(n),En&&cancelAnimationFrame(e),setTimeout(i)},n=setTimeout(t,100);En&&(e=requestAnimationFrame(t))}function Ut(i){var e=H,t=i.__c;typeof t=="function"&&(i.__c=void 0,t()),H=e}function Fi(i){var e=H;i.__c=i.__(),H=e}function tn(i,e){return!i||i.length!==e.length||e.some(function(t,n){return t!==i[n]})}function Bs(i,e){return typeof e=="function"?e(i):e}function $s(i,e){for(var t in e)i[t]=e[t];return i}function Bi(i,e){for(var t in i)if(t!=="__source"&&!(t in e))return!0;for(var n in e)if(n!=="__source"&&i[n]!==e[n])return!0;return!1}function Hs(i,e){var t=e(),n=Q({t:{__:t,u:e}}),r=n[0].t,a=n[1];return Re(function(){r.__=t,r.u=e,ci(r)&&a({t:r})},[i,t,e]),fe(function(){return ci(r)&&a({t:r}),i(function(){ci(r)&&a({t:r})})},[i]),t}function ci(i){var e,t,n=i.u,r=i.__;try{var a=n();return!((e=r)===(t=a)&&(e!==0||1/e==1/t)||e!=e&&t!=t)}catch{return!0}}function nn(i){i()}function Gs(i){return i}function Vs(){return[!1,nn]}var Ws=Re;function $i(i,e){this.props=i,this.context=e}function Xs(i,e){function t(r){var a=this.props.ref,l=a==r.ref;return!l&&a&&(a.call?a(null):a.current=null),e?!e(this.props,r)||!l:Bi(this.props,r)}function n(r){return this.shouldComponentUpdate=t,I(i,r)}return n.displayName="Memo("+(i.displayName||i.name)+")",n.prototype.isReactComponent=!0,n.__f=!0,n}($i.prototype=new me).isPureReactComponent=!0,$i.prototype.shouldComponentUpdate=function(i,e){return Bi(this.props,i)||Bi(this.state,e)};var Tn=A.__b;A.__b=function(i){i.type&&i.type.__f&&i.ref&&(i.props.ref=i.ref,i.ref=null),Tn&&Tn(i)};var ra=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function dt(i){function e(t){var n=$s({},t);return delete n.ref,i(n,t.ref||null)}return e.$$typeof=ra,e.render=e,e.prototype.isReactComponent=e.__f=!0,e.displayName="ForwardRef("+(i.displayName||i.name)+")",e}var Pn=function(i,e){return i==null?null:Ce(Ce(i).map(e))},Us={map:Pn,forEach:Pn,count:function(i){return i?Ce(i).length:0},only:function(i){var e=Ce(i);if(e.length!==1)throw"Children.only";return e[0]},toArray:Ce},aa=A.__e;A.__e=function(i,e,t,n){if(i.then){for(var r,a=e;a=a.__;)if((r=a.__c)&&r.__c)return e.__e==null&&(e.__e=t.__e,e.__k=t.__k),r.__c(i,e)}aa(i,e,t,n)};var Cn=A.unmount;function qs(i,e,t){return i&&(i.__c&&i.__c.__H&&(i.__c.__H.__.forEach(function(n){typeof n.__c=="function"&&n.__c()}),i.__c.__H=null),(i=$s({},i)).__c!=null&&(i.__c.__P===t&&(i.__c.__P=e),i.__c.__e=!0,i.__c=null),i.__k=i.__k&&i.__k.map(function(n){return qs(n,e,t)})),i}function Ys(i,e,t){return i&&t&&(i.__v=null,i.__k=i.__k&&i.__k.map(function(n){return Ys(n,e,t)}),i.__c&&i.__c.__P===e&&(i.__e&&t.appendChild(i.__e),i.__c.__e=!0,i.__c.__P=t)),i}function qt(){this.__u=0,this.o=null,this.__b=null}function Zs(i){var e=i.__.__c;return e&&e.__a&&e.__a(i)}function la(i){var e,t,n;function r(a){if(e||(e=i()).then(function(l){t=l.default||l},function(l){n=l}),n)throw n;if(!t)throw e;return I(t,a)}return r.displayName="Lazy",r.__f=!0,r}function vt(){this.i=null,this.l=null}A.unmount=function(i){var e=i.__c;e&&e.__R&&e.__R(),e&&32&i.__u&&(i.type=null),Cn&&Cn(i)},(qt.prototype=new me).__c=function(i,e){var t=e.__c,n=this;n.o==null&&(n.o=[]),n.o.push(t);var r=Zs(n.__v),a=!1,l=function(){a||(a=!0,t.__R=null,r?r(o):o())};t.__R=l;var o=function(){if(!--n.__u){if(n.state.__a){var c=n.state.__a;n.__v.__k[0]=Ys(c,c.__c.__P,c.__c.__O)}var d;for(n.setState({__a:n.__b=null});d=n.o.pop();)d.forceUpdate()}};n.__u++||32&e.__u||n.setState({__a:n.__b=n.__v.__k[0]}),i.then(l,l)},qt.prototype.componentWillUnmount=function(){this.o=[]},qt.prototype.render=function(i,e){if(this.__b){if(this.__v.__k){var t=document.createElement("div"),n=this.__v.__k[0].__c;this.__v.__k[0]=qs(this.__b,t,n.__O=n.__P)}this.__b=null}var r=e.__a&&I(W,null,i.fallback);return r&&(r.__u&=-33),[I(W,null,e.__a?null:i.children),r]};var kn=function(i,e,t){if(++t[1]===t[0]&&i.l.delete(e),i.props.revealOrder&&(i.props.revealOrder[0]!=="t"||!i.l.size))for(t=i.i;t;){for(;t.length>3;)t.pop()();if(t[1]<t[0])break;i.i=t=t[2]}};function oa(i){return this.getChildContext=function(){return i.context},i.children}function ca(i){var e=this,t=i.h;if(e.componentWillUnmount=function(){lt(null,e.v),e.v=null,e.h=null},e.h&&e.h!==t&&e.componentWillUnmount(),!e.v){for(var n=e.__v;n!==null&&!n.__m&&n.__!==null;)n=n.__;e.h=t,e.v={nodeType:1,parentNode:t,childNodes:[],__k:{__m:n.__m},contains:function(){return!0},appendChild:function(r){this.childNodes.push(r),e.h.appendChild(r)},insertBefore:function(r,a){this.childNodes.push(r),e.h.insertBefore(r,a)},removeChild:function(r){this.childNodes.splice(this.childNodes.indexOf(r)>>>1,1),e.h.removeChild(r)}}}lt(I(oa,{context:e.context},i.__v),e.v)}function da(i,e){var t=I(ca,{__v:i,h:e});return t.containerInfo=e,t}(vt.prototype=new me).__a=function(i){var e=this,t=Zs(e.__v),n=e.l.get(i);return n[0]++,function(r){var a=function(){e.props.revealOrder?(n.push(r),kn(e,i,n)):r()};t?t(a):a()}},vt.prototype.render=function(i){this.i=null,this.l=new Map;var e=Ce(i.children);i.revealOrder&&i.revealOrder[0]==="b"&&e.reverse();for(var t=e.length;t--;)this.l.set(e[t],this.i=[1,0,this.i]);return i.children},vt.prototype.componentDidUpdate=vt.prototype.componentDidMount=function(){var i=this;this.l.forEach(function(e,t){kn(i,t,e)})};var Ks=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,ua=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,ha=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,pa=/[A-Z0-9]/g,ma=typeof document<"u",fa=function(i){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(i)};function ga(i,e,t){return e.__k==null&&(e.textContent=""),lt(i,e),typeof t=="function"&&t(),i?i.__c:null}function va(i,e,t){return Rs(i,e),typeof t=="function"&&t(),i?i.__c:null}me.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(i){Object.defineProperty(me.prototype,i,{configurable:!0,get:function(){return this["UNSAFE_"+i]},set:function(e){Object.defineProperty(this,i,{configurable:!0,writable:!0,value:e})}})});var Mn=A.event;function ba(){}function xa(){return this.cancelBubble}function ya(){return this.defaultPrevented}A.event=function(i){return Mn&&(i=Mn(i)),i.persist=ba,i.isPropagationStopped=xa,i.isDefaultPrevented=ya,i.nativeEvent=i};var sn,wa={enumerable:!1,configurable:!0,get:function(){return this.class}},Ln=A.vnode;A.vnode=function(i){typeof i.type=="string"&&function(e){var t=e.props,n=e.type,r={},a=n.indexOf("-")===-1;for(var l in t){var o=t[l];if(!(l==="value"&&"defaultValue"in t&&o==null||ma&&l==="children"&&n==="noscript"||l==="class"||l==="className")){var c=l.toLowerCase();l==="defaultValue"&&"value"in t&&t.value==null?l="value":l==="download"&&o===!0?o="":c==="translate"&&o==="no"?o=!1:c[0]==="o"&&c[1]==="n"?c==="ondoubleclick"?l="ondblclick":c!=="onchange"||n!=="input"&&n!=="textarea"||fa(t.type)?c==="onfocus"?l="onfocusin":c==="onblur"?l="onfocusout":ha.test(l)&&(l=c):c=l="oninput":a&&ua.test(l)?l=l.replace(pa,"-$&").toLowerCase():o===null&&(o=void 0),c==="oninput"&&r[l=c]&&(l="oninputCapture"),r[l]=o}}n=="select"&&r.multiple&&Array.isArray(r.value)&&(r.value=Ce(t.children).forEach(function(d){d.props.selected=r.value.indexOf(d.props.value)!=-1})),n=="select"&&r.defaultValue!=null&&(r.value=Ce(t.children).forEach(function(d){d.props.selected=r.multiple?r.defaultValue.indexOf(d.props.value)!=-1:r.defaultValue==d.props.value})),t.class&&!t.className?(r.class=t.class,Object.defineProperty(r,"className",wa)):(t.className&&!t.class||t.class&&t.className)&&(r.class=r.className=t.className),e.props=r}(i),i.$$typeof=Ks,Ln&&Ln(i)};var An=A.__r;A.__r=function(i){An&&An(i),sn=i.__c};var On=A.diffed;A.diffed=function(i){On&&On(i);var e=i.props,t=i.__e;t!=null&&i.type==="textarea"&&"value"in e&&e.value!==t.value&&(t.value=e.value==null?"":e.value),sn=null};var Na={ReactCurrentDispatcher:{current:{readContext:function(i){return sn.__n[i.__c].props.value},useCallback:qe,useContext:B,useDebugValue:js,useDeferredValue:Gs,useEffect:fe,useId:Fs,useImperativeHandle:zs,useInsertionEffect:Ws,useLayoutEffect:Re,useMemo:ue,useReducer:en,useRef:J,useState:Q,useSyncExternalStore:Hs,useTransition:Vs}}};function _a(i){return I.bind(null,i)}function Ct(i){return!!i&&i.$$typeof===Ks}function Sa(i){return Ct(i)&&i.type===W}function Ea(i){return!!i&&!!i.displayName&&(typeof i.displayName=="string"||i.displayName instanceof String)&&i.displayName.startsWith("Memo(")}function Ta(i){return Ct(i)?ta.apply(null,arguments):i}function Pa(i){return!!i.__k&&(lt(null,i),!0)}function Ca(i){return i&&(i.base||i.nodeType===1&&i)||null}var ka=function(i,e){return i(e)},Ma=function(i,e){return i(e)},La=W,Aa=Ct,Y={useState:Q,useId:Fs,useReducer:en,useEffect:fe,useLayoutEffect:Re,useInsertionEffect:Ws,useTransition:Vs,useDeferredValue:Gs,useSyncExternalStore:Hs,startTransition:nn,useRef:J,useImperativeHandle:zs,useMemo:ue,useCallback:qe,useContext:B,useDebugValue:js,version:"18.3.1",Children:Us,render:ga,hydrate:va,unmountComponentAtNode:Pa,createPortal:da,createElement:I,createContext:se,createFactory:_a,cloneElement:Ta,createRef:Zr,Fragment:W,isValidElement:Ct,isElement:Aa,isFragment:Sa,isMemo:Ea,findDOMNode:Ca,Component:me,PureComponent:$i,memo:Xs,forwardRef:dt,flushSync:Ma,unstable_batchedUpdates:ka,StrictMode:La,Suspense:qt,SuspenseList:vt,lazy:la,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Na},pt={},In;function Oa(){if(In)return pt;In=1,Object.defineProperty(pt,"__esModule",{value:!0}),pt.parse=l,pt.serialize=d;const i=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,e=/^[\u0021-\u003A\u003C-\u007E]*$/,t=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,n=/^[\u0020-\u003A\u003D-\u007E]*$/,r=Object.prototype.toString,a=(()=>{const p=function(){};return p.prototype=Object.create(null),p})();function l(p,m){const f=new a,v=p.length;if(v<2)return f;const b=(m==null?void 0:m.decode)||u;let g=0;do{const x=p.indexOf("=",g);if(x===-1)break;const y=p.indexOf(";",g),w=y===-1?v:y;if(x>w){g=p.lastIndexOf(";",x-1)+1;continue}const N=o(p,g,x),k=c(p,x,N),E=p.slice(N,k);if(f[E]===void 0){let _=o(p,x+1,w),S=c(p,w,_);const T=b(p.slice(_,S));f[E]=T}g=w+1}while(g<v);return f}function o(p,m,f){do{const v=p.charCodeAt(m);if(v!==32&&v!==9)return m}while(++m<f);return f}function c(p,m,f){for(;m>f;){const v=p.charCodeAt(--m);if(v!==32&&v!==9)return m+1}return f}function d(p,m,f){const v=(f==null?void 0:f.encode)||encodeURIComponent;if(!i.test(p))throw new TypeError(`argument name is invalid: ${p}`);const b=v(m);if(!e.test(b))throw new TypeError(`argument val is invalid: ${m}`);let g=p+"="+b;if(!f)return g;if(f.maxAge!==void 0){if(!Number.isInteger(f.maxAge))throw new TypeError(`option maxAge is invalid: ${f.maxAge}`);g+="; Max-Age="+f.maxAge}if(f.domain){if(!t.test(f.domain))throw new TypeError(`option domain is invalid: ${f.domain}`);g+="; Domain="+f.domain}if(f.path){if(!n.test(f.path))throw new TypeError(`option path is invalid: ${f.path}`);g+="; Path="+f.path}if(f.expires){if(!h(f.expires)||!Number.isFinite(f.expires.valueOf()))throw new TypeError(`option expires is invalid: ${f.expires}`);g+="; Expires="+f.expires.toUTCString()}if(f.httpOnly&&(g+="; HttpOnly"),f.secure&&(g+="; Secure"),f.partitioned&&(g+="; Partitioned"),f.priority)switch(typeof f.priority=="string"?f.priority.toLowerCase():void 0){case"low":g+="; Priority=Low";break;case"medium":g+="; Priority=Medium";break;case"high":g+="; Priority=High";break;default:throw new TypeError(`option priority is invalid: ${f.priority}`)}if(f.sameSite)switch(typeof f.sameSite=="string"?f.sameSite.toLowerCase():f.sameSite){case!0:case"strict":g+="; SameSite=Strict";break;case"lax":g+="; SameSite=Lax";break;case"none":g+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${f.sameSite}`)}return g}function u(p){if(p.indexOf("%")===-1)return p;try{return decodeURIComponent(p)}catch{return p}}function h(p){return r.call(p)==="[object Date]"}return pt}Oa();var Rn="popstate";function Ia(i={}){function e(n,r){let{pathname:a,search:l,hash:o}=n.location;return Hi("",{pathname:a,search:l,hash:o},r.state&&r.state.usr||null,r.state&&r.state.key||"default")}function t(n,r){return typeof r=="string"?r:Et(r)}return Da(e,t,null,i)}function V(i,e){if(i===!1||i===null||typeof i>"u")throw new Error(e)}function we(i,e){if(!i){typeof console<"u"&&console.warn(e);try{throw new Error(e)}catch{}}}function Ra(){return Math.random().toString(36).substring(2,10)}function Dn(i,e){return{usr:i.state,key:i.key,idx:e}}function Hi(i,e,t=null,n){return{pathname:typeof i=="string"?i:i.pathname,search:"",hash:"",...typeof e=="string"?ut(e):e,state:t,key:e&&e.key||n||Ra()}}function Et({pathname:i="/",search:e="",hash:t=""}){return e&&e!=="?"&&(i+=e.charAt(0)==="?"?e:"?"+e),t&&t!=="#"&&(i+=t.charAt(0)==="#"?t:"#"+t),i}function ut(i){let e={};if(i){let t=i.indexOf("#");t>=0&&(e.hash=i.substring(t),i=i.substring(0,t));let n=i.indexOf("?");n>=0&&(e.search=i.substring(n),i=i.substring(0,n)),i&&(e.pathname=i)}return e}function Da(i,e,t,n={}){let{window:r=document.defaultView,v5Compat:a=!1}=n,l=r.history,o="POP",c=null,d=u();d==null&&(d=0,l.replaceState({...l.state,idx:d},""));function u(){return(l.state||{idx:null}).idx}function h(){o="POP";let b=u(),g=b==null?null:b-d;d=b,c&&c({action:o,location:v.location,delta:g})}function p(b,g){o="PUSH";let x=Hi(v.location,b,g);d=u()+1;let y=Dn(x,d),w=v.createHref(x);try{l.pushState(y,"",w)}catch(N){if(N instanceof DOMException&&N.name==="DataCloneError")throw N;r.location.assign(w)}a&&c&&c({action:o,location:v.location,delta:1})}function m(b,g){o="REPLACE";let x=Hi(v.location,b,g);d=u();let y=Dn(x,d),w=v.createHref(x);l.replaceState(y,"",w),a&&c&&c({action:o,location:v.location,delta:0})}function f(b){return za(b)}let v={get action(){return o},get location(){return i(r,l)},listen(b){if(c)throw new Error("A history only accepts one active listener");return r.addEventListener(Rn,h),c=b,()=>{r.removeEventListener(Rn,h),c=null}},createHref(b){return e(r,b)},createURL:f,encodeLocation(b){let g=f(b);return{pathname:g.pathname,search:g.search,hash:g.hash}},push:p,replace:m,go(b){return l.go(b)}};return v}function za(i,e=!1){let t="http://localhost";typeof window<"u"&&(t=window.location.origin!=="null"?window.location.origin:window.location.href),V(t,"No window.location.(origin|href) available to create URL");let n=typeof i=="string"?i:Et(i);return n=n.replace(/ $/,"%20"),!e&&n.startsWith("//")&&(n=t+n),new URL(n,t)}function Js(i,e,t="/"){return ja(i,e,t,!1)}function ja(i,e,t,n){let r=typeof e=="string"?ut(e):e,a=Me(r.pathname||"/",t);if(a==null)return null;let l=Qs(i);Fa(l);let o=null;for(let c=0;o==null&&c<l.length;++c){let d=Za(a);o=qa(l[c],d,n)}return o}function Qs(i,e=[],t=[],n=""){let r=(a,l,o)=>{let c={relativePath:o===void 0?a.path||"":o,caseSensitive:a.caseSensitive===!0,childrenIndex:l,route:a};c.relativePath.startsWith("/")&&(V(c.relativePath.startsWith(n),`Absolute route path "${c.relativePath}" nested under path "${n}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),c.relativePath=c.relativePath.slice(n.length));let d=ke([n,c.relativePath]),u=t.concat(c);a.children&&a.children.length>0&&(V(a.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${d}".`),Qs(a.children,e,u,d)),!(a.path==null&&!a.index)&&e.push({path:d,score:Xa(d,a.index),routesMeta:u})};return i.forEach((a,l)=>{var o;if(a.path===""||!((o=a.path)!=null&&o.includes("?")))r(a,l);else for(let c of er(a.path))r(a,l,c)}),e}function er(i){let e=i.split("/");if(e.length===0)return[];let[t,...n]=e,r=t.endsWith("?"),a=t.replace(/\?$/,"");if(n.length===0)return r?[a,""]:[a];let l=er(n.join("/")),o=[];return o.push(...l.map(c=>c===""?a:[a,c].join("/"))),r&&o.push(...l),o.map(c=>i.startsWith("/")&&c===""?"/":c)}function Fa(i){i.sort((e,t)=>e.score!==t.score?t.score-e.score:Ua(e.routesMeta.map(n=>n.childrenIndex),t.routesMeta.map(n=>n.childrenIndex)))}var Ba=/^:[\w-]+$/,$a=3,Ha=2,Ga=1,Va=10,Wa=-2,zn=i=>i==="*";function Xa(i,e){let t=i.split("/"),n=t.length;return t.some(zn)&&(n+=Wa),e&&(n+=Ha),t.filter(r=>!zn(r)).reduce((r,a)=>r+(Ba.test(a)?$a:a===""?Ga:Va),n)}function Ua(i,e){return i.length===e.length&&i.slice(0,-1).every((n,r)=>n===e[r])?i[i.length-1]-e[e.length-1]:0}function qa(i,e,t=!1){let{routesMeta:n}=i,r={},a="/",l=[];for(let o=0;o<n.length;++o){let c=n[o],d=o===n.length-1,u=a==="/"?e:e.slice(a.length)||"/",h=Qt({path:c.relativePath,caseSensitive:c.caseSensitive,end:d},u),p=c.route;if(!h&&d&&t&&!n[n.length-1].route.index&&(h=Qt({path:c.relativePath,caseSensitive:c.caseSensitive,end:!1},u)),!h)return null;Object.assign(r,h.params),l.push({params:r,pathname:ke([a,h.pathname]),pathnameBase:el(ke([a,h.pathnameBase])),route:p}),h.pathnameBase!=="/"&&(a=ke([a,h.pathnameBase]))}return l}function Qt(i,e){typeof i=="string"&&(i={path:i,caseSensitive:!1,end:!0});let[t,n]=Ya(i.path,i.caseSensitive,i.end),r=e.match(t);if(!r)return null;let a=r[0],l=a.replace(/(.)\/+$/,"$1"),o=r.slice(1);return{params:n.reduce((d,{paramName:u,isOptional:h},p)=>{if(u==="*"){let f=o[p]||"";l=a.slice(0,a.length-f.length).replace(/(.)\/+$/,"$1")}const m=o[p];return h&&!m?d[u]=void 0:d[u]=(m||"").replace(/%2F/g,"/"),d},{}),pathname:a,pathnameBase:l,pattern:i}}function Ya(i,e=!1,t=!0){we(i==="*"||!i.endsWith("*")||i.endsWith("/*"),`Route path "${i}" will be treated as if it were "${i.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${i.replace(/\*$/,"/*")}".`);let n=[],r="^"+i.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(l,o,c)=>(n.push({paramName:o,isOptional:c!=null}),c?"/?([^\\/]+)?":"/([^\\/]+)"));return i.endsWith("*")?(n.push({paramName:"*"}),r+=i==="*"||i==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):t?r+="\\/*$":i!==""&&i!=="/"&&(r+="(?:(?=\\/|$))"),[new RegExp(r,e?void 0:"i"),n]}function Za(i){try{return i.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(e){return we(!1,`The URL path "${i}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${e}).`),i}}function Me(i,e){if(e==="/")return i;if(!i.toLowerCase().startsWith(e.toLowerCase()))return null;let t=e.endsWith("/")?e.length-1:e.length,n=i.charAt(t);return n&&n!=="/"?null:i.slice(t)||"/"}function Ka(i,e="/"){let{pathname:t,search:n="",hash:r=""}=typeof i=="string"?ut(i):i;return{pathname:t?t.startsWith("/")?t:Ja(t,e):e,search:tl(n),hash:il(r)}}function Ja(i,e){let t=e.replace(/\/+$/,"").split("/");return i.split("/").forEach(r=>{r===".."?t.length>1&&t.pop():r!=="."&&t.push(r)}),t.length>1?t.join("/"):"/"}function di(i,e,t,n){return`Cannot include a '${i}' character in a manually specified \`to.${e}\` field [${JSON.stringify(n)}]. Please separate it out to the \`to.${t}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function Qa(i){return i.filter((e,t)=>t===0||e.route.path&&e.route.path.length>0)}function tr(i){let e=Qa(i);return e.map((t,n)=>n===e.length-1?t.pathname:t.pathnameBase)}function ir(i,e,t,n=!1){let r;typeof i=="string"?r=ut(i):(r={...i},V(!r.pathname||!r.pathname.includes("?"),di("?","pathname","search",r)),V(!r.pathname||!r.pathname.includes("#"),di("#","pathname","hash",r)),V(!r.search||!r.search.includes("#"),di("#","search","hash",r)));let a=i===""||r.pathname==="",l=a?"/":r.pathname,o;if(l==null)o=t;else{let h=e.length-1;if(!n&&l.startsWith("..")){let p=l.split("/");for(;p[0]==="..";)p.shift(),h-=1;r.pathname=p.join("/")}o=h>=0?e[h]:"/"}let c=Ka(r,o),d=l&&l!=="/"&&l.endsWith("/"),u=(a||l===".")&&t.endsWith("/");return!c.pathname.endsWith("/")&&(d||u)&&(c.pathname+="/"),c}var ke=i=>i.join("/").replace(/\/\/+/g,"/"),el=i=>i.replace(/\/+$/,"").replace(/^\/*/,"/"),tl=i=>!i||i==="?"?"":i.startsWith("?")?i:"?"+i,il=i=>!i||i==="#"?"":i.startsWith("#")?i:"#"+i;function nl(i){return i!=null&&typeof i.status=="number"&&typeof i.statusText=="string"&&typeof i.internal=="boolean"&&"data"in i}var nr=["POST","PUT","PATCH","DELETE"];new Set(nr);var sl=["GET",...nr];new Set(sl);var ht=se(null);ht.displayName="DataRouter";var ai=se(null);ai.displayName="DataRouterState";var sr=se({isTransitioning:!1});sr.displayName="ViewTransition";var rl=se(new Map);rl.displayName="Fetchers";var al=se(null);al.displayName="Await";var Ne=se(null);Ne.displayName="Navigation";var kt=se(null);kt.displayName="Location";var Le=se({outlet:null,matches:[],isDataRoute:!1});Le.displayName="Route";var rn=se(null);rn.displayName="RouteError";function ll(i,{relative:e}={}){V(Mt(),"useHref() may be used only in the context of a <Router> component.");let{basename:t,navigator:n}=B(Ne),{hash:r,pathname:a,search:l}=Lt(i,{relative:e}),o=a;return t!=="/"&&(o=a==="/"?t:ke([t,a])),n.createHref({pathname:o,search:l,hash:r})}function Mt(){return B(kt)!=null}function Ye(){return V(Mt(),"useLocation() may be used only in the context of a <Router> component."),B(kt).location}var rr="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function ar(i){B(Ne).static||Re(i)}function ol(){let{isDataRoute:i}=B(Le);return i?wl():cl()}function cl(){V(Mt(),"useNavigate() may be used only in the context of a <Router> component.");let i=B(ht),{basename:e,navigator:t}=B(Ne),{matches:n}=B(Le),{pathname:r}=Ye(),a=JSON.stringify(tr(n)),l=J(!1);return ar(()=>{l.current=!0}),qe((c,d={})=>{if(we(l.current,rr),!l.current)return;if(typeof c=="number"){t.go(c);return}let u=ir(c,JSON.parse(a),r,d.relative==="path");i==null&&e!=="/"&&(u.pathname=u.pathname==="/"?e:ke([e,u.pathname])),(d.replace?t.replace:t.push)(u,d.state,d)},[e,t,a,r,i])}se(null);function Lt(i,{relative:e}={}){let{matches:t}=B(Le),{pathname:n}=Ye(),r=JSON.stringify(tr(t));return ue(()=>ir(i,JSON.parse(r),n,e==="path"),[i,r,n,e])}function dl(i,e){return lr(i,e)}function lr(i,e,t,n){var g;V(Mt(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:r}=B(Ne),{matches:a}=B(Le),l=a[a.length-1],o=l?l.params:{},c=l?l.pathname:"/",d=l?l.pathnameBase:"/",u=l&&l.route;{let x=u&&u.path||"";or(c,!u||x.endsWith("*")||x.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${c}" (under <Route path="${x}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
Please change the parent <Route path="${x}"> to <Route path="${x==="/"?"*":`${x}/*`}">.`)}let h=Ye(),p;if(e){let x=typeof e=="string"?ut(e):e;V(d==="/"||((g=x.pathname)==null?void 0:g.startsWith(d)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${d}" but pathname "${x.pathname}" was given in the \`location\` prop.`),p=x}else p=h;let m=p.pathname||"/",f=m;if(d!=="/"){let x=d.replace(/^\//,"").split("/");f="/"+m.replace(/^\//,"").split("/").slice(x.length).join("/")}let v=Js(i,{pathname:f});we(u||v!=null,`No routes matched location "${p.pathname}${p.search}${p.hash}" `),we(v==null||v[v.length-1].route.element!==void 0||v[v.length-1].route.Component!==void 0||v[v.length-1].route.lazy!==void 0,`Matched leaf route at location "${p.pathname}${p.search}${p.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let b=fl(v&&v.map(x=>Object.assign({},x,{params:Object.assign({},o,x.params),pathname:ke([d,r.encodeLocation?r.encodeLocation(x.pathname).pathname:x.pathname]),pathnameBase:x.pathnameBase==="/"?d:ke([d,r.encodeLocation?r.encodeLocation(x.pathnameBase).pathname:x.pathnameBase])})),a,t,n);return e&&b?I(kt.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...p},navigationType:"POP"}},b):b}function ul(){let i=yl(),e=nl(i)?`${i.status} ${i.statusText}`:i instanceof Error?i.message:JSON.stringify(i),t=i instanceof Error?i.stack:null,n="rgba(200,200,200, 0.5)",r={padding:"0.5rem",backgroundColor:n},a={padding:"2px 4px",backgroundColor:n},l=null;return console.error("Error handled by React Router default ErrorBoundary:",i),l=I(W,null,I("p",null,"💿 Hey developer 👋"),I("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",I("code",{style:a},"ErrorBoundary")," or"," ",I("code",{style:a},"errorElement")," prop on your route.")),I(W,null,I("h2",null,"Unexpected Application Error!"),I("h3",{style:{fontStyle:"italic"}},e),t?I("pre",{style:r},t):null,l)}var hl=I(ul,null),pl=class extends me{constructor(i){super(i),this.state={location:i.location,revalidation:i.revalidation,error:i.error}}static getDerivedStateFromError(i){return{error:i}}static getDerivedStateFromProps(i,e){return e.location!==i.location||e.revalidation!=="idle"&&i.revalidation==="idle"?{error:i.error,location:i.location,revalidation:i.revalidation}:{error:i.error!==void 0?i.error:e.error,location:e.location,revalidation:i.revalidation||e.revalidation}}componentDidCatch(i,e){console.error("React Router caught the following error during render",i,e)}render(){return this.state.error!==void 0?I(Le.Provider,{value:this.props.routeContext},I(rn.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function ml({routeContext:i,match:e,children:t}){let n=B(ht);return n&&n.static&&n.staticContext&&(e.route.errorElement||e.route.ErrorBoundary)&&(n.staticContext._deepestRenderedBoundaryId=e.route.id),I(Le.Provider,{value:i},t)}function fl(i,e=[],t=null,n=null){if(i==null){if(!t)return null;if(t.errors)i=t.matches;else if(e.length===0&&!t.initialized&&t.matches.length>0)i=t.matches;else return null}let r=i,a=t==null?void 0:t.errors;if(a!=null){let c=r.findIndex(d=>d.route.id&&(a==null?void 0:a[d.route.id])!==void 0);V(c>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(a).join(",")}`),r=r.slice(0,Math.min(r.length,c+1))}let l=!1,o=-1;if(t)for(let c=0;c<r.length;c++){let d=r[c];if((d.route.HydrateFallback||d.route.hydrateFallbackElement)&&(o=c),d.route.id){let{loaderData:u,errors:h}=t,p=d.route.loader&&!u.hasOwnProperty(d.route.id)&&(!h||h[d.route.id]===void 0);if(d.route.lazy||p){l=!0,o>=0?r=r.slice(0,o+1):r=[r[0]];break}}}return r.reduceRight((c,d,u)=>{let h,p=!1,m=null,f=null;t&&(h=a&&d.route.id?a[d.route.id]:void 0,m=d.route.errorElement||hl,l&&(o<0&&u===0?(or("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),p=!0,f=null):o===u&&(p=!0,f=d.route.hydrateFallbackElement||null)));let v=e.concat(r.slice(0,u+1)),b=()=>{let g;return h?g=m:p?g=f:d.route.Component?g=I(d.route.Component,null):d.route.element?g=d.route.element:g=c,I(ml,{match:d,routeContext:{outlet:c,matches:v,isDataRoute:t!=null},children:g})};return t&&(d.route.ErrorBoundary||d.route.errorElement||u===0)?I(pl,{location:t.location,revalidation:t.revalidation,component:m,error:h,children:b(),routeContext:{outlet:null,matches:v,isDataRoute:!0}}):b()},null)}function an(i){return`${i} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function gl(i){let e=B(ht);return V(e,an(i)),e}function vl(i){let e=B(ai);return V(e,an(i)),e}function bl(i){let e=B(Le);return V(e,an(i)),e}function ln(i){let e=bl(i),t=e.matches[e.matches.length-1];return V(t.route.id,`${i} can only be used on routes that contain a unique "id"`),t.route.id}function xl(){return ln("useRouteId")}function yl(){var n;let i=B(rn),e=vl("useRouteError"),t=ln("useRouteError");return i!==void 0?i:(n=e.errors)==null?void 0:n[t]}function wl(){let{router:i}=gl("useNavigate"),e=ln("useNavigate"),t=J(!1);return ar(()=>{t.current=!0}),qe(async(r,a={})=>{we(t.current,rr),t.current&&(typeof r=="number"?i.navigate(r):await i.navigate(r,{fromRouteId:e,...a}))},[i,e])}var jn={};function or(i,e,t){!e&&!jn[i]&&(jn[i]=!0,we(!1,t))}Xs(Nl);function Nl({routes:i,future:e,state:t}){return lr(i,void 0,t,e)}function bt(i){V(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function _l({basename:i="/",children:e=null,location:t,navigationType:n="POP",navigator:r,static:a=!1}){V(!Mt(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let l=i.replace(/^\/*/,"/"),o=ue(()=>({basename:l,navigator:r,static:a,future:{}}),[l,r,a]);typeof t=="string"&&(t=ut(t));let{pathname:c="/",search:d="",hash:u="",state:h=null,key:p="default"}=t,m=ue(()=>{let f=Me(c,l);return f==null?null:{location:{pathname:f,search:d,hash:u,state:h,key:p},navigationType:n}},[l,c,d,u,h,p,n]);return we(m!=null,`<Router basename="${l}"> is not able to match the URL "${c}${d}${u}" because it does not start with the basename, so the <Router> won't render anything.`),m==null?null:I(Ne.Provider,{value:o},I(kt.Provider,{children:e,value:m}))}function Sl({children:i,location:e}){return dl(Gi(i),e)}function Gi(i,e=[]){let t=[];return Us.forEach(i,(n,r)=>{if(!Ct(n))return;let a=[...e,r];if(n.type===W){t.push.apply(t,Gi(n.props.children,a));return}V(n.type===bt,`[${typeof n.type=="string"?n.type:n.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),V(!n.props.index||!n.props.children,"An index route cannot have child routes.");let l={id:n.props.id||a.join("-"),caseSensitive:n.props.caseSensitive,element:n.props.element,Component:n.props.Component,index:n.props.index,path:n.props.path,loader:n.props.loader,action:n.props.action,hydrateFallbackElement:n.props.hydrateFallbackElement,HydrateFallback:n.props.HydrateFallback,errorElement:n.props.errorElement,ErrorBoundary:n.props.ErrorBoundary,hasErrorBoundary:n.props.hasErrorBoundary===!0||n.props.ErrorBoundary!=null||n.props.errorElement!=null,shouldRevalidate:n.props.shouldRevalidate,handle:n.props.handle,lazy:n.props.lazy};n.props.children&&(l.children=Gi(n.props.children,a)),t.push(l)}),t}var Yt="get",Zt="application/x-www-form-urlencoded";function li(i){return i!=null&&typeof i.tagName=="string"}function El(i){return li(i)&&i.tagName.toLowerCase()==="button"}function Tl(i){return li(i)&&i.tagName.toLowerCase()==="form"}function Pl(i){return li(i)&&i.tagName.toLowerCase()==="input"}function Cl(i){return!!(i.metaKey||i.altKey||i.ctrlKey||i.shiftKey)}function kl(i,e){return i.button===0&&(!e||e==="_self")&&!Cl(i)}var Ot=null;function Ml(){if(Ot===null)try{new FormData(document.createElement("form"),0),Ot=!1}catch{Ot=!0}return Ot}var Ll=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function ui(i){return i!=null&&!Ll.has(i)?(we(!1,`"${i}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Zt}"`),null):i}function Al(i,e){let t,n,r,a,l;if(Tl(i)){let o=i.getAttribute("action");n=o?Me(o,e):null,t=i.getAttribute("method")||Yt,r=ui(i.getAttribute("enctype"))||Zt,a=new FormData(i)}else if(El(i)||Pl(i)&&(i.type==="submit"||i.type==="image")){let o=i.form;if(o==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let c=i.getAttribute("formaction")||o.getAttribute("action");if(n=c?Me(c,e):null,t=i.getAttribute("formmethod")||o.getAttribute("method")||Yt,r=ui(i.getAttribute("formenctype"))||ui(o.getAttribute("enctype"))||Zt,a=new FormData(o,i),!Ml()){let{name:d,type:u,value:h}=i;if(u==="image"){let p=d?`${d}.`:"";a.append(`${p}x`,"0"),a.append(`${p}y`,"0")}else d&&a.append(d,h)}}else{if(li(i))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');t=Yt,n=null,r=Zt,l=i}return a&&r==="text/plain"&&(l=a,a=void 0),{action:n,method:t.toLowerCase(),encType:r,formData:a,body:l}}function on(i,e){if(i===!1||i===null||typeof i>"u")throw new Error(e)}async function Ol(i,e){if(i.id in e)return e[i.id];try{let t=await import(i.module);return e[i.id]=t,t}catch(t){return console.error(`Error loading route module \`${i.module}\`, reloading page...`),console.error(t),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function Il(i){return i==null?!1:i.href==null?i.rel==="preload"&&typeof i.imageSrcSet=="string"&&typeof i.imageSizes=="string":typeof i.rel=="string"&&typeof i.href=="string"}async function Rl(i,e,t){let n=await Promise.all(i.map(async r=>{let a=e.routes[r.route.id];if(a){let l=await Ol(a,t);return l.links?l.links():[]}return[]}));return Fl(n.flat(1).filter(Il).filter(r=>r.rel==="stylesheet"||r.rel==="preload").map(r=>r.rel==="stylesheet"?{...r,rel:"prefetch",as:"style"}:{...r,rel:"prefetch"}))}function Fn(i,e,t,n,r,a){let l=(c,d)=>t[d]?c.route.id!==t[d].route.id:!0,o=(c,d)=>{var u;return t[d].pathname!==c.pathname||((u=t[d].route.path)==null?void 0:u.endsWith("*"))&&t[d].params["*"]!==c.params["*"]};return a==="assets"?e.filter((c,d)=>l(c,d)||o(c,d)):a==="data"?e.filter((c,d)=>{var h;let u=n.routes[c.route.id];if(!u||!u.hasLoader)return!1;if(l(c,d)||o(c,d))return!0;if(c.route.shouldRevalidate){let p=c.route.shouldRevalidate({currentUrl:new URL(r.pathname+r.search+r.hash,window.origin),currentParams:((h=t[0])==null?void 0:h.params)||{},nextUrl:new URL(i,window.origin),nextParams:c.params,defaultShouldRevalidate:!0});if(typeof p=="boolean")return p}return!0}):[]}function Dl(i,e,{includeHydrateFallback:t}={}){return zl(i.map(n=>{let r=e.routes[n.route.id];if(!r)return[];let a=[r.module];return r.clientActionModule&&(a=a.concat(r.clientActionModule)),r.clientLoaderModule&&(a=a.concat(r.clientLoaderModule)),t&&r.hydrateFallbackModule&&(a=a.concat(r.hydrateFallbackModule)),r.imports&&(a=a.concat(r.imports)),a}).flat(1))}function zl(i){return[...new Set(i)]}function jl(i){let e={},t=Object.keys(i).sort();for(let n of t)e[n]=i[n];return e}function Fl(i,e){let t=new Set;return new Set(e),i.reduce((n,r)=>{let a=JSON.stringify(jl(r));return t.has(a)||(t.add(a),n.push({key:a,link:r})),n},[])}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var Bl=new Set([100,101,204,205]);function $l(i,e){let t=typeof i=="string"?new URL(i,typeof window>"u"?"server://singlefetch/":window.location.origin):i;return t.pathname==="/"?t.pathname="_root.data":e&&Me(t.pathname,e)==="/"?t.pathname=`${e.replace(/\/$/,"")}/_root.data`:t.pathname=`${t.pathname.replace(/\/$/,"")}.data`,t}function cr(){let i=B(ht);return on(i,"You must render this element inside a <DataRouterContext.Provider> element"),i}function Hl(){let i=B(ai);return on(i,"You must render this element inside a <DataRouterStateContext.Provider> element"),i}var cn=se(void 0);cn.displayName="FrameworkContext";function dr(){let i=B(cn);return on(i,"You must render this element inside a <HydratedRouter> element"),i}function Gl(i,e){let t=B(cn),[n,r]=Q(!1),[a,l]=Q(!1),{onFocus:o,onBlur:c,onMouseEnter:d,onMouseLeave:u,onTouchStart:h}=e,p=J(null);fe(()=>{if(i==="render"&&l(!0),i==="viewport"){let v=g=>{g.forEach(x=>{l(x.isIntersecting)})},b=new IntersectionObserver(v,{threshold:.5});return p.current&&b.observe(p.current),()=>{b.disconnect()}}},[i]),fe(()=>{if(n){let v=setTimeout(()=>{l(!0)},100);return()=>{clearTimeout(v)}}},[n]);let m=()=>{r(!0)},f=()=>{r(!1),l(!1)};return t?i!=="intent"?[a,p,{}]:[a,p,{onFocus:mt(o,m),onBlur:mt(c,f),onMouseEnter:mt(d,m),onMouseLeave:mt(u,f),onTouchStart:mt(h,m)}]:[!1,p,{}]}function mt(i,e){return t=>{i&&i(t),t.defaultPrevented||e(t)}}function Vl({page:i,...e}){let{router:t}=cr(),n=ue(()=>Js(t.routes,i,t.basename),[t.routes,i,t.basename]);return n?I(Xl,{page:i,matches:n,...e}):null}function Wl(i){let{manifest:e,routeModules:t}=dr(),[n,r]=Q([]);return fe(()=>{let a=!1;return Rl(i,e,t).then(l=>{a||r(l)}),()=>{a=!0}},[i,e,t]),n}function Xl({page:i,matches:e,...t}){let n=Ye(),{manifest:r,routeModules:a}=dr(),{basename:l}=cr(),{loaderData:o,matches:c}=Hl(),d=ue(()=>Fn(i,e,c,r,n,"data"),[i,e,c,r,n]),u=ue(()=>Fn(i,e,c,r,n,"assets"),[i,e,c,r,n]),h=ue(()=>{if(i===n.pathname+n.search+n.hash)return[];let f=new Set,v=!1;if(e.forEach(g=>{var y;let x=r.routes[g.route.id];!x||!x.hasLoader||(!d.some(w=>w.route.id===g.route.id)&&g.route.id in o&&((y=a[g.route.id])!=null&&y.shouldRevalidate)||x.hasClientLoader?v=!0:f.add(g.route.id))}),f.size===0)return[];let b=$l(i,l);return v&&f.size>0&&b.searchParams.set("_routes",e.filter(g=>f.has(g.route.id)).map(g=>g.route.id).join(",")),[b.pathname+b.search]},[l,o,n,r,d,e,i,a]),p=ue(()=>Dl(u,r),[u,r]),m=Wl(u);return I(W,null,h.map(f=>I("link",{key:f,rel:"prefetch",as:"fetch",href:f,...t})),p.map(f=>I("link",{key:f,rel:"modulepreload",href:f,...t})),m.map(({key:f,link:v})=>I("link",{key:f,...v})))}function Ul(...i){return e=>{i.forEach(t=>{typeof t=="function"?t(e):t!=null&&(t.current=e)})}}var ur=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{ur&&(window.__reactRouterVersion="7.6.1")}catch{}function ql({basename:i,children:e,window:t}){let n=J();n.current==null&&(n.current=Ia({window:t,v5Compat:!0}));let r=n.current,[a,l]=Q({action:r.action,location:r.location}),o=qe(c=>{nn(()=>l(c))},[l]);return Re(()=>r.listen(o),[r,o]),I(_l,{basename:i,children:e,location:a.location,navigationType:a.action,navigator:r})}var hr=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,pr=dt(function({onClick:e,discover:t="render",prefetch:n="none",relative:r,reloadDocument:a,replace:l,state:o,target:c,to:d,preventScrollReset:u,viewTransition:h,...p},m){let{basename:f}=B(Ne),v=typeof d=="string"&&hr.test(d),b,g=!1;if(typeof d=="string"&&v&&(b=d,ur))try{let S=new URL(window.location.href),T=d.startsWith("//")?new URL(S.protocol+d):new URL(d),C=Me(T.pathname,f);T.origin===S.origin&&C!=null?d=C+T.search+T.hash:g=!0}catch{we(!1,`<Link to="${d}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let x=ll(d,{relative:r}),[y,w,N]=Gl(n,p),k=Jl(d,{replace:l,state:o,target:c,preventScrollReset:u,relative:r,viewTransition:h});function E(S){e&&e(S),S.defaultPrevented||k(S)}let _=I("a",{...p,...N,href:b||x,onClick:g||a?e:E,ref:Ul(m,w),target:c,"data-discover":!v&&t==="render"?"true":void 0});return y&&!v?I(W,null,_,I(Vl,{page:x})):_});pr.displayName="Link";var Yl=dt(function({"aria-current":e="page",caseSensitive:t=!1,className:n="",end:r=!1,style:a,to:l,viewTransition:o,children:c,...d},u){let h=Lt(l,{relative:d.relative}),p=Ye(),m=B(ai),{navigator:f,basename:v}=B(Ne),b=m!=null&&no(h)&&o===!0,g=f.encodeLocation?f.encodeLocation(h).pathname:h.pathname,x=p.pathname,y=m&&m.navigation&&m.navigation.location?m.navigation.location.pathname:null;t||(x=x.toLowerCase(),y=y?y.toLowerCase():null,g=g.toLowerCase()),y&&v&&(y=Me(y,v)||y);const w=g!=="/"&&g.endsWith("/")?g.length-1:g.length;let N=x===g||!r&&x.startsWith(g)&&x.charAt(w)==="/",k=y!=null&&(y===g||!r&&y.startsWith(g)&&y.charAt(g.length)==="/"),E={isActive:N,isPending:k,isTransitioning:b},_=N?e:void 0,S;typeof n=="function"?S=n(E):S=[n,N?"active":null,k?"pending":null,b?"transitioning":null].filter(Boolean).join(" ");let T=typeof a=="function"?a(E):a;return I(pr,{...d,"aria-current":_,className:S,ref:u,style:T,to:l,viewTransition:o},typeof c=="function"?c(E):c)});Yl.displayName="NavLink";var Zl=dt(({discover:i="render",fetcherKey:e,navigate:t,reloadDocument:n,replace:r,state:a,method:l=Yt,action:o,onSubmit:c,relative:d,preventScrollReset:u,viewTransition:h,...p},m)=>{let f=to(),v=io(o,{relative:d}),b=l.toLowerCase()==="get"?"get":"post",g=typeof o=="string"&&hr.test(o);return I("form",{ref:m,method:b,action:v,onSubmit:n?c:y=>{if(c&&c(y),y.defaultPrevented)return;y.preventDefault();let w=y.nativeEvent.submitter,N=(w==null?void 0:w.getAttribute("formmethod"))||l;f(w||y.currentTarget,{fetcherKey:e,method:N,navigate:t,replace:r,state:a,relative:d,preventScrollReset:u,viewTransition:h})},...p,"data-discover":!g&&i==="render"?"true":void 0})});Zl.displayName="Form";function Kl(i){return`${i} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function mr(i){let e=B(ht);return V(e,Kl(i)),e}function Jl(i,{target:e,replace:t,state:n,preventScrollReset:r,relative:a,viewTransition:l}={}){let o=ol(),c=Ye(),d=Lt(i,{relative:a});return qe(u=>{if(kl(u,e)){u.preventDefault();let h=t!==void 0?t:Et(c)===Et(d);o(i,{replace:h,state:n,preventScrollReset:r,relative:a,viewTransition:l})}},[c,o,d,t,n,e,i,r,a,l])}var Ql=0,eo=()=>`__${String(++Ql)}__`;function to(){let{router:i}=mr("useSubmit"),{basename:e}=B(Ne),t=xl();return qe(async(n,r={})=>{let{action:a,method:l,encType:o,formData:c,body:d}=Al(n,e);if(r.navigate===!1){let u=r.fetcherKey||eo();await i.fetch(u,t,r.action||a,{preventScrollReset:r.preventScrollReset,formData:c,body:d,formMethod:r.method||l,formEncType:r.encType||o,flushSync:r.flushSync})}else await i.navigate(r.action||a,{preventScrollReset:r.preventScrollReset,formData:c,body:d,formMethod:r.method||l,formEncType:r.encType||o,replace:r.replace,state:r.state,fromRouteId:t,flushSync:r.flushSync,viewTransition:r.viewTransition})},[i,e,t])}function io(i,{relative:e}={}){let{basename:t}=B(Ne),n=B(Le);V(n,"useFormAction must be used inside a RouteContext");let[r]=n.matches.slice(-1),a={...Lt(i||".",{relative:e})},l=Ye();if(i==null){a.search=l.search;let o=new URLSearchParams(a.search),c=o.getAll("index");if(c.some(u=>u==="")){o.delete("index"),c.filter(h=>h).forEach(h=>o.append("index",h));let u=o.toString();a.search=u?`?${u}`:""}}return(!i||i===".")&&r.route.index&&(a.search=a.search?a.search.replace(/^\?/,"?index&"):"?index"),t!=="/"&&(a.pathname=a.pathname==="/"?t:ke([t,a.pathname])),Et(a)}function no(i,e={}){let t=B(sr);V(t!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:n}=mr("useViewTransitionState"),r=Lt(i,{relative:e.relative});if(!t.isTransitioning)return!1;let a=Me(t.currentLocation.pathname,n)||t.currentLocation.pathname,l=Me(t.nextLocation.pathname,n)||t.nextLocation.pathname;return Qt(r.pathname,l)!=null||Qt(r.pathname,a)!=null}[...Bl];function Bn(i){return i!==null&&typeof i=="object"&&"constructor"in i&&i.constructor===Object}function dn(i,e){i===void 0&&(i={}),e===void 0&&(e={});const t=["__proto__","constructor","prototype"];Object.keys(e).filter(n=>t.indexOf(n)<0).forEach(n=>{typeof i[n]>"u"?i[n]=e[n]:Bn(e[n])&&Bn(i[n])&&Object.keys(e[n]).length>0&&dn(i[n],e[n])})}const fr={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 De(){const i=typeof document<"u"?document:{};return dn(i,fr),i}const so={document:fr,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(i){return typeof setTimeout>"u"?(i(),null):setTimeout(i,0)},cancelAnimationFrame(i){typeof setTimeout>"u"||clearTimeout(i)}};function te(){const i=typeof window<"u"?window:{};return dn(i,so),i}function ro(i){return i===void 0&&(i=""),i.trim().split(" ").filter(e=>!!e.trim())}function ao(i){const e=i;Object.keys(e).forEach(t=>{try{e[t]=null}catch{}try{delete e[t]}catch{}})}function Vi(i,e){return e===void 0&&(e=0),setTimeout(i,e)}function Ve(){return Date.now()}function lo(i){const e=te();let t;return e.getComputedStyle&&(t=e.getComputedStyle(i,null)),!t&&i.currentStyle&&(t=i.currentStyle),t||(t=i.style),t}function oo(i,e){e===void 0&&(e="x");const t=te();let n,r,a;const l=lo(i);return t.WebKitCSSMatrix?(r=l.transform||l.webkitTransform,r.split(",").length>6&&(r=r.split(", ").map(o=>o.replace(",",".")).join(", ")),a=new t.WebKitCSSMatrix(r==="none"?"":r)):(a=l.MozTransform||l.OTransform||l.MsTransform||l.msTransform||l.transform||l.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),n=a.toString().split(",")),e==="x"&&(t.WebKitCSSMatrix?r=a.m41:n.length===16?r=parseFloat(n[12]):r=parseFloat(n[4])),e==="y"&&(t.WebKitCSSMatrix?r=a.m42:n.length===16?r=parseFloat(n[13]):r=parseFloat(n[5])),r||0}function xt(i){return typeof i=="object"&&i!==null&&i.constructor&&Object.prototype.toString.call(i).slice(8,-1)==="Object"}function co(i){return typeof window<"u"&&typeof window.HTMLElement<"u"?i instanceof HTMLElement:i&&(i.nodeType===1||i.nodeType===11)}function ae(){const i=Object(arguments.length<=0?void 0:arguments[0]),e=["__proto__","constructor","prototype"];for(let t=1;t<arguments.length;t+=1){const n=t<0||arguments.length<=t?void 0:arguments[t];if(n!=null&&!co(n)){const r=Object.keys(Object(n)).filter(a=>e.indexOf(a)<0);for(let a=0,l=r.length;a<l;a+=1){const o=r[a],c=Object.getOwnPropertyDescriptor(n,o);c!==void 0&&c.enumerable&&(xt(i[o])&&xt(n[o])?n[o].__swiper__?i[o]=n[o]:ae(i[o],n[o]):!xt(i[o])&&xt(n[o])?(i[o]={},n[o].__swiper__?i[o]=n[o]:ae(i[o],n[o])):i[o]=n[o])}}}return i}function It(i,e,t){i.style.setProperty(e,t)}function gr(i){let{swiper:e,targetPosition:t,side:n}=i;const r=te(),a=-e.translate;let l=null,o;const c=e.params.speed;e.wrapperEl.style.scrollSnapType="none",r.cancelAnimationFrame(e.cssModeFrameID);const d=t>a?"next":"prev",u=(p,m)=>d==="next"&&p>=m||d==="prev"&&p<=m,h=()=>{o=new Date().getTime(),l===null&&(l=o);const p=Math.max(Math.min((o-l)/c,1),0),m=.5-Math.cos(p*Math.PI)/2;let f=a+m*(t-a);if(u(f,t)&&(f=t),e.wrapperEl.scrollTo({[n]:f}),u(f,t)){e.wrapperEl.style.overflow="hidden",e.wrapperEl.style.scrollSnapType="",setTimeout(()=>{e.wrapperEl.style.overflow="",e.wrapperEl.scrollTo({[n]:f})}),r.cancelAnimationFrame(e.cssModeFrameID);return}e.cssModeFrameID=r.requestAnimationFrame(h)};h()}function pe(i,e){e===void 0&&(e="");const t=te(),n=[...i.children];return t.HTMLSlotElement&&i instanceof HTMLSlotElement&&n.push(...i.assignedElements()),e?n.filter(r=>r.matches(e)):n}function uo(i,e){const t=[e];for(;t.length>0;){const n=t.shift();if(i===n)return!0;t.push(...n.children,...n.shadowRoot?n.shadowRoot.children:[],...n.assignedElements?n.assignedElements():[])}}function ho(i,e){const t=te();let n=e.contains(i);return!n&&t.HTMLSlotElement&&e instanceof HTMLSlotElement&&(n=[...e.assignedElements()].includes(i),n||(n=uo(i,e))),n}function ei(i){try{console.warn(i);return}catch{}}function ti(i,e){e===void 0&&(e=[]);const t=document.createElement(i);return t.classList.add(...Array.isArray(e)?e:ro(e)),t}function po(i,e){const t=[];for(;i.previousElementSibling;){const n=i.previousElementSibling;e?n.matches(e)&&t.push(n):t.push(n),i=n}return t}function mo(i,e){const t=[];for(;i.nextElementSibling;){const n=i.nextElementSibling;e?n.matches(e)&&t.push(n):t.push(n),i=n}return t}function Oe(i,e){return te().getComputedStyle(i,null).getPropertyValue(e)}function $n(i){let e=i,t;if(e){for(t=0;(e=e.previousSibling)!==null;)e.nodeType===1&&(t+=1);return t}}function fo(i,e){const t=[];let n=i.parentElement;for(;n;)t.push(n),n=n.parentElement;return t}function hi(i,e){function t(n){n.target===i&&(e.call(i,n),i.removeEventListener("transitionend",t))}e&&i.addEventListener("transitionend",t)}function Hn(i,e,t){const n=te();return i[e==="width"?"offsetWidth":"offsetHeight"]+parseFloat(n.getComputedStyle(i,null).getPropertyValue(e==="width"?"margin-right":"margin-top"))+parseFloat(n.getComputedStyle(i,null).getPropertyValue(e==="width"?"margin-left":"margin-bottom"))}function _e(i){return(Array.isArray(i)?i:[i]).filter(e=>!!e)}let pi;function go(){const i=te(),e=De();return{smoothScroll:e.documentElement&&e.documentElement.style&&"scrollBehavior"in e.documentElement.style,touch:!!("ontouchstart"in i||i.DocumentTouch&&e instanceof i.DocumentTouch)}}function vr(){return pi||(pi=go()),pi}let mi;function vo(i){let{userAgent:e}=i===void 0?{}:i;const t=vr(),n=te(),r=n.navigator.platform,a=e||n.navigator.userAgent,l={ios:!1,android:!1},o=n.screen.width,c=n.screen.height,d=a.match(/(Android);?[\s\/]+([\d.]+)?/);let u=a.match(/(iPad).*OS\s([\d_]+)/);const h=a.match(/(iPod)(.*OS\s([\d_]+))?/),p=!u&&a.match(/(iPhone\sOS|iOS)\s([\d_]+)/),m=r==="Win32";let f=r==="MacIntel";const v=["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"];return!u&&f&&t.touch&&v.indexOf(`${o}x${c}`)>=0&&(u=a.match(/(Version)\/([\d.]+)/),u||(u=[0,1,"13_0_0"]),f=!1),d&&!m&&(l.os="android",l.android=!0),(u||p||h)&&(l.os="ios",l.ios=!0),l}function br(i){return i===void 0&&(i={}),mi||(mi=vo(i)),mi}let fi;function bo(){const i=te(),e=br();let t=!1;function n(){const o=i.navigator.userAgent.toLowerCase();return o.indexOf("safari")>=0&&o.indexOf("chrome")<0&&o.indexOf("android")<0}if(n()){const o=String(i.navigator.userAgent);if(o.includes("Version/")){const[c,d]=o.split("Version/")[1].split(" ")[0].split(".").map(u=>Number(u));t=c<16||c===16&&d<2}}const r=/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(i.navigator.userAgent),a=n(),l=a||r&&e.ios;return{isSafari:t||a,needPerspectiveFix:t,need3dFix:l,isWebView:r}}function xr(){return fi||(fi=bo()),fi}function xo(i){let{swiper:e,on:t,emit:n}=i;const r=te();let a=null,l=null;const o=()=>{!e||e.destroyed||!e.initialized||(n("beforeResize"),n("resize"))},c=()=>{!e||e.destroyed||!e.initialized||(a=new ResizeObserver(h=>{l=r.requestAnimationFrame(()=>{const{width:p,height:m}=e;let f=p,v=m;h.forEach(b=>{let{contentBoxSize:g,contentRect:x,target:y}=b;y&&y!==e.el||(f=x?x.width:(g[0]||g).inlineSize,v=x?x.height:(g[0]||g).blockSize)}),(f!==p||v!==m)&&o()})}),a.observe(e.el))},d=()=>{l&&r.cancelAnimationFrame(l),a&&a.unobserve&&e.el&&(a.unobserve(e.el),a=null)},u=()=>{!e||e.destroyed||!e.initialized||n("orientationchange")};t("init",()=>{if(e.params.resizeObserver&&typeof r.ResizeObserver<"u"){c();return}r.addEventListener("resize",o),r.addEventListener("orientationchange",u)}),t("destroy",()=>{d(),r.removeEventListener("resize",o),r.removeEventListener("orientationchange",u)})}function yo(i){let{swiper:e,extendParams:t,on:n,emit:r}=i;const a=[],l=te(),o=function(u,h){h===void 0&&(h={});const p=l.MutationObserver||l.WebkitMutationObserver,m=new p(f=>{if(e.__preventObserver__)return;if(f.length===1){r("observerUpdate",f[0]);return}const v=function(){r("observerUpdate",f[0])};l.requestAnimationFrame?l.requestAnimationFrame(v):l.setTimeout(v,0)});m.observe(u,{attributes:typeof h.attributes>"u"?!0:h.attributes,childList:e.isElement||(typeof h.childList>"u"?!0:h).childList,characterData:typeof h.characterData>"u"?!0:h.characterData}),a.push(m)},c=()=>{if(e.params.observer){if(e.params.observeParents){const u=fo(e.hostEl);for(let h=0;h<u.length;h+=1)o(u[h])}o(e.hostEl,{childList:e.params.observeSlideChildren}),o(e.wrapperEl,{attributes:!1})}},d=()=>{a.forEach(u=>{u.disconnect()}),a.splice(0,a.length)};t({observer:!1,observeParents:!1,observeSlideChildren:!1}),n("init",c),n("destroy",d)}var wo={on(i,e,t){const n=this;if(!n.eventsListeners||n.destroyed||typeof e!="function")return n;const r=t?"unshift":"push";return i.split(" ").forEach(a=>{n.eventsListeners[a]||(n.eventsListeners[a]=[]),n.eventsListeners[a][r](e)}),n},once(i,e,t){const n=this;if(!n.eventsListeners||n.destroyed||typeof e!="function")return n;function r(){n.off(i,r),r.__emitterProxy&&delete r.__emitterProxy;for(var a=arguments.length,l=new Array(a),o=0;o<a;o++)l[o]=arguments[o];e.apply(n,l)}return r.__emitterProxy=e,n.on(i,r,t)},onAny(i,e){const t=this;if(!t.eventsListeners||t.destroyed||typeof i!="function")return t;const n=e?"unshift":"push";return t.eventsAnyListeners.indexOf(i)<0&&t.eventsAnyListeners[n](i),t},offAny(i){const e=this;if(!e.eventsListeners||e.destroyed||!e.eventsAnyListeners)return e;const t=e.eventsAnyListeners.indexOf(i);return t>=0&&e.eventsAnyListeners.splice(t,1),e},off(i,e){const t=this;return!t.eventsListeners||t.destroyed||!t.eventsListeners||i.split(" ").forEach(n=>{typeof e>"u"?t.eventsListeners[n]=[]:t.eventsListeners[n]&&t.eventsListeners[n].forEach((r,a)=>{(r===e||r.__emitterProxy&&r.__emitterProxy===e)&&t.eventsListeners[n].splice(a,1)})}),t},emit(){const i=this;if(!i.eventsListeners||i.destroyed||!i.eventsListeners)return i;let e,t,n;for(var r=arguments.length,a=new Array(r),l=0;l<r;l++)a[l]=arguments[l];return typeof a[0]=="string"||Array.isArray(a[0])?(e=a[0],t=a.slice(1,a.length),n=i):(e=a[0].events,t=a[0].data,n=a[0].context||i),t.unshift(n),(Array.isArray(e)?e:e.split(" ")).forEach(c=>{i.eventsAnyListeners&&i.eventsAnyListeners.length&&i.eventsAnyListeners.forEach(d=>{d.apply(n,[c,...t])}),i.eventsListeners&&i.eventsListeners[c]&&i.eventsListeners[c].forEach(d=>{d.apply(n,t)})}),i}};function No(){const i=this;let e,t;const n=i.el;typeof i.params.width<"u"&&i.params.width!==null?e=i.params.width:e=n.clientWidth,typeof i.params.height<"u"&&i.params.height!==null?t=i.params.height:t=n.clientHeight,!(e===0&&i.isHorizontal()||t===0&&i.isVertical())&&(e=e-parseInt(Oe(n,"padding-left")||0,10)-parseInt(Oe(n,"padding-right")||0,10),t=t-parseInt(Oe(n,"padding-top")||0,10)-parseInt(Oe(n,"padding-bottom")||0,10),Number.isNaN(e)&&(e=0),Number.isNaN(t)&&(t=0),Object.assign(i,{width:e,height:t,size:i.isHorizontal()?e:t}))}function _o(){const i=this;function e(T,C){return parseFloat(T.getPropertyValue(i.getDirectionLabel(C))||0)}const t=i.params,{wrapperEl:n,slidesEl:r,size:a,rtlTranslate:l,wrongRTL:o}=i,c=i.virtual&&t.virtual.enabled,d=c?i.virtual.slides.length:i.slides.length,u=pe(r,`.${i.params.slideClass}, swiper-slide`),h=c?i.virtual.slides.length:u.length;let p=[];const m=[],f=[];let v=t.slidesOffsetBefore;typeof v=="function"&&(v=t.slidesOffsetBefore.call(i));let b=t.slidesOffsetAfter;typeof b=="function"&&(b=t.slidesOffsetAfter.call(i));const g=i.snapGrid.length,x=i.slidesGrid.length;let y=t.spaceBetween,w=-v,N=0,k=0;if(typeof a>"u")return;typeof y=="string"&&y.indexOf("%")>=0?y=parseFloat(y.replace("%",""))/100*a:typeof y=="string"&&(y=parseFloat(y)),i.virtualSize=-y,u.forEach(T=>{l?T.style.marginLeft="":T.style.marginRight="",T.style.marginBottom="",T.style.marginTop=""}),t.centeredSlides&&t.cssMode&&(It(n,"--swiper-centered-offset-before",""),It(n,"--swiper-centered-offset-after",""));const E=t.grid&&t.grid.rows>1&&i.grid;E?i.grid.initSlides(u):i.grid&&i.grid.unsetSlides();let _;const S=t.slidesPerView==="auto"&&t.breakpoints&&Object.keys(t.breakpoints).filter(T=>typeof t.breakpoints[T].slidesPerView<"u").length>0;for(let T=0;T<h;T+=1){_=0;let C;if(u[T]&&(C=u[T]),E&&i.grid.updateSlide(T,C,u),!(u[T]&&Oe(C,"display")==="none")){if(t.slidesPerView==="auto"){S&&(u[T].style[i.getDirectionLabel("width")]="");const L=getComputedStyle(C),O=C.style.transform,X=C.style.webkitTransform;if(O&&(C.style.transform="none"),X&&(C.style.webkitTransform="none"),t.roundLengths)_=i.isHorizontal()?Hn(C,"width"):Hn(C,"height");else{const re=e(L,"width"),R=e(L,"padding-left"),U=e(L,"padding-right"),Z=e(L,"margin-left"),$=e(L,"margin-right"),he=L.getPropertyValue("box-sizing");if(he&&he==="border-box")_=re+Z+$;else{const{clientWidth:Ur,offsetWidth:qr}=C;_=re+R+U+Z+$+(qr-Ur)}}O&&(C.style.transform=O),X&&(C.style.webkitTransform=X),t.roundLengths&&(_=Math.floor(_))}else _=(a-(t.slidesPerView-1)*y)/t.slidesPerView,t.roundLengths&&(_=Math.floor(_)),u[T]&&(u[T].style[i.getDirectionLabel("width")]=`${_}px`);u[T]&&(u[T].swiperSlideSize=_),f.push(_),t.centeredSlides?(w=w+_/2+N/2+y,N===0&&T!==0&&(w=w-a/2-y),T===0&&(w=w-a/2-y),Math.abs(w)<1/1e3&&(w=0),t.roundLengths&&(w=Math.floor(w)),k%t.slidesPerGroup===0&&p.push(w),m.push(w)):(t.roundLengths&&(w=Math.floor(w)),(k-Math.min(i.params.slidesPerGroupSkip,k))%i.params.slidesPerGroup===0&&p.push(w),m.push(w),w=w+_+y),i.virtualSize+=_+y,N=_,k+=1}}if(i.virtualSize=Math.max(i.virtualSize,a)+b,l&&o&&(t.effect==="slide"||t.effect==="coverflow")&&(n.style.width=`${i.virtualSize+y}px`),t.setWrapperSize&&(n.style[i.getDirectionLabel("width")]=`${i.virtualSize+y}px`),E&&i.grid.updateWrapperSize(_,p),!t.centeredSlides){const T=[];for(let C=0;C<p.length;C+=1){let L=p[C];t.roundLengths&&(L=Math.floor(L)),p[C]<=i.virtualSize-a&&T.push(L)}p=T,Math.floor(i.virtualSize-a)-Math.floor(p[p.length-1])>1&&p.push(i.virtualSize-a)}if(c&&t.loop){const T=f[0]+y;if(t.slidesPerGroup>1){const C=Math.ceil((i.virtual.slidesBefore+i.virtual.slidesAfter)/t.slidesPerGroup),L=T*t.slidesPerGroup;for(let O=0;O<C;O+=1)p.push(p[p.length-1]+L)}for(let C=0;C<i.virtual.slidesBefore+i.virtual.slidesAfter;C+=1)t.slidesPerGroup===1&&p.push(p[p.length-1]+T),m.push(m[m.length-1]+T),i.virtualSize+=T}if(p.length===0&&(p=[0]),y!==0){const T=i.isHorizontal()&&l?"marginLeft":i.getDirectionLabel("marginRight");u.filter((C,L)=>!t.cssMode||t.loop?!0:L!==u.length-1).forEach(C=>{C.style[T]=`${y}px`})}if(t.centeredSlides&&t.centeredSlidesBounds){let T=0;f.forEach(L=>{T+=L+(y||0)}),T-=y;const C=T>a?T-a:0;p=p.map(L=>L<=0?-v:L>C?C+b:L)}if(t.centerInsufficientSlides){let T=0;f.forEach(L=>{T+=L+(y||0)}),T-=y;const C=(t.slidesOffsetBefore||0)+(t.slidesOffsetAfter||0);if(T+C<a){const L=(a-T-C)/2;p.forEach((O,X)=>{p[X]=O-L}),m.forEach((O,X)=>{m[X]=O+L})}}if(Object.assign(i,{slides:u,snapGrid:p,slidesGrid:m,slidesSizesGrid:f}),t.centeredSlides&&t.cssMode&&!t.centeredSlidesBounds){It(n,"--swiper-centered-offset-before",`${-p[0]}px`),It(n,"--swiper-centered-offset-after",`${i.size/2-f[f.length-1]/2}px`);const T=-i.snapGrid[0],C=-i.slidesGrid[0];i.snapGrid=i.snapGrid.map(L=>L+T),i.slidesGrid=i.slidesGrid.map(L=>L+C)}if(h!==d&&i.emit("slidesLengthChange"),p.length!==g&&(i.params.watchOverflow&&i.checkOverflow(),i.emit("snapGridLengthChange")),m.length!==x&&i.emit("slidesGridLengthChange"),t.watchSlidesProgress&&i.updateSlidesOffset(),i.emit("slidesUpdated"),!c&&!t.cssMode&&(t.effect==="slide"||t.effect==="fade")){const T=`${t.containerModifierClass}backface-hidden`,C=i.el.classList.contains(T);h<=t.maxBackfaceHiddenSlides?C||i.el.classList.add(T):C&&i.el.classList.remove(T)}}function So(i){const e=this,t=[],n=e.virtual&&e.params.virtual.enabled;let r=0,a;typeof i=="number"?e.setTransition(i):i===!0&&e.setTransition(e.params.speed);const l=o=>n?e.slides[e.getSlideIndexByData(o)]:e.slides[o];if(e.params.slidesPerView!=="auto"&&e.params.slidesPerView>1)if(e.params.centeredSlides)(e.visibleSlides||[]).forEach(o=>{t.push(o)});else for(a=0;a<Math.ceil(e.params.slidesPerView);a+=1){const o=e.activeIndex+a;if(o>e.slides.length&&!n)break;t.push(l(o))}else t.push(l(e.activeIndex));for(a=0;a<t.length;a+=1)if(typeof t[a]<"u"){const o=t[a].offsetHeight;r=o>r?o:r}(r||r===0)&&(e.wrapperEl.style.height=`${r}px`)}function Eo(){const i=this,e=i.slides,t=i.isElement?i.isHorizontal()?i.wrapperEl.offsetLeft:i.wrapperEl.offsetTop:0;for(let n=0;n<e.length;n+=1)e[n].swiperSlideOffset=(i.isHorizontal()?e[n].offsetLeft:e[n].offsetTop)-t-i.cssOverflowAdjustment()}const Gn=(i,e,t)=>{e&&!i.classList.contains(t)?i.classList.add(t):!e&&i.classList.contains(t)&&i.classList.remove(t)};function To(i){i===void 0&&(i=this&&this.translate||0);const e=this,t=e.params,{slides:n,rtlTranslate:r,snapGrid:a}=e;if(n.length===0)return;typeof n[0].swiperSlideOffset>"u"&&e.updateSlidesOffset();let l=-i;r&&(l=i),e.visibleSlidesIndexes=[],e.visibleSlides=[];let o=t.spaceBetween;typeof o=="string"&&o.indexOf("%")>=0?o=parseFloat(o.replace("%",""))/100*e.size:typeof o=="string"&&(o=parseFloat(o));for(let c=0;c<n.length;c+=1){const d=n[c];let u=d.swiperSlideOffset;t.cssMode&&t.centeredSlides&&(u-=n[0].swiperSlideOffset);const h=(l+(t.centeredSlides?e.minTranslate():0)-u)/(d.swiperSlideSize+o),p=(l-a[0]+(t.centeredSlides?e.minTranslate():0)-u)/(d.swiperSlideSize+o),m=-(l-u),f=m+e.slidesSizesGrid[c],v=m>=0&&m<=e.size-e.slidesSizesGrid[c],b=m>=0&&m<e.size-1||f>1&&f<=e.size||m<=0&&f>=e.size;b&&(e.visibleSlides.push(d),e.visibleSlidesIndexes.push(c)),Gn(d,b,t.slideVisibleClass),Gn(d,v,t.slideFullyVisibleClass),d.progress=r?-h:h,d.originalProgress=r?-p:p}}function Po(i){const e=this;if(typeof i>"u"){const u=e.rtlTranslate?-1:1;i=e&&e.translate&&e.translate*u||0}const t=e.params,n=e.maxTranslate()-e.minTranslate();let{progress:r,isBeginning:a,isEnd:l,progressLoop:o}=e;const c=a,d=l;if(n===0)r=0,a=!0,l=!0;else{r=(i-e.minTranslate())/n;const u=Math.abs(i-e.minTranslate())<1,h=Math.abs(i-e.maxTranslate())<1;a=u||r<=0,l=h||r>=1,u&&(r=0),h&&(r=1)}if(t.loop){const u=e.getSlideIndexByData(0),h=e.getSlideIndexByData(e.slides.length-1),p=e.slidesGrid[u],m=e.slidesGrid[h],f=e.slidesGrid[e.slidesGrid.length-1],v=Math.abs(i);v>=p?o=(v-p)/f:o=(v+f-m)/f,o>1&&(o-=1)}Object.assign(e,{progress:r,progressLoop:o,isBeginning:a,isEnd:l}),(t.watchSlidesProgress||t.centeredSlides&&t.autoHeight)&&e.updateSlidesProgress(i),a&&!c&&e.emit("reachBeginning toEdge"),l&&!d&&e.emit("reachEnd toEdge"),(c&&!a||d&&!l)&&e.emit("fromEdge"),e.emit("progress",r)}const gi=(i,e,t)=>{e&&!i.classList.contains(t)?i.classList.add(t):!e&&i.classList.contains(t)&&i.classList.remove(t)};function Co(){const i=this,{slides:e,params:t,slidesEl:n,activeIndex:r}=i,a=i.virtual&&t.virtual.enabled,l=i.grid&&t.grid&&t.grid.rows>1,o=h=>pe(n,`.${t.slideClass}${h}, swiper-slide${h}`)[0];let c,d,u;if(a)if(t.loop){let h=r-i.virtual.slidesBefore;h<0&&(h=i.virtual.slides.length+h),h>=i.virtual.slides.length&&(h-=i.virtual.slides.length),c=o(`[data-swiper-slide-index="${h}"]`)}else c=o(`[data-swiper-slide-index="${r}"]`);else l?(c=e.find(h=>h.column===r),u=e.find(h=>h.column===r+1),d=e.find(h=>h.column===r-1)):c=e[r];c&&(l||(u=mo(c,`.${t.slideClass}, swiper-slide`)[0],t.loop&&!u&&(u=e[0]),d=po(c,`.${t.slideClass}, swiper-slide`)[0],t.loop&&!d===0&&(d=e[e.length-1]))),e.forEach(h=>{gi(h,h===c,t.slideActiveClass),gi(h,h===u,t.slideNextClass),gi(h,h===d,t.slidePrevClass)}),i.emitSlidesClasses()}const Kt=(i,e)=>{if(!i||i.destroyed||!i.params)return;const t=()=>i.isElement?"swiper-slide":`.${i.params.slideClass}`,n=e.closest(t());if(n){let r=n.querySelector(`.${i.params.lazyPreloaderClass}`);!r&&i.isElement&&(n.shadowRoot?r=n.shadowRoot.querySelector(`.${i.params.lazyPreloaderClass}`):requestAnimationFrame(()=>{n.shadowRoot&&(r=n.shadowRoot.querySelector(`.${i.params.lazyPreloaderClass}`),r&&r.remove())})),r&&r.remove()}},vi=(i,e)=>{if(!i.slides[e])return;const t=i.slides[e].querySelector('[loading="lazy"]');t&&t.removeAttribute("loading")},Wi=i=>{if(!i||i.destroyed||!i.params)return;let e=i.params.lazyPreloadPrevNext;const t=i.slides.length;if(!t||!e||e<0)return;e=Math.min(e,t);const n=i.params.slidesPerView==="auto"?i.slidesPerViewDynamic():Math.ceil(i.params.slidesPerView),r=i.activeIndex;if(i.params.grid&&i.params.grid.rows>1){const l=r,o=[l-e];o.push(...Array.from({length:e}).map((c,d)=>l+n+d)),i.slides.forEach((c,d)=>{o.includes(c.column)&&vi(i,d)});return}const a=r+n-1;if(i.params.rewind||i.params.loop)for(let l=r-e;l<=a+e;l+=1){const o=(l%t+t)%t;(o<r||o>a)&&vi(i,o)}else for(let l=Math.max(r-e,0);l<=Math.min(a+e,t-1);l+=1)l!==r&&(l>a||l<r)&&vi(i,l)};function ko(i){const{slidesGrid:e,params:t}=i,n=i.rtlTranslate?i.translate:-i.translate;let r;for(let a=0;a<e.length;a+=1)typeof e[a+1]<"u"?n>=e[a]&&n<e[a+1]-(e[a+1]-e[a])/2?r=a:n>=e[a]&&n<e[a+1]&&(r=a+1):n>=e[a]&&(r=a);return t.normalizeSlideIndex&&(r<0||typeof r>"u")&&(r=0),r}function Mo(i){const e=this,t=e.rtlTranslate?e.translate:-e.translate,{snapGrid:n,params:r,activeIndex:a,realIndex:l,snapIndex:o}=e;let c=i,d;const u=m=>{let f=m-e.virtual.slidesBefore;return f<0&&(f=e.virtual.slides.length+f),f>=e.virtual.slides.length&&(f-=e.virtual.slides.length),f};if(typeof c>"u"&&(c=ko(e)),n.indexOf(t)>=0)d=n.indexOf(t);else{const m=Math.min(r.slidesPerGroupSkip,c);d=m+Math.floor((c-m)/r.slidesPerGroup)}if(d>=n.length&&(d=n.length-1),c===a&&!e.params.loop){d!==o&&(e.snapIndex=d,e.emit("snapIndexChange"));return}if(c===a&&e.params.loop&&e.virtual&&e.params.virtual.enabled){e.realIndex=u(c);return}const h=e.grid&&r.grid&&r.grid.rows>1;let p;if(e.virtual&&r.virtual.enabled&&r.loop)p=u(c);else if(h){const m=e.slides.find(v=>v.column===c);let f=parseInt(m.getAttribute("data-swiper-slide-index"),10);Number.isNaN(f)&&(f=Math.max(e.slides.indexOf(m),0)),p=Math.floor(f/r.grid.rows)}else if(e.slides[c]){const m=e.slides[c].getAttribute("data-swiper-slide-index");m?p=parseInt(m,10):p=c}else p=c;Object.assign(e,{previousSnapIndex:o,snapIndex:d,previousRealIndex:l,realIndex:p,previousIndex:a,activeIndex:c}),e.initialized&&Wi(e),e.emit("activeIndexChange"),e.emit("snapIndexChange"),(e.initialized||e.params.runCallbacksOnInit)&&(l!==p&&e.emit("realIndexChange"),e.emit("slideChange"))}function Lo(i,e){const t=this,n=t.params;let r=i.closest(`.${n.slideClass}, swiper-slide`);!r&&t.isElement&&e&&e.length>1&&e.includes(i)&&[...e.slice(e.indexOf(i)+1,e.length)].forEach(o=>{!r&&o.matches&&o.matches(`.${n.slideClass}, swiper-slide`)&&(r=o)});let a=!1,l;if(r){for(let o=0;o<t.slides.length;o+=1)if(t.slides[o]===r){a=!0,l=o;break}}if(r&&a)t.clickedSlide=r,t.virtual&&t.params.virtual.enabled?t.clickedIndex=parseInt(r.getAttribute("data-swiper-slide-index"),10):t.clickedIndex=l;else{t.clickedSlide=void 0,t.clickedIndex=void 0;return}n.slideToClickedSlide&&t.clickedIndex!==void 0&&t.clickedIndex!==t.activeIndex&&t.slideToClickedSlide()}var Ao={updateSize:No,updateSlides:_o,updateAutoHeight:So,updateSlidesOffset:Eo,updateSlidesProgress:To,updateProgress:Po,updateSlidesClasses:Co,updateActiveIndex:Mo,updateClickedSlide:Lo};function Oo(i){i===void 0&&(i=this.isHorizontal()?"x":"y");const e=this,{params:t,rtlTranslate:n,translate:r,wrapperEl:a}=e;if(t.virtualTranslate)return n?-r:r;if(t.cssMode)return r;let l=oo(a,i);return l+=e.cssOverflowAdjustment(),n&&(l=-l),l||0}function Io(i,e){const t=this,{rtlTranslate:n,params:r,wrapperEl:a,progress:l}=t;let o=0,c=0;const d=0;t.isHorizontal()?o=n?-i:i:c=i,r.roundLengths&&(o=Math.floor(o),c=Math.floor(c)),t.previousTranslate=t.translate,t.translate=t.isHorizontal()?o:c,r.cssMode?a[t.isHorizontal()?"scrollLeft":"scrollTop"]=t.isHorizontal()?-o:-c:r.virtualTranslate||(t.isHorizontal()?o-=t.cssOverflowAdjustment():c-=t.cssOverflowAdjustment(),a.style.transform=`translate3d(${o}px, ${c}px, ${d}px)`);let u;const h=t.maxTranslate()-t.minTranslate();h===0?u=0:u=(i-t.minTranslate())/h,u!==l&&t.updateProgress(i),t.emit("setTranslate",t.translate,e)}function Ro(){return-this.snapGrid[0]}function Do(){return-this.snapGrid[this.snapGrid.length-1]}function zo(i,e,t,n,r){i===void 0&&(i=0),e===void 0&&(e=this.params.speed),t===void 0&&(t=!0),n===void 0&&(n=!0);const a=this,{params:l,wrapperEl:o}=a;if(a.animating&&l.preventInteractionOnTransition)return!1;const c=a.minTranslate(),d=a.maxTranslate();let u;if(n&&i>c?u=c:n&&i<d?u=d:u=i,a.updateProgress(u),l.cssMode){const h=a.isHorizontal();if(e===0)o[h?"scrollLeft":"scrollTop"]=-u;else{if(!a.support.smoothScroll)return gr({swiper:a,targetPosition:-u,side:h?"left":"top"}),!0;o.scrollTo({[h?"left":"top"]:-u,behavior:"smooth"})}return!0}return e===0?(a.setTransition(0),a.setTranslate(u),t&&(a.emit("beforeTransitionStart",e,r),a.emit("transitionEnd"))):(a.setTransition(e),a.setTranslate(u),t&&(a.emit("beforeTransitionStart",e,r),a.emit("transitionStart")),a.animating||(a.animating=!0,a.onTranslateToWrapperTransitionEnd||(a.onTranslateToWrapperTransitionEnd=function(p){!a||a.destroyed||p.target===this&&(a.wrapperEl.removeEventListener("transitionend",a.onTranslateToWrapperTransitionEnd),a.onTranslateToWrapperTransitionEnd=null,delete a.onTranslateToWrapperTransitionEnd,a.animating=!1,t&&a.emit("transitionEnd"))}),a.wrapperEl.addEventListener("transitionend",a.onTranslateToWrapperTransitionEnd))),!0}var jo={getTranslate:Oo,setTranslate:Io,minTranslate:Ro,maxTranslate:Do,translateTo:zo};function Fo(i,e){const t=this;t.params.cssMode||(t.wrapperEl.style.transitionDuration=`${i}ms`,t.wrapperEl.style.transitionDelay=i===0?"0ms":""),t.emit("setTransition",i,e)}function yr(i){let{swiper:e,runCallbacks:t,direction:n,step:r}=i;const{activeIndex:a,previousIndex:l}=e;let o=n;if(o||(a>l?o="next":a<l?o="prev":o="reset"),e.emit(`transition${r}`),t&&a!==l){if(o==="reset"){e.emit(`slideResetTransition${r}`);return}e.emit(`slideChangeTransition${r}`),o==="next"?e.emit(`slideNextTransition${r}`):e.emit(`slidePrevTransition${r}`)}}function Bo(i,e){i===void 0&&(i=!0);const t=this,{params:n}=t;n.cssMode||(n.autoHeight&&t.updateAutoHeight(),yr({swiper:t,runCallbacks:i,direction:e,step:"Start"}))}function $o(i,e){i===void 0&&(i=!0);const t=this,{params:n}=t;t.animating=!1,!n.cssMode&&(t.setTransition(0),yr({swiper:t,runCallbacks:i,direction:e,step:"End"}))}var Ho={setTransition:Fo,transitionStart:Bo,transitionEnd:$o};function Go(i,e,t,n,r){i===void 0&&(i=0),t===void 0&&(t=!0),typeof i=="string"&&(i=parseInt(i,10));const a=this;let l=i;l<0&&(l=0);const{params:o,snapGrid:c,slidesGrid:d,previousIndex:u,activeIndex:h,rtlTranslate:p,wrapperEl:m,enabled:f}=a;if(!f&&!n&&!r||a.destroyed||a.animating&&o.preventInteractionOnTransition)return!1;typeof e>"u"&&(e=a.params.speed);const v=Math.min(a.params.slidesPerGroupSkip,l);let b=v+Math.floor((l-v)/a.params.slidesPerGroup);b>=c.length&&(b=c.length-1);const g=-c[b];if(o.normalizeSlideIndex)for(let E=0;E<d.length;E+=1){const _=-Math.floor(g*100),S=Math.floor(d[E]*100),T=Math.floor(d[E+1]*100);typeof d[E+1]<"u"?_>=S&&_<T-(T-S)/2?l=E:_>=S&&_<T&&(l=E+1):_>=S&&(l=E)}if(a.initialized&&l!==h&&(!a.allowSlideNext&&(p?g>a.translate&&g>a.minTranslate():g<a.translate&&g<a.minTranslate())||!a.allowSlidePrev&&g>a.translate&&g>a.maxTranslate()&&(h||0)!==l))return!1;l!==(u||0)&&t&&a.emit("beforeSlideChangeStart"),a.updateProgress(g);let x;l>h?x="next":l<h?x="prev":x="reset";const y=a.virtual&&a.params.virtual.enabled;if(!(y&&r)&&(p&&-g===a.translate||!p&&g===a.translate))return a.updateActiveIndex(l),o.autoHeight&&a.updateAutoHeight(),a.updateSlidesClasses(),o.effect!=="slide"&&a.setTranslate(g),x!=="reset"&&(a.transitionStart(t,x),a.transitionEnd(t,x)),!1;if(o.cssMode){const E=a.isHorizontal(),_=p?g:-g;if(e===0)y&&(a.wrapperEl.style.scrollSnapType="none",a._immediateVirtual=!0),y&&!a._cssModeVirtualInitialSet&&a.params.initialSlide>0?(a._cssModeVirtualInitialSet=!0,requestAnimationFrame(()=>{m[E?"scrollLeft":"scrollTop"]=_})):m[E?"scrollLeft":"scrollTop"]=_,y&&requestAnimationFrame(()=>{a.wrapperEl.style.scrollSnapType="",a._immediateVirtual=!1});else{if(!a.support.smoothScroll)return gr({swiper:a,targetPosition:_,side:E?"left":"top"}),!0;m.scrollTo({[E?"left":"top"]:_,behavior:"smooth"})}return!0}const k=xr().isSafari;return y&&!r&&k&&a.isElement&&a.virtual.update(!1,!1,l),a.setTransition(e),a.setTranslate(g),a.updateActiveIndex(l),a.updateSlidesClasses(),a.emit("beforeTransitionStart",e,n),a.transitionStart(t,x),e===0?a.transitionEnd(t,x):a.animating||(a.animating=!0,a.onSlideToWrapperTransitionEnd||(a.onSlideToWrapperTransitionEnd=function(_){!a||a.destroyed||_.target===this&&(a.wrapperEl.removeEventListener("transitionend",a.onSlideToWrapperTransitionEnd),a.onSlideToWrapperTransitionEnd=null,delete a.onSlideToWrapperTransitionEnd,a.transitionEnd(t,x))}),a.wrapperEl.addEventListener("transitionend",a.onSlideToWrapperTransitionEnd)),!0}function Vo(i,e,t,n){i===void 0&&(i=0),t===void 0&&(t=!0),typeof i=="string"&&(i=parseInt(i,10));const r=this;if(r.destroyed)return;typeof e>"u"&&(e=r.params.speed);const a=r.grid&&r.params.grid&&r.params.grid.rows>1;let l=i;if(r.params.loop)if(r.virtual&&r.params.virtual.enabled)l=l+r.virtual.slidesBefore;else{let o;if(a){const p=l*r.params.grid.rows;o=r.slides.find(m=>m.getAttribute("data-swiper-slide-index")*1===p).column}else o=r.getSlideIndexByData(l);const c=a?Math.ceil(r.slides.length/r.params.grid.rows):r.slides.length,{centeredSlides:d}=r.params;let u=r.params.slidesPerView;u==="auto"?u=r.slidesPerViewDynamic():(u=Math.ceil(parseFloat(r.params.slidesPerView,10)),d&&u%2===0&&(u=u+1));let h=c-o<u;if(d&&(h=h||o<Math.ceil(u/2)),n&&d&&r.params.slidesPerView!=="auto"&&!a&&(h=!1),h){const p=d?o<r.activeIndex?"prev":"next":o-r.activeIndex-1<r.params.slidesPerView?"next":"prev";r.loopFix({direction:p,slideTo:!0,activeSlideIndex:p==="next"?o+1:o-c+1,slideRealIndex:p==="next"?r.realIndex:void 0})}if(a){const p=l*r.params.grid.rows;l=r.slides.find(m=>m.getAttribute("data-swiper-slide-index")*1===p).column}else l=r.getSlideIndexByData(l)}return requestAnimationFrame(()=>{r.slideTo(l,e,t,n)}),r}function Wo(i,e,t){e===void 0&&(e=!0);const n=this,{enabled:r,params:a,animating:l}=n;if(!r||n.destroyed)return n;typeof i>"u"&&(i=n.params.speed);let o=a.slidesPerGroup;a.slidesPerView==="auto"&&a.slidesPerGroup===1&&a.slidesPerGroupAuto&&(o=Math.max(n.slidesPerViewDynamic("current",!0),1));const c=n.activeIndex<a.slidesPerGroupSkip?1:o,d=n.virtual&&a.virtual.enabled;if(a.loop){if(l&&!d&&a.loopPreventsSliding)return!1;if(n.loopFix({direction:"next"}),n._clientLeft=n.wrapperEl.clientLeft,n.activeIndex===n.slides.length-1&&a.cssMode)return requestAnimationFrame(()=>{n.slideTo(n.activeIndex+c,i,e,t)}),!0}return a.rewind&&n.isEnd?n.slideTo(0,i,e,t):n.slideTo(n.activeIndex+c,i,e,t)}function Xo(i,e,t){e===void 0&&(e=!0);const n=this,{params:r,snapGrid:a,slidesGrid:l,rtlTranslate:o,enabled:c,animating:d}=n;if(!c||n.destroyed)return n;typeof i>"u"&&(i=n.params.speed);const u=n.virtual&&r.virtual.enabled;if(r.loop){if(d&&!u&&r.loopPreventsSliding)return!1;n.loopFix({direction:"prev"}),n._clientLeft=n.wrapperEl.clientLeft}const h=o?n.translate:-n.translate;function p(x){return x<0?-Math.floor(Math.abs(x)):Math.floor(x)}const m=p(h),f=a.map(x=>p(x)),v=r.freeMode&&r.freeMode.enabled;let b=a[f.indexOf(m)-1];if(typeof b>"u"&&(r.cssMode||v)){let x;a.forEach((y,w)=>{m>=y&&(x=w)}),typeof x<"u"&&(b=v?a[x]:a[x>0?x-1:x])}let g=0;if(typeof b<"u"&&(g=l.indexOf(b),g<0&&(g=n.activeIndex-1),r.slidesPerView==="auto"&&r.slidesPerGroup===1&&r.slidesPerGroupAuto&&(g=g-n.slidesPerViewDynamic("previous",!0)+1,g=Math.max(g,0))),r.rewind&&n.isBeginning){const x=n.params.virtual&&n.params.virtual.enabled&&n.virtual?n.virtual.slides.length-1:n.slides.length-1;return n.slideTo(x,i,e,t)}else if(r.loop&&n.activeIndex===0&&r.cssMode)return requestAnimationFrame(()=>{n.slideTo(g,i,e,t)}),!0;return n.slideTo(g,i,e,t)}function Uo(i,e,t){e===void 0&&(e=!0);const n=this;if(!n.destroyed)return typeof i>"u"&&(i=n.params.speed),n.slideTo(n.activeIndex,i,e,t)}function qo(i,e,t,n){e===void 0&&(e=!0),n===void 0&&(n=.5);const r=this;if(r.destroyed)return;typeof i>"u"&&(i=r.params.speed);let a=r.activeIndex;const l=Math.min(r.params.slidesPerGroupSkip,a),o=l+Math.floor((a-l)/r.params.slidesPerGroup),c=r.rtlTranslate?r.translate:-r.translate;if(c>=r.snapGrid[o]){const d=r.snapGrid[o],u=r.snapGrid[o+1];c-d>(u-d)*n&&(a+=r.params.slidesPerGroup)}else{const d=r.snapGrid[o-1],u=r.snapGrid[o];c-d<=(u-d)*n&&(a-=r.params.slidesPerGroup)}return a=Math.max(a,0),a=Math.min(a,r.slidesGrid.length-1),r.slideTo(a,i,e,t)}function Yo(){const i=this;if(i.destroyed)return;const{params:e,slidesEl:t}=i,n=e.slidesPerView==="auto"?i.slidesPerViewDynamic():e.slidesPerView;let r=i.clickedIndex,a;const l=i.isElement?"swiper-slide":`.${e.slideClass}`;if(e.loop){if(i.animating)return;a=parseInt(i.clickedSlide.getAttribute("data-swiper-slide-index"),10),e.centeredSlides?r<i.loopedSlides-n/2||r>i.slides.length-i.loopedSlides+n/2?(i.loopFix(),r=i.getSlideIndex(pe(t,`${l}[data-swiper-slide-index="${a}"]`)[0]),Vi(()=>{i.slideTo(r)})):i.slideTo(r):r>i.slides.length-n?(i.loopFix(),r=i.getSlideIndex(pe(t,`${l}[data-swiper-slide-index="${a}"]`)[0]),Vi(()=>{i.slideTo(r)})):i.slideTo(r)}else i.slideTo(r)}var Zo={slideTo:Go,slideToLoop:Vo,slideNext:Wo,slidePrev:Xo,slideReset:Uo,slideToClosest:qo,slideToClickedSlide:Yo};function Ko(i,e){const t=this,{params:n,slidesEl:r}=t;if(!n.loop||t.virtual&&t.params.virtual.enabled)return;const a=()=>{pe(r,`.${n.slideClass}, swiper-slide`).forEach((p,m)=>{p.setAttribute("data-swiper-slide-index",m)})},l=t.grid&&n.grid&&n.grid.rows>1,o=n.slidesPerGroup*(l?n.grid.rows:1),c=t.slides.length%o!==0,d=l&&t.slides.length%n.grid.rows!==0,u=h=>{for(let p=0;p<h;p+=1){const m=t.isElement?ti("swiper-slide",[n.slideBlankClass]):ti("div",[n.slideClass,n.slideBlankClass]);t.slidesEl.append(m)}};if(c){if(n.loopAddBlankSlides){const h=o-t.slides.length%o;u(h),t.recalcSlides(),t.updateSlides()}else ei("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)");a()}else if(d){if(n.loopAddBlankSlides){const h=n.grid.rows-t.slides.length%n.grid.rows;u(h),t.recalcSlides(),t.updateSlides()}else ei("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)");a()}else a();t.loopFix({slideRealIndex:i,direction:n.centeredSlides?void 0:"next",initial:e})}function Jo(i){let{slideRealIndex:e,slideTo:t=!0,direction:n,setTranslate:r,activeSlideIndex:a,initial:l,byController:o,byMousewheel:c}=i===void 0?{}:i;const d=this;if(!d.params.loop)return;d.emit("beforeLoopFix");const{slides:u,allowSlidePrev:h,allowSlideNext:p,slidesEl:m,params:f}=d,{centeredSlides:v,initialSlide:b}=f;if(d.allowSlidePrev=!0,d.allowSlideNext=!0,d.virtual&&f.virtual.enabled){t&&(!f.centeredSlides&&d.snapIndex===0?d.slideTo(d.virtual.slides.length,0,!1,!0):f.centeredSlides&&d.snapIndex<f.slidesPerView?d.slideTo(d.virtual.slides.length+d.snapIndex,0,!1,!0):d.snapIndex===d.snapGrid.length-1&&d.slideTo(d.virtual.slidesBefore,0,!1,!0)),d.allowSlidePrev=h,d.allowSlideNext=p,d.emit("loopFix");return}let g=f.slidesPerView;g==="auto"?g=d.slidesPerViewDynamic():(g=Math.ceil(parseFloat(f.slidesPerView,10)),v&&g%2===0&&(g=g+1));const x=f.slidesPerGroupAuto?g:f.slidesPerGroup;let y=x;y%x!==0&&(y+=x-y%x),y+=f.loopAdditionalSlides,d.loopedSlides=y;const w=d.grid&&f.grid&&f.grid.rows>1;u.length<g+y||d.params.effect==="cards"&&u.length<g+y*2?ei("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"):w&&f.grid.fill==="row"&&ei("Swiper Loop Warning: Loop mode is not compatible with grid.fill = `row`");const N=[],k=[],E=w?Math.ceil(u.length/f.grid.rows):u.length,_=l&&E-b<g&&!v;let S=_?b:d.activeIndex;typeof a>"u"?a=d.getSlideIndex(u.find(R=>R.classList.contains(f.slideActiveClass))):S=a;const T=n==="next"||!n,C=n==="prev"||!n;let L=0,O=0;const re=(w?u[a].column:a)+(v&&typeof r>"u"?-g/2+.5:0);if(re<y){L=Math.max(y-re,x);for(let R=0;R<y-re;R+=1){const U=R-Math.floor(R/E)*E;if(w){const Z=E-U-1;for(let $=u.length-1;$>=0;$-=1)u[$].column===Z&&N.push($)}else N.push(E-U-1)}}else if(re+g>E-y){O=Math.max(re-(E-y*2),x),_&&(O=Math.max(O,g-E+b+1));for(let R=0;R<O;R+=1){const U=R-Math.floor(R/E)*E;w?u.forEach((Z,$)=>{Z.column===U&&k.push($)}):k.push(U)}}if(d.__preventObserver__=!0,requestAnimationFrame(()=>{d.__preventObserver__=!1}),d.params.effect==="cards"&&u.length<g+y*2&&(k.includes(a)&&k.splice(k.indexOf(a),1),N.includes(a)&&N.splice(N.indexOf(a),1)),C&&N.forEach(R=>{u[R].swiperLoopMoveDOM=!0,m.prepend(u[R]),u[R].swiperLoopMoveDOM=!1}),T&&k.forEach(R=>{u[R].swiperLoopMoveDOM=!0,m.append(u[R]),u[R].swiperLoopMoveDOM=!1}),d.recalcSlides(),f.slidesPerView==="auto"?d.updateSlides():w&&(N.length>0&&C||k.length>0&&T)&&d.slides.forEach((R,U)=>{d.grid.updateSlide(U,R,d.slides)}),f.watchSlidesProgress&&d.updateSlidesOffset(),t){if(N.length>0&&C){if(typeof e>"u"){const R=d.slidesGrid[S],Z=d.slidesGrid[S+L]-R;c?d.setTranslate(d.translate-Z):(d.slideTo(S+Math.ceil(L),0,!1,!0),r&&(d.touchEventsData.startTranslate=d.touchEventsData.startTranslate-Z,d.touchEventsData.currentTranslate=d.touchEventsData.currentTranslate-Z))}else if(r){const R=w?N.length/f.grid.rows:N.length;d.slideTo(d.activeIndex+R,0,!1,!0),d.touchEventsData.currentTranslate=d.translate}}else if(k.length>0&&T)if(typeof e>"u"){const R=d.slidesGrid[S],Z=d.slidesGrid[S-O]-R;c?d.setTranslate(d.translate-Z):(d.slideTo(S-O,0,!1,!0),r&&(d.touchEventsData.startTranslate=d.touchEventsData.startTranslate-Z,d.touchEventsData.currentTranslate=d.touchEventsData.currentTranslate-Z))}else{const R=w?k.length/f.grid.rows:k.length;d.slideTo(d.activeIndex-R,0,!1,!0)}}if(d.allowSlidePrev=h,d.allowSlideNext=p,d.controller&&d.controller.control&&!o){const R={slideRealIndex:e,direction:n,setTranslate:r,activeSlideIndex:a,byController:!0};Array.isArray(d.controller.control)?d.controller.control.forEach(U=>{!U.destroyed&&U.params.loop&&U.loopFix({...R,slideTo:U.params.slidesPerView===f.slidesPerView?t:!1})}):d.controller.control instanceof d.constructor&&d.controller.control.params.loop&&d.controller.control.loopFix({...R,slideTo:d.controller.control.params.slidesPerView===f.slidesPerView?t:!1})}d.emit("loopFix")}function Qo(){const i=this,{params:e,slidesEl:t}=i;if(!e.loop||!t||i.virtual&&i.params.virtual.enabled)return;i.recalcSlides();const n=[];i.slides.forEach(r=>{const a=typeof r.swiperSlideIndex>"u"?r.getAttribute("data-swiper-slide-index")*1:r.swiperSlideIndex;n[a]=r}),i.slides.forEach(r=>{r.removeAttribute("data-swiper-slide-index")}),n.forEach(r=>{t.append(r)}),i.recalcSlides(),i.slideTo(i.realIndex,0)}var ec={loopCreate:Ko,loopFix:Jo,loopDestroy:Qo};function tc(i){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=i?"grabbing":"grab",e.isElement&&requestAnimationFrame(()=>{e.__preventObserver__=!1})}function ic(){const i=this;i.params.watchOverflow&&i.isLocked||i.params.cssMode||(i.isElement&&(i.__preventObserver__=!0),i[i.params.touchEventsTarget==="container"?"el":"wrapperEl"].style.cursor="",i.isElement&&requestAnimationFrame(()=>{i.__preventObserver__=!1}))}var nc={setGrabCursor:tc,unsetGrabCursor:ic};function sc(i,e){e===void 0&&(e=this);function t(n){if(!n||n===De()||n===te())return null;n.assignedSlot&&(n=n.assignedSlot);const r=n.closest(i);return!r&&!n.getRootNode?null:r||t(n.getRootNode().host)}return t(e)}function Vn(i,e,t){const n=te(),{params:r}=i,a=r.edgeSwipeDetection,l=r.edgeSwipeThreshold;return a&&(t<=l||t>=n.innerWidth-l)?a==="prevent"?(e.preventDefault(),!0):!1:!0}function rc(i){const e=this,t=De();let n=i;n.originalEvent&&(n=n.originalEvent);const r=e.touchEventsData;if(n.type==="pointerdown"){if(r.pointerId!==null&&r.pointerId!==n.pointerId)return;r.pointerId=n.pointerId}else n.type==="touchstart"&&n.targetTouches.length===1&&(r.touchId=n.targetTouches[0].identifier);if(n.type==="touchstart"){Vn(e,n,n.targetTouches[0].pageX);return}const{params:a,touches:l,enabled:o}=e;if(!o||!a.simulateTouch&&n.pointerType==="mouse"||e.animating&&a.preventInteractionOnTransition)return;!e.animating&&a.cssMode&&a.loop&&e.loopFix();let c=n.target;if(a.touchEventsTarget==="wrapper"&&!ho(c,e.wrapperEl)||"which"in n&&n.which===3||"button"in n&&n.button>0||r.isTouched&&r.isMoved)return;const d=!!a.noSwipingClass&&a.noSwipingClass!=="",u=n.composedPath?n.composedPath():n.path;d&&n.target&&n.target.shadowRoot&&u&&(c=u[0]);const h=a.noSwipingSelector?a.noSwipingSelector:`.${a.noSwipingClass}`,p=!!(n.target&&n.target.shadowRoot);if(a.noSwiping&&(p?sc(h,c):c.closest(h))){e.allowClick=!0;return}if(a.swipeHandler&&!c.closest(a.swipeHandler))return;l.currentX=n.pageX,l.currentY=n.pageY;const m=l.currentX,f=l.currentY;if(!Vn(e,n,m))return;Object.assign(r,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),l.startX=m,l.startY=f,r.touchStartTime=Ve(),e.allowClick=!0,e.updateSize(),e.swipeDirection=void 0,a.threshold>0&&(r.allowThresholdMove=!1);let v=!0;c.matches(r.focusableElements)&&(v=!1,c.nodeName==="SELECT"&&(r.isTouched=!1)),t.activeElement&&t.activeElement.matches(r.focusableElements)&&t.activeElement!==c&&(n.pointerType==="mouse"||n.pointerType!=="mouse"&&!c.matches(r.focusableElements))&&t.activeElement.blur();const b=v&&e.allowTouchMove&&a.touchStartPreventDefault;(a.touchStartForcePreventDefault||b)&&!c.isContentEditable&&n.preventDefault(),a.freeMode&&a.freeMode.enabled&&e.freeMode&&e.animating&&!a.cssMode&&e.freeMode.onTouchStart(),e.emit("touchStart",n)}function ac(i){const e=De(),t=this,n=t.touchEventsData,{params:r,touches:a,rtlTranslate:l,enabled:o}=t;if(!o||!r.simulateTouch&&i.pointerType==="mouse")return;let c=i;if(c.originalEvent&&(c=c.originalEvent),c.type==="pointermove"&&(n.touchId!==null||c.pointerId!==n.pointerId))return;let d;if(c.type==="touchmove"){if(d=[...c.changedTouches].find(N=>N.identifier===n.touchId),!d||d.identifier!==n.touchId)return}else d=c;if(!n.isTouched){n.startMoving&&n.isScrolling&&t.emit("touchMoveOpposite",c);return}const u=d.pageX,h=d.pageY;if(c.preventedByNestedSwiper){a.startX=u,a.startY=h;return}if(!t.allowTouchMove){c.target.matches(n.focusableElements)||(t.allowClick=!1),n.isTouched&&(Object.assign(a,{startX:u,startY:h,currentX:u,currentY:h}),n.touchStartTime=Ve());return}if(r.touchReleaseOnEdges&&!r.loop)if(t.isVertical()){if(h<a.startY&&t.translate<=t.maxTranslate()||h>a.startY&&t.translate>=t.minTranslate()){n.isTouched=!1,n.isMoved=!1;return}}else{if(l&&(u>a.startX&&-t.translate<=t.maxTranslate()||u<a.startX&&-t.translate>=t.minTranslate()))return;if(!l&&(u<a.startX&&t.translate<=t.maxTranslate()||u>a.startX&&t.translate>=t.minTranslate()))return}if(e.activeElement&&e.activeElement.matches(n.focusableElements)&&e.activeElement!==c.target&&c.pointerType!=="mouse"&&e.activeElement.blur(),e.activeElement&&c.target===e.activeElement&&c.target.matches(n.focusableElements)){n.isMoved=!0,t.allowClick=!1;return}n.allowTouchCallbacks&&t.emit("touchMove",c),a.previousX=a.currentX,a.previousY=a.currentY,a.currentX=u,a.currentY=h;const p=a.currentX-a.startX,m=a.currentY-a.startY;if(t.params.threshold&&Math.sqrt(p**2+m**2)<t.params.threshold)return;if(typeof n.isScrolling>"u"){let N;t.isHorizontal()&&a.currentY===a.startY||t.isVertical()&&a.currentX===a.startX?n.isScrolling=!1:p*p+m*m>=25&&(N=Math.atan2(Math.abs(m),Math.abs(p))*180/Math.PI,n.isScrolling=t.isHorizontal()?N>r.touchAngle:90-N>r.touchAngle)}if(n.isScrolling&&t.emit("touchMoveOpposite",c),typeof n.startMoving>"u"&&(a.currentX!==a.startX||a.currentY!==a.startY)&&(n.startMoving=!0),n.isScrolling||c.type==="touchmove"&&n.preventTouchMoveFromPointerMove){n.isTouched=!1;return}if(!n.startMoving)return;t.allowClick=!1,!r.cssMode&&c.cancelable&&c.preventDefault(),r.touchMoveStopPropagation&&!r.nested&&c.stopPropagation();let f=t.isHorizontal()?p:m,v=t.isHorizontal()?a.currentX-a.previousX:a.currentY-a.previousY;r.oneWayMovement&&(f=Math.abs(f)*(l?1:-1),v=Math.abs(v)*(l?1:-1)),a.diff=f,f*=r.touchRatio,l&&(f=-f,v=-v);const b=t.touchesDirection;t.swipeDirection=f>0?"prev":"next",t.touchesDirection=v>0?"prev":"next";const g=t.params.loop&&!r.cssMode,x=t.touchesDirection==="next"&&t.allowSlideNext||t.touchesDirection==="prev"&&t.allowSlidePrev;if(!n.isMoved){if(g&&x&&t.loopFix({direction:t.swipeDirection}),n.startTranslate=t.getTranslate(),t.setTransition(0),t.animating){const N=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0,detail:{bySwiperTouchMove:!0}});t.wrapperEl.dispatchEvent(N)}n.allowMomentumBounce=!1,r.grabCursor&&(t.allowSlideNext===!0||t.allowSlidePrev===!0)&&t.setGrabCursor(!0),t.emit("sliderFirstMove",c)}if(new Date().getTime(),r._loopSwapReset!==!1&&n.isMoved&&n.allowThresholdMove&&b!==t.touchesDirection&&g&&x&&Math.abs(f)>=1){Object.assign(a,{startX:u,startY:h,currentX:u,currentY:h,startTranslate:n.currentTranslate}),n.loopSwapReset=!0,n.startTranslate=n.currentTranslate;return}t.emit("sliderMove",c),n.isMoved=!0,n.currentTranslate=f+n.startTranslate;let y=!0,w=r.resistanceRatio;if(r.touchReleaseOnEdges&&(w=0),f>0?(g&&x&&n.allowThresholdMove&&n.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}),n.currentTranslate>t.minTranslate()&&(y=!1,r.resistance&&(n.currentTranslate=t.minTranslate()-1+(-t.minTranslate()+n.startTranslate+f)**w))):f<0&&(g&&x&&n.allowThresholdMove&&n.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)))}),n.currentTranslate<t.maxTranslate()&&(y=!1,r.resistance&&(n.currentTranslate=t.maxTranslate()+1-(t.maxTranslate()-n.startTranslate-f)**w))),y&&(c.preventedByNestedSwiper=!0),!t.allowSlideNext&&t.swipeDirection==="next"&&n.currentTranslate<n.startTranslate&&(n.currentTranslate=n.startTranslate),!t.allowSlidePrev&&t.swipeDirection==="prev"&&n.currentTranslate>n.startTranslate&&(n.currentTranslate=n.startTranslate),!t.allowSlidePrev&&!t.allowSlideNext&&(n.currentTranslate=n.startTranslate),r.threshold>0)if(Math.abs(f)>r.threshold||n.allowThresholdMove){if(!n.allowThresholdMove){n.allowThresholdMove=!0,a.startX=a.currentX,a.startY=a.currentY,n.currentTranslate=n.startTranslate,a.diff=t.isHorizontal()?a.currentX-a.startX:a.currentY-a.startY;return}}else{n.currentTranslate=n.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(n.currentTranslate),t.setTranslate(n.currentTranslate))}function lc(i){const e=this,t=e.touchEventsData;let n=i;n.originalEvent&&(n=n.originalEvent);let r;if(n.type==="touchend"||n.type==="touchcancel"){if(r=[...n.changedTouches].find(N=>N.identifier===t.touchId),!r||r.identifier!==t.touchId)return}else{if(t.touchId!==null||n.pointerId!==t.pointerId)return;r=n}if(["pointercancel","pointerout","pointerleave","contextmenu"].includes(n.type)&&!(["pointercancel","contextmenu"].includes(n.type)&&(e.browser.isSafari||e.browser.isWebView)))return;t.pointerId=null,t.touchId=null;const{params:l,touches:o,rtlTranslate:c,slidesGrid:d,enabled:u}=e;if(!u||!l.simulateTouch&&n.pointerType==="mouse")return;if(t.allowTouchCallbacks&&e.emit("touchEnd",n),t.allowTouchCallbacks=!1,!t.isTouched){t.isMoved&&l.grabCursor&&e.setGrabCursor(!1),t.isMoved=!1,t.startMoving=!1;return}l.grabCursor&&t.isMoved&&t.isTouched&&(e.allowSlideNext===!0||e.allowSlidePrev===!0)&&e.setGrabCursor(!1);const h=Ve(),p=h-t.touchStartTime;if(e.allowClick){const N=n.path||n.composedPath&&n.composedPath();e.updateClickedSlide(N&&N[0]||n.target,N),e.emit("tap click",n),p<300&&h-t.lastClickTime<300&&e.emit("doubleTap doubleClick",n)}if(t.lastClickTime=Ve(),Vi(()=>{e.destroyed||(e.allowClick=!0)}),!t.isTouched||!t.isMoved||!e.swipeDirection||o.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 m;if(l.followFinger?m=c?e.translate:-e.translate:m=-t.currentTranslate,l.cssMode)return;if(l.freeMode&&l.freeMode.enabled){e.freeMode.onTouchEnd({currentPos:m});return}const f=m>=-e.maxTranslate()&&!e.params.loop;let v=0,b=e.slidesSizesGrid[0];for(let N=0;N<d.length;N+=N<l.slidesPerGroupSkip?1:l.slidesPerGroup){const k=N<l.slidesPerGroupSkip-1?1:l.slidesPerGroup;typeof d[N+k]<"u"?(f||m>=d[N]&&m<d[N+k])&&(v=N,b=d[N+k]-d[N]):(f||m>=d[N])&&(v=N,b=d[d.length-1]-d[d.length-2])}let g=null,x=null;l.rewind&&(e.isBeginning?x=l.virtual&&l.virtual.enabled&&e.virtual?e.virtual.slides.length-1:e.slides.length-1:e.isEnd&&(g=0));const y=(m-d[v])/b,w=v<l.slidesPerGroupSkip-1?1:l.slidesPerGroup;if(p>l.longSwipesMs){if(!l.longSwipes){e.slideTo(e.activeIndex);return}e.swipeDirection==="next"&&(y>=l.longSwipesRatio?e.slideTo(l.rewind&&e.isEnd?g:v+w):e.slideTo(v)),e.swipeDirection==="prev"&&(y>1-l.longSwipesRatio?e.slideTo(v+w):x!==null&&y<0&&Math.abs(y)>l.longSwipesRatio?e.slideTo(x):e.slideTo(v))}else{if(!l.shortSwipes){e.slideTo(e.activeIndex);return}e.navigation&&(n.target===e.navigation.nextEl||n.target===e.navigation.prevEl)?n.target===e.navigation.nextEl?e.slideTo(v+w):e.slideTo(v):(e.swipeDirection==="next"&&e.slideTo(g!==null?g:v+w),e.swipeDirection==="prev"&&e.slideTo(x!==null?x:v))}}function Wn(){const i=this,{params:e,el:t}=i;if(t&&t.offsetWidth===0)return;e.breakpoints&&i.setBreakpoint();const{allowSlideNext:n,allowSlidePrev:r,snapGrid:a}=i,l=i.virtual&&i.params.virtual.enabled;i.allowSlideNext=!0,i.allowSlidePrev=!0,i.updateSize(),i.updateSlides(),i.updateSlidesClasses();const o=l&&e.loop;(e.slidesPerView==="auto"||e.slidesPerView>1)&&i.isEnd&&!i.isBeginning&&!i.params.centeredSlides&&!o?i.slideTo(i.slides.length-1,0,!1,!0):i.params.loop&&!l?i.slideToLoop(i.realIndex,0,!1,!0):i.slideTo(i.activeIndex,0,!1,!0),i.autoplay&&i.autoplay.running&&i.autoplay.paused&&(clearTimeout(i.autoplay.resizeTimeout),i.autoplay.resizeTimeout=setTimeout(()=>{i.autoplay&&i.autoplay.running&&i.autoplay.paused&&i.autoplay.resume()},500)),i.allowSlidePrev=r,i.allowSlideNext=n,i.params.watchOverflow&&a!==i.snapGrid&&i.checkOverflow()}function oc(i){const e=this;e.enabled&&(e.allowClick||(e.params.preventClicks&&i.preventDefault(),e.params.preventClicksPropagation&&e.animating&&(i.stopPropagation(),i.stopImmediatePropagation())))}function cc(){const i=this,{wrapperEl:e,rtlTranslate:t,enabled:n}=i;if(!n)return;i.previousTranslate=i.translate,i.isHorizontal()?i.translate=-e.scrollLeft:i.translate=-e.scrollTop,i.translate===0&&(i.translate=0),i.updateActiveIndex(),i.updateSlidesClasses();let r;const a=i.maxTranslate()-i.minTranslate();a===0?r=0:r=(i.translate-i.minTranslate())/a,r!==i.progress&&i.updateProgress(t?-i.translate:i.translate),i.emit("setTranslate",i.translate,!1)}function dc(i){const e=this;Kt(e,i.target),!(e.params.cssMode||e.params.slidesPerView!=="auto"&&!e.params.autoHeight)&&e.update()}function uc(){const i=this;i.documentTouchHandlerProceeded||(i.documentTouchHandlerProceeded=!0,i.params.touchReleaseOnEdges&&(i.el.style.touchAction="auto"))}const wr=(i,e)=>{const t=De(),{params:n,el:r,wrapperEl:a,device:l}=i,o=!!n.nested,c=e==="on"?"addEventListener":"removeEventListener",d=e;!r||typeof r=="string"||(t[c]("touchstart",i.onDocumentTouchStart,{passive:!1,capture:o}),r[c]("touchstart",i.onTouchStart,{passive:!1}),r[c]("pointerdown",i.onTouchStart,{passive:!1}),t[c]("touchmove",i.onTouchMove,{passive:!1,capture:o}),t[c]("pointermove",i.onTouchMove,{passive:!1,capture:o}),t[c]("touchend",i.onTouchEnd,{passive:!0}),t[c]("pointerup",i.onTouchEnd,{passive:!0}),t[c]("pointercancel",i.onTouchEnd,{passive:!0}),t[c]("touchcancel",i.onTouchEnd,{passive:!0}),t[c]("pointerout",i.onTouchEnd,{passive:!0}),t[c]("pointerleave",i.onTouchEnd,{passive:!0}),t[c]("contextmenu",i.onTouchEnd,{passive:!0}),(n.preventClicks||n.preventClicksPropagation)&&r[c]("click",i.onClick,!0),n.cssMode&&a[c]("scroll",i.onScroll),n.updateOnWindowResize?i[d](l.ios||l.android?"resize orientationchange observerUpdate":"resize observerUpdate",Wn,!0):i[d]("observerUpdate",Wn,!0),r[c]("load",i.onLoad,{capture:!0}))};function hc(){const i=this,{params:e}=i;i.onTouchStart=rc.bind(i),i.onTouchMove=ac.bind(i),i.onTouchEnd=lc.bind(i),i.onDocumentTouchStart=uc.bind(i),e.cssMode&&(i.onScroll=cc.bind(i)),i.onClick=oc.bind(i),i.onLoad=dc.bind(i),wr(i,"on")}function pc(){wr(this,"off")}var mc={attachEvents:hc,detachEvents:pc};const Xn=(i,e)=>i.grid&&e.grid&&e.grid.rows>1;function fc(){const i=this,{realIndex:e,initialized:t,params:n,el:r}=i,a=n.breakpoints;if(!a||a&&Object.keys(a).length===0)return;const l=De(),o=n.breakpointsBase==="window"||!n.breakpointsBase?n.breakpointsBase:"container",c=["window","container"].includes(n.breakpointsBase)||!n.breakpointsBase?i.el:l.querySelector(n.breakpointsBase),d=i.getBreakpoint(a,o,c);if(!d||i.currentBreakpoint===d)return;const h=(d in a?a[d]:void 0)||i.originalParams,p=Xn(i,n),m=Xn(i,h),f=i.params.grabCursor,v=h.grabCursor,b=n.enabled;p&&!m?(r.classList.remove(`${n.containerModifierClass}grid`,`${n.containerModifierClass}grid-column`),i.emitContainerClasses()):!p&&m&&(r.classList.add(`${n.containerModifierClass}grid`),(h.grid.fill&&h.grid.fill==="column"||!h.grid.fill&&n.grid.fill==="column")&&r.classList.add(`${n.containerModifierClass}grid-column`),i.emitContainerClasses()),f&&!v?i.unsetGrabCursor():!f&&v&&i.setGrabCursor(),["navigation","pagination","scrollbar"].forEach(k=>{if(typeof h[k]>"u")return;const E=n[k]&&n[k].enabled,_=h[k]&&h[k].enabled;E&&!_&&i[k].disable(),!E&&_&&i[k].enable()});const g=h.direction&&h.direction!==n.direction,x=n.loop&&(h.slidesPerView!==n.slidesPerView||g),y=n.loop;g&&t&&i.changeDirection(),ae(i.params,h);const w=i.params.enabled,N=i.params.loop;Object.assign(i,{allowTouchMove:i.params.allowTouchMove,allowSlideNext:i.params.allowSlideNext,allowSlidePrev:i.params.allowSlidePrev}),b&&!w?i.disable():!b&&w&&i.enable(),i.currentBreakpoint=d,i.emit("_beforeBreakpoint",h),t&&(x?(i.loopDestroy(),i.loopCreate(e),i.updateSlides()):!y&&N?(i.loopCreate(e),i.updateSlides()):y&&!N&&i.loopDestroy()),i.emit("breakpoint",h)}function gc(i,e,t){if(e===void 0&&(e="window"),!i||e==="container"&&!t)return;let n=!1;const r=te(),a=e==="window"?r.innerHeight:t.clientHeight,l=Object.keys(i).map(o=>{if(typeof o=="string"&&o.indexOf("@")===0){const c=parseFloat(o.substr(1));return{value:a*c,point:o}}return{value:o,point:o}});l.sort((o,c)=>parseInt(o.value,10)-parseInt(c.value,10));for(let o=0;o<l.length;o+=1){const{point:c,value:d}=l[o];e==="window"?r.matchMedia(`(min-width: ${d}px)`).matches&&(n=c):d<=t.clientWidth&&(n=c)}return n||"max"}var vc={setBreakpoint:fc,getBreakpoint:gc};function bc(i,e){const t=[];return i.forEach(n=>{typeof n=="object"?Object.keys(n).forEach(r=>{n[r]&&t.push(e+r)}):typeof n=="string"&&t.push(e+n)}),t}function xc(){const i=this,{classNames:e,params:t,rtl:n,el:r,device:a}=i,l=bc(["initialized",t.direction,{"free-mode":i.params.freeMode&&t.freeMode.enabled},{autoheight:t.autoHeight},{rtl:n},{grid:t.grid&&t.grid.rows>1},{"grid-column":t.grid&&t.grid.rows>1&&t.grid.fill==="column"},{android:a.android},{ios:a.ios},{"css-mode":t.cssMode},{centered:t.cssMode&&t.centeredSlides},{"watch-progress":t.watchSlidesProgress}],t.containerModifierClass);e.push(...l),r.classList.add(...e),i.emitContainerClasses()}function yc(){const i=this,{el:e,classNames:t}=i;!e||typeof e=="string"||(e.classList.remove(...t),i.emitContainerClasses())}var wc={addClasses:xc,removeClasses:yc};function Nc(){const i=this,{isLocked:e,params:t}=i,{slidesOffsetBefore:n}=t;if(n){const r=i.slides.length-1,a=i.slidesGrid[r]+i.slidesSizesGrid[r]+n*2;i.isLocked=i.size>a}else i.isLocked=i.snapGrid.length===1;t.allowSlideNext===!0&&(i.allowSlideNext=!i.isLocked),t.allowSlidePrev===!0&&(i.allowSlidePrev=!i.isLocked),e&&e!==i.isLocked&&(i.isEnd=!1),e!==i.isLocked&&i.emit(i.isLocked?"lock":"unlock")}var _c={checkOverflow:Nc},Xi={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 Sc(i,e){return function(n){n===void 0&&(n={});const r=Object.keys(n)[0],a=n[r];if(typeof a!="object"||a===null){ae(e,n);return}if(i[r]===!0&&(i[r]={enabled:!0}),r==="navigation"&&i[r]&&i[r].enabled&&!i[r].prevEl&&!i[r].nextEl&&(i[r].auto=!0),["pagination","scrollbar"].indexOf(r)>=0&&i[r]&&i[r].enabled&&!i[r].el&&(i[r].auto=!0),!(r in i&&"enabled"in a)){ae(e,n);return}typeof i[r]=="object"&&!("enabled"in i[r])&&(i[r].enabled=!0),i[r]||(i[r]={enabled:!1}),ae(e,n)}}const bi={eventsEmitter:wo,update:Ao,translate:jo,transition:Ho,slide:Zo,loop:ec,grabCursor:nc,events:mc,breakpoints:vc,checkOverflow:_c,classes:wc},xi={};let un=class Te{constructor(){let e,t;for(var n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];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=ae({},t),e&&!t.el&&(t.el=e);const l=De();if(t.el&&typeof t.el=="string"&&l.querySelectorAll(t.el).length>1){const u=[];return l.querySelectorAll(t.el).forEach(h=>{const p=ae({},t,{el:h});u.push(new Te(p))}),u}const o=this;o.__swiper__=!0,o.support=vr(),o.device=br({userAgent:t.userAgent}),o.browser=xr(),o.eventsListeners={},o.eventsAnyListeners=[],o.modules=[...o.__modules__],t.modules&&Array.isArray(t.modules)&&o.modules.push(...t.modules);const c={};o.modules.forEach(u=>{u({params:t,swiper:o,extendParams:Sc(t,c),on:o.on.bind(o),once:o.once.bind(o),off:o.off.bind(o),emit:o.emit.bind(o)})});const d=ae({},Xi,c);return o.params=ae({},d,xi,t),o.originalParams=ae({},o.params),o.passedParams=ae({},t),o.params&&o.params.on&&Object.keys(o.params.on).forEach(u=>{o.on(u,o.params.on[u])}),o.params&&o.params.onAny&&o.onAny(o.params.onAny),Object.assign(o,{enabled:o.params.enabled,el:e,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal(){return o.params.direction==="horizontal"},isVertical(){return o.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:o.params.allowSlideNext,allowSlidePrev:o.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:o.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,pointerId:null,touchId:null},allowClick:!0,allowTouchMove:o.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),o.emit("_swiper"),o.params.init&&o.init(),o}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:n}=this,r=pe(t,`.${n.slideClass}, swiper-slide`),a=$n(r[0]);return $n(e)-a}getSlideIndexByData(e){return this.getSlideIndex(this.slides.find(t=>t.getAttribute("data-swiper-slide-index")*1===e))}recalcSlides(){const e=this,{slidesEl:t,params:n}=e;e.slides=pe(t,`.${n.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 n=this;e=Math.min(Math.max(e,0),1);const r=n.minTranslate(),l=(n.maxTranslate()-r)*e+r;n.translateTo(l,typeof t>"u"?0:t),n.updateActiveIndex(),n.updateSlidesClasses()}emitContainerClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const t=e.el.className.split(" ").filter(n=>n.indexOf("swiper")===0||n.indexOf(e.params.containerModifierClass)===0);e.emit("_containerClasses",t.join(" "))}getSlideClasses(e){const t=this;return t.destroyed?"":e.className.split(" ").filter(n=>n.indexOf("swiper-slide")===0||n.indexOf(t.params.slideClass)===0).join(" ")}emitSlidesClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const t=[];e.slides.forEach(n=>{const r=e.getSlideClasses(n);t.push({slideEl:n,classNames:r}),e.emit("_slideClass",n,r)}),e.emit("_slideClasses",t)}slidesPerViewDynamic(e,t){e===void 0&&(e="current"),t===void 0&&(t=!1);const n=this,{params:r,slides:a,slidesGrid:l,slidesSizesGrid:o,size:c,activeIndex:d}=n;let u=1;if(typeof r.slidesPerView=="number")return r.slidesPerView;if(r.centeredSlides){let h=a[d]?Math.ceil(a[d].swiperSlideSize):0,p;for(let m=d+1;m<a.length;m+=1)a[m]&&!p&&(h+=Math.ceil(a[m].swiperSlideSize),u+=1,h>c&&(p=!0));for(let m=d-1;m>=0;m-=1)a[m]&&!p&&(h+=a[m].swiperSlideSize,u+=1,h>c&&(p=!0))}else if(e==="current")for(let h=d+1;h<a.length;h+=1)(t?l[h]+o[h]-l[d]<c:l[h]-l[d]<c)&&(u+=1);else for(let h=d-1;h>=0;h-=1)l[d]-l[h]<c&&(u+=1);return u}update(){const e=this;if(!e||e.destroyed)return;const{snapGrid:t,params:n}=e;n.breakpoints&&e.setBreakpoint(),[...e.el.querySelectorAll('[loading="lazy"]')].forEach(l=>{l.complete&&Kt(e,l)}),e.updateSize(),e.updateSlides(),e.updateProgress(),e.updateSlidesClasses();function r(){const l=e.rtlTranslate?e.translate*-1:e.translate,o=Math.min(Math.max(l,e.maxTranslate()),e.minTranslate());e.setTranslate(o),e.updateActiveIndex(),e.updateSlidesClasses()}let a;if(n.freeMode&&n.freeMode.enabled&&!n.cssMode)r(),n.autoHeight&&e.updateAutoHeight();else{if((n.slidesPerView==="auto"||n.slidesPerView>1)&&e.isEnd&&!n.centeredSlides){const l=e.virtual&&n.virtual.enabled?e.virtual.slides:e.slides;a=e.slideTo(l.length-1,0,!1,!0)}else a=e.slideTo(e.activeIndex,0,!1,!0);a||r()}n.watchOverflow&&t!==e.snapGrid&&e.checkOverflow(),e.emit("update")}changeDirection(e,t){t===void 0&&(t=!0);const n=this,r=n.params.direction;return e||(e=r==="horizontal"?"vertical":"horizontal"),e===r||e!=="horizontal"&&e!=="vertical"||(n.el.classList.remove(`${n.params.containerModifierClass}${r}`),n.el.classList.add(`${n.params.containerModifierClass}${e}`),n.emitContainerClasses(),n.params.direction=e,n.slides.forEach(a=>{e==="vertical"?a.style.width="":a.style.height=""}),n.emit("changeDirection"),t&&n.update()),n}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 n=e||t.params.el;if(typeof n=="string"&&(n=document.querySelector(n)),!n)return!1;n.swiper=t,n.parentNode&&n.parentNode.host&&n.parentNode.host.nodeName===t.params.swiperElementNodeName.toUpperCase()&&(t.isElement=!0);const r=()=>`.${(t.params.wrapperClass||"").trim().split(" ").join(".")}`;let l=n&&n.shadowRoot&&n.shadowRoot.querySelector?n.shadowRoot.querySelector(r()):pe(n,r())[0];return!l&&t.params.createElements&&(l=ti("div",t.params.wrapperClass),n.append(l),pe(n,`.${t.params.slideClass}`).forEach(o=>{l.append(o)})),Object.assign(t,{el:n,wrapperEl:l,slidesEl:t.isElement&&!n.parentNode.host.slideSlots?n.parentNode.host:l,hostEl:t.isElement?n.parentNode.host:n,mounted:!0,rtl:n.dir.toLowerCase()==="rtl"||Oe(n,"direction")==="rtl",rtlTranslate:t.params.direction==="horizontal"&&(n.dir.toLowerCase()==="rtl"||Oe(n,"direction")==="rtl"),wrongRTL:Oe(l,"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(),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(a=>{a.complete?Kt(t,a):a.addEventListener("load",l=>{Kt(t,l.target)})}),Wi(t),t.initialized=!0,Wi(t),t.emit("init"),t.emit("afterInit"),t}destroy(e,t){e===void 0&&(e=!0),t===void 0&&(t=!0);const n=this,{params:r,el:a,wrapperEl:l,slides:o}=n;return typeof n.params>"u"||n.destroyed||(n.emit("beforeDestroy"),n.initialized=!1,n.detachEvents(),r.loop&&n.loopDestroy(),t&&(n.removeClasses(),a&&typeof a!="string"&&a.removeAttribute("style"),l&&l.removeAttribute("style"),o&&o.length&&o.forEach(c=>{c.classList.remove(r.slideVisibleClass,r.slideFullyVisibleClass,r.slideActiveClass,r.slideNextClass,r.slidePrevClass),c.removeAttribute("style"),c.removeAttribute("data-swiper-slide-index")})),n.emit("destroy"),Object.keys(n.eventsListeners).forEach(c=>{n.off(c)}),e!==!1&&(n.el&&typeof n.el!="string"&&(n.el.swiper=null),ao(n)),n.destroyed=!0),null}static extendDefaults(e){ae(xi,e)}static get extendedDefaults(){return xi}static get defaults(){return Xi}static installModule(e){Te.prototype.__modules__||(Te.prototype.__modules__=[]);const t=Te.prototype.__modules__;typeof e=="function"&&t.indexOf(e)<0&&t.push(e)}static use(e){return Array.isArray(e)?(e.forEach(t=>Te.installModule(t)),Te):(Te.installModule(e),Te)}};Object.keys(bi).forEach(i=>{Object.keys(bi[i]).forEach(e=>{un.prototype[e]=bi[i][e]})});un.use([xo,yo]);const Nr=["eventsPrefix","injectStyles","injectStylesUrls","modules","init","_direction","oneWayMovement","swiperElementNodeName","touchEventsTarget","initialSlide","_speed","cssMode","updateOnWindowResize","resizeObserver","nested","focusableElements","_enabled","_width","_height","preventInteractionOnTransition","userAgent","url","_edgeSwipeDetection","_edgeSwipeThreshold","_freeMode","_autoHeight","setWrapperSize","virtualTranslate","_effect","breakpoints","breakpointsBase","_spaceBetween","_slidesPerView","maxBackfaceHiddenSlides","_grid","_slidesPerGroup","_slidesPerGroupSkip","_slidesPerGroupAuto","_centeredSlides","_centeredSlidesBounds","_slidesOffsetBefore","_slidesOffsetAfter","normalizeSlideIndex","_centerInsufficientSlides","_watchOverflow","roundLengths","touchRatio","touchAngle","simulateTouch","_shortSwipes","_longSwipes","longSwipesRatio","longSwipesMs","_followFinger","allowTouchMove","_threshold","touchMoveStopPropagation","touchStartPreventDefault","touchStartForcePreventDefault","touchReleaseOnEdges","uniqueNavElements","_resistance","_resistanceRatio","_watchSlidesProgress","_grabCursor","preventClicks","preventClicksPropagation","_slideToClickedSlide","_loop","loopAdditionalSlides","loopAddBlankSlides","loopPreventsSliding","_rewind","_allowSlidePrev","_allowSlideNext","_swipeHandler","_noSwiping","noSwipingClass","noSwipingSelector","passiveListeners","containerModifierClass","slideClass","slideActiveClass","slideVisibleClass","slideFullyVisibleClass","slideNextClass","slidePrevClass","slideBlankClass","wrapperClass","lazyPreloaderClass","lazyPreloadPrevNext","runCallbacksOnInit","observer","observeParents","observeSlideChildren","a11y","_autoplay","_controller","coverflowEffect","cubeEffect","fadeEffect","flipEffect","creativeEffect","cardsEffect","hashNavigation","history","keyboard","mousewheel","_navigation","_pagination","parallax","_scrollbar","_thumbs","virtual","zoom","control"];function Xe(i){return typeof i=="object"&&i!==null&&i.constructor&&Object.prototype.toString.call(i).slice(8,-1)==="Object"&&!i.__swiper__}function rt(i,e){const t=["__proto__","constructor","prototype"];Object.keys(e).filter(n=>t.indexOf(n)<0).forEach(n=>{typeof i[n]>"u"?i[n]=e[n]:Xe(e[n])&&Xe(i[n])&&Object.keys(e[n]).length>0?e[n].__swiper__?i[n]=e[n]:rt(i[n],e[n]):i[n]=e[n]})}function _r(i){return i===void 0&&(i={}),i.navigation&&typeof i.navigation.nextEl>"u"&&typeof i.navigation.prevEl>"u"}function Sr(i){return i===void 0&&(i={}),i.pagination&&typeof i.pagination.el>"u"}function Er(i){return i===void 0&&(i={}),i.scrollbar&&typeof i.scrollbar.el>"u"}function Tr(i){i===void 0&&(i="");const e=i.split(" ").map(n=>n.trim()).filter(n=>!!n),t=[];return e.forEach(n=>{t.indexOf(n)<0&&t.push(n)}),t.join(" ")}function Ec(i){return i===void 0&&(i=""),i?i.includes("swiper-wrapper")?i:`swiper-wrapper ${i}`:"swiper-wrapper"}function Tc(i){let{swiper:e,slides:t,passedParams:n,changedParams:r,nextEl:a,prevEl:l,scrollbarEl:o,paginationEl:c}=i;const d=r.filter(S=>S!=="children"&&S!=="direction"&&S!=="wrapperClass"),{params:u,pagination:h,navigation:p,scrollbar:m,virtual:f,thumbs:v}=e;let b,g,x,y,w,N,k,E;r.includes("thumbs")&&n.thumbs&&n.thumbs.swiper&&!n.thumbs.swiper.destroyed&&u.thumbs&&(!u.thumbs.swiper||u.thumbs.swiper.destroyed)&&(b=!0),r.includes("controller")&&n.controller&&n.controller.control&&u.controller&&!u.controller.control&&(g=!0),r.includes("pagination")&&n.pagination&&(n.pagination.el||c)&&(u.pagination||u.pagination===!1)&&h&&!h.el&&(x=!0),r.includes("scrollbar")&&n.scrollbar&&(n.scrollbar.el||o)&&(u.scrollbar||u.scrollbar===!1)&&m&&!m.el&&(y=!0),r.includes("navigation")&&n.navigation&&(n.navigation.prevEl||l)&&(n.navigation.nextEl||a)&&(u.navigation||u.navigation===!1)&&p&&!p.prevEl&&!p.nextEl&&(w=!0);const _=S=>{e[S]&&(e[S].destroy(),S==="navigation"?(e.isElement&&(e[S].prevEl.remove(),e[S].nextEl.remove()),u[S].prevEl=void 0,u[S].nextEl=void 0,e[S].prevEl=void 0,e[S].nextEl=void 0):(e.isElement&&e[S].el.remove(),u[S].el=void 0,e[S].el=void 0))};r.includes("loop")&&e.isElement&&(u.loop&&!n.loop?N=!0:!u.loop&&n.loop?k=!0:E=!0),d.forEach(S=>{if(Xe(u[S])&&Xe(n[S]))Object.assign(u[S],n[S]),(S==="navigation"||S==="pagination"||S==="scrollbar")&&"enabled"in n[S]&&!n[S].enabled&&_(S);else{const T=n[S];(T===!0||T===!1)&&(S==="navigation"||S==="pagination"||S==="scrollbar")?T===!1&&_(S):u[S]=n[S]}}),d.includes("controller")&&!g&&e.controller&&e.controller.control&&u.controller&&u.controller.control&&(e.controller.control=u.controller.control),r.includes("children")&&t&&f&&u.virtual.enabled?(f.slides=t,f.update(!0)):r.includes("virtual")&&f&&u.virtual.enabled&&(t&&(f.slides=t),f.update(!0)),r.includes("children")&&t&&u.loop&&(E=!0),b&&v.init()&&v.update(!0),g&&(e.controller.control=u.controller.control),x&&(e.isElement&&(!c||typeof c=="string")&&(c=document.createElement("div"),c.classList.add("swiper-pagination"),c.part.add("pagination"),e.el.appendChild(c)),c&&(u.pagination.el=c),h.init(),h.render(),h.update()),y&&(e.isElement&&(!o||typeof o=="string")&&(o=document.createElement("div"),o.classList.add("swiper-scrollbar"),o.part.add("scrollbar"),e.el.appendChild(o)),o&&(u.scrollbar.el=o),m.init(),m.updateSize(),m.setTranslate()),w&&(e.isElement&&((!a||typeof a=="string")&&(a=document.createElement("div"),a.classList.add("swiper-button-next"),a.innerHTML=e.hostEl.constructor.nextButtonSvg,a.part.add("button-next"),e.el.appendChild(a)),(!l||typeof l=="string")&&(l=document.createElement("div"),l.classList.add("swiper-button-prev"),l.innerHTML=e.hostEl.constructor.prevButtonSvg,l.part.add("button-prev"),e.el.appendChild(l))),a&&(u.navigation.nextEl=a),l&&(u.navigation.prevEl=l),p.init(),p.update()),r.includes("allowSlideNext")&&(e.allowSlideNext=n.allowSlideNext),r.includes("allowSlidePrev")&&(e.allowSlidePrev=n.allowSlidePrev),r.includes("direction")&&e.changeDirection(n.direction,!1),(N||E)&&e.loopDestroy(),(k||E)&&e.loopCreate(),e.update()}function Pc(i,e){i===void 0&&(i={}),e===void 0&&(e=!0);const t={on:{}},n={},r={};rt(t,Xi),t._emitClasses=!0,t.init=!1;const a={},l=Nr.map(c=>c.replace(/_/,"")),o=Object.assign({},i);return Object.keys(o).forEach(c=>{typeof i[c]>"u"||(l.indexOf(c)>=0?Xe(i[c])?(t[c]={},r[c]={},rt(t[c],i[c]),rt(r[c],i[c])):(t[c]=i[c],r[c]=i[c]):c.search(/on[A-Z]/)===0&&typeof i[c]=="function"?e?n[`${c[2].toLowerCase()}${c.substr(3)}`]=i[c]:t.on[`${c[2].toLowerCase()}${c.substr(3)}`]=i[c]:a[c]=i[c])}),["navigation","pagination","scrollbar"].forEach(c=>{t[c]===!0&&(t[c]={}),t[c]===!1&&delete t[c]}),{params:t,passedParams:r,rest:a,events:n}}function Cc(i,e){let{el:t,nextEl:n,prevEl:r,paginationEl:a,scrollbarEl:l,swiper:o}=i;_r(e)&&n&&r&&(o.params.navigation.nextEl=n,o.originalParams.navigation.nextEl=n,o.params.navigation.prevEl=r,o.originalParams.navigation.prevEl=r),Sr(e)&&a&&(o.params.pagination.el=a,o.originalParams.pagination.el=a),Er(e)&&l&&(o.params.scrollbar.el=l,o.originalParams.scrollbar.el=l),o.init(t)}function kc(i,e,t,n,r){const a=[];if(!e)return a;const l=c=>{a.indexOf(c)<0&&a.push(c)};if(t&&n){const c=n.map(r),d=t.map(r);c.join("")!==d.join("")&&l("children"),n.length!==t.length&&l("children")}return Nr.filter(c=>c[0]==="_").map(c=>c.replace(/_/,"")).forEach(c=>{if(c in i&&c in e)if(Xe(i[c])&&Xe(e[c])){const d=Object.keys(i[c]),u=Object.keys(e[c]);d.length!==u.length?l(c):(d.forEach(h=>{i[c][h]!==e[c][h]&&l(c)}),u.forEach(h=>{i[c][h]!==e[c][h]&&l(c)}))}else i[c]!==e[c]&&l(c)}),a}const Mc=i=>{!i||i.destroyed||!i.params.virtual||i.params.virtual&&!i.params.virtual.enabled||(i.updateSlides(),i.updateProgress(),i.updateSlidesClasses(),i.parallax&&i.params.parallax&&i.params.parallax.enabled&&i.parallax.setTranslate())};function ii(){return ii=Object.assign?Object.assign.bind():function(i){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(i[n]=t[n])}return i},ii.apply(this,arguments)}function Pr(i){return i.type&&i.type.displayName&&i.type.displayName.includes("SwiperSlide")}function Cr(i){const e=[];return Y.Children.toArray(i).forEach(t=>{Pr(t)?e.push(t):t.props&&t.props.children&&Cr(t.props.children).forEach(n=>e.push(n))}),e}function Lc(i){const e=[],t={"container-start":[],"container-end":[],"wrapper-start":[],"wrapper-end":[]};return Y.Children.toArray(i).forEach(n=>{if(Pr(n))e.push(n);else if(n.props&&n.props.slot&&t[n.props.slot])t[n.props.slot].push(n);else if(n.props&&n.props.children){const r=Cr(n.props.children);r.length>0?r.forEach(a=>e.push(a)):t["container-end"].push(n)}else t["container-end"].push(n)}),{slides:e,slots:t}}function Ac(i,e,t){if(!t)return null;const n=u=>{let h=u;return u<0?h=e.length+u:h>=e.length&&(h=h-e.length),h},r=i.isHorizontal()?{[i.rtlTranslate?"right":"left"]:`${t.offset}px`}:{top:`${t.offset}px`},{from:a,to:l}=t,o=i.params.loop?-e.length:0,c=i.params.loop?e.length*2:e.length,d=[];for(let u=o;u<c;u+=1)u>=a&&u<=l&&d.push(e[n(u)]);return d.map((u,h)=>Y.cloneElement(u,{swiper:i,style:r,key:u.props.virtualIndex||u.key||`slide-${h}`}))}function Nt(i,e){return typeof window>"u"?fe(i,e):Re(i,e)}const Un=se(null),Oc=se(null),He=dt(function(i,e){let{className:t,tag:n="div",wrapperTag:r="div",children:a,onSwiper:l,...o}=i===void 0?{}:i,c=!1;const[d,u]=Q("swiper"),[h,p]=Q(null),[m,f]=Q(!1),v=J(!1),b=J(null),g=J(null),x=J(null),y=J(null),w=J(null),N=J(null),k=J(null),E=J(null),{params:_,passedParams:S,rest:T,events:C}=Pc(o),{slides:L,slots:O}=Lc(a),X=()=>{f(!m)};Object.assign(_.on,{_containerClasses($,he){u(he)}});const re=()=>{Object.assign(_.on,C),c=!0;const $={..._};if(delete $.wrapperClass,g.current=new un($),g.current.virtual&&g.current.params.virtual.enabled){g.current.virtual.slides=L;const he={cache:!1,slides:L,renderExternal:p,renderExternalUpdate:!1};rt(g.current.params.virtual,he),rt(g.current.originalParams.virtual,he)}};b.current||re(),g.current&&g.current.on("_beforeBreakpoint",X);const R=()=>{c||!C||!g.current||Object.keys(C).forEach($=>{g.current.on($,C[$])})},U=()=>{!C||!g.current||Object.keys(C).forEach($=>{g.current.off($,C[$])})};fe(()=>()=>{g.current&&g.current.off("_beforeBreakpoint",X)}),fe(()=>{!v.current&&g.current&&(g.current.emitSlidesClasses(),v.current=!0)}),Nt(()=>{if(e&&(e.current=b.current),!!b.current)return g.current.destroyed&&re(),Cc({el:b.current,nextEl:w.current,prevEl:N.current,paginationEl:k.current,scrollbarEl:E.current,swiper:g.current},_),l&&!g.current.destroyed&&l(g.current),()=>{g.current&&!g.current.destroyed&&g.current.destroy(!0,!1)}},[]),Nt(()=>{R();const $=kc(S,x.current,L,y.current,he=>he.key);return x.current=S,y.current=L,$.length&&g.current&&!g.current.destroyed&&Tc({swiper:g.current,slides:L,passedParams:S,changedParams:$,nextEl:w.current,prevEl:N.current,scrollbarEl:E.current,paginationEl:k.current}),()=>{U()}}),Nt(()=>{Mc(g.current)},[h]);function Z(){return _.virtual?Ac(g.current,L,h):L.map(($,he)=>Y.cloneElement($,{swiper:g.current,swiperSlideIndex:he}))}return Y.createElement(n,ii({ref:b,className:Tr(`${d}${t?` ${t}`:""}`)},T),Y.createElement(Oc.Provider,{value:g.current},O["container-start"],Y.createElement(r,{className:Ec(_.wrapperClass)},O["wrapper-start"],Z(),O["wrapper-end"]),_r(_)&&Y.createElement(Y.Fragment,null,Y.createElement("div",{ref:N,className:"swiper-button-prev"}),Y.createElement("div",{ref:w,className:"swiper-button-next"})),Er(_)&&Y.createElement("div",{ref:E,className:"swiper-scrollbar"}),Sr(_)&&Y.createElement("div",{ref:k,className:"swiper-pagination"}),O["container-end"]))});He.displayName="Swiper";const D=dt(function(i,e){let{tag:t="div",children:n,className:r="",swiper:a,zoom:l,lazy:o,virtualIndex:c,swiperSlideIndex:d,...u}=i===void 0?{}:i;const h=J(null),[p,m]=Q("swiper-slide"),[f,v]=Q(!1);function b(w,N,k){N===h.current&&m(k)}Nt(()=>{if(typeof d<"u"&&(h.current.swiperSlideIndex=d),e&&(e.current=h.current),!(!h.current||!a)){if(a.destroyed){p!=="swiper-slide"&&m("swiper-slide");return}return a.on("_slideClass",b),()=>{a&&a.off("_slideClass",b)}}}),Nt(()=>{a&&h.current&&!a.destroyed&&m(a.getSlideClasses(h.current))},[a]);const g={isActive:p.indexOf("swiper-slide-active")>=0,isVisible:p.indexOf("swiper-slide-visible")>=0,isPrev:p.indexOf("swiper-slide-prev")>=0,isNext:p.indexOf("swiper-slide-next")>=0},x=()=>typeof n=="function"?n(g):n,y=()=>{v(!0)};return Y.createElement(t,ii({ref:h,className:Tr(`${p}${r?` ${r}`:""}`),"data-swiper-slide-index":c,onLoad:y},u),l&&Y.createElement(Un.Provider,{value:g},Y.createElement("div",{className:"swiper-zoom-container","data-swiper-zoom":typeof l=="number"?l:void 0},x(),o&&!f&&Y.createElement("div",{className:"swiper-lazy-preloader"}))),!l&&Y.createElement(Un.Provider,{value:g},x(),o&&!f&&Y.createElement("div",{className:"swiper-lazy-preloader"})))});D.displayName="SwiperSlide";function Ic(){return s("div",{className:"p-[15px] bg-white mt-5 rounded-[8px]",children:[s("div",{className:"flex items-center justify-between pb-[15px] border-b-[1px] border-[#B1B1B1]",children:[s("h3",{className:"text-xl font-bold",children:"Nhà cung cấp trên BestPC - Tại Hà Nội"}),s("div",{className:"flex items-center",children:[s("div",{className:"flex items-center relative border border-[#b1b1b1] mr-[10px] w-[410px] h-[45px] px-[10px] rounded-[4px]",children:[s("i",{className:"icon_2025 map-2"}),s("input",{type:"text",placeholder:"Nhập địa chỉ của bạn để tìm NCC gần nhất",className:"outline-none ml-[5px] h-full w-full"})]}),s("div",{className:"select-sort relative border border-[#b1b1b1] w-[100px] h-[45px] rounded-[4px] overflow-hidden",children:[s("select",{name:"",id:"",className:" appearance-none w-full relative pl-[10px] bg-transparent h-full z-[2]",children:[s("option",{value:"",children:"Sắp xếp"}),s("option",{value:"",children:"Mới"})]}),s("i",{className:"icon_2025 angle-right ml-[5px] absolute right-[7px] top-[12px] z-[1] rotate-[90deg]"})]})]})]}),s("div",{className:"mt-[10px] py-[15px] grid grid-cols-5 text-xl border-b-[1px] border-[#D9D9D9]",children:[s("div",{children:s("b",{children:"Nhà cung cấp"})}),s("div",{children:s("b",{children:"Chính sách vận chuyển"})}),s("div",{children:s("b",{children:"Giá"})}),s("div",{children:s("b",{children:"Sản phẩm"})})]}),s("div",{className:"list ",children:[s("div",{className:"item grid grid-cols-5 py-[10px] border-b-[1px] border-[#D9D9D9]",children:[s("div",{className:"flex items-start supplier",children:[s("div",{className:"logo mr-[10px]",children:[s("div",{className:"w-[70px] h-[70px] p-[10px] block border border-[#F3F3F3] rounded-[4px]",children:s("img",{src:"/assets/images/logo-hacom.png",className:"block w-full h-full object-contain m-[0_auto]",width:"100%",height:"100%",alt:"hacom"})}),s("div",{className:"flex items-center justify-center mt-2",children:[s("i",{className:"icon_2025 map-4"}),s("span",{className:"ml-[5px]",children:"3km"})]})]}),s("div",{children:[s("div",{className:"flex items-center",children:[s("i",{className:"icon-star star4"}),s("span",{className:"ml-[5px] mt-[3px]",children:"4.7"})]}),s("a",{href:"",className:"text-[#1877F2] font-bold",children:"Hanoicomputer"}),s("a",{href:"",className:"text-[#E85933] underline block",children:"Xem 7 cửa hàng"})]})]}),s("div",{className:"ship",children:[s("p",{children:"Miễn phí giao hàng"}),s("p",{children:"Nhận giap hàng và lắp đặt từ 8h00-21:30 các ngày trong tuần kể cả ngày thứ 7, CN"})]}),s("div",{className:"price",children:[s("div",{className:"flex items-center text-base",children:[s("span",{children:"Giá:"}),s("b",{className:"ml-[5px] text-[#D80A00]",children:"9.000.000đ - 20.000.000đ"})]}),s("b",{className:"mt-2",children:"Đã có VAT"})]}),s("div",{className:"",children:[s("p",{className:"name-pro pb-[10px] border-b-[1px] border-[#D9D9D9]",children:"8GB - 9.000.000đ new White"}),s("p",{className:"name-pro py-[10px] border-b-[1px] border-[#D9D9D9]",children:"8GB - 9.000.000đ new White"})]}),s("div",{children:s("a",{href:"",className:"block w-[130px] h-[40px] leading-[40px] m-[auto_0_auto_auto] text-base text-center text-white bg-orange-500 rounded hover:bg-orange-600",children:"Liên hệ ngay"})})]}),s("div",{className:"item grid grid-cols-5 py-[10px] border-b-[1px] border-[#D9D9D9]",children:[s("div",{className:"flex items-start supplier",children:[s("div",{className:"logo mr-[10px]",children:[s("div",{className:"w-[70px] h-[70px] p-[10px] block border border-[#F3F3F3] rounded-[4px]",children:s("img",{src:"/assets/images/logo-hacom.png",className:"block w-full h-full object-contain m-[0_auto]",width:"100%",height:"100%",alt:"hacom"})}),s("div",{className:"flex items-center justify-center mt-2",children:[s("i",{className:"icon_2025 map-4"}),s("span",{className:"ml-[5px]",children:"3km"})]})]}),s("div",{children:[s("div",{className:"flex items-center",children:[s("i",{className:"icon-star star4"}),s("span",{className:"ml-[5px] mt-[3px]",children:"4.7"})]}),s("a",{href:"",className:"text-[#1877F2] font-bold",children:"Hanoicomputer"}),s("a",{href:"",className:"text-[#E85933] underline block",children:"Xem 7 cửa hàng"})]})]}),s("div",{className:"ship",children:[s("p",{children:"Miễn phí giao hàng"}),s("p",{children:"Nhận giap hàng và lắp đặt từ 8h00-21:30 các ngày trong tuần kể cả ngày thứ 7, CN"})]}),s("div",{className:"price",children:[s("div",{className:"flex items-center text-base",children:[s("span",{children:"Giá:"}),s("b",{className:"ml-[5px] text-[#D80A00]",children:"9.000.000đ - 20.000.000đ"})]}),s("b",{className:"mt-2",children:"Đã có VAT"})]}),s("div",{className:"",children:[s("p",{className:"name-pro pb-[10px] border-b-[1px] border-[#D9D9D9]",children:"8GB - 9.000.000đ new White"}),s("p",{className:"name-pro py-[10px] border-b-[1px] border-[#D9D9D9]",children:"8GB - 9.000.000đ new White"})]}),s("div",{children:s("a",{href:"",className:"block w-[130px] h-[40px] leading-[40px] m-[auto_0_auto_auto] text-base text-center text-white bg-orange-500 rounded hover:bg-orange-600",children:"Liên hệ ngay"})})]}),s("div",{className:"item grid grid-cols-5 py-[10px] border-b-[1px] border-[#D9D9D9]",children:[s("div",{className:"flex items-start supplier",children:[s("div",{className:"logo mr-[10px]",children:[s("div",{className:"w-[70px] h-[70px] p-[10px] block border border-[#F3F3F3] rounded-[4px]",children:s("img",{src:"/assets/images/logo-hacom.png",className:"block w-full h-full object-contain m-[0_auto]",width:"100%",height:"100%",alt:"hacom"})}),s("div",{className:"flex items-center justify-center mt-2",children:[s("i",{className:"icon_2025 map-4"}),s("span",{className:"ml-[5px]",children:"3km"})]})]}),s("div",{children:[s("div",{className:"flex items-center",children:[s("i",{className:"icon-star star4"}),s("span",{className:"ml-[5px] mt-[3px]",children:"4.7"})]}),s("a",{href:"",className:"text-[#1877F2] font-bold",children:"Hanoicomputer"}),s("a",{href:"",className:"text-[#E85933] underline block",children:"Xem 7 cửa hàng"})]})]}),s("div",{className:"ship",children:[s("p",{children:"Miễn phí giao hàng"}),s("p",{children:"Nhận giap hàng và lắp đặt từ 8h00-21:30 các ngày trong tuần kể cả ngày thứ 7, CN"})]}),s("div",{className:"price",children:[s("div",{className:"flex items-center text-base",children:[s("span",{children:"Giá:"}),s("b",{className:"ml-[5px] text-[#D80A00]",children:"9.000.000đ - 20.000.000đ"})]}),s("b",{className:"mt-2",children:"Đã có VAT"})]}),s("div",{className:"",children:[s("p",{className:"name-pro pb-[10px] border-b-[1px] border-[#D9D9D9]",children:"8GB - 9.000.000đ new White"}),s("p",{className:"name-pro py-[10px] border-b-[1px] border-[#D9D9D9]",children:"8GB - 9.000.000đ new White"})]}),s("div",{children:s("a",{href:"",className:"block w-[130px] h-[40px] leading-[40px] m-[auto_0_auto_auto] text-base text-center text-white bg-orange-500 rounded hover:bg-orange-600",children:"Liên hệ ngay"})})]})]}),s("a",{href:"",className:"pt-3 block text-center text-[#FF7A00] text-xl hover:text-orange-600",children:"Xem thêm"})]})}const P=(i,e=1e4)=>(i=parseFloat(i+"")||0,Math.round((i+Number.EPSILON)*e)/e),Ui=function(i){if(!(i&&i instanceof Element&&i.offsetParent))return!1;const e=i.scrollHeight>i.clientHeight,t=window.getComputedStyle(i).overflowY,n=t.indexOf("hidden")!==-1,r=t.indexOf("visible")!==-1;return e&&!n&&!r},ni=function(i,e=void 0){return!(!i||i===document.body||e&&i===e)&&(Ui(i)?i:ni(i.parentElement,e))},xe=function(i){var e=new DOMParser().parseFromString(i,"text/html").body;if(e.childElementCount>1){for(var t=document.createElement("div");e.firstChild;)t.appendChild(e.firstChild);return t}return e.firstChild},hn=i=>`${i||""}`.split(" ").filter(e=>!!e),ye=(i,e,t)=>{i&&hn(e).forEach(n=>{i.classList.toggle(n,t||!1)})};class Ze{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 Ke={passive:!1};class Rc{constructor(e,{start:t=()=>!0,move:n=()=>{},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=n,this.endCallback=r;for(const a of["onPointerStart","onTouchStart","onMove","onTouchEnd","onPointerEnd","onWindowBlur"])this[a]=this[a].bind(this);this.element.addEventListener("mousedown",this.onPointerStart,Ke),this.element.addEventListener("touchstart",this.onTouchStart,Ke),this.element.addEventListener("touchmove",this.onMove,Ke),this.element.addEventListener("touchend",this.onTouchEnd),this.element.addEventListener("touchcancel",this.onTouchEnd)}onPointerStart(e){if(!e.buttons||e.button!==0)return;const t=new Ze(e);this.currentPointers.some(n=>n.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 Ze(t),e);window.addEventListener("blur",this.onWindowBlur)}onMove(e){const t=this.currentPointers.slice(),n="changedTouches"in e?Array.from(e.changedTouches||[]).map(a=>new Ze(a)):[new Ze(e)],r=[];for(const a of n){const l=this.currentPointers.findIndex(o=>o.id===a.id);l<0||(r.push(a),this.currentPointers[l]=a)}r.length&&this.moveCallback(e,this.currentPointers.slice(),t)}onPointerEnd(e){e.buttons>0&&e.button!==0||(this.triggerPointerEnd(e,new Ze(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 Ze(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 n=this.currentPointers.findIndex(r=>r.id===t.id);n<0||(this.currentPointers.splice(n,1),this.startPointers.splice(n,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,Ke),this.element.removeEventListener("touchstart",this.onTouchStart,Ke),this.element.removeEventListener("touchmove",this.onMove,Ke),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 qn(i,e){return e?Math.sqrt(Math.pow(e.clientX-i.clientX,2)+Math.pow(e.clientY-i.clientY,2)):0}function Yn(i,e){return e?{clientX:(i.clientX+e.clientX)/2,clientY:(i.clientY+e.clientY)/2}:i}const qi=i=>typeof i=="object"&&i!==null&&i.constructor===Object&&Object.prototype.toString.call(i)==="[object Object]",ne=(i,...e)=>{const t=e.length;for(let n=0;n<t;n++){const r=e[n]||{};Object.entries(r).forEach(([a,l])=>{const o=Array.isArray(l)?[]:{};i[a]||Object.assign(i,{[a]:o}),qi(l)?Object.assign(i[a],ne(o,l)):Array.isArray(l)?Object.assign(i,{[a]:[...l]}):Object.assign(i,{[a]:l})})}return i},yi=function(i,e){return i.split(".").reduce((t,n)=>typeof t=="object"?t[n]:void 0,e)};class si{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?ne({},this.constructor.defaults,e):{};for(const[t,n]of Object.entries(this.option("on")||{}))this.on(t,n)}option(e,...t){let n=yi(e,this.options);return n&&typeof n=="function"&&(n=n.call(this,this,...t)),n}optionFor(e,t,n,...r){let a=yi(t,e);var l;typeof(l=a)!="string"||isNaN(l)||isNaN(parseFloat(l))||(a=parseFloat(a)),a==="true"&&(a=!0),a==="false"&&(a=!1),a&&typeof a=="function"&&(a=a.call(this,this,e,...r));let o=yi(t,this.options);return o&&typeof o=="function"?a=o.call(this,this,e,...r,a):a===void 0&&(a=o),a===void 0?n:a}cn(e){const t=this.options.classes;return t&&t[e]||""}localize(e,t=[]){e=String(e).replace(/\{\{(\w+).?(\w+)?\}\}/g,(n,r,a)=>{let l="";return a?l=this.option(`${r[0]+r.toLowerCase().substring(1)}.l10n.${a}`):r&&(l=this.option(`l10n.${r}`)),l||(l=n),l});for(let n=0;n<t.length;n++)e=e.split(t[n][0]).join(t[n][1]);return e=e.replace(/\{\{(.*?)\}\}/g,(n,r)=>r)}on(e,t){let n=[];typeof e=="string"?n=e.split(" "):Array.isArray(e)&&(n=e),this.events||(this.events=new Map),n.forEach(r=>{let a=this.events.get(r);a||(this.events.set(r,[]),a=[]),a.includes(t)||a.push(t),this.events.set(r,a)})}off(e,t){let n=[];typeof e=="string"?n=e.split(" "):Array.isArray(e)&&(n=e),n.forEach(r=>{const a=this.events.get(r);if(Array.isArray(a)){const l=a.indexOf(t);l>-1&&a.splice(l,1)}})}emit(e,...t){[...this.events.get(e)||[]].forEach(n=>n(this,...t)),e!=="*"&&this.emit("*",e,...t)}}Object.defineProperty(si,"version",{enumerable:!0,configurable:!0,writable:!0,value:"5.0.36"}),Object.defineProperty(si,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:{}});class pn extends si{constructor(e={}){super(e),Object.defineProperty(this,"plugins",{enumerable:!0,configurable:!0,writable:!0,value:{}})}attachPlugins(e={}){const t=new Map;for(const[n,r]of Object.entries(e)){const a=this.option(n),l=this.plugins[n];l||a===!1?l&&a===!1&&(l.detach(),delete this.plugins[n]):t.set(n,new r(this,a||{}))}for(const[n,r]of t)this.plugins[n]=r,r.attach()}detachPlugins(e){e=e||Object.keys(this.plugins);for(const t of e){const n=this.plugins[t];n&&n.detach(),delete this.plugins[t]}return this.emit("detachPlugins"),this}}var F;(function(i){i[i.Init=0]="Init",i[i.Error=1]="Error",i[i.Ready=2]="Ready",i[i.Panning=3]="Panning",i[i.Mousemove=4]="Mousemove",i[i.Destroy=5]="Destroy"})(F||(F={}));const Se=["a","b","c","d","e","f"],kr={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"},Dc={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:kr},Zn='<circle cx="25" cy="25" r="20"></circle>',mn='<div class="f-spinner"><svg viewBox="0 0 50 50">'+Zn+Zn+"</svg></div>",ie=i=>i&&i!==null&&i instanceof Element&&"nodeType"in i,j=(i,e)=>{i&&hn(e).forEach(t=>{i.classList.remove(t)})},M=(i,e)=>{i&&hn(e).forEach(t=>{i.classList.add(t)})},Rt={a:1,b:0,c:0,d:1,e:0,f:0},zc=1e5,Dt=1e4,le="mousemove",Kn="drag",Jn="content",oe="auto";let wi=null,Ni=null;class Ue extends pn{get fits(){return this.contentRect.width-this.contentRect.fitWidth<1&&this.contentRect.height-this.contentRect.fitHeight<1}get isTouchDevice(){return Ni===null&&(Ni=window.matchMedia("(hover: none)").matches),Ni}get isMobile(){return wi===null&&(wi=/iPhone|iPad|iPod|Android/i.test(navigator.userAgent)),wi}get panMode(){return this.options.panMode!==le||this.isTouchDevice?Kn:le}get panOnlyZoomed(){const e=this.options.panOnlyZoomed;return e===oe?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,n=Math.max(e.height/t.fitHeight,e.width/t.fitWidth)||1;return Math.min(this.fullScale,n)}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 Se){const t=e=="e"||e==="f"?1e-4:1e-5;if(Math.abs(this.target[e]-this.current[e])>t)return!1}return!(!this.ignoreBounds&&!this.checkBounds().inBounds)}constructor(e,t={},n={}){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:F.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({},Rt)}),Object.defineProperty(this,"target",{enumerable:!0,configurable:!0,writable:!0,value:Object.assign({},Rt)}),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({},Ue.Plugins),n)),this.emit("attachPlugins"),this.emit("init");const a=this.content;if(a.addEventListener("load",this.onLoad),a.addEventListener("error",this.onError),this.isContentLoading){if(this.option("spinner")){e.classList.add(this.cn("isLoading"));const l=xe(mn);!e.contains(a)||a.parentElement instanceof HTMLPictureElement?this.spinner=e.appendChild(l):this.spinner=((r=a.parentElement)===null||r===void 0?void 0:r.insertBefore(l,a))||null}this.emit("beforeLoad")}else queueMicrotask(()=>{this.enable()})}initContent(){const{container:e}=this,t=this.cn(Jn);let n=this.option(Jn)||e.querySelector(`.${t}`);if(n||(n=e.querySelector("img,picture")||e.firstElementChild,n&&M(n,t)),n instanceof HTMLPictureElement&&(n=n.querySelector("img")),!n)throw new Error("No content found");this.content=n}onLoad(){const{spinner:e,container:t,state:n}=this;e&&(e.remove(),this.spinner=null),this.option("spinner")&&t.classList.remove(this.cn("isLoading")),this.emit("afterLoad"),n===F.Init?this.enable():this.updateMetrics()}onError(){this.state!==F.Destroy&&(this.spinner&&(this.spinner.remove(),this.spinner=null),this.stop(),this.detachEvents(),this.state=F.Error,this.emit("error"))}getNextScale(e){const{fullScale:t,targetScale:n,coverScale:r,maxScale:a,minScale:l}=this;let o=l;switch(e){case"toggleMax":o=n-l<.5*(a-l)?a:l;break;case"toggleCover":o=n-l<.5*(r-l)?r:l;break;case"toggleZoom":o=n-l<.5*(t-l)?t:l;break;case"iterateZoom":let c=[1,t,a].sort((u,h)=>u-h),d=c.findIndex(u=>u>n+1e-5);o=c[d]||1}return o}attachObserver(){var e;const t=()=>{const{container:n,containerRect:r}=this;return Math.abs(r.width-n.getBoundingClientRect().width)>.1||Math.abs(r.height-n.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 Rc(e,{start:this.onPointerDown,move:this.onPointerMove,end:this.onPointerUp}),document.addEventListener(le,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(le,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 n of Se)e?(this.velocity[n]*=1-e,t&&!this.isScaling&&(this.velocity[n]=Math.max(Math.min(this.velocity[n],t),-1*t)),this.current[n]+=this.velocity[n]):this.current[n]=this.target[n];this.setTransform(),this.setEdgeForce(),!this.isResting||this.isDragging?this.rAF=requestAnimationFrame(()=>this.animate()):this.stop("current")}setTargetForce(){for(const e of Se)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:n}=this,r=n.e+e,a=n.f+t,l=this.getBounds(),{x:o,y:c}=l,d=o.min,u=o.max,h=c.min,p=c.max;let m=0,f=0;return d!==1/0&&r<d?m=d-r:u!==1/0&&r>u&&(m=u-r),h!==1/0&&a<h?f=h-a:p!==1/0&&a>p&&(f=p-a),Math.abs(m)<1e-4&&(m=0),Math.abs(f)<1e-4&&(f=0),Object.assign(Object.assign({},l),{xDiff:m,yDiff:f,inBounds:!m&&!f})}clampTargetBounds(){const{target:e}=this,{x:t,y:n}=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)),n.min!==1/0&&(e.f=Math.max(e.f,n.min)),n.max!==1/0&&(e.f=Math.min(e.f,n.max))}calculateContentDim(e=this.current){const{content:t,contentRect:n}=this,{fitWidth:r,fitHeight:a,fullWidth:l,fullHeight:o}=n;let c=l,d=o;if(this.option("zoom")||this.angle!==0){const u=!(t instanceof HTMLImageElement)&&(window.getComputedStyle(t).maxWidth==="none"||window.getComputedStyle(t).maxHeight==="none"),h=u?l:r,p=u?o:a,m=this.getMatrix(e),f=new DOMPoint(0,0).matrixTransform(m),v=new DOMPoint(0+h,0).matrixTransform(m),b=new DOMPoint(0+h,0+p).matrixTransform(m),g=new DOMPoint(0,0+p).matrixTransform(m),x=Math.abs(b.x-f.x),y=Math.abs(b.y-f.y),w=Math.abs(g.x-v.x),N=Math.abs(g.y-v.y);c=Math.max(x,w),d=Math.max(y,N)}return{contentWidth:c,contentHeight:d}}setEdgeForce(){if(this.ignoreBounds||this.isDragging||this.panMode===le||this.targetScale<this.scale)return this.isBouncingX=!1,void(this.isBouncingY=!1);const{target:e}=this,{x:t,y:n,xDiff:r,yDiff:a}=this.checkBounds(),l=this.option("maxVelocity");let o=this.velocity.e,c=this.velocity.f;r!==0?(this.isBouncingX=!0,r*o<=0?o+=.14*r:(o=.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))),l&&(o=Math.max(Math.min(o,l),-1*l))):this.isBouncingX=!1,a!==0?(this.isBouncingY=!0,a*c<=0?c+=.14*a:(c=.14*a,n.min!==1/0&&(this.target.f=Math.max(e.f,n.min)),n.max!==1/0&&(this.target.f=Math.min(e.f,n.max))),l&&(c=Math.max(Math.min(c,l),-1*l))):this.isBouncingY=!1,this.isBouncingX&&(this.velocity.e=o),this.isBouncingY&&(this.velocity.f=c)}enable(){const{content:e}=this,t=new DOMMatrixReadOnly(window.getComputedStyle(e).transform);for(const n of Se)this.current[n]=this.target[n]=t[n];this.updateMetrics(),this.attachObserver(),this.attachEvents(),this.state=F.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 n=e.target;if(!n||e.defaultPrevented)return;if(n.hasAttribute("disabled"))return e.preventDefault(),void e.stopPropagation();if((()=>{const m=window.getSelection();return m&&m.type==="Range"})()&&!n.closest("button"))return;const r=n.closest("[data-panzoom-action]"),a=n.closest("[data-panzoom-change]"),l=r||a,o=l&&ie(l)?l.dataset:null;if(o){const m=o.panzoomChange,f=o.panzoomAction;if((m||f)&&e.preventDefault(),m){let v={};try{v=JSON.parse(m)}catch{console&&console.warn("The given data was not valid JSON")}return void this.applyChange(v)}if(f)return void(this[f]&&this[f]())}if(Math.abs(this.dragOffset.x)>3||Math.abs(this.dragOffset.y)>3)return e.preventDefault(),void e.stopPropagation();if(n.closest("[data-fancybox]"))return;const c=this.content.getBoundingClientRect(),d=this.dragStart;if(d.time&&!this.canZoomOut()&&(Math.abs(c.x-d.x)>2||Math.abs(c.y-d.y)>2))return;this.dragStart.time=0;const u=m=>{this.option("zoom",e)&&m&&typeof m=="string"&&/(iterateZoom)|(toggle(Zoom|Full|Cover|Max)|(zoomTo(Fit|Cover|Max)))/.test(m)&&typeof this[m]=="function"&&(e.preventDefault(),this[m]({event:e}))},h=this.option("click",e),p=this.option("dblClick",e);p?(this.clicks++,this.clicks==1&&(this.clickTimer=setTimeout(()=>{this.clicks===1?(this.emit("click",e),!e.defaultPrevented&&h&&u(h)):(this.emit("dblClick",e),e.defaultPrevented||u(p)),this.clicks=0,this.clickTimer=null},350))):(this.emit("click",e),!e.defaultPrevented&&h&&u(h))}addTrackingPoint(e){const t=this.trackingPoints.filter(n=>n.time>Date.now()-100);t.push(e),this.trackingPoints=t}onPointerDown(e,t,n){var r;if(this.option("touch",e)===!1)return!1;this.pwt=0,this.dragOffset={x:0,y:0,time:0},this.trackingPoints=[];const a=this.content.getBoundingClientRect();if(this.dragStart={x:a.x,y:a.y,top:a.top,left:a.left,time:Date.now()},this.clickTimer)return!1;if(this.panMode===le&&this.targetScale>1)return e.preventDefault(),e.stopPropagation(),!1;const l=e.composedPath()[0];if(!n.length){if(["TEXTAREA","OPTION","INPUT","SELECT","VIDEO","IFRAME"].includes(l.nodeName)||l.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(l.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,n){if(this.option("touch",e)===!1||!this.isDragging||t.length<2&&this.panOnlyZoomed&&P(this.targetScale)<=P(this.minScale)||(this.emit("touchMove",e),e.defaultPrevented))return;this.addTrackingPoint(t[0]);const{content:r}=this,a=Yn(n[0],n[1]),l=Yn(t[0],t[1]);let o=0,c=0;if(t.length>1){const y=r.getBoundingClientRect();o=a.clientX-y.left-.5*y.width,c=a.clientY-y.top-.5*y.height}const d=qn(n[0],n[1]),u=qn(t[0],t[1]);let h=d?u/d:1,p=l.clientX-a.clientX,m=l.clientY-a.clientY;this.dragOffset.x+=p,this.dragOffset.y+=m,this.dragOffset.time=Date.now()-this.dragStart.time;let f=P(this.targetScale)===P(this.minScale)&&this.option("lockAxis");if(f&&!this.lockedAxis)if(f==="xy"||f==="y"||e.type==="touchmove"){if(Math.abs(this.dragOffset.x)<6&&Math.abs(this.dragOffset.y)<6)return void e.preventDefault();const y=Math.abs(180*Math.atan2(this.dragOffset.y,this.dragOffset.x)/Math.PI);this.lockedAxis=y>45&&y<135?"y":"x",this.dragOffset.x=0,this.dragOffset.y=0,p=0,m=0}else this.lockedAxis=f;if(ni(e.target,this.content)&&(f="x",this.dragOffset.y=0),f&&f!=="xy"&&this.lockedAxis!==f&&P(this.targetScale)===P(this.minScale))return;e.cancelable&&e.preventDefault(),this.container.classList.add(this.cn("isDragging"));const v=this.checkBounds(p,m);this.option("rubberband")?(this.isInfinite!=="x"&&(v.xDiff>0&&p<0||v.xDiff<0&&p>0)&&(p*=Math.max(0,.5-Math.abs(.75/this.contentRect.fitWidth*v.xDiff))),this.isInfinite!=="y"&&(v.yDiff>0&&m<0||v.yDiff<0&&m>0)&&(m*=Math.max(0,.5-Math.abs(.75/this.contentRect.fitHeight*v.yDiff)))):(v.xDiff&&(p=0),v.yDiff&&(m=0));const b=this.targetScale,g=this.minScale,x=this.maxScale;b<.5*g&&(h=Math.max(h,g)),b>1.5*x&&(h=Math.min(h,x)),this.lockedAxis==="y"&&P(b)===P(g)&&(p=0),this.lockedAxis==="x"&&P(b)===P(g)&&(m=0),this.applyChange({originX:o,originY:c,panX:p,panY:m,scale:h,friction:this.option("dragFriction"),ignoreBounds:!0})}onPointerUp(e,t,n){if(n.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=[]),ni(e.target,this.content)&&this.lockedAxis==="y"&&(this.trackingPoints=[]),this.emit("touchEnd",e),this.isDragging=!1,this.lockedAxis=!1,this.state!==F.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 y of Se)this.velocity[y]=0;this.target.e=this.current.e,this.target.f=this.current.f,j(this.container,"is-scaling"),j(this.container,"is-animating"),this.isTicking=!1;const{trackingPoints:n}=this,r=n[0],a=n[n.length-1];let l=0,o=0,c=0;a&&r&&(l=a.clientX-r.clientX,o=a.clientY-r.clientY,c=a.time-r.time);const d=((e=window.visualViewport)===null||e===void 0?void 0:e.scale)||1;d!==1&&(l*=d,o*=d);let u=0,h=0,p=0,m=0,f=this.option("decelFriction");const v=this.targetScale;if(c>0){p=Math.abs(l)>3?l/(c/30):0,m=Math.abs(o)>3?o/(c/30):0;const y=this.option("maxVelocity");y&&(p=Math.max(Math.min(p,y),-1*y),m=Math.max(Math.min(m,y),-1*y))}p&&(u=p/(1/(1-f)-1)),m&&(h=m/(1/(1-f)-1)),(this.option("lockAxis")==="y"||this.option("lockAxis")==="xy"&&this.lockedAxis==="y"&&P(v)===this.minScale)&&(u=p=0),(this.option("lockAxis")==="x"||this.option("lockAxis")==="xy"&&this.lockedAxis==="x"&&P(v)===this.minScale)&&(h=m=0);const b=this.dragOffset.x,g=this.dragOffset.y,x=this.option("dragMinThreshold")||0;Math.abs(b)<x&&Math.abs(g)<x&&(u=h=0,p=m=0),(this.option("zoom")&&(v<this.minScale-1e-5||v>this.maxScale+1e-5)||t&&!u&&!h)&&(f=.35),this.applyChange({panX:u,panY:h,friction:f}),this.emit("decel",p,m,b,g)}onWheel(e){var t=[-e.deltaX||0,-e.deltaY||0,-e.detail||0].reduce(function(a,l){return Math.abs(l)>Math.abs(a)?l:a});const n=Math.max(-1,Math.min(1,t));if(this.emit("wheel",e,n),this.panMode===le||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:n,contentRect:r}=this,a=Object.assign({},Rt);for(const b of Se){const g=b=="e"||b==="f"?Dt:zc;a[b]=P(e[b],g),Math.abs(t[b]-e[b])<(b=="e"||b==="f"?.51:.001)&&(e[b]=t[b])}let{a:l,b:o,c,d,e:u,f:h}=a,p=`matrix(${l}, ${o}, ${c}, ${d}, ${u}, ${h})`,m=n.parentElement instanceof HTMLPictureElement?n.parentElement:n;if(this.option("transformParent")&&(m=m.parentElement||m),m.style.transform===p)return;m.style.transform=p;const{contentWidth:f,contentHeight:v}=this.calculateContentDim();r.width=f,r.height=v,this.emit("afterTransform")}updateMetrics(e=!1){var t;if(!this||this.state===F.Destroy||this.isContentLoading)return;const n=Math.max(1,((t=window.visualViewport)===null||t===void 0?void 0:t.scale)||1),{container:r,content:a}=this,l=a instanceof HTMLImageElement,o=r.getBoundingClientRect(),c=getComputedStyle(this.container);let d=o.width*n,u=o.height*n;const h=parseFloat(c.paddingTop)+parseFloat(c.paddingBottom),p=d-(parseFloat(c.paddingLeft)+parseFloat(c.paddingRight)),m=u-h;this.containerRect={width:d,height:u,innerWidth:p,innerHeight:m};const f=parseFloat(a.dataset.width||"")||(O=>{let X=0;return X=O instanceof HTMLImageElement?O.naturalWidth:O instanceof SVGElement?O.width.baseVal.value:Math.max(O.offsetWidth,O.scrollWidth),X||0})(a),v=parseFloat(a.dataset.height||"")||(O=>{let X=0;return X=O instanceof HTMLImageElement?O.naturalHeight:O instanceof SVGElement?O.height.baseVal.value:Math.max(O.offsetHeight,O.scrollHeight),X||0})(a);let b=this.option("width",f)||oe,g=this.option("height",v)||oe;const x=b===oe,y=g===oe;typeof b!="number"&&(b=f),typeof g!="number"&&(g=v),x&&(b=f*(g/v)),y&&(g=v/(f/b));let w=a.parentElement instanceof HTMLPictureElement?a.parentElement:a;this.option("transformParent")&&(w=w.parentElement||w);const N=w.getAttribute("style")||"";w.style.setProperty("transform","none","important"),l&&(w.style.width="",w.style.height=""),w.offsetHeight;const k=a.getBoundingClientRect();let E=k.width*n,_=k.height*n,S=E,T=_;E=Math.min(E,b),_=Math.min(_,g),l?{width:E,height:_}=((O,X,re,R)=>{const U=re/O,Z=R/X,$=Math.min(U,Z);return{width:O*=$,height:X*=$}})(b,g,E,_):(E=Math.min(E,b),_=Math.min(_,g));let C=.5*(T-_),L=.5*(S-E);this.contentRect=Object.assign(Object.assign({},this.contentRect),{top:k.top-o.top+C,bottom:o.bottom-k.bottom+C,left:k.left-o.left+L,right:o.right-k.right+L,fitWidth:E,fitHeight:_,width:E,height:_,fullWidth:b,fullHeight:g}),w.style.cssText=N,l&&(w.style.width=`${E}px`,w.style.height=`${_}px`),this.setTransform(),e!==!0&&this.emit("refresh"),this.ignoreBounds||(P(this.targetScale)<P(this.minScale)?this.zoomTo(this.minScale,{friction:0}):this.targetScale>this.maxScale?this.zoomTo(this.maxScale,{friction:0}):this.state===F.Init||this.checkBounds().inBounds||this.requestTick()),this.updateControls()}calculateBounds(){const{contentWidth:e,contentHeight:t}=this.calculateContentDim(this.target),{targetScale:n,lockedAxis:r}=this,{fitWidth:a,fitHeight:l}=this.contentRect;let o=0,c=0,d=0,u=0;const h=this.option("infinite");if(h===!0||r&&h===r)o=-1/0,d=1/0,c=-1/0,u=1/0;else{let{containerRect:p,contentRect:m}=this,f=P(a*n,Dt),v=P(l*n,Dt),{innerWidth:b,innerHeight:g}=p;if(p.width===f&&(b=p.width),p.width===v&&(g=p.height),e>b){d=.5*(e-b),o=-1*d;let x=.5*(m.right-m.left);o+=x,d+=x}if(a>b&&e<b&&(o-=.5*(a-b),d-=.5*(a-b)),t>g){u=.5*(t-g),c=-1*u;let x=.5*(m.bottom-m.top);c+=x,u+=x}l>g&&t<g&&(o-=.5*(l-g),d-=.5*(l-g))}return{x:{min:o,max:d},y:{min:c,max:u}}}getBounds(){const e=this.option("bounds");return e!==oe?e:this.calculateBounds()}updateControls(){const e=this,t=e.container,{panMode:n,contentRect:r,targetScale:a,minScale:l}=e;let o=l,c=e.option("click")||!1;c&&(o=e.getNextScale(c));let d=e.canZoomIn(),u=e.canZoomOut(),h=n===Kn&&!!this.option("touch"),p=u&&h;if(h&&(P(a)<P(l)&&!this.panOnlyZoomed&&(p=!0),(P(r.width,1)>P(r.fitWidth,1)||P(r.height,1)>P(r.fitHeight,1))&&(p=!0)),P(r.width*a,1)<P(r.fitWidth,1)&&(p=!1),n===le&&(p=!1),ye(t,this.cn("isDraggable"),p),!this.option("zoom"))return;let m=d&&P(o)>P(a),f=!m&&!p&&u&&P(o)<P(a);ye(t,this.cn("canZoomIn"),m),ye(t,this.cn("canZoomOut"),f);for(const v of t.querySelectorAll("[data-panzoom-action]")){let b=!1,g=!1;switch(v.dataset.panzoomAction){case"zoomIn":d?b=!0:g=!0;break;case"zoomOut":u?b=!0:g=!0;break;case"toggleZoom":case"iterateZoom":d||u?b=!0:g=!0;const x=v.querySelector("g");x&&(x.style.display=d?"":"none")}b?(v.removeAttribute("disabled"),v.removeAttribute("tabindex")):g&&(v.setAttribute("disabled",""),v.setAttribute("tabindex","-1"))}}panTo({x:e=this.target.e,y:t=this.target.f,scale:n=this.targetScale,friction:r=this.option("friction"),angle:a=0,originX:l=0,originY:o=0,flipX:c=!1,flipY:d=!1,ignoreBounds:u=!1}){this.state!==F.Destroy&&this.applyChange({panX:e-this.target.e,panY:t-this.target.f,scale:n/this.targetScale,angle:a,originX:l,originY:o,friction:r,flipX:c,flipY:d,ignoreBounds:u})}applyChange({panX:e=0,panY:t=0,scale:n=1,angle:r=0,originX:a=-this.current.e,originY:l=-this.current.f,friction:o=this.option("friction"),flipX:c=!1,flipY:d=!1,ignoreBounds:u=!1,bounce:h=this.option("bounce")}){const p=this.state;if(p===F.Destroy)return;this.rAF&&(cancelAnimationFrame(this.rAF),this.rAF=null),this.friction=o||0,this.ignoreBounds=u;const{current:m}=this,f=m.e,v=m.f,b=this.getMatrix(this.target);let g=new DOMMatrix().translate(f,v).translate(a,l).translate(e,t);if(this.option("zoom")){if(!u){const x=this.targetScale,y=this.minScale,w=this.maxScale;x*n<y&&(n=y/x),x*n>w&&(n=w/x)}g=g.scale(n)}g=g.translate(-a,-l).translate(-f,-v).multiply(b),r&&(g=g.rotate(r)),c&&(g=g.scale(-1,1)),d&&(g=g.scale(1,-1));for(const x of Se)x!=="e"&&x!=="f"&&(g[x]>this.minScale+1e-5||g[x]<this.minScale-1e-5)?this.target[x]=g[x]:this.target[x]=P(g[x],Dt);(this.targetScale<this.scale||Math.abs(n-1)>.1||this.panMode===le||h===!1)&&!u&&this.clampTargetBounds(),p===F.Init?this.animate():this.isResting||(this.state=F.Panning,this.requestTick())}stop(e=!1){if(this.state===F.Init||this.state===F.Destroy)return;const t=this.isTicking;this.rAF&&(cancelAnimationFrame(this.rAF),this.rAF=null),this.isBouncingX=!1,this.isBouncingY=!1;for(const n of Se)this.velocity[n]=0,e==="current"?this.current[n]=this.target[n]:e==="target"&&(this.target[n]=this.current[n]);this.setTransform(),j(this.container,"is-scaling"),j(this.container,"is-animating"),this.isTicking=!1,this.state=F.Ready,t&&(this.emit("endAnimation"),this.updateControls())}requestTick(){this.isTicking||(this.emit("startAnimation"),this.updateControls(),M(this.container,"is-animating"),this.isScaling&&M(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!==le||!e||P(this.targetScale)<=P(this.minScale))return;this.emit("mouseMove",e);const{container:n,containerRect:r,contentRect:a}=this,l=r.width,o=r.height,c=n.getBoundingClientRect(),d=(e.clientX||0)-c.left,u=(e.clientY||0)-c.top;let{contentWidth:h,contentHeight:p}=this.calculateContentDim(this.target);const m=this.option("mouseMoveFactor");m>1&&(h!==l&&(h*=m),p!==o&&(p*=m));let f=.5*(h-l)-d/l*100/100*(h-l);f+=.5*(a.right-a.left);let v=.5*(p-o)-u/o*100/100*(p-o);v+=.5*(a.bottom-a.top),this.applyChange({panX:f-this.target.e,panY:v-this.target.f,friction:t})}zoomWithWheel(e){if(this.state===F.Destroy||this.state===F.Init)return;const t=Date.now();if(t-this.pwt<45)return void e.preventDefault();this.pwt=t;var n=[-e.deltaX||0,-e.deltaY||0,-e.detail||0].reduce(function(d,u){return Math.abs(u)>Math.abs(d)?u:d});const r=Math.max(-1,Math.min(1,n)),{targetScale:a,maxScale:l,minScale:o}=this;let c=a*(100+45*r)/100;P(c)<P(o)&&P(a)<=P(o)?(this.cwd+=Math.abs(r),c=o):P(c)>P(l)&&P(a)>=P(l)?(this.cwd+=Math.abs(r),c=l):(this.cwd=0,c=Math.max(Math.min(c,l),o)),this.cwd>this.option("wheelLimit")||(e.preventDefault(),P(c)!==P(a)&&this.zoomTo(c,{event:e}))}canZoomIn(){return this.option("zoom")&&(P(this.contentRect.width,1)<P(this.contentRect.fitWidth,1)||P(this.targetScale)<P(this.maxScale))}canZoomOut(){return this.option("zoom")&&P(this.targetScale)>P(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=oe,originX:n=oe,originY:r=oe,event:a}={}){if(this.isContentLoading||this.state===F.Destroy)return;const{targetScale:l,fullScale:o,maxScale:c,coverScale:d}=this;if(this.stop(),this.panMode===le&&(a=this.pmme||a),a||n===oe||r===oe){const h=this.content.getBoundingClientRect(),p=this.container.getBoundingClientRect(),m=a?a.clientX:p.left+.5*p.width,f=a?a.clientY:p.top+.5*p.height;n=m-h.left-.5*h.width,r=f-h.top-.5*h.height}let u=1;typeof e=="number"?u=e:e==="full"?u=o:e==="cover"?u=d:e==="max"?u=c:e==="fit"?u=1:e==="next"&&(u=this.getNextScale("iterateZoom")),u=u/l||1,t=t===oe?u>1?.15:.25:t,this.applyChange({scale:u,originX:n,originY:r,friction:t}),a&&this.panMode===le&&this.panWithMouse(a,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:n}=this;this.applyChange({panX:.5*e.width-(t.left+.5*t.fitWidth)-n.e,panY:.5*e.height-(t.top+.5*t.fitHeight)-n.f,scale:e.width/t.fitWidth/this.targetScale,originX:0,originY:0,ignoreBounds:!0})}fitY(){this.stop("target");const{containerRect:e,contentRect:t,target:n}=this;this.applyChange({panX:.5*e.width-(t.left+.5*t.fitWidth)-n.e,panY:.5*e.innerHeight-(t.top+.5*t.fitHeight)-n.f,scale:e.height/t.fitHeight/this.targetScale,originX:0,originY:0,ignoreBounds:!0})}toggleFS(){const{container:e}=this,t=this.cn("inFullscreen"),n=this.cn("htmlHasFullscreen");e.classList.toggle(t);const r=e.classList.contains(t);r?(document.documentElement.classList.add(n),document.addEventListener("keydown",this.onKeydown,!0)):(document.documentElement.classList.remove(n),document.removeEventListener("keydown",this.onKeydown,!0)),this.updateMetrics(),this.emit(r?"enterFS":"exitFS")}getMatrix(e=this.current){const{a:t,b:n,c:r,d:a,e:l,f:o}=e;return new DOMMatrix([t,n,r,a,l,o])}reset(e){if(this.state!==F.Init&&this.state!==F.Destroy){this.stop("current");for(const t of Se)this.target[t]=Rt[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=F.Panning,this.requestTick())}}destroy(){this.stop(),this.state=F.Destroy,this.detachEvents(),this.detachObserver();const{container:e,content:t}=this,n=this.option("classes")||{};for(const r of Object.values(n))e.classList.remove(r+"");t&&(t.removeEventListener("load",this.onLoad),t.removeEventListener("error",this.onError)),this.detachPlugins()}}Object.defineProperty(Ue,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:Dc}),Object.defineProperty(Ue,"Plugins",{enumerable:!0,configurable:!0,writable:!0,value:{}});const Qn=function(i,e){let t=!0;return(...n)=>{t&&(t=!1,i(...n),setTimeout(()=>{t=!0},e))}},es=(i,e)=>{let t=[];return i.childNodes.forEach(n=>{n.nodeType!==Node.ELEMENT_NODE||e&&!n.matches(e)||t.push(n)}),t},jc={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 q;(function(i){i[i.Init=0]="Init",i[i.Ready=1]="Ready",i[i.Destroy=2]="Destroy"})(q||(q={}));const _i=i=>{if(typeof i=="string"||i instanceof HTMLElement)i={html:i};else{const e=i.thumb;e!==void 0&&(typeof e=="string"&&(i.thumbSrc=e),e instanceof HTMLImageElement&&(i.thumbEl=e,i.thumbElSrc=e.src,i.thumbSrc=e.src),delete i.thumb)}return Object.assign({html:"",el:null,isDom:!1,class:"",customClass:"",index:-1,dim:0,gap:0,pos:0,transition:!1},i)},Fc=(i={})=>Object.assign({index:-1,slides:[],dim:0,pos:-1},i);class ge extends si{constructor(e,t){super(t),Object.defineProperty(this,"instance",{enumerable:!0,configurable:!0,writable:!0,value:e})}attach(){}detach(){}}const Bc={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 Mr extends ge{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"),M(e,this.cn("list")),e.setAttribute("role","tablist");const t=this.instance.container;t.appendChild(e),M(t,this.cn("hasDots")),this.list=e}return e}refresh(){var e;const t=this.instance.pages.length,n=Math.min(2,this.option("minCount")),r=Math.max(2e3,this.option("maxCount")),a=this.option("dynamicFrom");if(t<n||t>r)return void this.cleanup();const l=typeof a=="number"&&t>5&&t>=a,o=!this.list||this.isDynamic!==l||this.list.children.length!==t;o&&this.cleanup();const c=this.build();if(ye(c,this.cn("isDynamic"),!!l),o)for(let h=0;h<t;h++)c.append(this.createItem(h));let d,u=0;for(const h of[...c.children]){const p=u===this.instance.page;p&&(d=h),ye(h,this.cn("isCurrent"),p),(e=h.children[0])===null||e===void 0||e.setAttribute("aria-selected",p?"true":"false");for(const m of["isBeforePrev","isPrev","isNext","isAfterNext"])j(h,this.cn(m));u++}if(d=d||c.firstChild,l&&d){const h=d.previousElementSibling,p=h&&h.previousElementSibling;M(h,this.cn("isPrev")),M(p,this.cn("isBeforePrev"));const m=d.nextElementSibling,f=m&&m.nextElementSibling;M(m,this.cn("isNext")),M(f,this.cn("isAfterNext"))}this.isDynamic=l}createItem(e=0){var t;const n=document.createElement("li");n.setAttribute("role","presentation");const r=xe(this.instance.localize(this.option("dotTpl"),[["%d",e+1]]).replace(/\%i/g,e+""));return n.appendChild(r),(t=n.children[0])===null||t===void 0||t.setAttribute("role","tab"),n}cleanup(){this.list&&(this.list.remove(),this.list=null),this.isDynamic=!1,j(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(Mr,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:Bc});const zt="disabled",jt="next",ts="prev";class Lr extends ge{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,n=e.page;if(t<2)return void this.cleanup();this.build();let r=this.prev,a=this.next;r&&a&&(r.removeAttribute(zt),a.removeAttribute(zt),e.isInfinite||(n<=0&&r.setAttribute(zt,""),n>=t-1&&a.setAttribute(zt,"")))}addBtn(e){var t;const n=this.instance,r=document.createElement("button");r.setAttribute("tabindex","0"),r.setAttribute("title",n.localize(`{{${e.toUpperCase()}}}`)),M(r,this.cn("button")+" "+this.cn(e===jt?"isNext":"isPrev"));const a=n.isRTL?e===jt?ts:jt:e;var l;return r.innerHTML=n.localize(this.option(`${a}Tpl`)),r.dataset[`carousel${l=e,l?l.match("^[a-z]")?l.charAt(0).toUpperCase()+l.substring(1):l:""}`]="true",(t=this.container)===null||t===void 0||t.appendChild(r),r}build(){const e=this.instance.container,t=this.cn("container");let{container:n,prev:r,next:a}=this;n||(n=e.querySelector("."+t),this.isDom=!!n),n||(n=document.createElement("div"),M(n,t),e.appendChild(n)),this.container=n,a||(a=n.querySelector("[data-carousel-next]")),a||(a=this.addBtn(jt)),this.next=a,r||(r=n.querySelector("[data-carousel-prev]")),r||(r=this.addBtn(ts)),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(Lr,"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>',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 Ar extends ge{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===q.Ready?this.onNavReady(e):e.on("ready",this.onNavReady),t.state===q.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,n){this.onNavTouch(e,e.panzoom,n)}onNavTouch(e,t,n){var r,a;if(Math.abs(t.dragOffset.x)>3||Math.abs(t.dragOffset.y)>3)return;const l=n.target,{nav:o,target:c}=this;if(!o||!c||!l)return;const d=l.closest("[data-index]");if(n.stopPropagation(),n.preventDefault(),!d)return;const u=parseInt(d.dataset.index||"",10)||0,h=c.getPageForSlide(u),p=o.getPageForSlide(u);o.slideTo(p),c.slideTo(h,{friction:((a=(r=this.nav)===null||r===void 0?void 0:r.plugins)===null||a===void 0?void 0:a.Sync.option("friction"))||0}),this.markSelectedSlide(u)}onNavCreateSlide(e,t){t.index===this.selectedIndex&&this.markSelectedSlide(t.index)}onTargetChange(){var e,t;const{target:n,nav:r}=this;if(!n||!r||r.state!==q.Ready||n.state!==q.Ready)return;const a=(t=(e=n.pages[n.page])===null||e===void 0?void 0:e.slides[0])===null||t===void 0?void 0:t.index,l=r.getPageForSlide(a);this.markSelectedSlide(a),r.slideTo(l,r.prevPage===null&&n.prevPage===null?{friction:0}:void 0)}markSelectedSlide(e){const t=this.nav;t&&t.state===q.Ready&&(this.selectedIndex=e,[...t.slides].map(n=>{n.el&&n.el.classList[n.index===e?"add":"remove"]("is-nav-selected")}))}attach(){const e=this;let t=e.options.target,n=e.options.nav;t?e.addAsNavFor(t):n&&e.addAsTargetFor(n)}detach(){const e=this,t=e.nav,n=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,n&&(n.off("ready",e.onTargetReady),n.off("refresh",e.onTargetChange),n.off("change",e.onTargetChange)),e.target=null}}Object.defineProperty(Ar,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:{friction:.35}});const $c={Navigation:Lr,Dots:Mr,Sync:Ar},Ft="animationend",is="isSelected",Bt="slide";class We extends pn{get axis(){return this.isHorizontal?"e":"f"}get isEnabled(){return this.state===q.Ready}get isInfinite(){let e=!1;const{contentDim:t,viewportDim:n,pages:r,slides:a}=this,l=a[0];return r.length>=2&&l&&t+l.dim>=n&&(e=this.option("infinite")),e}get isRTL(){return this.option("direction")==="rtl"}get isHorizontal(){return this.option("axis")==="x"}constructor(e,t={},n={}){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:q.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||!ie(e))throw new Error("No Element found");this.container=e,this.slideNext=Qn(this.slideNext.bind(this),150),this.slidePrev=Qn(this.slidePrev.bind(this),150),this.userOptions=t,this.userPlugins=n,queueMicrotask(()=>{this.processOptions()})}processOptions(){var e,t;const n=ne({},We.defaults,this.userOptions);let r="";const a=n.breakpoints;if(a&&qi(a))for(const[l,o]of Object.entries(a))window.matchMedia(l).matches&&qi(o)&&(r+=l,ne(n,o));r===this.bp&&this.state!==q.Init||(this.bp=r,this.state===q.Ready&&(n.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!==q.Init&&this.destroy(),super.setOptions(n),this.option("enabled")===!1?this.attachEvents():setTimeout(()=>{this.init()},0))}init(){this.state=q.Init,this.emit("init"),this.attachPlugins(Object.assign(Object.assign({},We.Plugins),this.userPlugins)),this.emit("attachPlugins"),this.initLayout(),this.initSlides(),this.updateMetrics(),this.setInitialPosition(),this.initPanzoom(),this.attachEvents(),this.state=q.Ready,this.emit("ready")}initLayout(){const{container:e}=this,t=this.option("classes");M(e,this.cn("container")),ye(e,t.isLTR,!this.isRTL),ye(e,t.isRTL,this.isRTL),ye(e,t.isVertical,!this.isHorizontal),ye(e,t.isHorizontal,this.isHorizontal);let n=this.option("viewport")||e.querySelector(`.${t.viewport}`);n||(n=document.createElement("div"),M(n,t.viewport),n.append(...es(e,`.${t.slide}`)),e.prepend(n)),n.addEventListener("scroll",this.onScroll);let r=this.option("track")||e.querySelector(`.${t.track}`);r||(r=document.createElement("div"),M(r,t.track),r.append(...Array.from(n.childNodes))),r.setAttribute("aria-live","polite"),n.contains(r)||n.prepend(r),this.viewport=n,this.track=r,this.emit("initLayout")}initSlides(){const{track:e}=this;if(!e)return;const t=[...this.slides],n=[];[...es(e,`.${this.cn(Bt)}`)].forEach(r=>{if(ie(r)){const a=_i({el:r,isDom:!0,index:this.slides.length});n.push(a)}});for(let r of[...this.option("slides",[])||[],...t])n.push(_i(r));this.slides=n;for(let r=0;r<this.slides.length;r++)this.slides[r].index=r;for(const r of n)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:n}=this;if(!e||!t.length)return;let r=this.page;t[r]||(this.page=r=0);const a=(t[r].pos||0)*(this.isRTL&&n?1:-1),l=n?`${a}px`:"0",o=n?"0":`${a}px`;e.style.transform=`translate3d(${l}, ${o}, 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 Ue(this.viewport,ne({},{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,n,...r)=>{this.emit(`Panzoom.${n}`,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:n}=this;let r=this.option("slidesPerPage");r=(r==="auto"||t<=n)&&this.option("fill")!==!1?1/0:parseFloat(r+"");let a=0,l=0,o=0;for(const c of this.slides)(!e.length||l+c.dim-n>.05||o>=r)&&(e.push(Fc()),a=e.length-1,l=0,o=0),e[a].slides.push(c),l+=c.dim+c.gap,o++;return e}processPages(){const e=this.pages,{contentDim:t,viewportDim:n,isInfinite:r}=this,a=this.option("center"),l=this.option("fill"),o=l&&a&&t>n&&!r;if(e.forEach((u,h)=>{var p;u.index=h,u.pos=((p=u.slides[0])===null||p===void 0?void 0:p.pos)||0,u.dim=0;for(const[m,f]of u.slides.entries())u.dim+=f.dim,m<u.slides.length-1&&(u.dim+=f.gap);o&&u.pos+.5*u.dim<.5*n?u.pos=0:o&&u.pos+.5*u.dim>=t-.5*n?u.pos=t-n:a&&(u.pos+=-.5*(n-u.dim))}),e.forEach(u=>{l&&!r&&t>n&&(u.pos=Math.max(u.pos,0),u.pos=Math.min(u.pos,t-n)),u.pos=P(u.pos,1e3),u.dim=P(u.dim,1e3),Math.abs(u.pos)<=.1&&(u.pos=0)}),r)return e;const c=[];let d;return e.forEach(u=>{const h=Object.assign({},u);d&&h.pos===d.pos?(d.dim+=h.dim,d.slides=[...d.slides,...h.slides]):(h.index=c.length,d=h,c.push(h))}),c}getPageFromIndex(e=0){const t=this.pages.length;let n;return e=parseInt((e||0).toString())||0,n=this.isInfinite?(e%t+t)%t:Math.max(Math.min(e,t-1),0),n}getSlideMetrics(e){var t,n;const r=this.isHorizontal?"width":"height";let a=0,l=0,o=e.el;const c=!(!o||o.parentNode);if(o?a=parseFloat(o.dataset[r]||"")||0:(o=document.createElement("div"),o.style.visibility="hidden",(this.track||document.body).prepend(o)),M(o,this.cn(Bt)+" "+e.class+" "+e.customClass),a)o.style[r]=`${a}px`,o.style[r==="width"?"height":"width"]="";else{c&&(this.track||document.body).prepend(o),a=o.getBoundingClientRect()[r]*Math.max(1,((t=window.visualViewport)===null||t===void 0?void 0:t.scale)||1);let u=o[this.isHorizontal?"offsetWidth":"offsetHeight"];u-1>a&&(a=u)}const d=getComputedStyle(o);return d.boxSizing==="content-box"&&(this.isHorizontal?(a+=parseFloat(d.paddingLeft)||0,a+=parseFloat(d.paddingRight)||0):(a+=parseFloat(d.paddingTop)||0,a+=parseFloat(d.paddingBottom)||0)),l=parseFloat(d[this.isHorizontal?"marginRight":"marginBottom"])||0,c?(n=o.parentElement)===null||n===void 0||n.removeChild(o):e.el||o.remove(),{dim:P(a,1e3),gap:P(l,1e3)}}getBounds(){const{isInfinite:e,isRTL:t,isHorizontal:n,pages:r}=this;let a={min:0,max:0};if(e)a={min:-1/0,max:1/0};else if(r.length){const l=r[0].pos,o=r[r.length-1].pos;a=t&&n?{min:l,max:o}:{min:-1*o,max:-1*l}}return{x:n?a:{min:0,max:0},y:n?{min:0,max:0}:a}}repositionSlides(){let e,{isHorizontal:t,isRTL:n,isInfinite:r,viewport:a,viewportDim:l,contentDim:o,page:c,pages:d,slides:u,panzoom:h}=this,p=0,m=0,f=0,v=0;h?v=-1*h.current[this.axis]:d[c]&&(v=d[c].pos||0),e=t?n?"right":"left":"top",n&&t&&(v*=-1);for(const y of u){const w=y.el;w?(e==="top"?(w.style.right="",w.style.left=""):w.style.top="",y.index!==p?w.style[e]=m===0?"":`${P(m,1e3)}px`:w.style[e]="",f+=y.dim+y.gap,p++):m+=y.dim+y.gap}if(r&&f&&a){let y=getComputedStyle(a),w="padding",N=t?"Right":"Bottom",k=parseFloat(y[w+(t?"Left":"Top")]);v-=k,l+=k,l+=parseFloat(y[w+N]);for(const E of u)E.el&&(P(E.pos)<P(l)&&P(E.pos+E.dim+E.gap)<P(v)&&P(v)>P(o-l)&&(E.el.style[e]=`${P(m+f,1e3)}px`),P(E.pos+E.gap)>=P(o-l)&&P(E.pos)>P(v+l)&&P(v)<P(l)&&(E.el.style[e]=`-${P(f,1e3)}px`))}let b,g,x=[...this.inTransition];if(x.length>1&&(b=d[x[0]],g=d[x[1]]),b&&g){let y=0;for(const w of u)w.el?this.inTransition.has(w.index)&&b.slides.indexOf(w)<0&&(w.el.style[e]=`${P(y+(b.pos-g.pos),1e3)}px`):y+=w.dim+w.gap}}createSlideEl(e){const{track:t,slides:n}=this;if(!t||!e||e.el&&e.el.parentNode)return;const r=e.el||document.createElement("div");M(r,this.cn(Bt)),M(r,e.class),M(r,e.customClass);const a=e.html;a&&(a instanceof HTMLElement?r.appendChild(a):r.innerHTML=e.html+"");const l=[];n.forEach((u,h)=>{u.el&&l.push(h)});const o=e.index;let c=null;l.length&&(c=n[l.reduce((u,h)=>Math.abs(h-o)<Math.abs(u-o)?h:u)]);const d=c&&c.el&&c.el.parentNode?c.index<e.index?c.el.nextSibling:c.el:null;t.insertBefore(r,t.contains(d)?d:null),e.el=r,this.emit("createSlide",e)}removeSlideEl(e,t=!1){const n=e==null?void 0:e.el;if(!n||!n.parentNode)return;const r=this.cn(is);if(n.classList.contains(r)&&(j(n,r),this.emit("unselectSlide",e)),e.isDom&&!t)return n.removeAttribute("aria-hidden"),n.removeAttribute("data-index"),void(n.style.left="");this.emit("removeSlide",e);const a=new CustomEvent(Ft);n.dispatchEvent(a),e.el&&(e.el.remove(),e.el=null)}transitionTo(e=0,t=this.option("transition")){var n,r,a,l;if(!t)return!1;const o=this.page,{pages:c,panzoom:d}=this;e=parseInt((e||0).toString())||0;const u=this.getPageFromIndex(e);if(!d||!c[u]||c.length<2||Math.abs((((r=(n=c[o])===null||n===void 0?void 0:n.slides[0])===null||r===void 0?void 0:r.dim)||0)-this.viewportDim)>1)return!1;let h=e>o?1:-1;this.isInfinite&&(o===0&&e===c.length-1&&(h=-1),o===c.length-1&&e===0&&(h=1));const p=c[u].pos*(this.isRTL?1:-1);if(o===u&&Math.abs(p-d.target[this.axis])<1)return!1;this.clearTransitions();const m=d.isResting;M(this.container,this.cn("inTransition"));const f=((a=c[o])===null||a===void 0?void 0:a.slides[0])||null,v=((l=c[u])===null||l===void 0?void 0:l.slides[0])||null;this.inTransition.add(v.index),this.createSlideEl(v);let b=f.el,g=v.el;m||t===Bt||(t="fadeFast",b=null);const x=this.isRTL?"next":"prev",y=this.isRTL?"prev":"next";return b&&(this.inTransition.add(f.index),f.transition=t,b.addEventListener(Ft,this.onAnimationEnd),b.classList.add(`f-${t}Out`,`to-${h>0?y:x}`)),g&&(v.transition=t,g.addEventListener(Ft,this.onAnimationEnd),g.classList.add(`f-${t}In`,`from-${h>0?x:y}`)),d.current[this.axis]=p,d.target[this.axis]=p,d.requestTick(),this.onChange(u),!0}manageSlideVisiblity(){const e=new Set,t=new Set,n=this.getVisibleSlides(parseFloat(this.option("preload",0)+"")||0);for(const r of this.slides)n.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(is);if(t)for(const n of this.slides){const r=n.el;r&&(r.dataset.index=`${n.index}`,r.classList.contains("f-thumbs__slide")?this.getVisibleSlides(0).has(n)?r.removeAttribute(e):r.setAttribute(e,"true"):this.pages[this.page].slides.includes(n)?(r.classList.contains(t)||(M(r,t),this.emit("selectSlide",n)),r.removeAttribute(e)):(r.classList.contains(t)&&(j(r,t),this.emit("unselectSlide",n)),r.setAttribute(e,"true")))}}flipInfiniteTrack(){const{axis:e,isHorizontal:t,isInfinite:n,isRTL:r,viewportDim:a,contentDim:l}=this,o=this.panzoom;if(!o||!n)return;let c=o.current[e],d=o.target[e]-c,u=0,h=.5*a;r&&t?(c<-h&&(u=-1,c+=l),c>l-h&&(u=1,c-=l)):(c>h&&(u=1,c-=l),c<-l+h&&(u=-1,c+=l)),u&&(o.current[e]=c,o.target[e]=c+d)}lazyLoadImg(e,t){const n=this,r="f-fadeIn",a="is-preloading";let l=!1,o=null;const c=()=>{l||(l=!0,o&&(o.remove(),o=null),j(t,a),t.complete&&(M(t,r),setTimeout(()=>{j(t,r)},350)),this.option("adaptiveHeight")&&e.el&&this.pages[this.page].slides.indexOf(e)>-1&&(n.updateMetrics(),n.setViewportHeight()),this.emit("load",e))};M(t,a),t.src=t.dataset.lazySrcset||t.dataset.lazySrc||"",delete t.dataset.lazySrc,delete t.dataset.lazySrcset,t.addEventListener("error",()=>{c()}),t.addEventListener("load",()=>{c()}),setTimeout(()=>{const d=t.parentNode;d&&e.el&&(t.complete?c():l||(o=xe(mn),d.insertBefore(o,t)))},300)}lazyLoadSlide(e){const t=e&&e.el;if(!t)return;const n=new Set;let r=Array.from(t.querySelectorAll("[data-lazy-src],[data-lazy-srcset]"));t.dataset.lazySrc&&r.push(t),r.map(a=>{a instanceof HTMLImageElement?n.add(a):a instanceof HTMLElement&&a.dataset.lazySrc&&(a.style.backgroundImage=`url('${a.dataset.lazySrc}')`,delete a.dataset.lazySrc)});for(const a of n)this.lazyLoadImg(e,a)}onAnimationEnd(e){var t;const n=e.target,r=n?parseInt(n.dataset.index||"",10)||0:-1,a=this.slides[r],l=e.animationName;if(!n||!a||!l)return;const o=!!this.inTransition.has(r)&&a.transition;o&&l.substring(0,o.length+2)===`f-${o}`&&this.inTransition.delete(r),this.inTransition.size||this.clearTransitions(),r===this.page&&(!((t=this.panzoom)===null||t===void 0)&&t.isResting)&&this.emit("settle")}onDecel(e,t=0,n=0,r=0,a=0){if(this.option("dragFree"))return void this.setPageFromPosition();const{isRTL:l,isHorizontal:o,axis:c,pages:d}=this,u=d.length,h=Math.abs(Math.atan2(n,t)/(Math.PI/180));let p=0;if(p=h>45&&h<135?o?0:n:o?t:0,!u)return;let m=this.page,f=l&&o?1:-1;const v=e.current[c]*f;let{pageIndex:b}=this.getPageFromPosition(v);Math.abs(p)>5?(d[m].dim<document.documentElement["client"+(this.isHorizontal?"Width":"Height")]-1&&(m=b),m=l&&o?p<0?m-1:m+1:p<0?m+1:m-1):m=r===0&&a===0?m:b,this.slideTo(m,{transition:!1,friction:e.option("decelFriction")})}onClick(e){const t=e.target,n=t&&ie(t)?t.dataset:null;let r,a;n&&(n.carouselPage!==void 0?(a="slideTo",r=n.carouselPage):n.carouselNext!==void 0?a="slideNext":n.carouselPrev!==void 0&&(a="slidePrev")),a?(e.preventDefault(),e.stopPropagation(),t&&!t.hasAttribute("disabled")&&this[a](r)):this.emit("click",e)}onSlideTo(e){const t=e.detail||0;this.slideTo(this.getPageForSlide(t),{friction:0})}onChange(e,t=0){const n=this.page;this.prevPage=n,this.page=e,this.option("adaptiveHeight")&&this.setViewportHeight(),e!==n&&(this.markSelectedSlides(),this.emit("change",e,n,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=q.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:n=this.option("transition")}={}){if(this.state===q.Destroy)return;e=parseInt((e||0).toString())||0;const r=this.getPageFromIndex(e),{axis:a,isHorizontal:l,isRTL:o,pages:c,panzoom:d}=this,u=c.length,h=o&&l?1:-1;if(!d||!u)return;if(this.page!==r){const m=new Event("beforeChange",{bubbles:!0,cancelable:!0});if(this.emit("beforeChange",m,e),m.defaultPrevented)return}if(this.transitionTo(e,n))return;let p=c[r].pos;if(this.isInfinite){const m=this.contentDim,f=d.target[a]*h;u===2?p+=m*Math.floor(parseFloat(e+"")/2):p=[p,p-m,p+m].reduce(function(v,b){return Math.abs(b-f)<Math.abs(v-f)?b:v})}p*=h,Math.abs(d.target[a]-p)<1||(d.panTo({x:l?p:0,y:l?0:p,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(),j(this.container,this.cn("inTransition"));const e=["to-prev","to-next","from-prev","from-next"];for(const t of this.slides){const n=t.el;if(n){n.removeEventListener(Ft,this.onAnimationEnd),n.classList.remove(...e);const r=t.transition;r&&n.classList.remove(`f-${r}Out`,`f-${r}In`)}}this.manageSlideVisiblity()}addSlide(e,t){var n,r,a,l;const o=this.panzoom,c=((n=this.pages[this.page])===null||n===void 0?void 0:n.pos)||0,d=((r=this.pages[this.page])===null||r===void 0?void 0:r.dim)||0,u=this.contentDim<this.viewportDim;let h=Array.isArray(t)?t:[t];const p=[];for(const m of h)p.push(_i(m));this.slides.splice(e,0,...p);for(let m=0;m<this.slides.length;m++)this.slides[m].index=m;for(const m of p)this.emit("beforeInitSlide",m,m.index);if(this.page>=e&&(this.page+=p.length),this.updateMetrics(),o){const m=((a=this.pages[this.page])===null||a===void 0?void 0:a.pos)||0,f=((l=this.pages[this.page])===null||l===void 0?void 0:l.dim)||0,v=this.pages.length||1,b=this.isRTL?d-f:f-d,g=this.isRTL?c-m:m-c;u&&v===1?(e<=this.page&&(o.current[this.axis]-=b,o.target[this.axis]-=b),o.panTo({[this.isHorizontal?"x":"y"]:-1*m})):g&&e<=this.page&&(o.target[this.axis]-=g,o.current[this.axis]-=g,o.requestTick())}for(const m of p)this.emit("initSlide",m,m.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 n=this.slides[e];if(n){this.removeSlideEl(n,!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}),this.emit("destroySlide",n)}}updateMetrics(){const{panzoom:e,viewport:t,track:n,slides:r,isHorizontal:a,isInfinite:l}=this;if(!n)return;const o=a?"width":"height",c=a?"offsetWidth":"offsetHeight";if(t){let h=Math.max(t[c],P(t.getBoundingClientRect()[o],1e3)),p=getComputedStyle(t),m="padding",f=a?"Right":"Bottom";h-=parseFloat(p[m+(a?"Left":"Top")])+parseFloat(p[m+f]),this.viewportDim=h}let d,u=0;for(const[h,p]of r.entries()){let m=0,f=0;!p.el&&d?(m=d.dim,f=d.gap):({dim:m,gap:f}=this.getSlideMetrics(p),d=p),m=P(m,1e3),f=P(f,1e3),p.dim=m,p.gap=f,p.pos=u,u+=m,(l||h<r.length-1)&&(u+=f)}u=P(u,1e3),this.contentDim=u,e&&(e.contentRect[o]=u,e.contentRect[a?"fullWidth":"fullHeight"]=u),this.pages=this.createPages(),this.pages=this.processPages(),this.state===q.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,n=!1){e===void 0&&(e=this.page);const r=this,a=r.panzoom,l=r.contentDim,o=r.pages[e]||0;if(!o||!a)return e>this.page?-1:1;let c=-1*a.current.e,d=P((c-o.pos)/(1*o.dim),1e3),u=d,h=d;this.isInfinite&&n!==!0&&(u=P((c-o.pos+l)/(1*o.dim),1e3),h=P((c-o.pos-l)/(1*o.dim),1e3));let p=[d,u,h].reduce(function(m,f){return Math.abs(f)<Math.abs(m)?f:m});return t?p:p>1?1:p<-1?-1:p}setViewportHeight(){const{page:e,pages:t,viewport:n,isHorizontal:r}=this;if(!n||!t[e])return;let a=0;r&&this.track&&(this.track.style.height="auto",t[e].slides.forEach(l=>{l.el&&(a=Math.max(a,l.el.offsetHeight))})),n.style.height=a?`${a}px`:""}getPageForSlide(e){for(const t of this.pages)for(const n of t.slides)if(n.index===e)return t.index;return-1}getVisibleSlides(e=0){var t;const n=new Set;let{panzoom:r,contentDim:a,viewportDim:l,pages:o,page:c}=this;if(l){a=a+((t=this.slides[this.slides.length-1])===null||t===void 0?void 0:t.gap)||0;let d=0;d=r&&r.state!==F.Init&&r.state!==F.Destroy?-1*r.current[this.axis]:o[c]&&o[c].pos||0,this.isInfinite&&(d-=Math.floor(d/a)*a),this.isRTL&&this.isHorizontal&&(d*=-1);const u=d-l*e,h=d+l*(e+1),p=this.isInfinite?[-1,0,1]:[0];for(const m of this.slides)for(const f of p){const v=m.pos+f*a,b=v+m.dim+m.gap;v<h&&b>u&&n.add(m)}}return n}getPageFromPosition(e){const{viewportDim:t,contentDim:n,slides:r,pages:a,panzoom:l}=this,o=a.length,c=r.length,d=r[0],u=r[c-1],h=this.option("center");let p=0,m=0,f=0,v=e===void 0?-1*((l==null?void 0:l.target[this.axis])||0):e;h&&(v+=.5*t),this.isInfinite?(v<d.pos-.5*u.gap&&(v-=n,f=-1),v>u.pos+u.dim+.5*u.gap&&(v-=n,f=1)):v=Math.max(d.pos||0,Math.min(v,u.pos));let b=u,g=r.find(x=>{const y=x.pos-.5*b.gap,w=x.pos+x.dim+.5*x.gap;return b=x,v>=y&&v<w});return g||(g=u),m=this.getPageForSlide(g.index),p=m+f*o,{page:p,pageIndex:m}}setPageFromPosition(){const{pageIndex:e}=this.getPageFromPosition();this.onChange(e)}destroy(){if([q.Destroy].includes(this.state))return;this.state=q.Destroy;const{container:e,viewport:t,track:n,slides:r,panzoom:a}=this,l=this.option("classes");e.removeEventListener("click",this.onClick,{passive:!1,capture:!1}),e.removeEventListener("slideTo",this.onSlideTo),window.removeEventListener("resize",this.onResize),a&&(a.destroy(),this.panzoom=null),r&&r.forEach(c=>{this.removeSlideEl(c)}),this.detachPlugins(),t&&(t.removeEventListener("scroll",this.onScroll),t.offsetParent&&n&&n.offsetParent&&t.replaceWith(...n.childNodes));for(const[c,d]of Object.entries(l))c!=="container"&&d&&e.classList.remove(d);this.track=null,this.viewport=null,this.page=0,this.slides=[];const o=this.events.get("ready");this.events=new Map,o&&this.events.set("ready",o)}}Object.defineProperty(We,"Panzoom",{enumerable:!0,configurable:!0,writable:!0,value:Ue}),Object.defineProperty(We,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:jc}),Object.defineProperty(We,"Plugins",{enumerable:!0,configurable:!0,writable:!0,value:$c});const Or=function(i){if(!ie(i))return 0;const e=window.scrollY,t=window.innerHeight,n=e+t,r=i.getBoundingClientRect(),a=r.y+e,l=r.height,o=a+l;if(e>o||n<a)return 0;if(e<a&&n>o||a<e&&o>n)return 100;let c=l;a<e&&(c-=e-a),o>n&&(c-=o-n);const d=c/t*100;return Math.round(d)},_t=!(typeof window>"u"||!window.document||!window.document.createElement);let Si;const Ei=["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([tabindex^="-"]):not([disabled]):not([aria-hidden])'].join(","),ns=i=>{if(i&&_t){Si===void 0&&document.createElement("div").focus({get preventScroll(){return Si=!0,!1}});try{if(Si)i.focus({preventScroll:!0});else{const e=window.scrollY||document.body.scrollTop,t=window.scrollX||document.body.scrollLeft;i.focus(),document.body.scrollTo({top:e,left:t,behavior:"auto"})}}catch{}}},Ir=()=>{const i=document;let e,t="",n="",r="";return i.fullscreenEnabled?(t="requestFullscreen",n="exitFullscreen",r="fullscreenElement"):i.webkitFullscreenEnabled&&(t="webkitRequestFullscreen",n="webkitExitFullscreen",r="webkitFullscreenElement"),t&&(e={request:function(a=i.documentElement){return t==="webkitRequestFullscreen"?a[t](Element.ALLOW_KEYBOARD_INPUT):a[t]()},exit:function(){return i[r]&&i[n]()},isFullscreen:function(){return i[r]}}),e},Yi={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({},kr),{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">
<div class="fancybox__backdrop"></div>
<div class="fancybox__carousel"></div>
<div class="fancybox__footer"></div>
</div>`},trapFocus:!0,wheel:"zoom"};var K,ee;(function(i){i[i.Init=0]="Init",i[i.Ready=1]="Ready",i[i.Closing=2]="Closing",i[i.CustomClosing=3]="CustomClosing",i[i.Destroy=4]="Destroy"})(K||(K={})),function(i){i[i.Loading=0]="Loading",i[i.Opening=1]="Opening",i[i.Ready=2]="Ready",i[i.Closing=3]="Closing"}(ee||(ee={}));let ss="",yt=!1,$t=!1,$e=null;const Rr=()=>{let i="",e="";const t=z.getInstance();if(t){const n=t.carousel,r=t.getSlide();if(n&&r){let a=r.slug||void 0,l=r.triggerEl||void 0;e=a||t.option("slug")||"",!e&&l&&l.dataset&&(e=l.dataset.fancybox||""),e&&e!=="true"&&(i="#"+e+(!a&&n.slides.length>1?"-"+(r.index+1):""))}}return{hash:i,slug:e,index:1}},ri=()=>{const i=new URL(document.URL).hash,e=i.slice(1).split("-"),t=e[e.length-1],n=t&&/^\+?\d+$/.test(t)&&parseInt(e.pop()||"1",10)||1;return{hash:i,slug:e.join("-"),index:n}},Dr=()=>{const{slug:i,index:e}=ri();if(!i)return;let t=document.querySelector(`[data-slug="${i}"]`);if(t&&t.dispatchEvent(new CustomEvent("click",{bubbles:!0,cancelable:!0})),z.getInstance())return;const n=document.querySelectorAll(`[data-fancybox="${i}"]`);n.length&&(t=n[e-1],t&&t.dispatchEvent(new CustomEvent("click",{bubbles:!0,cancelable:!0})))},zr=()=>{if(z.defaults.Hash===!1)return;const i=z.getInstance();if((i==null?void 0:i.options.Hash)===!1)return;const{slug:e,index:t}=ri(),{slug:n}=Rr();i&&(e===n?i.jumpTo(t-1):(yt=!0,i.close())),Dr()},jr=()=>{$e&&clearTimeout($e),queueMicrotask(()=>{zr()})},rs=()=>{window.addEventListener("hashchange",jr,!1),setTimeout(()=>{zr()},500)};_t&&(/complete|interactive|loaded/.test(document.readyState)?rs():document.addEventListener("DOMContentLoaded",rs));const Ht="is-zooming-in";class Fr extends ge{onCreateSlide(e,t,n){const r=this.instance.optionFor(n,"src")||"";n.el&&n.type==="image"&&typeof r=="string"&&this.setImage(n,r)}onRemoveSlide(e,t,n){n.panzoom&&n.panzoom.destroy(),n.panzoom=void 0,n.imageEl=void 0}onChange(e,t,n,r){j(this.instance.container,Ht);for(const a of t.slides){const l=a.panzoom;l&&a.index!==n&&l.reset(.35)}}onClose(){var e;const t=this.instance,n=t.container,r=t.getSlide();if(!n||!n.parentElement||!r)return;const{el:a,contentEl:l,panzoom:o,thumbElSrc:c}=r;if(!a||!c||!l||!o||o.isContentLoading||o.state===F.Init||o.state===F.Destroy)return;o.updateMetrics();let d=this.getZoomInfo(r);if(!d)return;this.instance.state=K.CustomClosing,n.classList.remove(Ht),n.classList.add("is-zooming-out"),l.style.backgroundImage=`url('${c}')`;const u=n.getBoundingClientRect();(((e=window.visualViewport)===null||e===void 0?void 0:e.scale)||1)===1&&Object.assign(n.style,{position:"absolute",top:`${n.offsetTop+window.scrollY}px`,left:`${n.offsetLeft+window.scrollX}px`,bottom:"auto",right:"auto",width:`${u.width}px`,height:`${u.height}px`,overflow:"hidden"});const{x:h,y:p,scale:m,opacity:f}=d;if(f){const v=((b,g,x,y)=>{const w=g-b,N=y-x;return k=>x+((k-b)/w*N||0)})(o.scale,m,1,0);o.on("afterTransform",()=>{l.style.opacity=v(o.scale)+""})}o.on("endAnimation",()=>{t.destroy()}),o.target.a=m,o.target.b=0,o.target.c=0,o.target.d=m,o.panTo({x:h,y:p,scale:m,friction:f?.2:.33,ignoreBounds:!0}),o.isResting&&t.destroy()}setImage(e,t){const n=this.instance;e.src=t,this.process(e,t).then(r=>{const{contentEl:a,imageEl:l,thumbElSrc:o,el:c}=e;if(n.isClosing()||!a||!l)return;a.offsetHeight;const d=!!n.isOpeningSlide(e)&&this.getZoomInfo(e);if(this.option("protected")&&c){c.addEventListener("contextmenu",p=>{p.preventDefault()});const h=document.createElement("div");M(h,"fancybox-protected"),a.appendChild(h)}if(o&&d){const h=r.contentRect,p=Math.max(h.fullWidth,h.fullHeight);let m=null;!d.opacity&&p>1200&&(m=document.createElement("img"),M(m,"fancybox-ghost"),m.src=o,a.appendChild(m));const f=()=>{m&&(M(m,"f-fadeFastOut"),setTimeout(()=>{m&&(m.remove(),m=null)},200))};(u=o,new Promise((v,b)=>{const g=new Image;g.onload=v,g.onerror=b,g.src=u})).then(()=>{n.hideLoading(e),e.state=ee.Opening,this.instance.emit("reveal",e),this.zoomIn(e).then(()=>{f(),this.instance.done(e)},()=>{}),m&&setTimeout(()=>{f()},p>2500?800:200)},()=>{n.hideLoading(e),n.revealContent(e)})}else{const h=this.optionFor(e,"initialSize"),p=this.optionFor(e,"zoom"),m={event:n.prevMouseMoveEvent||n.options.event,friction:p?.12:0};let f=n.optionFor(e,"showClass")||void 0,v=!0;n.isOpeningSlide(e)&&(h==="full"?r.zoomToFull(m):h==="cover"?r.zoomToCover(m):h==="max"?r.zoomToMax(m):v=!1,r.stop("current")),v&&f&&(f=r.isDragging?"f-fadeIn":""),n.hideLoading(e),n.revealContent(e,f)}var u},()=>{n.setError(e,"{{IMAGE_ERROR}}")})}process(e,t){return new Promise((n,r)=>{var a;const l=this.instance,o=e.el;l.clearContent(e),l.showLoading(e);let c=this.optionFor(e,"content");if(typeof c=="string"&&(c=xe(c)),!c||!ie(c)){if(c=document.createElement("img"),c instanceof HTMLImageElement){let d="",u=e.caption;d=typeof u=="string"&&u?u.replace(/<[^>]+>/gi,"").substring(0,1e3):`Image ${e.index+1} of ${((a=l.carousel)===null||a===void 0?void 0:a.pages.length)||1}`,c.src=t||"",c.alt=d,c.draggable=!1,e.srcset&&c.setAttribute("srcset",e.srcset),this.instance.isOpeningSlide(e)&&(c.fetchPriority="high")}e.sizes&&c.setAttribute("sizes",e.sizes)}M(c,"fancybox-image"),e.imageEl=c,l.setContent(e,c,!1),e.panzoom=new Ue(o,ne({transformParent:!0},this.option("Panzoom")||{},{content:c,width:(d,u)=>l.optionFor(e,"width","auto",u)||"auto",height:(d,u)=>l.optionFor(e,"height","auto",u)||"auto",wheel:()=>{const d=l.option("wheel");return(d==="zoom"||d=="pan")&&d},click:(d,u)=>{var h,p;if(l.isCompact||l.isClosing()||e.index!==((h=l.getSlide())===null||h===void 0?void 0:h.index))return!1;if(u){const f=u.composedPath()[0];if(["A","BUTTON","TEXTAREA","OPTION","INPUT","SELECT","VIDEO"].includes(f.nodeName))return!1}let m=!u||u.target&&((p=e.contentEl)===null||p===void 0?void 0:p.contains(u.target));return l.option(m?"contentClick":"backdropClick")||!1},dblClick:()=>l.isCompact?"toggleZoom":l.option("contentDblClick")||!1,spinner:!1,panOnlyZoomed:!0,wheelLimit:1/0,on:{ready:d=>{n(d)},error:()=>{r()},destroy:()=>{r()}}}))})}zoomIn(e){return new Promise((t,n)=>{const r=this.instance,a=r.container,{panzoom:l,contentEl:o,el:c}=e;l&&l.updateMetrics();const d=this.getZoomInfo(e);if(!(d&&c&&o&&l&&a))return void n();const{x:u,y:h,scale:p,opacity:m}=d,f=()=>{e.state!==ee.Closing&&(m&&(o.style.opacity=Math.max(Math.min(1,1-(1-l.scale)/(1-p)),0)+""),l.scale>=1&&l.scale>l.targetScale-.1&&t(l))},v=x=>{(x.scale<.99||x.scale>1.01)&&!x.isDragging||(j(a,Ht),o.style.opacity="",x.off("endAnimation",v),x.off("touchStart",v),x.off("afterTransform",f),t(x))};l.on("endAnimation",v),l.on("touchStart",v),l.on("afterTransform",f),l.on(["error","destroy"],()=>{n()}),l.panTo({x:u,y:h,scale:p,friction:0,ignoreBounds:!0}),l.stop("current");const b={event:l.panMode==="mousemove"?r.prevMouseMoveEvent||r.options.event:void 0},g=this.optionFor(e,"initialSize");M(a,Ht),r.hideLoading(e),g==="full"?l.zoomToFull(b):g==="cover"?l.zoomToCover(b):g==="max"?l.zoomToMax(b):l.reset(.172)})}getZoomInfo(e){const{el:t,imageEl:n,thumbEl:r,panzoom:a}=e,l=this.instance,o=l.container;if(!t||!n||!r||!a||Or(r)<3||!this.optionFor(e,"zoom")||!o||l.state===K.Destroy||getComputedStyle(o).getPropertyValue("--f-images-zoom")==="0")return!1;const c=window.visualViewport||null;if((c?c.scale:1)!==1)return!1;let{top:d,left:u,width:h,height:p}=r.getBoundingClientRect(),{top:m,left:f,fitWidth:v,fitHeight:b}=a.contentRect;if(!(h&&p&&v&&b))return!1;const g=a.container.getBoundingClientRect();f+=g.left,m+=g.top;const x=-1*(f+.5*v-(u+.5*h)),y=-1*(m+.5*b-(d+.5*p)),w=h/v;let N=this.option("zoomOpacity")||!1;return N==="auto"&&(N=Math.abs(h/p-v/b)>.1),{x,y,scale:w,opacity:N}}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(Fr,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:{initialSize:"fit",Panzoom:{maxScale:1},protected:!1,zoom:!0,zoomOpacity:"auto"}}),typeof SuppressedError=="function"&&SuppressedError;const Ti="html",as="image",Pi="map",Ee="youtube",ze="vimeo",ft="html5video",ls=(i,e={})=>{const t=new URL(i),n=new URLSearchParams(t.search),r=new URLSearchParams;for(const[o,c]of[...n,...Object.entries(e)]){let d=c+"";if(o==="t"){let u=d.match(/((\d*)m)?(\d*)s?/);u&&r.set("start",60*parseInt(u[2]||"0")+parseInt(u[3]||"0")+"")}else r.set(o,d)}let a=r+"",l=i.match(/#t=((.*)?\d+s)/);return l&&(a+=`#t=${l[1]}`),a},Hc={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}}">
<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}},Gc=["image","html","ajax","inline","clone","iframe","map","pdf","html5video","youtube","vimeo"];class Br extends ge{onBeforeInitSlide(e,t,n){this.processType(n)}onCreateSlide(e,t,n){this.setContent(n)}onClearContent(e,t){t.xhr&&(t.xhr.abort(),t.xhr=null);const n=t.iframeEl;n&&(n.onload=n.onerror=null,n.src="//about:blank",t.iframeEl=null);const r=t.contentEl,a=t.placeholderEl;if(t.type==="inline"&&r&&a)r.classList.remove("fancybox__content"),getComputedStyle(r).getPropertyValue("display")!=="none"&&(r.style.display="none"),setTimeout(()=>{a&&(r&&a.parentNode&&a.parentNode.insertBefore(r,a),a.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,n){n.state===ee.Ready&&this.playVideo()}onUnselectSlide(e,t,n){var r,a;if(n.type===ft){try{(a=(r=n.el)===null||r===void 0?void 0:r.querySelector("video"))===null||a===void 0||a.pause()}catch{}return}let l;n.type===ze?l={method:"pause",value:"true"}:n.type===Ee&&(l={event:"command",func:"pauseVideo"}),l&&n.iframeEl&&n.iframeEl.contentWindow&&n.iframeEl.contentWindow.postMessage(JSON.stringify(l),"*"),n.poller&&clearTimeout(n.poller)}onDone(e,t){e.isCurrentSlide(t)&&!e.isClosing()&&this.playVideo()}onRefresh(e,t){t.slides.forEach(n=>{n.el&&(this.resizeIframe(n),this.setAspectRatio(n))})}onMessage(e){try{let t=JSON.parse(e.data);if(e.origin==="https://player.vimeo.com"){if(t.event==="ready")for(let n of Array.from(document.getElementsByClassName("fancybox__iframe")))n instanceof HTMLIFrameElement&&n.contentWindow===e.source&&(n.dataset.ready="true")}else if(e.origin.match(/^https:\/\/(www.)?youtube(-nocookie)?.com$/)&&t.event==="onReady"){const n=document.getElementById(t.id);n&&(n.dataset.ready="true")}}catch{}}loadAjaxContent(e){const t=this.instance.optionFor(e,"src")||"";this.instance.showLoading(e);const n=this.instance,r=new XMLHttpRequest;n.showLoading(e),r.onreadystatechange=function(){r.readyState===XMLHttpRequest.DONE&&n.state===K.Ready&&(n.hideLoading(e),r.status===200?n.setContent(e,r.responseText):n.setError(e,r.status===404?"{{AJAX_NOT_FOUND}}":"{{AJAX_FORBIDDEN}}"))};const a=e.ajax||null;r.open(a?"POST":"GET",t+""),r.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),r.setRequestHeader("X-Requested-With","XMLHttpRequest"),r.send(a),e.xhr=r}setInlineContent(e){let t=null;if(ie(e.src))t=e.src;else if(typeof e.src=="string"){const n=e.src.split("#",2).pop();t=n?document.getElementById(n):null}if(t){if(e.type==="clone"||t.closest(".fancybox__slide")){t=t.cloneNode(!0);const n=t.dataset.animationName;n&&(t.classList.remove(n),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 n=document.createElement("div");n.classList.add("fancybox-placeholder"),t.parentNode.insertBefore(n,t),e.placeholderEl=n}this.instance.setContent(e,t)}else this.instance.setError(e,"{{ELEMENT_NOT_FOUND}}")}setIframeContent(e){const{src:t,el:n}=e;if(!t||typeof t!="string"||!n)return;n.classList.add("is-loading");const r=this.instance,a=document.createElement("iframe");a.className="fancybox__iframe",a.setAttribute("id",`fancybox__iframe_${r.id}_${e.index}`);for(const[o,c]of Object.entries(this.optionFor(e,"iframeAttr")||{}))a.setAttribute(o,c);a.onerror=()=>{r.setError(e,"{{IFRAME_ERROR}}")},e.iframeEl=a;const l=this.optionFor(e,"preload");if(e.type!=="iframe"||l===!1)return a.setAttribute("src",e.src+""),r.setContent(e,a,!1),this.resizeIframe(e),void r.revealContent(e);r.showLoading(e),a.onload=()=>{if(!a.src.length)return;const o=a.dataset.ready!=="true";a.dataset.ready="true",this.resizeIframe(e),o?r.revealContent(e):r.hideLoading(e)},a.setAttribute("src",t),r.setContent(e,a,!1)}resizeIframe(e){const{type:t,iframeEl:n}=e;if(t===Ee||t===ze)return;const r=n==null?void 0:n.parentElement;if(!n||!r)return;let a=e.autoSize;a===void 0&&(a=this.optionFor(e,"autoSize"));let l=e.width||0,o=e.height||0;l&&o&&(a=!1);const c=r&&r.style;if(e.preload!==!1&&a!==!1&&c)try{const d=window.getComputedStyle(r),u=parseFloat(d.paddingLeft)+parseFloat(d.paddingRight),h=parseFloat(d.paddingTop)+parseFloat(d.paddingBottom),p=n.contentWindow;if(p){const m=p.document,f=m.getElementsByTagName(Ti)[0],v=m.body;c.width="",v.style.overflow="hidden",l=l||f.scrollWidth+u,c.width=`${l}px`,v.style.overflow="",c.flex="0 0 auto",c.height=`${v.scrollHeight}px`,o=f.scrollHeight+h}}catch{}if(l||o){const d={flex:"0 1 auto",width:"",height:""};l&&l!=="auto"&&(d.width=`${l}px`),o&&o!=="auto"&&(d.height=`${o}px`),Object.assign(c,d)}}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===ft)try{const r=t.querySelector("video");if(r){const a=r.play();a!==void 0&&a.then(()=>{}).catch(l=>{r.muted=!0,r.play()})}}catch{}if(e.type!==Ee&&e.type!==ze)return;const n=()=>{if(e.iframeEl&&e.iframeEl.contentWindow){let r;if(e.iframeEl.dataset.ready==="true")return r=e.type===Ee?{event:"command",func:"playVideo"}:{method:"play",value:"true"},r&&e.iframeEl.contentWindow.postMessage(JSON.stringify(r),"*"),void(e.poller=void 0);e.type===Ee&&(r={event:"listening",id:e.iframeEl.getAttribute("id")},e.iframeEl.contentWindow.postMessage(JSON.stringify(r),"*"))}e.poller=setTimeout(n,250)};n()}processType(e){if(e.html)return e.type=Ti,e.src=e.html,void(e.html="");const t=this.instance.optionFor(e,"src","");if(!t||typeof t!="string")return;let n=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 a=this.optionFor(e,Ee),{nocookie:l}=a,o=function(h,p){var m={};for(var f in h)Object.prototype.hasOwnProperty.call(h,f)&&p.indexOf(f)<0&&(m[f]=h[f]);if(h!=null&&typeof Object.getOwnPropertySymbols=="function"){var v=0;for(f=Object.getOwnPropertySymbols(h);v<f.length;v++)p.indexOf(f[v])<0&&Object.prototype.propertyIsEnumerable.call(h,f[v])&&(m[f[v]]=h[f[v]])}return m}(a,["nocookie"]),c=`www.youtube${l?"-nocookie":""}.com`,d=ls(t,o),u=encodeURIComponent(r[2]);e.videoId=u,e.src=`https://${c}/embed/${u}?${d}`,e.thumbSrc=e.thumbSrc||`https://i.ytimg.com/vi/${u}/mqdefault.jpg`,n=Ee}else if(r=t.match(/^.+vimeo.com\/(?:\/)?([\d]+)((\/|\?h=)([a-z0-9]+))?(.*)?/)){const a=ls(t,this.optionFor(e,ze)),l=encodeURIComponent(r[1]),o=r[4]||"";e.videoId=l,e.src=`https://player.vimeo.com/video/${l}?${o?`h=${o}${a?"&":""}`:""}${a}`,n=ze}if(!n&&e.triggerEl){const a=e.triggerEl.dataset.type;Gc.includes(a)&&(n=a)}n||typeof t=="string"&&(t.charAt(0)==="#"?n="inline":(r=t.match(/\.(mp4|mov|ogv|webm)((\?|#).*)?$/i))?(n=ft,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)?n=as:t.match(/\.(pdf)((\?|#).*)?$/i)&&(n="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"}`,n=Pi):(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`,n=Pi),n=n||this.instance.option("defaultType"),e.type=n,n===as&&(e.thumbSrc=e.thumbSrc||e.src)}setContent(e){const t=this.instance.optionFor(e,"src")||"";if(e&&e.type&&t){switch(e.type){case Ti:this.instance.setContent(e,t);break;case ft:const n=this.option("videoTpl");n&&this.instance.setContent(e,n.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 Pi:case Ee:case ze:e.preload=!1;case"iframe":this.setIframeContent(e)}this.setAspectRatio(e)}}setAspectRatio(e){const t=e.contentEl;if(!(e.el&&t&&e.type&&[Ee,ze,ft].includes(e.type)))return;let n,r=e.width||"auto",a=e.height||"auto";if(r==="auto"||a==="auto"){n=this.optionFor(e,"videoRatio");const d=(n+"").match(/(\d+)\s*\/\s?(\d+)/);n=d&&d.length>2?parseFloat(d[1])/parseFloat(d[2]):parseFloat(n+"")}else r&&a&&(n=r/a);if(!n)return;t.style.aspectRatio="",t.style.width="",t.style.height="",t.offsetHeight;const l=t.getBoundingClientRect(),o=l.width||1,c=l.height||1;t.style.aspectRatio=n+"",n<o/c?(a=a==="auto"?c:Math.min(c,a),t.style.width="auto",t.style.height=`${a}px`):(r=r==="auto"?o:Math.min(o,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(Br,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:Hc});const Gt="play",Vt="pause",gt="ready";class $r extends ge{constructor(){super(...arguments),Object.defineProperty(this,"state",{enumerable:!0,configurable:!0,writable:!0,value:gt}),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!==gt}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.slideNext():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,n=((e=t.pages[t.page])===null||e===void 0?void 0:e.slides)||[];let r=this.option("progressParentEl");if(r||(r=(n.length===1?n[0].el:null)||t.viewport),!r)return null;const a=document.createElement("div");return M(a,"f-progress"),r.prepend(a),this.progressBar=a,a.offsetHeight,a}set(){const e=this,t=e.instance;if(t.pages.length<2||e.timer)return;const n=e.option("timeout");e.state=Gt,M(t.container,"has-autoplay");let r=e.createProgressBar();r&&(r.style.transitionDuration=`${n}ms`,r.style.transform="scaleX(1)"),e.timer=setTimeout(()=>{e.timer=null,e.inHover||e.onTimerEnd()},n),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!==gt){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,n=e.instance.container;e.clear(),e.state=gt,n.removeEventListener("mouseenter",e.onMouseEnter,!1),n.removeEventListener("mouseleave",e.onMouseLeave,!1),document.removeEventListener("visibilitychange",e.onVisibilityChange,!1),j(n,"has-autoplay"),t!==gt&&e.emit("stop")}pause(){const e=this;e.state===Gt&&(e.state=Vt,e.clear(),e.emit(Vt))}resume(){const e=this,t=e.instance;if(t.isInfinite||t.page!==t.pages.length-1)if(e.state!==Gt){if(e.state===Vt&&!e.inHover){const n=new Event("resume",{bubbles:!0,cancelable:!0});e.emit("resume",n),n.defaultPrevented||e.set()}}else e.set();else e.stop()}toggle(){this.state===Gt||this.state===Vt?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($r,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:{autoStart:!0,pauseOnHover:!0,progressParentEl:null,showProgress:!0,timeout:3e3}});class Hr extends ge{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 n=e.container;n&&(t.options.Autoplay=ne({autoStart:!1},this.option("Autoplay")||{},{pauseOnHover:!1,timeout:this.option("timeout"),progressParentEl:()=>this.option("progressParentEl")||null,on:{start:()=>{e.emit("startSlideshow")},set:r=>{var a;n.classList.add("has-slideshow"),((a=e.getSlide())===null||a===void 0?void 0:a.state)!==ee.Ready&&r.pause()},stop:()=>{n.classList.remove("has-slideshow"),e.isCompact||e.endIdle(),e.emit("endSlideshow")},resume:(r,a)=>{var l,o,c;!a||!a.cancelable||((l=e.getSlide())===null||l===void 0?void 0:l.state)===ee.Ready&&(!((c=(o=e.carousel)===null||o===void 0?void 0:o.panzoom)===null||c===void 0)&&c.isResting)||a.preventDefault()}}}),t.attachPlugins({Autoplay:$r}),this.ref=t.plugins.Autoplay)}onReady(e){const t=e.carousel,n=this.ref;n&&t&&this.option("playOnStart")&&(t.isInfinite||t.page<t.pages.length-1)&&n.start()}onDone(e,t){const n=this.ref,r=e.carousel;if(!n||!r)return;const a=t.panzoom;a&&a.on("startAnimation",()=>{e.isCurrentSlide(t)&&n.stop()}),e.isCurrentSlide(t)&&n.resume()}onKeydown(e,t){var n;const r=this.ref;r&&t===this.option("key")&&((n=document.activeElement)===null||n===void 0?void 0:n.nodeName)!=="BUTTON"&&r.toggle()}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(Hr,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:{key:" ",playOnStart:!1,progressParentEl:i=>{var e;return((e=i.instance.container)===null||e===void 0?void 0:e.querySelector(".fancybox__toolbar [data-fancybox-toggle-slideshow]"))||i.instance.container},timeout:3e3}});const Gr={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 Pe;(function(i){i[i.Init=0]="Init",i[i.Ready=1]="Ready",i[i.Hidden=2]="Hidden"})(Pe||(Pe={}));const os="isResting",Wt="thumbWidth",Je="thumbHeight",ve="thumbClipWidth";let Vr=class extends ge{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:Pe.Init})}get isModern(){return this.type==="modern"}onInitSlide(i,e){const t=e.el?e.el.dataset:void 0;t&&(e.thumbSrc=t.thumbSrc||e.thumbSrc||"",e[ve]=parseFloat(t[ve]||"")||e[ve]||0,e[Je]=parseFloat(t.thumbHeight||"")||e[Je]||0),this.addSlide(e)}onInitSlides(){this.build()}onChange(){var i;if(!this.isModern)return;const e=this.container,t=this.instance,n=t.panzoom,r=this.carousel,a=r?r.panzoom:null,l=t.page;if(n&&r&&a){if(n.isDragging){j(e,this.cn(os));let o=((i=r.pages[l])===null||i===void 0?void 0:i.pos)||0;o+=t.getProgress(l)*(this[ve]+this.thumbGap);let c=a.getBounds();-1*o>c.x.min&&-1*o<c.x.max&&a.panTo({x:-1*o,friction:.12})}else ye(e,this.cn(os),n.isResting);this.shiftModern()}}onRefresh(){this.updateProps();for(const i of this.instance.slides||[])this.resizeModernSlide(i);this.shiftModern()}isDisabled(){const i=this.option("minCount")||0;if(i){const t=this.instance;let n=0;for(const r of t.slides||[])r.thumbSrc&&n++;if(n<i)return!0}const e=this.option("type");return["modern","classic"].indexOf(e)<0}getThumb(i){const e=this.option("thumbTpl")||"";return{html:this.instance.localize(e,[["%i",i.index],["%d",i.index+1],["%s",i.thumbSrc||"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"]])}}addSlide(i){const e=this.carousel;e&&e.addSlide(i.index,this.getThumb(i))}getSlides(){const i=[];for(const e of this.instance.slides||[])i.push(this.getThumb(e));return i}resizeModernSlide(i){this.isModern&&(i[Wt]=i[ve]&&i[Je]?Math.round(this[Je]*(i[ve]/i[Je])):this[Wt])}updateProps(){const i=this.container;if(!i)return;const e=t=>parseFloat(getComputedStyle(i).getPropertyValue("--f-thumb-"+t))||0;this.thumbGap=e("gap"),this.thumbExtraGap=e("extra-gap"),this[Wt]=e("width")||40,this[ve]=e("clip-width")||40,this[Je]=e("height")||40}build(){const i=this;if(i.state!==Pe.Init)return;if(i.isDisabled())return void i.emit("disabled");const e=i.instance,t=e.container,n=i.getSlides(),r=i.option("type");i.type=r;const a=i.option("parentEl"),l=i.cn("container"),o=i.cn("track");let c=a==null?void 0:a.querySelector("."+l);c||(c=document.createElement("div"),M(c,l),a?a.appendChild(c):t.after(c)),M(c,`is-${r}`),M(t,i.cn("hasThumbs")),i.container=c,i.updateProps();let d=c.querySelector("."+o);d||(d=document.createElement("div"),M(d,i.cn("track")),c.appendChild(d)),i.track=d;const u=ne({},{track:d,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"}},i.option("Carousel")||{},{Sync:{target:e},slides:n}),h=new e.constructor(c,u);h.on("createSlide",(p,m)=>{i.setProps(m.index),i.emit("createSlide",m,m.el)}),h.on("ready",()=>{i.shiftModern(),i.emit("ready")}),h.on("refresh",()=>{i.shiftModern()}),h.on("Panzoom.click",(p,m,f)=>{i.onClick(f)}),i.carousel=h,i.state=Pe.Ready}onClick(i){i.preventDefault(),i.stopPropagation();const e=this.instance,{pages:t,page:n}=e,r=v=>{if(v){const b=v.closest("[data-carousel-index]");if(b)return[parseInt(b.dataset.carouselIndex||"",10)||0,b]}return[-1,void 0]},a=(v,b)=>{const g=document.elementFromPoint(v,b);return g?r(g):[-1,void 0]};let[l,o]=r(i.target);if(l>-1)return;const c=this[ve],d=i.clientX,u=i.clientY;let[h,p]=a(d-c,u),[m,f]=a(d+c,u);p&&f?(l=Math.abs(d-p.getBoundingClientRect().right)<Math.abs(d-f.getBoundingClientRect().left)?h:m,l===n&&(l=l===h?m:h)):p?l=h:f&&(l=m),l>-1&&t[l]&&e.slideTo(l)}getShift(i){var e;const t=this,{instance:n}=t,r=t.carousel;if(!n||!r)return 0;const a=t[Wt],l=t[ve],o=t.thumbGap,c=t.thumbExtraGap;if(!(!((e=r.slides[i])===null||e===void 0)&&e.el))return 0;const d=.5*(a-l),u=n.pages.length-1;let h=n.getProgress(0),p=n.getProgress(u),m=n.getProgress(i,!1,!0),f=0,v=d+c+o;const b=h<0&&h>-1,g=p>0&&p<1;return i===0?(f=v*Math.abs(h),g&&h===1&&(f-=v*Math.abs(p))):i===u?(f=v*Math.abs(p)*-1,b&&p===-1&&(f+=v*Math.abs(h))):b||g?(f=-1*v,f+=v*Math.abs(h),f+=v*(1-Math.abs(p))):f=v*m,f}setProps(i){var e;const t=this;if(!t.isModern)return;const{instance:n}=t,r=t.carousel;if(n&&r){const a=(e=r.slides[i])===null||e===void 0?void 0:e.el;if(a&&a.childNodes.length){let l=P(1-Math.abs(n.getProgress(i))),o=P(t.getShift(i));a.style.setProperty("--progress",l?l+"":""),a.style.setProperty("--shift",o+"")}}}shiftModern(){const i=this;if(!i.isModern)return;const{instance:e,track:t}=i,n=e.panzoom,r=i.carousel;if(!(e&&t&&n&&r)||n.state===F.Init||n.state===F.Destroy)return;for(const l of e.slides)i.setProps(l.index);let a=(i[ve]+i.thumbGap)*(r.slides.length||0);t.style.setProperty("--width",a+"")}cleanup(){const i=this;i.carousel&&i.carousel.destroy(),i.carousel=null,i.container&&i.container.remove(),i.container=null,i.track&&i.track.remove(),i.track=null,i.state=Pe.Init,j(i.instance.container,i.cn("hasThumbs"))}attach(){const i=this,e=i.instance;e.on("initSlide",i.onInitSlide),e.state===q.Init?e.on("initSlides",i.onInitSlides):i.onInitSlides(),e.on(["change","Panzoom.afterTransform"],i.onChange),e.on("Panzoom.refresh",i.onRefresh)}detach(){const i=this,e=i.instance;e.off("initSlide",i.onInitSlide),e.off("initSlides",i.onInitSlides),e.off(["change","Panzoom.afterTransform"],i.onChange),e.off("Panzoom.refresh",i.onRefresh),i.cleanup()}};Object.defineProperty(Vr,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:Gr});const Vc=Object.assign(Object.assign({},Gr),{key:"t",showOnStart:!0,parentEl:null}),cs="is-masked",ds="aria-hidden";class Wr extends ge{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 n,r,a;const l=((a=(r=(n=this.instance)===null||n===void 0?void 0:n.carousel)===null||r===void 0?void 0:r.slides[t.index])===null||a===void 0?void 0:a.type)||"",o=t.el;if(o&&l){let c=`for-${l}`;["video","youtube","vimeo","html5video"].includes(l)&&(c+=" for-video"),M(o,c)}}onInit(){var e;const t=this,n=t.instance,r=n.carousel;if(t.ref||!r)return;const a=t.option("parentEl")||n.footer||n.container;if(!a)return;const l=ne({},t.options,{parentEl:a,classes:{container:"f-thumbs fancybox__thumbs"},Carousel:{Sync:{friction:n.option("Carousel.friction")||0}},on:{ready:o=>{const c=o.container;c&&this.hidden&&(t.refresh(),c.style.transition="none",t.hide(),c.offsetHeight,queueMicrotask(()=>{c.style.transition="",t.show()}))}}});l.Carousel=l.Carousel||{},l.Carousel.on=ne(((e=t.options.Carousel)===null||e===void 0?void 0:e.on)||{},{click:this.onClick,createSlide:this.onCreateSlide}),r.options.Thumbs=l,r.attachPlugins({Thumbs:Vr}),t.ref=r.plugins.Thumbs,t.option("showOnStart")||(t.ref.state=Pe.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 n=this.option("key");n&&n===t&&this.toggle()}toggle(){const e=this.ref;if(e&&!e.isDisabled())return e.state===Pe.Hidden?(e.state=Pe.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(ds),t.classList.remove(cs),this.hidden=!1)}hide(){const e=this.ref,t=e&&e.container;t&&(this.refresh(),t.offsetHeight,t.classList.add(cs),t.setAttribute(ds,"true")),this.hidden=!0}refresh(){const e=this.ref;if(!e||!e.state)return;const t=e.container,n=(t==null?void 0:t.firstChild)||null;t&&n&&n.childNodes.length&&(t.style.maxHeight=`${n.getBoundingClientRect().height}px`)}attach(){const e=this,t=e.instance;t.state===K.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,n=t.instance;n.off("Carousel.init",t.onInit),n.off("resize",t.onResize),n.off("keydown",t.onKeydown),(e=n.carousel)===null||e===void 0||e.detachPlugins(["Thumbs"]),t.ref=null}}Object.defineProperty(Wr,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:Vc});const Ci={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 Ge;(function(i){i[i.Init=0]="Init",i[i.Ready=1]="Ready",i[i.Disabled=2]="Disabled"})(Ge||(Ge={}));const Wc={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><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},Xc={tabindex:"-1",width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},us="has-toolbar",ki="fancybox__toolbar";class Xr extends ge{constructor(){super(...arguments),Object.defineProperty(this,"state",{enumerable:!0,configurable:!0,writable:!0,value:Ge.Init}),Object.defineProperty(this,"container",{enumerable:!0,configurable:!0,writable:!0,value:null})}onReady(e){var t;if(!e.carousel)return;let n=this.option("display"),r=this.option("absolute"),a=this.option("enabled");if(a==="auto"){const d=this.instance.carousel;let u=0;if(d)for(const h of d.slides)(h.panzoom||h.type==="image")&&u++;u||(a=!1)}a||(n=void 0);let l=0;const o={left:[],middle:[],right:[]};if(n)for(const d of["left","middle","right"])for(const u of n[d]){const h=this.createEl(u);h&&((t=o[d])===null||t===void 0||t.push(h),l++)}let c=null;if(l&&(c=this.createContainer()),c){for(const[d,u]of Object.entries(o)){const h=document.createElement("div");M(h,ki+"__column is-"+d);for(const p of u)h.appendChild(p);r!=="auto"||d!=="middle"||u.length||(r=!0),c.appendChild(h)}r===!0&&M(c,"is-absolute"),this.state=Ge.Ready,this.onRefresh()}else this.state=Ge.Disabled}onClick(e){var t,n;const r=this.instance,a=r.getSlide(),l=a==null?void 0:a.panzoom,o=e.target,c=o&&ie(o)?o.dataset:null;if(!c)return;if(c.fancyboxToggleThumbs!==void 0)return e.preventDefault(),e.stopPropagation(),void((t=r.plugins.Thumbs)===null||t===void 0||t.toggle());if(c.fancyboxToggleFullscreen!==void 0)return e.preventDefault(),e.stopPropagation(),void this.instance.toggleFullscreen();if(c.fancyboxToggleSlideshow!==void 0){e.preventDefault(),e.stopPropagation();const h=(n=r.carousel)===null||n===void 0?void 0:n.plugins.Autoplay;let p=h.isActive;return l&&l.panMode==="mousemove"&&!p&&l.reset(),void(p?h.stop():h.start())}const d=c.panzoomAction,u=c.panzoomChange;if((u||d)&&(e.preventDefault(),e.stopPropagation()),u){let h={};try{h=JSON.parse(u)}catch{}l&&l.applyChange(h)}else d&&l&&l[d]&&l[d]()}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!==ee.Ready)return;const n=t&&!t.error&&t.panzoom;for(const l of e.querySelectorAll("[data-panzoom-action]"))n?(l.removeAttribute("disabled"),l.removeAttribute("tabindex")):(l.setAttribute("disabled",""),l.setAttribute("tabindex","-1"));let r=n&&n.canZoomIn(),a=n&&n.canZoomOut();for(const l of e.querySelectorAll('[data-panzoom-action="zoomIn"]'))r?(l.removeAttribute("disabled"),l.removeAttribute("tabindex")):(l.setAttribute("disabled",""),l.setAttribute("tabindex","-1"));for(const l of e.querySelectorAll('[data-panzoom-action="zoomOut"]'))a?(l.removeAttribute("disabled"),l.removeAttribute("tabindex")):(l.setAttribute("disabled",""),l.setAttribute("tabindex","-1"));for(const l of e.querySelectorAll('[data-panzoom-action="toggleZoom"],[data-panzoom-action="iterateZoom"]')){a||r?(l.removeAttribute("disabled"),l.removeAttribute("tabindex")):(l.setAttribute("disabled",""),l.setAttribute("tabindex","-1"));const o=l.querySelector("g");o&&(o.style.display=r?"":"none")}}onDone(e,t){var n;(n=t.panzoom)===null||n===void 0||n.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 n=t.querySelector("."+ki);return n||(n=document.createElement("div"),M(n,ki),t.prepend(n)),n.addEventListener("click",this.onClick,{passive:!1,capture:!0}),e&&M(e,us),this.container=n,n}createEl(e){const t=this.instance,n=t.carousel;if(!n||e==="toggleFS"||e==="fullscreen"&&!Ir())return null;let r=null;const a=n.slides.length||0;let l=0,o=0;for(const d of n.slides)(d.panzoom||d.type==="image")&&l++,(d.type==="image"||d.downloadSrc)&&o++;if(a<2&&["infobar","prev","next"].includes(e))return r;if(Ci[e]!==void 0&&!l||e==="download"&&!o)return null;if(e==="thumbs"){const d=t.plugins.Thumbs;if(!d||!d.isEnabled)return null}if(e==="slideshow"&&(!n.plugins.Autoplay||a<2))return null;if(Ci[e]!==void 0){const d=Ci[e];r=document.createElement("button"),r.setAttribute("title",this.instance.localize(`{{${e.toUpperCase()}}}`)),M(r,"f-button"),d.action&&(r.dataset.panzoomAction=d.action),d.change&&(r.dataset.panzoomChange=JSON.stringify(d.change)),r.appendChild(xe(this.instance.localize(d.icon)))}else{const d=(this.option("items")||[])[e];d&&(r=xe(this.instance.localize(d.tpl)),typeof d.click=="function"&&r.addEventListener("click",u=>{u.preventDefault(),u.stopPropagation(),typeof d.click=="function"&&d.click.call(this,this,u)}))}const c=r==null?void 0:r.querySelector("svg");if(c)for(const[d,u]of Object.entries(Xc))c.getAttribute(d)||c.setAttribute(d,String(u));return r}removeContainer(){const e=this.container;e&&e.remove(),this.container=null,this.state=Ge.Disabled;const t=this.instance.container;t&&j(t,us)}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(Xr,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:Wc});const Uc={Hash:class extends ge{onReady(){yt=!1}onChange(i){$e&&clearTimeout($e);const{hash:e}=Rr(),{hash:t}=ri(),n=i.isOpeningSlide(i.getSlide());n&&(ss=t===e?"":t),e&&e!==t&&($e=setTimeout(()=>{try{if(i.state===K.Ready){let r="replaceState";n&&!$t&&(r="pushState",$t=!0),window.history[r]({},document.title,window.location.pathname+window.location.search+e)}}catch{}},300))}onClose(i){if($e&&clearTimeout($e),!yt&&$t)return $t=!1,yt=!1,void window.history.back();if(!yt)try{window.history.replaceState({},document.title,window.location.pathname+window.location.search+(ss||""))}catch{}}attach(){const i=this.instance;i.on("ready",this.onReady),i.on(["Carousel.ready","Carousel.change"],this.onChange),i.on("close",this.onClose)}detach(){const i=this.instance;i.off("ready",this.onReady),i.off(["Carousel.ready","Carousel.change"],this.onChange),i.off("close",this.onClose)}static parseURL(){return ri()}static startFromUrl(){Dr()}static destroy(){window.removeEventListener("hashchange",jr,!1)}},Html:Br,Images:Fr,Slideshow:Hr,Thumbs:Wr,Toolbar:Xr},hs="with-fancybox",Mi="hide-scrollbar",ps="--fancybox-scrollbar-compensate",ms="--fancybox-body-margin",Li="aria-hidden",Ai="is-using-tab",Oi="is-animated",fs="is-compact",gs="is-loading",Ii="is-opening",Xt="has-caption",Qe="disabled",je="tabindex",vs="download",Ri="href",et="src",Ae=i=>typeof i=="string",bs=function(){var i=window.getSelection();return!!i&&i.type==="Range"};let ce,de=null,Fe=null,xs=0,ys=0,ws=0,Ns=0;const tt=new Map;let qc=0;class z extends pn{get isIdle(){return this.idle}get isCompact(){return this.option("compact")}constructor(e=[],t={},n={}){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:K.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}),ce||(ce=Ir()),this.id=t.id||++qc,tt.set(this.id,this),this.userSlides=e,this.userPlugins=n,queueMicrotask(()=>{this.init()})}init(){if(this.state===K.Destroy)return;this.state=K.Init,this.attachPlugins(Object.assign(Object.assign({},z.Plugins),this.userPlugins)),this.emit("init"),this.emit("attachPlugins"),this.option("hideScrollbar")===!0&&(()=>{if(!_t)return;const t=document,n=t.body,r=t.documentElement;if(n.classList.contains(Mi))return;let a=window.innerWidth-r.getBoundingClientRect().width;const l=parseFloat(window.getComputedStyle(n).marginRight);a<0&&(a=0),r.style.setProperty(ps,`${a}px`),l&&n.style.setProperty(ms,`${l}px`),n.classList.add(Mi)})(),this.initLayout(),this.scale();const e=()=>{this.initCarousel(this.userSlides),this.state=K.Ready,this.attachEvents(),this.emit("ready"),setTimeout(()=>{this.container&&this.container.setAttribute(Li,"false")},16)};this.option("Fullscreen.autoStart")&&ce&&!ce.isFullscreen()?ce.request().then(()=>{this.startedFs=!0,e()}).catch(()=>e()):e()}initLayout(){var e,t;const n=this.option("parentEl")||document.body,r=xe(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(fs,this.isCompact),M(r,this.option("mainClass")||""),M(r,Ii),this.container=r,this.footer=r.querySelector(".fancybox__footer"),n.appendChild(r),M(document.documentElement,hs),de&&Fe||(de=document.createElement("span"),M(de,"fancybox-focus-guard"),de.setAttribute(je,"0"),de.setAttribute(Li,"true"),de.setAttribute("aria-label","Focus guard"),Fe=de.cloneNode(),(e=r.parentElement)===null||e===void 0||e.insertBefore(de,r),(t=r.parentElement)===null||t===void 0||t.append(Fe)),r.addEventListener("mousedown",a=>{xs=a.pageX,ys=a.pageY,j(r,Ai)}),this.option("closeExisting"))for(const a of tt.values())a.id!==this.id&&a.close();else this.option("animated")&&(M(r,Oi),setTimeout(()=>{this.isClosing()||j(r,Oi)},350));this.emit("initLayout")}}initCarousel(e){const t=this.container;if(!t)return;const n=t.querySelector(".fancybox__carousel");if(!n)return;const r=this.carousel=new We(n,ne({},{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("*",(a,l,...o)=>{this.emit(`Carousel.${l}`,a,...o)}),r.on(["ready","change"],()=>{this.manageCaption()}),this.on("Carousel.removeSlide",(a,l,o)=>{this.clearContent(o),o.state=void 0}),r.on("Panzoom.touchStart",()=>{var a,l;this.isCompact||this.endIdle(),!((a=document.activeElement)===null||a===void 0)&&a.closest(".f-thumbs")&&((l=this.container)===null||l===void 0||l.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",(a,l)=>{const o=this.getSlide();if(o&&Ui(o.el))return;const c=this.container;if(c){const d=Math.abs(l.current.f),u=d<1?"":Math.max(.5,Math.min(1,1-d/l.contentRect.fitHeight*1.5));c.style.setProperty("--fancybox-ts",u?"0s":""),c.style.setProperty("--fancybox-opacity",u+"")}}),r.on("Panzoom.touchEnd",(a,l,o)=>{var c;const d=this.getSlide();if(d&&Ui(d.el)||l.isMobile&&document.activeElement&&["TEXTAREA","INPUT"].indexOf((c=document.activeElement)===null||c===void 0?void 0:c.nodeName)!==-1)return;const u=Math.abs(l.dragOffset.y);l.lockedAxis==="y"&&(u>=200||u>=50&&l.dragOffset.time<300)&&(o&&o.cancelable&&o.preventDefault(),this.close(o,"f-throwOut"+(l.current.f<0?"Up":"Down")))})),r.on("change",a=>{var l;let o=(l=this.getSlide())===null||l===void 0?void 0:l.triggerEl;if(o){const c=new CustomEvent("slideTo",{bubbles:!0,cancelable:!0,detail:a.page});o.dispatchEvent(c)}}),r.on(["refresh","change"],a=>{const l=this.container;if(!l)return;for(const d of l.querySelectorAll("[data-fancybox-current-index]"))d.innerHTML=a.page+1;for(const d of l.querySelectorAll("[data-fancybox-count]"))d.innerHTML=a.pages.length;if(!a.isInfinite){for(const d of l.querySelectorAll("[data-fancybox-next]"))a.page<a.pages.length-1?(d.removeAttribute(Qe),d.removeAttribute(je)):(d.setAttribute(Qe,""),d.setAttribute(je,"-1"));for(const d of l.querySelectorAll("[data-fancybox-prev]"))a.page>0?(d.removeAttribute(Qe),d.removeAttribute(je)):(d.setAttribute(Qe,""),d.setAttribute(je,"-1"))}const o=this.getSlide();if(!o)return;let c=o.downloadSrc||"";c||o.type!=="image"||o.error||!Ae(o[et])||(c=o[et]);for(const d of l.querySelectorAll("[data-fancybox-download]")){const u=o.downloadFilename;c?(d.removeAttribute(Qe),d.removeAttribute(je),d.setAttribute(Ri,c),d.setAttribute(vs,u||c),d.setAttribute("target","_blank")):(d.setAttribute(Qe,""),d.setAttribute(je,"-1"),d.removeAttribute(Ri),d.removeAttribute(vs))}}),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 n=window.visualViewport;n&&(n.addEventListener("scroll",e.onResize),n.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 n=window.visualViewport;n&&(n.removeEventListener("resize",e.onResize),n.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,n=Math.max(1,(t==null?void 0:t.scale)||1);let r="",a="",l="";if(t&&n>1){let o=`${t.offsetLeft}px`,c=`${t.offsetTop}px`;r=t.width*n+"px",a=t.height*n+"px",l=`translate3d(${o}, ${c}, 0) scale(${1/n})`}e.style.transform=l,e.style.width=r,e.style.height=a}onClick(e){var t;const{container:n,isCompact:r}=this;if(!n||this.isClosing())return;!r&&this.option("idle")&&this.resetIdle();const a=e.composedPath()[0];if(a.closest(".fancybox-spinner")||a.closest("[data-fancybox-close]"))return e.preventDefault(),void this.close(e);if(a.closest("[data-fancybox-prev]"))return e.preventDefault(),void this.prev();if(a.closest("[data-fancybox-next]"))return e.preventDefault(),void this.next();if(e.type==="click"&&e.detail===0||Math.abs(e.pageX-xs)>30||Math.abs(e.pageY-ys)>30)return;const l=document.activeElement;if(bs()&&l&&n.contains(l))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 o=!1;if(a.closest(".fancybox__content")){if(l){if(l.closest("[contenteditable]"))return;a.matches(Ei)||l.blur()}if(bs())return;o=this.option("contentClick")}else a.closest(".fancybox__carousel")&&!a.matches(Ei)&&(o=this.option("backdropClick"));o==="close"?(e.preventDefault(),this.close(e)):o==="next"?(e.preventDefault(),this.next()):o==="prev"&&(e.preventDefault(),this.prev())}onWheel(e){const t=e.target;let n=this.option("wheel",e);t.closest(".fancybox__thumbs")&&(n="slide");const r=n==="slide",a=[-e.deltaX||0,-e.deltaY||0,-e.detail||0].reduce(function(c,d){return Math.abs(d)>Math.abs(c)?d:c}),l=Math.max(-1,Math.min(1,a)),o=Date.now();this.pwt&&o-this.pwt<300?r&&e.preventDefault():(this.pwt=o,this.emit("wheel",e,l),e.defaultPrevented||(n==="close"?(e.preventDefault(),this.close(e)):n==="slide"&&(ni(t)||(e.preventDefault(),this[l>0?"prev":"next"]()))))}onScroll(){window.scrollTo(ws,Ns)}onKeydown(e){if(!this.isTopmost())return;this.isCompact||!this.option("idle")||this.isClosing()||this.resetIdle();const t=e.key,n=this.option("keyboard");if(!n)return;const r=e.composedPath()[0],a=document.activeElement&&document.activeElement.classList,l=a&&a.contains("f-button")||r.dataset.carouselPage||r.dataset.carouselIndex;if(t!=="Escape"&&!l&&ie(r)&&(r.isContentEditable||["TEXTAREA","OPTION","INPUT","SELECT","VIDEO"].indexOf(r.nodeName)!==-1)||(e.key==="Tab"?M(this.container,Ai):j(this.container,Ai),e.ctrlKey||e.altKey||e.shiftKey))return;this.emit("keydown",t,e);const o=n[t];o&&typeof this[o]=="function"&&(e.preventDefault(),this[o]())}onResize(){const e=this.container;if(!e)return;const t=this.isCompact;e.classList.toggle(fs,t),this.manageCaption(this.getSlide()),this.isCompact?this.clearIdle():this.endIdle(),this.scale(),this.emit("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===Ge.Ready)return}if(!t||!e.contentEl||e.closeBtnEl)return;const n=this.option("tpl.closeButton");if(n){const r=xe(this.localize(n));e.closeBtnEl=e.contentEl.appendChild(r),e.el&&M(e.el,"has-close-btn")}}manageCaption(e=void 0){var t,n;const r="fancybox__caption",a=this.container;if(!a)return;j(a,Xt);const l=this.isCompact||this.option("commonCaption"),o=!l;if(this.caption&&this.stop(this.caption),o&&this.caption&&(this.caption.remove(),this.caption=null),l&&!this.caption)for(const h of((t=this.carousel)===null||t===void 0?void 0:t.slides)||[])h.captionEl&&(h.captionEl.remove(),h.captionEl=void 0,j(h.el,Xt),(n=h.el)===null||n===void 0||n.removeAttribute("aria-labelledby"));if(e||(e=this.getSlide()),!e||l&&!this.isCurrentSlide(e))return;const c=e.el;let d=this.optionFor(e,"caption","");if(!d)return void(l&&this.caption&&this.animate(this.caption,"f-fadeOut",()=>{this.caption&&(this.caption.innerHTML="")}));let u=null;if(o){if(u=e.captionEl||null,c&&!u){const h=r+`_${this.id}_${e.index}`;u=document.createElement("div"),M(u,r),u.setAttribute("id",h),e.captionEl=c.appendChild(u),M(c,Xt),c.setAttribute("aria-labelledby",h)}}else u=this.caption,u||(u=a.querySelector("."+r)),!u&&(u=document.createElement("div"),u.dataset.fancyboxCaption="",M(u,r),(this.footer||a).prepend(u)),M(a,Xt),this.caption=u;u&&(u.innerHTML="",Ae(d)||typeof d=="number"?u.innerHTML=d+"":d instanceof HTMLElement&&u.appendChild(d))}checkFocus(e){this.focus(e)}focus(e){var t;if(this.ignoreFocusChange)return;const n=document.activeElement||null,r=(e==null?void 0:e.target)||null,a=this.container,l=(t=this.carousel)===null||t===void 0?void 0:t.viewport;if(!a||!l||!e&&n&&a.contains(n))return;const o=this.getSlide(),c=o&&o.state===ee.Ready?o.el:null;if(!c||c.contains(n)||a===n)return;e&&e.cancelable&&e.preventDefault(),this.ignoreFocusChange=!0;const d=Array.from(a.querySelectorAll(Ei));let u=[],h=null;for(let m of d){const f=!m.offsetParent||!!m.closest('[aria-hidden="true"]'),v=c&&c.contains(m),b=!l.contains(m);if(m===a||(v||b)&&!f){u.push(m);const g=m.dataset.origTabindex;g!==void 0&&g&&(m.tabIndex=parseFloat(g)),m.removeAttribute("data-orig-tabindex"),!m.hasAttribute("autoFocus")&&h||(h=m)}else{const g=m.dataset.origTabindex===void 0?m.getAttribute("tabindex")||"":m.dataset.origTabindex;g&&(m.dataset.origTabindex=g),m.tabIndex=-1}}let p=null;e?(!r||u.indexOf(r)<0)&&(p=h||a,u.length&&(n===Fe?p=u[0]:this.lastFocus!==a&&n!==de||(p=u[u.length-1]))):p=o&&o.type==="image"?a:h||a,p&&ns(p),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="",n){if(!e||!t)return void(n&&n());this.stop(e);const r=a=>{a.target===e&&e.dataset.animationName&&(e.removeEventListener("animationend",r),delete e.dataset.animationName,n&&n(),j(e,t))};e.dataset.animationName=t,e.addEventListener("animationend",r),M(e,t)}stop(e){e&&e.dispatchEvent(new CustomEvent("animationend",{bubbles:!1,cancelable:!0,currentTarget:e}))}setContent(e,t="",n=!0){if(this.isClosing())return;const r=e.el;if(!r)return;let a=null;if(ie(t)?a=t:(a=xe(t+""),ie(a)||(a=document.createElement("div"),a.innerHTML=t+"")),["img","picture","iframe","video","audio"].includes(a.nodeName.toLowerCase())){const l=document.createElement("div");l.appendChild(a),a=l}ie(a)&&e.filter&&!e.error&&(a=a.querySelector(e.filter)),a&&ie(a)?(M(a,"fancybox__content"),e.id&&a.setAttribute("id",e.id),r.classList.add(`has-${e.error?"error":e.type||"unknown"}`),r.prepend(a),a.style.display==="none"&&(a.style.display=""),getComputedStyle(a).getPropertyValue("display")==="none"&&(a.style.display=e.display||this.option("defaultDisplay")||"flex"),e.contentEl=a,n&&this.revealContent(e),this.manageCloseBtn(e),this.manageCaption(e)):this.setError(e,"{{ELEMENT_NOT_FOUND}}")}revealContent(e,t){const n=e.el,r=e.contentEl;n&&r&&(this.emit("reveal",e),this.hideLoading(e),e.state=ee.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=ee.Ready,this.emit("done",e),M(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)&&(j(this.container,Ii),!this.isCompact&&this.option("idle")&&this.setIdle()))}isCurrentSlide(e){const t=this.getSlide();return!(!e||!t)&&t.index===e.index}isOpeningSlide(e){var t,n;return((t=this.carousel)===null||t===void 0?void 0:t.prevPage)===null&&e&&e.index===((n=this.getSlide())===null||n===void 0?void 0:n.index)}showLoading(e){e.state=ee.Loading;const t=e.el;t&&(M(t,gs),this.emit("loading",e),e.spinnerEl||setTimeout(()=>{if(!this.isClosing()&&!e.spinnerEl&&e.state===ee.Loading){let n=xe(mn);M(n,"fancybox-spinner"),e.spinnerEl=n,t.prepend(n),this.animate(n,"f-fadeIn")}},250))}hideLoading(e){const t=e.el;if(!t)return;const n=e.spinnerEl;this.isClosing()?n==null||n.remove():(j(t,gs),n&&this.animate(n,"f-fadeOut",()=>{n.remove()}),e.state===ee.Loading&&(this.emit("loaded",e),e.state=ee.Ready))}setError(e,t){if(this.isClosing())return;const n=new Event("error",{bubbles:!0,cancelable:!0});if(this.emit("error",n,e),n.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&&(j(t,"has-error"),j(t,"has-unknown"),j(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 n=new Event("shouldClose",{bubbles:!0,cancelable:!0});if(this.emit("shouldClose",n,e),n.defaultPrevented)return;e&&e.cancelable&&(e.preventDefault(),e.stopPropagation());const r=()=>{this.proceedClose(e,t)};this.startedFs&&ce&&ce.isFullscreen()?Promise.resolve(ce.exit()).then(()=>r()):r()}clearIdle(){this.idleTimer&&clearTimeout(this.idleTimer),this.idleTimer=null}setIdle(e=!1){const t=()=>{this.clearIdle(),this.idle=!0,M(this.container,"is-idle"),this.emit("setIdle")};if(this.clearIdle(),!this.isClosing())if(e)t();else{const n=this.option("idle");n&&(this.idleTimer=setTimeout(t,n))}}endIdle(){this.clearIdle(),this.idle&&!this.isClosing()&&(this.idle=!1,j(this.container,"is-idle"),this.emit("endIdle"))}resetIdle(){this.endIdle(),this.setIdle()}toggleIdle(){this.idle?this.endIdle():this.setIdle(!0)}toggleFullscreen(){ce&&(ce.isFullscreen()?ce.exit():ce.request().then(()=>{this.startedFs=!0}))}isClosing(){return[K.Closing,K.CustomClosing,K.Destroy].includes(this.state)}proceedClose(e,t){var n,r;this.state=K.Closing,this.clearIdle(),this.detachEvents();const a=this.container,l=this.carousel,o=this.getSlide(),c=o&&this.option("placeFocusBack")?o.triggerEl||this.option("triggerEl"):null;if(c&&(Or(c)?ns(c):c.focus()),a&&(j(a,Ii),M(a,"is-closing"),a.setAttribute(Li,"true"),this.option("animated")&&M(a,Oi),a.style.pointerEvents="none"),l){l.clearTransitions(),(n=l.panzoom)===null||n===void 0||n.destroy(),(r=l.plugins.Navigation)===null||r===void 0||r.detach();for(const d of l.slides){d.state=ee.Closing,this.hideLoading(d);const u=d.contentEl;u&&this.stop(u);const h=d==null?void 0:d.panzoom;h&&(h.stop(),h.detachEvents(),h.detachObserver()),this.isCurrentSlide(d)||l.emit("removeSlide",d)}}ws=window.scrollX,Ns=window.scrollY,window.addEventListener("scroll",this.onScroll),this.emit("close",e),this.state!==K.CustomClosing?(t===void 0&&o&&(t=this.optionFor(o,"hideClass")),t&&o?(this.animate(o.contentEl,t,()=>{l&&l.emit("removeSlide",o)}),setTimeout(()=>{this.destroy()},500)):this.destroy()):setTimeout(()=>{this.destroy()},500)}destroy(){var e;if(this.state===K.Destroy)return;window.removeEventListener("scroll",this.onScroll),this.state=K.Destroy,(e=this.carousel)===null||e===void 0||e.destroy();const t=this.container;t&&t.remove(),tt.delete(this.id);const n=z.getInstance();n?n.focus():(de&&(de.remove(),de=null),Fe&&(Fe.remove(),Fe=null),j(document.documentElement,hs),(()=>{if(!_t)return;const r=document,a=r.body;a.classList.remove(Mi),a.style.setProperty(ms,""),r.documentElement.style.setProperty(ps,"")})(),this.emit("destroy"))}static bind(e,t,n){if(!_t)return;let r,a="",l={};if(e===void 0?r=document.body:Ae(e)?(r=document.body,a=e,typeof t=="object"&&(l=t||{})):(r=e,Ae(t)&&(a=t),typeof n=="object"&&(l=n||{})),!r||!ie(r))return;a=a||"[data-fancybox]";const o=z.openers.get(r)||new Map;o.set(a,l),z.openers.set(r,o),o.size===1&&r.addEventListener("click",z.fromEvent)}static unbind(e,t){let n,r="";if(Ae(e)?(n=document.body,r=e):(n=e,Ae(t)&&(r=t)),!n)return;const a=z.openers.get(n);a&&r&&a.delete(r),r&&a||(z.openers.delete(n),n.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 n=t.closest("[data-fancybox-trigger]");if(n){const f=n.dataset.fancyboxTrigger||"",v=document.querySelectorAll(`[data-fancybox="${f}"]`),b=parseInt(n.dataset.fancyboxIndex||"",10)||0;t=v[b]||t}if(!(t&&t instanceof Element))return;let r,a,l,o;if([...z.openers].reverse().find(([f,v])=>!(!f.contains(t)||![...v].reverse().find(([b,g])=>{let x=t.closest(b);return!!x&&(r=f,a=b,l=x,o=g,!0)}))),!r||!a||!l)return;o=o||{},e.preventDefault(),t=l;let c=[],d=ne({},Yi,o);d.event=e,d.triggerEl=t,d.delegate=n;const u=d.groupAll,h=d.groupAttr,p=h&&t?t.getAttribute(`${h}`):"";if((!t||p||u)&&(c=[].slice.call(r.querySelectorAll(a))),t&&!u&&(c=p?c.filter(f=>f.getAttribute(`${h}`)===p):[t]),!c.length)return;const m=z.getInstance();return m&&m.options.triggerEl&&c.indexOf(m.options.triggerEl)>-1?void 0:(t&&(d.startIndex=c.indexOf(t)),z.fromNodes(c,d))}static fromSelector(e,t,n){let r=null,a="",l={};if(Ae(e)?(r=document.body,a=e,typeof t=="object"&&(l=t||{})):e instanceof HTMLElement&&Ae(t)&&(r=e,a=t,typeof n=="object"&&(l=n||{})),!r||!a)return!1;const o=z.openers.get(r);return!!o&&(l=ne({},o.get(a)||{},l),!!l&&z.fromNodes(Array.from(r.querySelectorAll(a)),l))}static fromNodes(e,t){t=ne({},Yi,t||{});const n=[];for(const r of e){const a=r.dataset||{},l=a[et]||r.getAttribute(Ri)||r.getAttribute("currentSrc")||r.getAttribute(et)||void 0;let o;const c=t.delegate;let d;c&&n.length===t.startIndex&&(o=c instanceof HTMLImageElement?c:c.querySelector("img:not([aria-hidden])")),o||(o=r instanceof HTMLImageElement?r:r.querySelector("img:not([aria-hidden])")),o&&(d=o.currentSrc||o[et]||void 0,!d&&o.dataset&&(d=o.dataset.lazySrc||o.dataset[et]||void 0));const u={src:l,triggerEl:r,thumbEl:o,thumbElSrc:d,thumbSrc:d};for(const h in a){let p=a[h]+"";p=p!=="false"&&(p==="true"||p),u[h]=p}n.push(u)}return new z(n,t)}static getInstance(e){return e?tt.get(e):Array.from(tt.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 n of tt.values())n.close(...t);else{const n=z.getInstance();n&&n.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:Yi}),Object.defineProperty(z,"Plugins",{enumerable:!0,configurable:!0,writable:!0,value:Uc}),Object.defineProperty(z,"openers",{enumerable:!0,configurable:!0,writable:!0,value:new Map});function Yc(){const[i,e]=Q(!1),t=J(null),n=J(null);return fe(()=>{const a=t.current;a&&a.scrollHeight>=580&&(n.current.style.display="flex",a.style.height="580px"),z.bind('[data-fancybox="gallery"]')},[]),s("div",{className:"product-information mt-5",children:s("div",{className:"flex gap-[15px]",children:[s("div",{className:"left w-[60%]",children:s("div",{className:"box-desc bg-white p-[12px] rounded-[8px]",children:[s("h3",{className:"title text-2xl block mb-[10px] pb-[10px] border-b-[1px] border-[#B1B1B1] font-bold",children:"Thông tin sản phẩm"}),s("div",{id:"content-desciption",children:s("div",{className:"content nd",ref:t,children:[s("p",{style:"text-align: justify;",children:[s("strong",{children:"Laptop HP Victus 16 R0376TX AY8Z2PA"})," sở hữu chip xử lý Intel Core i7 13700HX cùng VGA RTX 3050 6GB để có được trải nghiệm chơi game, làm việc hiệu quả. Mẫu"," ",s("a",{href:"https://cellphones.com.vn/laptop/hp/victus.html",title:"HP Victus",target:"_blank",children:s("strong",{children:"HP Victus"})})," ","này còn được trang bị màn hình 16 inch FHD 165Hz giúp tái tạo hình ảnh sắc nét, mượt mà. Kèm theo đó là thiết kế bền bỉ, hiện đại để có thể sử dụng ở nhiều không gian."]}),s("h2",{style:"scroll-margin : 154px;",id:"laptop-hp-victus-16-r0376tx-ay8z2pa-hieu-nang-manh-me-hien-thi-an-tuong",children:s("strong",{children:"Laptop HP Victus 16 R0376TX AY8Z2PA - Hiệu năng mạnh mẽ, hiển thị ấn tượng"})}),s("p",{style:"text-align: justify;",children:["HP Victus 16 R0376TX AY8Z2PA với bộ vi xử lý và card đồ họa rời mạnh mẽ sẽ mang tới trải nghiệm chơi game, làm việc mượt mà, hiệu quả. Hãy cùng tìm hiểu thêm những điểm nổi bật mà mẫu laptop gaming của",s("strong",{children:" HP Victus "})," này sở hữu trong bài viết sau."]}),s("h3",{style:"scroll-margin : 154px;",id:"nang-cao-hieu-suat-xu-ly-voi-chip-core-i7-13700hx",children:s("strong",{children:[" ","Nâng cao hiệu suất xử lý với chip Core i7 13700HX"]})}),s("p",{style:"text-align: justify;",children:"Laptop HP Victus 16 R0376TX AY8Z2PA được trang bị con chip xử lý Core i7 13700HX của Intel. Con chip Core i7 16 lõi, 24 luồng này sở hữu khả năng ép xung cực đại lên tới 5GHz để luôn có thể xử lý dữ liệu trong thời gian ngắn. Với bộ nhớ đệm 30MB, hiệu suất xử lý các tác vụ phức tạp của laptop sẽ được giảm đi đáng kể."}),s("p",{style:"text-align: justify;",children:s("img",{src:"https://cdn2.cellphones.com.vn/insecure/rs:fill:0:0/q:90/plain/https://cellphones.com.vn/media/wysiwyg/laptop/HP/Victus/Laptop-hp-victus-16-r0376tx-ay8z2pa-1.jpg",alt:"Cấu hình laptop HP Victus 16 R0376TX AY8Z2PA",loading:"lazy"})}),s("p",{style:"text-align: justify;",children:["Để nâng cao khả năng xử lý đồ hoạ, HP còn trang bị cho phiên bản"," ",s("a",{href:"https://cellphones.com.vn/laptop/hp/victus/victus-16.html",title:"laptop Victus 16",target:"_blank",children:s("strong",{children:"laptop Victus 16"})}),"này card đồ hoạ rời NVIDIA GeForce RTX 3050 6GB GDDR6. Nhờ vậy mà người dùng có thể tự tin trải nghiệm các tựa game với mức cấu hình cao. Không dừng ở đó, các nhu cầu chỉnh sửa hình ảnh, dựng phim, tạo hình 3D,...chuyên nghiệp cũng được thực hiện mượt mà."]}),s("h3",{style:"scroll-margin : 154px;",id:"tich-hop-o-cung-toc-do-cao-cung-dung-luong-ram-lon",children:s("strong",{children:[" ","Tích hợp ổ cứng tốc độ cao cùng dung lượng RAM lớn"," "]})}),s("p",{style:"text-align: justify;",children:"HP Victus 16 R0376TX AY8Z2PA được trang bị sẵn 2 thanh RAM chuẩn DDR5 có tốc độ bus lên tới 4800MT/s. Với tổng dung lượng RAM 16GB, mẫu laptop gaming HP này sẽ đáp ứng tốt nhu cầu đa nhiệm. Không chỉ các tác vụ cơ bản mà nhu cầu đa nhiệm nâng cao trong công việc cũng sẽ được thực hiện mượt mà mà không cần phải nâng cấp cấu hình. Ngoài ra, laptop HP Victus 16 R0376TX AY8Z2PA còn sở hữu một ổ cứng SSD tốc độ cao có dung lượng 512GB. "}),s("p",{style:"text-align: justify;",children:s("img",{src:"https://cdn2.cellphones.com.vn/insecure/rs:fill:0:0/q:90/plain/https://cellphones.com.vn/media/wysiwyg/laptop/HP/Victus/Laptop-hp-victus-16-r0376tx-ay8z2pa-2.jpg",alt:"Cấu hình laptop HP Victus 16 R0376TX AY8Z2PA",loading:"lazy"})}),s("h3",{style:"scroll-margin : 154px;",id:"thiet-ke-hien-dai-ben-bi",children:s("strong",{children:" Thiết kế hiện đại, bền bỉ "})}),s("p",{style:"text-align: justify;",children:"Laptop Victus 16 R0376TX AY8Z2PA được HP thiết kế hướng tới phong cách hiện đại, tối giản. Tuy vậy nhưng sản phẩm vẫn mang đậm dấu ấn gaming với tông màu đen thu hút và mạnh mẽ. Kèm theo đó là một tổng thể chắc chắn, bền bỉ cùng phần bản lề kích thước lớn."}),s("p",{style:"text-align: justify;",children:"Với trọng lượng khoảng 2.31kg, người dùng vẫn có thể tiện lợi mang theo phiên bản laptop HP Victus này mà không gặp bất tiện. So với các mẫu laptop gaming khác, đây được coi là một điểm cộng giúp sản phẩm đáp ứng nhu cầu chơi game ở nhiều không gian của người dùng."}),s("p",{style:"text-align: justify;",children:s("img",{src:"https://cdn2.cellphones.com.vn/insecure/rs:fill:0:0/q:90/plain/https://cellphones.com.vn/media/wysiwyg/laptop/HP/Victus/Laptop-hp-victus-16-r0376tx-ay8z2pa-3.jpg",alt:"Thiết kế laptop HP Victus 16 R0376TX AY8Z2PA",loading:"lazy"})}),s("p",{style:"text-align: justify;",children:"Để hỗ trợ tốt cả nhu cầu chơi game và làm việc, HP đã trang bị cho laptop Victus 16 R0376TX AY8Z2PA bộ bàn phím Full-size. Với phần bàn phím số riêng biệt, người dùng sẽ cải thiện được tốc độ nhập liệu trong khi làm việc. Bàn phím của laptop còn được tích hợp hệ thống đèn nền RGB 1 để hỗ trợ việc gõ phím trong điều kiện thiếu sáng."}),s("h3",{style:"scroll-margin : 154px;",id:"hien-thi-sac-net-va-muot-ma",children:s("strong",{children:" Hiển thị sắc nét và mượt mà "})}),s("p",{style:"text-align: justify;",children:"Laptop HP Victus 16 R0376TX AY8Z2PA sở hữu không giản hiển thị cực lớn khi được trang bị màn hình có kích thước 16.1 inch. Kèm theo đó là độ phân giải FHD (1920 x 1080p) giúp nội dung hiển thị luôn có được độ rõ nét. Nhờ việc sử dụng tấm nền IPS, người dùng còn có thể điều chỉnh góc nghiêng linh hoạt mà không gây ảnh hưởng tới chất lượng hình ảnh."}),s("p",{style:"text-align: justify;",children:s("img",{src:"https://cdn2.cellphones.com.vn/insecure/rs:fill:0:0/q:90/plain/https://cellphones.com.vn/media/wysiwyg/laptop/HP/Victus/Laptop-hp-victus-16-r0376tx-ay8z2pa-4.jpg",alt:"Hiển thị sắc nét và mượt mà",loading:"lazy"})}),s("p",{style:"text-align: justify;",children:"Điểm nổi bật có trên màn hình HP Victus 16 R0376TX AY8Z2PA chính là tần số quét và độ phủ màu. Với độ phủ màu 100% sRGB, mẫu laptop gaming HP này sẽ hỗ trợ người dùng làm các công việc liên quan tới sáng tạo hiệu quả. Tần số quét ở mức 165Hz sẽ giúp màn hình tái hiện các chuyển động một cách uyển chuyển, mượt mà."}),s("p",{style:"text-align: justify;",children:"Ngoài ra, màn hình HP Victus 16 R0376TX AY8Z2PA còn được phủ lớp chống chói và có độ sáng 300 nits để thoải mái sử dụng ở những nơi có ánh sáng mạnh. Với chuẩn Low Blue Light, màn hình còn giảm thiểu lượng ánh sáng xanh phát ra để hạn chế tình trạng mỏi mắt khi sử dụng laptop trong thời gian dài."}),s("h3",{style:"scroll-margin : 154px;",id:"thoi-luong-pin-dai-ket-noi-phong-phu-va-on-dinh",children:s("strong",{children:[" ","Thời lượng pin dài, kết nối phong phú và ổn định"," "]})}),s("p",{style:"text-align: justify;",children:"Laptop HP Victus 16 R0376TX AY8Z2PA được trang bị viên pin Li-ion Polymer 4-cell có dung lượng ở mức 70Wh. Với dung lượng này, viên pin có thể duy trì trạng thái hoạt động cho laptop lên tới nhiều giờ với các tác vụ hỗn hợp. Laptop còn được trang bị bộ nguồn 200W Smart AC power adapter để hỗ trợ sạc pin nhanh 50% trong khoảng 30 phút."}),s("p",{style:"text-align: justify;",children:s("img",{src:"https://cdn2.cellphones.com.vn/insecure/rs:fill:0:0/q:90/plain/https://cellphones.com.vn/media/wysiwyg/laptop/HP/Victus/Laptop-hp-victus-16-r0376tx-ay8z2pa-5.jpg",alt:"Thời lượng pin dài, kết nối phong phú và ổn định",loading:"lazy"})}),s("p",{style:"text-align: justify;",children:"Để hỗ trợ việc liên kết có dây và chia sẻ dữ liệu, HP còn trang bị cho mẫu laptop Victus của hàng đầy đủ các cổng kết nối thông dụng. Hai cạnh bên laptop được tích hợp các cổng USB Type-A, USB Type-C, RJ-45, HDMI 2.1, jack audio 3.5mm và bộ chuyển đổi điện xoay chiều thông minh."}),s("p",{style:"text-align: justify;",children:"Laptop Victus 16 R0376TX AY8Z2PA còn được trang bị card wireless Bluetooth 5.3 và Intel Wi-Fi 6E AX211 (2x2). Điều này sẽ đảm bảo được khả năng kết nối với các thiết bị ngoại vi, kết nối mạng ổn định, nhanh chóng cho laptop."}),s("h2",{style:"scroll-margin : 154px;",id:"mua-laptop-hp-victus-16-r0376tx-ay8z2pa-gia-tot-tai-cellphones",children:s("strong",{children:[" ","Mua laptop HP Victus 16 R0376TX AY8Z2PA giá tốt tại CellphoneS"," "]})}),s("ul",{children:[s("li",{children:["Hãy tới ngay các cửa hàng CellphoneS trên cả nước để trải nghiệm và đặt mua"," ",s("strong",{children:"Laptop HP Victus 16 R0376TX AY8Z2PA "})," . Mẫu laptop gaming HP này còn có mức giá cực kỳ hấp dẫn khi đi kèm nhiều chương trình ưu đãi, hỗ trợ thu cũ - đổi mới,..."]}),s("li",{children:"Với chính sách hỗ trợ trả góp lãi suất thấp, khách hàng sẽ còn dễ dàng sở hữu và trải nghiệm chiếc laptop này. Ngoài ra, CellphoneS còn hỗ trợ giao hàng toàn quốc để khách hàng tiện lợi đặt mua dù ở nơi đâu."})]})]})}),s("a",{href:"javascript:void(0)",ref:n,className:"more-all js-viewmore-content item-btn flex items-center",onClick:()=>{e(l=>!l);const a=t.current;a.classList.toggle("active"),i&&window.scrollTo({top:a.getBoundingClientRect().top+window.scrollY-200,behavior:"smooth"})},children:i?s(W,{children:[s("span",{children:"Thu gọn"})," ",s("i",{className:"icon_2025 angle-top mt-[10px]"})]}):s(W,{children:[s("span",{children:"Xem thêm "}),s("i",{className:"icon_2025 angle-bottom"})]})})]})}),s("div",{className:"right w-[40%]",children:s("div",{className:"box-spec bg-white p-[12px] rounded-[8px]",children:[s("h3",{className:"title text-2xl block mb-[10px] pb-[10px] border-b-[1px] border-[#B1B1B1] font-bold",children:"Thông tin chi tiết"}),s("div",{className:"content table",children:s("table",{width:"638",children:s("tbody",{children:[s("tr",{children:[s("td",{children:"Mã sản phẩm"}),s("td",{children:"VA3416WC"})]}),s("tr",{children:[s("td",{children:"Màu sắc"}),s("td",{children:"Đen"})]}),s("tr",{children:[s("td",{children:"Độ sáng"}),s("td",{children:"Max 300cd/m²"})]}),s("tr",{children:[s("td",{children:"Độ tương phản"}),s("td",{children:"3000:1"})]}),s("tr",{children:[s("td",{children:"Màu sắc hiển thị"}),s("td",{children:"16.7M"})]}),s("tr",{children:[s("td",{children:"Màu sắc hỗ trợ"}),s("td",{children:"6500K"})]}),s("tr",{children:[s("td",{children:"Loại màn hình"}),s("td",{children:"Cong R1500"})]}),s("tr",{children:[s("td",{children:"Kích cỡ màn hình"}),s("td",{children:'34"'})]}),s("tr",{children:[s("td",{children:"Tấm nền"}),s("td",{children:"VA"})]}),s("tr",{children:[s("td",{children:"Góc nhìn"}),s("td",{children:"89°/89° (H/V)"})]}),s("tr",{children:[s("td",{children:"Tính năng đặc biệt"}),s("td",{children:[s("br",{}),"1. Flicker-Free Backlight adjustment",s("br",{}),"2. Dynamic Contrast Ratio: DCR",s("br",{}),"3. Adaptive Sync",s("br",{}),"4.FPS/RTS",s("br",{}),"5.PIP/PBP",s("br",{}),"6. PQ",s("br",{}),"7. GAME PLUS"]})]})]})})}),s("div",{id:"content-specification",className:"hidden table",children:s("table",{width:"638",children:s("tbody",{children:[s("tr",{children:[s("td",{children:"Mã sản phẩm"}),s("td",{children:"VA3416WC"})]}),s("tr",{children:[s("td",{children:"Màu sắc"}),s("td",{children:"Đen"})]}),s("tr",{children:[s("td",{children:"Độ sáng"}),s("td",{children:"Max 300cd/m²"})]}),s("tr",{children:[s("td",{children:"Độ tương phản"}),s("td",{children:"3000:1"})]}),s("tr",{children:[s("td",{children:"Màu sắc hiển thị"}),s("td",{children:"16.7M"})]}),s("tr",{children:[s("td",{children:"Màu sắc hỗ trợ"}),s("td",{children:"6500K"})]}),s("tr",{children:[s("td",{children:"Loại màn hình"}),s("td",{children:"Cong R1500"})]}),s("tr",{children:[s("td",{children:"Kích cỡ màn hình"}),s("td",{children:'34"'})]}),s("tr",{children:[s("td",{children:"Tấm nền"}),s("td",{children:"VA"})]}),s("tr",{children:[s("td",{children:"Góc nhìn"}),s("td",{children:"89°/89° (H/V)"})]}),s("tr",{children:[s("td",{children:"Tính năng đặc biệt"}),s("td",{children:[s("br",{}),"1. Flicker-Free Backlight adjustment",s("br",{}),"2. Dynamic Contrast Ratio: DCR",s("br",{}),"3. Adaptive Sync",s("br",{}),"4.FPS/RTS",s("br",{}),"5.PIP/PBP",s("br",{}),"6. PQ",s("br",{}),"7. GAME PLUS"]})]})]})})}),s("a",{href:"#content-specification","data-fancybox":!0,className:"more-all flex items-center justify-center",children:["Xem thêm thông số ",s("i",{className:"icon_2025 angle-bottom"})]})]})})]})})}function Zc({show:i,onClose:e}){return s(W,{children:[s("div",{id:"backgroundPopup",className:`${i?"active":""}`,onClick:e}),s("div",{className:`box-form-review fixed left-[50%] top-[50%] w-[860px] bg-white rounded-[12px] translate-x-[-50%] translate-y-[-50%] z-[999] p-[20px] ${i?"":"hidden"}`,id:"js-box-review",children:[s("div",{className:"title relative pb-[15px] border-b-[1px] border-[#E4E4E4]",children:[s("b",{className:"text-center text-xl block",children:"Đánh giá sản phẩm"}),s("a",{href:"javascript:void(0)",onClick:e,id:"js-close-review",className:"absolute right-0 top-0 text-[#808080] text-[22px] ",children:s("i",{class:"icon_2025 close"})})]}),s("div",{className:"info-form-review w-[500px] mx-[auto]",children:[s("a",{href:"",className:"block m-[10px_auto] p-[10px] rounded-[4px] border-[#B1B1B1]",children:s("img",{src:"/assets/images/small-product-detail.png",width:"100%",height:"100%",className:"block w-[100px] h-[100px] m-[0_auto]",alt:""})}),s("a",{href:"",className:"text-center block mb-[10px]",children:'Laptop Gaming Asus TUF FX505GE-BQ037T Core i7-8750H/Win10(15.6" FHD) - Hàng Chính Hãng'}),s("div",{className:"flex justify-center",children:s("div",{className:"rating-selection",children:[s("input",{type:"radio",className:"rating-input",id:"star5",name:"rating",value:"5"}),s("label",{for:"star5",className:"rating-star"}),s("input",{type:"radio",className:"rating-input",id:"star4",name:"rating",value:"4"}),s("label",{for:"star4",className:"rating-star"}),s("input",{type:"radio",className:"rating-input",id:"star3",name:"rating",value:"3"}),s("label",{for:"star3",className:"rating-star"}),s("input",{type:"radio",className:"rating-input",id:"star2",name:"rating",value:"2"}),s("label",{for:"star2",className:"rating-star"}),s("input",{type:"radio",className:"rating-input",id:"star1",name:"rating",value:"1"}),s("label",{for:"star1",className:"rating-star"})]})}),s("div",{className:"clearfix"})]}),s("div",{className:"form-input mt-[20px]",children:[s("input",{type:"text",name:"title",placeholder:"Mời bạn nhập tiêu đề..."}),s("div",{className:"note-error"})]}),s("div",{className:"form-input mt-[10px]",children:[s("textarea",{name:"content",placeholder:"Mời bạn chia sẻ cảm nhận...",id:""}),s("div",{className:"note-error"})]}),s("input",{id:"js-file-upload-id",type:"hidden",value:""}),s("div",{id:"js-container-selector",className:"mt-[10px] flex items-center",children:s("a",{href:"javascript:void(0)",className:"flex items-center",id:"js-select-file",children:[s("i",{className:"icon_2025 upload_image"}),s("span",{className:"text-[#1877F2] ml-[5px]",children:"Gửi ảnh thực tế"}),s("span",{className:"px-[5px]",children:"(tối đa 3 ảnh)"})]})}),s("button",{type:"submit",className:"mt-[15px] w-full h-[45px] bg-[#C8B7FF] rounded-[4px] text-white leading-[45px] hover:bg-[var(--color-global)]",children:"Gửi đánh giá"})]})]})}function Kc(){const[i,e]=Q(!1);return s(W,{children:[s("div",{className:"p-[15px] bg-white mt-5 rounded-[8px]",children:[s("div",{className:"flex items-center justify-between pb-[15px] border-b-[1px] border-[#B1B1B1]",children:[s("h3",{className:"text-xl font-bold",children:"Thành viên BestPC đánh giá"}),s("div",{className:"select-sort relative border border-[#b1b1b1] h-[45px] rounded-[4px] overflow-hidden",children:[s("select",{name:"",id:"",className:" appearance-none w-full relative p-[0_20px_0_10px] bg-transparent h-full z-[2]",children:[s("option",{value:"",children:"Top review"}),s("option",{value:"",children:"Review mới nhất"})]}),s("i",{className:"icon_2025 angle-right ml-[5px] absolute right-[7px] top-[12px] z-[1] rotate-[90deg]"})]})]}),s("div",{className:"flex gap-[25px]",children:[s("div",{className:"left w-[20%]",children:[s("b",{className:"text-center block pt-[20px] pb-[5px] text-2xl",children:"54 đánh giá"}),s("div",{className:"flex items-center justify-center",children:[s("i",{className:"icon-star star4"}),s("span",{className:"ml-[5px] mt-[3px]",children:"4.8"})]}),s("div",{className:"border-t-[1px] border-[#E4E4E4] pt-[10px] mt-[10px]",children:[s("div",{className:"flex items-center justify-between mb-[10px]",children:[s("i",{className:"icon-star star5"}),s("span",{children:"50 đánh giá"})]}),s("div",{className:"flex items-center justify-between mb-[10px]",children:[s("i",{className:"icon-star star4"}),s("span",{children:"50 đánh giá"})]}),s("div",{className:"flex items-center justify-between mb-[10px]",children:[s("i",{className:"icon-star star3"}),s("span",{children:"50 đánh giá"})]}),s("div",{className:"flex items-center justify-between mb-[10px]",children:[s("i",{className:"icon-star star2"}),s("span",{children:"50 đánh giá"})]}),s("div",{className:"flex items-center justify-between mb-[10px]",children:[s("i",{className:"icon-star star1"}),s("span",{children:"50 đánh giá"})]})]}),s("div",{className:"btn border-t-[1px] border-[#E4E4E4] pt-[10px] mt-[20px]",children:[s("p",{className:"text-center mt-[10px]",children:"Đánh giá của bạn về sản phẩm"}),s("a",{href:"javascript:void(0)",id:"js-show-form",onClick:t=>{t.preventDefault(),e(!0)},className:"block mt-[10px] h-[40px] leading-[40px] text-center text-white bg-[#FF7A00] rounded-[4px]",children:"Gửi đánh giá của bạn về sản phẩm"})]})]}),s("div",{className:"right w-[80%]",children:[s("div",{className:"list-review mt-[15px]",children:[s("div",{className:"item-review flex mb-[15px] pb-[15px] border-b-[1px] border-[#E4E4E4]",children:[s("div",{className:"w-[80px] mr-[20px]",children:[s("img",{src:"/assets/images/avartar-review-1.png",width:"75px",height:"75px",alt:"avartar"}),s("div",{className:"time mt-[10px]",children:[s("b",{className:"mb-[2px] text-center block",children:"Dino"}),s("p",{className:"text-center",children:"10:00pm 20/02/2025"})]})]}),s("div",{className:"w-[calc(100%-100px)]",children:[s("div",{className:"flex items-center mb-[5px]",children:[s("i",{className:"icon-star star4"}),s("b",{className:"ml-[10px]",children:"Laptop Gaming Asus ROG 16GB"})]}),s("p",{className:"content mb-[5px]",children:"Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. I"}),s("div",{className:"flex items-center mb-[10px]",children:[s("a",{href:"/src/assets/images/small-product-detail.png","data-fancybox":"gallery",className:"w-[80px] block mr-[10px]",children:s("img",{src:"/assets/images/small-product-detail.png",className:"w-[100%] block",alt:""})}),s("a",{href:"/src/assets/images/small-product-detail.png",className:"w-[80px] block mr-[10px]","data-fancybox":"gallery",children:s("img",{src:"/assets/images/small-product-detail.png",className:"w-[100%] block",alt:""})}),s("a",{href:"/src/assets/images/small-product-detail.png",className:"w-[80px] block mr-[10px]","data-fancybox":"gallery",children:s("img",{src:"/assets/images/small-product-detail.png",className:"w-[100%] block",alt:""})})]}),s("div",{className:"btn",children:[s("a",{href:"javascript:void(0)",className:"text-[#1877F2] mr-[10px]",children:["Bình luận"," ",s("span",{className:"ml-[3px] text-black",children:"(23)"})]}),s("a",{href:"javascript:void(0)",className:"text-[#1877F2]",children:["Thích ",s("span",{className:"ml-[3px] text-black",children:"(23)"})]})]})]})]}),s("div",{className:"item-review flex mb-[15px] pb-[15px] border-b-[1px] border-[#E4E4E4]",children:[s("div",{className:"w-[80px] mr-[20px]",children:[s("img",{src:"/assets/images/avartar-review-2.png",width:"75px",height:"75px",alt:"avartar"}),s("div",{className:"time mt-[10px]",children:[s("b",{className:"mb-[2px] text-center block",children:"Dino"}),s("p",{className:"text-center",children:"10:00pm 20/02/2025"})]})]}),s("div",{className:"w-[calc(100%-100px)]",children:[s("div",{className:"flex items-center mb-[5px]",children:[s("i",{className:"icon-star star4"}),s("b",{className:"ml-[10px]",children:"Laptop Gaming Asus ROG 16GB"})]}),s("p",{className:"content mb-[5px]",children:"Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. I"}),s("div",{className:"flex items-center mb-[10px]",children:[s("a",{href:"/src/assets/images/small-product-detail.png","data-fancybox":"gallery",className:"w-[80px] block mr-[10px]",children:s("img",{src:"/assets/images/small-product-detail.png",className:"w-[100%] block",alt:""})}),s("a",{href:"/src/assets/images/small-product-detail.png",className:"w-[80px] block mr-[10px]","data-fancybox":"gallery",children:s("img",{src:"/assets/images/small-product-detail.png",className:"w-[100%] block",alt:""})}),s("a",{href:"/src/assets/images/small-product-detail.png",className:"w-[80px] block mr-[10px]","data-fancybox":"gallery",children:s("img",{src:"/assets/images/small-product-detail.png",className:"w-[100%] block",alt:""})})]}),s("div",{className:"btn",children:[s("a",{href:"javascript:void(0)",className:"text-[#1877F2] mr-[10px]",children:["Bình luận"," ",s("span",{className:"ml-[3px] text-black",children:"(23)"})]}),s("a",{href:"javascript:void(0)",className:"text-[#1877F2]",children:["Thích ",s("span",{className:"ml-[3px] text-black",children:"(23)"})]})]})]})]}),s("div",{className:"item-review flex mb-[15px] pb-[15px] border-b-[1px] border-[#E4E4E4]",children:[s("div",{className:"w-[80px] mr-[20px]",children:[s("img",{src:"/assets/images/avartar-review-3.png",width:"75px",height:"75px",alt:"avartar"}),s("div",{className:"time mt-[10px]",children:[s("b",{className:"mb-[2px] text-center block",children:"Dino"}),s("p",{className:"text-center",children:"10:00pm 20/02/2025"})]})]}),s("div",{className:"w-[calc(100%-100px)]",children:[s("div",{className:"flex items-center mb-[5px]",children:[s("i",{className:"icon-star star4"}),s("b",{className:"ml-[10px]",children:"Laptop Gaming Asus ROG 16GB"})]}),s("p",{className:"content mb-[5px]",children:"Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. I"}),s("div",{className:"flex items-center mb-[10px]",children:[s("a",{href:"/src/assets/images/small-product-detail.png","data-fancybox":"gallery",className:"w-[80px] block mr-[10px]",children:s("img",{src:"/assets/images/small-product-detail.png",className:"w-[100%] block",alt:""})}),s("a",{href:"/src/assets/images/small-product-detail.png",className:"w-[80px] block mr-[10px]","data-fancybox":"gallery",children:s("img",{src:"/assets/images/small-product-detail.png",className:"w-[100%] block",alt:""})}),s("a",{href:"/src/assets/images/small-product-detail.png",className:"w-[80px] block mr-[10px]","data-fancybox":"gallery",children:s("img",{src:"/assets/images/small-product-detail.png",className:"w-[100%] block",alt:""})})]}),s("div",{className:"btn",children:[s("a",{href:"javascript:void(0)",className:"text-[#1877F2] mr-[10px]",children:["Bình luận"," ",s("span",{className:"ml-[3px] text-black",children:"(23)"})]}),s("a",{href:"javascript:void(0)",className:"text-[#1877F2]",children:["Thích ",s("span",{className:"ml-[3px] text-black",children:"(23)"})]})]})]})]})]}),s("a",{href:"javascript:void(0)",className:"pt-[15px] text-[#FF7A00] btn-more-review",children:["Xem thêm ",s("span",{children:"23"})," bình luận khác"]})]})]})]}),s(Zc,{show:i,onClose:()=>e(!1)})]})}function Jc(i,e,t,n){return i.params.createElements&&Object.keys(n).forEach(r=>{if(!t[r]&&t.auto===!0){let a=pe(i.el,`.${n[r]}`)[0];a||(a=ti("div",n[r]),a.className=n[r],i.el.append(a)),t[r]=a,e[r]=a}}),t}function it(i){let{swiper:e,extendParams:t,on:n,emit:r}=i;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 a(f){let v;return f&&typeof f=="string"&&e.isElement&&(v=e.el.querySelector(f)||e.hostEl.querySelector(f),v)?v:(f&&(typeof f=="string"&&(v=[...document.querySelectorAll(f)]),e.params.uniqueNavElements&&typeof f=="string"&&v&&v.length>1&&e.el.querySelectorAll(f).length===1?v=e.el.querySelector(f):v&&v.length===1&&(v=v[0])),f&&!v?f:v)}function l(f,v){const b=e.params.navigation;f=_e(f),f.forEach(g=>{g&&(g.classList[v?"add":"remove"](...b.disabledClass.split(" ")),g.tagName==="BUTTON"&&(g.disabled=v),e.params.watchOverflow&&e.enabled&&g.classList[e.isLocked?"add":"remove"](b.lockClass))})}function o(){const{nextEl:f,prevEl:v}=e.navigation;if(e.params.loop){l(v,!1),l(f,!1);return}l(v,e.isBeginning&&!e.params.rewind),l(f,e.isEnd&&!e.params.rewind)}function c(f){f.preventDefault(),!(e.isBeginning&&!e.params.loop&&!e.params.rewind)&&(e.slidePrev(),r("navigationPrev"))}function d(f){f.preventDefault(),!(e.isEnd&&!e.params.loop&&!e.params.rewind)&&(e.slideNext(),r("navigationNext"))}function u(){const f=e.params.navigation;if(e.params.navigation=Jc(e,e.originalParams.navigation,e.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),!(f.nextEl||f.prevEl))return;let v=a(f.nextEl),b=a(f.prevEl);Object.assign(e.navigation,{nextEl:v,prevEl:b}),v=_e(v),b=_e(b);const g=(x,y)=>{x&&x.addEventListener("click",y==="next"?d:c),!e.enabled&&x&&x.classList.add(...f.lockClass.split(" "))};v.forEach(x=>g(x,"next")),b.forEach(x=>g(x,"prev"))}function h(){let{nextEl:f,prevEl:v}=e.navigation;f=_e(f),v=_e(v);const b=(g,x)=>{g.removeEventListener("click",x==="next"?d:c),g.classList.remove(...e.params.navigation.disabledClass.split(" "))};f.forEach(g=>b(g,"next")),v.forEach(g=>b(g,"prev"))}n("init",()=>{e.params.navigation.enabled===!1?m():(u(),o())}),n("toEdge fromEdge lock unlock",()=>{o()}),n("destroy",()=>{h()}),n("enable disable",()=>{let{nextEl:f,prevEl:v}=e.navigation;if(f=_e(f),v=_e(v),e.enabled){o();return}[...f,...v].filter(b=>!!b).forEach(b=>b.classList.add(e.params.navigation.lockClass))}),n("click",(f,v)=>{let{nextEl:b,prevEl:g}=e.navigation;b=_e(b),g=_e(g);const x=v.target;let y=g.includes(x)||b.includes(x);if(e.isElement&&!y){const w=v.path||v.composedPath&&v.composedPath();w&&(y=w.find(N=>b.includes(N)||g.includes(N)))}if(e.params.navigation.hideOnClick&&!y){if(e.pagination&&e.params.pagination&&e.params.pagination.clickable&&(e.pagination.el===x||e.pagination.el.contains(x)))return;let w;b.length?w=b[0].classList.contains(e.params.navigation.hiddenClass):g.length&&(w=g[0].classList.contains(e.params.navigation.hiddenClass)),r(w===!0?"navigationShow":"navigationHide"),[...b,...g].filter(N=>!!N).forEach(N=>N.classList.toggle(e.params.navigation.hiddenClass))}});const p=()=>{e.el.classList.remove(...e.params.navigation.navigationDisabledClass.split(" ")),u(),o()},m=()=>{e.el.classList.add(...e.params.navigation.navigationDisabledClass.split(" ")),h()};Object.assign(e.navigation,{enable:p,disable:m,update:o,init:u,destroy:h})}function nt(i){let{swiper:e,extendParams:t,on:n}=i;t({thumbs:{swiper:null,multipleActiveThumbs:!0,autoScrollOffset:0,slideThumbActiveClass:"swiper-slide-thumb-active",thumbsContainerClass:"swiper-thumbs"}});let r=!1,a=!1;e.thumbs={swiper:null};function l(){const d=e.thumbs.swiper;if(!d||d.destroyed)return;const u=d.clickedIndex,h=d.clickedSlide;if(h&&h.classList.contains(e.params.thumbs.slideThumbActiveClass)||typeof u>"u"||u===null)return;let p;d.params.loop?p=parseInt(d.clickedSlide.getAttribute("data-swiper-slide-index"),10):p=u,e.params.loop?e.slideToLoop(p):e.slideTo(p)}function o(){const{thumbs:d}=e.params;if(r)return!1;r=!0;const u=e.constructor;if(d.swiper instanceof u){if(d.swiper.destroyed)return r=!1,!1;e.thumbs.swiper=d.swiper,Object.assign(e.thumbs.swiper.originalParams,{watchSlidesProgress:!0,slideToClickedSlide:!1}),Object.assign(e.thumbs.swiper.params,{watchSlidesProgress:!0,slideToClickedSlide:!1}),e.thumbs.swiper.update()}else if(xt(d.swiper)){const h=Object.assign({},d.swiper);Object.assign(h,{watchSlidesProgress:!0,slideToClickedSlide:!1}),e.thumbs.swiper=new u(h),a=!0}return e.thumbs.swiper.el.classList.add(e.params.thumbs.thumbsContainerClass),e.thumbs.swiper.on("tap",l),!0}function c(d){const u=e.thumbs.swiper;if(!u||u.destroyed)return;const h=u.params.slidesPerView==="auto"?u.slidesPerViewDynamic():u.params.slidesPerView;let p=1;const m=e.params.thumbs.slideThumbActiveClass;if(e.params.slidesPerView>1&&!e.params.centeredSlides&&(p=e.params.slidesPerView),e.params.thumbs.multipleActiveThumbs||(p=1),p=Math.floor(p),u.slides.forEach(b=>b.classList.remove(m)),u.params.loop||u.params.virtual&&u.params.virtual.enabled)for(let b=0;b<p;b+=1)pe(u.slidesEl,`[data-swiper-slide-index="${e.realIndex+b}"]`).forEach(g=>{g.classList.add(m)});else for(let b=0;b<p;b+=1)u.slides[e.realIndex+b]&&u.slides[e.realIndex+b].classList.add(m);const f=e.params.thumbs.autoScrollOffset,v=f&&!u.params.loop;if(e.realIndex!==u.realIndex||v){const b=u.activeIndex;let g,x;if(u.params.loop){const y=u.slides.find(w=>w.getAttribute("data-swiper-slide-index")===`${e.realIndex}`);g=u.slides.indexOf(y),x=e.activeIndex>e.previousIndex?"next":"prev"}else g=e.realIndex,x=g>e.previousIndex?"next":"prev";v&&(g+=x==="next"?f:-1*f),u.visibleSlidesIndexes&&u.visibleSlidesIndexes.indexOf(g)<0&&(u.params.centeredSlides?g>b?g=g-Math.floor(h/2)+1:g=g+Math.floor(h/2)-1:g>b&&u.params.slidesPerGroup,u.slideTo(g,d?0:void 0))}}n("beforeInit",()=>{const{thumbs:d}=e.params;if(!(!d||!d.swiper))if(typeof d.swiper=="string"||d.swiper instanceof HTMLElement){const u=De(),h=()=>{const m=typeof d.swiper=="string"?u.querySelector(d.swiper):d.swiper;if(m&&m.swiper)d.swiper=m.swiper,o(),c(!0);else if(m){const f=`${e.params.eventsPrefix}init`,v=b=>{d.swiper=b.detail[0],m.removeEventListener(f,v),o(),c(!0),d.swiper.update(),e.update()};m.addEventListener(f,v)}return m},p=()=>{if(e.destroyed)return;h()||requestAnimationFrame(p)};requestAnimationFrame(p)}else o(),c(!0)}),n("slideChange update resize observerUpdate",()=>{c()}),n("setTransition",(d,u)=>{const h=e.thumbs.swiper;!h||h.destroyed||h.setTransition(u)}),n("beforeDestroy",()=>{const d=e.thumbs.swiper;!d||d.destroyed||a&&d.destroy()}),Object.assign(e.thumbs,{init:o,update:c})}function st(i){let{swiper:e,extendParams:t,emit:n,once:r}=i;t({freeMode:{enabled:!1,momentum:!0,momentumRatio:1,momentumBounce:!0,momentumBounceRatio:1,momentumVelocityRatio:1,sticky:!1,minimumVelocity:.02}});function a(){if(e.params.cssMode)return;const c=e.getTranslate();e.setTranslate(c),e.setTransition(0),e.touchEventsData.velocities.length=0,e.freeMode.onTouchEnd({currentPos:e.rtl?e.translate:-e.translate})}function l(){if(e.params.cssMode)return;const{touchEventsData:c,touches:d}=e;c.velocities.length===0&&c.velocities.push({position:d[e.isHorizontal()?"startX":"startY"],time:c.touchStartTime}),c.velocities.push({position:d[e.isHorizontal()?"currentX":"currentY"],time:Ve()})}function o(c){let{currentPos:d}=c;if(e.params.cssMode)return;const{params:u,wrapperEl:h,rtlTranslate:p,snapGrid:m,touchEventsData:f}=e,b=Ve()-f.touchStartTime;if(d<-e.minTranslate()){e.slideTo(e.activeIndex);return}if(d>-e.maxTranslate()){e.slides.length<m.length?e.slideTo(m.length-1):e.slideTo(e.slides.length-1);return}if(u.freeMode.momentum){if(f.velocities.length>1){const _=f.velocities.pop(),S=f.velocities.pop(),T=_.position-S.position,C=_.time-S.time;e.velocity=T/C,e.velocity/=2,Math.abs(e.velocity)<u.freeMode.minimumVelocity&&(e.velocity=0),(C>150||Ve()-_.time>300)&&(e.velocity=0)}else e.velocity=0;e.velocity*=u.freeMode.momentumVelocityRatio,f.velocities.length=0;let g=1e3*u.freeMode.momentumRatio;const x=e.velocity*g;let y=e.translate+x;p&&(y=-y);let w=!1,N;const k=Math.abs(e.velocity)*20*u.freeMode.momentumBounceRatio;let E;if(y<e.maxTranslate())u.freeMode.momentumBounce?(y+e.maxTranslate()<-k&&(y=e.maxTranslate()-k),N=e.maxTranslate(),w=!0,f.allowMomentumBounce=!0):y=e.maxTranslate(),u.loop&&u.centeredSlides&&(E=!0);else if(y>e.minTranslate())u.freeMode.momentumBounce?(y-e.minTranslate()>k&&(y=e.minTranslate()+k),N=e.minTranslate(),w=!0,f.allowMomentumBounce=!0):y=e.minTranslate(),u.loop&&u.centeredSlides&&(E=!0);else if(u.freeMode.sticky){let _;for(let S=0;S<m.length;S+=1)if(m[S]>-y){_=S;break}Math.abs(m[_]-y)<Math.abs(m[_-1]-y)||e.swipeDirection==="next"?y=m[_]:y=m[_-1],y=-y}if(E&&r("transitionEnd",()=>{e.loopFix()}),e.velocity!==0){if(p?g=Math.abs((-y-e.translate)/e.velocity):g=Math.abs((y-e.translate)/e.velocity),u.freeMode.sticky){const _=Math.abs((p?-y:y)-e.translate),S=e.slidesSizesGrid[e.activeIndex];_<S?g=u.speed:_<2*S?g=u.speed*1.5:g=u.speed*2.5}}else if(u.freeMode.sticky){e.slideToClosest();return}u.freeMode.momentumBounce&&w?(e.updateProgress(N),e.setTransition(g),e.setTranslate(y),e.transitionStart(!0,e.swipeDirection),e.animating=!0,hi(h,()=>{!e||e.destroyed||!f.allowMomentumBounce||(n("momentumBounce"),e.setTransition(u.speed),setTimeout(()=>{e.setTranslate(N),hi(h,()=>{!e||e.destroyed||e.transitionEnd()})},0))})):e.velocity?(n("_freeModeNoMomentumRelease"),e.updateProgress(y),e.setTransition(g),e.setTranslate(y),e.transitionStart(!0,e.swipeDirection),e.animating||(e.animating=!0,hi(h,()=>{!e||e.destroyed||e.transitionEnd()}))):e.updateProgress(y),e.updateActiveIndex(),e.updateSlidesClasses()}else if(u.freeMode.sticky){e.slideToClosest();return}else u.freeMode&&n("_freeModeNoMomentumRelease");(!u.freeMode.momentum||b>=u.longSwipesMs)&&(n("_freeModeStaticRelease"),e.updateProgress(),e.updateActiveIndex(),e.updateSlidesClasses())}Object.assign(e,{freeMode:{onTouchStart:a,onTouchMove:l,onTouchEnd:o}})}function Qc(){const[i,e]=Q(null);return s(W,{children:s("div",{className:"box-product-detail bg-[#F4F4F4] pb-[100px]",children:s("div",{className:"container",children:[s("div",{className:"breadcrumb p-[12px_0]",children:s("ol",{itemscope:!0,itemtype:"http://schema.org/BreadcrumbList",className:"ul flex flex-wrap items-center",children:[s("li",{itemprop:"itemListElement",itemscope:!0,itemtype:"http://schema.org/ListItem",className:"flex items-center pr-[12px]",children:[s("a",{href:"/template/homepage/homepage.html",itemprop:"item",className:"nopad-l flex items-center text-[#637381]",children:s("span",{itemprop:"name",children:[s("span",{style:"font-size: 0; display: none;",children:"Trang chủ"}),s("i",{className:"icon_2025 home mr-[5px] mb-[5px]"})]})})," ",s("i",{className:"icon_2025 angle-right ml-[12px]"}),s("meta",{itemprop:"position",content:"1"})]}),s("li",{itemprop:"itemListElement",itemscope:!0,itemtype:"http://schema.org/ListItem",className:"flex items-center pr-[12px]",children:[s("a",{href:"/man-hinh.html",itemprop:"item",className:"nopad-l flex items-center",children:[s("span",{itemprop:"name",children:"Màn hình máy tính"}),s("i",{className:"icon_2025 angle-right text-[#637381] ml-[12px]"})]}),s("meta",{itemprop:"position",content:"2"})]}),s("li",{itemprop:"itemListElement",itemscope:!0,itemtype:"http://schema.org/ListItem",className:"flex items-center pr-[12px]",children:[s("a",{href:"/aivision.html",itemprop:"item",className:"nopad-l flex items-center",children:s("span",{itemprop:"name",children:"AIVISION"})}),s("meta",{itemprop:"position",content:"3"})]})]})}),s("div",{className:"p-[15px] grid grid-cols-2 gap-[15px] rounded-[8px] bg-white",children:[s("div",{className:"left",children:[s("div",{className:"relative",children:s(He,{spaceBetween:10,navigation:!0,thumbs:{swiper:i},modules:[st,it,nt],className:"swiper border border-[#B1B1B1 rounded-[12px]",id:"js-slider-big",children:[s(D,{children:s("img",{src:"/assets/images/big-product-detail.png",alt:""})}),s(D,{children:s("img",{src:"/assets/images/big-product-detail.jpg",alt:""})}),s(D,{children:s("img",{src:"/assets/images/big-product-detail-2.jpg",alt:""})}),s(D,{children:s("img",{src:"/assets/images/big-product-detail-3.jpg",alt:""})}),s(D,{children:s("img",{src:"/assets/images/big-product-detail-4.jpg",alt:""})})]})}),s("div",{className:"relative mt-[12px]",children:[s(He,{onSwiper:e,spaceBetween:15,slidesPerView:5,navigation:{prevEl:"#btn-slider-small .swiper-button-prev",nextEl:"#btn-slider-small .swiper-button-next"},freeMode:!0,watchSlidesProgress:!0,modules:[st,it,nt],className:"swiper",id:"js-slider-small",children:[s(D,{children:s("img",{src:"/assets/images/small-product-detail.png",alt:""})}),s(D,{children:s("img",{src:"/assets/images/small-product-detail.png",alt:""})}),s(D,{children:s("img",{src:"/assets/images/small-product-detail.png",alt:""})}),s(D,{children:s("img",{src:"/assets/images/small-product-detail.png",alt:""})}),s(D,{children:s("img",{src:"/assets/images/small-product-detail.png",alt:""})}),s(D,{children:s("img",{src:"/assets/images/small-product-detail.png",alt:""})}),s(D,{children:s("img",{src:"/assets/images/small-product-detail.png",alt:""})}),s(D,{children:s("img",{src:"/assets/images/small-product-detail.png",alt:""})})]}),s("div",{className:"btn-small",id:"btn-slider-small",children:[s("div",{className:"swiper-button-next right-[-15px] w-[30px] h-[30px]"}),s("div",{className:"swiper-button-prev left-[-15px] w-[30px] h-[30px]"})]})]})]}),s("div",{className:"right",children:[s("h1",{className:"text-[24px] text-black mb-[5px]",children:'Laptop Gaming Asus TUF FX505GE-BQ037T Core i7-8750H/Win10(15.6" FHD) - Hàng Chính Hãng'}),s("div",{className:"flex items-center text-base",children:[s("div",{className:"info-review flex items-center mr-[15px]",children:[s("i",{className:"icon-star star-small"}),s("span",{className:"ml-[5px] mt-[2px]",children:"5/5"})]}),s("div",{className:"info-view flex items-center mr-[15px]",children:[s("i",{className:"icon_2025 view"}),s("span",{className:"text-[#1877F2] ml-[5px]",children:"120"})]}),s("div",{className:"info-date flex items-center mr-[15px]",children:[s("i",{className:"icon_2025 time-big"}),s("span",{className:"text-[#1877F2] ml-[5px]",children:"12/03/2025"})]}),s("a",{href:"",className:"info-share flex items-center",children:[s("i",{className:"icon_2025 share"}),s("span",{className:"ml-[5px] mt-[2px]",children:"Chia sẻ"})]})]}),s("div",{className:"flex items-center mt-[5px] text-base",children:[s("div",{className:"source-review flex items-centermr-[10px]",children:[s("span",{children:"Reviews trên:"}),s("a",{href:"",className:"ml-[5px] text-[#1877F2]",children:"Internet"}),s("p",{className:"ml-[5px]",children:"1233 đánh giá"})]}),s("div",{className:"pl-[10px] ml-[10px] flex items-center border-l-[1.5px] border-[#000]",children:[s("a",{href:"",className:"mr-[5px] text-[#462F91]",children:"BestPC"}),s("p",{children:"12003 đánh giá"})]})]}),s("div",{className:"box-price flex items-center my-[10px]",children:[s("span",{className:"mr-[10px]",children:"Giá:"}),s("b",{className:"text-[#D80A00] text-[28px]",children:"9.000.000đ - 12.000.000đ"})]}),s("div",{className:"total-shop flex items-center",children:[s("div",{className:"box-shop",children:s("i",{className:"icon_2025 shop"})}),s("p",{className:"ml-[7px]",children:"Có 12 cửa hàng bán"})]}),s("div",{className:"box-summary mt-[15px]",children:s("ul",{children:[s("li",{children:"CPU: Intel Core i7-8750H ( 2.2 GHz - 4.1 GHz / 9MB / 6 nhân, 12 luồng )"}),s("li",{children:'Màn hình: 15.6" ( 1920 x 1080 ) , không cảm ứng'}),s("li",{children:"RAM: 1 x 8GB DDR4 2666MHz"}),s("li",{children:"Đồ họa: Intel UHD Graphics 630 / NVIDIA GeForce GTX 1050Ti 4GB GDDR5"}),s("li",{children:"Lưu trữ: 128GB SSD M.2 NVMe / 1TB HDD 5400RPM"}),s("li",{children:"Hệ điều hành: Windows 10 Home SL 64-bit"}),s("li",{children:"Pin: 4 cell 64 Wh Pin liền"}),s("li",{children:"khối lượng: 2.5 kg"}),s("li",{children:"Cổng giao tiếp: 1x USB 2.0,"})]})}),s("a",{href:"",className:"group mt-4 flex items-center justify-center w-ful py-[10px] border border-[#D3D3D3] rounded-[4px] text-center hover:bg-[var(--color-global)] hover:text-white",children:[s("img",{src:"/assets/images/icon-file-save.png",className:"w-[18px] h-[24px] block group-hover:brightness-[0] group-hover:invert-[1]",alt:"save"}),s("b",{className:"ml-[10px] text-base",children:"Lưu sản phẩm lại xem sau"})]})]})]}),s(Ic,{}),s(Kc,{}),s(Yc,{}),s("div",{className:"mt-5 bg-white rounded-[8px] p-[15px]",children:[s("div",{className:"flex items-center justify-between mb-[15px] pb-[15px] border-b-[1px] border-[#E4E4E4]",children:[s("h3",{className:"text-xl font-bold",children:"Sản phẩm tương tự"}),s("a",{href:"javascript:void(0)",className:"text-[#462F91] flex items-center justify-center w-[130px] h-[32px] leading-[32px] border-[#462F91] border-[1px] rounded-[4px] hover:bg-[#462F91] hover:text-white group",children:[s("span",{children:"Xem tất cả"}),s("i",{className:"icon_2025 mouse ml-[5px] group-hover:brightness-0 group-hover:invert-[1]"})]})]}),s("div",{className:"relative mt-[15px]",children:[s(He,{slidesPerView:5,spaceBetween:15,navigation:{prevEl:"#js-product-similar-btn .swiper-button-prev",nextEl:"#js-product-similar-btn .swiper-button-next"},freeMode:!0,watchSlidesProgress:!0,modules:[st,it,nt],className:"product-list swiper relative",children:[s(D,{children:s("div",{className:"product-item",children:[s("a",{href:"",className:"product-image",children:s("img",{src:"/assets/images/box-image.png",alt:"Laptop Dell"})}),s("div",{className:"info-product",children:[s("a",{href:"",className:"name-product line-clamp-2",children:"Laptop văn phòng Dell RAM 8G Core i7"}),s("div",{className:"summary line-clamp-1",children:"Intel Core i5 / 8GB / 256GB / SSD"}),s("div",{className:"locahost-pro flex items-center mb-[5px]",children:[s("i",{className:"icon_2025 map-3"}),s("span",{className:"text-[#595959] ml-[5px] mt-[3px]",children:"Quận Thanh Xuân"})]}),s("div",{className:"time-pro flex items-center mb-[5px]",children:[s("i",{className:"icon_2025 time-gray"}),s("div",{className:"flex items-center mt-[1px]",children:[s("span",{className:"text-[#595959] ml-[5px] mt-[3px]",children:"11/04/2025"}),s("span",{className:"ml-[5px]",children:"|"}),s("span",{className:"text-[#595959] ml-[5px] mt-[3px]",children:"Còn 01 ngày"})]})]}),s("div",{className:"price",children:"15.000.000đ"}),s("div",{className:"user-pro flex items-center",children:[s("img",{src:"/assets/images/avartar.png",className:"w-[24px] h-[24px] block rounded-[50%]",width:"24px",height:"24px",alt:"avartar"}),s("b",{className:"ml-[7px]",children:"Thanh Mai"})]})]})]})}),s(D,{children:s("div",{className:"product-item",children:[s("a",{href:"",className:"product-image",children:s("img",{src:"/assets/images/box-image.png",alt:"Laptop Dell"})}),s("div",{className:"info-product",children:[s("a",{href:"",className:"name-product line-clamp-2",children:"Laptop văn phòng Dell RAM 8G Core i7"}),s("div",{className:"summary line-clamp-1",children:"Intel Core i5 / 8GB / 256GB / SSD"}),s("div",{className:"locahost-pro flex items-center mb-[5px]",children:[s("i",{className:"icon_2025 map-3"}),s("span",{className:"text-[#595959] ml-[5px] mt-[3px]",children:"Quận Thanh Xuân"})]}),s("div",{className:"time-pro flex items-center mb-[5px]",children:[s("i",{className:"icon_2025 time-gray"}),s("div",{className:"flex items-center mt-[1px]",children:[s("span",{className:"text-[#595959] ml-[5px] mt-[3px]",children:"11/04/2025"}),s("span",{className:"ml-[5px]",children:"|"}),s("span",{className:"text-[#595959] ml-[5px] mt-[3px]",children:"Còn 01 ngày"})]})]}),s("div",{className:"price",children:"15.000.000đ"}),s("div",{className:"user-pro flex items-center",children:[s("img",{src:"/assets/images/avartar.png",className:"w-[24px] h-[24px] block rounded-[50%]",width:"24px",height:"24px",alt:"avartar"}),s("b",{className:"ml-[7px]",children:"Thanh Mai"})]})]})]})}),s(D,{children:s("div",{className:"product-item",children:[s("a",{href:"",className:"product-image",children:s("img",{src:"/assets/images/box-image.png",alt:"Laptop Dell"})}),s("div",{className:"info-product",children:[s("a",{href:"",className:"name-product line-clamp-2",children:"Laptop văn phòng Dell RAM 8G Core i7"}),s("div",{className:"summary line-clamp-1",children:"Intel Core i5 / 8GB / 256GB / SSD"}),s("div",{className:"locahost-pro flex items-center mb-[5px]",children:[s("i",{className:"icon_2025 map-3"}),s("span",{className:"text-[#595959] ml-[5px] mt-[3px]",children:"Quận Thanh Xuân"})]}),s("div",{className:"time-pro flex items-center mb-[5px]",children:[s("i",{className:"icon_2025 time-gray"}),s("div",{className:"flex items-center mt-[1px]",children:[s("span",{className:"text-[#595959] ml-[5px] mt-[3px]",children:"11/04/2025"}),s("span",{className:"ml-[5px]",children:"|"}),s("span",{className:"text-[#595959] ml-[5px] mt-[3px]",children:"Còn 01 ngày"})]})]}),s("div",{className:"price",children:"15.000.000đ"}),s("div",{className:"user-pro flex items-center",children:[s("img",{src:"/assets/images/avartar.png",className:"w-[24px] h-[24px] block rounded-[50%]",width:"24px",height:"24px",alt:"avartar"}),s("b",{className:"ml-[7px]",children:"Thanh Mai"})]})]})]})}),s(D,{children:s("div",{className:"product-item",children:[s("a",{href:"",className:"product-image",children:s("img",{src:"/assets/images/box-image.png",alt:"Laptop Dell"})}),s("div",{className:"info-product",children:[s("a",{href:"",className:"name-product line-clamp-2",children:"Laptop văn phòng Dell RAM 8G Core i7"}),s("div",{className:"summary line-clamp-1",children:"Intel Core i5 / 8GB / 256GB / SSD"}),s("div",{className:"locahost-pro flex items-center mb-[5px]",children:[s("i",{className:"icon_2025 map-3"}),s("span",{className:"text-[#595959] ml-[5px] mt-[3px]",children:"Quận Thanh Xuân"})]}),s("div",{className:"time-pro flex items-center mb-[5px]",children:[s("i",{className:"icon_2025 time-gray"}),s("div",{className:"flex items-center mt-[1px]",children:[s("span",{className:"text-[#595959] ml-[5px] mt-[3px]",children:"11/04/2025"}),s("span",{className:"ml-[5px]",children:"|"}),s("span",{className:"text-[#595959] ml-[5px] mt-[3px]",children:"Còn 01 ngày"})]})]}),s("div",{className:"price",children:"15.000.000đ"}),s("div",{className:"user-pro flex items-center",children:[s("img",{src:"/assets/images/avartar.png",className:"w-[24px] h-[24px] block rounded-[50%]",width:"24px",height:"24px",alt:"avartar"}),s("b",{className:"ml-[7px]",children:"Thanh Mai"})]})]})]})}),s(D,{children:s("div",{className:"product-item",children:[s("a",{href:"",className:"product-image",children:s("img",{src:"/assets/images/box-image.png",alt:"Laptop Dell"})}),s("div",{className:"info-product",children:[s("a",{href:"",className:"name-product line-clamp-2",children:"Laptop văn phòng Dell RAM 8G Core i7"}),s("div",{className:"summary line-clamp-1",children:"Intel Core i5 / 8GB / 256GB / SSD"}),s("div",{className:"locahost-pro flex items-center mb-[5px]",children:[s("i",{className:"icon_2025 map-3"}),s("span",{className:"text-[#595959] ml-[5px] mt-[3px]",children:"Quận Thanh Xuân"})]}),s("div",{className:"time-pro flex items-center mb-[5px]",children:[s("i",{className:"icon_2025 time-gray"}),s("div",{className:"flex items-center mt-[1px]",children:[s("span",{className:"text-[#595959] ml-[5px] mt-[3px]",children:"11/04/2025"}),s("span",{className:"ml-[5px]",children:"|"}),s("span",{className:"text-[#595959] ml-[5px] mt-[3px]",children:"Còn 01 ngày"})]})]}),s("div",{className:"price",children:"15.000.000đ"}),s("div",{className:"user-pro flex items-center",children:[s("img",{src:"/assets/images/avartar.png",className:"w-[24px] h-[24px] block rounded-[50%]",width:"24px",height:"24px",alt:"avartar"}),s("b",{className:"ml-[7px]",children:"Thanh Mai"})]})]})]})}),s(D,{children:s("div",{className:"product-item",children:[s("a",{href:"",className:"product-image",children:s("img",{src:"/assets/images/box-image.png",alt:"Laptop Dell"})}),s("div",{className:"info-product",children:[s("a",{href:"",className:"name-product line-clamp-2",children:"Laptop văn phòng Dell RAM 8G Core i7"}),s("div",{className:"summary line-clamp-1",children:"Intel Core i5 / 8GB / 256GB / SSD"}),s("div",{className:"locahost-pro flex items-center mb-[5px]",children:[s("i",{className:"icon_2025 map-3"}),s("span",{className:"text-[#595959] ml-[5px] mt-[3px]",children:"Quận Thanh Xuân"})]}),s("div",{className:"time-pro flex items-center mb-[5px]",children:[s("i",{className:"icon_2025 time-gray"}),s("div",{className:"flex items-center mt-[1px]",children:[s("span",{className:"text-[#595959] ml-[5px] mt-[3px]",children:"11/04/2025"}),s("span",{className:"ml-[5px]",children:"|"}),s("span",{className:"text-[#595959] ml-[5px] mt-[3px]",children:"Còn 01 ngày"})]})]}),s("div",{className:"price",children:"15.000.000đ"}),s("div",{className:"user-pro flex items-center",children:[s("img",{src:"/assets/images/avartar.png",className:"w-[24px] h-[24px] block rounded-[50%]",width:"24px",height:"24px",alt:"avartar"}),s("b",{className:"ml-[7px]",children:"Thanh Mai"})]})]})]})})]}),s("div",{className:"btn-slider",id:"js-product-similar-btn",children:[s("div",{className:"swiper-button-next right-[-15px]"}),s("div",{className:"swiper-button-prev left-[-15px]"})]})]})]}),s("div",{className:"mt-5 bg-white rounded-[8px] p-[15px]",children:[s("div",{className:"flex items-center justify-between mb-[15px] pb-[15px] border-b-[1px] border-[#E4E4E4]",children:[s("h3",{className:"text-xl font-bold",children:"Sản phẩm bạn có thể thích"}),s("a",{href:"javascript:void(0)",className:"text-[#462F91] flex items-center justify-center w-[130px] h-[32px] leading-[32px] border-[#462F91] border-[1px] rounded-[4px] hover:bg-[#462F91] hover:text-white group",children:[s("span",{children:"Xem tất cả"}),s("i",{className:"icon_2025 mouse ml-[5px] group-hover:brightness-0 group-hover:invert-[1]"})]})]}),s("div",{className:"relative mt-[15px]",children:[s(He,{slidesPerView:5,spaceBetween:15,navigation:{prevEl:"#js-product-like-btn .swiper-button-prev",nextEl:"#js-product-like-btn .swiper-button-next"},freeMode:!0,watchSlidesProgress:!0,modules:[st,it,nt],className:"product-list swiper relative",children:[s(D,{children:s("div",{className:"product-item",children:[s("a",{href:"",className:"product-image",children:s("img",{src:"/assets/images/box-image.png",alt:"Laptop Dell"})}),s("div",{className:"info-product",children:[s("a",{href:"",className:"name-product line-clamp-2",children:"Laptop văn phòng Dell RAM 8G Core i7"}),s("div",{className:"summary line-clamp-1",children:"Intel Core i5 / 8GB / 256GB / SSD"}),s("div",{className:"locahost-pro flex items-center mb-[5px]",children:[s("i",{className:"icon_2025 map-3"}),s("span",{className:"text-[#595959] ml-[5px] mt-[3px]",children:"Quận Thanh Xuân"})]}),s("div",{className:"time-pro flex items-center mb-[5px]",children:[s("i",{className:"icon_2025 time-gray"}),s("div",{className:"flex items-center mt-[1px]",children:[s("span",{className:"text-[#595959] ml-[5px] mt-[3px]",children:"11/04/2025"}),s("span",{className:"ml-[5px]",children:"|"}),s("span",{className:"text-[#595959] ml-[5px] mt-[3px]",children:"Còn 01 ngày"})]})]}),s("div",{className:"price",children:"15.000.000đ"}),s("div",{className:"user-pro flex items-center",children:[s("img",{src:"/assets/images/avartar.png",className:"w-[24px] h-[24px] block rounded-[50%]",width:"24px",height:"24px",alt:"avartar"}),s("b",{className:"ml-[7px]",children:"Thanh Mai"})]})]})]})}),s(D,{children:s("div",{className:"product-item",children:[s("a",{href:"",className:"product-image",children:s("img",{src:"/assets/images/box-image.png",alt:"Laptop Dell"})}),s("div",{className:"info-product",children:[s("a",{href:"",className:"name-product line-clamp-2",children:"Laptop văn phòng Dell RAM 8G Core i7"}),s("div",{className:"summary line-clamp-1",children:"Intel Core i5 / 8GB / 256GB / SSD"}),s("div",{className:"locahost-pro flex items-center mb-[5px]",children:[s("i",{className:"icon_2025 map-3"}),s("span",{className:"text-[#595959] ml-[5px] mt-[3px]",children:"Quận Thanh Xuân"})]}),s("div",{className:"time-pro flex items-center mb-[5px]",children:[s("i",{className:"icon_2025 time-gray"}),s("div",{className:"flex items-center mt-[1px]",children:[s("span",{className:"text-[#595959] ml-[5px] mt-[3px]",children:"11/04/2025"}),s("span",{className:"ml-[5px]",children:"|"}),s("span",{className:"text-[#595959] ml-[5px] mt-[3px]",children:"Còn 01 ngày"})]})]}),s("div",{className:"price",children:"15.000.000đ"}),s("div",{className:"user-pro flex items-center",children:[s("img",{src:"/assets/images/avartar.png",className:"w-[24px] h-[24px] block rounded-[50%]",width:"24px",height:"24px",alt:"avartar"}),s("b",{className:"ml-[7px]",children:"Thanh Mai"})]})]})]})}),s(D,{children:s("div",{className:"product-item",children:[s("a",{href:"",className:"product-image",children:s("img",{src:"/assets/images/box-image.png",alt:"Laptop Dell"})}),s("div",{className:"info-product",children:[s("a",{href:"",className:"name-product line-clamp-2",children:"Laptop văn phòng Dell RAM 8G Core i7"}),s("div",{className:"summary line-clamp-1",children:"Intel Core i5 / 8GB / 256GB / SSD"}),s("div",{className:"locahost-pro flex items-center mb-[5px]",children:[s("i",{className:"icon_2025 map-3"}),s("span",{className:"text-[#595959] ml-[5px] mt-[3px]",children:"Quận Thanh Xuân"})]}),s("div",{className:"time-pro flex items-center mb-[5px]",children:[s("i",{className:"icon_2025 time-gray"}),s("div",{className:"flex items-center mt-[1px]",children:[s("span",{className:"text-[#595959] ml-[5px] mt-[3px]",children:"11/04/2025"}),s("span",{className:"ml-[5px]",children:"|"}),s("span",{className:"text-[#595959] ml-[5px] mt-[3px]",children:"Còn 01 ngày"})]})]}),s("div",{className:"price",children:"15.000.000đ"}),s("div",{className:"user-pro flex items-center",children:[s("img",{src:"/assets/images/avartar.png",className:"w-[24px] h-[24px] block rounded-[50%]",width:"24px",height:"24px",alt:"avartar"}),s("b",{className:"ml-[7px]",children:"Thanh Mai"})]})]})]})}),s(D,{children:s("div",{className:"product-item",children:[s("a",{href:"",className:"product-image",children:s("img",{src:"/assets/images/box-image.png",alt:"Laptop Dell"})}),s("div",{className:"info-product",children:[s("a",{href:"",className:"name-product line-clamp-2",children:"Laptop văn phòng Dell RAM 8G Core i7"}),s("div",{className:"summary line-clamp-1",children:"Intel Core i5 / 8GB / 256GB / SSD"}),s("div",{className:"locahost-pro flex items-center mb-[5px]",children:[s("i",{className:"icon_2025 map-3"}),s("span",{className:"text-[#595959] ml-[5px] mt-[3px]",children:"Quận Thanh Xuân"})]}),s("div",{className:"time-pro flex items-center mb-[5px]",children:[s("i",{className:"icon_2025 time-gray"}),s("div",{className:"flex items-center mt-[1px]",children:[s("span",{className:"text-[#595959] ml-[5px] mt-[3px]",children:"11/04/2025"}),s("span",{className:"ml-[5px]",children:"|"}),s("span",{className:"text-[#595959] ml-[5px] mt-[3px]",children:"Còn 01 ngày"})]})]}),s("div",{className:"price",children:"15.000.000đ"}),s("div",{className:"user-pro flex items-center",children:[s("img",{src:"/assets/images/avartar.png",className:"w-[24px] h-[24px] block rounded-[50%]",width:"24px",height:"24px",alt:"avartar"}),s("b",{className:"ml-[7px]",children:"Thanh Mai"})]})]})]})}),s(D,{children:s("div",{className:"product-item",children:[s("a",{href:"",className:"product-image",children:s("img",{src:"/assets/images/box-image.png",alt:"Laptop Dell"})}),s("div",{className:"info-product",children:[s("a",{href:"",className:"name-product line-clamp-2",children:"Laptop văn phòng Dell RAM 8G Core i7"}),s("div",{className:"summary line-clamp-1",children:"Intel Core i5 / 8GB / 256GB / SSD"}),s("div",{className:"locahost-pro flex items-center mb-[5px]",children:[s("i",{className:"icon_2025 map-3"}),s("span",{className:"text-[#595959] ml-[5px] mt-[3px]",children:"Quận Thanh Xuân"})]}),s("div",{className:"time-pro flex items-center mb-[5px]",children:[s("i",{className:"icon_2025 time-gray"}),s("div",{className:"flex items-center mt-[1px]",children:[s("span",{className:"text-[#595959] ml-[5px] mt-[3px]",children:"11/04/2025"}),s("span",{className:"ml-[5px]",children:"|"}),s("span",{className:"text-[#595959] ml-[5px] mt-[3px]",children:"Còn 01 ngày"})]})]}),s("div",{className:"price",children:"15.000.000đ"}),s("div",{className:"user-pro flex items-center",children:[s("img",{src:"/assets/images/avartar.png",className:"w-[24px] h-[24px] block rounded-[50%]",width:"24px",height:"24px",alt:"avartar"}),s("b",{className:"ml-[7px]",children:"Thanh Mai"})]})]})]})}),s(D,{children:s("div",{className:"product-item",children:[s("a",{href:"",className:"product-image",children:s("img",{src:"/assets/images/box-image.png",alt:"Laptop Dell"})}),s("div",{className:"info-product",children:[s("a",{href:"",className:"name-product line-clamp-2",children:"Laptop văn phòng Dell RAM 8G Core i7"}),s("div",{className:"summary line-clamp-1",children:"Intel Core i5 / 8GB / 256GB / SSD"}),s("div",{className:"locahost-pro flex items-center mb-[5px]",children:[s("i",{className:"icon_2025 map-3"}),s("span",{className:"text-[#595959] ml-[5px] mt-[3px]",children:"Quận Thanh Xuân"})]}),s("div",{className:"time-pro flex items-center mb-[5px]",children:[s("i",{className:"icon_2025 time-gray"}),s("div",{className:"flex items-center mt-[1px]",children:[s("span",{className:"text-[#595959] ml-[5px] mt-[3px]",children:"11/04/2025"}),s("span",{className:"ml-[5px]",children:"|"}),s("span",{className:"text-[#595959] ml-[5px] mt-[3px]",children:"Còn 01 ngày"})]})]}),s("div",{className:"price",children:"15.000.000đ"}),s("div",{className:"user-pro flex items-center",children:[s("img",{src:"/assets/images/avartar.png",className:"w-[24px] h-[24px] block rounded-[50%]",width:"24px",height:"24px",alt:"avartar"}),s("b",{className:"ml-[7px]",children:"Thanh Mai"})]})]})]})})]}),s("div",{className:"btn-slider",id:"js-product-like-btn",children:[s("div",{className:"swiper-button-next right-[-15px]"}),s("div",{className:"swiper-button-prev left-[-15px]"})]})]})]})]})})})}function ed({show:i,onClose:e}){return s(W,{children:[s("div",{id:"backgroundPopup",className:`${i?"active":""}`,onClick:e}),s("div",{className:`fixed w-[1400px] bg-white left-[50%] top-[50%] translate-x-[-50%] translate-y-[-50%] z-[999] ${i?"":"hidden"}`,id:"js-modal-popup",children:[s("div",{className:"header-popup p-[10px] bg-[var(--color-global)] flex items-center justify-between",children:[s("b",{className:"w-[205px] mr-[15px] text-white",children:"Chọn linh kiện"}),s("div",{className:"w-[calc(100%-275px)] relative input-search",children:s("form",{action:"/search",enctype:"text/plain",method:"get",className:"relative w-full h-[45px] bg-white rounded-[3px] overflow-hidden",children:[s("input",{type:"text",name:"q",placeholder:"Bạn cần tìm linh kiện gì...",className:"search-input w-full h-full p-[0_10px] outline-none rounded-[8px] text-base"}),s("button",{type:"submit",className:"absolute right-[10px] top-[5px] w-[40px] h-[35px] pl-[10px]",children:s("i",{className:"icon_2025 search "})})]})}),s("a",{href:"javascript:void(0)",onClick:e,className:"w-[54px] flex items-center justify-end",children:s("i",{className:"icon_2025 close brightness-0 invert-[1]"})})]}),s("div",{className:"content-popup p-[10px] bg-white",children:s("div",{className:"flex gap-[15px]",children:[s("div",{className:"left w-[205px]",children:[s("b",{className:"",children:"230 sản phẩm"}),s("div",{className:"mt-3 title-filter flex items-center justify-between px-[20px] bg-[#f1f1f1] rounded-[4px_4px_0_0] h-[52px] w-full leading-[52px]",children:[s("b",{className:"text-xl",children:"Bộ lọc"}),s("i",{className:"icon_2025 filter"})]}),s("div",{className:"list-filter h-[calc(100vh-208px)] overflow-auto",children:[s("div",{className:"item-filter mb-2.5",children:[s("h3",{className:"text-lg font-[500] uppercase leading-loose text-black py-[5px] border-b-[1px] border-[#D3D3D3]",children:"Lọc theo"}),s("div",{className:"mt-2.5 text-base leading-8 text-black",children:[s("a",{href:"",className:"item flex items-center ",children:[s("input",{type:"checkbox",id:"vehicle1",className:"checkbox"}),s("label",{for:"vehicle1",className:"ml-2 line-clamp-1 w-[calc(100%-28px)]",children:"Máy tính dành cho Máy tính dành cho"})]}),s("a",{href:"",className:"item flex items-center ",children:[s("input",{type:"checkbox",id:"vehicle2",className:"checkbox"}),s("label",{for:"vehicle2",className:"ml-2 line-clamp-1 w-[calc(100%-28px)]",children:"Máy tính dành cho"})]}),s("a",{href:"",className:"item flex items-center ",children:[s("input",{type:"checkbox",id:"vehicle3",className:"checkbox"}),s("label",{for:"vehicle3",className:"ml-2 line-clamp-1 w-[calc(100%-28px)]",children:"Máy tính dành cho"})]}),s("a",{href:"",className:"item flex items-center ",children:[s("input",{type:"checkbox",id:"vehicle4",className:"checkbox"}),s("label",{for:"vehicle4",className:"ml-2 line-clamp-1 w-[calc(100%-28px)]",children:"Máy tính dành cho"})]}),s("a",{href:"",className:"item flex items-center ",children:[s("input",{type:"checkbox",id:"vehicle5",className:"checkbox"}),s("label",{for:"vehicle5",className:"ml-2 line-clamp-1 w-[calc(100%-28px)]",children:"Máy tính dành cho"})]}),s("a",{href:"",className:"item flex items-center ",children:[s("input",{type:"checkbox",id:"vehicle6",className:"checkbox"}),s("label",{for:"vehicle6",className:"ml-2 line-clamp-1 w-[calc(100%-28px)]",children:"Máy tính dành cho"})]})]})]}),s("div",{className:"item-filter mb-2.5",children:[s("h3",{className:"text-lg font-[500] uppercase leading-loose text-black py-[5px] border-b-[1px] border-[#D3D3D3]",children:"Lọc theo"}),s("div",{className:"mt-2.5 grid grid-flow-col grid-rows-9 text-base leading-8 text-black",children:[s("a",{href:"",className:"item flex items-center ",children:[s("input",{type:"checkbox",id:"vehicle1",className:"checkbox"}),s("label",{for:"vehicle1",className:"ml-2 line-clamp-1 w-[calc(100%-28px)]",children:"All"})]}),s("a",{href:"",className:"item flex items-center ",children:[s("input",{type:"checkbox",id:"vehicle2",className:"checkbox"}),s("label",{for:"vehicle2",className:"ml-2 line-clamp-1 w-[calc(100%-28px)]",children:"32gb"})]}),s("a",{href:"",className:"item flex items-center ",children:[s("input",{type:"checkbox",id:"vehicle3",className:"checkbox"}),s("label",{for:"vehicle3",className:"ml-2 line-clamp-1 w-[calc(100%-28px)]",children:"64bg"})]}),s("a",{href:"",className:"item flex items-center ",children:[s("input",{type:"checkbox",id:"vehicle4",className:"checkbox"}),s("label",{for:"vehicle4",className:"ml-2 line-clamp-1 w-[calc(100%-28px)]",children:"16bg"})]}),s("a",{href:"",className:"item flex items-center ",children:[s("input",{type:"checkbox",id:"vehicle5",className:"checkbox"}),s("label",{for:"vehicle5",className:"ml-2 line-clamp-1 w-[calc(100%-28px)]",children:"12gb"})]}),s("a",{href:"",className:"item flex items-center ",children:[s("input",{type:"checkbox",id:"vehicle6",className:"checkbox"}),s("label",{for:"vehicle6",className:"ml-2 line-clamp-1 w-[calc(100%-28px)]",children:"4gb"})]}),s("a",{href:"",className:"item flex items-center ",children:[s("input",{type:"checkbox",id:"vehicle6",className:"checkbox"}),s("label",{for:"vehicle6",className:"ml-2 line-clamp-1 w-[calc(100%-28px)]",children:"2gb"})]}),s("a",{href:"",className:"item flex items-center ",children:[s("input",{type:"checkbox",id:"vehicle6",className:"checkbox"}),s("label",{for:"vehicle6",className:"ml-2 line-clamp-1 w-[calc(100%-28px)]",children:"24gb"})]}),s("a",{href:"",className:"item flex items-center ",children:[s("input",{type:"checkbox",id:"vehicle2",className:"checkbox"}),s("label",{for:"vehicle2",className:"ml-2 line-clamp-1 w-[calc(100%-28px)]",children:"32gb"})]}),s("a",{href:"",className:"item flex items-center ",children:[s("input",{type:"checkbox",id:"vehicle3",className:"checkbox"}),s("label",{for:"vehicle3",className:"ml-2 line-clamp-1 w-[calc(100%-28px)]",children:"64bg"})]}),s("a",{href:"",className:"item flex items-center ",children:[s("input",{type:"checkbox",id:"vehicle4",className:"checkbox"}),s("label",{for:"vehicle4",className:"ml-2 line-clamp-1 w-[calc(100%-28px)]",children:"16bg"})]}),s("a",{href:"",className:"item flex items-center ",children:[s("input",{type:"checkbox",id:"vehicle5",className:"checkbox"}),s("label",{for:"vehicle5",className:"ml-2 line-clamp-1 w-[calc(100%-28px)]",children:"12gb"})]}),s("a",{href:"",className:"item flex items-center ",children:[s("input",{type:"checkbox",id:"vehicle6",className:"checkbox"}),s("label",{for:"vehicle6",className:"ml-2 line-clamp-1 w-[calc(100%-28px)]",children:"4gb"})]}),s("a",{href:"",className:"item flex items-center ",children:[s("input",{type:"checkbox",id:"vehicle6",className:"checkbox"}),s("label",{for:"vehicle6",className:"ml-2 line-clamp-1 w-[calc(100%-28px)]",children:"2gb"})]}),s("a",{href:"",className:"item flex items-center ",children:[s("input",{type:"checkbox",id:"vehicle6",className:"checkbox"}),s("label",{for:"vehicle6",className:"ml-2 line-clamp-1 w-[calc(100%-28px)]",children:"24gb"})]})]})]})]})]}),s("div",{className:"right w-[calc(100%-220px)]",children:[s("div",{className:"flex gap-[15px]",children:[s("a",{href:"",className:"text-[var(--color-hover)]",children:"Chọn tất cả"}),s("a",{href:"",children:"Bỏ chọn tất cả"}),s("a",{href:"",children:"So sánh sản phẩm đã chọn"})]}),s("div",{className:"mt-3 relative z-[9] grid grid-cols-11 bg-[#f1f1f1] rounded-[4px_4px_0_0] h-[52px] w-full leading-[52px]",children:[s("b",{className:"col-span-3 text-center",children:"Tên"}),s("b",{children:"Dung lượng"}),s("b",{children:"Thế hệ"}),s("b",{children:"Bộ nhớ"}),s("b",{children:"Độ ồn"}),s("b",{children:"Màu sắc"}),s("b",{children:"Đánh giá"}),s("b",{className:"col-span-2",children:"Thành tiền"})]}),s("div",{className:"list mt-3 h-[calc(100vh-208px)] overflow-auto",children:[s("div",{className:"item grid grid-cols-11 items-center py-[10px] border-b-[1px] border-[#dedede]",children:[s("div",{className:"col-span-3",children:s("div",{className:"flex items-center",children:[s("input",{type:"checkbox",className:"checkbox w-[24px] mx-[20px]"}),s("a",{href:"",className:"image w-[50px] h-[50px] block border border-neutral-200 p-1 mr-[10px]",children:s("img",{src:"/assets/images/lienkien-ram.png",width:"100%",height:"100%",className:"block w-full h-full object-contain",alt:""})}),s("a",{href:"",className:"name-product w-[calc(100%-140px)] hover:text-[var(--color-hover)]",children:"AMD Ryzen 7 9800x3D 4.7 GHz 8-Core Processor"})]})}),s("div",{className:"text-center",children:"8bg"}),s("div",{className:"",children:"5"}),s("div",{children:"GDDR5"}),s("div",{className:"text-center",children:"5db"}),s("div",{children:"Đen"}),s("div",{className:"flex items-center",children:[s("i",{className:"icon_star star4"}),s("span",{className:"ml-[5px]",children:"(125)"})]}),s("div",{className:"col-span-2 flex items-center justify-between",children:[s("div",{className:"price",children:"3.400.000đ"}),s("a",{href:"",className:"block w-[60px] h-[40px] leading-[40px] text-center text-white font-bold bg-[var(--color-hover)] rounded-[4px]",children:"Add"})]})]}),s("div",{className:"item grid grid-cols-11 items-center py-[10px] border-b-[1px] border-[#dedede]",children:[s("div",{className:"col-span-3",children:s("div",{className:"flex items-center",children:[s("input",{type:"checkbox",className:"checkbox w-[24px] mx-[20px]"}),s("a",{href:"",className:"image w-[50px] h-[50px] block border border-neutral-200 p-1 mr-[10px]",children:s("img",{src:"/assets/images/lienkien-ram.png",width:"100%",height:"100%",className:"block w-full h-full object-contain",alt:""})}),s("a",{href:"",className:"name-product w-[calc(100%-140px)] hover:text-[var(--color-hover)]",children:"AMD Ryzen 7 9800x3D 4.7 GHz 8-Core Processor"})]})}),s("div",{className:"text-center",children:"8bg"}),s("div",{className:"",children:"5"}),s("div",{children:"GDDR5"}),s("div",{className:"text-center",children:"5db"}),s("div",{children:"Đen"}),s("div",{className:"flex items-center",children:[s("i",{className:"icon_star star4"}),s("span",{className:"ml-[5px]",children:"(125)"})]}),s("div",{className:"col-span-2 flex items-center justify-between",children:[s("div",{className:"price",children:"3.400.000đ"}),s("a",{href:"",className:"block w-[60px] h-[40px] leading-[40px] text-center text-white font-bold bg-[var(--color-hover)] rounded-[4px]",children:"Add"})]})]}),s("div",{className:"item grid grid-cols-11 items-center py-[10px] border-b-[1px] border-[#dedede]",children:[s("div",{className:"col-span-3",children:s("div",{className:"flex items-center",children:[s("input",{type:"checkbox",className:"checkbox w-[24px] mx-[20px]"}),s("a",{href:"",className:"image w-[50px] h-[50px] block border border-neutral-200 p-1 mr-[10px]",children:s("img",{src:"/assets/images/lienkien-ram.png",width:"100%",height:"100%",className:"block w-full h-full object-contain",alt:""})}),s("a",{href:"",className:"name-product w-[calc(100%-140px)] hover:text-[var(--color-hover)]",children:"AMD Ryzen 7 9800x3D 4.7 GHz 8-Core Processor"})]})}),s("div",{className:"text-center",children:"8bg"}),s("div",{className:"",children:"5"}),s("div",{children:"GDDR5"}),s("div",{className:"text-center",children:"5db"}),s("div",{children:"Đen"}),s("div",{className:"flex items-center",children:[s("i",{className:"icon_star star4"}),s("span",{className:"ml-[5px]",children:"(125)"})]}),s("div",{className:"col-span-2 flex items-center justify-between",children:[s("div",{className:"price",children:"3.400.000đ"}),s("a",{href:"",className:"block w-[60px] h-[40px] leading-[40px] text-center text-white font-bold bg-[var(--color-hover)] rounded-[4px]",children:"Add"})]})]}),s("div",{className:"item grid grid-cols-11 items-center py-[10px] border-b-[1px] border-[#dedede]",children:[s("div",{className:"col-span-3",children:s("div",{className:"flex items-center",children:[s("input",{type:"checkbox",className:"checkbox w-[24px] mx-[20px]"}),s("a",{href:"",className:"image w-[50px] h-[50px] block border border-neutral-200 p-1 mr-[10px]",children:s("img",{src:"/assets/images/lienkien-ram.png",width:"100%",height:"100%",className:"block w-full h-full object-contain",alt:""})}),s("a",{href:"",className:"name-product w-[calc(100%-140px)] hover:text-[var(--color-hover)]",children:"AMD Ryzen 7 9800x3D 4.7 GHz 8-Core Processor"})]})}),s("div",{className:"text-center",children:"8bg"}),s("div",{className:"",children:"5"}),s("div",{children:"GDDR5"}),s("div",{className:"text-center",children:"5db"}),s("div",{children:"Đen"}),s("div",{className:"flex items-center",children:[s("i",{className:"icon_star star4"}),s("span",{className:"ml-[5px]",children:"(125)"})]}),s("div",{className:"col-span-2 flex items-center justify-between",children:[s("div",{className:"price",children:"3.400.000đ"}),s("a",{href:"",className:"block w-[60px] h-[40px] leading-[40px] text-center text-white font-bold bg-[var(--color-hover)] rounded-[4px]",children:"Add"})]})]}),s("div",{className:"item grid grid-cols-11 items-center py-[10px] border-b-[1px] border-[#dedede]",children:[s("div",{className:"col-span-3",children:s("div",{className:"flex items-center",children:[s("input",{type:"checkbox",className:"checkbox w-[24px] mx-[20px]"}),s("a",{href:"",className:"image w-[50px] h-[50px] block border border-neutral-200 p-1 mr-[10px]",children:s("img",{src:"/assets/images/lienkien-ram.png",width:"100%",height:"100%",className:"block w-full h-full object-contain",alt:""})}),s("a",{href:"",className:"name-product w-[calc(100%-140px)] hover:text-[var(--color-hover)]",children:"AMD Ryzen 7 9800x3D 4.7 GHz 8-Core Processor"})]})}),s("div",{className:"text-center",children:"8bg"}),s("div",{className:"",children:"5"}),s("div",{children:"GDDR5"}),s("div",{className:"text-center",children:"5db"}),s("div",{children:"Đen"}),s("div",{className:"flex items-center",children:[s("i",{className:"icon_star star4"}),s("span",{className:"ml-[5px]",children:"(125)"})]}),s("div",{className:"col-span-2 flex items-center justify-between",children:[s("div",{className:"price",children:"3.400.000đ"}),s("a",{href:"",className:"block w-[60px] h-[40px] leading-[40px] text-center text-white font-bold bg-[var(--color-hover)] rounded-[4px]",children:"Add"})]})]}),s("div",{className:"item grid grid-cols-11 items-center py-[10px] border-b-[1px] border-[#dedede]",children:[s("div",{className:"col-span-3",children:s("div",{className:"flex items-center",children:[s("input",{type:"checkbox",className:"checkbox w-[24px] mx-[20px]"}),s("a",{href:"",className:"image w-[50px] h-[50px] block border border-neutral-200 p-1 mr-[10px]",children:s("img",{src:"/assets/images/lienkien-ram.png",width:"100%",height:"100%",className:"block w-full h-full object-contain",alt:""})}),s("a",{href:"",className:"name-product w-[calc(100%-140px)] hover:text-[var(--color-hover)]",children:"AMD Ryzen 7 9800x3D 4.7 GHz 8-Core Processor"})]})}),s("div",{className:"text-center",children:"8bg"}),s("div",{className:"",children:"5"}),s("div",{children:"GDDR5"}),s("div",{className:"text-center",children:"5db"}),s("div",{children:"Đen"}),s("div",{className:"flex items-center",children:[s("i",{className:"icon_star star4"}),s("span",{className:"ml-[5px]",children:"(125)"})]}),s("div",{className:"col-span-2 flex items-center justify-between",children:[s("div",{className:"price",children:"3.400.000đ"}),s("a",{href:"",className:"block w-[60px] h-[40px] leading-[40px] text-center text-white font-bold bg-[var(--color-hover)] rounded-[4px]",children:"Add"})]})]}),s("div",{className:"item grid grid-cols-11 items-center py-[10px] border-b-[1px] border-[#dedede]",children:[s("div",{className:"col-span-3",children:s("div",{className:"flex items-center",children:[s("input",{type:"checkbox",className:"checkbox w-[24px] mx-[20px]"}),s("a",{href:"",className:"image w-[50px] h-[50px] block border border-neutral-200 p-1 mr-[10px]",children:s("img",{src:"/assets/images/lienkien-ram.png",width:"100%",height:"100%",className:"block w-full h-full object-contain",alt:""})}),s("a",{href:"",className:"name-product w-[calc(100%-140px)] hover:text-[var(--color-hover)]",children:"AMD Ryzen 7 9800x3D 4.7 GHz 8-Core Processor"})]})}),s("div",{className:"text-center",children:"8bg"}),s("div",{className:"",children:"5"}),s("div",{children:"GDDR5"}),s("div",{className:"text-center",children:"5db"}),s("div",{children:"Đen"}),s("div",{className:"flex items-center",children:[s("i",{className:"icon_star star4"}),s("span",{className:"ml-[5px]",children:"(125)"})]}),s("div",{className:"col-span-2 flex items-center justify-between",children:[s("div",{className:"price",children:"3.400.000đ"}),s("a",{href:"",className:"block w-[60px] h-[40px] leading-[40px] text-center text-white font-bold bg-[var(--color-hover)] rounded-[4px]",children:"Add"})]})]}),s("div",{className:"item grid grid-cols-11 items-center py-[10px] border-b-[1px] border-[#dedede]",children:[s("div",{className:"col-span-3",children:s("div",{className:"flex items-center",children:[s("input",{type:"checkbox",className:"checkbox w-[24px] mx-[20px]"}),s("a",{href:"",className:"image w-[50px] h-[50px] block border border-neutral-200 p-1 mr-[10px]",children:s("img",{src:"/assets/images/lienkien-ram.png",width:"100%",height:"100%",className:"block w-full h-full object-contain",alt:""})}),s("a",{href:"",className:"name-product w-[calc(100%-140px)] hover:text-[var(--color-hover)]",children:"AMD Ryzen 7 9800x3D 4.7 GHz 8-Core Processor"})]})}),s("div",{className:"text-center",children:"8bg"}),s("div",{className:"",children:"5"}),s("div",{children:"GDDR5"}),s("div",{className:"text-center",children:"5db"}),s("div",{children:"Đen"}),s("div",{className:"flex items-center",children:[s("i",{className:"icon_star star4"}),s("span",{className:"ml-[5px]",children:"(125)"})]}),s("div",{className:"col-span-2 flex items-center justify-between",children:[s("div",{className:"price",children:"3.400.000đ"}),s("a",{href:"",className:"block w-[60px] h-[40px] leading-[40px] text-center text-white font-bold bg-[var(--color-hover)] rounded-[4px]",children:"Add"})]})]}),s("div",{className:"item grid grid-cols-11 items-center py-[10px] border-b-[1px] border-[#dedede]",children:[s("div",{className:"col-span-3",children:s("div",{className:"flex items-center",children:[s("input",{type:"checkbox",className:"checkbox w-[24px] mx-[20px]"}),s("a",{href:"",className:"image w-[50px] h-[50px] block border border-neutral-200 p-1 mr-[10px]",children:s("img",{src:"/assets/images/lienkien-ram.png",width:"100%",height:"100%",className:"block w-full h-full object-contain",alt:""})}),s("a",{href:"",className:"name-product w-[calc(100%-140px)] hover:text-[var(--color-hover)]",children:"AMD Ryzen 7 9800x3D 4.7 GHz 8-Core Processor"})]})}),s("div",{className:"text-center",children:"8bg"}),s("div",{className:"",children:"5"}),s("div",{children:"GDDR5"}),s("div",{className:"text-center",children:"5db"}),s("div",{children:"Đen"}),s("div",{className:"flex items-center",children:[s("i",{className:"icon_star star4"}),s("span",{className:"ml-[5px]",children:"(125)"})]}),s("div",{className:"col-span-2 flex items-center justify-between",children:[s("div",{className:"price",children:"3.400.000đ"}),s("a",{href:"",className:"block w-[60px] h-[40px] leading-[40px] text-center text-white font-bold bg-[var(--color-hover)] rounded-[4px]",children:"Add"})]})]}),s("div",{className:"item grid grid-cols-11 items-center py-[10px] border-b-[1px] border-[#dedede]",children:[s("div",{className:"col-span-3",children:s("div",{className:"flex items-center",children:[s("input",{type:"checkbox",className:"checkbox w-[24px] mx-[20px]"}),s("a",{href:"",className:"image w-[50px] h-[50px] block border border-neutral-200 p-1 mr-[10px]",children:s("img",{src:"/assets/images/lienkien-ram.png",width:"100%",height:"100%",className:"block w-full h-full object-contain",alt:""})}),s("a",{href:"",className:"name-product w-[calc(100%-140px)] hover:text-[var(--color-hover)]",children:"AMD Ryzen 7 9800x3D 4.7 GHz 8-Core Processor"})]})}),s("div",{className:"text-center",children:"8bg"}),s("div",{className:"",children:"5"}),s("div",{children:"GDDR5"}),s("div",{className:"text-center",children:"5db"}),s("div",{children:"Đen"}),s("div",{className:"flex items-center",children:[s("i",{className:"icon_star star4"}),s("span",{className:"ml-[5px]",children:"(125)"})]}),s("div",{className:"col-span-2 flex items-center justify-between",children:[s("div",{className:"price",children:"3.400.000đ"}),s("a",{href:"",className:"block w-[60px] h-[40px] leading-[40px] text-center text-white font-bold bg-[var(--color-hover)] rounded-[4px]",children:"Add"})]})]})]})]})]})})]})]})}function td(){const[i,e]=Q(!1);return fe(()=>(i?document.body.style.overflow="hidden":document.body.style.overflow="auto",()=>{document.body.style.overflow="auto"}),[i]),s(W,{children:[s("div",{className:"mt-6 flex items-center border-b-[1px] border-neutral-200 pb-3",children:[s("b",{className:"left w-[200px] name-component",children:"Sản phẩm"}),s("div",{className:"right w-[calc(100%-200px)] grid grid-cols-8",children:[s("b",{className:"item col-span-3",children:"Thông tin"}),s("b",{className:"item",children:"Giá gốc"}),s("b",{className:"item",children:"Khuyến mãi"}),s("b",{className:"item",children:"Thành tiền"}),s("b",{className:"item col-span-2",children:"Nhà cung cấp "})]})]}),s("div",{className:"list-buildpc",children:[s("div",{className:"item-component flex items-start py-2.5 border-b-[1px] border-neutral-200",children:[s("b",{className:"name-component block w-[200px]",children:"CPU"}),s("div",{className:"right w-[calc(100%-200px)]",children:s("div",{className:"item-info-product grid items-center grid-cols-8",children:[s("div",{className:"info col-span-3",children:s("div",{className:"flex items-center",children:[s("a",{href:"/buildpc/detail",className:"image w-[60px] h-[60px] block border border-neutral-200 p-1 mr-[10px]",children:s("img",{src:"/assets/images/lienkien-ram.png",width:"100%",height:"100%",className:"block w-full h-full object-contain",alt:""})}),s("a",{href:"/buildpc/detail",className:"name-product w-[calc(100%-100px)] hover:text-[var(--color-hover)]",children:"AMD Ryzen 7 9800x3D 4.7 GHz 8-Core Processor"})]})}),s("div",{className:"old-price font-400",children:"4.700.000 Vnđ"}),s("div",{className:"price-saleoff font-400",children:"20%"}),s("b",{className:"total-amount",children:"4.000.000đ"}),s("div",{className:"supplier col-span-2 flex items-center justify-between",children:[s("a",{href:"",children:s("img",{src:"/assets/images/logo-hacom.png",width:"100%",height:"100%",className:"w-full block h-[30px] object-contain",alt:""})}),s("div",{className:"btn flex items-center",children:[s("a",{href:"",className:"px-5 py-2 bg-blue-600 rounded text-white font-bold mr-[10px] hover:bg-blue-800",children:"Mua ngay"}),s("a",{href:"",className:"group hover:bg-red-500 p-1.5 rounded-[50%]",children:s("i",{className:"icon_2025 close group-hover:brightness-0 group-hover:invert-[1]"})})]})]})]})})]}),s("div",{className:"item-component flex items-start py-2.5 border-b-[1px] border-neutral-200",children:[s("b",{className:"name-component block w-[200px]",children:"CPU Cooler"}),s("div",{className:"right w-[calc(100%-200px)]",children:[s("div",{className:"item-info-product grid items-center grid-cols-8",children:[s("div",{className:"info col-span-3",children:s("div",{className:"flex items-center",children:[s("a",{href:"/buildpc/detail",className:"image w-[60px] h-[60px] block border border-neutral-200 p-1 mr-[10px]",children:s("img",{src:"/assets/images/lienkien-ram.png",width:"100%",height:"100%",className:"block w-full h-full object-contain",alt:""})}),s("a",{href:"/buildpc/detail",className:"name-product w-[calc(100%-100px)] hover:text-[var(--color-hover)]",children:"AMD Ryzen 7 9800x3D 4.7 GHz 8-Core Processor"})]})}),s("div",{className:"old-price font-400",children:"4.700.000 Vnđ"}),s("div",{className:"price-saleoff font-400",children:"20%"}),s("b",{className:"total-amount",children:"4.000.000đ"}),s("div",{className:"supplier col-span-2 flex items-center justify-between",children:[s("a",{href:"",children:s("img",{src:"/assets/images/logo-hacom.png",width:"100%",height:"100%",className:"w-full block h-[30px] object-contain",alt:""})}),s("div",{className:"btn flex items-center",children:[s("a",{href:"",className:"px-5 py-2 bg-blue-600 rounded text-white font-bold mr-[10px] hover:bg-blue-800",children:"Mua ngay"}),s("a",{href:"",className:"group hover:bg-red-500 p-1.5 rounded-[50%]",children:s("i",{className:"icon_2025 close group-hover:brightness-0 group-hover:invert-[1]"})})]})]})]}),s("div",{className:"item-info-product grid items-center grid-cols-8 mt-2.5 pt-2.5 border-t-[1px] border-neutral-200",children:[s("div",{className:"info col-span-3",children:s("div",{className:"flex items-center",children:[s("a",{href:"/buildpc/detail",className:"image w-[60px] h-[60px] block border border-neutral-200 p-1 mr-[10px]",children:s("img",{src:"/assets/images/lienkien-ram.png",width:"100%",height:"100%",className:"block w-full h-full object-contain",alt:""})}),s("a",{href:"/buildpc/detail",className:"name-product w-[calc(100%-100px)] hover:text-[var(--color-hover)]",children:"AMD Ryzen 7 9800x3D 4.7 GHz 8-Core Processor"})]})}),s("div",{className:"old-price font-400",children:"4.700.000 Vnđ"}),s("div",{className:"price-saleoff font-400",children:"20%"}),s("b",{className:"total-amount",children:"4.000.000đ"}),s("div",{className:"supplier col-span-2 flex items-center justify-between",children:[s("a",{href:"",children:s("img",{src:"/assets/images/logo-hacom.png",width:"100%",height:"100%",className:"w-full block h-[30px] object-contain",alt:""})}),s("div",{className:"btn flex items-center",children:[s("a",{href:"",className:"px-5 py-2 bg-blue-600 rounded text-white font-bold mr-[10px] hover:bg-blue-800",children:"Mua ngay"}),s("a",{href:"",className:"group hover:bg-red-500 p-1.5 rounded-[50%]",children:s("i",{className:"icon_2025 close group-hover:brightness-0 group-hover:invert-[1]"})})]})]})]}),s("a",{href:"javascript:void(0)",onClick:t=>{t.preventDefault(),e(!0)},className:"w-[130px] h-[30px] block text-xs mt-2.5 text-center leading-[30px] text-black rounded bg-zinc-300 font-bold hover:bg-[var(--color-global)] hover:text-white",children:"+ Chọn thêm CPU"})]})]}),s("div",{className:"item-component flex items-center py-2.5 border-b-[1px] border-neutral-200",children:[s("b",{className:"name-component block w-[200px]",children:"CPU Cooler"}),s("div",{className:"right w-[calc(100%-200px)]",children:s("a",{href:"javascript:void(0)",onClick:t=>{t.preventDefault(),e(!0)},className:"w-[130px] h-[30px] block text-xs text-center leading-[30px] text-black rounded bg-zinc-300 font-bold hover:bg-[var(--color-global)] hover:text-white",children:"+ Chọn thêm CPU"})})]}),s("div",{className:"item-component flex items-center py-2.5 border-b-[1px] border-neutral-200",children:[s("b",{className:"name-component block w-[200px]",children:"CPU Cooler"}),s("div",{className:"right w-[calc(100%-200px)]",children:s("a",{href:"javascript:void(0)",onClick:t=>{t.preventDefault(),e(!0)},className:"w-[130px] h-[30px] block text-xs text-center leading-[30px] text-black rounded bg-zinc-300 font-bold hover:bg-[var(--color-global)] hover:text-white",children:"+ Chọn thêm CPU"})})]}),s("div",{className:"item-component flex items-center py-2.5 border-b-[1px] border-neutral-200",children:[s("b",{className:"name-component block w-[200px]",children:"CPU Cooler"}),s("div",{className:"right w-[calc(100%-200px)]",children:s("a",{href:"javascript:void(0)",className:"w-[130px] h-[30px] block text-xs text-center leading-[30px] text-black rounded bg-zinc-300 font-bold hover:bg-[var(--color-global)] hover:text-white",children:"+ Chọn thêm CPU"})})]}),s("div",{className:"item-component flex items-center py-2.5 border-b-[1px] border-neutral-200",children:[s("b",{className:"name-component block w-[200px]",children:"CPU Cooler"}),s("div",{className:"right w-[calc(100%-200px)]",children:s("a",{href:"javascript:void(0)",className:"w-[130px] h-[30px] block text-xs text-center leading-[30px] text-black rounded bg-zinc-300 font-bold hover:bg-[var(--color-global)] hover:text-white",children:"+ Chọn thêm CPU"})})]}),s("div",{className:"item-component flex items-center py-2.5 border-b-[1px] border-neutral-200",children:[s("b",{className:"name-component block w-[200px]",children:"CPU Cooler"}),s("div",{className:"right w-[calc(100%-200px)]",children:s("a",{href:"javascript:void(0)",className:"w-[130px] h-[30px] block text-xs text-center leading-[30px] text-black rounded bg-zinc-300 font-bold hover:bg-[var(--color-global)] hover:text-white",children:"+ Chọn thêm CPU"})})]})]}),s("div",{className:"box-total-price pt-5",children:[s("b",{className:"block text-xl text-right text-red-600",children:"Tổng tiền 2 sản phẩm: 8.000.000đ"}),s("div",{className:"flex items-center justify-end gap-[10px] mt-3",children:[s("a",{href:"javascript:void(0)",className:"flex items-center px-7 py-2.5 border border-[#b3b3b3] rounded hover:bg-[#e0e0e0]",children:[s("i",{className:"icon_2025 print"}),s("span",{className:"ml-2",children:"In đơn hàng"})]}),s("a",{href:"javasript:void(0)",className:"px-7 py-2.5 text-center text-white bg-violet-900 rounded font-bold hover:bg-violet-700",children:"Mua hàng tại Hacom"})]})]}),s(ed,{show:i,onClose:()=>e(!1)})]})}function id(){return s("div",{className:"page-buildpc bg-[#F4F4F4] pb-[100px]",children:s("div",{className:"container",children:[s("div",{className:"breadcrumb p-[12px_0]",children:s("ol",{itemscope:!0,itemtype:"http://schema.org/BreadcrumbList",className:"ul flex flex-wrap items-center",children:[s("li",{itemprop:"itemListElement",itemscope:!0,itemtype:"http://schema.org/ListItem",className:"flex items-center pr-[12px]",children:[s("a",{href:"/template/homepage/homepage.html",itemprop:"item",className:"nopad-l flex items-center text-[#637381]",children:s("span",{itemprop:"name",children:[s("span",{style:"font-size: 0; display: none;",children:"Trang chủ"}),s("i",{className:"icon_2025 home mr-[5px] mb-[5px]"})]})})," ",s("i",{className:"icon_2025 angle-right ml-[12px]"}),s("meta",{itemprop:"position",content:"1"})]}),s("li",{itemprop:"itemListElement",itemscope:!0,itemtype:"http://schema.org/ListItem",className:"flex items-center pr-[12px]",children:[s("a",{href:"/",itemprop:"item",className:"nopad-l flex items-center",children:s("span",{itemprop:"name",children:"Tạo máy tính riêng của bạn"})}),s("meta",{itemprop:"position",content:"2"})]})]})}),s("div",{className:"grid grid-cols-10 gap-2 px-3 py-2.5 mt-3 text-base leading-none text-black bg-white rounded",children:[s("div",{className:"col-span-4 h-[48px] rounded border border-solid border-neutral-200 flex items-center",children:[s("a",{className:"w-[24px] ml-[10px]",href:"javascript:void()",children:s("i",{className:"icon_2025 copy"})}),s("input",{type:"text",className:"w-full h-full p-[10px] outline-none",value:"https://bestpc.vn/restricted.php"})]}),s("div",{className:"col-span-3 h-[48px] rounded border border-solid border-neutral-200 flex items-center",children:[s("p",{className:"ml-[10px] block whitespace-nowrap",children:"Đặt tên:"}),s("input",{type:"text",className:"w-full h-full p-[10px] outline-none",value:""})]}),s("div",{className:"grid grid-cols-3 gap-[10px] col-span-3",children:[s("a",{href:"javascript:void(0)",className:"w-full block h-[48px] rounded border border-solid border-neutral-200 flex items-center justify-center hover:bg-[var(--color-global)] hover:text-white group",children:[s("i",{className:"icon_2025 history group-hover:brightness-0 group-hover:invert-[1]"}),s("span",{className:"ml-[5px]",children:"Lịch sử"})]}),s("a",{href:"javascript:void(0)",className:"w-full block h-[48px] rounded border border-solid border-neutral-200 flex items-center justify-center hover:bg-[var(--color-global)] hover:text-white group",children:[s("i",{className:"icon_2025 download group-hover:brightness-0 group-hover:invert-[1]"}),s("span",{className:"ml-[5px]",children:"Tải xuống"})]}),s("a",{href:"javascript:void(0)",className:"w-full block h-[48px] rounded border border-solid border-neutral-200 flex items-center justify-center hover:bg-[var(--color-global)] hover:text-white group",children:[s("i",{className:"icon_2025 return group-hover:brightness-0 group-hover:invert-[1]"}),s("span",{className:"ml-[5px]",children:"Làm mới"})]})]})]}),s("div",{className:"bg-white p-[15px]",children:[s("div",{className:"flex items-center gap-2",children:[s("a",{href:"/buildpc",className:"px-6 py-2.5 text-center font-bold text-white bg-violet-900 rounded",children:"Bắt đầu tạo"}),s("a",{href:"/buildpc/compare",className:"px-6 py-2.5 text-center font-bold text-stone-500 bg-zinc-100 rounded hover:text-white hover:bg-violet-900",children:"So sánh giá tại các cửa hàng"})]}),s(td,{})]})]})})}function nd(){return s("div",{className:"list-component mt-5",children:[s("div",{className:"item-compare mb-12",children:[s("div",{className:"flex items-center border-b-[1px] border-neutral-200 pb-3",children:[s("b",{className:"left w-[200px] name-component",children:s("a",{href:"",className:"block m-[auto_auto_auto_0]",children:s("img",{src:"/assets/images/logo-hacom.png",width:"100%",height:"100%",className:"w-[150px] block h-[50px] object-contain",alt:""})})}),s("div",{className:"right w-[calc(100%-200px)] grid grid-cols-8",children:[s("b",{className:"item col-span-3",children:"Sản phẩm"}),s("b",{className:"item",children:"Giá gốc"}),s("b",{className:"item",children:"Khuyến mãi"}),s("b",{className:"item",children:"Giao hàng"}),s("b",{className:"item col-span-2",children:"Thành tiền"})]})]}),s("div",{className:"list-product",children:[s("div",{className:"item-info-product flex items-center py-2.5 border-b-[1px] border-neutral-200",children:[s("b",{className:"name-component block w-[200px]",children:"CPU Cooler"}),s("div",{className:"w-[calc(100%-200px)] grid items-center grid-cols-8",children:[s("div",{className:"info col-span-3",children:s("div",{className:"flex items-center",children:[s("a",{href:"",className:"image w-[60px] h-[60px] block border border-neutral-200 p-1 mr-[10px]",children:s("img",{src:"/assets/images/lienkien-ram.png",width:"100%",height:"100%",className:"block w-full h-full object-contain",alt:""})}),s("a",{href:"",className:"name-product w-[calc(100%-100px)] hover:text-[var(--color-hover)]",children:"AMD Ryzen 7 9800x3D 4.7 GHz 8-Core Processor"})]})}),s("div",{className:"old-price font-400",children:"4.700.000 Vnđ"}),s("div",{className:"price-saleoff font-400",children:"20%"}),s("b",{className:"ship underline",children:"Liên hệ"}),s("div",{className:"col-span-2 flex items-center justify-between",children:[s("b",{className:"total-amount",children:"4.000.000đ"}),s("a",{href:"",className:"px-5 py-2 bg-blue-600 rounded text-white font-bold mr-[10px] hover:bg-blue-800",children:"Mua ngay"})]})]})]}),s("div",{className:"item-info-product flex items-center py-2.5 border-b-[1px] border-neutral-200",children:[s("b",{className:"name-component block w-[200px]",children:"CPU Cooler"}),s("div",{className:"w-[calc(100%-200px)] grid items-center grid-cols-8",children:[s("div",{className:"info col-span-3",children:s("div",{className:"flex items-center",children:[s("a",{href:"",className:"image w-[60px] h-[60px] block border border-neutral-200 p-1 mr-[10px]",children:s("img",{src:"/assets/images/lienkien-ram.png",width:"100%",height:"100%",className:"block w-full h-full object-contain",alt:""})}),s("a",{href:"",className:"name-product w-[calc(100%-100px)] hover:text-[var(--color-hover)]",children:"AMD Ryzen 7 9800x3D 4.7 GHz 8-Core Processor"})]})}),s("div",{className:"old-price font-400",children:"4.700.000 Vnđ"}),s("div",{className:"price-saleoff font-400",children:"20%"}),s("b",{className:"ship underline text-[#33c600]",children:"Liên hệ"}),s("div",{className:"col-span-2 flex items-center justify-between",children:[s("b",{className:"total-amount",children:"4.000.000đ"}),s("a",{href:"",className:"px-5 py-2 bg-blue-600 rounded text-white font-bold mr-[10px] hover:bg-blue-800",children:"Mua ngay"})]})]})]})]}),s("div",{className:"text-right flex items-center font-bold justify-end mt-5",children:[s("div",{className:"mr-[10px]",children:["Tổng tiền (",s("span",{children:"2"})," sản phẩm) :"]}),s("div",{className:"font-bold",children:"6.000.000 Vnđ"})]})]}),s("div",{className:"item-compare mb-12",children:[s("div",{className:"flex items-center border-b-[1px] border-neutral-200 pb-3",children:[s("b",{className:"left w-[200px] name-component",children:s("a",{href:"",className:"block m-[auto_auto_auto_0]",children:s("img",{src:"/assets/images/logo-hacom.png",width:"100%",height:"100%",className:"w-[150px] block h-[50px] object-contain",alt:""})})}),s("div",{className:"right w-[calc(100%-200px)] grid grid-cols-8",children:[s("b",{className:"item col-span-3",children:"Sản phẩm"}),s("b",{className:"item",children:"Giá gốc"}),s("b",{className:"item",children:"Khuyến mãi"}),s("b",{className:"item",children:"Giao hàng"}),s("b",{className:"item col-span-2",children:"Thành tiền"})]})]}),s("div",{className:"list-product",children:[s("div",{className:"item-info-product flex items-center py-2.5 border-b-[1px] border-neutral-200",children:[s("b",{className:"name-component block w-[200px]",children:"CPU Cooler"}),s("div",{className:"w-[calc(100%-200px)] grid items-center grid-cols-8",children:[s("div",{className:"info col-span-3",children:s("div",{className:"flex items-center",children:[s("a",{href:"",className:"image w-[60px] h-[60px] block border border-neutral-200 p-1 mr-[10px]",children:s("img",{src:"/assets/images/lienkien-ram.png",width:"100%",height:"100%",className:"block w-full h-full object-contain",alt:""})}),s("a",{href:"",className:"name-product w-[calc(100%-100px)] hover:text-[var(--color-hover)]",children:"AMD Ryzen 7 9800x3D 4.7 GHz 8-Core Processor"})]})}),s("div",{className:"old-price font-400",children:"4.700.000 Vnđ"}),s("div",{className:"price-saleoff font-400",children:"20%"}),s("b",{className:"ship underline",children:"Liên hệ"}),s("div",{className:"col-span-2 flex items-center justify-between",children:[s("b",{className:"total-amount",children:"4.000.000đ"}),s("a",{href:"",className:"px-5 py-2 bg-blue-600 rounded text-white font-bold mr-[10px] hover:bg-blue-800",children:"Mua ngay"})]})]})]}),s("div",{className:"item-info-product flex items-center py-2.5 border-b-[1px] border-neutral-200",children:[s("b",{className:"name-component block w-[200px]",children:"CPU Cooler"}),s("div",{className:"w-[calc(100%-200px)] grid items-center grid-cols-8",children:[s("div",{className:"info col-span-3",children:s("div",{className:"flex items-center",children:[s("a",{href:"",className:"image w-[60px] h-[60px] block border border-neutral-200 p-1 mr-[10px]",children:s("img",{src:"/assets/images/lienkien-ram.png",width:"100%",height:"100%",className:"block w-full h-full object-contain",alt:""})}),s("a",{href:"",className:"name-product w-[calc(100%-100px)] hover:text-[var(--color-hover)]",children:"AMD Ryzen 7 9800x3D 4.7 GHz 8-Core Processor"})]})}),s("div",{className:"old-price font-400",children:"4.700.000 Vnđ"}),s("div",{className:"price-saleoff font-400",children:"20%"}),s("b",{className:"ship underline text-[#33c600]",children:"Liên hệ"}),s("div",{className:"col-span-2 flex items-center justify-between",children:[s("b",{className:"total-amount",children:"4.000.000đ"}),s("a",{href:"",className:"px-5 py-2 bg-blue-600 rounded text-white font-bold mr-[10px] hover:bg-blue-800",children:"Mua ngay"})]})]})]})]}),s("div",{className:"text-right flex items-center font-bold justify-end mt-5",children:[s("div",{className:"mr-[10px]",children:["Tổng tiền (",s("span",{children:"2"})," sản phẩm) :"]}),s("div",{className:"font-bold",children:"6.000.000 Vnđ"})]})]})]})}function sd(){return s("div",{className:"page-buildpc bg-[#F4F4F4] pb-[100px]",children:s("div",{className:"container",children:[s("div",{className:"breadcrumb p-[12px_0]",children:s("ol",{itemscope:!0,itemtype:"http://schema.org/BreadcrumbList",className:"ul flex flex-wrap items-center",children:[s("li",{itemprop:"itemListElement",itemscope:!0,itemtype:"http://schema.org/ListItem",className:"flex items-center pr-[12px]",children:[s("a",{href:"/template/homepage/homepage.html",itemprop:"item",className:"nopad-l flex items-center text-[#637381]",children:s("span",{itemprop:"name",children:[s("span",{style:"font-size: 0; display: none;",children:"Trang chủ"}),s("i",{className:"icon_2025 home mr-[5px] mb-[5px]"})]})})," ",s("i",{className:"icon_2025 angle-right ml-[12px]"}),s("meta",{itemprop:"position",content:"1"})]}),s("li",{itemprop:"itemListElement",itemscope:!0,itemtype:"http://schema.org/ListItem",className:"flex items-center pr-[12px]",children:[s("a",{href:"/",itemprop:"item",className:"nopad-l flex items-center",children:s("span",{itemprop:"name",children:"So sánh giá tại các cửa hàng"})}),s("meta",{itemprop:"position",content:"2"})]})]})}),s("div",{className:"grid grid-cols-10 gap-2 px-3 py-2.5 mt-3 text-base leading-none text-black bg-white rounded",children:[s("div",{className:"col-span-4 h-[48px] rounded border border-solid border-neutral-200 flex items-center",children:[s("a",{className:"w-[24px] ml-[10px]",href:"javascript:void()",children:s("i",{className:"icon_2025 copy"})}),s("input",{type:"text",className:"w-full h-full p-[10px] outline-none",value:"https://bestpc.vn/restricted.php"})]}),s("div",{className:"col-span-3 h-[48px] rounded border border-solid border-neutral-200 flex items-center",children:[s("p",{className:"ml-[10px] block whitespace-nowrap",children:"Đặt tên:"}),s("input",{type:"text",className:"w-full h-full p-[10px] outline-none",value:""})]}),s("div",{className:"grid grid-cols-3 gap-[10px] col-span-3",children:[s("a",{href:"javascript:void(0)",className:"w-full block h-[48px] rounded border border-solid border-neutral-200 flex items-center justify-center hover:bg-[var(--color-global)] hover:text-white group",children:[s("i",{className:"icon_2025 history group-hover:brightness-0 group-hover:invert-[1]"}),s("span",{className:"ml-[5px]",children:"Lịch sử"})]}),s("a",{href:"javascript:void(0)",className:"w-full block h-[48px] rounded border border-solid border-neutral-200 flex items-center justify-center hover:bg-[var(--color-global)] hover:text-white group",children:[s("i",{className:"icon_2025 download group-hover:brightness-0 group-hover:invert-[1]"}),s("span",{className:"ml-[5px]",children:"Tải xuống"})]}),s("a",{href:"javascript:void(0)",className:"w-full block h-[48px] rounded border border-solid border-neutral-200 flex items-center justify-center hover:bg-[var(--color-global)] hover:text-white group",children:[s("i",{className:"icon_2025 return group-hover:brightness-0 group-hover:invert-[1]"}),s("span",{className:"ml-[5px]",children:"Làm mới"})]})]})]}),s("div",{className:"bg-white p-[15px]",children:[s("div",{className:"flex items-center gap-2",children:[s("a",{href:"/buildpc",className:"px-6 py-2.5 text-center font-bold text-stone-500 bg-zinc-100 rounded hover:text-white hover:bg-violet-900",children:"Bắt đầu tạo"}),s("a",{href:"/buildpc/compare",className:"px-6 py-2.5 text-center font-bold bg-violet-900 text-white rounded",children:"So sánh giá tại các cửa hàng"})]}),s(nd,{})]})]})})}function rd(){const[i,e]=Q(null);return s("div",{className:"page-buildpc pb-[100px]",children:s("div",{className:"container",children:[s("div",{className:"breadcrumb p-[12px_0]",children:s("ol",{itemscope:!0,itemtype:"http://schema.org/BreadcrumbList",className:"ul flex flex-wrap items-center",children:[s("li",{itemprop:"itemListElement",itemscope:!0,itemtype:"http://schema.org/ListItem",className:"flex items-center pr-[12px]",children:[s("a",{href:"/template/homepage/homepage.html",itemprop:"item",className:"nopad-l flex items-center text-[#637381]",children:s("span",{itemprop:"name",children:[s("span",{style:"font-size: 0; display: none;",children:"Trang chủ"}),s("i",{className:"icon_2025 home mr-[5px] mb-[5px]"})]})})," ",s("i",{className:"icon_2025 angle-right ml-[12px]"}),s("meta",{itemprop:"position",content:"1"})]}),s("li",{itemprop:"itemListElement",itemscope:!0,itemtype:"http://schema.org/ListItem",className:"flex items-center pr-[12px]",children:[s("a",{href:"/",itemprop:"item",className:"nopad-l flex items-center",children:s("span",{itemprop:"name",children:"Tạo máy tính riêng của bạn"})})," ",s("i",{className:"icon_2025 angle-right ml-[12px]"}),s("meta",{itemprop:"position",content:"2"})]}),s("li",{itemprop:"itemListElement",itemscope:!0,itemtype:"http://schema.org/ListItem",className:"flex items-center pr-[12px]",children:[s("a",{href:"/",itemprop:"item",className:"nopad-l flex items-center",children:s("span",{itemprop:"name",children:"Tham khảo giá sản phẩm"})}),s("meta",{itemprop:"position",content:"3"})]})]})}),s("h1",{className:"text-2xl mb-5 block font-bold",children:"Tham khảo giá sản phẩm"}),s("div",{className:"grid grid-cols-3 gap-[20px] mb-[30px]",children:[s("div",{className:"col-span-1 p-[15px] rounded-[8px] border border-[#d7d7d7]",children:[s(He,{spaceBetween:10,navigation:!0,thumbs:{swiper:i},modules:[st,it,nt],className:"swiper",id:"js-slider-build-big",children:[s(D,{children:s("img",{src:"/assets/images/big-product-detail.png",className:"block w-full h-[400px] object-contain",alt:""})}),s(D,{children:s("img",{src:"/assets/images/big-product-detail.png",className:"block w-full h-[400px] object-contain",alt:""})}),s(D,{children:s("img",{src:"/assets/images/big-product-detail.png",className:"block w-full h-[400px] object-contain",alt:""})}),s(D,{children:s("img",{src:"/assets/images/big-product-detail.png",className:"block w-full h-[400px] object-contain",alt:""})})]}),s("div",{className:"relative mt-[12px] w-[80%] mx-[auto]",children:[s(He,{onSwiper:e,spaceBetween:10,slidesPerView:3,navigation:{prevEl:"#btn-slider-small .swiper-button-prev",nextEl:"#btn-slider-small .swiper-button-next"},freeMode:!0,watchSlidesProgress:!0,modules:[st,it,nt],className:"swiper",id:"js-slider-build-small",children:[s(D,{children:s("img",{src:"/assets/images/small-product-detail.png",className:"w-full block h-[80px] object-contain ",alt:""})}),s(D,{children:s("img",{src:"/assets/images/small-product-detail.png",className:"w-full block h-[80px] object-contain ",alt:""})}),s(D,{children:s("img",{src:"/assets/images/small-product-detail.png",className:"w-full block h-[80px] object-contain ",alt:""})}),s(D,{children:s("img",{src:"/assets/images/small-product-detail.png",className:"w-full block h-[80px] object-contain ",alt:""})}),s(D,{children:s("img",{src:"/assets/images/small-product-detail.png",className:"w-full block h-[80px] object-contain ",alt:""})}),s(D,{children:s("img",{src:"/assets/images/small-product-detail.png",className:"w-full block h-[80px] object-contain ",alt:""})})]}),s("div",{className:"btn-small",id:"btn-slider-small",children:[s("div",{className:"swiper-button-next right-[-15px] w-[25px] h-[25px]"}),s("div",{className:"swiper-button-prev left-[-15px] w-[25px] h-[25px] text-sm"})]})]}),s("div",{className:"box-review mt-3",children:[s("div",{className:"flex items-center justify-center",children:[s("b",{children:"Người đánh giá"}),s("div",{className:"flex items-center ml-[10px]",children:["(40 ratings, 4.9 ",s("i",{className:"icon-star star-small ml-1"}),")"]})]}),s("div",{className:"",children:[s("div",{className:"flex items-center justify-between gap-[10px] w-full mb-1",children:[s("p",{className:"w-[11%] text-[var(--color-hover)] font-bold",children:"5 sao"}),s("div",{className:"relative w-[79%]",children:[s("div",{className:"block w-full h-[11px] bg-gray-500"}),s("div",{className:"absolute left-0 top-0 h-full w-[90%] bg-[#ff960b]"})]}),s("p",{className:"text-[var(--color-hover)] w-[9%] font-bold",children:"97%"})]}),s("div",{className:"flex items-center justify-between gap-[10px] w-full mb-1",children:[s("p",{className:"w-[11%] text-[var(--color-hover)] font-bold",children:"4 sao"}),s("div",{className:"relative w-[79%]",children:[s("div",{className:"block w-full h-[11px] bg-gray-500"}),s("div",{className:"absolute left-0 top-0 h-full w-[90%] bg-[#ff960b]"})]}),s("p",{className:"text-[var(--color-hover)] w-[9%] font-bold",children:"97%"})]}),s("div",{className:"flex items-center justify-between gap-[10px] w-full mb-1",children:[s("p",{className:"w-[11%] text-[var(--color-hover)] font-bold",children:"3 sao"}),s("div",{className:"relative w-[79%]",children:[s("div",{className:"block w-full h-[11px] bg-gray-500"}),s("div",{className:"absolute left-0 top-0 h-full w-[90%] bg-[#ff960b]"})]}),s("p",{className:"text-[var(--color-hover)] w-[9%] font-bold",children:"97%"})]}),s("div",{className:"flex items-center justify-between gap-[10px] w-full mb-1",children:[s("p",{className:"w-[11%] text-[var(--color-hover)] font-bold",children:"2 sao"}),s("div",{className:"relative w-[79%]",children:[s("div",{className:"block w-full h-[11px] bg-gray-500"}),s("div",{className:"absolute left-0 top-0 h-full w-[90%] bg-[#ff960b]"})]}),s("p",{className:"text-[var(--color-hover)] w-[9%] font-bold",children:"97%"})]}),s("div",{className:"flex items-center justify-between gap-[10px] w-full mb-1",children:[s("p",{className:"w-[11%] text-[var(--color-hover)] font-bold",children:"1 sao"}),s("div",{className:"relative w-[79%]",children:[s("div",{className:"block w-full h-[11px] bg-gray-500"}),s("div",{className:"absolute left-0 top-0 h-full w-[90%] bg-[#ff960b]"})]}),s("p",{className:"text-[var(--color-hover)] w-[9%] font-bold",children:"97%"})]})]})]})]}),s("div",{className:"col-span-2",children:[s("div",{className:"grid grid-cols-7 gap-[5px] items-center pb-2.5 border-b-[1px] border-[#ababab]",children:[s("b",{children:"Nhà cung cấp"}),s("b",{children:"Giá gốc"}),s("b",{children:"Khuyến mãi"}),s("b",{children:"Tình trạng"}),s("b",{children:"Giao hàng"}),s("b",{className:"col-span-2",children:"Thành tiền"})]}),s("div",{className:"list",children:[s("div",{className:"item grid grid-cols-7 items-center gap-[5px] py-2.5 border-b-[1px] border-[#ebebeb]",children:[s("a",{href:"",className:"block",children:s("img",{src:"/assets/images/logo-hacom.png",width:"100%",height:"100%",className:"w-full block h-[28px] object-contain",alt:""})}),s("div",{className:"price font-bold",children:"3.700.000Vnđ"}),s("div",{className:"saleoff text-center font-bold",children:"20%"}),s("div",{className:"status text-blue-500 font-bold",children:"Còn hàng"}),s("div",{className:"ship underline",children:"Liên hệ"}),s("div",{className:"flex items-center justify-between col-span-2",children:[s("div",{className:"total-price font-bold",children:"3.000.000Vnđ"}),s("a",{href:"",className:"block w-[115px] h-[40px] font-bold bg-blue-600 text-center text-white leading-[40px] rounded-[4px] hover:bg-blue-800",children:"Mua ngay"})]})]}),s("div",{className:"item grid grid-cols-7 items-center gap-[5px] py-2.5 border-b-[1px] border-[#ebebeb]",children:[s("a",{href:"",className:"block",children:s("img",{src:"/assets/images/logo-hacom.png",width:"100%",height:"100%",className:"w-full block h-[28px] object-contain",alt:""})}),s("div",{className:"price font-bold",children:"3.700.000Vnđ"}),s("div",{className:"saleoff text-center font-bold",children:"20%"}),s("div",{className:"status text-red-500 font-bold",children:"Còn hàng"}),s("div",{className:"ship underline text-green-500",children:"free"}),s("div",{className:"flex items-center justify-between col-span-2",children:[s("div",{className:"total-price font-bold",children:"3.000.000Vnđ"}),s("a",{href:"",className:"block w-[115px] h-[40px] font-bold bg-blue-600 text-center text-white leading-[40px] rounded-[4px] hover:bg-blue-800",children:"Mua ngay"})]})]})]})]})]}),s("div",{className:"grid grid-cols-3 gap-[20px]",children:[s("div",{className:"col-span-1",children:[s("h3",{className:"title text-2xl font-bold pb-2.5 border-b-[1px] border-[#ababab]",children:"Thông số kỹ thuật"}),s("div",{children:[s("div",{className:"item py-2 border-b-[1px] border-neutral-200",children:[s("b",{children:"Manufacturer"}),s("p",{children:"AMD"})]}),s("div",{className:"item py-2 border-b-[1px] border-neutral-200",children:[s("b",{children:"Part #"}),s("ul",{children:[s("li",{children:"100-1000001084WOF"}),s("li",{children:"AMD Ryzen 7 9800X3D"}),s("li",{children:"100-100001084WOF"})]})]}),s("div",{className:"item py-2 border-b-[1px] border-neutral-200",children:[s("b",{children:"Series"}),s("p",{children:"AMD Ryzen 7"})]}),s("div",{className:"item py-2 border-b-[1px] border-neutral-200",children:[s("b",{children:"Microarchitecture"}),s("p",{children:"Zen 5"})]}),s("div",{className:"item py-2 border-b-[1px] border-neutral-200",children:[s("b",{children:"Core Family"}),s("p",{children:"Granite Ridge"})]}),s("div",{className:"item py-2 border-b-[1px] border-neutral-200",children:[s("b",{children:"Socket"}),s("p",{children:"AM5"})]}),s("div",{className:"item py-2 border-b-[1px] border-neutral-200",children:[s("b",{children:"Core"}),s("p",{children:"8"})]}),s("div",{className:"item py-2 border-b-[1px] border-neutral-200",children:[s("b",{children:"Thread Count"}),s("p",{children:"16"})]}),s("div",{className:"item py-2 border-b-[1px] border-neutral-200",children:[s("b",{children:"Performance Core Clock"}),s("p",{children:"4.7 GHz"})]}),s("div",{className:"item py-2 border-b-[1px] border-neutral-200",children:[s("b",{children:"Performance Core Boost Clock"}),s("p",{children:"5.2 GHz"})]}),s("div",{className:"item py-2 border-b-[1px] border-neutral-200",children:[s("b",{children:"L2 Cache"}),s("p",{children:"8 MB"})]}),s("div",{className:"item py-2 border-b-[1px] border-neutral-200",children:[s("b",{children:"L3 Cache"}),s("p",{children:"96 MB"})]}),s("div",{className:"item py-2 border-b-[1px] border-neutral-200",children:[s("b",{children:"TDP"}),s("p",{children:"120 W"})]}),s("div",{className:"item py-2",children:[s("b",{children:"Integrated Graphics"}),s("p",{children:"Radeon"})]})]})]}),s("div",{className:"col-span-2",children:[s("div",{className:"flex items-center justify-between pb-2.5 border-b-[1px] border-[#ababab]",children:[s("h3",{className:"title text-2xl font-bold",children:"Đánh giá"}),s("a",{href:"",className:"inline-block py-1 px-5 bg-blue-600 text-white font-bold rounded-[4px] hover:bg-blue-800",children:"Xem tất cả bình luận"})]}),s("div",{className:"list mt-3",children:s("div",{className:"item-review flex mb-[15px] pb-[15px] border-b-[1px] border-[#E4E4E4]",children:[s("div",{className:"w-[80px] mr-[20px]",children:[s("img",{src:"/assets/images/avartar-review-1.png",width:"75px",height:"75px",alt:"avartar"}),s("div",{className:"mt-[10px]",children:s("i",{className:"icon-star star5"})})]}),s("div",{className:"w-[calc(100%-100px)]",children:[s("b",{className:"mb-[10px]",children:"Dino"}),s("p",{className:"mb-[10px] block text-[#747474]",children:"10:00pm 20/02/2025"}),s("p",{className:"content mb-[5px]",children:"Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. I"}),s("div",{className:"btn flex items-center",children:[s("div",{className:"flex items-center mr-[10px]",children:[s("b",{className:"mr-[5px]",children:"120"}),s("i",{className:"icon_2025 view"})]}),s("div",{className:"flex items-center",children:[s("b",{className:"mr-[5px]",children:"120"}),s("i",{className:"icon_2025 comment"})]})]})]})]})})]})]})]})})}function ad(){return s(ql,{children:s(Sl,{children:[s(bt,{path:"/product-detail",element:s(Qc,{})}),s(bt,{path:"/buildpc",element:s(id,{})}),s(bt,{path:"/buildpc/compare",element:s(sd,{})}),s(bt,{path:"/buildpc/detail",element:s(rd,{})})]})})}lt(s(ad,{}),document.getElementById("root"));