New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

axentix

Package Overview
Dependencies
Maintainers
1
Versions
43
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

axentix - npm Package Compare versions

Comparing version 2.0.0-beta.3 to 2.0.0-beta.4

4

dist/axentix.min.js

@@ -1,3 +0,3 @@

var Zo=Object.defineProperty;var ns=Math.pow,Go=(l,p,g)=>p in l?Zo(l,p,{enumerable:!0,configurable:!0,writable:!0,value:g}):l[p]=g;var u=(l,p,g)=>(Go(l,typeof p!="symbol"?p+"":p,g),g),Ds=(l,p,g)=>{if(!p.has(l))throw TypeError("Cannot "+g)};var e=(l,p,g)=>(Ds(l,p,"read from private field"),g?g.call(l):p.get(l)),o=(l,p,g)=>{if(p.has(l))throw TypeError("Cannot add the same private member more than once");p instanceof WeakSet?p.add(l):p.set(l,g)},s=(l,p,g,Ee)=>(Ds(l,p,"write to private field"),Ee?Ee.call(l,g):p.set(l,g),g),Ts=(l,p,g,Ee)=>({set _(Cs){s(l,p,Cs,g)},get _(){return e(l,p,Ee)}}),h=(l,p,g)=>(Ds(l,p,"access private method"),g);(function(l,p){typeof exports=="object"&&typeof module!="undefined"?p(exports):typeof define=="function"&&define.amd?define(["exports"],p):(l=typeof globalThis!="undefined"?globalThis:l||self,p(l.Axentix={}))})(this,function(l){var Lt,dt,b,wt,Qt,xt,te,Et,H,ee,Dt,pt,ut,Tt,It,At,Ct,Q,Ae,Ce,R,Se,w,Ke,jo,Qe,Jo,Re,Ns,tt,xe,ie,Is,ti,Ko,ei,Qo,ii,tn,si,en,oi,sn,ke,Xs,Oe,Ys,$e,Fs,se,As,Me,Us,oe,St,k,et,it,ne,Rt,kt,re,ni,on,ri,nn,ai,rn,hi,an,Pe,Vs,li,hn,qe,_s,ci,ln,ae,X,Y,Ot,he,F,le,st,$t,ce,di,cn,He,Zs,pi,dn,We,Gs,ui,pn,U,de,W,z,Mt,Pt,fi,un,vi,fn,mi,vn,yi,mn,gi,yn,ot,V,pe,ft,qt,Ht,Wt,zt,bi,gn,Li,bn,wi,Ln,xi,wn,Ei,xn,Bt,B,A,ue,fe,_,Z,ze,Be,vt,mt,Nt,nt,ve,rt,Di,En,Ti,Dn,Ii,Tn,Ai,In,Ci,An,Si,Cn,me,G,at,ht,Ne,js,Ri,Sn,ki,Rn,O,L,$,x,ye,ge,Xt,Yt,Ft,yt,Ut,j,Vt,be,_t,M,Oi,kn,$i,On,Mi,$n,Pi,Mn,qi,Pn,Xe,Js,Ye,Ks,Hi,qn,Wi,Hn,zi,Wn,Bi,zn,Ni,Bn,gt,lt,Zt,J,Xi,Nn,Yi,Xn,Fi,Yn,Ui,Fn,Vi,Un,Fe,Qs,Le,K,_i,Vn,Zi,_n,Gi,Zn,ji,Gn,Ji,jn,Ki,Jn,Ue,to,v,we,Gt,jt,Jt,D,ct,Ve,eo,Qi,Kn,ts,Qn,es,tr,is,er,ss,ir,_e,io,Ze,so;"use strict";var p="",g="",Ee="",Cs="",sr="",or="",nr="",rr="",ar="",hr="",lr="",cr="",dr="";const oo="2.0.0-beta.3",y=[],C={components:[],plugins:[],prefix:"ax",mode:""},q=r=>`--${C.prefix}-${r}`,bt=r=>C.components.find(t=>t.name===r).class,rs=()=>{const r=C.components.filter(i=>i.dataDetection),t=C.plugins.filter(i=>i.dataDetection);return[...r,...t].map(i=>i.name)},Ss=()=>{const r=C.components.filter(i=>i.autoInit&&i.autoInit.enabled),t=C.plugins.filter(i=>i.autoInit&&i.autoInit.enabled);return[...r,...t].reduce((i,n)=>(i[n.name]=document.querySelectorAll(n.autoInit.selector),i),{})},Rs=(r,t)=>{if(!r.name||!r.class){console.error(`[Axentix] Error registering ${t} : Missing required parameters.`);return}if(C[t].some(i=>i.name===r.name)){console.error(`[Axentix] Error registering ${t} : Already exist.`);return}r.autoInit&&(r.autoInit.selector=r.autoInit.selector+=":not(.no-axentix-init)"),C[t].push(r)},S=r=>{Rs(r,"components")},no=r=>{Rs(r,"plugins")},ro=()=>{!window||(window.Axentix||(window.Axentix={}),[...C.components,...C.plugins].forEach(r=>{window.Axentix[r.name]=r.class}))},ao=r=>r.replace(/[\w]([A-Z])/g,t=>t[0]+"-"+t[1]).toLowerCase(),ho=(r,t="")=>{const i=ao(r);return t?t+"-"+i:i},lo=(r,t,i,n,a="")=>{const c=t[0].toUpperCase()+t.slice(1).toLowerCase();rs().includes(c)&&i!=="Collapsible"&&c!=="Sidenav"&&(r[t]=bt(c).getDefaultOptions());const f=a?a+"-"+t:t,m=ks(r[t],i,n,f);if(!(Object.keys(m).length===0&&r.constructor===Object))return m},ks=(r,t,i,n="")=>Object.keys(r).reduce((a,c)=>{if(typeof r[c]=="object"&&r[c]!==null){const f=lo(r,c,t,i,n);f&&(a[c]=f)}else if(r[c]!==null){const f="data-"+t.toLowerCase()+"-"+ho(c,n);if(i.hasAttribute(f)){const m=i.getAttribute(f);a[c]=typeof r[c]=="number"?Number(m):m,typeof r[c]=="boolean"&&(a[c]=m==="true")}}return a},{}),Os=(r,t)=>{const i=Object.assign({},bt(r).getDefaultOptions());return ks(i,r,t)},co=()=>{document.querySelectorAll("[data-ax]").forEach(t=>{let i=t.dataset.ax;if(i=i[0].toUpperCase()+i.slice(1).toLowerCase(),!rs().includes(i)){console.error(`[Axentix] Error: ${i} component doesn't exist.
Did you forget to register him ?`,t);return}try{const n=Os(i,t),a=bt(i);new a(`#${t.id}`,n,!0)}catch(n){console.error("[Axentix] Data: Unable to load "+i,n)}})},po=()=>{try{new Axentix.Axentix("all")}catch(r){console.error("[Axentix] Unable to auto init.",r)}};document.addEventListener("DOMContentLoaded",()=>{document.documentElement.dataset.axentix&&po(),co()});const Ge=(...r)=>r.reduce((t,i)=>{for(let n in i)t[n]=typeof i[n]=="object"&&i[n]!==null?Ge(t[n],i[n]):i[n];return t},{}),T=(r,t,i,n)=>Ge(bt(r).getDefaultOptions(),n?{}:Os(r,i),t),as=(r,t=document.createElement("div"))=>(r[0].parentElement.insertBefore(t,r[0]),r.forEach(n=>t.appendChild(n)),t),uo=r=>r.replaceWith(...r.childNodes),d=(r,t,i)=>{const n=new CustomEvent("ax."+t,{detail:i||{},bubbles:!0});r.dispatchEvent(n)},$s=()=>"ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0,Ms=()=>!!window.PointerEvent&&"maxTouchPoints"in window.navigator&&window.navigator.maxTouchPoints>=0,hs=()=>$s()?"touch":Ms()?"pointer":"mouse",De=r=>y.filter(t=>t.type===r).map(t=>t.instance),Te=r=>{const t=y.find(i=>i.type!=="Toast"&&"#"+i.instance.el.id===r);return t?t.instance:!1},ls=()=>Math.random().toString().split(".")[1],fo=()=>y,vo=r=>Te(r).sync(),mo=()=>y.map(r=>r.instance.sync()),yo=r=>Te(r).reset(),go=()=>y.map(r=>r.instance.reset()),bo=r=>Te(r).destroy(),Lo=()=>y.map(r=>r.instance.destroy()),cs=(r,t,i,n)=>{const a=r&&t?document.querySelector('.ax-overlay[data-target="'+i+'"]'):document.createElement("div");return a.classList.add("ax-overlay"),a.style.transitionDuration=n+"ms",a.dataset.target=i,a},Ie=(r,t,i,n,a)=>{!r||(n?(t.addEventListener("click",i),document.body.appendChild(t),setTimeout(()=>{t.classList.add("active")},50)):(t.classList.remove("active"),setTimeout(()=>{t.removeEventListener("click",i),document.body.removeChild(t)},a)))};class N{constructor(){u(this,"el")}removeListeners(){}setupListeners(){}setup(){}preventDbInstance(t){if(t&&Te(t))throw new Error(`Instance already exist on ${t}`)}sync(){d(this.el,"component.sync"),this.removeListeners(),this.setupListeners()}reset(){d(this.el,"component.reset"),this.removeListeners(),this.setup()}destroy(){d(this.el,"component.destroy"),this.removeListeners();const t=y.findIndex(i=>i.instance.el.id===this.el.id);y.splice(t,1)}}const wo={animationDuration:500,height:"",backToOpposite:!0,enableTouch:!0,indicators:{enabled:!1,isFlat:!1,customClasses:""},autoplay:{enabled:!0,interval:5e3,side:"right"}};class ds extends N{constructor(t,i,n){super();o(this,Ke);o(this,Qe);o(this,Re);o(this,tt);o(this,ie);o(this,ti);o(this,ei);o(this,ii);o(this,si);o(this,oi);o(this,ke);o(this,Oe);o(this,$e);o(this,se);o(this,Me);u(this,"options");u(this,"activeIndex");o(this,Lt,0);o(this,dt,!1);o(this,b,void 0);o(this,wt,0);o(this,Qt,0);o(this,xt,!1);o(this,te,!1);o(this,Et,!1);o(this,H,0);o(this,ee,0);o(this,Dt,void 0);o(this,pt,void 0);o(this,ut,void 0);o(this,Tt,void 0);o(this,It,void 0);o(this,At,void 0);o(this,Ct,void 0);o(this,Q,void 0);o(this,Ae,0);o(this,Ce,0);o(this,R,void 0);o(this,Se,void 0);o(this,w,void 0);try{this.preventDbInstance(t),y.push({type:"Caroulix",instance:this}),this.el=document.querySelector(t),this.options=T("Caroulix",i,this.el,n),this.setup()}catch(a){console.error("[Axentix] Caroulix init error",a)}}setup(){d(this.el,"caroulix.setup"),this.options.autoplay.side=this.options.autoplay.side.toLowerCase(),["right","left"].includes(this.options.autoplay.side)||(this.options.autoplay.side="right"),this.activeIndex=0,s(this,Lt,0),s(this,dt,!1),s(this,w,hs()),s(this,b,h(this,Ke,jo).call(this)),this.options.indicators.enabled&&h(this,si,en).call(this);const i=this.el.querySelector(".active");i?this.activeIndex=e(this,b).indexOf(i):e(this,b)[0].classList.add("active"),h(this,Qe,Jo).call(this),e(this,wt)===0&&h(this,ie,Is).call(this),this.setupListeners(),this.options.autoplay.enabled&&this.play()}setupListeners(){s(this,Dt,h(this,ie,Is).bind(this)),window.addEventListener("resize",e(this,Dt)),e(this,ut)&&(s(this,Tt,this.next.bind(this,1)),e(this,ut).addEventListener("click",e(this,Tt))),e(this,pt)&&(s(this,It,this.prev.bind(this,1)),e(this,pt).addEventListener("click",e(this,It))),this.options.enableTouch&&(s(this,At,h(this,ti,Ko).bind(this)),s(this,Ct,h(this,ei,Qo).bind(this)),s(this,Q,h(this,ii,tn).bind(this)),this.el.addEventListener(`${e(this,w)}${e(this,w)==="touch"?"start":"down"}`,e(this,At)),this.el.addEventListener(`${e(this,w)}move`,e(this,Ct)),this.el.addEventListener(`${e(this,w)}${e(this,w)==="touch"?"end":"up"}`,e(this,Q)),this.el.addEventListener(e(this,w)==="pointer"?"pointerleave":"mouseleave",e(this,Q)))}removeListeners(){window.removeEventListener("resize",e(this,Dt)),s(this,Dt,void 0),e(this,ut)&&(e(this,ut).removeEventListener("click",e(this,Tt)),s(this,Tt,void 0)),e(this,pt)&&(e(this,pt).removeEventListener("click",e(this,It)),s(this,It,void 0)),this.options.enableTouch&&(this.el.removeEventListener(`${e(this,w)}${e(this,w)==="pointer"?"down":"start"}`,e(this,At)),this.el.removeEventListener(`${e(this,w)}move`,e(this,Ct)),this.el.removeEventListener(`${e(this,w)}${e(this,w)==="touch"?"end":"up"}`,e(this,Q)),this.el.removeEventListener(e(this,w)==="pointer"?"pointerleave":"mouseleave",e(this,Q)),s(this,At,void 0),s(this,Ct,void 0),s(this,Q,void 0))}goTo(t){if(t===this.activeIndex)return;(t>this.activeIndex?"right":"left")==="left"?this.prev(Math.abs(this.activeIndex-t)):this.next(Math.abs(this.activeIndex-t)),this.options.indicators.enabled&&h(this,ke,Xs).call(this)}play(){!this.options.autoplay.enabled||(this.stop(),s(this,Se,setInterval(()=>{this.options.autoplay.side==="right"?this.next(1,!1):this.prev(1,!1)},this.options.autoplay.interval)))}stop(){!this.options.autoplay.enabled||clearInterval(e(this,Se))}next(t=1,i=!0){e(this,xt)||this.activeIndex===e(this,b).length-1&&!this.options.backToOpposite||(d(this.el,"caroulix.next",{step:t}),s(this,dt,!0),i&&this.options.autoplay.enabled&&this.stop(),this.activeIndex<e(this,b).length-1?this.activeIndex+=t:this.options.backToOpposite&&(this.activeIndex=0),h(this,Me,Us).call(this),h(this,tt,xe).call(this),i&&this.options.autoplay.enabled&&this.play())}prev(t=1,i=!0){e(this,xt)||this.activeIndex===0&&!this.options.backToOpposite||(d(this.el,"caroulix.prev",{step:t}),s(this,dt,!0),i&&this.options.autoplay.enabled&&this.stop(),this.activeIndex>0?this.activeIndex-=t:this.options.backToOpposite&&(this.activeIndex=e(this,b).length-1),h(this,Me,Us).call(this),h(this,tt,xe).call(this),i&&this.options.autoplay.enabled&&this.play())}}Lt=new WeakMap,dt=new WeakMap,b=new WeakMap,wt=new WeakMap,Qt=new WeakMap,xt=new WeakMap,te=new WeakMap,Et=new WeakMap,H=new WeakMap,ee=new WeakMap,Dt=new WeakMap,pt=new WeakMap,ut=new WeakMap,Tt=new WeakMap,It=new WeakMap,At=new WeakMap,Ct=new WeakMap,Q=new WeakMap,Ae=new WeakMap,Ce=new WeakMap,R=new WeakMap,Se=new WeakMap,w=new WeakMap,Ke=new WeakSet,jo=function(){return Array.from(this.el.children).reduce((t,i)=>(i.classList.contains("caroulix-item")&&t.push(i),i.classList.contains("caroulix-prev")&&s(this,pt,i),i.classList.contains("caroulix-next")&&s(this,ut,i),t),[])},Qe=new WeakSet,Jo=function(){s(this,wt,0),s(this,Qt,0),e(this,b).forEach(t=>{const i=t.querySelector("img, video");i&&(Ts(this,wt)._++,i.complete?h(this,Re,Ns).call(this,i,!0):(i.loadRef=h(this,Re,Ns).bind(this,i),i.addEventListener("load",i.loadRef)))})},Re=new WeakSet,Ns=function(t,i){Ts(this,Qt)._++,i||(t.removeEventListener("load",t.loadRef),t.loadRef=void 0),e(this,wt)==e(this,Qt)&&(h(this,ie,Is).call(this),h(this,tt,xe).call(this,!0))},tt=new WeakSet,xe=function(t=!1){const i=this.el.getBoundingClientRect().width;e(this,b).forEach((a,c)=>{a.style.transform=`translateX(${i*c-i*this.activeIndex-e(this,Lt)}px)`}),this.options.indicators.enabled&&h(this,ke,Xs).call(this),e(this,b).find(a=>a.classList.contains("active")).classList.remove("active"),e(this,b)[this.activeIndex].classList.add("active"),setTimeout(()=>{s(this,dt,!1)},this.options.animationDuration),t&&setTimeout(()=>h(this,se,As).call(this,this.options.animationDuration),50)},ie=new WeakSet,Is=function(){if(s(this,xt,!0),this.el.style.transitionDuration="",this.options.autoplay.enabled&&this.play(),this.options.height)this.el.style.height=this.options.height;else{const t=e(this,b).map(n=>n.offsetHeight),i=Math.max(...t);this.el.style.height=i+"px"}h(this,tt,xe).call(this),setTimeout(()=>{this.el.style.transitionDuration=this.options.animationDuration+"ms",s(this,xt,!1)},50)},ti=new WeakSet,Ko=function(t){t.target.closest(".caroulix-arrow")||t.target.closest(".caroulix-indicators")||e(this,dt)||(t.type!=="touchstart"&&t.preventDefault(),this.options.autoplay.enabled&&this.stop(),h(this,se,As).call(this,0),s(this,Et,!0),s(this,te,!1),s(this,H,0),s(this,ee,0),s(this,Ae,h(this,Oe,Ys).call(this,t)),s(this,Ce,h(this,$e,Fs).call(this,t)))},ei=new WeakSet,Qo=function(t){if(!e(this,Et)||e(this,te))return;let i=h(this,Oe,Ys).call(this,t),n=h(this,$e,Fs).call(this,t);if(s(this,H,e(this,Ae)-i),s(this,ee,Math.abs(e(this,Ce)-n)),t.type==="touchmove"&&e(this,ee)>Math.abs(e(this,H)))return s(this,te,!0),s(this,H,0),!1;t.cancelable&&t.preventDefault(),s(this,Lt,e(this,H)),h(this,tt,xe).call(this)},ii=new WeakSet,tn=function(t){if(!(t.target.closest(".caroulix-arrow")||t.target.closest(".caroulix-indicators"))&&(t.cancelable&&t.preventDefault(),e(this,Et))){h(this,se,As).call(this,this.options.animationDuration);let i=this.el.getBoundingClientRect().width;s(this,Et,!1);const n=i*15/100;this.activeIndex!==e(this,b).length-1&&e(this,H)>n?this.next():this.activeIndex!==0&&e(this,H)<-n&&this.prev(),s(this,H,0),s(this,Lt,0),h(this,tt,xe).call(this),this.options.autoplay.enabled&&this.play()}},si=new WeakSet,en=function(){s(this,R,document.createElement("ul")),e(this,R).classList.add("caroulix-indicators"),this.options.indicators.isFlat&&e(this,R).classList.add("caroulix-flat"),this.options.indicators.customClasses&&(e(this,R).className=`${e(this,R).className} ${this.options.indicators.customClasses}`);for(let t=0;t<e(this,b).length;t++){const i=document.createElement("li");i.triggerRef=h(this,oi,sn).bind(this,t),i.addEventListener("click",i.triggerRef),e(this,R).appendChild(i)}this.el.appendChild(e(this,R))},oi=new WeakSet,sn=function(t,i){i.preventDefault(),t!==this.activeIndex&&this.goTo(t)},ke=new WeakSet,Xs=function(){Array.from(e(this,R).children).forEach(t=>t.removeAttribute("class")),e(this,R).children[this.activeIndex].classList.add("active")},Oe=new WeakSet,Ys=function(t){return t.targetTouches&&t.targetTouches.length>=1?t.targetTouches[0].clientX:t.clientX},$e=new WeakSet,Fs=function(t){return t.targetTouches&&t.targetTouches.length>=1?t.targetTouches[0].clientY:t.clientY},se=new WeakSet,As=function(t){this.el.style.transitionDuration=t+"ms"},Me=new WeakSet,Us=function(){d(this.el,"caroulix.slide",{nextElement:e(this,b)[this.activeIndex],currentElement:e(this,b)[e(this,b).findIndex(t=>t.classList.contains("active"))]})},u(ds,"getDefaultOptions",()=>wo),S({class:ds,name:"Caroulix",dataDetection:!0,autoInit:{enabled:!0,selector:".caroulix"}});var pr="";const xo={animationDuration:300,sidenav:{activeClass:!0,activeWhenOpen:!0,autoClose:!0}};class ps extends N{constructor(t,i,n){super();o(this,ni);o(this,ri);o(this,ai);o(this,hi);o(this,Pe);o(this,li);o(this,qe);o(this,ci);u(this,"options");o(this,oe,void 0);o(this,St,!0);o(this,k,!1);o(this,et,!1);o(this,it,!1);o(this,ne,!1);o(this,Rt,void 0);o(this,kt,void 0);o(this,re,"");try{this.preventDbInstance(t),y.push({type:"Collapsible",instance:this}),this.el=document.querySelector(t),this.options=T("Collapsible",i,this.el,n),this.setup()}catch(a){console.error("[Axentix] Collapsible init error",a)}}setup(){d(this.el,"collapsible.setup"),s(this,oe,document.querySelectorAll(".collapsible-trigger")),s(this,St,!0),s(this,k,!!this.el.classList.contains("active")),s(this,et,!1),s(this,it,!1),s(this,ne,!1),this.setupListeners(),this.el.style.transitionDuration=this.options.animationDuration+"ms",h(this,ri,nn).call(this),h(this,ai,rn).call(this),this.options.sidenav.activeClass&&h(this,hi,an).call(this),e(this,k)&&this.open(),s(this,St,!1)}setupListeners(){s(this,Rt,h(this,ci,ln).bind(this)),e(this,oe).forEach(t=>{t.dataset.target===this.el.id&&t.addEventListener("click",e(this,Rt))}),s(this,kt,h(this,ni,on).bind(this)),window.addEventListener("resize",e(this,kt))}removeListeners(){e(this,oe).forEach(t=>{t.dataset.target===this.el.id&&t.removeEventListener("click",e(this,Rt))}),s(this,Rt,void 0),window.removeEventListener("resize",e(this,kt)),s(this,kt,void 0)}open(){e(this,k)&&!e(this,St)||(d(this.el,"collapsible.open"),s(this,k,!0),s(this,et,!0),this.el.style.display="block",h(this,qe,_s).call(this),this.el.style.maxHeight=this.el.scrollHeight+"px",this.options.sidenav.activeWhenOpen&&h(this,Pe,Vs).call(this,!0),this.options.sidenav.autoClose&&h(this,li,hn).call(this),setTimeout(()=>{s(this,et,!1)},this.options.animationDuration))}close(){!e(this,k)||(d(this.el,"collapsible.close"),s(this,et,!0),this.el.style.maxHeight="",h(this,qe,_s).call(this),this.options.sidenav.activeWhenOpen&&h(this,Pe,Vs).call(this,!1),setTimeout(()=>{this.el.style.display="",s(this,et,!1),s(this,k,!1)},this.options.animationDuration))}}oe=new WeakMap,St=new WeakMap,k=new WeakMap,et=new WeakMap,it=new WeakMap,ne=new WeakMap,Rt=new WeakMap,kt=new WeakMap,re=new WeakMap,ni=new WeakSet,on=function(){e(this,k)&&!e(this,it)&&(this.el.style.maxHeight=this.el.scrollHeight+"px")},ri=new WeakSet,nn=function(){const t=this.el.closest(".sidenav");t&&(s(this,it,!0),s(this,re,t.id))},ai=new WeakSet,rn=function(){s(this,ne,!!this.el.querySelector(".active"))},hi=new WeakSet,an=function(){e(this,ne)&&e(this,it)&&(document.querySelectorAll(".sidenav .collapsible-trigger").forEach(i=>{i.dataset.target===this.el.id&&i.classList.add("active")}),this.el.classList.add("active"),this.open(),s(this,k,!0))},Pe=new WeakSet,Vs=function(t){document.querySelectorAll(".sidenav .collapsible-trigger").forEach(n=>{n.dataset.target===this.el.id&&(t?n.classList.add("active"):n.classList.remove("active"))})},li=new WeakSet,hn=function(){!e(this,St)&&e(this,it)&&De("Collapsible").forEach(t=>{e(t,it)&&e(t,re)===e(this,re)&&t.el.id!==this.el.id&&t.close()})},qe=new WeakSet,_s=function(){this.el.style.overflow="hidden",setTimeout(()=>{this.el.style.overflow=""},this.options.animationDuration)},ci=new WeakSet,ln=function(t){t.preventDefault(),!e(this,et)&&(e(this,k)?this.close():this.open())},u(ps,"getDefaultOptions",()=>xo),S({class:ps,name:"Collapsible",dataDetection:!0,autoInit:{enabled:!0,selector:".collapsible"}});var ur="";const Eo={overlay:!0,bodyScrolling:!1,animationDuration:300};class us extends N{constructor(t,i,n){super();o(this,di);o(this,He);o(this,pi);o(this,We);o(this,ui);u(this,"options");o(this,ae,void 0);o(this,X,!1);o(this,Y,!1);o(this,Ot,!1);o(this,he,!1);o(this,F,void 0);o(this,le,void 0);o(this,st,void 0);o(this,$t,void 0);o(this,ce,void 0);try{this.preventDbInstance(t),y.push({type:"Sidenav",instance:this}),this.el=document.querySelector(t),this.options=T("Sidenav",i,this.el,n),this.setup()}catch(a){console.error("[Axentix] Sidenav init error",a)}}setup(){d(this.el,"sidenav.setup"),s(this,ae,document.querySelectorAll(".sidenav-trigger")),s(this,X,!1),s(this,Y,!1),s(this,ce,window.innerWidth),s(this,Ot,this.el.classList.contains("sidenav-fixed"));const t=De("Sidenav").find(i=>e(i,Ot));s(this,he,t&&t.el===this.el),s(this,F,document.querySelector('.layout, [class*="layout-"]')),e(this,F)&&e(this,he)&&h(this,He,Zs).call(this),this.setupListeners(),this.options.overlay&&s(this,le,cs(e(this,X),this.options.overlay,this.el.id,this.options.animationDuration)),e(this,F)&&e(this,Ot)&&h(this,pi,dn).call(this),this.el.style.transitionDuration=this.options.animationDuration+"ms"}setupListeners(){s(this,st,h(this,ui,pn).bind(this)),e(this,ae).forEach(t=>{t.dataset.target===this.el.id&&t.addEventListener("click",e(this,st))}),s(this,$t,h(this,di,cn).bind(this)),window.addEventListener("resize",e(this,$t))}removeListeners(){e(this,ae).forEach(t=>{t.dataset.target===this.el.id&&t.removeEventListener("click",e(this,st))}),s(this,st,void 0),window.removeEventListener("resize",e(this,$t)),s(this,$t,void 0)}destroy(){d(this.el,"component.destroy"),this.removeListeners(),e(this,F)&&h(this,He,Zs).call(this);const t=y.findIndex(i=>i.instance.el.id===this.el.id);y.splice(t,1)}open(){e(this,X)||e(this,Y)||(d(this.el,"sidenav.open"),s(this,X,!0),s(this,Y,!0),this.el.classList.add("active"),Ie(this.options.overlay,e(this,le),e(this,st),!0,this.options.animationDuration),h(this,We,Gs).call(this,!1),setTimeout(()=>{s(this,Y,!1),d(this.el,"sidenav.opened")},this.options.animationDuration))}close(){!e(this,X)||e(this,Y)||(s(this,Y,!0),d(this.el,"sidenav.close"),this.el.classList.remove("active"),Ie(this.options.overlay,e(this,le),e(this,st),!1,this.options.animationDuration),setTimeout(()=>{h(this,We,Gs).call(this,!0),s(this,X,!1),s(this,Y,!1),d(this.el,"sidenav.closed")},this.options.animationDuration))}}ae=new WeakMap,X=new WeakMap,Y=new WeakMap,Ot=new WeakMap,he=new WeakMap,F=new WeakMap,le=new WeakMap,st=new WeakMap,$t=new WeakMap,ce=new WeakMap,di=new WeakSet,cn=function(t){const n=t.target.innerWidth;e(this,ce)!==n&&this.close(),s(this,ce,n)},He=new WeakSet,Zs=function(){["layout-sidenav-right","layout-sidenav-both"].forEach(t=>e(this,F).classList.remove(t))},pi=new WeakSet,dn=function(){if(!e(this,he))return;const t=Array.from(document.querySelectorAll(".sidenav")).filter(c=>c.classList.contains("sidenav-fixed")),{sidenavsRight:i,sidenavsLeft:n}=t.reduce((c,f)=>(f.classList.contains("sidenav-right")?c.sidenavsRight.push(f):c.sidenavsLeft.push(f),c),{sidenavsRight:[],sidenavsLeft:[]}),a=n.length>0&&i.length>0;i.length>0&&!a?e(this,F).classList.add("layout-sidenav-right"):a&&e(this,F).classList.add("layout-sidenav-both")},We=new WeakSet,Gs=function(t){this.options.bodyScrolling||(document.body.style.overflow=t?"":"hidden")},ui=new WeakSet,pn=function(t){t.preventDefault(),!(e(this,Ot)&&window.innerWidth>=960)&&(e(this,X)?this.close():this.open())},u(us,"getDefaultOptions",()=>Eo),S({class:us,name:"Sidenav",dataDetection:!0,autoInit:{enabled:!0,selector:".sidenav"}});var fr="";const Do={animationDuration:300,animationType:"none",hover:!1,autoClose:!0,preventViewport:!1};class fs extends N{constructor(t,i,n){super();o(this,fi);o(this,vi);o(this,mi);o(this,yi);o(this,gi);u(this,"options");o(this,U,void 0);o(this,de,void 0);o(this,W,!1);o(this,z,!1);o(this,Mt,void 0);o(this,Pt,void 0);try{this.preventDbInstance(t),y.push({type:"Dropdown",instance:this}),this.el=document.querySelector(t),this.options=T("Dropdown",i,this.el,n),this.setup()}catch(a){console.error("[Axentix] Dropdown init error",a)}}setup(){d(this.el,"dropdown.setup"),s(this,U,this.el.querySelector(".dropdown-content")),s(this,de,this.el.querySelector(".dropdown-trigger")),s(this,W,!1),s(this,z,!!this.el.classList.contains("active")),this.options.hover?this.el.classList.add("active-hover"):this.setupListeners(),this.options.preventViewport&&this.el.classList.add("dropdown-vp"),h(this,fi,un).call(this)}setupListeners(){this.options.hover||(s(this,Pt,h(this,mi,vn).bind(this)),e(this,de).addEventListener("click",e(this,Pt)),s(this,Mt,h(this,vi,fn).bind(this)),document.addEventListener("click",e(this,Mt),!0))}removeListeners(){this.options.hover||(e(this,de).removeEventListener("click",e(this,Pt)),s(this,Pt,void 0),document.removeEventListener("click",e(this,Mt),!0),s(this,Mt,void 0))}open(){e(this,z)||(d(this.el,"dropdown.open"),e(this,U).style.display="flex",this.options.preventViewport&&h(this,gi,yn).call(this),setTimeout(()=>{this.el.classList.add("active"),s(this,z,!0)},10),this.options.autoClose&&h(this,yi,mn).call(this),this.options.animationType!=="none"?(s(this,W,!0),setTimeout(()=>{s(this,W,!1),d(this.el,"dropdown.opened")},this.options.animationDuration)):d(this.el,"dropdown.opened"))}close(){!e(this,z)||(d(this.el,"dropdown.close"),this.el.classList.remove("active"),this.options.animationType!=="none"?(s(this,W,!0),setTimeout(()=>{e(this,U).style.display="",s(this,W,!1),s(this,z,!1),d(this.el,"dropdown.closed")},this.options.animationDuration)):(e(this,U).style.display="",s(this,W,!1),s(this,z,!1),d(this.el,"dropdown.closed")))}}U=new WeakMap,de=new WeakMap,W=new WeakMap,z=new WeakMap,Mt=new WeakMap,Pt=new WeakMap,fi=new WeakSet,un=function(){const t=["none","fade"];this.options.animationType=this.options.animationType.toLowerCase(),t.includes(this.options.animationType)||(this.options.animationType="none"),this.options.animationType==="fade"&&!this.options.hover&&(e(this,U).style.transitionDuration=this.options.animationDuration+"ms",this.el.classList.add("dropdown-anim-fade"))},vi=new WeakSet,fn=function(t){t.target.matches(".dropdown-trigger")||e(this,W)||!e(this,z)||this.close()},mi=new WeakSet,vn=function(t){t.preventDefault(),!e(this,W)&&(e(this,z)?this.close():this.open())},yi=new WeakSet,mn=function(){De("Dropdown").forEach(t=>{t.el.id!==this.el.id&&t.close()})},gi=new WeakSet,yn=function(){const t=e(this,U).getBoundingClientRect(),i=t.height-(t.bottom-(window.innerHeight||document.documentElement.clientHeight))-10;e(this,U).style.maxHeight=i+"px"},u(fs,"getDefaultOptions",()=>Do),S({class:fs,name:"Dropdown",dataDetection:!0,autoInit:{enabled:!0,selector:".dropdown"}});var vr="";const To={animationDuration:300,hover:!0,direction:"top",position:"bottom-right",offsetX:"1rem",offsetY:"1.5rem"};class vs extends N{constructor(t,i,n){super();o(this,bi);o(this,Li);o(this,wi);o(this,xi);o(this,Ei);u(this,"options");o(this,ot,!1);o(this,V,!1);o(this,pe,void 0);o(this,ft,void 0);o(this,qt,void 0);o(this,Ht,void 0);o(this,Wt,void 0);o(this,zt,void 0);try{this.preventDbInstance(t),y.push({type:"Fab",instance:this}),this.el=document.querySelector(t),this.options=T("Fab",i,this.el,n),this.setup()}catch(a){console.error("[Axentix] Fab init error",a)}}setup(){d(this.el,"fab.setup"),s(this,ot,!1),s(this,V,!1),s(this,pe,document.querySelector(`#${this.el.id} .fab-trigger`)),s(this,ft,document.querySelector(`#${this.el.id} .fab-menu`)),h(this,bi,gn).call(this),this.setupListeners(),this.el.style.transitionDuration=this.options.animationDuration+"ms",h(this,Li,bn).call(this)}setupListeners(){this.options.hover?(s(this,qt,this.open.bind(this)),s(this,Ht,this.close.bind(this)),this.el.addEventListener("mouseenter",e(this,qt)),this.el.addEventListener("mouseleave",e(this,Ht))):(s(this,zt,h(this,Ei,xn).bind(this)),this.el.addEventListener("click",e(this,zt))),s(this,Wt,h(this,xi,wn).bind(this)),document.addEventListener("click",e(this,Wt),!0)}removeListeners(){this.options.hover?(this.el.removeEventListener("mouseenter",e(this,qt)),this.el.removeEventListener("mouseleave",e(this,Ht)),s(this,qt,void 0),s(this,Ht,void 0)):(this.el.removeEventListener("click",e(this,zt)),s(this,zt,void 0)),document.removeEventListener("click",e(this,Wt),!0),s(this,Wt,void 0)}open(){e(this,V)||(d(this.el,"fab.open"),s(this,ot,!0),s(this,V,!0),this.el.classList.add("active"),setTimeout(()=>{s(this,ot,!1)},this.options.animationDuration))}close(){!e(this,V)||(d(this.el,"fab.close"),s(this,ot,!0),s(this,V,!1),this.el.classList.remove("active"),setTimeout(()=>{s(this,ot,!1)},this.options.animationDuration))}}ot=new WeakMap,V=new WeakMap,pe=new WeakMap,ft=new WeakMap,qt=new WeakMap,Ht=new WeakMap,Wt=new WeakMap,zt=new WeakMap,bi=new WeakSet,gn=function(){["right","left","top","bottom"].includes(this.options.direction)||(this.options.direction="top"),["top-right","top-left","bottom-right","bottom-left"].includes(this.options.position)||(this.options.position="bottom-right")},Li=new WeakSet,bn=function(){this.options.position.split("-")[0]==="top"?this.el.style.top=this.options.offsetY:this.el.style.bottom=this.options.offsetY,this.options.position.split("-")[1]==="right"?this.el.style.right=this.options.offsetX:this.el.style.left=this.options.offsetX,(this.options.direction==="right"||this.options.direction==="left")&&this.el.classList.add("fab-dir-x"),h(this,wi,Ln).call(this)},wi=new WeakSet,Ln=function(){if(this.options.direction==="top"||this.options.direction==="bottom"){const t=e(this,pe).clientHeight;this.options.direction==="top"?e(this,ft).style.bottom=t+"px":e(this,ft).style.top=t+"px"}else{const t=e(this,pe).clientWidth;this.options.direction==="right"?e(this,ft).style.left=t+"px":e(this,ft).style.right=t+"px"}},xi=new WeakSet,wn=function(t){!this.el.contains(t.target)&&e(this,V)&&this.close()},Ei=new WeakSet,xn=function(t){t.preventDefault(),!e(this,ot)&&(e(this,V)?this.close():this.open())},u(vs,"getDefaultOptions",()=>To),S({class:vs,name:"Fab",dataDetection:!0,autoInit:{enabled:!0,selector:".fab:not(i)"}});var mr="";const Io={animationDuration:400,overlayClass:"grey dark-4",offset:150,mobileOffset:80,caption:""};class ms extends N{constructor(t,i,n){super();o(this,Di);o(this,Ti);o(this,Ii);o(this,Ai);o(this,Ci);o(this,Si);u(this,"options");o(this,Bt,void 0);o(this,B,void 0);o(this,A,void 0);o(this,ue,void 0);o(this,fe,void 0);o(this,_,0);o(this,Z,0);o(this,ze,0);o(this,Be,0);o(this,vt,0);o(this,mt,0);o(this,Nt,!1);o(this,nt,!1);o(this,ve,!1);o(this,rt,void 0);try{this.preventDbInstance(t),y.push({type:"Lightbox",instance:this}),this.el=document.querySelector(t),this.options=T("Lightbox",i,this.el,n),this.setup()}catch(a){console.error("[Axentix] Lightbox init error",a)}}setup(){d(this.el,"lightbox.setup"),this.el.style.transitionDuration=this.options.animationDuration+"ms",s(this,rt,as([this.el])),this.setupListeners()}setupListeners(){s(this,Bt,this.open.bind(this)),this.el.addEventListener("click",e(this,Bt)),s(this,B,this.close.bind(this)),window.addEventListener("keyup",e(this,B)),window.addEventListener("scroll",e(this,B)),window.addEventListener("resize",e(this,B))}removeListeners(){this.el.removeEventListener("click",e(this,Bt)),window.removeEventListener("keyup",e(this,B)),window.removeEventListener("scroll",e(this,B)),window.removeEventListener("resize",e(this,B)),s(this,Bt,void 0),s(this,B,void 0)}open(){if(e(this,Nt))return this.close();if(e(this,nt))return;h(this,Ci,An).call(this);const t=window.innerHeight/2,i=window.innerWidth/2,n=this.el.getBoundingClientRect(),a=this.el.getBoundingClientRect();s(this,_,n.width),this.el.style.width=e(this,_)+"px",s(this,Z,n.height),this.el.style.height=e(this,Z)+"px",this.el.style.top="0",this.el.style.left="0",s(this,ze,t+window.scrollY-(a.top+window.scrollY)),s(this,Be,i+window.scrollX-(a.left+window.scrollX)),h(this,Ai,In).call(this),e(this,rt).style.position="relative",h(this,Di,En).call(this),setTimeout(()=>{d(this.el,"lightbox.open"),s(this,nt,!0),this.el.classList.add("active"),this.el.classList.contains("responsive-media")?(this.el.classList.remove("responsive-media"),s(this,ve,!0)):s(this,ve,!1),s(this,Nt,!0),h(this,Ti,Dn).call(this),e(this,rt).style.width=e(this,_)+"px",e(this,rt).style.height=e(this,Z)+"px",this.el.style.width=e(this,mt)+"px",this.el.style.height=e(this,vt)+"px",this.el.style.top=e(this,ze)-e(this,vt)/2+"px",this.el.style.left=e(this,Be)-e(this,mt)/2+"px",s(this,nt,!1)},50),setTimeout(()=>{d(this.el,"lightbox.opened")},this.options.animationDuration+50)}close(t){!e(this,Nt)||t&&t.key&&t.key!=="Escape"||e(this,nt)||(s(this,nt,!0),this.el.style.top="0",this.el.style.left="0",this.el.style.width=e(this,_)+"px",this.el.style.height=e(this,Z)+"px",h(this,Ii,Tn).call(this),d(this.el,"lightbox.close"),setTimeout(()=>{this.el.classList.remove("active"),e(this,ve)&&this.el.classList.add("responsive-media"),e(this,rt).removeAttribute("style"),this.el.style.left="",this.el.style.top="",this.el.style.width="",this.el.style.height="",this.el.style.transform="",h(this,Si,Cn).call(this),s(this,Nt,!1),s(this,nt,!1),d(this.el,"lightbox.closed")},this.options.animationDuration+50))}}Bt=new WeakMap,B=new WeakMap,A=new WeakMap,ue=new WeakMap,fe=new WeakMap,_=new WeakMap,Z=new WeakMap,ze=new WeakMap,Be=new WeakMap,vt=new WeakMap,mt=new WeakMap,Nt=new WeakMap,nt=new WeakMap,ve=new WeakMap,rt=new WeakMap,Di=new WeakSet,En=function(){if(s(this,A,document.createElement("div")),e(this,A).style.transitionDuration=this.options.animationDuration+"ms",e(this,A).className="lightbox-overlay "+this.options.overlayClass,e(this,rt).appendChild(e(this,A)),this.options.caption){const t=document.createElement("p");t.className="lightbox-caption",t.innerHTML=this.options.caption,e(this,A).appendChild(t)}s(this,ue,this.close.bind(this)),e(this,A).addEventListener("click",e(this,ue))},Ti=new WeakSet,Dn=function(){e(this,A).style.opacity="1"},Ii=new WeakSet,Tn=function(){e(this,A).style.opacity="0",e(this,A).removeEventListener("click",e(this,ue)),setTimeout(()=>{e(this,A).remove()},this.options.animationDuration)},Ai=new WeakSet,In=function(){const t=window.innerWidth>=960?this.options.offset:this.options.mobileOffset;window.innerWidth/window.innerHeight>=e(this,_)/e(this,Z)?(s(this,vt,window.innerHeight-t),s(this,mt,e(this,vt)*e(this,_)/e(this,Z))):(s(this,mt,window.innerWidth-t),s(this,vt,e(this,mt)*e(this,Z)/e(this,_)))},Ci=new WeakSet,An=function(){s(this,fe,[]);for(let t=this.el;t&&t!==document;t=t.parentNode){const i=window.getComputedStyle(t);(i.overflow==="hidden"||i.overflowX==="hidden"||i.overflowY==="hidden")&&(e(this,fe).push(t),t.style.setProperty("overflow","visible","important"),document.body.style.overflowX="hidden")}},Si=new WeakSet,Cn=function(){e(this,fe).forEach(t=>t.style.overflow=""),document.body.style.overflowX=""},u(ms,"getDefaultOptions",()=>Io),S({class:ms,name:"Lightbox",dataDetection:!0,autoInit:{enabled:!0,selector:".lightbox"}});var yr="";const Ao={overlay:!0,bodyScrolling:!1,animationDuration:400};class ys extends N{constructor(t,i,n){super();o(this,Ne);o(this,Ri);o(this,ki);u(this,"options");u(this,"overlayElement");o(this,me,void 0);o(this,G,!1);o(this,at,!1);o(this,ht,void 0);try{this.preventDbInstance(t),y.push({type:"Modal",instance:this}),this.el=document.querySelector(t),this.options=T("Modal",i,this.el,n),this.setup()}catch(a){console.error("[Axentix] Modal init error",a)}}setup(){d(this.el,"modal.setup"),s(this,me,document.querySelectorAll(".modal-trigger")),s(this,G,!!this.el.classList.contains("active")),s(this,at,!1),this.setupListeners(),this.options.overlay&&(this.overlayElement=cs(e(this,G),this.options.overlay,this.el.id,this.options.animationDuration)),this.el.style.transitionDuration=this.options.animationDuration+"ms",this.el.style.animationDuration=this.options.animationDuration+"ms"}setupListeners(){s(this,ht,h(this,ki,Rn).bind(this)),e(this,me).forEach(t=>{t.dataset.target===this.el.id&&t.addEventListener("click",e(this,ht))})}removeListeners(){e(this,me).forEach(t=>{t.dataset.target===this.el.id&&t.removeEventListener("click",e(this,ht))}),s(this,ht,void 0)}open(){e(this,G)||(d(this.el,"modal.open"),s(this,G,!0),s(this,at,!0),h(this,Ri,Sn).call(this),this.el.style.display="block",Ie(this.options.overlay,this.overlayElement,e(this,ht),!0,this.options.animationDuration),h(this,Ne,js).call(this,!1),setTimeout(()=>{this.el.classList.add("active")},50),setTimeout(()=>{s(this,at,!1),d(this.el,"modal.opened")},this.options.animationDuration))}close(){!e(this,G)||(d(this.el,"modal.close"),s(this,at,!0),this.el.classList.remove("active"),Ie(this.options.overlay,this.overlayElement,e(this,ht),!1,this.options.animationDuration),setTimeout(()=>{this.el.style.display="",s(this,at,!1),s(this,G,!1),h(this,Ne,js).call(this,!0),d(this.el,"modal.closed")},this.options.animationDuration))}}me=new WeakMap,G=new WeakMap,at=new WeakMap,ht=new WeakMap,Ne=new WeakSet,js=function(t){this.options.bodyScrolling||(document.body.style.overflow=t?"":"hidden")},Ri=new WeakSet,Sn=function(){const t=document.querySelectorAll(".modal.active").length+1;this.options.overlay&&(this.overlayElement.style.zIndex=String(800+t*6)),this.el.style.zIndex=String(800+t*10)},ki=new WeakSet,Rn=function(t){t.preventDefault(),!e(this,at)&&(e(this,G)?this.close():this.open())},u(ys,"getDefaultOptions",()=>Ao),S({class:ys,name:"Modal",dataDetection:!0,autoInit:{enabled:!0,selector:".modal"}});var gr="";const Co={animationDuration:300,animationType:"none",disableActiveBar:!1,caroulix:{animationDuration:300,backToOpposite:!1,enableTouch:!1,autoplay:{enabled:!1}}};class gs extends N{constructor(t,i,n){super();o(this,Oi);o(this,$i);o(this,Mi);o(this,Pi);o(this,qi);o(this,Xe);o(this,Ye);o(this,Hi);o(this,Wi);o(this,zi);o(this,Bi);o(this,Ni);u(this,"options");o(this,O,void 0);o(this,L,void 0);o(this,$,void 0);o(this,x,0);o(this,ye,void 0);o(this,ge,void 0);o(this,Xt,void 0);o(this,Yt,void 0);o(this,Ft,void 0);o(this,yt,void 0);o(this,Ut,void 0);o(this,j,void 0);o(this,Vt,void 0);o(this,be,!1);o(this,_t,void 0);o(this,M,!1);try{this.preventDbInstance(t),y.push({type:"Tab",instance:this}),this.el=document.querySelector(t),this.options=T("Tab",i,this.el,n),this.setup()}catch(a){console.error("[Axentix] Tab init error",a)}}setup(){d(this.el,"tab.setup"),["none","slide"].includes(this.options.animationType)||(this.options.animationType="none"),s(this,M,!1),s(this,O,this.el.querySelector(".tab-arrow")),s(this,L,this.el.querySelectorAll(".tab-menu .tab-link")),s(this,$,this.el.querySelector(".tab-menu")),s(this,x,0),s(this,j,h(this,Mi,$n).call(this)),e(this,O)&&(h(this,Ye,Ks).call(this),s(this,ye,this.el.querySelector(".tab-arrow .tab-prev")),s(this,ge,this.el.querySelector(".tab-arrow .tab-next"))),this.setupListeners(),e(this,$).style.transitionDuration=this.options.animationDuration+"ms",this.options.animationType==="slide"?h(this,qi,Pn).call(this):this.updateActiveElement()}setupListeners(){e(this,L).forEach(t=>{t.listenerRef=h(this,zi,Wn).bind(this,t),t.addEventListener("click",t.listenerRef)}),s(this,Ut,h(this,Oi,kn).bind(this)),window.addEventListener("resize",e(this,Ut)),e(this,O)&&(s(this,Ft,h(this,Ye,Ks).bind(this)),window.addEventListener("resize",e(this,Ft)),s(this,Xt,h(this,Hi,qn).bind(this)),s(this,Yt,h(this,Wi,Hn).bind(this)),e(this,ye).addEventListener("click",e(this,Xt)),e(this,ge).addEventListener("click",e(this,Yt)))}removeListeners(){e(this,L).forEach(t=>{t.removeEventListener("click",t.listenerRef),t.listenerRef=void 0}),window.removeEventListener("resize",e(this,Ut)),s(this,Ut,void 0),e(this,O)&&(window.removeEventListener("resize",e(this,Ft)),s(this,Ft,void 0),e(this,ye).removeEventListener("click",e(this,Xt)),e(this,ge).removeEventListener("click",e(this,Yt)),s(this,Xt,void 0),s(this,Yt,void 0)),e(this,yt)&&(this.el.removeEventListener("ax.caroulix.slide",e(this,yt)),s(this,yt,void 0))}select(t){if(e(this,M))return;s(this,M,!0);const i=this.el.querySelector('.tab-menu a[href="#'+t+'"]');if(s(this,x,Array.from(e(this,L)).findIndex(n=>n.children[0]===i)),d(i,"tab.select",{currentIndex:e(this,x)}),h(this,Xe,Js).call(this,i.parentElement),e(this,be)){e(this,j).forEach(a=>a.id===t?a.classList.add("active"):"");const n=bt("Caroulix");s(this,_t,new n("#"+e(this,Vt).id,this.options.caroulix,this.el,!0)),s(this,yt,h(this,$i,On).bind(this)),this.el.addEventListener("ax.caroulix.slide",e(this,yt)),s(this,be,!1),s(this,M,!1);return}if(this.options.animationType==="slide"){const n=e(this,j).findIndex(a=>a.id===t);e(this,_t).goTo(n),setTimeout(()=>{s(this,M,!1)},this.options.animationDuration)}else h(this,Pi,Mn).call(this),e(this,j).forEach(n=>{n.id===t&&(n.style.display="block")}),s(this,M,!1)}updateActiveElement(){let t;e(this,L).forEach((n,a)=>{n.classList.contains("active")&&(t=n,s(this,x,a))}),t||(t=e(this,L).item(0),s(this,x,0));const i=t.children[0].getAttribute("href");this.select(i.split("#")[1])}prev(t=1){if(e(this,M))return;const i=h(this,Bi,zn).call(this,t);s(this,x,i),d(this.el,"tab.prev",{step:t});const n=e(this,L)[i].children[0].getAttribute("href");this.select(n.split("#")[1])}next(t=1){if(e(this,M))return;const i=h(this,Ni,Bn).call(this,t);s(this,x,i),d(this.el,"tab.next",{step:t});const n=e(this,L)[i].children[0].getAttribute("href");this.select(n.split("#")[1])}}O=new WeakMap,L=new WeakMap,$=new WeakMap,x=new WeakMap,ye=new WeakMap,ge=new WeakMap,Xt=new WeakMap,Yt=new WeakMap,Ft=new WeakMap,yt=new WeakMap,Ut=new WeakMap,j=new WeakMap,Vt=new WeakMap,be=new WeakMap,_t=new WeakMap,M=new WeakMap,Oi=new WeakSet,kn=function(){this.updateActiveElement();for(let t=100;t<500;t+=100)setTimeout(()=>{this.updateActiveElement()},t)},$i=new WeakSet,On=function(){e(this,x)!==e(this,_t).activeIndex&&(s(this,x,e(this,_t).activeIndex),h(this,Xe,Js).call(this,e(this,L)[e(this,x)]))},Mi=new WeakSet,$n=function(){return Array.from(e(this,L)).map(t=>{const i=t.children[0].getAttribute("href");return this.el.querySelector(i)})},Pi=new WeakSet,Mn=function(){e(this,j).forEach(t=>t.style.display="none")},qi=new WeakSet,Pn=function(){e(this,j).forEach(i=>i.classList.add("caroulix-item")),s(this,Vt,as(e(this,j))),e(this,Vt).classList.add("caroulix");const t=Math.random().toString().split(".")[1];e(this,Vt).id="tab-caroulix-"+t,s(this,be,!0),this.options.animationDuration!==300&&(this.options.caroulix.animationDuration=this.options.animationDuration),this.updateActiveElement()},Xe=new WeakSet,Js=function(t){if(e(this,L).forEach(i=>i.classList.remove("active")),!this.options.disableActiveBar){const i=t.getBoundingClientRect(),n=i.left,a=e(this,$).getBoundingClientRect().left,c=n-a+e(this,$).scrollLeft,f=i.width,m=e(this,$).clientWidth-c-f;e(this,$).style.setProperty(q("tab-bar-left-offset"),Math.floor(c)+"px"),e(this,$).style.setProperty(q("tab-bar-right-offset"),Math.ceil(m)+"px")}t.classList.add("active")},Ye=new WeakSet,Ks=function(){const t=Array.from(e(this,L)).reduce((n,a)=>(n+=a.clientWidth,n),0),i=e(this,O).clientWidth;t>i?e(this,O).classList.contains("tab-arrow-show")||e(this,O).classList.add("tab-arrow-show"):e(this,O).classList.contains("tab-arrow-show")&&e(this,O).classList.remove("tab-arrow-show")},Hi=new WeakSet,qn=function(t){t.preventDefault(),e(this,$).scrollLeft-=40},Wi=new WeakSet,Hn=function(t){t.preventDefault(),e(this,$).scrollLeft+=40},zi=new WeakSet,Wn=function(t,i){if(i.preventDefault(),e(this,M)||t.classList.contains("active"))return;const n=t.children[0].getAttribute("href");this.select(n.split("#")[1])},Bi=new WeakSet,zn=function(t){let i=0,n=e(this,x);for(let a=0;a<t;a++)n>0?(i=n-1,n--):(n=e(this,L).length-1,i=n);return i},Ni=new WeakSet,Bn=function(t){let i=0,n=e(this,x);for(let a=0;a<t;a++)n<e(this,L).length-1?(i=n+1,n++):(n=0,i=n);return i},u(gs,"getDefaultOptions",()=>Co),S({class:gs,name:"Tab",dataDetection:!0,autoInit:{enabled:!0,selector:".tab"}});const So={offset:200,linkSelector:"a",classes:"active",auto:{enabled:!1,classes:"",selector:""}};class bs extends N{constructor(t,i,n){super();o(this,Xi);o(this,Yi);o(this,Fi);o(this,Ui);o(this,Vi);o(this,Fe);u(this,"options");o(this,gt,void 0);o(this,lt,void 0);o(this,Zt,void 0);o(this,J,void 0);try{this.preventDbInstance(t),y.push({type:"ScrollSpy",instance:this}),this.el=document.querySelector(t),this.options=T("ScrollSpy",i,this.el,n),this.setup()}catch(a){console.error("[Axentix] ScrollSpy init error",a)}}setup(){d(this.el,"scrollspy.setup"),this.options.auto.enabled?h(this,Yi,Xn).call(this):h(this,Xi,Nn).call(this),typeof this.options.classes=="string"&&(this.options.classes=this.options.classes.split(" ")),s(this,gt,""),this.setupListeners(),h(this,Fe,Qs).call(this)}setupListeners(){s(this,lt,h(this,Fe,Qs).bind(this)),window.addEventListener("scroll",e(this,lt)),window.addEventListener("resize",e(this,lt))}removeListeners(){window.removeEventListener("scroll",e(this,lt)),window.removeEventListener("resize",e(this,lt)),s(this,lt,void 0)}}gt=new WeakMap,lt=new WeakMap,Zt=new WeakMap,J=new WeakMap,Xi=new WeakSet,Nn=function(){s(this,Zt,Array.from(this.el.querySelectorAll(this.options.linkSelector))),s(this,J,e(this,Zt).map(t=>document.querySelector(t.getAttribute("href"))))},Yi=new WeakSet,Xn=function(){s(this,J,Array.from(document.querySelectorAll(this.options.auto.selector))),s(this,Zt,e(this,J).map(t=>{const i=document.createElement("a");return i.className=this.options.auto.classes,i.setAttribute("href","#"+t.id),i.innerHTML=t.innerHTML,this.el.appendChild(i),i}))},Fi=new WeakSet,Yn=function(){const t=window.scrollY,i=window.scrollX,n=window.innerWidth,a=window.innerHeight,c=t+this.options.offset;return a+t>=document.body.offsetHeight-2?e(this,J)[e(this,J).length-1]:e(this,J).find(f=>{const m=f.getBoundingClientRect();return m.top+t>=t&&m.left+i>=i&&m.right<=n&&m.bottom<=a&&m.top+t<=c})},Ui=new WeakSet,Fn=function(){!e(this,gt)||this.options.classes.forEach(t=>e(this,gt).classList.remove(t))},Vi=new WeakSet,Un=function(){const t=window.scrollY;return e(this,J).reduce((i,n)=>{const a=n.getBoundingClientRect().top+t,c=i.getBoundingClientRect().top+t;return a>t+this.options.offset?i:Math.abs(a-t)<Math.abs(c-t)?n:i})},Fe=new WeakSet,Qs=function(){let t=h(this,Fi,Yn).call(this);t||(t=h(this,Vi,Un).call(this));const i=e(this,Zt).find(n=>n.getAttribute("href").split("#")[1]===t.id);i!==e(this,gt)&&(d(this.el,"scrollspy.update"),h(this,Ui,Fn).call(this),this.options.classes.forEach(n=>i.classList.add(n)),s(this,gt,i))},u(bs,"getDefaultOptions",()=>So),S({class:bs,name:"ScrollSpy",dataDetection:!0,autoInit:{enabled:!0,selector:".scrollspy"}});var br="";const Ro={animationDuration:400,duration:4e3,classes:"",position:"right",direction:"top",mobileDirection:"bottom",offset:{x:"5%",y:"0%",mobileX:"10%",mobileY:"0%"},isClosable:!1,closableContent:"x",loading:{enabled:!0,border:"2px solid #E2E2E2"}};class Ls{constructor(t,i){o(this,_i);o(this,Zi);o(this,Gi);o(this,ji);o(this,Ji);o(this,Ki);o(this,Ue);u(this,"options");u(this,"id");o(this,Le,void 0);o(this,K,void 0);if(De("Toast").length>0){console.error("[Axentix] Toast: Don't try to create multiple toast instances");return}y.push({type:"Toast",instance:this}),this.id=Math.random().toString().split(".")[1],s(this,Le,t),this.options=T("Toast",i,"",!0),this.options.position=this.options.position.toLowerCase(),this.options.direction=this.options.direction.toLowerCase(),this.options.mobileDirection=this.options.mobileDirection.toLowerCase(),s(this,K,{})}destroy(){const t=y.findIndex(i=>i.instance.id===this.id);y.splice(t,1)}show(){try{Object.keys(e(this,K)).includes(this.options.position)||h(this,_i,Vn).call(this),h(this,Ki,Jn).call(this)}catch(t){console.error("[Axentix] Toast error",t)}}change(t,i){s(this,Le,t),this.options=Ge(this.options,i)}}Le=new WeakMap,K=new WeakMap,_i=new WeakSet,Vn=function(){let t=document.createElement("div");["right","left"].includes(this.options.position)||(this.options.position="right"),this.options.position==="right"?t.style.right=this.options.offset.x:t.style.left=this.options.offset.x;const n=["bottom","top"];n.includes(this.options.direction)||(this.options.direction="top"),this.options.direction==="top"?t.style.top=this.options.offset.y:t.style.bottom=this.options.offset.y,n.includes(this.options.mobileDirection)||(this.options.mobileDirection="bottom"),t.style.setProperty(q("toaster-m-width"),100-this.options.offset.mobileX.slice(0,-1)+"%"),t.style.setProperty(q("toaster-m-offset"),this.options.offset.mobileY),this.options.loading.enabled&&t.style.setProperty(q("toast-loading-border"),this.options.loading.border),t.className=`toaster toaster-${this.options.position} toast-${this.options.direction} toaster-m-${this.options.mobileDirection}`,e(this,K)[this.options.position]=t,document.body.appendChild(t)},Zi=new WeakSet,_n=function(){for(const t in e(this,K)){let i=e(this,K)[t];i.childElementCount<=0&&(i.remove(),delete e(this,K)[t])}},Gi=new WeakSet,Zn=function(t){setTimeout(()=>{d(t,"toast.show"),this.options.loading.enabled&&(t.classList.add("toast-loading"),t.style.setProperty(q("toast-loading-duration"),this.options.duration+"ms")),t.classList.add("toast-animated"),setTimeout(()=>{d(t,"toast.shown"),this.options.loading.enabled&&t.classList.add("toast-load")},this.options.animationDuration)},50)},ji=new WeakSet,Gn=function(t){setTimeout(()=>{d(t,"toast.hide"),h(this,Ue,to).call(this,t)},this.options.duration+this.options.animationDuration)},Ji=new WeakSet,jn=function(t){t.style.transitionTimingFunction="cubic-bezier(0.445, 0.05, 0.55, 0.95)",t.style.paddingTop="0",t.style.paddingBottom="0",t.style.margin="0",t.style.height="0"},Ki=new WeakSet,Jn=function(){let t=document.createElement("div");if(t.className="toast shadow-1 "+this.options.classes,t.innerHTML=e(this,Le),t.style.transitionDuration=this.options.animationDuration+"ms",this.options.isClosable){let n=document.createElement("div");n.className="toast-trigger",n.innerHTML=this.options.closableContent,n.listenerRef=h(this,Ue,to).bind(this,t,n),n.addEventListener("click",n.listenerRef),t.appendChild(n)}h(this,Gi,Zn).call(this,t),e(this,K)[this.options.position].appendChild(t),h(this,ji,Gn).call(this,t);const i=t.clientHeight;t.style.height=i+"px"},Ue=new WeakSet,to=function(t,i,n){if(t.isAnimated)return;let a=1;n&&(n.preventDefault(),a=0,this.options.isClosable&&i.removeEventListener("click",i.listenerRef)),t.style.opacity="0",t.isAnimated=!0;const c=a*this.options.animationDuration+this.options.animationDuration;setTimeout(()=>{h(this,Ji,jn).call(this,t)},c/2),setTimeout(()=>{t.remove(),d(t,"toast.remove"),h(this,Zi,_n).call(this)},c*1.45)},u(Ls,"getDefaultOptions",()=>Ro),S({class:Ls,name:"Toast"});var Lr="";const ko={content:"",animationDelay:0,offset:"10px",animationDuration:200,classes:"grey dark-4 light-shadow-2 p-2",position:"top"};class ws extends N{constructor(t,i,n){super();o(this,Ve);o(this,Qi);o(this,ts);o(this,es);o(this,is);u(this,"options");o(this,v,void 0);o(this,we,void 0);o(this,Gt,void 0);o(this,jt,void 0);o(this,Jt,void 0);o(this,D,void 0);o(this,ct,void 0);try{this.preventDbInstance(t),y.push({type:"Tooltip",instance:this}),this.el=document.querySelector(t),this.options=T("Tooltip",i,this.el,n),this.setup()}catch(a){console.error("[Axentix] Tooltip init error",a)}}setup(){if(!this.options.content)return console.error(`Tooltip #${this.el.id} : empty content.`);d(this.el,"tooltip.setup"),this.options.position=this.options.position.toLowerCase(),document.querySelectorAll(".tooltip").forEach(i=>{i.dataset.tooltipId&&i.dataset.tooltipId===this.el.id&&s(this,v,i)}),e(this,v)||s(this,v,document.createElement("div")),e(this,v).dataset.tooltipId!==this.el.id&&(e(this,v).dataset.tooltipId=this.el.id),h(this,Ve,eo).call(this),document.body.appendChild(e(this,v)),s(this,we,["right","left","top","bottom"]),e(this,we).includes(this.options.position)||(this.options.position="top"),this.setupListeners(),this.updatePosition()}setupListeners(){s(this,Gt,h(this,es,tr).bind(this)),s(this,jt,h(this,is,er).bind(this)),s(this,Jt,this.updatePosition.bind(this)),this.el.addEventListener("mouseenter",e(this,Gt)),this.el.addEventListener("mouseleave",e(this,jt)),window.addEventListener("resize",e(this,Jt))}removeListeners(){this.el.removeEventListener("mouseenter",e(this,Gt)),this.el.removeEventListener("mouseleave",e(this,jt)),window.removeEventListener("resize",e(this,Jt)),s(this,Gt,void 0),s(this,jt,void 0),s(this,Jt,void 0)}updatePosition(){s(this,D,this.el.getBoundingClientRect()),h(this,Qi,Kn).call(this),s(this,ct,e(this,v).getBoundingClientRect()),h(this,ts,Qn).call(this)}show(){this.updatePosition(),setTimeout(()=>{d(this.el,"tooltip.show");const t=this.options.position=="top"||this.options.position=="left"?"-":"",i=this.options.position=="top"||this.options.position=="bottom"?"Y":"X";e(this,v).style.transform=`translate${i}(${t}${this.options.offset})`,e(this,v).style.opacity="1"},this.options.animationDelay)}hide(){d(this.el,"tooltip.hide"),e(this,v).style.transform="translate(0)",e(this,v).style.opacity="0"}change(t){this.options=T("Tooltip",t,this.el,!0),e(this,we).includes(this.options.position)||(this.options.position="top"),h(this,Ve,eo).call(this),this.updatePosition()}}v=new WeakMap,we=new WeakMap,Gt=new WeakMap,jt=new WeakMap,Jt=new WeakMap,D=new WeakMap,ct=new WeakMap,Ve=new WeakSet,eo=function(){e(this,v).style.transform="translate(0)",e(this,v).style.opacity="0",e(this,v).className="tooltip "+this.options.classes,e(this,v).style.transitionDuration=this.options.animationDuration+"ms",e(this,v).innerHTML=this.options.content},Qi=new WeakSet,Kn=function(){if(this.options.position=="top"||this.options.position=="bottom"){const i=this.options.position==="top"?e(this,D).top:e(this,D).top+e(this,D).height;e(this,v).style.top=i+"px"}else this.options.position=="right"&&(e(this,v).style.left=e(this,D).left+e(this,D).width+"px")},ts=new WeakSet,Qn=function(){this.options.position=="top"||this.options.position=="bottom"?e(this,v).style.left=e(this,D).left+e(this,D).width/2-e(this,ct).width/2+"px":e(this,v).style.top=e(this,D).top+e(this,D).height/2-e(this,ct).height/2+"px",this.options.position=="top"?e(this,v).style.top=e(this,ct).top-e(this,ct).height+"px":this.options.position=="left"&&(e(this,v).style.left=e(this,D).left-e(this,ct).width+"px");const i=window.scrollY,n=parseFloat(e(this,v).style.top);this.options.position==="top"?e(this,v).style.top=i*2+n+"px":e(this,v).style.top=i+n+"px"},es=new WeakSet,tr=function(t){t.preventDefault(),this.show()},is=new WeakSet,er=function(t){t.preventDefault(),this.hide()},u(ws,"getDefaultOptions",()=>ko),S({class:ws,name:"Tooltip",dataDetection:!0});var wr="";let je="";const I=C.prefix,xs={},Es={},Oo=r=>{const t=ls(),i=document.createElement("div"),n=document.createElement("div"),a=r.tagName.toLowerCase();return r.setAttribute(`${I}-waves-id`,t),n.classList.add(`${I}-waves-item-inner`),n.setAttribute(`${I}-waves-id`,t),i.classList.add(`${I}-waves-box`),i.setAttribute(`${I}-waves-id`,t),i.appendChild(n),xs[t]=r,Es[t]=i,["img","video"].includes(a)?r.parentNode.appendChild(i):r.appendChild(i),i},$o=({id:r,size:t,x:i,y:n,container:a,item:c,target:f},m)=>{const E=document.createElement("span");let P=`height:${t}px;
var Zo=Object.defineProperty;var ns=Math.pow,Go=(l,p,g)=>p in l?Zo(l,p,{enumerable:!0,configurable:!0,writable:!0,value:g}):l[p]=g;var u=(l,p,g)=>(Go(l,typeof p!="symbol"?p+"":p,g),g),Ds=(l,p,g)=>{if(!p.has(l))throw TypeError("Cannot "+g)};var e=(l,p,g)=>(Ds(l,p,"read from private field"),g?g.call(l):p.get(l)),o=(l,p,g)=>{if(p.has(l))throw TypeError("Cannot add the same private member more than once");p instanceof WeakSet?p.add(l):p.set(l,g)},s=(l,p,g,Ee)=>(Ds(l,p,"write to private field"),Ee?Ee.call(l,g):p.set(l,g),g),Ts=(l,p,g,Ee)=>({set _(Cs){s(l,p,Cs,g)},get _(){return e(l,p,Ee)}}),h=(l,p,g)=>(Ds(l,p,"access private method"),g);(function(l,p){typeof exports=="object"&&typeof module!="undefined"?p(exports):typeof define=="function"&&define.amd?define(["exports"],p):(l=typeof globalThis!="undefined"?globalThis:l||self,p(l.Axentix={}))})(this,function(l){var Lt,dt,b,wt,Qt,xt,te,Et,H,ee,Dt,pt,ut,Tt,It,At,Ct,Q,Ae,Ce,R,Se,w,Ke,jo,Qe,Jo,Re,Ns,tt,xe,ie,Is,ti,Ko,ei,Qo,ii,tn,si,en,oi,sn,ke,Xs,Oe,Ys,$e,Fs,se,As,Me,Us,oe,St,k,et,it,ne,Rt,kt,re,ni,on,ri,nn,ai,rn,hi,an,Pe,Vs,li,hn,qe,_s,ci,ln,ae,X,Y,Ot,he,F,le,st,$t,ce,di,cn,He,Zs,pi,dn,We,Gs,ui,pn,U,de,W,z,Mt,Pt,fi,un,vi,fn,mi,vn,yi,mn,gi,yn,ot,V,pe,ft,qt,Ht,Wt,zt,bi,gn,Li,bn,wi,Ln,xi,wn,Ei,xn,Bt,B,A,ue,fe,_,Z,ze,Be,vt,mt,Nt,nt,ve,rt,Di,En,Ti,Dn,Ii,Tn,Ai,In,Ci,An,Si,Cn,me,G,at,ht,Ne,js,Ri,Sn,ki,Rn,O,L,$,x,ye,ge,Xt,Yt,Ft,yt,Ut,j,Vt,be,_t,M,Oi,kn,$i,On,Mi,$n,Pi,Mn,qi,Pn,Xe,Js,Ye,Ks,Hi,qn,Wi,Hn,zi,Wn,Bi,zn,Ni,Bn,gt,lt,Zt,J,Xi,Nn,Yi,Xn,Fi,Yn,Ui,Fn,Vi,Un,Fe,Qs,Le,K,_i,Vn,Zi,_n,Gi,Zn,ji,Gn,Ji,jn,Ki,Jn,Ue,to,v,we,Gt,jt,Jt,D,ct,Ve,eo,Qi,Kn,ts,Qn,es,tr,is,er,ss,ir,_e,io,Ze,so;"use strict";var p="",g="",Ee="",Cs="",sr="",or="",nr="",rr="",ar="",hr="",lr="",cr="",dr="";const oo="2.0.0-beta.4",y=[],C={components:[],plugins:[],prefix:"ax",mode:""},q=r=>`--${C.prefix}-${r}`,bt=r=>C.components.find(t=>t.name===r).class,rs=()=>{const r=C.components.filter(i=>i.dataDetection),t=C.plugins.filter(i=>i.dataDetection);return[...r,...t].map(i=>i.name)},Ss=()=>{const r=C.components.filter(i=>i.autoInit&&i.autoInit.enabled),t=C.plugins.filter(i=>i.autoInit&&i.autoInit.enabled);return[...r,...t].reduce((i,n)=>(i[n.name]=document.querySelectorAll(n.autoInit.selector),i),{})},Rs=(r,t)=>{if(!r.name||!r.class){console.error(`[Axentix] Error registering ${t} : Missing required parameters.`);return}if(C[t].some(i=>i.name===r.name)){console.error(`[Axentix] Error registering ${t} : Already exist.`);return}r.autoInit&&(r.autoInit.selector=r.autoInit.selector+=":not(.no-axentix-init)"),C[t].push(r)},S=r=>{Rs(r,"components")},no=r=>{Rs(r,"plugins")},ro=()=>{!window||(window.Axentix||(window.Axentix={}),[...C.components,...C.plugins].forEach(r=>{window.Axentix[r.name]=r.class}))},ao=r=>r.replace(/[\w]([A-Z])/g,t=>t[0]+"-"+t[1]).toLowerCase(),ho=(r,t="")=>{const i=ao(r);return t?t+"-"+i:i},lo=(r,t,i,n,a="")=>{const c=t[0].toUpperCase()+t.slice(1).toLowerCase();rs().includes(c)&&i!=="Collapsible"&&c!=="Sidenav"&&(r[t]=bt(c).getDefaultOptions());const f=a?a+"-"+t:t,m=ks(r[t],i,n,f);if(!(Object.keys(m).length===0&&r.constructor===Object))return m},ks=(r,t,i,n="")=>Object.keys(r).reduce((a,c)=>{if(typeof r[c]=="object"&&r[c]!==null){const f=lo(r,c,t,i,n);f&&(a[c]=f)}else if(r[c]!==null){const f="data-"+t.toLowerCase()+"-"+ho(c,n);if(i.hasAttribute(f)){const m=i.getAttribute(f);a[c]=typeof r[c]=="number"?Number(m):m,typeof r[c]=="boolean"&&(a[c]=m==="true")}}return a},{}),Os=(r,t)=>{const i=Object.assign({},bt(r).getDefaultOptions());return ks(i,r,t)},co=()=>{document.querySelectorAll("[data-ax]").forEach(t=>{let i=t.dataset.ax;if(i=i[0].toUpperCase()+i.slice(1).toLowerCase(),!rs().includes(i)){console.error(`[Axentix] Error: ${i} component doesn't exist.
Did you forget to register him ?`,t);return}try{const n=Os(i,t),a=bt(i);new a(`#${t.id}`,n,!0)}catch(n){console.error("[Axentix] Data: Unable to load "+i,n)}})},po=()=>{try{new Axentix.Axentix("all")}catch(r){console.error("[Axentix] Unable to auto init.",r)}};document.addEventListener("DOMContentLoaded",()=>{document.documentElement.dataset.axentix&&po(),co()});const Ge=(...r)=>r.reduce((t,i)=>{for(let n in i)t[n]=typeof i[n]=="object"&&i[n]!==null?Ge(t[n],i[n]):i[n];return t},{}),T=(r,t,i,n)=>Ge(bt(r).getDefaultOptions(),n?{}:Os(r,i),t),as=(r,t=document.createElement("div"))=>(r[0].parentElement.insertBefore(t,r[0]),r.forEach(n=>t.appendChild(n)),t),uo=r=>r.replaceWith(...r.childNodes),d=(r,t,i)=>{const n=new CustomEvent("ax."+t,{detail:i||{},bubbles:!0});r.dispatchEvent(n)},$s=()=>"ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0,Ms=()=>!!window.PointerEvent&&"maxTouchPoints"in window.navigator&&window.navigator.maxTouchPoints>=0,hs=()=>$s()?"touch":Ms()?"pointer":"mouse",De=r=>y.filter(t=>t.type===r).map(t=>t.instance),Te=r=>{const t=y.find(i=>i.type!=="Toast"&&"#"+i.instance.el.id===r);return t?t.instance:!1},ls=()=>Math.random().toString().split(".")[1],fo=()=>y,vo=r=>Te(r).sync(),mo=()=>y.map(r=>r.instance.sync()),yo=r=>Te(r).reset(),go=()=>y.map(r=>r.instance.reset()),bo=r=>Te(r).destroy(),Lo=()=>y.map(r=>r.instance.destroy()),cs=(r,t,i,n)=>{const a=r&&t?document.querySelector('.ax-overlay[data-target="'+i+'"]'):document.createElement("div");return a.classList.add("ax-overlay"),a.style.transitionDuration=n+"ms",a.dataset.target=i,a},Ie=(r,t,i,n,a)=>{!r||(n?(t.addEventListener("click",i),document.body.appendChild(t),setTimeout(()=>{t.classList.add("active")},50)):(t.classList.remove("active"),setTimeout(()=>{t.removeEventListener("click",i),document.body.removeChild(t)},a)))};class N{constructor(){u(this,"el")}removeListeners(){}setupListeners(){}setup(){}preventDbInstance(t){if(t&&Te(t))throw new Error(`Instance already exist on ${t}`)}sync(){d(this.el,"component.sync"),this.removeListeners(),this.setupListeners()}reset(){d(this.el,"component.reset"),this.removeListeners(),this.setup()}destroy(){d(this.el,"component.destroy"),this.removeListeners();const t=y.findIndex(i=>i.instance.el.id===this.el.id);y.splice(t,1)}}const wo={animationDuration:500,height:"",backToOpposite:!0,enableTouch:!0,indicators:{enabled:!1,isFlat:!1,customClasses:""},autoplay:{enabled:!0,interval:5e3,side:"right"}};class ds extends N{constructor(t,i,n){super();o(this,Ke);o(this,Qe);o(this,Re);o(this,tt);o(this,ie);o(this,ti);o(this,ei);o(this,ii);o(this,si);o(this,oi);o(this,ke);o(this,Oe);o(this,$e);o(this,se);o(this,Me);u(this,"options");u(this,"activeIndex");o(this,Lt,0);o(this,dt,!1);o(this,b,void 0);o(this,wt,0);o(this,Qt,0);o(this,xt,!1);o(this,te,!1);o(this,Et,!1);o(this,H,0);o(this,ee,0);o(this,Dt,void 0);o(this,pt,void 0);o(this,ut,void 0);o(this,Tt,void 0);o(this,It,void 0);o(this,At,void 0);o(this,Ct,void 0);o(this,Q,void 0);o(this,Ae,0);o(this,Ce,0);o(this,R,void 0);o(this,Se,void 0);o(this,w,void 0);try{this.preventDbInstance(t),y.push({type:"Caroulix",instance:this}),this.el=document.querySelector(t),this.options=T("Caroulix",i,this.el,n),this.setup()}catch(a){console.error("[Axentix] Caroulix init error",a)}}setup(){d(this.el,"caroulix.setup"),this.options.autoplay.side=this.options.autoplay.side.toLowerCase(),["right","left"].includes(this.options.autoplay.side)||(this.options.autoplay.side="right"),this.activeIndex=0,s(this,Lt,0),s(this,dt,!1),s(this,w,hs()),s(this,b,h(this,Ke,jo).call(this)),this.options.indicators.enabled&&h(this,si,en).call(this);const i=this.el.querySelector(".active");i?this.activeIndex=e(this,b).indexOf(i):e(this,b)[0].classList.add("active"),h(this,Qe,Jo).call(this),e(this,wt)===0&&h(this,ie,Is).call(this),this.setupListeners(),this.options.autoplay.enabled&&this.play()}setupListeners(){s(this,Dt,h(this,ie,Is).bind(this)),window.addEventListener("resize",e(this,Dt)),e(this,ut)&&(s(this,Tt,this.next.bind(this,1)),e(this,ut).addEventListener("click",e(this,Tt))),e(this,pt)&&(s(this,It,this.prev.bind(this,1)),e(this,pt).addEventListener("click",e(this,It))),this.options.enableTouch&&(s(this,At,h(this,ti,Ko).bind(this)),s(this,Ct,h(this,ei,Qo).bind(this)),s(this,Q,h(this,ii,tn).bind(this)),this.el.addEventListener(`${e(this,w)}${e(this,w)==="touch"?"start":"down"}`,e(this,At)),this.el.addEventListener(`${e(this,w)}move`,e(this,Ct)),this.el.addEventListener(`${e(this,w)}${e(this,w)==="touch"?"end":"up"}`,e(this,Q)),this.el.addEventListener(e(this,w)==="pointer"?"pointerleave":"mouseleave",e(this,Q)))}removeListeners(){window.removeEventListener("resize",e(this,Dt)),s(this,Dt,void 0),e(this,ut)&&(e(this,ut).removeEventListener("click",e(this,Tt)),s(this,Tt,void 0)),e(this,pt)&&(e(this,pt).removeEventListener("click",e(this,It)),s(this,It,void 0)),this.options.enableTouch&&(this.el.removeEventListener(`${e(this,w)}${e(this,w)==="pointer"?"down":"start"}`,e(this,At)),this.el.removeEventListener(`${e(this,w)}move`,e(this,Ct)),this.el.removeEventListener(`${e(this,w)}${e(this,w)==="touch"?"end":"up"}`,e(this,Q)),this.el.removeEventListener(e(this,w)==="pointer"?"pointerleave":"mouseleave",e(this,Q)),s(this,At,void 0),s(this,Ct,void 0),s(this,Q,void 0))}goTo(t){if(t===this.activeIndex)return;(t>this.activeIndex?"right":"left")==="left"?this.prev(Math.abs(this.activeIndex-t)):this.next(Math.abs(this.activeIndex-t)),this.options.indicators.enabled&&h(this,ke,Xs).call(this)}play(){!this.options.autoplay.enabled||(this.stop(),s(this,Se,setInterval(()=>{this.options.autoplay.side==="right"?this.next(1,!1):this.prev(1,!1)},this.options.autoplay.interval)))}stop(){!this.options.autoplay.enabled||clearInterval(e(this,Se))}next(t=1,i=!0){e(this,xt)||this.activeIndex===e(this,b).length-1&&!this.options.backToOpposite||(d(this.el,"caroulix.next",{step:t}),s(this,dt,!0),i&&this.options.autoplay.enabled&&this.stop(),this.activeIndex<e(this,b).length-1?this.activeIndex+=t:this.options.backToOpposite&&(this.activeIndex=0),h(this,Me,Us).call(this),h(this,tt,xe).call(this),i&&this.options.autoplay.enabled&&this.play())}prev(t=1,i=!0){e(this,xt)||this.activeIndex===0&&!this.options.backToOpposite||(d(this.el,"caroulix.prev",{step:t}),s(this,dt,!0),i&&this.options.autoplay.enabled&&this.stop(),this.activeIndex>0?this.activeIndex-=t:this.options.backToOpposite&&(this.activeIndex=e(this,b).length-1),h(this,Me,Us).call(this),h(this,tt,xe).call(this),i&&this.options.autoplay.enabled&&this.play())}}Lt=new WeakMap,dt=new WeakMap,b=new WeakMap,wt=new WeakMap,Qt=new WeakMap,xt=new WeakMap,te=new WeakMap,Et=new WeakMap,H=new WeakMap,ee=new WeakMap,Dt=new WeakMap,pt=new WeakMap,ut=new WeakMap,Tt=new WeakMap,It=new WeakMap,At=new WeakMap,Ct=new WeakMap,Q=new WeakMap,Ae=new WeakMap,Ce=new WeakMap,R=new WeakMap,Se=new WeakMap,w=new WeakMap,Ke=new WeakSet,jo=function(){return Array.from(this.el.children).reduce((t,i)=>(i.classList.contains("caroulix-item")&&t.push(i),i.classList.contains("caroulix-prev")&&s(this,pt,i),i.classList.contains("caroulix-next")&&s(this,ut,i),t),[])},Qe=new WeakSet,Jo=function(){s(this,wt,0),s(this,Qt,0),e(this,b).forEach(t=>{const i=t.querySelector("img, video");i&&(Ts(this,wt)._++,i.complete?h(this,Re,Ns).call(this,i,!0):(i.loadRef=h(this,Re,Ns).bind(this,i),i.addEventListener("load",i.loadRef)))})},Re=new WeakSet,Ns=function(t,i){Ts(this,Qt)._++,i||(t.removeEventListener("load",t.loadRef),t.loadRef=void 0),e(this,wt)==e(this,Qt)&&(h(this,ie,Is).call(this),h(this,tt,xe).call(this,!0))},tt=new WeakSet,xe=function(t=!1){const i=this.el.getBoundingClientRect().width;e(this,b).forEach((a,c)=>{a.style.transform=`translateX(${i*c-i*this.activeIndex-e(this,Lt)}px)`}),this.options.indicators.enabled&&h(this,ke,Xs).call(this),e(this,b).find(a=>a.classList.contains("active")).classList.remove("active"),e(this,b)[this.activeIndex].classList.add("active"),setTimeout(()=>{s(this,dt,!1)},this.options.animationDuration),t&&setTimeout(()=>h(this,se,As).call(this,this.options.animationDuration),50)},ie=new WeakSet,Is=function(){if(s(this,xt,!0),this.el.style.transitionDuration="",this.options.autoplay.enabled&&this.play(),this.options.height)this.el.style.height=this.options.height;else{const t=e(this,b).map(n=>n.offsetHeight),i=Math.max(...t);this.el.style.height=i+"px"}h(this,tt,xe).call(this),setTimeout(()=>{this.el.style.transitionDuration=this.options.animationDuration+"ms",s(this,xt,!1)},50)},ti=new WeakSet,Ko=function(t){t.target.closest(".caroulix-arrow")||t.target.closest(".caroulix-indicators")||e(this,dt)||(t.type!=="touchstart"&&t.preventDefault(),this.options.autoplay.enabled&&this.stop(),h(this,se,As).call(this,0),s(this,Et,!0),s(this,te,!1),s(this,H,0),s(this,ee,0),s(this,Ae,h(this,Oe,Ys).call(this,t)),s(this,Ce,h(this,$e,Fs).call(this,t)))},ei=new WeakSet,Qo=function(t){if(!e(this,Et)||e(this,te))return;let i=h(this,Oe,Ys).call(this,t),n=h(this,$e,Fs).call(this,t);if(s(this,H,e(this,Ae)-i),s(this,ee,Math.abs(e(this,Ce)-n)),t.type==="touchmove"&&e(this,ee)>Math.abs(e(this,H)))return s(this,te,!0),s(this,H,0),!1;t.cancelable&&t.preventDefault(),s(this,Lt,e(this,H)),h(this,tt,xe).call(this)},ii=new WeakSet,tn=function(t){if(!(t.target.closest(".caroulix-arrow")||t.target.closest(".caroulix-indicators"))&&(t.cancelable&&t.preventDefault(),e(this,Et))){h(this,se,As).call(this,this.options.animationDuration);let i=this.el.getBoundingClientRect().width;s(this,Et,!1);const n=i*15/100;this.activeIndex!==e(this,b).length-1&&e(this,H)>n?this.next():this.activeIndex!==0&&e(this,H)<-n&&this.prev(),s(this,H,0),s(this,Lt,0),h(this,tt,xe).call(this),this.options.autoplay.enabled&&this.play()}},si=new WeakSet,en=function(){s(this,R,document.createElement("ul")),e(this,R).classList.add("caroulix-indicators"),this.options.indicators.isFlat&&e(this,R).classList.add("caroulix-flat"),this.options.indicators.customClasses&&(e(this,R).className=`${e(this,R).className} ${this.options.indicators.customClasses}`);for(let t=0;t<e(this,b).length;t++){const i=document.createElement("li");i.triggerRef=h(this,oi,sn).bind(this,t),i.addEventListener("click",i.triggerRef),e(this,R).appendChild(i)}this.el.appendChild(e(this,R))},oi=new WeakSet,sn=function(t,i){i.preventDefault(),t!==this.activeIndex&&this.goTo(t)},ke=new WeakSet,Xs=function(){Array.from(e(this,R).children).forEach(t=>t.removeAttribute("class")),e(this,R).children[this.activeIndex].classList.add("active")},Oe=new WeakSet,Ys=function(t){return t.targetTouches&&t.targetTouches.length>=1?t.targetTouches[0].clientX:t.clientX},$e=new WeakSet,Fs=function(t){return t.targetTouches&&t.targetTouches.length>=1?t.targetTouches[0].clientY:t.clientY},se=new WeakSet,As=function(t){this.el.style.transitionDuration=t+"ms"},Me=new WeakSet,Us=function(){d(this.el,"caroulix.slide",{nextElement:e(this,b)[this.activeIndex],currentElement:e(this,b)[e(this,b).findIndex(t=>t.classList.contains("active"))]})},u(ds,"getDefaultOptions",()=>wo),S({class:ds,name:"Caroulix",dataDetection:!0,autoInit:{enabled:!0,selector:".caroulix"}});var pr="";const xo={animationDuration:300,sidenav:{activeClass:!0,activeWhenOpen:!0,autoClose:!0}};class ps extends N{constructor(t,i,n){super();o(this,ni);o(this,ri);o(this,ai);o(this,hi);o(this,Pe);o(this,li);o(this,qe);o(this,ci);u(this,"options");o(this,oe,void 0);o(this,St,!0);o(this,k,!1);o(this,et,!1);o(this,it,!1);o(this,ne,!1);o(this,Rt,void 0);o(this,kt,void 0);o(this,re,"");try{this.preventDbInstance(t),y.push({type:"Collapsible",instance:this}),this.el=document.querySelector(t),this.options=T("Collapsible",i,this.el,n),this.setup()}catch(a){console.error("[Axentix] Collapsible init error",a)}}setup(){d(this.el,"collapsible.setup"),s(this,oe,document.querySelectorAll(".collapsible-trigger")),s(this,St,!0),s(this,k,!!this.el.classList.contains("active")),s(this,et,!1),s(this,it,!1),s(this,ne,!1),this.setupListeners(),this.el.style.transitionDuration=this.options.animationDuration+"ms",h(this,ri,nn).call(this),h(this,ai,rn).call(this),this.options.sidenav.activeClass&&h(this,hi,an).call(this),e(this,k)&&this.open(),s(this,St,!1)}setupListeners(){s(this,Rt,h(this,ci,ln).bind(this)),e(this,oe).forEach(t=>{t.dataset.target===this.el.id&&t.addEventListener("click",e(this,Rt))}),s(this,kt,h(this,ni,on).bind(this)),window.addEventListener("resize",e(this,kt))}removeListeners(){e(this,oe).forEach(t=>{t.dataset.target===this.el.id&&t.removeEventListener("click",e(this,Rt))}),s(this,Rt,void 0),window.removeEventListener("resize",e(this,kt)),s(this,kt,void 0)}open(){e(this,k)&&!e(this,St)||(d(this.el,"collapsible.open"),s(this,k,!0),s(this,et,!0),this.el.style.display="block",h(this,qe,_s).call(this),this.el.style.maxHeight=this.el.scrollHeight+"px",this.options.sidenav.activeWhenOpen&&h(this,Pe,Vs).call(this,!0),this.options.sidenav.autoClose&&h(this,li,hn).call(this),setTimeout(()=>{s(this,et,!1)},this.options.animationDuration))}close(){!e(this,k)||(d(this.el,"collapsible.close"),s(this,et,!0),this.el.style.maxHeight="",h(this,qe,_s).call(this),this.options.sidenav.activeWhenOpen&&h(this,Pe,Vs).call(this,!1),setTimeout(()=>{this.el.style.display="",s(this,et,!1),s(this,k,!1)},this.options.animationDuration))}}oe=new WeakMap,St=new WeakMap,k=new WeakMap,et=new WeakMap,it=new WeakMap,ne=new WeakMap,Rt=new WeakMap,kt=new WeakMap,re=new WeakMap,ni=new WeakSet,on=function(){e(this,k)&&!e(this,it)&&(this.el.style.maxHeight=this.el.scrollHeight+"px")},ri=new WeakSet,nn=function(){const t=this.el.closest(".sidenav");t&&(s(this,it,!0),s(this,re,t.id))},ai=new WeakSet,rn=function(){s(this,ne,!!this.el.querySelector(".active"))},hi=new WeakSet,an=function(){e(this,ne)&&e(this,it)&&(document.querySelectorAll(".sidenav .collapsible-trigger").forEach(i=>{i.dataset.target===this.el.id&&i.classList.add("active")}),this.el.classList.add("active"),this.open(),s(this,k,!0))},Pe=new WeakSet,Vs=function(t){document.querySelectorAll(".sidenav .collapsible-trigger").forEach(n=>{n.dataset.target===this.el.id&&(t?n.classList.add("active"):n.classList.remove("active"))})},li=new WeakSet,hn=function(){!e(this,St)&&e(this,it)&&De("Collapsible").forEach(t=>{e(t,it)&&e(t,re)===e(this,re)&&t.el.id!==this.el.id&&t.close()})},qe=new WeakSet,_s=function(){this.el.style.overflow="hidden",setTimeout(()=>{this.el.style.overflow=""},this.options.animationDuration)},ci=new WeakSet,ln=function(t){t.preventDefault(),!e(this,et)&&(e(this,k)?this.close():this.open())},u(ps,"getDefaultOptions",()=>xo),S({class:ps,name:"Collapsible",dataDetection:!0,autoInit:{enabled:!0,selector:".collapsible"}});var ur="";const Eo={overlay:!0,bodyScrolling:!1,animationDuration:300};class us extends N{constructor(t,i,n){super();o(this,di);o(this,He);o(this,pi);o(this,We);o(this,ui);u(this,"options");o(this,ae,void 0);o(this,X,!1);o(this,Y,!1);o(this,Ot,!1);o(this,he,!1);o(this,F,void 0);o(this,le,void 0);o(this,st,void 0);o(this,$t,void 0);o(this,ce,void 0);try{this.preventDbInstance(t),y.push({type:"Sidenav",instance:this}),this.el=document.querySelector(t),this.options=T("Sidenav",i,this.el,n),this.setup()}catch(a){console.error("[Axentix] Sidenav init error",a)}}setup(){d(this.el,"sidenav.setup"),s(this,ae,document.querySelectorAll(".sidenav-trigger")),s(this,X,!1),s(this,Y,!1),s(this,ce,window.innerWidth),s(this,Ot,this.el.classList.contains("sidenav-fixed"));const t=De("Sidenav").find(i=>e(i,Ot));s(this,he,t&&t.el===this.el),s(this,F,document.querySelector('.layout, [class*="layout-"]')),e(this,F)&&e(this,he)&&h(this,He,Zs).call(this),this.setupListeners(),this.options.overlay&&s(this,le,cs(e(this,X),this.options.overlay,this.el.id,this.options.animationDuration)),e(this,F)&&e(this,Ot)&&h(this,pi,dn).call(this),this.el.style.transitionDuration=this.options.animationDuration+"ms"}setupListeners(){s(this,st,h(this,ui,pn).bind(this)),e(this,ae).forEach(t=>{t.dataset.target===this.el.id&&t.addEventListener("click",e(this,st))}),s(this,$t,h(this,di,cn).bind(this)),window.addEventListener("resize",e(this,$t))}removeListeners(){e(this,ae).forEach(t=>{t.dataset.target===this.el.id&&t.removeEventListener("click",e(this,st))}),s(this,st,void 0),window.removeEventListener("resize",e(this,$t)),s(this,$t,void 0)}destroy(){d(this.el,"component.destroy"),this.removeListeners(),e(this,F)&&h(this,He,Zs).call(this);const t=y.findIndex(i=>i.instance.el.id===this.el.id);y.splice(t,1)}open(){e(this,X)||e(this,Y)||(d(this.el,"sidenav.open"),s(this,X,!0),s(this,Y,!0),this.el.classList.add("active"),Ie(this.options.overlay,e(this,le),e(this,st),!0,this.options.animationDuration),h(this,We,Gs).call(this,!1),setTimeout(()=>{s(this,Y,!1),d(this.el,"sidenav.opened")},this.options.animationDuration))}close(){!e(this,X)||e(this,Y)||(s(this,Y,!0),d(this.el,"sidenav.close"),this.el.classList.remove("active"),Ie(this.options.overlay,e(this,le),e(this,st),!1,this.options.animationDuration),setTimeout(()=>{h(this,We,Gs).call(this,!0),s(this,X,!1),s(this,Y,!1),d(this.el,"sidenav.closed")},this.options.animationDuration))}}ae=new WeakMap,X=new WeakMap,Y=new WeakMap,Ot=new WeakMap,he=new WeakMap,F=new WeakMap,le=new WeakMap,st=new WeakMap,$t=new WeakMap,ce=new WeakMap,di=new WeakSet,cn=function(t){const n=t.target.innerWidth;e(this,ce)!==n&&this.close(),s(this,ce,n)},He=new WeakSet,Zs=function(){["layout-sidenav-right","layout-sidenav-both"].forEach(t=>e(this,F).classList.remove(t))},pi=new WeakSet,dn=function(){if(!e(this,he))return;const t=Array.from(document.querySelectorAll(".sidenav")).filter(c=>c.classList.contains("sidenav-fixed")),{sidenavsRight:i,sidenavsLeft:n}=t.reduce((c,f)=>(f.classList.contains("sidenav-right")?c.sidenavsRight.push(f):c.sidenavsLeft.push(f),c),{sidenavsRight:[],sidenavsLeft:[]}),a=n.length>0&&i.length>0;i.length>0&&!a?e(this,F).classList.add("layout-sidenav-right"):a&&e(this,F).classList.add("layout-sidenav-both")},We=new WeakSet,Gs=function(t){this.options.bodyScrolling||(document.body.style.overflow=t?"":"hidden")},ui=new WeakSet,pn=function(t){t.preventDefault(),!(e(this,Ot)&&window.innerWidth>=960)&&(e(this,X)?this.close():this.open())},u(us,"getDefaultOptions",()=>Eo),S({class:us,name:"Sidenav",dataDetection:!0,autoInit:{enabled:!0,selector:".sidenav"}});var fr="";const Do={animationDuration:300,animationType:"none",hover:!1,autoClose:!0,preventViewport:!1};class fs extends N{constructor(t,i,n){super();o(this,fi);o(this,vi);o(this,mi);o(this,yi);o(this,gi);u(this,"options");o(this,U,void 0);o(this,de,void 0);o(this,W,!1);o(this,z,!1);o(this,Mt,void 0);o(this,Pt,void 0);try{this.preventDbInstance(t),y.push({type:"Dropdown",instance:this}),this.el=document.querySelector(t),this.options=T("Dropdown",i,this.el,n),this.setup()}catch(a){console.error("[Axentix] Dropdown init error",a)}}setup(){d(this.el,"dropdown.setup"),s(this,U,this.el.querySelector(".dropdown-content")),s(this,de,this.el.querySelector(".dropdown-trigger")),s(this,W,!1),s(this,z,!!this.el.classList.contains("active")),this.options.hover?this.el.classList.add("active-hover"):this.setupListeners(),this.options.preventViewport&&this.el.classList.add("dropdown-vp"),h(this,fi,un).call(this)}setupListeners(){this.options.hover||(s(this,Pt,h(this,mi,vn).bind(this)),e(this,de).addEventListener("click",e(this,Pt)),s(this,Mt,h(this,vi,fn).bind(this)),document.addEventListener("click",e(this,Mt),!0))}removeListeners(){this.options.hover||(e(this,de).removeEventListener("click",e(this,Pt)),s(this,Pt,void 0),document.removeEventListener("click",e(this,Mt),!0),s(this,Mt,void 0))}open(){e(this,z)||(d(this.el,"dropdown.open"),e(this,U).style.display="flex",this.options.preventViewport&&h(this,gi,yn).call(this),setTimeout(()=>{this.el.classList.add("active"),s(this,z,!0)},10),this.options.autoClose&&h(this,yi,mn).call(this),this.options.animationType!=="none"?(s(this,W,!0),setTimeout(()=>{s(this,W,!1),d(this.el,"dropdown.opened")},this.options.animationDuration)):d(this.el,"dropdown.opened"))}close(){!e(this,z)||(d(this.el,"dropdown.close"),this.el.classList.remove("active"),this.options.animationType!=="none"?(s(this,W,!0),setTimeout(()=>{e(this,U).style.display="",s(this,W,!1),s(this,z,!1),d(this.el,"dropdown.closed")},this.options.animationDuration)):(e(this,U).style.display="",s(this,W,!1),s(this,z,!1),d(this.el,"dropdown.closed")))}}U=new WeakMap,de=new WeakMap,W=new WeakMap,z=new WeakMap,Mt=new WeakMap,Pt=new WeakMap,fi=new WeakSet,un=function(){const t=["none","fade"];this.options.animationType=this.options.animationType.toLowerCase(),t.includes(this.options.animationType)||(this.options.animationType="none"),this.options.animationType==="fade"&&!this.options.hover&&(e(this,U).style.transitionDuration=this.options.animationDuration+"ms",this.el.classList.add("dropdown-anim-fade"))},vi=new WeakSet,fn=function(t){t.target.matches(".dropdown-trigger")||e(this,W)||!e(this,z)||this.close()},mi=new WeakSet,vn=function(t){t.preventDefault(),!e(this,W)&&(e(this,z)?this.close():this.open())},yi=new WeakSet,mn=function(){De("Dropdown").forEach(t=>{t.el.id!==this.el.id&&t.close()})},gi=new WeakSet,yn=function(){const t=e(this,U).getBoundingClientRect(),i=t.height-(t.bottom-(window.innerHeight||document.documentElement.clientHeight))-10;e(this,U).style.maxHeight=i+"px"},u(fs,"getDefaultOptions",()=>Do),S({class:fs,name:"Dropdown",dataDetection:!0,autoInit:{enabled:!0,selector:".dropdown"}});var vr="";const To={animationDuration:300,hover:!0,direction:"top",position:"bottom-right",offsetX:"1rem",offsetY:"1.5rem"};class vs extends N{constructor(t,i,n){super();o(this,bi);o(this,Li);o(this,wi);o(this,xi);o(this,Ei);u(this,"options");o(this,ot,!1);o(this,V,!1);o(this,pe,void 0);o(this,ft,void 0);o(this,qt,void 0);o(this,Ht,void 0);o(this,Wt,void 0);o(this,zt,void 0);try{this.preventDbInstance(t),y.push({type:"Fab",instance:this}),this.el=document.querySelector(t),this.options=T("Fab",i,this.el,n),this.setup()}catch(a){console.error("[Axentix] Fab init error",a)}}setup(){d(this.el,"fab.setup"),s(this,ot,!1),s(this,V,!1),s(this,pe,document.querySelector(`#${this.el.id} .fab-trigger`)),s(this,ft,document.querySelector(`#${this.el.id} .fab-menu`)),h(this,bi,gn).call(this),this.setupListeners(),this.el.style.transitionDuration=this.options.animationDuration+"ms",h(this,Li,bn).call(this)}setupListeners(){this.options.hover?(s(this,qt,this.open.bind(this)),s(this,Ht,this.close.bind(this)),this.el.addEventListener("mouseenter",e(this,qt)),this.el.addEventListener("mouseleave",e(this,Ht))):(s(this,zt,h(this,Ei,xn).bind(this)),this.el.addEventListener("click",e(this,zt))),s(this,Wt,h(this,xi,wn).bind(this)),document.addEventListener("click",e(this,Wt),!0)}removeListeners(){this.options.hover?(this.el.removeEventListener("mouseenter",e(this,qt)),this.el.removeEventListener("mouseleave",e(this,Ht)),s(this,qt,void 0),s(this,Ht,void 0)):(this.el.removeEventListener("click",e(this,zt)),s(this,zt,void 0)),document.removeEventListener("click",e(this,Wt),!0),s(this,Wt,void 0)}open(){e(this,V)||(d(this.el,"fab.open"),s(this,ot,!0),s(this,V,!0),this.el.classList.add("active"),setTimeout(()=>{s(this,ot,!1)},this.options.animationDuration))}close(){!e(this,V)||(d(this.el,"fab.close"),s(this,ot,!0),s(this,V,!1),this.el.classList.remove("active"),setTimeout(()=>{s(this,ot,!1)},this.options.animationDuration))}}ot=new WeakMap,V=new WeakMap,pe=new WeakMap,ft=new WeakMap,qt=new WeakMap,Ht=new WeakMap,Wt=new WeakMap,zt=new WeakMap,bi=new WeakSet,gn=function(){["right","left","top","bottom"].includes(this.options.direction)||(this.options.direction="top"),["top-right","top-left","bottom-right","bottom-left"].includes(this.options.position)||(this.options.position="bottom-right")},Li=new WeakSet,bn=function(){this.options.position.split("-")[0]==="top"?this.el.style.top=this.options.offsetY:this.el.style.bottom=this.options.offsetY,this.options.position.split("-")[1]==="right"?this.el.style.right=this.options.offsetX:this.el.style.left=this.options.offsetX,(this.options.direction==="right"||this.options.direction==="left")&&this.el.classList.add("fab-dir-x"),h(this,wi,Ln).call(this)},wi=new WeakSet,Ln=function(){if(this.options.direction==="top"||this.options.direction==="bottom"){const t=e(this,pe).clientHeight;this.options.direction==="top"?e(this,ft).style.bottom=t+"px":e(this,ft).style.top=t+"px"}else{const t=e(this,pe).clientWidth;this.options.direction==="right"?e(this,ft).style.left=t+"px":e(this,ft).style.right=t+"px"}},xi=new WeakSet,wn=function(t){!this.el.contains(t.target)&&e(this,V)&&this.close()},Ei=new WeakSet,xn=function(t){t.preventDefault(),!e(this,ot)&&(e(this,V)?this.close():this.open())},u(vs,"getDefaultOptions",()=>To),S({class:vs,name:"Fab",dataDetection:!0,autoInit:{enabled:!0,selector:".fab:not(i)"}});var mr="";const Io={animationDuration:400,overlayClass:"grey dark-4",offset:150,mobileOffset:80,caption:""};class ms extends N{constructor(t,i,n){super();o(this,Di);o(this,Ti);o(this,Ii);o(this,Ai);o(this,Ci);o(this,Si);u(this,"options");o(this,Bt,void 0);o(this,B,void 0);o(this,A,void 0);o(this,ue,void 0);o(this,fe,void 0);o(this,_,0);o(this,Z,0);o(this,ze,0);o(this,Be,0);o(this,vt,0);o(this,mt,0);o(this,Nt,!1);o(this,nt,!1);o(this,ve,!1);o(this,rt,void 0);try{this.preventDbInstance(t),y.push({type:"Lightbox",instance:this}),this.el=document.querySelector(t),this.options=T("Lightbox",i,this.el,n),this.setup()}catch(a){console.error("[Axentix] Lightbox init error",a)}}setup(){d(this.el,"lightbox.setup"),this.el.style.transitionDuration=this.options.animationDuration+"ms",s(this,rt,as([this.el])),this.setupListeners()}setupListeners(){s(this,Bt,this.open.bind(this)),this.el.addEventListener("click",e(this,Bt)),s(this,B,this.close.bind(this)),window.addEventListener("keyup",e(this,B)),window.addEventListener("scroll",e(this,B)),window.addEventListener("resize",e(this,B))}removeListeners(){this.el.removeEventListener("click",e(this,Bt)),window.removeEventListener("keyup",e(this,B)),window.removeEventListener("scroll",e(this,B)),window.removeEventListener("resize",e(this,B)),s(this,Bt,void 0),s(this,B,void 0)}open(){if(e(this,Nt))return this.close();if(e(this,nt))return;h(this,Ci,An).call(this);const t=window.innerHeight/2,i=window.innerWidth/2,n=this.el.getBoundingClientRect(),a=this.el.getBoundingClientRect();s(this,_,n.width),this.el.style.width=e(this,_)+"px",s(this,Z,n.height),this.el.style.height=e(this,Z)+"px",this.el.style.top="0",this.el.style.left="0",s(this,ze,t+window.scrollY-(a.top+window.scrollY)),s(this,Be,i+window.scrollX-(a.left+window.scrollX)),h(this,Ai,In).call(this),e(this,rt).style.position="relative",h(this,Di,En).call(this),setTimeout(()=>{d(this.el,"lightbox.open"),s(this,nt,!0),this.el.classList.add("active"),this.el.classList.contains("responsive-media")?(this.el.classList.remove("responsive-media"),s(this,ve,!0)):s(this,ve,!1),s(this,Nt,!0),h(this,Ti,Dn).call(this),e(this,rt).style.width=e(this,_)+"px",e(this,rt).style.height=e(this,Z)+"px",this.el.style.width=e(this,mt)+"px",this.el.style.height=e(this,vt)+"px",this.el.style.top=e(this,ze)-e(this,vt)/2+"px",this.el.style.left=e(this,Be)-e(this,mt)/2+"px",s(this,nt,!1)},50),setTimeout(()=>{d(this.el,"lightbox.opened")},this.options.animationDuration+50)}close(t){!e(this,Nt)||t&&t.key&&t.key!=="Escape"||e(this,nt)||(s(this,nt,!0),this.el.style.top="0",this.el.style.left="0",this.el.style.width=e(this,_)+"px",this.el.style.height=e(this,Z)+"px",h(this,Ii,Tn).call(this),d(this.el,"lightbox.close"),setTimeout(()=>{this.el.classList.remove("active"),e(this,ve)&&this.el.classList.add("responsive-media"),e(this,rt).removeAttribute("style"),this.el.style.left="",this.el.style.top="",this.el.style.width="",this.el.style.height="",this.el.style.transform="",h(this,Si,Cn).call(this),s(this,Nt,!1),s(this,nt,!1),d(this.el,"lightbox.closed")},this.options.animationDuration+50))}}Bt=new WeakMap,B=new WeakMap,A=new WeakMap,ue=new WeakMap,fe=new WeakMap,_=new WeakMap,Z=new WeakMap,ze=new WeakMap,Be=new WeakMap,vt=new WeakMap,mt=new WeakMap,Nt=new WeakMap,nt=new WeakMap,ve=new WeakMap,rt=new WeakMap,Di=new WeakSet,En=function(){if(s(this,A,document.createElement("div")),e(this,A).style.transitionDuration=this.options.animationDuration+"ms",e(this,A).className="lightbox-overlay "+this.options.overlayClass,e(this,rt).appendChild(e(this,A)),this.options.caption){const t=document.createElement("p");t.className="lightbox-caption",t.innerHTML=this.options.caption,e(this,A).appendChild(t)}s(this,ue,this.close.bind(this)),e(this,A).addEventListener("click",e(this,ue))},Ti=new WeakSet,Dn=function(){e(this,A).style.opacity="1"},Ii=new WeakSet,Tn=function(){e(this,A).style.opacity="0",e(this,A).removeEventListener("click",e(this,ue)),setTimeout(()=>{e(this,A).remove()},this.options.animationDuration)},Ai=new WeakSet,In=function(){const t=window.innerWidth>=960?this.options.offset:this.options.mobileOffset;window.innerWidth/window.innerHeight>=e(this,_)/e(this,Z)?(s(this,vt,window.innerHeight-t),s(this,mt,e(this,vt)*e(this,_)/e(this,Z))):(s(this,mt,window.innerWidth-t),s(this,vt,e(this,mt)*e(this,Z)/e(this,_)))},Ci=new WeakSet,An=function(){s(this,fe,[]);for(let t=this.el;t&&t!==document;t=t.parentNode){const i=window.getComputedStyle(t);(i.overflow==="hidden"||i.overflowX==="hidden"||i.overflowY==="hidden")&&(e(this,fe).push(t),t.style.setProperty("overflow","visible","important"),document.body.style.overflowX="hidden")}},Si=new WeakSet,Cn=function(){e(this,fe).forEach(t=>t.style.overflow=""),document.body.style.overflowX=""},u(ms,"getDefaultOptions",()=>Io),S({class:ms,name:"Lightbox",dataDetection:!0,autoInit:{enabled:!0,selector:".lightbox"}});var yr="";const Ao={overlay:!0,bodyScrolling:!1,animationDuration:400};class ys extends N{constructor(t,i,n){super();o(this,Ne);o(this,Ri);o(this,ki);u(this,"options");u(this,"overlayElement");o(this,me,void 0);o(this,G,!1);o(this,at,!1);o(this,ht,void 0);try{this.preventDbInstance(t),y.push({type:"Modal",instance:this}),this.el=document.querySelector(t),this.options=T("Modal",i,this.el,n),this.setup()}catch(a){console.error("[Axentix] Modal init error",a)}}setup(){d(this.el,"modal.setup"),s(this,me,document.querySelectorAll(".modal-trigger")),s(this,G,!!this.el.classList.contains("active")),s(this,at,!1),this.setupListeners(),this.options.overlay&&(this.overlayElement=cs(e(this,G),this.options.overlay,this.el.id,this.options.animationDuration)),this.el.style.transitionDuration=this.options.animationDuration+"ms",this.el.style.animationDuration=this.options.animationDuration+"ms"}setupListeners(){s(this,ht,h(this,ki,Rn).bind(this)),e(this,me).forEach(t=>{t.dataset.target===this.el.id&&t.addEventListener("click",e(this,ht))})}removeListeners(){e(this,me).forEach(t=>{t.dataset.target===this.el.id&&t.removeEventListener("click",e(this,ht))}),s(this,ht,void 0)}open(){e(this,G)||(d(this.el,"modal.open"),s(this,G,!0),s(this,at,!0),h(this,Ri,Sn).call(this),this.el.style.display="block",Ie(this.options.overlay,this.overlayElement,e(this,ht),!0,this.options.animationDuration),h(this,Ne,js).call(this,!1),setTimeout(()=>{this.el.classList.add("active")},50),setTimeout(()=>{s(this,at,!1),d(this.el,"modal.opened")},this.options.animationDuration))}close(){!e(this,G)||(d(this.el,"modal.close"),s(this,at,!0),this.el.classList.remove("active"),Ie(this.options.overlay,this.overlayElement,e(this,ht),!1,this.options.animationDuration),setTimeout(()=>{this.el.style.display="",s(this,at,!1),s(this,G,!1),h(this,Ne,js).call(this,!0),d(this.el,"modal.closed")},this.options.animationDuration))}}me=new WeakMap,G=new WeakMap,at=new WeakMap,ht=new WeakMap,Ne=new WeakSet,js=function(t){this.options.bodyScrolling||(document.body.style.overflow=t?"":"hidden")},Ri=new WeakSet,Sn=function(){const t=document.querySelectorAll(".modal.active").length+1;this.options.overlay&&(this.overlayElement.style.zIndex=String(800+t*10-2)),this.el.style.zIndex=String(800+t*10)},ki=new WeakSet,Rn=function(t){t.preventDefault(),!e(this,at)&&(e(this,G)?this.close():this.open())},u(ys,"getDefaultOptions",()=>Ao),S({class:ys,name:"Modal",dataDetection:!0,autoInit:{enabled:!0,selector:".modal"}});var gr="";const Co={animationDuration:300,animationType:"none",disableActiveBar:!1,caroulix:{animationDuration:300,backToOpposite:!1,enableTouch:!1,autoplay:{enabled:!1}}};class gs extends N{constructor(t,i,n){super();o(this,Oi);o(this,$i);o(this,Mi);o(this,Pi);o(this,qi);o(this,Xe);o(this,Ye);o(this,Hi);o(this,Wi);o(this,zi);o(this,Bi);o(this,Ni);u(this,"options");o(this,O,void 0);o(this,L,void 0);o(this,$,void 0);o(this,x,0);o(this,ye,void 0);o(this,ge,void 0);o(this,Xt,void 0);o(this,Yt,void 0);o(this,Ft,void 0);o(this,yt,void 0);o(this,Ut,void 0);o(this,j,void 0);o(this,Vt,void 0);o(this,be,!1);o(this,_t,void 0);o(this,M,!1);try{this.preventDbInstance(t),y.push({type:"Tab",instance:this}),this.el=document.querySelector(t),this.options=T("Tab",i,this.el,n),this.setup()}catch(a){console.error("[Axentix] Tab init error",a)}}setup(){d(this.el,"tab.setup"),["none","slide"].includes(this.options.animationType)||(this.options.animationType="none"),s(this,M,!1),s(this,O,this.el.querySelector(".tab-arrow")),s(this,L,this.el.querySelectorAll(".tab-menu .tab-link")),s(this,$,this.el.querySelector(".tab-menu")),s(this,x,0),s(this,j,h(this,Mi,$n).call(this)),e(this,O)&&(h(this,Ye,Ks).call(this),s(this,ye,this.el.querySelector(".tab-arrow .tab-prev")),s(this,ge,this.el.querySelector(".tab-arrow .tab-next"))),this.setupListeners(),e(this,$).style.transitionDuration=this.options.animationDuration+"ms",this.options.animationType==="slide"?h(this,qi,Pn).call(this):this.updateActiveElement()}setupListeners(){e(this,L).forEach(t=>{t.listenerRef=h(this,zi,Wn).bind(this,t),t.addEventListener("click",t.listenerRef)}),s(this,Ut,h(this,Oi,kn).bind(this)),window.addEventListener("resize",e(this,Ut)),e(this,O)&&(s(this,Ft,h(this,Ye,Ks).bind(this)),window.addEventListener("resize",e(this,Ft)),s(this,Xt,h(this,Hi,qn).bind(this)),s(this,Yt,h(this,Wi,Hn).bind(this)),e(this,ye).addEventListener("click",e(this,Xt)),e(this,ge).addEventListener("click",e(this,Yt)))}removeListeners(){e(this,L).forEach(t=>{t.removeEventListener("click",t.listenerRef),t.listenerRef=void 0}),window.removeEventListener("resize",e(this,Ut)),s(this,Ut,void 0),e(this,O)&&(window.removeEventListener("resize",e(this,Ft)),s(this,Ft,void 0),e(this,ye).removeEventListener("click",e(this,Xt)),e(this,ge).removeEventListener("click",e(this,Yt)),s(this,Xt,void 0),s(this,Yt,void 0)),e(this,yt)&&(this.el.removeEventListener("ax.caroulix.slide",e(this,yt)),s(this,yt,void 0))}select(t){if(e(this,M))return;s(this,M,!0);const i=this.el.querySelector('.tab-menu a[href="#'+t+'"]');if(s(this,x,Array.from(e(this,L)).findIndex(n=>n.children[0]===i)),d(i,"tab.select",{currentIndex:e(this,x)}),h(this,Xe,Js).call(this,i.parentElement),e(this,be)){e(this,j).forEach(a=>a.id===t?a.classList.add("active"):"");const n=bt("Caroulix");s(this,_t,new n("#"+e(this,Vt).id,this.options.caroulix,this.el,!0)),s(this,yt,h(this,$i,On).bind(this)),this.el.addEventListener("ax.caroulix.slide",e(this,yt)),s(this,be,!1),s(this,M,!1);return}if(this.options.animationType==="slide"){const n=e(this,j).findIndex(a=>a.id===t);e(this,_t).goTo(n),setTimeout(()=>{s(this,M,!1)},this.options.animationDuration)}else h(this,Pi,Mn).call(this),e(this,j).forEach(n=>{n.id===t&&(n.style.display="block")}),s(this,M,!1)}updateActiveElement(){let t;e(this,L).forEach((n,a)=>{n.classList.contains("active")&&(t=n,s(this,x,a))}),t||(t=e(this,L).item(0),s(this,x,0));const i=t.children[0].getAttribute("href");this.select(i.split("#")[1])}prev(t=1){if(e(this,M))return;const i=h(this,Bi,zn).call(this,t);s(this,x,i),d(this.el,"tab.prev",{step:t});const n=e(this,L)[i].children[0].getAttribute("href");this.select(n.split("#")[1])}next(t=1){if(e(this,M))return;const i=h(this,Ni,Bn).call(this,t);s(this,x,i),d(this.el,"tab.next",{step:t});const n=e(this,L)[i].children[0].getAttribute("href");this.select(n.split("#")[1])}}O=new WeakMap,L=new WeakMap,$=new WeakMap,x=new WeakMap,ye=new WeakMap,ge=new WeakMap,Xt=new WeakMap,Yt=new WeakMap,Ft=new WeakMap,yt=new WeakMap,Ut=new WeakMap,j=new WeakMap,Vt=new WeakMap,be=new WeakMap,_t=new WeakMap,M=new WeakMap,Oi=new WeakSet,kn=function(){this.updateActiveElement();for(let t=100;t<500;t+=100)setTimeout(()=>{this.updateActiveElement()},t)},$i=new WeakSet,On=function(){e(this,x)!==e(this,_t).activeIndex&&(s(this,x,e(this,_t).activeIndex),h(this,Xe,Js).call(this,e(this,L)[e(this,x)]))},Mi=new WeakSet,$n=function(){return Array.from(e(this,L)).map(t=>{const i=t.children[0].getAttribute("href");return this.el.querySelector(i)})},Pi=new WeakSet,Mn=function(){e(this,j).forEach(t=>t.style.display="none")},qi=new WeakSet,Pn=function(){e(this,j).forEach(i=>i.classList.add("caroulix-item")),s(this,Vt,as(e(this,j))),e(this,Vt).classList.add("caroulix");const t=Math.random().toString().split(".")[1];e(this,Vt).id="tab-caroulix-"+t,s(this,be,!0),this.options.animationDuration!==300&&(this.options.caroulix.animationDuration=this.options.animationDuration),this.updateActiveElement()},Xe=new WeakSet,Js=function(t){if(e(this,L).forEach(i=>i.classList.remove("active")),!this.options.disableActiveBar){const i=t.getBoundingClientRect(),n=i.left,a=e(this,$).getBoundingClientRect().left,c=n-a+e(this,$).scrollLeft,f=i.width,m=e(this,$).clientWidth-c-f;e(this,$).style.setProperty(q("tab-bar-left-offset"),Math.floor(c)+"px"),e(this,$).style.setProperty(q("tab-bar-right-offset"),Math.ceil(m)+"px")}t.classList.add("active")},Ye=new WeakSet,Ks=function(){const t=Array.from(e(this,L)).reduce((n,a)=>(n+=a.clientWidth,n),0),i=e(this,O).clientWidth;t>i?e(this,O).classList.contains("tab-arrow-show")||e(this,O).classList.add("tab-arrow-show"):e(this,O).classList.contains("tab-arrow-show")&&e(this,O).classList.remove("tab-arrow-show")},Hi=new WeakSet,qn=function(t){t.preventDefault(),e(this,$).scrollLeft-=40},Wi=new WeakSet,Hn=function(t){t.preventDefault(),e(this,$).scrollLeft+=40},zi=new WeakSet,Wn=function(t,i){if(i.preventDefault(),e(this,M)||t.classList.contains("active"))return;const n=t.children[0].getAttribute("href");this.select(n.split("#")[1])},Bi=new WeakSet,zn=function(t){let i=0,n=e(this,x);for(let a=0;a<t;a++)n>0?(i=n-1,n--):(n=e(this,L).length-1,i=n);return i},Ni=new WeakSet,Bn=function(t){let i=0,n=e(this,x);for(let a=0;a<t;a++)n<e(this,L).length-1?(i=n+1,n++):(n=0,i=n);return i},u(gs,"getDefaultOptions",()=>Co),S({class:gs,name:"Tab",dataDetection:!0,autoInit:{enabled:!0,selector:".tab"}});const So={offset:200,linkSelector:"a",classes:"active",auto:{enabled:!1,classes:"",selector:""}};class bs extends N{constructor(t,i,n){super();o(this,Xi);o(this,Yi);o(this,Fi);o(this,Ui);o(this,Vi);o(this,Fe);u(this,"options");o(this,gt,void 0);o(this,lt,void 0);o(this,Zt,void 0);o(this,J,void 0);try{this.preventDbInstance(t),y.push({type:"ScrollSpy",instance:this}),this.el=document.querySelector(t),this.options=T("ScrollSpy",i,this.el,n),this.setup()}catch(a){console.error("[Axentix] ScrollSpy init error",a)}}setup(){d(this.el,"scrollspy.setup"),this.options.auto.enabled?h(this,Yi,Xn).call(this):h(this,Xi,Nn).call(this),typeof this.options.classes=="string"&&(this.options.classes=this.options.classes.split(" ")),s(this,gt,""),this.setupListeners(),h(this,Fe,Qs).call(this)}setupListeners(){s(this,lt,h(this,Fe,Qs).bind(this)),window.addEventListener("scroll",e(this,lt)),window.addEventListener("resize",e(this,lt))}removeListeners(){window.removeEventListener("scroll",e(this,lt)),window.removeEventListener("resize",e(this,lt)),s(this,lt,void 0)}}gt=new WeakMap,lt=new WeakMap,Zt=new WeakMap,J=new WeakMap,Xi=new WeakSet,Nn=function(){s(this,Zt,Array.from(this.el.querySelectorAll(this.options.linkSelector))),s(this,J,e(this,Zt).map(t=>document.querySelector(t.getAttribute("href"))))},Yi=new WeakSet,Xn=function(){s(this,J,Array.from(document.querySelectorAll(this.options.auto.selector))),s(this,Zt,e(this,J).map(t=>{const i=document.createElement("a");return i.className=this.options.auto.classes,i.setAttribute("href","#"+t.id),i.innerHTML=t.innerHTML,this.el.appendChild(i),i}))},Fi=new WeakSet,Yn=function(){const t=window.scrollY,i=window.scrollX,n=window.innerWidth,a=window.innerHeight,c=t+this.options.offset;return a+t>=document.body.offsetHeight-2?e(this,J)[e(this,J).length-1]:e(this,J).find(f=>{const m=f.getBoundingClientRect();return m.top+t>=t&&m.left+i>=i&&m.right<=n&&m.bottom<=a&&m.top+t<=c})},Ui=new WeakSet,Fn=function(){!e(this,gt)||this.options.classes.forEach(t=>e(this,gt).classList.remove(t))},Vi=new WeakSet,Un=function(){const t=window.scrollY;return e(this,J).reduce((i,n)=>{const a=n.getBoundingClientRect().top+t,c=i.getBoundingClientRect().top+t;return a>t+this.options.offset?i:Math.abs(a-t)<Math.abs(c-t)?n:i})},Fe=new WeakSet,Qs=function(){let t=h(this,Fi,Yn).call(this);t||(t=h(this,Vi,Un).call(this));const i=e(this,Zt).find(n=>n.getAttribute("href").split("#")[1]===t.id);i!==e(this,gt)&&(d(this.el,"scrollspy.update"),h(this,Ui,Fn).call(this),this.options.classes.forEach(n=>i.classList.add(n)),s(this,gt,i))},u(bs,"getDefaultOptions",()=>So),S({class:bs,name:"ScrollSpy",dataDetection:!0,autoInit:{enabled:!0,selector:".scrollspy"}});var br="";const Ro={animationDuration:400,duration:4e3,classes:"",position:"right",direction:"top",mobileDirection:"bottom",offset:{x:"5%",y:"0%",mobileX:"10%",mobileY:"0%"},isClosable:!1,closableContent:"x",loading:{enabled:!0,border:"2px solid #E2E2E2"}};class Ls{constructor(t,i){o(this,_i);o(this,Zi);o(this,Gi);o(this,ji);o(this,Ji);o(this,Ki);o(this,Ue);u(this,"options");u(this,"id");o(this,Le,void 0);o(this,K,void 0);if(De("Toast").length>0){console.error("[Axentix] Toast: Don't try to create multiple toast instances");return}y.push({type:"Toast",instance:this}),this.id=Math.random().toString().split(".")[1],s(this,Le,t),this.options=T("Toast",i,"",!0),this.options.position=this.options.position.toLowerCase(),this.options.direction=this.options.direction.toLowerCase(),this.options.mobileDirection=this.options.mobileDirection.toLowerCase(),s(this,K,{})}destroy(){const t=y.findIndex(i=>i.instance.id===this.id);y.splice(t,1)}show(){try{Object.keys(e(this,K)).includes(this.options.position)||h(this,_i,Vn).call(this),h(this,Ki,Jn).call(this)}catch(t){console.error("[Axentix] Toast error",t)}}change(t,i){s(this,Le,t),this.options=Ge(this.options,i)}}Le=new WeakMap,K=new WeakMap,_i=new WeakSet,Vn=function(){let t=document.createElement("div");["right","left"].includes(this.options.position)||(this.options.position="right"),this.options.position==="right"?t.style.right=this.options.offset.x:t.style.left=this.options.offset.x;const n=["bottom","top"];n.includes(this.options.direction)||(this.options.direction="top"),this.options.direction==="top"?t.style.top=this.options.offset.y:t.style.bottom=this.options.offset.y,n.includes(this.options.mobileDirection)||(this.options.mobileDirection="bottom"),t.style.setProperty(q("toaster-m-width"),100-this.options.offset.mobileX.slice(0,-1)+"%"),t.style.setProperty(q("toaster-m-offset"),this.options.offset.mobileY),this.options.loading.enabled&&t.style.setProperty(q("toast-loading-border"),this.options.loading.border),t.className=`toaster toaster-${this.options.position} toast-${this.options.direction} toaster-m-${this.options.mobileDirection}`,e(this,K)[this.options.position]=t,document.body.appendChild(t)},Zi=new WeakSet,_n=function(){for(const t in e(this,K)){let i=e(this,K)[t];i.childElementCount<=0&&(i.remove(),delete e(this,K)[t])}},Gi=new WeakSet,Zn=function(t){setTimeout(()=>{d(t,"toast.show"),this.options.loading.enabled&&(t.classList.add("toast-loading"),t.style.setProperty(q("toast-loading-duration"),this.options.duration+"ms")),t.classList.add("toast-animated"),setTimeout(()=>{d(t,"toast.shown"),this.options.loading.enabled&&t.classList.add("toast-load")},this.options.animationDuration)},50)},ji=new WeakSet,Gn=function(t){setTimeout(()=>{d(t,"toast.hide"),h(this,Ue,to).call(this,t)},this.options.duration+this.options.animationDuration)},Ji=new WeakSet,jn=function(t){t.style.transitionTimingFunction="cubic-bezier(0.445, 0.05, 0.55, 0.95)",t.style.paddingTop="0",t.style.paddingBottom="0",t.style.margin="0",t.style.height="0"},Ki=new WeakSet,Jn=function(){let t=document.createElement("div");if(t.className="toast shadow-1 "+this.options.classes,t.innerHTML=e(this,Le),t.style.transitionDuration=this.options.animationDuration+"ms",this.options.isClosable){let n=document.createElement("div");n.className="toast-trigger",n.innerHTML=this.options.closableContent,n.listenerRef=h(this,Ue,to).bind(this,t,n),n.addEventListener("click",n.listenerRef),t.appendChild(n)}h(this,Gi,Zn).call(this,t),e(this,K)[this.options.position].appendChild(t),h(this,ji,Gn).call(this,t);const i=t.clientHeight;t.style.height=i+"px"},Ue=new WeakSet,to=function(t,i,n){if(t.isAnimated)return;let a=1;n&&(n.preventDefault(),a=0,this.options.isClosable&&i.removeEventListener("click",i.listenerRef)),t.style.opacity="0",t.isAnimated=!0;const c=a*this.options.animationDuration+this.options.animationDuration;setTimeout(()=>{h(this,Ji,jn).call(this,t)},c/2),setTimeout(()=>{t.remove(),d(t,"toast.remove"),h(this,Zi,_n).call(this)},c*1.45)},u(Ls,"getDefaultOptions",()=>Ro),S({class:Ls,name:"Toast"});var Lr="";const ko={content:"",animationDelay:0,offset:"10px",animationDuration:200,classes:"grey dark-4 light-shadow-2 p-2",position:"top"};class ws extends N{constructor(t,i,n){super();o(this,Ve);o(this,Qi);o(this,ts);o(this,es);o(this,is);u(this,"options");o(this,v,void 0);o(this,we,void 0);o(this,Gt,void 0);o(this,jt,void 0);o(this,Jt,void 0);o(this,D,void 0);o(this,ct,void 0);try{this.preventDbInstance(t),y.push({type:"Tooltip",instance:this}),this.el=document.querySelector(t),this.options=T("Tooltip",i,this.el,n),this.setup()}catch(a){console.error("[Axentix] Tooltip init error",a)}}setup(){if(!this.options.content)return console.error(`Tooltip #${this.el.id} : empty content.`);d(this.el,"tooltip.setup"),this.options.position=this.options.position.toLowerCase(),document.querySelectorAll(".tooltip").forEach(i=>{i.dataset.tooltipId&&i.dataset.tooltipId===this.el.id&&s(this,v,i)}),e(this,v)||s(this,v,document.createElement("div")),e(this,v).dataset.tooltipId!==this.el.id&&(e(this,v).dataset.tooltipId=this.el.id),h(this,Ve,eo).call(this),document.body.appendChild(e(this,v)),s(this,we,["right","left","top","bottom"]),e(this,we).includes(this.options.position)||(this.options.position="top"),this.setupListeners(),this.updatePosition()}setupListeners(){s(this,Gt,h(this,es,tr).bind(this)),s(this,jt,h(this,is,er).bind(this)),s(this,Jt,this.updatePosition.bind(this)),this.el.addEventListener("mouseenter",e(this,Gt)),this.el.addEventListener("mouseleave",e(this,jt)),window.addEventListener("resize",e(this,Jt))}removeListeners(){this.el.removeEventListener("mouseenter",e(this,Gt)),this.el.removeEventListener("mouseleave",e(this,jt)),window.removeEventListener("resize",e(this,Jt)),s(this,Gt,void 0),s(this,jt,void 0),s(this,Jt,void 0)}updatePosition(){s(this,D,this.el.getBoundingClientRect()),h(this,Qi,Kn).call(this),s(this,ct,e(this,v).getBoundingClientRect()),h(this,ts,Qn).call(this)}show(){this.updatePosition(),setTimeout(()=>{d(this.el,"tooltip.show");const t=this.options.position=="top"||this.options.position=="left"?"-":"",i=this.options.position=="top"||this.options.position=="bottom"?"Y":"X";e(this,v).style.transform=`translate${i}(${t}${this.options.offset})`,e(this,v).style.opacity="1"},this.options.animationDelay)}hide(){d(this.el,"tooltip.hide"),e(this,v).style.transform="translate(0)",e(this,v).style.opacity="0"}change(t){this.options=T("Tooltip",t,this.el,!0),e(this,we).includes(this.options.position)||(this.options.position="top"),h(this,Ve,eo).call(this),this.updatePosition()}}v=new WeakMap,we=new WeakMap,Gt=new WeakMap,jt=new WeakMap,Jt=new WeakMap,D=new WeakMap,ct=new WeakMap,Ve=new WeakSet,eo=function(){e(this,v).style.transform="translate(0)",e(this,v).style.opacity="0",e(this,v).className="tooltip "+this.options.classes,e(this,v).style.transitionDuration=this.options.animationDuration+"ms",e(this,v).innerHTML=this.options.content},Qi=new WeakSet,Kn=function(){if(this.options.position=="top"||this.options.position=="bottom"){const i=this.options.position==="top"?e(this,D).top:e(this,D).top+e(this,D).height;e(this,v).style.top=i+"px"}else this.options.position=="right"&&(e(this,v).style.left=e(this,D).left+e(this,D).width+"px")},ts=new WeakSet,Qn=function(){this.options.position=="top"||this.options.position=="bottom"?e(this,v).style.left=e(this,D).left+e(this,D).width/2-e(this,ct).width/2+"px":e(this,v).style.top=e(this,D).top+e(this,D).height/2-e(this,ct).height/2+"px",this.options.position=="top"?e(this,v).style.top=e(this,ct).top-e(this,ct).height+"px":this.options.position=="left"&&(e(this,v).style.left=e(this,D).left-e(this,ct).width+"px");const i=window.scrollY,n=parseFloat(e(this,v).style.top);this.options.position==="top"?e(this,v).style.top=i*2+n+"px":e(this,v).style.top=i+n+"px"},es=new WeakSet,tr=function(t){t.preventDefault(),this.show()},is=new WeakSet,er=function(t){t.preventDefault(),this.hide()},u(ws,"getDefaultOptions",()=>ko),S({class:ws,name:"Tooltip",dataDetection:!0});var wr="";let je="";const I=C.prefix,xs={},Es={},Oo=r=>{const t=ls(),i=document.createElement("div"),n=document.createElement("div"),a=r.tagName.toLowerCase();return r.setAttribute(`${I}-waves-id`,t),n.classList.add(`${I}-waves-item-inner`),n.setAttribute(`${I}-waves-id`,t),i.classList.add(`${I}-waves-box`),i.setAttribute(`${I}-waves-id`,t),i.appendChild(n),xs[t]=r,Es[t]=i,["img","video"].includes(a)?r.parentNode.appendChild(i):r.appendChild(i),i},$o=({id:r,size:t,x:i,y:n,container:a,item:c,target:f},m)=>{const E=document.createElement("span");let P=`height:${t}px;
width:${t}px;

@@ -4,0 +4,0 @@ left:${i}px;

{
"name": "axentix",
"version": "2.0.0-beta.3",
"version": "2.0.0-beta.4",
"description": "Axentix is an open source Framework based on CSS Grid using HTML, CSS and JS. The easy layout control and grid system makes it one of the most easy to learn framework.",

@@ -45,8 +45,8 @@ "homepage": "https://useaxentix.com",

"devDependencies": {
"sass": "^1.43.4",
"typescript": "^4.4.4",
"vite": "^2.6.13",
"autoprefixer": "^10.4.0",
"sass": "^1.45.0",
"typescript": "^4.5.4",
"vite": "^2.7.2",
"vite-plugin-mpa": "^1.1.1"
},
"dependencies": {}
}
}

@@ -17,3 +17,3 @@ <p align="center">

<br/>
Find the LTS version on the <a href="https://github.com/axentix/axentix/tree/develop">v1 branch</a>.
Find the LTS version on the <a href="https://github.com/axentix/axentix/tree/v1">v1 branch</a>.
</h3>

@@ -20,0 +20,0 @@

@@ -88,3 +88,3 @@ import { AxentixComponent, Component } from '../../utils/component';

if (this.options.overlay) this.overlayElement.style.zIndex = String(800 + totalModals * 6);
if (this.options.overlay) this.overlayElement.style.zIndex = String(800 + totalModals * 10 - 2);
this.el.style.zIndex = String(800 + totalModals * 10);

@@ -91,0 +91,0 @@ }

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc