UNPKG

preline

Version:

Preline UI is an open-source set of prebuilt UI components based on the utility-first Tailwind CSS framework.

25 lines 208 kB
var t={316:(t,e,i)=>{function s(t){if(null==t)return window;if("[object Window]"!==t.toString()){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function n(t){return t instanceof s(t).Element||t instanceof Element}function o(t){return t instanceof s(t).HTMLElement||t instanceof HTMLElement}function l(t){return"undefined"!=typeof ShadowRoot&&(t instanceof s(t).ShadowRoot||t instanceof ShadowRoot)}i.d(e,{n4:()=>vt});var a=Math.max,r=Math.min,d=Math.round;function h(){var t=navigator.userAgentData;return null!=t&&t.brands&&Array.isArray(t.brands)?t.brands.map((function(t){return t.brand+"/"+t.version})).join(" "):navigator.userAgent}function c(){return!/^((?!chrome|android).)*safari/i.test(h())}function u(t,e,i){void 0===e&&(e=!1),void 0===i&&(i=!1);var l=t.getBoundingClientRect(),a=1,r=1;e&&o(t)&&(a=t.offsetWidth>0&&d(l.width)/t.offsetWidth||1,r=t.offsetHeight>0&&d(l.height)/t.offsetHeight||1);var h=(n(t)?s(t):window).visualViewport,u=!c()&&i,p=(l.left+(u&&h?h.offsetLeft:0))/a,m=(l.top+(u&&h?h.offsetTop:0))/r,g=l.width/a,v=l.height/r;return{width:g,height:v,top:m,right:p+g,bottom:m+v,left:p,x:p,y:m}}function p(t){var e=s(t);return{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function m(t){return t?(t.nodeName||"").toLowerCase():null}function g(t){return((n(t)?t.ownerDocument:t.document)||window.document).documentElement}function v(t){return u(g(t)).left+p(t).scrollLeft}function f(t){return s(t).getComputedStyle(t)}function y(t){var e=f(t),i=e.overflow,s=e.overflowX,n=e.overflowY;return/auto|scroll|overlay|hidden/.test(i+n+s)}function w(t,e,i){void 0===i&&(i=!1);var n,l,a=o(e),r=o(e)&&function(t){var e=t.getBoundingClientRect(),i=d(e.width)/t.offsetWidth||1,s=d(e.height)/t.offsetHeight||1;return 1!==i||1!==s}(e),h=g(e),c=u(t,r,i),f={scrollLeft:0,scrollTop:0},w={x:0,y:0};return(a||!a&&!i)&&(("body"!==m(e)||y(h))&&(f=(n=e)!==s(n)&&o(n)?{scrollLeft:(l=n).scrollLeft,scrollTop:l.scrollTop}:p(n)),o(e)?((w=u(e,!0)).x+=e.clientLeft,w.y+=e.clientTop):h&&(w.x=v(h))),{x:c.left+f.scrollLeft-w.x,y:c.top+f.scrollTop-w.y,width:c.width,height:c.height}}function b(t){var e=u(t),i=t.offsetWidth,s=t.offsetHeight;return Math.abs(e.width-i)<=1&&(i=e.width),Math.abs(e.height-s)<=1&&(s=e.height),{x:t.offsetLeft,y:t.offsetTop,width:i,height:s}}function C(t){return"html"===m(t)?t:t.assignedSlot||t.parentNode||(l(t)?t.host:null)||g(t)}function S(t){return["html","body","#document"].indexOf(m(t))>=0?t.ownerDocument.body:o(t)&&y(t)?t:S(C(t))}function x(t,e){var i;void 0===e&&(e=[]);var n=S(t),o=n===(null==(i=t.ownerDocument)?void 0:i.body),l=s(n),a=o?[l].concat(l.visualViewport||[],y(n)?n:[]):n,r=e.concat(a);return o?r:r.concat(x(C(a)))}function I(t){return["table","td","th"].indexOf(m(t))>=0}function A(t){return o(t)&&"fixed"!==f(t).position?t.offsetParent:null}function L(t){for(var e=s(t),i=A(t);i&&I(i)&&"static"===f(i).position;)i=A(i);return i&&("html"===m(i)||"body"===m(i)&&"static"===f(i).position)?e:i||function(t){var e=/firefox/i.test(h());if(/Trident/i.test(h())&&o(t)&&"fixed"===f(t).position)return null;var i=C(t);for(l(i)&&(i=i.host);o(i)&&["html","body"].indexOf(m(i))<0;){var s=f(i);if("none"!==s.transform||"none"!==s.perspective||"paint"===s.contain||-1!==["transform","perspective"].indexOf(s.willChange)||e&&"filter"===s.willChange||e&&s.filter&&"none"!==s.filter)return i;i=i.parentNode}return null}(t)||e}var T="top",E="bottom",k="right",O="left",$="auto",P=[T,E,k,O],D="start",q="end",B="clippingParents",H="viewport",N="popper",M="reference",V=P.reduce((function(t,e){return t.concat([e+"-"+D,e+"-"+q])}),[]),R=[].concat(P,[$]).reduce((function(t,e){return t.concat([e,e+"-"+D,e+"-"+q])}),[]),F=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function j(t){var e=new Map,i=new Set,s=[];function n(t){i.add(t.name),[].concat(t.requires||[],t.requiresIfExists||[]).forEach((function(t){if(!i.has(t)){var s=e.get(t);s&&n(s)}})),s.push(t)}return t.forEach((function(t){e.set(t.name,t)})),t.forEach((function(t){i.has(t.name)||n(t)})),s}var W={placement:"bottom",modifiers:[],strategy:"absolute"};function U(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return!e.some((function(t){return!(t&&"function"==typeof t.getBoundingClientRect)}))}function z(t){void 0===t&&(t={});var e=t,i=e.defaultModifiers,s=void 0===i?[]:i,o=e.defaultOptions,l=void 0===o?W:o;return function(t,e,i){void 0===i&&(i=l);var o,a,r={placement:"bottom",orderedModifiers:[],options:Object.assign({},W,l),modifiersData:{},elements:{reference:t,popper:e},attributes:{},styles:{}},d=[],h=!1,c={state:r,setOptions:function(i){var o="function"==typeof i?i(r.options):i;u(),r.options=Object.assign({},l,r.options,o),r.scrollParents={reference:n(t)?x(t):t.contextElement?x(t.contextElement):[],popper:x(e)};var a,h,p=function(t){var e=j(t);return F.reduce((function(t,i){return t.concat(e.filter((function(t){return t.phase===i})))}),[])}((a=[].concat(s,r.options.modifiers),h=a.reduce((function(t,e){var i=t[e.name];return t[e.name]=i?Object.assign({},i,e,{options:Object.assign({},i.options,e.options),data:Object.assign({},i.data,e.data)}):e,t}),{}),Object.keys(h).map((function(t){return h[t]}))));return r.orderedModifiers=p.filter((function(t){return t.enabled})),r.orderedModifiers.forEach((function(t){var e=t.name,i=t.options,s=void 0===i?{}:i,n=t.effect;if("function"==typeof n){var o=n({state:r,name:e,instance:c,options:s}),l=function(){};d.push(o||l)}})),c.update()},forceUpdate:function(){if(!h){var t=r.elements,e=t.reference,i=t.popper;if(U(e,i)){r.rects={reference:w(e,L(i),"fixed"===r.options.strategy),popper:b(i)},r.reset=!1,r.placement=r.options.placement,r.orderedModifiers.forEach((function(t){return r.modifiersData[t.name]=Object.assign({},t.data)}));for(var s=0;s<r.orderedModifiers.length;s++)if(!0!==r.reset){var n=r.orderedModifiers[s],o=n.fn,l=n.options,a=void 0===l?{}:l,d=n.name;"function"==typeof o&&(r=o({state:r,options:a,name:d,instance:c})||r)}else r.reset=!1,s=-1}}},update:(o=function(){return new Promise((function(t){c.forceUpdate(),t(r)}))},function(){return a||(a=new Promise((function(t){Promise.resolve().then((function(){a=void 0,t(o())}))}))),a}),destroy:function(){u(),h=!0}};if(!U(t,e))return c;function u(){d.forEach((function(t){return t()})),d=[]}return c.setOptions(i).then((function(t){!h&&i.onFirstUpdate&&i.onFirstUpdate(t)})),c}}var J={passive:!0};function Q(t){return t.split("-")[0]}function X(t){return t.split("-")[1]}function Z(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function G(t){var e,i=t.reference,s=t.element,n=t.placement,o=n?Q(n):null,l=n?X(n):null,a=i.x+i.width/2-s.width/2,r=i.y+i.height/2-s.height/2;switch(o){case T:e={x:a,y:i.y-s.height};break;case E:e={x:a,y:i.y+i.height};break;case k:e={x:i.x+i.width,y:r};break;case O:e={x:i.x-s.width,y:r};break;default:e={x:i.x,y:i.y}}var d=o?Z(o):null;if(null!=d){var h="y"===d?"height":"width";switch(l){case D:e[d]=e[d]-(i[h]/2-s[h]/2);break;case q:e[d]=e[d]+(i[h]/2-s[h]/2)}}return e}var K={top:"auto",right:"auto",bottom:"auto",left:"auto"};function _(t){var e,i=t.popper,n=t.popperRect,o=t.placement,l=t.variation,a=t.offsets,r=t.position,h=t.gpuAcceleration,c=t.adaptive,u=t.roundOffsets,p=t.isFixed,m=a.x,v=void 0===m?0:m,y=a.y,w=void 0===y?0:y,b="function"==typeof u?u({x:v,y:w}):{x:v,y:w};v=b.x,w=b.y;var C=a.hasOwnProperty("x"),S=a.hasOwnProperty("y"),x=O,I=T,A=window;if(c){var $=L(i),P="clientHeight",D="clientWidth";if($===s(i)&&"static"!==f($=g(i)).position&&"absolute"===r&&(P="scrollHeight",D="scrollWidth"),o===T||(o===O||o===k)&&l===q)I=E,w-=(p&&$===A&&A.visualViewport?A.visualViewport.height:$[P])-n.height,w*=h?1:-1;if(o===O||(o===T||o===E)&&l===q)x=k,v-=(p&&$===A&&A.visualViewport?A.visualViewport.width:$[D])-n.width,v*=h?1:-1}var B,H=Object.assign({position:r},c&&K),N=!0===u?function(t,e){var i=t.x,s=t.y,n=e.devicePixelRatio||1;return{x:d(i*n)/n||0,y:d(s*n)/n||0}}({x:v,y:w},s(i)):{x:v,y:w};return v=N.x,w=N.y,h?Object.assign({},H,((B={})[I]=S?"0":"",B[x]=C?"0":"",B.transform=(A.devicePixelRatio||1)<=1?"translate("+v+"px, "+w+"px)":"translate3d("+v+"px, "+w+"px, 0)",B)):Object.assign({},H,((e={})[I]=S?w+"px":"",e[x]=C?v+"px":"",e.transform="",e))}const Y={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(t){var e=t.state,i=t.options,s=t.name,n=i.offset,o=void 0===n?[0,0]:n,l=R.reduce((function(t,i){return t[i]=function(t,e,i){var s=Q(t),n=[O,T].indexOf(s)>=0?-1:1,o="function"==typeof i?i(Object.assign({},e,{placement:t})):i,l=o[0],a=o[1];return l=l||0,a=(a||0)*n,[O,k].indexOf(s)>=0?{x:a,y:l}:{x:l,y:a}}(i,e.rects,o),t}),{}),a=l[e.placement],r=a.x,d=a.y;null!=e.modifiersData.popperOffsets&&(e.modifiersData.popperOffsets.x+=r,e.modifiersData.popperOffsets.y+=d),e.modifiersData[s]=l}};var tt={left:"right",right:"left",bottom:"top",top:"bottom"};function et(t){return t.replace(/left|right|bottom|top/g,(function(t){return tt[t]}))}var it={start:"end",end:"start"};function st(t){return t.replace(/start|end/g,(function(t){return it[t]}))}function nt(t,e){var i=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(i&&l(i)){var s=e;do{if(s&&t.isSameNode(s))return!0;s=s.parentNode||s.host}while(s)}return!1}function ot(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function lt(t,e,i){return e===H?ot(function(t,e){var i=s(t),n=g(t),o=i.visualViewport,l=n.clientWidth,a=n.clientHeight,r=0,d=0;if(o){l=o.width,a=o.height;var h=c();(h||!h&&"fixed"===e)&&(r=o.offsetLeft,d=o.offsetTop)}return{width:l,height:a,x:r+v(t),y:d}}(t,i)):n(e)?function(t,e){var i=u(t,!1,"fixed"===e);return i.top=i.top+t.clientTop,i.left=i.left+t.clientLeft,i.bottom=i.top+t.clientHeight,i.right=i.left+t.clientWidth,i.width=t.clientWidth,i.height=t.clientHeight,i.x=i.left,i.y=i.top,i}(e,i):ot(function(t){var e,i=g(t),s=p(t),n=null==(e=t.ownerDocument)?void 0:e.body,o=a(i.scrollWidth,i.clientWidth,n?n.scrollWidth:0,n?n.clientWidth:0),l=a(i.scrollHeight,i.clientHeight,n?n.scrollHeight:0,n?n.clientHeight:0),r=-s.scrollLeft+v(t),d=-s.scrollTop;return"rtl"===f(n||i).direction&&(r+=a(i.clientWidth,n?n.clientWidth:0)-o),{width:o,height:l,x:r,y:d}}(g(t)))}function at(t,e,i,s){var l="clippingParents"===e?function(t){var e=x(C(t)),i=["absolute","fixed"].indexOf(f(t).position)>=0&&o(t)?L(t):t;return n(i)?e.filter((function(t){return n(t)&&nt(t,i)&&"body"!==m(t)})):[]}(t):[].concat(e),d=[].concat(l,[i]),h=d[0],c=d.reduce((function(e,i){var n=lt(t,i,s);return e.top=a(n.top,e.top),e.right=r(n.right,e.right),e.bottom=r(n.bottom,e.bottom),e.left=a(n.left,e.left),e}),lt(t,h,s));return c.width=c.right-c.left,c.height=c.bottom-c.top,c.x=c.left,c.y=c.top,c}function rt(t){return Object.assign({},{top:0,right:0,bottom:0,left:0},t)}function dt(t,e){return e.reduce((function(e,i){return e[i]=t,e}),{})}function ht(t,e){void 0===e&&(e={});var i=e,s=i.placement,o=void 0===s?t.placement:s,l=i.strategy,a=void 0===l?t.strategy:l,r=i.boundary,d=void 0===r?B:r,h=i.rootBoundary,c=void 0===h?H:h,p=i.elementContext,m=void 0===p?N:p,v=i.altBoundary,f=void 0!==v&&v,y=i.padding,w=void 0===y?0:y,b=rt("number"!=typeof w?w:dt(w,P)),C=m===N?M:N,S=t.rects.popper,x=t.elements[f?C:m],I=at(n(x)?x:x.contextElement||g(t.elements.popper),d,c,a),A=u(t.elements.reference),L=G({reference:A,element:S,strategy:"absolute",placement:o}),O=ot(Object.assign({},S,L)),$=m===N?O:A,D={top:I.top-$.top+b.top,bottom:$.bottom-I.bottom+b.bottom,left:I.left-$.left+b.left,right:$.right-I.right+b.right},q=t.modifiersData.offset;if(m===N&&q){var V=q[o];Object.keys(D).forEach((function(t){var e=[k,E].indexOf(t)>=0?1:-1,i=[T,E].indexOf(t)>=0?"y":"x";D[t]+=V[i]*e}))}return D}function ct(t,e,i){return a(t,r(e,i))}const ut={name:"preventOverflow",enabled:!0,phase:"main",fn:function(t){var e=t.state,i=t.options,s=t.name,n=i.mainAxis,o=void 0===n||n,l=i.altAxis,d=void 0!==l&&l,h=i.boundary,c=i.rootBoundary,u=i.altBoundary,p=i.padding,m=i.tether,g=void 0===m||m,v=i.tetherOffset,f=void 0===v?0:v,y=ht(e,{boundary:h,rootBoundary:c,padding:p,altBoundary:u}),w=Q(e.placement),C=X(e.placement),S=!C,x=Z(w),I="x"===x?"y":"x",A=e.modifiersData.popperOffsets,$=e.rects.reference,P=e.rects.popper,q="function"==typeof f?f(Object.assign({},e.rects,{placement:e.placement})):f,B="number"==typeof q?{mainAxis:q,altAxis:q}:Object.assign({mainAxis:0,altAxis:0},q),H=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,N={x:0,y:0};if(A){if(o){var M,V="y"===x?T:O,R="y"===x?E:k,F="y"===x?"height":"width",j=A[x],W=j+y[V],U=j-y[R],z=g?-P[F]/2:0,J=C===D?$[F]:P[F],G=C===D?-P[F]:-$[F],K=e.elements.arrow,_=g&&K?b(K):{width:0,height:0},Y=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},tt=Y[V],et=Y[R],it=ct(0,$[F],_[F]),st=S?$[F]/2-z-it-tt-B.mainAxis:J-it-tt-B.mainAxis,nt=S?-$[F]/2+z+it+et+B.mainAxis:G+it+et+B.mainAxis,ot=e.elements.arrow&&L(e.elements.arrow),lt=ot?"y"===x?ot.clientTop||0:ot.clientLeft||0:0,at=null!=(M=null==H?void 0:H[x])?M:0,rt=j+nt-at,dt=ct(g?r(W,j+st-at-lt):W,j,g?a(U,rt):U);A[x]=dt,N[x]=dt-j}if(d){var ut,pt="x"===x?T:O,mt="x"===x?E:k,gt=A[I],vt="y"===I?"height":"width",ft=gt+y[pt],yt=gt-y[mt],wt=-1!==[T,O].indexOf(w),bt=null!=(ut=null==H?void 0:H[I])?ut:0,Ct=wt?ft:gt-$[vt]-P[vt]-bt+B.altAxis,St=wt?gt+$[vt]+P[vt]-bt-B.altAxis:yt,xt=g&&wt?function(t,e,i){var s=ct(t,e,i);return s>i?i:s}(Ct,gt,St):ct(g?Ct:ft,gt,g?St:yt);A[I]=xt,N[I]=xt-gt}e.modifiersData[s]=N}},requiresIfExists:["offset"]};const pt={name:"arrow",enabled:!0,phase:"main",fn:function(t){var e,i=t.state,s=t.name,n=t.options,o=i.elements.arrow,l=i.modifiersData.popperOffsets,a=Q(i.placement),r=Z(a),d=[O,k].indexOf(a)>=0?"height":"width";if(o&&l){var h=function(t,e){return rt("number"!=typeof(t="function"==typeof t?t(Object.assign({},e.rects,{placement:e.placement})):t)?t:dt(t,P))}(n.padding,i),c=b(o),u="y"===r?T:O,p="y"===r?E:k,m=i.rects.reference[d]+i.rects.reference[r]-l[r]-i.rects.popper[d],g=l[r]-i.rects.reference[r],v=L(o),f=v?"y"===r?v.clientHeight||0:v.clientWidth||0:0,y=m/2-g/2,w=h[u],C=f-c[d]-h[p],S=f/2-c[d]/2+y,x=ct(w,S,C),I=r;i.modifiersData[s]=((e={})[I]=x,e.centerOffset=x-S,e)}},effect:function(t){var e=t.state,i=t.options.element,s=void 0===i?"[data-popper-arrow]":i;null!=s&&("string"!=typeof s||(s=e.elements.popper.querySelector(s)))&&nt(e.elements.popper,s)&&(e.elements.arrow=s)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function mt(t,e,i){return void 0===i&&(i={x:0,y:0}),{top:t.top-e.height-i.y,right:t.right-e.width+i.x,bottom:t.bottom-e.height+i.y,left:t.left-e.width-i.x}}function gt(t){return[T,k,E,O].some((function(e){return t[e]>=0}))}var vt=z({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(t){var e=t.state,i=t.instance,n=t.options,o=n.scroll,l=void 0===o||o,a=n.resize,r=void 0===a||a,d=s(e.elements.popper),h=[].concat(e.scrollParents.reference,e.scrollParents.popper);return l&&h.forEach((function(t){t.addEventListener("scroll",i.update,J)})),r&&d.addEventListener("resize",i.update,J),function(){l&&h.forEach((function(t){t.removeEventListener("scroll",i.update,J)})),r&&d.removeEventListener("resize",i.update,J)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(t){var e=t.state,i=t.name;e.modifiersData[i]=G({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(t){var e=t.state,i=t.options,s=i.gpuAcceleration,n=void 0===s||s,o=i.adaptive,l=void 0===o||o,a=i.roundOffsets,r=void 0===a||a,d={placement:Q(e.placement),variation:X(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:n,isFixed:"fixed"===e.options.strategy};null!=e.modifiersData.popperOffsets&&(e.styles.popper=Object.assign({},e.styles.popper,_(Object.assign({},d,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:l,roundOffsets:r})))),null!=e.modifiersData.arrow&&(e.styles.arrow=Object.assign({},e.styles.arrow,_(Object.assign({},d,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:r})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function(t){var e=t.state;Object.keys(e.elements).forEach((function(t){var i=e.styles[t]||{},s=e.attributes[t]||{},n=e.elements[t];o(n)&&m(n)&&(Object.assign(n.style,i),Object.keys(s).forEach((function(t){var e=s[t];!1===e?n.removeAttribute(t):n.setAttribute(t,!0===e?"":e)})))}))},effect:function(t){var e=t.state,i={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,i.popper),e.styles=i,e.elements.arrow&&Object.assign(e.elements.arrow.style,i.arrow),function(){Object.keys(e.elements).forEach((function(t){var s=e.elements[t],n=e.attributes[t]||{},l=Object.keys(e.styles.hasOwnProperty(t)?e.styles[t]:i[t]).reduce((function(t,e){return t[e]="",t}),{});o(s)&&m(s)&&(Object.assign(s.style,l),Object.keys(n).forEach((function(t){s.removeAttribute(t)})))}))}},requires:["computeStyles"]},Y,{name:"flip",enabled:!0,phase:"main",fn:function(t){var e=t.state,i=t.options,s=t.name;if(!e.modifiersData[s]._skip){for(var n=i.mainAxis,o=void 0===n||n,l=i.altAxis,a=void 0===l||l,r=i.fallbackPlacements,d=i.padding,h=i.boundary,c=i.rootBoundary,u=i.altBoundary,p=i.flipVariations,m=void 0===p||p,g=i.allowedAutoPlacements,v=e.options.placement,f=Q(v),y=r||(f===v||!m?[et(v)]:function(t){if(Q(t)===$)return[];var e=et(t);return[st(t),e,st(e)]}(v)),w=[v].concat(y).reduce((function(t,i){return t.concat(Q(i)===$?function(t,e){void 0===e&&(e={});var i=e,s=i.placement,n=i.boundary,o=i.rootBoundary,l=i.padding,a=i.flipVariations,r=i.allowedAutoPlacements,d=void 0===r?R:r,h=X(s),c=h?a?V:V.filter((function(t){return X(t)===h})):P,u=c.filter((function(t){return d.indexOf(t)>=0}));0===u.length&&(u=c);var p=u.reduce((function(e,i){return e[i]=ht(t,{placement:i,boundary:n,rootBoundary:o,padding:l})[Q(i)],e}),{});return Object.keys(p).sort((function(t,e){return p[t]-p[e]}))}(e,{placement:i,boundary:h,rootBoundary:c,padding:d,flipVariations:m,allowedAutoPlacements:g}):i)}),[]),b=e.rects.reference,C=e.rects.popper,S=new Map,x=!0,I=w[0],A=0;A<w.length;A++){var L=w[A],q=Q(L),B=X(L)===D,H=[T,E].indexOf(q)>=0,N=H?"width":"height",M=ht(e,{placement:L,boundary:h,rootBoundary:c,altBoundary:u,padding:d}),F=H?B?k:O:B?E:T;b[N]>C[N]&&(F=et(F));var j=et(F),W=[];if(o&&W.push(M[q]<=0),a&&W.push(M[F]<=0,M[j]<=0),W.every((function(t){return t}))){I=L,x=!1;break}S.set(L,W)}if(x)for(var U=function(t){var e=w.find((function(e){var i=S.get(e);if(i)return i.slice(0,t).every((function(t){return t}))}));if(e)return I=e,"break"},z=m?3:1;z>0;z--){if("break"===U(z))break}e.placement!==I&&(e.modifiersData[s]._skip=!0,e.placement=I,e.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},ut,pt,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(t){var e=t.state,i=t.name,s=e.rects.reference,n=e.rects.popper,o=e.modifiersData.preventOverflow,l=ht(e,{elementContext:"reference"}),a=ht(e,{altBoundary:!0}),r=mt(l,s),d=mt(a,n,o),h=gt(r),c=gt(d);e.modifiersData[i]={referenceClippingOffsets:r,popperEscapeOffsets:d,isReferenceHidden:h,hasPopperEscaped:c},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":h,"data-popper-escaped":c})}}]})},189:(t,e,i)=>{i.d(e,{Fy:()=>o,In:()=>n,LO:()=>r,fp:()=>l,jU:()=>a,lP:()=>s});const s={auto:"auto","auto-start":"auto-start","auto-end":"auto-end",top:"top","top-left":"top-start","top-right":"top-end",bottom:"bottom","bottom-left":"bottom-start","bottom-right":"bottom-end",right:"right","right-start":"right-start","right-end":"right-end",left:"left","left-start":"left-start","left-end":"left-end"},n=["Escape","ArrowUp","ArrowDown","Home","End","Enter"],o=["ArrowUp","ArrowLeft","ArrowDown","ArrowRight","Home","End"],l=["ArrowUp","ArrowLeft","ArrowDown","ArrowRight","Home","End","Escape","Enter","Tab"],a=["ArrowUp","ArrowLeft","ArrowDown","ArrowRight","Home","End","Escape","Enter"],r={xs:0,sm:640,md:768,lg:1024,xl:1280,"2xl":1536}},290:(t,e,i)=>{i.d(e,{A:()=>l});var s=i(926),n=i(615); /* * HSAccordion * @version: 2.5.0 * @author: Preline Labs Ltd. * @license: Licensed under MIT and Preline UI Fair Use License (https://preline.co/docs/license.html) * Copyright 2024 Preline Labs Ltd. */ class o extends n.A{constructor(t,e,i){super(t,e,i),this.toggle=this.el.querySelector(".hs-accordion-toggle")||null,this.content=this.el.querySelector(".hs-accordion-content")||null,this.update(),this.toggle&&this.content&&this.init()}init(){this.createCollection(window.$hsAccordionCollection,this),this.toggle.addEventListener("click",(t=>{t.stopPropagation(),this.el.classList.contains("active")?this.hide():this.show()}))}show(){var t;if(this.group&&!this.isAlwaysOpened&&this.group.querySelector(":scope > .hs-accordion.active")&&this.group.querySelector(":scope > .hs-accordion.active")!==this.el){window.$hsAccordionCollection.find((t=>t.element.el===this.group.querySelector(":scope > .hs-accordion.active"))).element.hide()}if(this.el.classList.contains("active"))return!1;this.el.classList.add("active"),(null===(t=null==this?void 0:this.toggle)||void 0===t?void 0:t.ariaExpanded)&&(this.toggle.ariaExpanded="true"),this.content.style.display="block",this.content.style.height="0",setTimeout((()=>{this.content.style.height=`${this.content.scrollHeight}px`})),(0,s.yd)(this.content,(()=>{this.content.style.display="block",this.content.style.height="",this.fireEvent("open",this.el),(0,s.JD)("open.hs.accordion",this.el,this.el)}))}hide(){var t;if(!this.el.classList.contains("active"))return!1;this.el.classList.remove("active"),(null===(t=null==this?void 0:this.toggle)||void 0===t?void 0:t.ariaExpanded)&&(this.toggle.ariaExpanded="false"),this.content.style.height=`${this.content.scrollHeight}px`,setTimeout((()=>{this.content.style.height="0"})),(0,s.yd)(this.content,(()=>{this.content.style.display="",this.content.style.height="0",this.fireEvent("close",this.el),(0,s.JD)("close.hs.accordion",this.el,this.el)}))}update(){if(this.group=this.el.closest(".hs-accordion-group")||null,!this.group)return!1;this.isAlwaysOpened=this.group.hasAttribute("data-hs-accordion-always-open")||!1,window.$hsAccordionCollection.map((t=>(t.id===this.el.id&&(t.element.group=this.group,t.element.isAlwaysOpened=this.isAlwaysOpened),t)))}static getInstance(t,e){const i=window.$hsAccordionCollection.find((e=>e.element.el===("string"==typeof t?document.querySelector(t):t)));return i?e?i:i.element.el:null}static show(t){const e=window.$hsAccordionCollection.find((e=>e.element.el===("string"==typeof t?document.querySelector(t):t)));e&&"block"!==e.element.content.style.display&&e.element.show()}static hide(t){const e=window.$hsAccordionCollection.find((e=>e.element.el===("string"==typeof t?document.querySelector(t):t)));e&&"block"===e.element.content.style.display&&e.element.hide()}static autoInit(){window.$hsAccordionCollection||(window.$hsAccordionCollection=[]),document.querySelectorAll(".hs-accordion:not(.--prevent-on-load-init)").forEach((t=>{window.$hsAccordionCollection.find((e=>{var i;return(null===(i=null==e?void 0:e.element)||void 0===i?void 0:i.el)===t}))||new o(t)}))}static treeView(){if(!document.querySelectorAll(".hs-accordion-treeview-root").length)return!1;this.selectable=[],document.querySelectorAll(".hs-accordion-treeview-root").forEach((t=>{const e=null==t?void 0:t.getAttribute("data-hs-accordion-options"),i=e?JSON.parse(e):{};this.selectable.push({el:t,options:Object.assign({},i)})})),this.selectable.length&&this.selectable.forEach((t=>{const{el:e}=t;e.querySelectorAll(".hs-accordion-selectable").forEach((e=>{e.addEventListener("click",(i=>{i.stopPropagation(),this.toggleSelected(t,e)}))}))}))}static toggleSelected(t,e){e.classList.contains("selected")?e.classList.remove("selected"):(t.el.querySelectorAll(".hs-accordion-selectable").forEach((t=>t.classList.remove("selected"))),e.classList.add("selected"))}static on(t,e,i){const s=window.$hsAccordionCollection.find((t=>t.element.el===("string"==typeof e?document.querySelector(e):e)));s&&(s.element.events[t]=i)}}window.addEventListener("load",(()=>{o.autoInit(),document.querySelectorAll(".hs-accordion-treeview-root").length&&o.treeView()})),"undefined"!=typeof window&&(window.HSAccordion=o);const l=o},615:(t,e,i)=>{i.d(e,{A:()=>s});class s{constructor(t,e,i){this.el=t,this.options=e,this.events=i,this.el=t,this.options=e,this.events={}}createCollection(t,e){var i;t.push({id:(null===(i=null==e?void 0:e.el)||void 0===i?void 0:i.id)||t.length+1,element:e})}fireEvent(t,e=null){if(this.events.hasOwnProperty(t))return this.events[t](e)}on(t,e){this.events[t]=e}}},238:(t,e,i)=>{i.d(e,{A:()=>a});var s=i(926),n=i(615),o=i(189); /* * HSCarousel * @version: 2.5.0 * @author: Preline Labs Ltd. * @license: Licensed under MIT and Preline UI Fair Use License (https://preline.co/docs/license.html) * Copyright 2024 Preline Labs Ltd. */ class l extends n.A{constructor(t,e){var i,s,n,o,l;super(t,e);const a=t.getAttribute("data-hs-carousel"),r=a?JSON.parse(a):{},d=Object.assign(Object.assign({},r),e);this.currentIndex=d.currentIndex||0,this.loadingClasses=d.loadingClasses?`${d.loadingClasses}`.split(","):null,this.dotsItemClasses=d.dotsItemClasses?d.dotsItemClasses:null,this.isAutoHeight=void 0!==d.isAutoHeight&&d.isAutoHeight,this.isAutoPlay=void 0!==d.isAutoPlay&&d.isAutoPlay,this.isCentered=void 0!==d.isCentered&&d.isCentered,this.isDraggable=void 0!==d.isDraggable&&d.isDraggable,this.isInfiniteLoop=void 0!==d.isInfiniteLoop&&d.isInfiniteLoop,this.isRTL=void 0!==d.isRTL&&d.isRTL,this.isSnap=void 0!==d.isSnap&&d.isSnap,this.hasSnapSpacers=void 0===d.hasSnapSpacers||d.hasSnapSpacers,this.speed=d.speed||4e3,this.updateDelay=d.updateDelay||0,this.slidesQty=d.slidesQty||1,this.loadingClassesRemove=(null===(i=this.loadingClasses)||void 0===i?void 0:i[0])?this.loadingClasses[0].split(" "):"opacity-0",this.loadingClassesAdd=(null===(s=this.loadingClasses)||void 0===s?void 0:s[1])?this.loadingClasses[1].split(" "):"",this.afterLoadingClassesAdd=(null===(n=this.loadingClasses)||void 0===n?void 0:n[2])?this.loadingClasses[2].split(" "):"",this.container=this.el.querySelector(".hs-carousel")||null,this.inner=this.el.querySelector(".hs-carousel-body")||null,this.slides=this.el.querySelectorAll(".hs-carousel-slide")||[],this.prev=this.el.querySelector(".hs-carousel-prev")||null,this.next=this.el.querySelector(".hs-carousel-next")||null,this.dots=this.el.querySelector(".hs-carousel-pagination")||null,this.info=this.el.querySelector(".hs-carousel-info")||null,this.infoTotal=(null===(o=null==this?void 0:this.info)||void 0===o?void 0:o.querySelector(".hs-carousel-info-total"))||null,this.infoCurrent=(null===(l=null==this?void 0:this.info)||void 0===l?void 0:l.querySelector(".hs-carousel-info-current"))||null,this.sliderWidth=this.el.getBoundingClientRect().width,this.isDragging=!1,this.dragStartX=null,this.initialTranslateX=null,this.touchX={start:0,end:0},this.resizeContainer=document.querySelector("body"),this.resizeContainerWidth=0,this.init()}setIsSnap(){const t=this.container.getBoundingClientRect(),e=t.left+t.width/2;let i=null,s=null,n=1/0;Array.from(this.inner.children).forEach((t=>{const s=t.getBoundingClientRect(),o=this.inner.getBoundingClientRect(),l=s.left+s.width/2-o.left,a=Math.abs(e-(o.left+l));a<n&&(n=a,i=t)})),i&&(s=Array.from(this.slides).findIndex((t=>t===i))),this.setIndex(s),this.dots&&this.setCurrentDot()}init(){this.createCollection(window.$hsCarouselCollection,this),this.inner&&(this.calculateWidth(),this.isDraggable&&!this.isSnap&&this.initDragHandling()),this.prev&&this.prev.addEventListener("click",(()=>{this.goToPrev(),this.isAutoPlay&&(this.resetTimer(),this.setTimer())})),this.next&&this.next.addEventListener("click",(()=>{this.goToNext(),this.isAutoPlay&&(this.resetTimer(),this.setTimer())})),this.dots&&this.initDots(),this.info&&this.buildInfo(),this.slides.length&&(this.addCurrentClass(),this.isInfiniteLoop||this.addDisabledClass(),this.isAutoPlay&&this.autoPlay()),setTimeout((()=>{this.isSnap&&this.setIsSnap(),this.loadingClassesRemove&&("string"==typeof this.loadingClassesRemove?this.inner.classList.remove(this.loadingClassesRemove):this.inner.classList.remove(...this.loadingClassesRemove)),this.loadingClassesAdd&&("string"==typeof this.loadingClassesAdd?this.inner.classList.add(this.loadingClassesAdd):this.inner.classList.add(...this.loadingClassesAdd)),this.inner&&this.afterLoadingClassesAdd&&setTimeout((()=>{"string"==typeof this.afterLoadingClassesAdd?this.inner.classList.add(this.afterLoadingClassesAdd):this.inner.classList.add(...this.afterLoadingClassesAdd)}))}),400),this.isSnap&&this.container.addEventListener("scroll",(()=>{clearTimeout(this.isScrolling),this.isScrolling=setTimeout((()=>{this.setIsSnap()}),100)})),this.el.classList.add("init"),this.isSnap||(this.el.addEventListener("touchstart",(t=>{this.touchX.start=t.changedTouches[0].screenX})),this.el.addEventListener("touchend",(t=>{this.touchX.end=t.changedTouches[0].screenX,this.detectDirection()}))),this.observeResize()}initDragHandling(){const t=this.inner;t&&(t.addEventListener("mousedown",this.handleDragStart.bind(this)),t.addEventListener("touchstart",this.handleDragStart.bind(this),{passive:!0}),document.addEventListener("mousemove",this.handleDragMove.bind(this)),document.addEventListener("touchmove",this.handleDragMove.bind(this),{passive:!1}),document.addEventListener("mouseup",this.handleDragEnd.bind(this)),document.addEventListener("touchend",this.handleDragEnd.bind(this)))}getTranslateXValue(){var t;const e=window.getComputedStyle(this.inner).transform;if("none"!==e){const i=null===(t=e.match(/matrix.*\((.+)\)/))||void 0===t?void 0:t[1].split(", ");if(i){let t=parseFloat(6===i.length?i[4]:i[12]);return this.isRTL&&(t=-t),isNaN(t)||0===t?0:-t}}return 0}removeClickEventWhileDragging(t){t.preventDefault()}handleDragStart(t){t.preventDefault(),this.isDragging=!0,this.dragStartX=this.getEventX(t),this.initialTranslateX=this.isRTL?this.getTranslateXValue():-this.getTranslateXValue(),this.inner.classList.add("dragging")}handleDragMove(t){if(!this.isDragging)return;this.inner.querySelectorAll("a:not(.prevented-click)").forEach((t=>{t.classList.add("prevented-click"),t.addEventListener("click",this.removeClickEventWhileDragging)}));let e=this.getEventX(t)-this.dragStartX;this.isRTL&&(e=-e);const i=this.initialTranslateX+e;this.setTranslate((()=>{let t=this.sliderWidth*this.slides.length/this.getCurrentSlidesQty()-this.sliderWidth;const e=this.sliderWidth,s=(e-e/this.getCurrentSlidesQty())/2,n=this.isCentered?s:0;this.isCentered&&(t+=s);const o=-t;return this.isRTL?i<n?n:i>t?o:-i:i>n?n:i<-t?o:i})())}handleDragEnd(){if(!this.isDragging)return;this.isDragging=!1;const t=this.sliderWidth/this.getCurrentSlidesQty(),e=this.getTranslateXValue();let i=Math.round(e/t);this.isRTL&&(i=Math.round(e/t)),this.inner.classList.remove("dragging"),setTimeout((()=>{this.calculateTransform(i),this.dots&&this.setCurrentDot(),this.dragStartX=null,this.initialTranslateX=null,this.inner.querySelectorAll("a.prevented-click").forEach((t=>{t.classList.remove("prevented-click"),t.removeEventListener("click",this.removeClickEventWhileDragging)}))}))}getEventX(t){return t instanceof MouseEvent?t.clientX:t.touches[0].clientX}getCurrentSlidesQty(){if("object"==typeof this.slidesQty){const t=document.body.clientWidth;let e=0;return Object.keys(this.slidesQty).forEach((i=>{t>=(typeof i+1=="number"?this.slidesQty[i]:o.LO[i])&&(e=this.slidesQty[i])})),e}return this.slidesQty}buildSnapSpacers(){const t=this.inner.querySelector(".hs-snap-before"),e=this.inner.querySelector(".hs-snap-after");t&&t.remove(),e&&e.remove();const i=this.sliderWidth,n=i/2-i/this.getCurrentSlidesQty()/2,o=(0,s.fc)(`<div class="hs-snap-before" style="height: 100%; width: ${n}px"></div>`),l=(0,s.fc)(`<div class="hs-snap-after" style="height: 100%; width: ${n}px"></div>`);this.inner.prepend(o),this.inner.appendChild(l)}initDots(){this.el.querySelectorAll(".hs-carousel-pagination-item").length?this.setDots():this.buildDots(),this.dots&&this.setCurrentDot()}buildDots(){this.dots.innerHTML="";const t=!this.isCentered&&this.slidesQty?this.slides.length-(this.getCurrentSlidesQty()-1):this.slides.length;for(let e=0;e<t;e++){const t=this.buildSingleDot(e);this.dots.append(t)}}setDots(){this.dotsItems=this.dots.querySelectorAll(".hs-carousel-pagination-item"),this.dotsItems.forEach(((t,e)=>{const i=t.getAttribute("data-carousel-pagination-item-target");this.singleDotEvents(t,i?+i:e)}))}goToCurrentDot(){const t=this.dots,e=t.getBoundingClientRect(),i=t.scrollLeft,s=t.scrollTop,n=t.clientWidth,o=t.clientHeight,l=this.dotsItems[this.currentIndex],a=l.getBoundingClientRect(),r=a.left-e.left+i,d=r+l.clientWidth,h=a.top-e.top+s,c=h+l.clientHeight;let u=i,p=s;(r<i||d>i+n)&&(u=d-n),(h<s||c>s+o)&&(p=c-o),t.scrollTo({left:u,top:p,behavior:"smooth"})}buildInfo(){this.infoTotal&&this.setInfoTotal(),this.infoCurrent&&this.setInfoCurrent()}setInfoTotal(){this.infoTotal.innerText=`${this.slides.length}`}setInfoCurrent(){this.infoCurrent.innerText=`${this.currentIndex+1}`}buildSingleDot(t){const e=(0,s.fc)("<span></span>");return this.dotsItemClasses&&(0,s.en)(this.dotsItemClasses,e),this.singleDotEvents(e,t),e}singleDotEvents(t,e){t.addEventListener("click",(()=>{this.goTo(e),this.isAutoPlay&&(this.resetTimer(),this.setTimer())}))}observeResize(){new ResizeObserver((0,s.sg)((t=>{for(let e of t){const t=e.contentRect.width;t!==this.resizeContainerWidth&&(this.recalculateWidth(),this.dots&&this.initDots(),this.addCurrentClass(),this.resizeContainerWidth=t)}}),this.updateDelay)).observe(this.resizeContainer)}calculateWidth(){this.isSnap||(this.inner.style.width=this.sliderWidth*this.slides.length/this.getCurrentSlidesQty()+"px"),this.slides.forEach((t=>{t.style.width=this.sliderWidth/this.getCurrentSlidesQty()+"px"})),this.calculateTransform()}addCurrentClass(){if(this.isSnap){const t=Math.floor(this.getCurrentSlidesQty()/2);for(let e=0;e<this.slides.length;e++){const i=this.slides[e];e<=this.currentIndex+t&&e>=this.currentIndex-t?i.classList.add("active"):i.classList.remove("active")}}else{const t=this.isCentered?this.currentIndex+this.getCurrentSlidesQty()+(this.getCurrentSlidesQty()-1):this.currentIndex+this.getCurrentSlidesQty();this.slides.forEach(((e,i)=>{i>=this.currentIndex&&i<t?e.classList.add("active"):e.classList.remove("active")}))}}setCurrentDot(){const t=(t,e)=>{let i=!1;const s=Math.floor(this.getCurrentSlidesQty()/2);i=this.isSnap&&!this.hasSnapSpacers?e===(this.getCurrentSlidesQty()%2==0?this.currentIndex-s+1:this.currentIndex-s):e===this.currentIndex,i?t.classList.add("active"):t.classList.remove("active")};this.dotsItems?this.dotsItems.forEach(((e,i)=>t(e,i))):this.dots.querySelectorAll(":scope > *").forEach(((e,i)=>t(e,i)))}setElementToDisabled(t){t.classList.add("disabled"),"BUTTON"!==t.tagName&&"INPUT"!==t.tagName||t.setAttribute("disabled","disabled")}unsetElementToDisabled(t){t.classList.remove("disabled"),"BUTTON"!==t.tagName&&"INPUT"!==t.tagName||t.removeAttribute("disabled")}addDisabledClass(){if(!this.prev||!this.next)return!1;const t=getComputedStyle(this.inner).getPropertyValue("gap"),e=Math.floor(this.getCurrentSlidesQty()/2);let i=0,s=0,n=!1,o=!1;this.isSnap?(i=this.currentIndex,s=this.hasSnapSpacers?this.slides.length-1:this.slides.length-e-1,n=this.hasSnapSpacers?0===i:this.getCurrentSlidesQty()%2==0?i-e<0:i-e==0,o=i>=s&&this.container.scrollLeft+this.container.clientWidth+(parseFloat(t)||0)>=this.container.scrollWidth):(i=this.currentIndex,s=this.isCentered?this.slides.length-this.getCurrentSlidesQty()+(this.getCurrentSlidesQty()-1):this.slides.length-this.getCurrentSlidesQty(),n=0===i,o=i>=s),n?(this.unsetElementToDisabled(this.next),this.setElementToDisabled(this.prev)):o?(this.unsetElementToDisabled(this.prev),this.setElementToDisabled(this.next)):(this.unsetElementToDisabled(this.prev),this.unsetElementToDisabled(this.next))}autoPlay(){this.setTimer()}setTimer(){this.timer=setInterval((()=>{this.currentIndex===this.slides.length-1?this.goTo(0):this.goToNext()}),this.speed)}resetTimer(){clearInterval(this.timer)}detectDirection(){const{start:t,end:e}=this.touchX;e<t&&this.goToNext(),e>t&&this.goToPrev()}recalculateWidth(){this.sliderWidth=this.inner.parentElement.getBoundingClientRect().width,this.calculateWidth(),this.sliderWidth!==this.inner.parentElement.getBoundingClientRect().width&&this.recalculateWidth()}calculateTransform(t){void 0!==t&&(this.currentIndex=t),this.currentIndex>this.slides.length-this.getCurrentSlidesQty()&&!this.isCentered&&(this.currentIndex=this.slides.length-this.getCurrentSlidesQty());const e=this.sliderWidth,i=e/this.getCurrentSlidesQty();let s=this.currentIndex*i;if(this.isSnap&&!this.isCentered&&this.container.scrollLeft<e&&this.container.scrollLeft+i/2>e&&(this.container.scrollLeft=this.container.scrollWidth),this.isCentered&&!this.isSnap){const t=(e-i)/2;if(0===this.currentIndex)s=-t;else if(this.currentIndex>=this.slides.length-this.getCurrentSlidesQty()+(this.getCurrentSlidesQty()-1)){s=this.slides.length*i-e+t}else s=this.currentIndex*i-t}this.isSnap||(this.inner.style.transform=this.isRTL?`translate(${s}px, 0px)`:`translate(${-s}px, 0px)`),this.isAutoHeight&&(this.inner.style.height=`${this.slides[this.currentIndex].clientHeight}px`),this.dotsItems&&this.goToCurrentDot(),this.addCurrentClass(),this.isInfiniteLoop||this.addDisabledClass(),this.isSnap&&this.hasSnapSpacers&&this.buildSnapSpacers(),this.infoCurrent&&this.setInfoCurrent()}setTranslate(t){this.inner.style.transform=this.isRTL?`translate(${-t}px, 0px)`:`translate(${t}px, 0px)`}goToPrev(){if(this.currentIndex>0?this.currentIndex--:this.currentIndex=this.slides.length-this.getCurrentSlidesQty(),this.isSnap){const t=this.sliderWidth/this.getCurrentSlidesQty();this.container.scrollBy({left:Math.max(-this.container.scrollLeft,-t),behavior:"smooth"}),this.addCurrentClass(),this.isInfiniteLoop||this.addDisabledClass()}else this.calculateTransform();this.dots&&this.setCurrentDot()}goToNext(){const t=this.isCentered?this.slides.length-this.getCurrentSlidesQty()+(this.getCurrentSlidesQty()-1):this.slides.length-this.getCurrentSlidesQty();if(this.currentIndex<t?this.currentIndex++:this.currentIndex=0,this.isSnap){const t=this.sliderWidth/this.getCurrentSlidesQty(),e=this.container.scrollWidth-this.container.clientWidth;this.container.scrollBy({left:Math.min(t,e-this.container.scrollLeft),behavior:"smooth"}),this.addCurrentClass(),this.isInfiniteLoop||this.addDisabledClass()}else this.calculateTransform();this.dots&&this.setCurrentDot()}goTo(t){const e=this.currentIndex;if(this.currentIndex=t,this.isSnap){const t=this.sliderWidth/this.getCurrentSlidesQty(),i=e>this.currentIndex?e-this.currentIndex:this.currentIndex-e,s=e>this.currentIndex?-t*i:t*i;this.container.scrollBy({left:s,behavior:"smooth"}),this.addCurrentClass(),this.isInfiniteLoop||this.addDisabledClass()}else this.calculateTransform();this.dots&&this.setCurrentDot()}setIndex(t){this.currentIndex=t,this.addCurrentClass(),this.isInfiniteLoop||this.addDisabledClass()}static getInstance(t,e){const i=window.$hsCarouselCollection.find((e=>e.element.el===("string"==typeof t?document.querySelector(t):t)));return i?e?i:i.element:null}static autoInit(){window.$hsCarouselCollection||(window.$hsCarouselCollection=[]),document.querySelectorAll("[data-hs-carousel]:not(.--prevent-on-load-init)").forEach((t=>{window.$hsCarouselCollection.find((e=>{var i;return(null===(i=null==e?void 0:e.element)||void 0===i?void 0:i.el)===t}))||new l(t)}))}}window.addEventListener("load",(()=>{l.autoInit()})),"undefined"!=typeof window&&(window.HSCarousel=l);const a=l},883:(t,e,i)=>{i.d(e,{A:()=>l});var s=i(926),n=i(615); /* * HSCollapse * @version: 2.5.0 * @author: Preline Labs Ltd. * @license: Licensed under MIT and Preline UI Fair Use License (https://preline.co/docs/license.html) * Copyright 2024 Preline Labs Ltd. */ class o extends n.A{constructor(t,e,i){super(t,e,i),this.contentId=this.el.dataset.hsCollapse,this.content=document.querySelector(this.contentId),this.animationInProcess=!1,this.content&&this.init()}init(){var t;this.createCollection(window.$hsCollapseCollection,this),(null===(t=null==this?void 0:this.el)||void 0===t?void 0:t.ariaExpanded)&&(this.el.classList.contains("open")?this.el.ariaExpanded="true":this.el.ariaExpanded="false"),this.el.addEventListener("click",(()=>{this.content.classList.contains("open")?this.hide():this.show()}))}hideAllMegaMenuItems(){this.content.querySelectorAll(".hs-mega-menu-content.block").forEach((t=>{t.classList.remove("block"),t.classList.add("hidden")}))}show(){var t;if(this.animationInProcess||this.el.classList.contains("open"))return!1;this.animationInProcess=!0,this.el.classList.add("open"),(null===(t=null==this?void 0:this.el)||void 0===t?void 0:t.ariaExpanded)&&(this.el.ariaExpanded="true"),this.content.classList.add("open"),this.content.classList.remove("hidden"),this.content.style.height="0",setTimeout((()=>{this.content.style.height=`${this.content.scrollHeight}px`,this.fireEvent("beforeOpen",this.el),(0,s.JD)("beforeOpen.hs.collapse",this.el,this.el)})),(0,s.yd)(this.content,(()=>{this.content.style.height="",this.fireEvent("open",this.el),(0,s.JD)("open.hs.collapse",this.el,this.el),this.animationInProcess=!1}))}hide(){var t;if(this.animationInProcess||!this.el.classList.contains("open"))return!1;this.animationInProcess=!0,this.el.classList.remove("open"),(null===(t=null==this?void 0:this.el)||void 0===t?void 0:t.ariaExpanded)&&(this.el.ariaExpanded="false"),this.content.style.height=`${this.content.scrollHeight}px`,setTimeout((()=>{this.content.style.height="0"})),this.content.classList.remove("open"),(0,s.yd)(this.content,(()=>{this.content.classList.add("hidden"),this.content.style.height="",this.fireEvent("hide",this.el),(0,s.JD)("hide.hs.collapse",this.el,this.el),this.animationInProcess=!1})),this.content.querySelectorAll(".hs-mega-menu-content.block").length&&this.hideAllMegaMenuItems()}static getInstance(t,e=!1){const i=window.$hsCollapseCollection.find((e=>e.element.el===("string"==typeof t?document.querySelector(t):t)));return i?e?i:i.element.el:null}static autoInit(){window.$hsCollapseCollection||(window.$hsCollapseCollection=[]),document.querySelectorAll(".hs-collapse-toggle:not(.--prevent-on-load-init)").forEach((t=>{window.$hsCollapseCollection.find((e=>{var i;return(null===(i=null==e?void 0:e.element)||void 0===i?void 0:i.el)===t}))||new o(t)}))}static show(t){const e=window.$hsCollapseCollection.find((e=>e.element.el===("string"==typeof t?document.querySelector(t):t)));e&&e.element.content.classList.contains("hidden")&&e.element.show()}static hide(t){const e=window.$hsCollapseCollection.find((e=>e.element.el===("string"==typeof t?document.querySelector(t):t)));e&&!e.element.content.classList.contains("hidden")&&e.element.hide()}static on(t,e,i){const s=window.$hsCollapseCollection.find((t=>t.element.el===("string"==typeof e?document.querySelector(e):e)));s&&(s.element.events[t]=i)}}window.addEventListener("load",(()=>{o.autoInit()})),"undefined"!=typeof window&&(window.HSCollapse=o);const l=o},459:(t,e,i)=>{i.d(e,{A:()=>r});var s=i(926),n=i(615),o=i(189),l=function(t,e,i,s){return new(i||(i=Promise))((function(n,o){function l(t){try{r(s.next(t))}catch(t){o(t)}}function a(t){try{r(s.throw(t))}catch(t){o(t)}}function r(t){var e;t.done?n(t.value):(e=t.value,e instanceof i?e:new i((function(t){t(e)}))).then(l,a)}r((s=s.apply(t,e||[])).next())}))};class a extends n.A{constructor(t,e,i){var s,n,o,l,a,r,d,h,c,u,p,m,g,v,f,y,w,b,C,S,x,I,A,L,T;super(t,e,i);const E=t.getAttribute("data-hs-combo-box"),k=E?JSON.parse(E):{},O=Object.assign(Object.assign({},k),e);this.gap=5,this.viewport=null!==(s="string"==typeof(null==O?void 0:O.viewport)?document.querySelector(null==O?void 0:O.viewport):null==O?void 0:O.viewport)&&void 0!==s?s:null,this.preventVisibility=null!==(n=null==O?void 0:O.preventVisibility)&&void 0!==n&&n,this.apiUrl=null!==(o=null==O?void 0:O.apiUrl)&&void 0!==o?o:null,this.apiDataPart=null!==(l=null==O?void 0:O.apiDataPart)&&void 0!==l?l:null,this.apiQuery=null!==(a=null==O?void 0:O.apiQuery)&&void 0!==a?a:null,this.apiSearchQuery=null!==(r=null==O?void 0:O.apiSearchQuery)&&void 0!==r?r:null,this.apiHeaders=null!==(d=null==O?void 0:O.apiHeaders)&&void 0!==d?d:{},this.apiGroupField=null!==(h=null==O?void 0:O.apiGroupField)&&void 0!==h?h:null,this.outputItemTemplate=null!==(c=null==O?void 0:O.outputItemTemplate)&&void 0!==c?c:'<div class="cursor-pointer py-2 px-4 w-full text-sm text-gray-800 hover:bg-gray-100 rounded-lg focus:outline-none focus:bg-gray-100 dark:bg-neutral-900 dark:hover:bg-neutral-800 dark:text-neutral-200 dark:focus:bg-neutral-800" data-hs-combo-box-output-item>\n\t\t\t\t<div class="flex justify-between items-center w-full">\n\t\t\t\t\t<span data-hs-combo-box-search-text></span>\n\t\t\t\t\t<span class="hidden hs-combo-box-selected:block">\n\t\t\t\t\t\t<svg class="shrink-0 size-3.5 text-blue-600 dark:text-blue-500" xmlns="http:.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">\n\t\t\t\t\t\t\t<polyline points="20 6 9 17 4 12"></polyline>\n\t\t\t\t\t\t</svg>\n\t\t\t\t\t</span>\n\t\t\t\t</div>\n\t\t\t</div>',this.outputEmptyTemplate=null!==(u=null==O?void 0:O.outputEmptyTemplate)&&void 0!==u?u:'<div class="py-2 px-4 w-full text-sm text-gray-800 rounded-lg dark:bg-neutral-900 dark:text-neutral-200">Nothing found...</div>',this.outputLoaderTemplate=null!==(p=null==O?void 0:O.outputLoaderTemplate)&&void 0!==p?p:'<div class="flex justify-center items-center py-2 px-4 text-sm text-gray-800 rounded-lg bg-white dark:bg-neutral-900 dark:text-neutral-200">\n\t\t\t\t<div class="animate-spin inline-block size-6 border-[3px] border-current border-t-transparent text-blue-600 rounded-full dark:text-blue-500" role="status" aria-label="loading">\n\t\t\t\t\t<span class="sr-only">Loading...</span>\n\t\t\t\t</div>\n\t\t\t</div>',this.groupingType=null!==(m=null==O?void 0:O.groupingType)&&void 0!==m?m:null,this.groupingTitleTemplate=null!==(g=null==O?void 0:O.groupingTitleTemplate)&&void 0!==g?g:"default"===this.groupingType?'<div class="block mb-1 text-xs font-semibold uppercase text-blue-600 dark:text-blue-500"></div>':'<button type="button" class="py-2 px-3 inline-flex items-center gap-x-2 text-sm font-semibold whitespace-nowrap rounded-lg border border-transparent bg-blue-600 text-white hover:bg-blue-700 disabled:opacity-50 disabled:pointer-events-none"></button>',this.tabsWrapperTemplate=null!==(v=null==O?void 0:O.tabsWrapperTemplate)&&void 0!==v?v:'<div class="overflow-x-auto p-4"></div>',this.preventSelection=null!==(f=null==O?void 0:O.preventSelection)&&void 0!==f&&f,this.preventAutoPosition=null!==(y=null==O?void 0:O.preventAutoPosition)&&void 0!==y&&y,this.isOpenOnFocus=null!==(w=null==O?void 0:O.isOpenOnFocus)&&void 0!==w&&w,this.input=null!==(b=this.el.querySelector("[data-hs-combo-box-input]"))&&void 0!==b?b:null,this.output=null!==(C=this.el.querySelector("[data-hs-combo-box-output]"))&&void 0!==C?C:null,this.itemsWrapper=null!==(S=this.el.querySelector("[data-hs-combo-box-output-items-wrapper]"))&&void 0!==S?S:null,this.items=null!==(x=Array.from(this.el.querySelectorAll("[data-hs-combo-box-output-item]")))&&void 0!==x?x:[],this.tabs=[],this.toggle=null!==(I=this.el.querySelector("[data-hs-combo-box-toggle]"))&&void 0!==I?I:null,this.toggleClose=null!==(A=this.el.querySelector("[data-hs-combo-box-close]"))&&void 0!==A?A:null,this.toggleOpen=null!==(L=this.el.querySelector("[data-hs-combo-box-open]"))&&void 0!==L?L:null,this.outputPlaceholder=null,this.selected=this.value=null!==(T=this.el.querySelector("[data-hs-combo-box-input]").value)&&void 0!==T?T:"",this.isOpened=!1,this.isCurrent=!1,this.animationInProcess=!1,this.selectedGroup="all",this.init()}init(){this.createCollection(window.$hsComboBoxCollection,this),this.build()}build(){this.buildInput(),this.groupingType&&this.setGroups(),this.buildItems(),this.preventVisibility&&(this.preventAutoPosition||this.recalculateDirection()),this.toggle&&this.buildToggle(),this.toggleClose&&this.buildToggleClose(),this.toggleOpen&&this.buildToggleOpen()}setResultAndRender(t=""){let e=this.preventVisibility?this.input.value:t;this.setResults(e),this.apiSearchQuery&&this.itemsFromJson()}buildInput(){this.isOpenOnFocus&&this.input.addEventListener("focus",(()=>{this.isOpened||(this.setResultAndRender(),this.open())})),this.input.addEventListener("input",(0,s.sg)((t=>{this.setResultAndRender(t.target.value),""!==this.input.value?this.el.classList.add("has-value"):this.el.classList.remove("has-value"),this.isOpened||this.open()})))}buildItems(){this.output.role="listbox",this.output.tabIndex=-1,this.output.ariaOrientation="vertical",this.apiUrl?this.itemsFromJson():(this.itemsWrapper?this.itemsWrapper.innerHTML="":this.output.innerHTML="",this.itemsFromHtml())}setResults(t){this.value=t,this.resultItems(),this.hasVisibleItems()?this.destroyOutputPlaceholder():this.buildOutputPlaceholder()}isItemExists(t){return this.items.some((e=>{var i,s,n;const o=null!==(i=e.getAttribute("data-hs-combo-box-output-item-group-field"))&&void 0!==i?i:null,l=null!==(s=JSON.parse(e.getAttribute("data-hs-combo-box-output-item")))&&void 0!==s?s:null;let a=null;return o&&(null===(n=null==l?void 0:l.group)||void 0===n?void 0:n.name)&&(a=t[o]),Array.from(e.querySelectorAll("[data-hs-combo-box-search-text]")).some((e=>{var i;return(null===(i=null==l?void 0:l.group)||void 0===i?void 0:i.name)&&a?a===l.group.name&&e.getAttribute("data-hs-combo-box-search-text")===t[e.getAttribute("data-hs-combo-box-output-item-field")]:e.getAttribute("data-hs-combo-box-search-text")===t[e.getAttribute(