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

@material-tailwind/html

Package Overview
Dependencies
Maintainers
0
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@material-tailwind/html - npm Package Compare versions

Comparing version 3.0.0-beta.2 to 3.0.0-beta.3

CHANGELOG.md

2

dist/material-tailwind.min.js

@@ -7,3 +7,3 @@ /*!

*/
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).MaterialTailwind={})}(this,(function(t){"use strict";let e=!1,n=null;function i(){return e||(e=!0,n=new Promise(((t,e)=>{if(window.Popper)return void t(window.Popper);const n=document.createElement("script");n.src="https://unpkg.com/@popperjs/core@2",n.defer=!0,n.onload=()=>{t(window.Popper)},n.onerror=()=>{e(new Error("Failed to load Popper.js"))},document.head.appendChild(n)}))),n}const o=new WeakSet;function r(t){const e=t.currentTarget.closest('[role="alert"]');e&&e.remove()}function s(){document.querySelectorAll("[data-dismiss='alert']").forEach((t=>{o.has(t)||(t.addEventListener("click",r),o.add(t))}))}"undefined"!=typeof window&&document.addEventListener("DOMContentLoaded",(()=>{s();new MutationObserver((()=>{s()})).observe(document.body,{childList:!0,subtree:!0})}));const a=new WeakSet;function c(t){const e=t.currentTarget,n=document.querySelector("[data-main-image]");n&&(n.src=e.src,document.querySelectorAll("[data-thumbnail]").forEach((t=>{t.classList.remove("active-thumbnail")})),e.classList.add("active-thumbnail"))}function l(){document.querySelectorAll("[data-thumbnail]").forEach((t=>{a.has(t)||(t.addEventListener("click",c),a.add(t))}))}function d(){document.querySelectorAll("[data-thumbnail]").forEach((t=>{a.has(t)&&(t.removeEventListener("click",c),a.delete(t))}))}"undefined"!=typeof window&&document.addEventListener("DOMContentLoaded",(()=>{l();new MutationObserver((()=>{l()})).observe(document.body,{childList:!0,subtree:!0})}));const u=new WeakSet;function p(t){const e=t.currentTarget;if(!e)return;const n=e.getAttribute("data-target");if(n&&n.startsWith("#")){const t=document.querySelector(n),i="true"===e.getAttribute("aria-expanded");if(t){t.style.maxHeight=i?"0":`${t.scrollHeight}px`,e.setAttribute("aria-expanded",`${!i}`);const n=e.querySelector("[data-icon]");n&&n.classList.toggle("rotate-180",!i)}}}function f(){document.querySelectorAll("[data-toggle='collapse']").forEach((t=>{u.has(t)||(t.addEventListener("click",p),u.add(t))}))}"undefined"!=typeof window&&document.addEventListener("DOMContentLoaded",(()=>{f();new MutationObserver((()=>{f()})).observe(document.body,{childList:!0,subtree:!0})}));function h(t,e,n,i){return new(n||(n=Promise))((function(o,r){function s(t){try{c(i.next(t))}catch(t){r(t)}}function a(t){try{c(i.throw(t))}catch(t){r(t)}}function c(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}c((i=i.apply(t,e||[])).next())}))}"function"==typeof SuppressedError&&SuppressedError;var m="top",v="bottom",g="right",y="left",b="auto",E=[m,v,g,y],w="start",L="end",x="viewport",S="popper",A=E.reduce((function(t,e){return t.concat([e+"-"+w,e+"-"+L])}),[]),O=[].concat(E,[b]).reduce((function(t,e){return t.concat([e,e+"-"+w,e+"-"+L])}),[]),k=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function C(t){return t?(t.nodeName||"").toLowerCase():null}function T(t){if(null==t)return window;if("[object Window]"!==t.toString()){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function q(t){return t instanceof T(t).Element||t instanceof Element}function D(t){return t instanceof T(t).HTMLElement||t instanceof HTMLElement}function M(t){return"undefined"!=typeof ShadowRoot&&(t instanceof T(t).ShadowRoot||t instanceof ShadowRoot)}var I={name:"applyStyles",enabled:!0,phase:"write",fn:function(t){var e=t.state;Object.keys(e.elements).forEach((function(t){var n=e.styles[t]||{},i=e.attributes[t]||{},o=e.elements[t];D(o)&&C(o)&&(Object.assign(o.style,n),Object.keys(i).forEach((function(t){var e=i[t];!1===e?o.removeAttribute(t):o.setAttribute(t,!0===e?"":e)})))}))},effect:function(t){var e=t.state,n={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,n.popper),e.styles=n,e.elements.arrow&&Object.assign(e.elements.arrow.style,n.arrow),function(){Object.keys(e.elements).forEach((function(t){var i=e.elements[t],o=e.attributes[t]||{},r=Object.keys(e.styles.hasOwnProperty(t)?e.styles[t]:n[t]).reduce((function(t,e){return t[e]="",t}),{});D(i)&&C(i)&&(Object.assign(i.style,r),Object.keys(o).forEach((function(t){i.removeAttribute(t)})))}))}},requires:["computeStyles"]};function H(t){return t.split("-")[0]}var j=Math.max,_=Math.min,B=Math.round;function W(){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 P(){return!/^((?!chrome|android).)*safari/i.test(W())}function N(t,e,n){void 0===e&&(e=!1),void 0===n&&(n=!1);var i=t.getBoundingClientRect(),o=1,r=1;e&&D(t)&&(o=t.offsetWidth>0&&B(i.width)/t.offsetWidth||1,r=t.offsetHeight>0&&B(i.height)/t.offsetHeight||1);var s=(q(t)?T(t):window).visualViewport,a=!P()&&n,c=(i.left+(a&&s?s.offsetLeft:0))/o,l=(i.top+(a&&s?s.offsetTop:0))/r,d=i.width/o,u=i.height/r;return{width:d,height:u,top:l,right:c+d,bottom:l+u,left:c,x:c,y:l}}function R(t){var e=N(t),n=t.offsetWidth,i=t.offsetHeight;return Math.abs(e.width-n)<=1&&(n=e.width),Math.abs(e.height-i)<=1&&(i=e.height),{x:t.offsetLeft,y:t.offsetTop,width:n,height:i}}function V(t,e){var n=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(n&&M(n)){var i=e;do{if(i&&t.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function $(t){return T(t).getComputedStyle(t)}function z(t){return["table","td","th"].indexOf(C(t))>=0}function F(t){return((q(t)?t.ownerDocument:t.document)||window.document).documentElement}function G(t){return"html"===C(t)?t:t.assignedSlot||t.parentNode||(M(t)?t.host:null)||F(t)}function U(t){return D(t)&&"fixed"!==$(t).position?t.offsetParent:null}function X(t){for(var e=T(t),n=U(t);n&&z(n)&&"static"===$(n).position;)n=U(n);return n&&("html"===C(n)||"body"===C(n)&&"static"===$(n).position)?e:n||function(t){var e=/firefox/i.test(W());if(/Trident/i.test(W())&&D(t)&&"fixed"===$(t).position)return null;var n=G(t);for(M(n)&&(n=n.host);D(n)&&["html","body"].indexOf(C(n))<0;){var i=$(n);if("none"!==i.transform||"none"!==i.perspective||"paint"===i.contain||-1!==["transform","perspective"].indexOf(i.willChange)||e&&"filter"===i.willChange||e&&i.filter&&"none"!==i.filter)return n;n=n.parentNode}return null}(t)||e}function Y(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function K(t,e,n){return j(t,_(e,n))}function J(t){return Object.assign({},{top:0,right:0,bottom:0,left:0},t)}function Q(t,e){return e.reduce((function(e,n){return e[n]=t,e}),{})}var Z={name:"arrow",enabled:!0,phase:"main",fn:function(t){var e,n=t.state,i=t.name,o=t.options,r=n.elements.arrow,s=n.modifiersData.popperOffsets,a=H(n.placement),c=Y(a),l=[y,g].indexOf(a)>=0?"height":"width";if(r&&s){var d=function(t,e){return J("number"!=typeof(t="function"==typeof t?t(Object.assign({},e.rects,{placement:e.placement})):t)?t:Q(t,E))}(o.padding,n),u=R(r),p="y"===c?m:y,f="y"===c?v:g,h=n.rects.reference[l]+n.rects.reference[c]-s[c]-n.rects.popper[l],b=s[c]-n.rects.reference[c],w=X(r),L=w?"y"===c?w.clientHeight||0:w.clientWidth||0:0,x=h/2-b/2,S=d[p],A=L-u[l]-d[f],O=L/2-u[l]/2+x,k=K(S,O,A),C=c;n.modifiersData[i]=((e={})[C]=k,e.centerOffset=k-O,e)}},effect:function(t){var e=t.state,n=t.options.element,i=void 0===n?"[data-popper-arrow]":n;null!=i&&("string"!=typeof i||(i=e.elements.popper.querySelector(i)))&&V(e.elements.popper,i)&&(e.elements.arrow=i)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function tt(t){return t.split("-")[1]}var et={top:"auto",right:"auto",bottom:"auto",left:"auto"};function nt(t){var e,n=t.popper,i=t.popperRect,o=t.placement,r=t.variation,s=t.offsets,a=t.position,c=t.gpuAcceleration,l=t.adaptive,d=t.roundOffsets,u=t.isFixed,p=s.x,f=void 0===p?0:p,h=s.y,b=void 0===h?0:h,E="function"==typeof d?d({x:f,y:b}):{x:f,y:b};f=E.x,b=E.y;var w=s.hasOwnProperty("x"),x=s.hasOwnProperty("y"),S=y,A=m,O=window;if(l){var k=X(n),C="clientHeight",q="clientWidth";if(k===T(n)&&"static"!==$(k=F(n)).position&&"absolute"===a&&(C="scrollHeight",q="scrollWidth"),o===m||(o===y||o===g)&&r===L)A=v,b-=(u&&k===O&&O.visualViewport?O.visualViewport.height:k[C])-i.height,b*=c?1:-1;if(o===y||(o===m||o===v)&&r===L)S=g,f-=(u&&k===O&&O.visualViewport?O.visualViewport.width:k[q])-i.width,f*=c?1:-1}var D,M=Object.assign({position:a},l&&et),I=!0===d?function(t,e){var n=t.x,i=t.y,o=e.devicePixelRatio||1;return{x:B(n*o)/o||0,y:B(i*o)/o||0}}({x:f,y:b},T(n)):{x:f,y:b};return f=I.x,b=I.y,c?Object.assign({},M,((D={})[A]=x?"0":"",D[S]=w?"0":"",D.transform=(O.devicePixelRatio||1)<=1?"translate("+f+"px, "+b+"px)":"translate3d("+f+"px, "+b+"px, 0)",D)):Object.assign({},M,((e={})[A]=x?b+"px":"",e[S]=w?f+"px":"",e.transform="",e))}var it={passive:!0};var ot={left:"right",right:"left",bottom:"top",top:"bottom"};function rt(t){return t.replace(/left|right|bottom|top/g,(function(t){return ot[t]}))}var st={start:"end",end:"start"};function at(t){return t.replace(/start|end/g,(function(t){return st[t]}))}function ct(t){var e=T(t);return{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function lt(t){return N(F(t)).left+ct(t).scrollLeft}function dt(t){var e=$(t),n=e.overflow,i=e.overflowX,o=e.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+i)}function ut(t){return["html","body","#document"].indexOf(C(t))>=0?t.ownerDocument.body:D(t)&&dt(t)?t:ut(G(t))}function pt(t,e){var n;void 0===e&&(e=[]);var i=ut(t),o=i===(null==(n=t.ownerDocument)?void 0:n.body),r=T(i),s=o?[r].concat(r.visualViewport||[],dt(i)?i:[]):i,a=e.concat(s);return o?a:a.concat(pt(G(s)))}function ft(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function ht(t,e,n){return e===x?ft(function(t,e){var n=T(t),i=F(t),o=n.visualViewport,r=i.clientWidth,s=i.clientHeight,a=0,c=0;if(o){r=o.width,s=o.height;var l=P();(l||!l&&"fixed"===e)&&(a=o.offsetLeft,c=o.offsetTop)}return{width:r,height:s,x:a+lt(t),y:c}}(t,n)):q(e)?function(t,e){var n=N(t,!1,"fixed"===e);return n.top=n.top+t.clientTop,n.left=n.left+t.clientLeft,n.bottom=n.top+t.clientHeight,n.right=n.left+t.clientWidth,n.width=t.clientWidth,n.height=t.clientHeight,n.x=n.left,n.y=n.top,n}(e,n):ft(function(t){var e,n=F(t),i=ct(t),o=null==(e=t.ownerDocument)?void 0:e.body,r=j(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=j(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),a=-i.scrollLeft+lt(t),c=-i.scrollTop;return"rtl"===$(o||n).direction&&(a+=j(n.clientWidth,o?o.clientWidth:0)-r),{width:r,height:s,x:a,y:c}}(F(t)))}function mt(t,e,n,i){var o="clippingParents"===e?function(t){var e=pt(G(t)),n=["absolute","fixed"].indexOf($(t).position)>=0&&D(t)?X(t):t;return q(n)?e.filter((function(t){return q(t)&&V(t,n)&&"body"!==C(t)})):[]}(t):[].concat(e),r=[].concat(o,[n]),s=r[0],a=r.reduce((function(e,n){var o=ht(t,n,i);return e.top=j(o.top,e.top),e.right=_(o.right,e.right),e.bottom=_(o.bottom,e.bottom),e.left=j(o.left,e.left),e}),ht(t,s,i));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function vt(t){var e,n=t.reference,i=t.element,o=t.placement,r=o?H(o):null,s=o?tt(o):null,a=n.x+n.width/2-i.width/2,c=n.y+n.height/2-i.height/2;switch(r){case m:e={x:a,y:n.y-i.height};break;case v:e={x:a,y:n.y+n.height};break;case g:e={x:n.x+n.width,y:c};break;case y:e={x:n.x-i.width,y:c};break;default:e={x:n.x,y:n.y}}var l=r?Y(r):null;if(null!=l){var d="y"===l?"height":"width";switch(s){case w:e[l]=e[l]-(n[d]/2-i[d]/2);break;case L:e[l]=e[l]+(n[d]/2-i[d]/2)}}return e}function gt(t,e){void 0===e&&(e={});var n=e,i=n.placement,o=void 0===i?t.placement:i,r=n.strategy,s=void 0===r?t.strategy:r,a=n.boundary,c=void 0===a?"clippingParents":a,l=n.rootBoundary,d=void 0===l?x:l,u=n.elementContext,p=void 0===u?S:u,f=n.altBoundary,h=void 0!==f&&f,y=n.padding,b=void 0===y?0:y,w=J("number"!=typeof b?b:Q(b,E)),L=p===S?"reference":S,A=t.rects.popper,O=t.elements[h?L:p],k=mt(q(O)?O:O.contextElement||F(t.elements.popper),c,d,s),C=N(t.elements.reference),T=vt({reference:C,element:A,placement:o}),D=ft(Object.assign({},A,T)),M=p===S?D:C,I={top:k.top-M.top+w.top,bottom:M.bottom-k.bottom+w.bottom,left:k.left-M.left+w.left,right:M.right-k.right+w.right},H=t.modifiersData.offset;if(p===S&&H){var j=H[o];Object.keys(I).forEach((function(t){var e=[g,v].indexOf(t)>=0?1:-1,n=[m,v].indexOf(t)>=0?"y":"x";I[t]+=j[n]*e}))}return I}function yt(t,e){void 0===e&&(e={});var n=e,i=n.placement,o=n.boundary,r=n.rootBoundary,s=n.padding,a=n.flipVariations,c=n.allowedAutoPlacements,l=void 0===c?O:c,d=tt(i),u=d?a?A:A.filter((function(t){return tt(t)===d})):E,p=u.filter((function(t){return l.indexOf(t)>=0}));0===p.length&&(p=u);var f=p.reduce((function(e,n){return e[n]=gt(t,{placement:n,boundary:o,rootBoundary:r,padding:s})[H(n)],e}),{});return Object.keys(f).sort((function(t,e){return f[t]-f[e]}))}var bt={name:"flip",enabled:!0,phase:"main",fn:function(t){var e=t.state,n=t.options,i=t.name;if(!e.modifiersData[i]._skip){for(var o=n.mainAxis,r=void 0===o||o,s=n.altAxis,a=void 0===s||s,c=n.fallbackPlacements,l=n.padding,d=n.boundary,u=n.rootBoundary,p=n.altBoundary,f=n.flipVariations,h=void 0===f||f,E=n.allowedAutoPlacements,L=e.options.placement,x=H(L),S=c||(x===L||!h?[rt(L)]:function(t){if(H(t)===b)return[];var e=rt(t);return[at(t),e,at(e)]}(L)),A=[L].concat(S).reduce((function(t,n){return t.concat(H(n)===b?yt(e,{placement:n,boundary:d,rootBoundary:u,padding:l,flipVariations:h,allowedAutoPlacements:E}):n)}),[]),O=e.rects.reference,k=e.rects.popper,C=new Map,T=!0,q=A[0],D=0;D<A.length;D++){var M=A[D],I=H(M),j=tt(M)===w,_=[m,v].indexOf(I)>=0,B=_?"width":"height",W=gt(e,{placement:M,boundary:d,rootBoundary:u,altBoundary:p,padding:l}),P=_?j?g:y:j?v:m;O[B]>k[B]&&(P=rt(P));var N=rt(P),R=[];if(r&&R.push(W[I]<=0),a&&R.push(W[P]<=0,W[N]<=0),R.every((function(t){return t}))){q=M,T=!1;break}C.set(M,R)}if(T)for(var V=function(t){var e=A.find((function(e){var n=C.get(e);if(n)return n.slice(0,t).every((function(t){return t}))}));if(e)return q=e,"break"},$=h?3:1;$>0;$--){if("break"===V($))break}e.placement!==q&&(e.modifiersData[i]._skip=!0,e.placement=q,e.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function Et(t,e,n){return void 0===n&&(n={x:0,y:0}),{top:t.top-e.height-n.y,right:t.right-e.width+n.x,bottom:t.bottom-e.height+n.y,left:t.left-e.width-n.x}}function wt(t){return[m,g,v,y].some((function(e){return t[e]>=0}))}var Lt={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(t){var e=t.state,n=t.options,i=t.name,o=n.offset,r=void 0===o?[0,0]:o,s=O.reduce((function(t,n){return t[n]=function(t,e,n){var i=H(t),o=[y,m].indexOf(i)>=0?-1:1,r="function"==typeof n?n(Object.assign({},e,{placement:t})):n,s=r[0],a=r[1];return s=s||0,a=(a||0)*o,[y,g].indexOf(i)>=0?{x:a,y:s}:{x:s,y:a}}(n,e.rects,r),t}),{}),a=s[e.placement],c=a.x,l=a.y;null!=e.modifiersData.popperOffsets&&(e.modifiersData.popperOffsets.x+=c,e.modifiersData.popperOffsets.y+=l),e.modifiersData[i]=s}};var xt={name:"preventOverflow",enabled:!0,phase:"main",fn:function(t){var e=t.state,n=t.options,i=t.name,o=n.mainAxis,r=void 0===o||o,s=n.altAxis,a=void 0!==s&&s,c=n.boundary,l=n.rootBoundary,d=n.altBoundary,u=n.padding,p=n.tether,f=void 0===p||p,h=n.tetherOffset,b=void 0===h?0:h,E=gt(e,{boundary:c,rootBoundary:l,padding:u,altBoundary:d}),L=H(e.placement),x=tt(e.placement),S=!x,A=Y(L),O="x"===A?"y":"x",k=e.modifiersData.popperOffsets,C=e.rects.reference,T=e.rects.popper,q="function"==typeof b?b(Object.assign({},e.rects,{placement:e.placement})):b,D="number"==typeof q?{mainAxis:q,altAxis:q}:Object.assign({mainAxis:0,altAxis:0},q),M=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,I={x:0,y:0};if(k){if(r){var B,W="y"===A?m:y,P="y"===A?v:g,N="y"===A?"height":"width",V=k[A],$=V+E[W],z=V-E[P],F=f?-T[N]/2:0,G=x===w?C[N]:T[N],U=x===w?-T[N]:-C[N],J=e.elements.arrow,Q=f&&J?R(J):{width:0,height:0},Z=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},et=Z[W],nt=Z[P],it=K(0,C[N],Q[N]),ot=S?C[N]/2-F-it-et-D.mainAxis:G-it-et-D.mainAxis,rt=S?-C[N]/2+F+it+nt+D.mainAxis:U+it+nt+D.mainAxis,st=e.elements.arrow&&X(e.elements.arrow),at=st?"y"===A?st.clientTop||0:st.clientLeft||0:0,ct=null!=(B=null==M?void 0:M[A])?B:0,lt=V+rt-ct,dt=K(f?_($,V+ot-ct-at):$,V,f?j(z,lt):z);k[A]=dt,I[A]=dt-V}if(a){var ut,pt="x"===A?m:y,ft="x"===A?v:g,ht=k[O],mt="y"===O?"height":"width",vt=ht+E[pt],yt=ht-E[ft],bt=-1!==[m,y].indexOf(L),Et=null!=(ut=null==M?void 0:M[O])?ut:0,wt=bt?vt:ht-C[mt]-T[mt]-Et+D.altAxis,Lt=bt?ht+C[mt]+T[mt]-Et-D.altAxis:yt,xt=f&&bt?function(t,e,n){var i=K(t,e,n);return i>n?n:i}(wt,ht,Lt):K(f?wt:vt,ht,f?Lt:yt);k[O]=xt,I[O]=xt-ht}e.modifiersData[i]=I}},requiresIfExists:["offset"]};function St(t,e,n){void 0===n&&(n=!1);var i,o,r=D(e),s=D(e)&&function(t){var e=t.getBoundingClientRect(),n=B(e.width)/t.offsetWidth||1,i=B(e.height)/t.offsetHeight||1;return 1!==n||1!==i}(e),a=F(e),c=N(t,s,n),l={scrollLeft:0,scrollTop:0},d={x:0,y:0};return(r||!r&&!n)&&(("body"!==C(e)||dt(a))&&(l=(i=e)!==T(i)&&D(i)?{scrollLeft:(o=i).scrollLeft,scrollTop:o.scrollTop}:ct(i)),D(e)?((d=N(e,!0)).x+=e.clientLeft,d.y+=e.clientTop):a&&(d.x=lt(a))),{x:c.left+l.scrollLeft-d.x,y:c.top+l.scrollTop-d.y,width:c.width,height:c.height}}function At(t){var e=new Map,n=new Set,i=[];function o(t){n.add(t.name),[].concat(t.requires||[],t.requiresIfExists||[]).forEach((function(t){if(!n.has(t)){var i=e.get(t);i&&o(i)}})),i.push(t)}return t.forEach((function(t){e.set(t.name,t)})),t.forEach((function(t){n.has(t.name)||o(t)})),i}var Ot={placement:"bottom",modifiers:[],strategy:"absolute"};function kt(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return!e.some((function(t){return!(t&&"function"==typeof t.getBoundingClientRect)}))}function Ct(t){void 0===t&&(t={});var e=t,n=e.defaultModifiers,i=void 0===n?[]:n,o=e.defaultOptions,r=void 0===o?Ot:o;return function(t,e,n){void 0===n&&(n=r);var o,s,a={placement:"bottom",orderedModifiers:[],options:Object.assign({},Ot,r),modifiersData:{},elements:{reference:t,popper:e},attributes:{},styles:{}},c=[],l=!1,d={state:a,setOptions:function(n){var o="function"==typeof n?n(a.options):n;u(),a.options=Object.assign({},r,a.options,o),a.scrollParents={reference:q(t)?pt(t):t.contextElement?pt(t.contextElement):[],popper:pt(e)};var s,l,p=function(t){var e=At(t);return k.reduce((function(t,n){return t.concat(e.filter((function(t){return t.phase===n})))}),[])}((s=[].concat(i,a.options.modifiers),l=s.reduce((function(t,e){var n=t[e.name];return t[e.name]=n?Object.assign({},n,e,{options:Object.assign({},n.options,e.options),data:Object.assign({},n.data,e.data)}):e,t}),{}),Object.keys(l).map((function(t){return l[t]}))));return a.orderedModifiers=p.filter((function(t){return t.enabled})),a.orderedModifiers.forEach((function(t){var e=t.name,n=t.options,i=void 0===n?{}:n,o=t.effect;if("function"==typeof o){var r=o({state:a,name:e,instance:d,options:i}),s=function(){};c.push(r||s)}})),d.update()},forceUpdate:function(){if(!l){var t=a.elements,e=t.reference,n=t.popper;if(kt(e,n)){a.rects={reference:St(e,X(n),"fixed"===a.options.strategy),popper:R(n)},a.reset=!1,a.placement=a.options.placement,a.orderedModifiers.forEach((function(t){return a.modifiersData[t.name]=Object.assign({},t.data)}));for(var i=0;i<a.orderedModifiers.length;i++)if(!0!==a.reset){var o=a.orderedModifiers[i],r=o.fn,s=o.options,c=void 0===s?{}:s,u=o.name;"function"==typeof r&&(a=r({state:a,options:c,name:u,instance:d})||a)}else a.reset=!1,i=-1}}},update:(o=function(){return new Promise((function(t){d.forceUpdate(),t(a)}))},function(){return s||(s=new Promise((function(t){Promise.resolve().then((function(){s=void 0,t(o())}))}))),s}),destroy:function(){u(),l=!0}};if(!kt(t,e))return d;function u(){c.forEach((function(t){return t()})),c=[]}return d.setOptions(n).then((function(t){!l&&n.onFirstUpdate&&n.onFirstUpdate(t)})),d}}var Tt=Ct({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(t){var e=t.state,n=t.instance,i=t.options,o=i.scroll,r=void 0===o||o,s=i.resize,a=void 0===s||s,c=T(e.elements.popper),l=[].concat(e.scrollParents.reference,e.scrollParents.popper);return r&&l.forEach((function(t){t.addEventListener("scroll",n.update,it)})),a&&c.addEventListener("resize",n.update,it),function(){r&&l.forEach((function(t){t.removeEventListener("scroll",n.update,it)})),a&&c.removeEventListener("resize",n.update,it)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(t){var e=t.state,n=t.name;e.modifiersData[n]=vt({reference:e.rects.reference,element:e.rects.popper,placement:e.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(t){var e=t.state,n=t.options,i=n.gpuAcceleration,o=void 0===i||i,r=n.adaptive,s=void 0===r||r,a=n.roundOffsets,c=void 0===a||a,l={placement:H(e.placement),variation:tt(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:o,isFixed:"fixed"===e.options.strategy};null!=e.modifiersData.popperOffsets&&(e.styles.popper=Object.assign({},e.styles.popper,nt(Object.assign({},l,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:s,roundOffsets:c})))),null!=e.modifiersData.arrow&&(e.styles.arrow=Object.assign({},e.styles.arrow,nt(Object.assign({},l,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})},data:{}},I,Lt,bt,xt,Z,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(t){var e=t.state,n=t.name,i=e.rects.reference,o=e.rects.popper,r=e.modifiersData.preventOverflow,s=gt(e,{elementContext:"reference"}),a=gt(e,{altBoundary:!0}),c=Et(s,i),l=Et(a,o,r),d=wt(c),u=wt(l);e.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:l,isReferenceHidden:d,hasPopperEscaped:u},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":u})}}]});const qt=new WeakSet;let Dt=[],Mt=class{constructor(t){this.popperInstance=null,this.dropdown=t,this.button=this.dropdown.querySelector('[data-toggle="dropdown"]'),this.menu=this.dropdown.querySelector('[data-role="menu"]'),this.placement=this.dropdown.getAttribute("data-placement")||"bottom-start",this.init()}init(){return h(this,void 0,void 0,(function*(){yield i(),this.popperInstance=Tt(this.button,this.menu,{placement:this.placement,modifiers:[{name:"offset",options:{offset:[0,5]}}]}),this.button.addEventListener("click",(t=>{t.stopPropagation(),this.toggleDropdown()})),document.addEventListener("click",(t=>{this.dropdown.contains(t.target)||this.closeDropdown()})),Dt.push({dropdown:this.dropdown,popperInstance:this.popperInstance})}))}toggleDropdown(){"true"===this.button.getAttribute("aria-expanded")?this.closeDropdown():this.openDropdown()}openDropdown(){this.button.setAttribute("aria-expanded","true"),this.menu.hidden=!1,this.menu.classList.remove("hidden"),this.popperInstance&&this.popperInstance.update()}closeDropdown(){this.button.setAttribute("aria-expanded","false"),this.menu.hidden=!0,this.menu.classList.add("hidden")}};function It(){document.querySelectorAll(".dropdown").forEach((t=>{qt.has(t)||(new Mt(t),qt.add(t))}))}function Ht(){Dt.forEach((({dropdown:t,popperInstance:e})=>{e&&e.destroy(),t&&qt.delete(t)})),Dt=[]}"undefined"!=typeof window&&"undefined"!=typeof document&&document.addEventListener("DOMContentLoaded",(()=>{!function(){h(this,void 0,void 0,(function*(){yield i(),It()}))}();new MutationObserver((()=>{It()})).observe(document.body,{childList:!0,subtree:!0})}));const jt=new WeakSet;let _t=[];function Bt(){document.querySelectorAll("[data-toggle='popover']").forEach((t=>{var e;if(jt.has(t))return;const n=t.getAttribute("data-placement")||"top",o=t.getAttribute("data-popover-class")||"popover-default",r=t.getAttribute("data-popover-content"),s=t.hasAttribute("data-open");let a=null,c=null,l=null;const d=(null===(e=t.nextElementSibling)||void 0===e?void 0:e.matches("[data-popover-content]"))?t.nextElementSibling:null;function u(){return h(this,void 0,void 0,(function*(){if(yield i(),c=document.createElement("div"),c.className=o,d)l=d.cloneNode(!0),l.classList.remove("hidden"),c.appendChild(l);else{if(!r)return void console.error("No content provided for popover:",t);c.textContent=r}document.body.appendChild(c),a=Tt(t,c,{placement:n,modifiers:[{name:"offset",options:{offset:[0,8]}}]}),requestAnimationFrame((()=>{c&&(c.style.opacity="1",c.style.transform="scale(1)",null==a||a.update())})),a&&_t.push({trigger:t,popoverElement:c,popperInstance:null})}))}t.addEventListener("click",(e=>{e.stopPropagation(),a?(a&&(a.destroy(),a=null),c&&(c.remove(),c=null),l&&l.classList.add("hidden"),_t=_t.filter((e=>e.trigger!==t))):u()})),s&&u(),jt.add(t)}))}function Wt(){_t.forEach((({popoverElement:t,popperInstance:e})=>{e&&e.destroy(),t&&t.remove()})),_t=[]}"undefined"!=typeof window&&"undefined"!=typeof document&&document.addEventListener("DOMContentLoaded",(()=>{!function(){h(this,void 0,void 0,(function*(){yield i(),Bt()}))}();new MutationObserver((()=>{Bt()})).observe(document.body,{childList:!0,subtree:!0})}));const Pt=new WeakSet;let Nt=[];function Rt(){document.querySelectorAll("[data-toggle='tooltip']").forEach((t=>{var e;if(Pt.has(t))return;const n=t.getAttribute("data-title")||"",o=t.getAttribute("data-placement")||"top",r=t.getAttribute("data-tooltip-class")||"tooltip-default";let s=null,a=null,c=null;(null===(e=t.nextElementSibling)||void 0===e?void 0:e.matches("[data-tooltip-content]"))&&(c=t.nextElementSibling),t.addEventListener("mouseenter",(function(){return h(this,void 0,void 0,(function*(){if(!a){if(yield i(),a=document.createElement("div"),a.className=r,c){const t=c.cloneNode(!0);t.classList.remove("hidden"),a.appendChild(t)}else{if(!n)return void console.warn("No tooltip content provided for:",t);a.textContent=n}document.body.appendChild(a),s=Tt(t,a,{placement:o,modifiers:[{name:"offset",options:{offset:[0,8]}}]}),Nt.push({trigger:t,tooltipElement:a,tooltipInstance:s})}}))})),t.addEventListener("mouseleave",(function(){s&&(s.destroy(),s=null),a&&(a.remove(),a=null),Nt=Nt.filter((e=>e.trigger!==t))})),Pt.add(t)}))}function Vt(){Nt.forEach((({tooltipElement:t,tooltipInstance:e})=>{e&&e.destroy(),t&&t.remove()})),Nt=[]}"undefined"!=typeof window&&"undefined"!=typeof document&&document.addEventListener("DOMContentLoaded",(()=>{!function(){h(this,void 0,void 0,(function*(){yield i(),Rt()}))}();new MutationObserver((()=>{Rt()})).observe(document.body,{childList:!0,subtree:!0})}));const $t=new WeakSet;function zt(){document.querySelectorAll(".tab-group").forEach((t=>{if($t.has(t))return;const e=t.querySelector("[role='tablist']"),n=(null==e?void 0:e.querySelectorAll(".tab-link"))||[],i=t.querySelectorAll(".tab-content"),o=null==e?void 0:e.querySelector(".tab-indicator"),r="vertical"===t.getAttribute("data-orientation");function s(t){n.forEach((t=>t.classList.remove("active"))),i.forEach((t=>{t.classList.add("hidden"),t.classList.remove("block")})),t.classList.add("active");const s=t.getAttribute("data-tab-target"),a=s?document.getElementById(s):null;a&&(a.classList.add("block"),a.classList.remove("hidden")),function(t){const n=t.getBoundingClientRect(),i=null==e?void 0:e.getBoundingClientRect();i&&o&&requestAnimationFrame((()=>{r?(o.style.transform=`translateY(${n.top-i.top}px)`,o.style.height=`${n.height}px`):(o.style.transform=`translateX(${n.left-i.left}px)`,o.style.width=`${n.width}px`),o.classList.remove("hidden"),o.style.opacity="1",o.style.scale="1"}))}(t)}!function(){const t=null==e?void 0:e.querySelector(".tab-link.active");t?s(t):n.length>0&&s(n[0]),n.forEach((t=>{t.addEventListener("click",(e=>{e.preventDefault(),s(t)}))}))}(),$t.add(t)}))}function Ft(){document.querySelectorAll(".tab-group").forEach((t=>{if($t.has(t)){const e=t.querySelector("[role='tablist']");((null==e?void 0:e.querySelectorAll(".tab-link"))||[]).forEach((t=>{if(t.parentNode){const e=t.cloneNode(!0);t.parentNode.replaceChild(e,t)}})),$t.delete(t)}}))}"undefined"!=typeof window&&document.addEventListener("DOMContentLoaded",(()=>{zt();new MutationObserver((()=>{zt()})).observe(document.body,{childList:!0,subtree:!0})}));const Gt=new WeakSet;let Ut=new WeakSet,Xt=[];function Yt(t){const e=t.currentTarget;if(!e)return;const n=e.getAttribute("data-target");if(!n)return;const i=document.querySelector(n);if(!i)return;const o=i.classList.contains("pointer-events-none");i.classList.toggle("opacity-0",!o),i.classList.toggle("opacity-100",o),o?i.classList.remove("pointer-events-none"):setTimeout((()=>i.classList.add("pointer-events-none")),300);const r=i.querySelector(o?".scale-95":".scale-100");r&&(r.classList.toggle("scale-95",!o),r.classList.toggle("scale-100",o)),i.setAttribute("aria-hidden",String(!o)),o?(i.addEventListener("click",Jt),Xt.push(i)):(i.removeEventListener("click",Jt),Xt=Xt.filter((t=>t!==i)))}function Kt(t){let e=null;if(t instanceof Event){const n=t.currentTarget;if(!n)return;e=n.closest(".fixed")}else e=t;if(!e)return;e.classList.add("opacity-0"),e.classList.remove("opacity-100");const n=e.querySelector(".scale-100");n&&(n.classList.add("scale-95"),n.classList.remove("scale-100")),setTimeout((()=>{e.classList.add("pointer-events-none"),e.setAttribute("aria-hidden","true")}),300),e.removeEventListener("click",Jt),Xt=Xt.filter((t=>t!==e))}function Jt(t){const e=t.currentTarget;if(!e)return;const n=e.querySelector(".scale-100, .scale-95");n&&(n.contains(t.target)||Kt(e))}function Qt(){document.querySelectorAll("[data-toggle='modal']").forEach((t=>{Ut.has(t)||(t.addEventListener("click",Yt),Ut.add(t))})),document.querySelectorAll("[data-dismiss='modal']").forEach((t=>{Ut.has(t)||(t.addEventListener("click",Kt),Ut.add(t))}))}function Zt(){Xt.forEach((t=>{t.removeEventListener("click",Jt)})),Xt=[],Ut=new WeakSet}"undefined"!=typeof window&&"undefined"!=typeof document&&document.addEventListener("DOMContentLoaded",(()=>{Qt();new MutationObserver((()=>{Qt()})).observe(document.body,{childList:!0,subtree:!0})}));const te=new WeakSet,ee=(t,e,n)=>{t.style.maxHeight=n?`${t.scrollHeight}px`:"0",e.setAttribute("aria-expanded",String(n)),((t,e,n=!1)=>{const i=t.querySelector("[data-accordion-icon-open]"),o=t.querySelector("[data-accordion-icon-close]"),r=t.querySelector("[data-accordion-icon]");i&&o&&(i.style.display=e?"block":"none",o.style.display=e?"none":"block"),r&&r.classList.toggle("rotate-180",n?e:!e)})(e,n)};function ne(t){const e=t.currentTarget;if("true"===e.getAttribute("aria-disabled"))return;const n=e.dataset.duiAccordionTarget,i=e.closest("[data-accordion-container]"),o=null==i?void 0:i.dataset.duiAccordionMode;if(null==n?void 0:n.startsWith("#")){const t=document.querySelector(n),r="true"===e.getAttribute("aria-expanded");"exclusive"===o&&i&&i.querySelectorAll("[data-accordion-toggle]").forEach((t=>{const e=t.dataset.duiAccordionTarget;if(e&&e!==n){const n=document.querySelector(e);n instanceof HTMLElement&&ee(n,t,!1)}})),t&&ee(t,e,!r)}}function ie(t){t=t.startsWith("#")?t:`#${t}`;const e=document.querySelector(t),n=document.querySelector(`[data-accordion-target="${t}"]`);if("true"===(null==n?void 0:n.getAttribute("aria-disabled"))||!e||!n)return;const i="true"===n.getAttribute("aria-expanded"),o=n.closest("[data-accordion-container]");"exclusive"===(null==o?void 0:o.dataset.duiAccordionMode)&&o&&o.querySelectorAll("[data-accordion-toggle]").forEach((e=>{const n=e.dataset.duiAccordionTarget;if("string"==typeof n&&n!==t){const t=document.querySelector(n);t instanceof HTMLElement&&ee(t,e,!1)}})),ee(e,n,!i)}function oe(){document.querySelectorAll("[data-accordion-toggle]").forEach((t=>{if(!te.has(t)){t.addEventListener("click",ne),te.add(t);const e=t.dataset.duiAccordionTarget;if("string"==typeof e){const n=document.querySelector(e);if(n instanceof HTMLElement){const e="true"===t.getAttribute("aria-expanded");ee(n,t,e)}}}}))}function re(){document.querySelectorAll("[data-accordion-toggle]").forEach((t=>{te.has(t)&&(t.removeEventListener("click",ne),te.delete(t))}))}"undefined"!=typeof window&&(window.toggleAccordionById=ie,document.addEventListener("DOMContentLoaded",(()=>{oe(),new MutationObserver(oe).observe(document.body,{childList:!0,subtree:!0})})));const se=new WeakSet;function ae(){document.querySelectorAll("[data-stepper-container]").forEach((t=>{if(!se.has(t)){se.add(t);const e=parseInt(t.getAttribute("data-initial-step")||"1",10);t.setAttribute("data-step",String(e)),function(t){const e=t.querySelectorAll("[data-step]"),n=t.querySelectorAll("[data-step-content]"),i=t.querySelectorAll("[data-stepper-prev]"),o=t.querySelectorAll("[data-stepper-next]");let r=parseInt(t.getAttribute("data-step")||"1",10);function s(){e.forEach(((t,e)=>{const n=e+1;t.setAttribute("data-active",String(n===r)),t.setAttribute("data-completed",String(n<r)),t.setAttribute("aria-disabled",String(n>r))})),n.forEach((t=>{parseInt(t.getAttribute("data-step-content")||"0",10)===r?t.classList.remove("hidden"):t.classList.add("hidden")})),i.forEach((t=>{t.disabled=1===r})),o.forEach((t=>{t.disabled=r===e.length}))}function a(){r<e.length&&(r++,t.setAttribute("data-step",String(r)),s())}function c(){r>1&&(r--,t.setAttribute("data-step",String(r)),s())}o.forEach((t=>{t.addEventListener("click",a)})),i.forEach((t=>{t.addEventListener("click",c)})),t.__stepperCleanup=()=>{o.forEach((t=>{t.removeEventListener("click",a)})),i.forEach((t=>{t.removeEventListener("click",c)}))},s()}(t)}}))}function ce(){document.querySelectorAll("[data-stepper-container]").forEach((t=>{t.__stepperCleanup&&(t.__stepperCleanup(),delete t.__stepperCleanup),se.delete(t)}))}"undefined"!=typeof window&&document.addEventListener("DOMContentLoaded",(()=>{ae(),new MutationObserver(ae).observe(document.body,{childList:!0,subtree:!0})}));const le={initAlert:s,initCollapse:f,initDropdowns:It,cleanupDropdowns:Ht,initPopovers:Bt,cleanupPopovers:Wt,initTooltips:Rt,cleanupTooltips:Vt,initTabs:zt,cleanupTabs:Ft,initModal:Qt,cleanupModals:Zt,initAccordion:oe,cleanupAccordions:re,toggleAccordionById:ie,initStepper:ae,cleanupSteppers:ce,initGallery:l,cleanupGallery:d};function de(){s(),f(),zt(),Qt(),oe(),ae(),l(),i().then((()=>{It(),Bt(),Rt()})).catch((t=>{console.error("Failed to load Popper.js:",t)}))}"undefined"!=typeof window&&"undefined"!=typeof document&&document.addEventListener("DOMContentLoaded",(()=>{de();new MutationObserver((()=>{s(),f(),oe(),ae(),l(),zt(),Qt(),It(),Bt(),Rt()})).observe(document.body,{childList:!0,subtree:!0}),window.DavidAI=Object.assign(Object.assign({},le),{initDavidAI:de})}));var ue=Object.assign(Object.assign({},le),{initDavidAI:de});t.Accordion=class{constructor(t,e={}){this.initialized=new WeakSet,this.toggleHandler=t=>{const e=t.currentTarget;this.toggle(e)},this.container=t,this.options=e,this.init()}init(){Array.from(this.container.children).filter((t=>t instanceof HTMLElement)).forEach((t=>{const e=t.nextElementSibling;if(e){this.initialized.add(t),t.addEventListener("click",this.toggleHandler);const n=this.options.allOpen||!1;this.setAccordionState(t,e,n)}})),this.options.allOpen&&this.showAll()}resolveElement(t){return"string"==typeof t?document.getElementById(t):t}toggle(t){const e=this.resolveElement(t);if(!e)return;const n=e.nextElementSibling;if(!n)return;const i="true"===e.getAttribute("aria-expanded");this.options.exclusive&&Array.from(this.container.children).forEach((t=>{if(t instanceof HTMLElement&&t!==e){const e=t.nextElementSibling;e&&this.setAccordionState(t,e,!1)}})),this.setAccordionState(e,n,!i)}show(t){const e=this.resolveElement(t);if(!e)return;const n=e.nextElementSibling;n&&this.setAccordionState(e,n,!0)}hide(t){const e=this.resolveElement(t);if(!e)return;const n=e.nextElementSibling;n&&this.setAccordionState(e,n,!1)}showAll(){Array.from(this.container.children).forEach((t=>{if(t instanceof HTMLElement){const e=t.nextElementSibling;e&&this.setAccordionState(t,e,!0)}}))}hideAll(){Array.from(this.container.children).forEach((t=>{if(t instanceof HTMLElement){const e=t.nextElementSibling;e&&this.setAccordionState(t,e,!1)}}))}cleanup(){Array.from(this.container.children).forEach((t=>{t instanceof HTMLElement&&this.initialized.has(t)&&(t.removeEventListener("click",this.toggleHandler),this.initialized.delete(t))}))}setAccordionState(t,e,n){e.style.maxHeight=n?`${e.scrollHeight}px`:"0",t.setAttribute("aria-expanded",String(n));const i=t.querySelector("[data-accordion-icon-open]"),o=t.querySelector("[data-accordion-icon-close]");i&&(i.style.display=n?"block":"none"),o&&(o.style.display=n?"none":"block");const r=t.querySelector("[data-accordion-icon]");r&&r.classList.toggle("rotate-180",n)}},t.Collapse=class{constructor(t,e,n={}){this.button=this.resolveElement(t,"Button element not found"),this.collapseElement=this.resolveElement(e,"Collapsible content element not found"),this.config=n,this.init()}resolveElement(t,e){if("string"==typeof t){const n=document.querySelector(t);if(!n)throw new Error(e);return n}if(t instanceof HTMLElement)return t;throw new Error(e)}init(){this.button.addEventListener("click",(()=>this.toggle()))}toggle(){const t="true"===this.button.getAttribute("aria-expanded");if(this.collapseElement.style.maxHeight=t?"0":`${this.collapseElement.scrollHeight}px`,this.button.setAttribute("aria-expanded",`${!t}`),this.config.iconSelector){const e=document.querySelector(this.config.iconSelector);e&&e.classList.toggle("rotate-180",!t)}}expand(){if(this.collapseElement.style.maxHeight=`${this.collapseElement.scrollHeight}px`,this.button.setAttribute("aria-expanded","true"),this.config.iconSelector){const t=document.querySelector(this.config.iconSelector);t&&t.classList.add("rotate-180")}}collapse(){if(this.collapseElement.style.maxHeight="0",this.button.setAttribute("aria-expanded","false"),this.config.iconSelector){const t=document.querySelector(this.config.iconSelector);t&&t.classList.remove("rotate-180")}}},t.DavidAI=le,t.Dropdown=class{constructor(t,e,n){var i;this.popperInstance=null,this.isOpen=!1,this.shouldIgnoreClick=!1,this.referenceElement=this.resolveElement(t,"Reference element not found"),this.menu=this.resolveElement(e,"Menu element not found"),this.config={placement:n.placement||"bottom-start",closeOnOutsideClick:null===(i=n.closeOnOutsideClick)||void 0===i||i,offset:n.offset||[0,5]},this.documentClickHandler=this.handleDocumentClick.bind(this),this.init()}resolveElement(t,e){if("string"==typeof t){const n=document.querySelector(t);if(!n)throw new Error(e);return n}if(t instanceof HTMLElement)return t;throw new Error(e)}handleDocumentClick(t){this.shouldIgnoreClick?this.shouldIgnoreClick=!1:this.menu.contains(t.target)||this.referenceElement.contains(t.target)||this.close()}init(){return h(this,void 0,void 0,(function*(){yield i(),this.popperInstance=Tt(this.referenceElement,this.menu,{placement:this.config.placement,modifiers:[{name:"offset",options:{offset:this.config.offset}}]}),this.config.closeOnOutsideClick&&document.addEventListener("click",this.documentClickHandler)}))}preventOutsideClick(){this.shouldIgnoreClick=!0}toggle(){this.isOpen?this.close():this.open()}open(){var t;this.isOpen||(this.menu.hidden=!1,this.menu.classList.remove("hidden"),null===(t=this.popperInstance)||void 0===t||t.update(),this.isOpen=!0)}close(){this.isOpen&&(this.menu.hidden=!0,this.menu.classList.add("hidden"),this.isOpen=!1)}destroy(){var t;null===(t=this.popperInstance)||void 0===t||t.destroy(),this.popperInstance=null,document.removeEventListener("click",this.documentClickHandler)}},t.Modal=class{constructor(t,e={}){this._isVisible=!1,this.handleKeydown=t=>{"Escape"===t.key&&this.hide()},this.handleOutsideClick=t=>{const e=t.target,n=this._modalElement.firstElementChild;n&&!n.contains(e)&&this.hide()},this._modalElement=t,this._config=Object.assign({keyboard:!0,closeOnOutsideClick:!0},e),this.setupModal(),setTimeout((()=>{this.removeHiddenClass()}),300)}show(){this._isVisible||(this._isVisible=!0,this._modalElement.classList.remove("opacity-0","pointer-events-none"),this._modalElement.classList.add("opacity-100"),this._modalElement.setAttribute("aria-hidden","false"),this._config.keyboard&&document.addEventListener("keydown",this.handleKeydown),this._config.closeOnOutsideClick&&document.addEventListener("click",this.handleOutsideClick,!0))}hide(){this._isVisible&&(this._isVisible=!1,this._modalElement.classList.add("opacity-0","pointer-events-none"),this._modalElement.classList.remove("opacity-100"),this._modalElement.setAttribute("aria-hidden","true"),this._config.keyboard&&document.removeEventListener("keydown",this.handleKeydown),this._config.closeOnOutsideClick&&document.removeEventListener("click",this.handleOutsideClick,!0))}toggle(){this._isVisible?this.hide():this.show()}isVisible(){return this._isVisible}setupModal(){const t=this._modalElement.classList.contains("opacity-0")||"true"===this._modalElement.getAttribute("aria-hidden");this._isVisible=!t,t?(this._modalElement.classList.add("opacity-0","pointer-events-none"),this._modalElement.classList.remove("opacity-100")):(this._modalElement.classList.remove("opacity-0","pointer-events-none"),this._modalElement.classList.add("opacity-100")),this._modalElement.setAttribute("aria-hidden",String(t))}removeHiddenClass(){this._modalElement.classList.remove("hidden")}},t.Popover=class{constructor(t,e){this.popperInstance=null,this.popoverElement=null,this.trigger=t,this.config={placement:e.placement||"top",popoverClass:e.popoverClass||"popover-default",content:e.content||"",openByDefault:e.openByDefault||!1,offset:e.offset||[0,8]},this.init()}init(){return h(this,void 0,void 0,(function*(){this.config.openByDefault&&(yield this.open()),this.trigger.addEventListener("click",this.handleTriggerClick.bind(this))}))}handleTriggerClick(t){t.stopPropagation(),this.toggle()}open(){return h(this,void 0,void 0,(function*(){if(!this.popoverElement){if(yield i(),this.popoverElement=document.createElement("div"),this.popoverElement.className=this.config.popoverClass||"popover-default","string"==typeof this.config.content)this.popoverElement.textContent=this.config.content;else{if(!(this.config.content instanceof HTMLElement))return void console.error("Invalid content provided for popover:",this.trigger);this.popoverElement.appendChild(this.config.content)}document.body.appendChild(this.popoverElement),this.popperInstance=Tt(this.trigger,this.popoverElement,{placement:this.config.placement,modifiers:[{name:"offset",options:{offset:this.config.offset}}]}),requestAnimationFrame((()=>{var t;this.popoverElement&&(this.popoverElement.style.opacity="1",this.popoverElement.style.transform="scale(1)",null===(t=this.popperInstance)||void 0===t||t.update())}))}}))}close(){this.popperInstance&&this.popoverElement&&(this.popperInstance.destroy(),this.popperInstance=null,this.popoverElement.remove(),this.popoverElement=null)}toggle(){this.popoverElement?this.close():this.open()}destroy(){this.close(),this.trigger.removeEventListener("click",this.handleTriggerClick.bind(this))}},t.Stepper=class{constructor(t){this.steps=t.stepElements,this.contents=t.contentElements,this.prevButton=t.prevButton,this.nextButton=t.nextButton,this.currentStep=t.initialStep||1,this.updateState(),this.prevButton.addEventListener("click",(()=>this.prev())),this.nextButton.addEventListener("click",(()=>this.next()))}updateState(){this.steps.forEach(((t,e)=>{const n=e+1;t.dataset.active=String(n===this.currentStep),t.dataset.completed=String(n<this.currentStep),t.setAttribute("aria-disabled",String(n>this.currentStep))})),this.contents.forEach(((t,e)=>{t.classList.toggle("hidden",e+1!==this.currentStep)})),this.prevButton.disabled=1===this.currentStep,this.nextButton.disabled=this.currentStep===this.steps.length}next(){this.currentStep<this.steps.length&&(this.currentStep++,this.updateState())}prev(){this.currentStep>1&&(this.currentStep--,this.updateState())}goToStep(t){t>=1&&t<=this.steps.length&&(this.currentStep=t,this.updateState())}getCurrentStep(){return this.currentStep}destroy(){this.prevButton.removeEventListener("click",(()=>this.prev())),this.nextButton.removeEventListener("click",(()=>this.next()))}},t.Tabs=class{constructor(t,e={orientation:"horizontal"}){var n,i,o;if(Gt.has(t))throw new Error("This tab group is already initialized.");this.tabGroup=t,this.tabList=t.querySelector("[role='tablist']"),this.tabLinks=Array.from((null===(n=this.tabList)||void 0===n?void 0:n.querySelectorAll(".tab-link"))||[]),this.tabContents=Array.from(t.querySelectorAll(".tab-content")),this.indicator=(null===(i=this.tabList)||void 0===i?void 0:i.querySelector(".tab-indicator"))||null,this.orientation=e.orientation||"horizontal",this.defaultTabId=e.defaultTabId||(null===(o=this.tabLinks[0])||void 0===o?void 0:o.id)||"tab1",this.initialize(),Gt.add(t)}initialize(){var t;const e=this.tabLinks.find((t=>t.id===this.defaultTabId))||(null===(t=this.tabList)||void 0===t?void 0:t.querySelector(".tab-link.active"))||this.tabLinks[0];e&&(this.tabLinks.forEach((t=>t.classList.remove("active"))),this.tabContents.forEach((t=>{t.classList.add("hidden"),t.classList.remove("block")})),setTimeout((()=>{this.activateTab(e.id)}),300)),this.tabLinks.forEach((t=>{t.addEventListener("click",(e=>{e.preventDefault(),this.activateTab(t.id)}))}))}updateIndicator(t){var e;const n=t.getBoundingClientRect(),i=null===(e=this.tabList)||void 0===e?void 0:e.getBoundingClientRect();i&&this.indicator&&requestAnimationFrame((()=>{"vertical"===this.orientation?(this.indicator.style.transform=`translateY(${n.top-i.top}px)`,this.indicator.style.height=`${n.height}px`):(this.indicator.style.transform=`translateX(${n.left-i.left}px)`,this.indicator.style.width=`${n.width}px`),this.indicator.classList.remove("hidden"),this.indicator.style.opacity="1",this.indicator.style.scale="1"}))}activateTab(t){const e=this.tabLinks.find((e=>e.id===t)),n=this.tabContents.find((e=>e.id===`${t}-content`));e&&n?(this.tabLinks.forEach((t=>t.classList.remove("active"))),this.tabContents.forEach((t=>{t.classList.add("hidden"),t.classList.remove("block")})),e.classList.add("active"),n.classList.add("block"),n.classList.remove("hidden"),this.updateIndicator(e)):console.warn(`Tab or content with id ${t} not found`)}cleanup(){this.tabLinks.forEach((t=>{const e=t.cloneNode(!0);t.replaceWith(e)})),Gt.delete(this.tabGroup)}},t.Tooltip=class{constructor(t,e={}){this.tooltipElement=null,this.tooltipInstance=null,this.triggerElement=t,this.options={placement:e.placement||"top",tooltipClass:e.tooltipClass||"tooltip-default",content:e.content||""},this.init()}init(){return h(this,void 0,void 0,(function*(){yield i(),this.triggerElement.addEventListener("mouseenter",this.showTooltip.bind(this)),this.triggerElement.addEventListener("mouseleave",this.hideTooltip.bind(this))}))}showTooltip(){return h(this,void 0,void 0,(function*(){if(!this.tooltipElement){if(this.tooltipElement=document.createElement("div"),this.tooltipElement.className=this.options.tooltipClass,"string"==typeof this.options.content)this.tooltipElement.textContent=this.options.content;else{if(!(this.options.content instanceof HTMLElement))return void console.warn("No valid content provided for tooltip.");{const t=this.options.content.cloneNode(!0);t.classList.remove("hidden"),this.tooltipElement.appendChild(t)}}document.body.appendChild(this.tooltipElement),this.tooltipInstance=Tt(this.triggerElement,this.tooltipElement,{placement:this.options.placement,modifiers:[{name:"offset",options:{offset:[0,8]}}]})}}))}hideTooltip(){this.tooltipInstance&&(this.tooltipInstance.destroy(),this.tooltipInstance=null),this.tooltipElement&&(this.tooltipElement.remove(),this.tooltipElement=null)}destroy(){this.triggerElement.removeEventListener("mouseenter",this.showTooltip.bind(this)),this.triggerElement.removeEventListener("mouseleave",this.hideTooltip.bind(this)),this.hideTooltip()}},t.cleanupAccordions=re,t.cleanupDropdowns=Ht,t.cleanupGallery=d,t.cleanupModals=Zt,t.cleanupPopovers=Wt,t.cleanupSteppers=ce,t.cleanupTabs=Ft,t.cleanupTooltips=Vt,t.default=ue,t.initAccordion=oe,t.initAlert=s,t.initCollapse=f,t.initDavidAI=de,t.initDropdowns=It,t.initGallery=l,t.initModal=Qt,t.initPopovers=Bt,t.initStepper=ae,t.initTabs=zt,t.initTooltips=Rt,t.toggleAccordionById=ie,Object.defineProperty(t,"__esModule",{value:!0})}));
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).MaterialTailwind={})}(this,(function(t){"use strict";let e=!1,n=null;function i(){return e||(e=!0,n=new Promise(((t,e)=>{if(window.Popper)return void t(window.Popper);const n=document.createElement("script");n.src="https://unpkg.com/@popperjs/core@2",n.defer=!0,n.onload=()=>{t(window.Popper)},n.onerror=()=>{e(new Error("Failed to load Popper.js"))},document.head.appendChild(n)}))),n}const o=new WeakSet;function r(t){const e=t.currentTarget.closest('[role="alert"]');e&&e.remove()}function s(){document.querySelectorAll("[data-dismiss='alert']").forEach((t=>{o.has(t)||(t.addEventListener("click",r),o.add(t))}))}"undefined"!=typeof window&&document.addEventListener("DOMContentLoaded",(()=>{s();new MutationObserver((()=>{s()})).observe(document.body,{childList:!0,subtree:!0})}));const a=new WeakSet;function c(t){const e=t.currentTarget,n=document.querySelector("[data-main-image]");n&&(n.src=e.src,document.querySelectorAll("[data-thumbnail]").forEach((t=>{t.classList.remove("active-thumbnail")})),e.classList.add("active-thumbnail"))}function l(){document.querySelectorAll("[data-thumbnail]").forEach((t=>{a.has(t)||(t.addEventListener("click",c),a.add(t))}))}function d(){document.querySelectorAll("[data-thumbnail]").forEach((t=>{a.has(t)&&(t.removeEventListener("click",c),a.delete(t))}))}"undefined"!=typeof window&&document.addEventListener("DOMContentLoaded",(()=>{l();new MutationObserver((()=>{l()})).observe(document.body,{childList:!0,subtree:!0})}));const u=new WeakSet;function p(t){const e=t.currentTarget;if(!e)return;const n=e.getAttribute("data-target");if(n&&n.startsWith("#")){const t=document.querySelector(n),i="true"===e.getAttribute("aria-expanded");if(t){t.style.maxHeight=i?"0":`${t.scrollHeight}px`,e.setAttribute("aria-expanded",`${!i}`);const n=e.querySelector("[data-icon]");n&&n.classList.toggle("rotate-180",!i)}}}function f(){document.querySelectorAll("[data-toggle='collapse']").forEach((t=>{u.has(t)||(t.addEventListener("click",p),u.add(t))}))}"undefined"!=typeof window&&document.addEventListener("DOMContentLoaded",(()=>{f();new MutationObserver((()=>{f()})).observe(document.body,{childList:!0,subtree:!0})}));function h(t,e,n,i){return new(n||(n=Promise))((function(o,r){function s(t){try{c(i.next(t))}catch(t){r(t)}}function a(t){try{c(i.throw(t))}catch(t){r(t)}}function c(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}c((i=i.apply(t,e||[])).next())}))}"function"==typeof SuppressedError&&SuppressedError;var m="top",v="bottom",g="right",y="left",b="auto",E=[m,v,g,y],w="start",L="end",x="viewport",S="popper",A=E.reduce((function(t,e){return t.concat([e+"-"+w,e+"-"+L])}),[]),O=[].concat(E,[b]).reduce((function(t,e){return t.concat([e,e+"-"+w,e+"-"+L])}),[]),k=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function C(t){return t?(t.nodeName||"").toLowerCase():null}function T(t){if(null==t)return window;if("[object Window]"!==t.toString()){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function q(t){return t instanceof T(t).Element||t instanceof Element}function D(t){return t instanceof T(t).HTMLElement||t instanceof HTMLElement}function M(t){return"undefined"!=typeof ShadowRoot&&(t instanceof T(t).ShadowRoot||t instanceof ShadowRoot)}var I={name:"applyStyles",enabled:!0,phase:"write",fn:function(t){var e=t.state;Object.keys(e.elements).forEach((function(t){var n=e.styles[t]||{},i=e.attributes[t]||{},o=e.elements[t];D(o)&&C(o)&&(Object.assign(o.style,n),Object.keys(i).forEach((function(t){var e=i[t];!1===e?o.removeAttribute(t):o.setAttribute(t,!0===e?"":e)})))}))},effect:function(t){var e=t.state,n={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,n.popper),e.styles=n,e.elements.arrow&&Object.assign(e.elements.arrow.style,n.arrow),function(){Object.keys(e.elements).forEach((function(t){var i=e.elements[t],o=e.attributes[t]||{},r=Object.keys(e.styles.hasOwnProperty(t)?e.styles[t]:n[t]).reduce((function(t,e){return t[e]="",t}),{});D(i)&&C(i)&&(Object.assign(i.style,r),Object.keys(o).forEach((function(t){i.removeAttribute(t)})))}))}},requires:["computeStyles"]};function H(t){return t.split("-")[0]}var j=Math.max,_=Math.min,B=Math.round;function W(){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 P(){return!/^((?!chrome|android).)*safari/i.test(W())}function N(t,e,n){void 0===e&&(e=!1),void 0===n&&(n=!1);var i=t.getBoundingClientRect(),o=1,r=1;e&&D(t)&&(o=t.offsetWidth>0&&B(i.width)/t.offsetWidth||1,r=t.offsetHeight>0&&B(i.height)/t.offsetHeight||1);var s=(q(t)?T(t):window).visualViewport,a=!P()&&n,c=(i.left+(a&&s?s.offsetLeft:0))/o,l=(i.top+(a&&s?s.offsetTop:0))/r,d=i.width/o,u=i.height/r;return{width:d,height:u,top:l,right:c+d,bottom:l+u,left:c,x:c,y:l}}function R(t){var e=N(t),n=t.offsetWidth,i=t.offsetHeight;return Math.abs(e.width-n)<=1&&(n=e.width),Math.abs(e.height-i)<=1&&(i=e.height),{x:t.offsetLeft,y:t.offsetTop,width:n,height:i}}function V(t,e){var n=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(n&&M(n)){var i=e;do{if(i&&t.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function $(t){return T(t).getComputedStyle(t)}function z(t){return["table","td","th"].indexOf(C(t))>=0}function F(t){return((q(t)?t.ownerDocument:t.document)||window.document).documentElement}function G(t){return"html"===C(t)?t:t.assignedSlot||t.parentNode||(M(t)?t.host:null)||F(t)}function U(t){return D(t)&&"fixed"!==$(t).position?t.offsetParent:null}function X(t){for(var e=T(t),n=U(t);n&&z(n)&&"static"===$(n).position;)n=U(n);return n&&("html"===C(n)||"body"===C(n)&&"static"===$(n).position)?e:n||function(t){var e=/firefox/i.test(W());if(/Trident/i.test(W())&&D(t)&&"fixed"===$(t).position)return null;var n=G(t);for(M(n)&&(n=n.host);D(n)&&["html","body"].indexOf(C(n))<0;){var i=$(n);if("none"!==i.transform||"none"!==i.perspective||"paint"===i.contain||-1!==["transform","perspective"].indexOf(i.willChange)||e&&"filter"===i.willChange||e&&i.filter&&"none"!==i.filter)return n;n=n.parentNode}return null}(t)||e}function Y(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function K(t,e,n){return j(t,_(e,n))}function J(t){return Object.assign({},{top:0,right:0,bottom:0,left:0},t)}function Q(t,e){return e.reduce((function(e,n){return e[n]=t,e}),{})}var Z={name:"arrow",enabled:!0,phase:"main",fn:function(t){var e,n=t.state,i=t.name,o=t.options,r=n.elements.arrow,s=n.modifiersData.popperOffsets,a=H(n.placement),c=Y(a),l=[y,g].indexOf(a)>=0?"height":"width";if(r&&s){var d=function(t,e){return J("number"!=typeof(t="function"==typeof t?t(Object.assign({},e.rects,{placement:e.placement})):t)?t:Q(t,E))}(o.padding,n),u=R(r),p="y"===c?m:y,f="y"===c?v:g,h=n.rects.reference[l]+n.rects.reference[c]-s[c]-n.rects.popper[l],b=s[c]-n.rects.reference[c],w=X(r),L=w?"y"===c?w.clientHeight||0:w.clientWidth||0:0,x=h/2-b/2,S=d[p],A=L-u[l]-d[f],O=L/2-u[l]/2+x,k=K(S,O,A),C=c;n.modifiersData[i]=((e={})[C]=k,e.centerOffset=k-O,e)}},effect:function(t){var e=t.state,n=t.options.element,i=void 0===n?"[data-popper-arrow]":n;null!=i&&("string"!=typeof i||(i=e.elements.popper.querySelector(i)))&&V(e.elements.popper,i)&&(e.elements.arrow=i)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function tt(t){return t.split("-")[1]}var et={top:"auto",right:"auto",bottom:"auto",left:"auto"};function nt(t){var e,n=t.popper,i=t.popperRect,o=t.placement,r=t.variation,s=t.offsets,a=t.position,c=t.gpuAcceleration,l=t.adaptive,d=t.roundOffsets,u=t.isFixed,p=s.x,f=void 0===p?0:p,h=s.y,b=void 0===h?0:h,E="function"==typeof d?d({x:f,y:b}):{x:f,y:b};f=E.x,b=E.y;var w=s.hasOwnProperty("x"),x=s.hasOwnProperty("y"),S=y,A=m,O=window;if(l){var k=X(n),C="clientHeight",q="clientWidth";if(k===T(n)&&"static"!==$(k=F(n)).position&&"absolute"===a&&(C="scrollHeight",q="scrollWidth"),o===m||(o===y||o===g)&&r===L)A=v,b-=(u&&k===O&&O.visualViewport?O.visualViewport.height:k[C])-i.height,b*=c?1:-1;if(o===y||(o===m||o===v)&&r===L)S=g,f-=(u&&k===O&&O.visualViewport?O.visualViewport.width:k[q])-i.width,f*=c?1:-1}var D,M=Object.assign({position:a},l&&et),I=!0===d?function(t,e){var n=t.x,i=t.y,o=e.devicePixelRatio||1;return{x:B(n*o)/o||0,y:B(i*o)/o||0}}({x:f,y:b},T(n)):{x:f,y:b};return f=I.x,b=I.y,c?Object.assign({},M,((D={})[A]=x?"0":"",D[S]=w?"0":"",D.transform=(O.devicePixelRatio||1)<=1?"translate("+f+"px, "+b+"px)":"translate3d("+f+"px, "+b+"px, 0)",D)):Object.assign({},M,((e={})[A]=x?b+"px":"",e[S]=w?f+"px":"",e.transform="",e))}var it={passive:!0};var ot={left:"right",right:"left",bottom:"top",top:"bottom"};function rt(t){return t.replace(/left|right|bottom|top/g,(function(t){return ot[t]}))}var st={start:"end",end:"start"};function at(t){return t.replace(/start|end/g,(function(t){return st[t]}))}function ct(t){var e=T(t);return{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function lt(t){return N(F(t)).left+ct(t).scrollLeft}function dt(t){var e=$(t),n=e.overflow,i=e.overflowX,o=e.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+i)}function ut(t){return["html","body","#document"].indexOf(C(t))>=0?t.ownerDocument.body:D(t)&&dt(t)?t:ut(G(t))}function pt(t,e){var n;void 0===e&&(e=[]);var i=ut(t),o=i===(null==(n=t.ownerDocument)?void 0:n.body),r=T(i),s=o?[r].concat(r.visualViewport||[],dt(i)?i:[]):i,a=e.concat(s);return o?a:a.concat(pt(G(s)))}function ft(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function ht(t,e,n){return e===x?ft(function(t,e){var n=T(t),i=F(t),o=n.visualViewport,r=i.clientWidth,s=i.clientHeight,a=0,c=0;if(o){r=o.width,s=o.height;var l=P();(l||!l&&"fixed"===e)&&(a=o.offsetLeft,c=o.offsetTop)}return{width:r,height:s,x:a+lt(t),y:c}}(t,n)):q(e)?function(t,e){var n=N(t,!1,"fixed"===e);return n.top=n.top+t.clientTop,n.left=n.left+t.clientLeft,n.bottom=n.top+t.clientHeight,n.right=n.left+t.clientWidth,n.width=t.clientWidth,n.height=t.clientHeight,n.x=n.left,n.y=n.top,n}(e,n):ft(function(t){var e,n=F(t),i=ct(t),o=null==(e=t.ownerDocument)?void 0:e.body,r=j(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=j(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),a=-i.scrollLeft+lt(t),c=-i.scrollTop;return"rtl"===$(o||n).direction&&(a+=j(n.clientWidth,o?o.clientWidth:0)-r),{width:r,height:s,x:a,y:c}}(F(t)))}function mt(t,e,n,i){var o="clippingParents"===e?function(t){var e=pt(G(t)),n=["absolute","fixed"].indexOf($(t).position)>=0&&D(t)?X(t):t;return q(n)?e.filter((function(t){return q(t)&&V(t,n)&&"body"!==C(t)})):[]}(t):[].concat(e),r=[].concat(o,[n]),s=r[0],a=r.reduce((function(e,n){var o=ht(t,n,i);return e.top=j(o.top,e.top),e.right=_(o.right,e.right),e.bottom=_(o.bottom,e.bottom),e.left=j(o.left,e.left),e}),ht(t,s,i));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function vt(t){var e,n=t.reference,i=t.element,o=t.placement,r=o?H(o):null,s=o?tt(o):null,a=n.x+n.width/2-i.width/2,c=n.y+n.height/2-i.height/2;switch(r){case m:e={x:a,y:n.y-i.height};break;case v:e={x:a,y:n.y+n.height};break;case g:e={x:n.x+n.width,y:c};break;case y:e={x:n.x-i.width,y:c};break;default:e={x:n.x,y:n.y}}var l=r?Y(r):null;if(null!=l){var d="y"===l?"height":"width";switch(s){case w:e[l]=e[l]-(n[d]/2-i[d]/2);break;case L:e[l]=e[l]+(n[d]/2-i[d]/2)}}return e}function gt(t,e){void 0===e&&(e={});var n=e,i=n.placement,o=void 0===i?t.placement:i,r=n.strategy,s=void 0===r?t.strategy:r,a=n.boundary,c=void 0===a?"clippingParents":a,l=n.rootBoundary,d=void 0===l?x:l,u=n.elementContext,p=void 0===u?S:u,f=n.altBoundary,h=void 0!==f&&f,y=n.padding,b=void 0===y?0:y,w=J("number"!=typeof b?b:Q(b,E)),L=p===S?"reference":S,A=t.rects.popper,O=t.elements[h?L:p],k=mt(q(O)?O:O.contextElement||F(t.elements.popper),c,d,s),C=N(t.elements.reference),T=vt({reference:C,element:A,placement:o}),D=ft(Object.assign({},A,T)),M=p===S?D:C,I={top:k.top-M.top+w.top,bottom:M.bottom-k.bottom+w.bottom,left:k.left-M.left+w.left,right:M.right-k.right+w.right},H=t.modifiersData.offset;if(p===S&&H){var j=H[o];Object.keys(I).forEach((function(t){var e=[g,v].indexOf(t)>=0?1:-1,n=[m,v].indexOf(t)>=0?"y":"x";I[t]+=j[n]*e}))}return I}function yt(t,e){void 0===e&&(e={});var n=e,i=n.placement,o=n.boundary,r=n.rootBoundary,s=n.padding,a=n.flipVariations,c=n.allowedAutoPlacements,l=void 0===c?O:c,d=tt(i),u=d?a?A:A.filter((function(t){return tt(t)===d})):E,p=u.filter((function(t){return l.indexOf(t)>=0}));0===p.length&&(p=u);var f=p.reduce((function(e,n){return e[n]=gt(t,{placement:n,boundary:o,rootBoundary:r,padding:s})[H(n)],e}),{});return Object.keys(f).sort((function(t,e){return f[t]-f[e]}))}var bt={name:"flip",enabled:!0,phase:"main",fn:function(t){var e=t.state,n=t.options,i=t.name;if(!e.modifiersData[i]._skip){for(var o=n.mainAxis,r=void 0===o||o,s=n.altAxis,a=void 0===s||s,c=n.fallbackPlacements,l=n.padding,d=n.boundary,u=n.rootBoundary,p=n.altBoundary,f=n.flipVariations,h=void 0===f||f,E=n.allowedAutoPlacements,L=e.options.placement,x=H(L),S=c||(x===L||!h?[rt(L)]:function(t){if(H(t)===b)return[];var e=rt(t);return[at(t),e,at(e)]}(L)),A=[L].concat(S).reduce((function(t,n){return t.concat(H(n)===b?yt(e,{placement:n,boundary:d,rootBoundary:u,padding:l,flipVariations:h,allowedAutoPlacements:E}):n)}),[]),O=e.rects.reference,k=e.rects.popper,C=new Map,T=!0,q=A[0],D=0;D<A.length;D++){var M=A[D],I=H(M),j=tt(M)===w,_=[m,v].indexOf(I)>=0,B=_?"width":"height",W=gt(e,{placement:M,boundary:d,rootBoundary:u,altBoundary:p,padding:l}),P=_?j?g:y:j?v:m;O[B]>k[B]&&(P=rt(P));var N=rt(P),R=[];if(r&&R.push(W[I]<=0),a&&R.push(W[P]<=0,W[N]<=0),R.every((function(t){return t}))){q=M,T=!1;break}C.set(M,R)}if(T)for(var V=function(t){var e=A.find((function(e){var n=C.get(e);if(n)return n.slice(0,t).every((function(t){return t}))}));if(e)return q=e,"break"},$=h?3:1;$>0;$--){if("break"===V($))break}e.placement!==q&&(e.modifiersData[i]._skip=!0,e.placement=q,e.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function Et(t,e,n){return void 0===n&&(n={x:0,y:0}),{top:t.top-e.height-n.y,right:t.right-e.width+n.x,bottom:t.bottom-e.height+n.y,left:t.left-e.width-n.x}}function wt(t){return[m,g,v,y].some((function(e){return t[e]>=0}))}var Lt={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(t){var e=t.state,n=t.options,i=t.name,o=n.offset,r=void 0===o?[0,0]:o,s=O.reduce((function(t,n){return t[n]=function(t,e,n){var i=H(t),o=[y,m].indexOf(i)>=0?-1:1,r="function"==typeof n?n(Object.assign({},e,{placement:t})):n,s=r[0],a=r[1];return s=s||0,a=(a||0)*o,[y,g].indexOf(i)>=0?{x:a,y:s}:{x:s,y:a}}(n,e.rects,r),t}),{}),a=s[e.placement],c=a.x,l=a.y;null!=e.modifiersData.popperOffsets&&(e.modifiersData.popperOffsets.x+=c,e.modifiersData.popperOffsets.y+=l),e.modifiersData[i]=s}};var xt={name:"preventOverflow",enabled:!0,phase:"main",fn:function(t){var e=t.state,n=t.options,i=t.name,o=n.mainAxis,r=void 0===o||o,s=n.altAxis,a=void 0!==s&&s,c=n.boundary,l=n.rootBoundary,d=n.altBoundary,u=n.padding,p=n.tether,f=void 0===p||p,h=n.tetherOffset,b=void 0===h?0:h,E=gt(e,{boundary:c,rootBoundary:l,padding:u,altBoundary:d}),L=H(e.placement),x=tt(e.placement),S=!x,A=Y(L),O="x"===A?"y":"x",k=e.modifiersData.popperOffsets,C=e.rects.reference,T=e.rects.popper,q="function"==typeof b?b(Object.assign({},e.rects,{placement:e.placement})):b,D="number"==typeof q?{mainAxis:q,altAxis:q}:Object.assign({mainAxis:0,altAxis:0},q),M=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,I={x:0,y:0};if(k){if(r){var B,W="y"===A?m:y,P="y"===A?v:g,N="y"===A?"height":"width",V=k[A],$=V+E[W],z=V-E[P],F=f?-T[N]/2:0,G=x===w?C[N]:T[N],U=x===w?-T[N]:-C[N],J=e.elements.arrow,Q=f&&J?R(J):{width:0,height:0},Z=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},et=Z[W],nt=Z[P],it=K(0,C[N],Q[N]),ot=S?C[N]/2-F-it-et-D.mainAxis:G-it-et-D.mainAxis,rt=S?-C[N]/2+F+it+nt+D.mainAxis:U+it+nt+D.mainAxis,st=e.elements.arrow&&X(e.elements.arrow),at=st?"y"===A?st.clientTop||0:st.clientLeft||0:0,ct=null!=(B=null==M?void 0:M[A])?B:0,lt=V+rt-ct,dt=K(f?_($,V+ot-ct-at):$,V,f?j(z,lt):z);k[A]=dt,I[A]=dt-V}if(a){var ut,pt="x"===A?m:y,ft="x"===A?v:g,ht=k[O],mt="y"===O?"height":"width",vt=ht+E[pt],yt=ht-E[ft],bt=-1!==[m,y].indexOf(L),Et=null!=(ut=null==M?void 0:M[O])?ut:0,wt=bt?vt:ht-C[mt]-T[mt]-Et+D.altAxis,Lt=bt?ht+C[mt]+T[mt]-Et-D.altAxis:yt,xt=f&&bt?function(t,e,n){var i=K(t,e,n);return i>n?n:i}(wt,ht,Lt):K(f?wt:vt,ht,f?Lt:yt);k[O]=xt,I[O]=xt-ht}e.modifiersData[i]=I}},requiresIfExists:["offset"]};function St(t,e,n){void 0===n&&(n=!1);var i,o,r=D(e),s=D(e)&&function(t){var e=t.getBoundingClientRect(),n=B(e.width)/t.offsetWidth||1,i=B(e.height)/t.offsetHeight||1;return 1!==n||1!==i}(e),a=F(e),c=N(t,s,n),l={scrollLeft:0,scrollTop:0},d={x:0,y:0};return(r||!r&&!n)&&(("body"!==C(e)||dt(a))&&(l=(i=e)!==T(i)&&D(i)?{scrollLeft:(o=i).scrollLeft,scrollTop:o.scrollTop}:ct(i)),D(e)?((d=N(e,!0)).x+=e.clientLeft,d.y+=e.clientTop):a&&(d.x=lt(a))),{x:c.left+l.scrollLeft-d.x,y:c.top+l.scrollTop-d.y,width:c.width,height:c.height}}function At(t){var e=new Map,n=new Set,i=[];function o(t){n.add(t.name),[].concat(t.requires||[],t.requiresIfExists||[]).forEach((function(t){if(!n.has(t)){var i=e.get(t);i&&o(i)}})),i.push(t)}return t.forEach((function(t){e.set(t.name,t)})),t.forEach((function(t){n.has(t.name)||o(t)})),i}var Ot={placement:"bottom",modifiers:[],strategy:"absolute"};function kt(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return!e.some((function(t){return!(t&&"function"==typeof t.getBoundingClientRect)}))}function Ct(t){void 0===t&&(t={});var e=t,n=e.defaultModifiers,i=void 0===n?[]:n,o=e.defaultOptions,r=void 0===o?Ot:o;return function(t,e,n){void 0===n&&(n=r);var o,s,a={placement:"bottom",orderedModifiers:[],options:Object.assign({},Ot,r),modifiersData:{},elements:{reference:t,popper:e},attributes:{},styles:{}},c=[],l=!1,d={state:a,setOptions:function(n){var o="function"==typeof n?n(a.options):n;u(),a.options=Object.assign({},r,a.options,o),a.scrollParents={reference:q(t)?pt(t):t.contextElement?pt(t.contextElement):[],popper:pt(e)};var s,l,p=function(t){var e=At(t);return k.reduce((function(t,n){return t.concat(e.filter((function(t){return t.phase===n})))}),[])}((s=[].concat(i,a.options.modifiers),l=s.reduce((function(t,e){var n=t[e.name];return t[e.name]=n?Object.assign({},n,e,{options:Object.assign({},n.options,e.options),data:Object.assign({},n.data,e.data)}):e,t}),{}),Object.keys(l).map((function(t){return l[t]}))));return a.orderedModifiers=p.filter((function(t){return t.enabled})),a.orderedModifiers.forEach((function(t){var e=t.name,n=t.options,i=void 0===n?{}:n,o=t.effect;if("function"==typeof o){var r=o({state:a,name:e,instance:d,options:i}),s=function(){};c.push(r||s)}})),d.update()},forceUpdate:function(){if(!l){var t=a.elements,e=t.reference,n=t.popper;if(kt(e,n)){a.rects={reference:St(e,X(n),"fixed"===a.options.strategy),popper:R(n)},a.reset=!1,a.placement=a.options.placement,a.orderedModifiers.forEach((function(t){return a.modifiersData[t.name]=Object.assign({},t.data)}));for(var i=0;i<a.orderedModifiers.length;i++)if(!0!==a.reset){var o=a.orderedModifiers[i],r=o.fn,s=o.options,c=void 0===s?{}:s,u=o.name;"function"==typeof r&&(a=r({state:a,options:c,name:u,instance:d})||a)}else a.reset=!1,i=-1}}},update:(o=function(){return new Promise((function(t){d.forceUpdate(),t(a)}))},function(){return s||(s=new Promise((function(t){Promise.resolve().then((function(){s=void 0,t(o())}))}))),s}),destroy:function(){u(),l=!0}};if(!kt(t,e))return d;function u(){c.forEach((function(t){return t()})),c=[]}return d.setOptions(n).then((function(t){!l&&n.onFirstUpdate&&n.onFirstUpdate(t)})),d}}var Tt=Ct({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(t){var e=t.state,n=t.instance,i=t.options,o=i.scroll,r=void 0===o||o,s=i.resize,a=void 0===s||s,c=T(e.elements.popper),l=[].concat(e.scrollParents.reference,e.scrollParents.popper);return r&&l.forEach((function(t){t.addEventListener("scroll",n.update,it)})),a&&c.addEventListener("resize",n.update,it),function(){r&&l.forEach((function(t){t.removeEventListener("scroll",n.update,it)})),a&&c.removeEventListener("resize",n.update,it)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(t){var e=t.state,n=t.name;e.modifiersData[n]=vt({reference:e.rects.reference,element:e.rects.popper,placement:e.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(t){var e=t.state,n=t.options,i=n.gpuAcceleration,o=void 0===i||i,r=n.adaptive,s=void 0===r||r,a=n.roundOffsets,c=void 0===a||a,l={placement:H(e.placement),variation:tt(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:o,isFixed:"fixed"===e.options.strategy};null!=e.modifiersData.popperOffsets&&(e.styles.popper=Object.assign({},e.styles.popper,nt(Object.assign({},l,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:s,roundOffsets:c})))),null!=e.modifiersData.arrow&&(e.styles.arrow=Object.assign({},e.styles.arrow,nt(Object.assign({},l,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})},data:{}},I,Lt,bt,xt,Z,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(t){var e=t.state,n=t.name,i=e.rects.reference,o=e.rects.popper,r=e.modifiersData.preventOverflow,s=gt(e,{elementContext:"reference"}),a=gt(e,{altBoundary:!0}),c=Et(s,i),l=Et(a,o,r),d=wt(c),u=wt(l);e.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:l,isReferenceHidden:d,hasPopperEscaped:u},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":u})}}]});const qt=new WeakSet;let Dt=[],Mt=class{constructor(t){this.popperInstance=null,this.dropdown=t,this.button=this.dropdown.querySelector('[data-toggle="dropdown"]'),this.menu=this.dropdown.querySelector('[data-role="menu"]'),this.placement=this.dropdown.getAttribute("data-placement")||"bottom-start",this.init()}init(){return h(this,void 0,void 0,(function*(){yield i(),this.popperInstance=Tt(this.button,this.menu,{placement:this.placement,modifiers:[{name:"offset",options:{offset:[0,5]}}]}),this.button.addEventListener("click",(t=>{t.stopPropagation(),this.toggleDropdown()})),document.addEventListener("click",(t=>{this.dropdown.contains(t.target)||this.closeDropdown()})),Dt.push({dropdown:this.dropdown,popperInstance:this.popperInstance})}))}toggleDropdown(){"true"===this.button.getAttribute("aria-expanded")?this.closeDropdown():this.openDropdown()}openDropdown(){this.button.setAttribute("aria-expanded","true"),this.menu.hidden=!1,this.menu.classList.remove("hidden"),this.popperInstance&&this.popperInstance.update()}closeDropdown(){this.button.setAttribute("aria-expanded","false"),this.menu.hidden=!0,this.menu.classList.add("hidden")}};function It(){document.querySelectorAll(".dropdown").forEach((t=>{qt.has(t)||(new Mt(t),qt.add(t))}))}function Ht(){Dt.forEach((({dropdown:t,popperInstance:e})=>{e&&e.destroy(),t&&qt.delete(t)})),Dt=[]}"undefined"!=typeof window&&"undefined"!=typeof document&&document.addEventListener("DOMContentLoaded",(()=>{!function(){h(this,void 0,void 0,(function*(){yield i(),It()}))}();new MutationObserver((()=>{It()})).observe(document.body,{childList:!0,subtree:!0})}));const jt=new WeakSet;let _t=[];function Bt(){document.querySelectorAll("[data-toggle='popover']").forEach((t=>{var e;if(jt.has(t))return;const n=t.getAttribute("data-placement")||"top",o=t.getAttribute("data-popover-class")||"popover-default",r=t.getAttribute("data-popover-content"),s=t.hasAttribute("data-open");let a=null,c=null,l=null;const d=(null===(e=t.nextElementSibling)||void 0===e?void 0:e.matches("[data-popover-content]"))?t.nextElementSibling:null;function u(){return h(this,void 0,void 0,(function*(){if(yield i(),c=document.createElement("div"),c.className=o,d)l=d.cloneNode(!0),l.classList.remove("hidden"),c.appendChild(l);else{if(!r)return void console.error("No content provided for popover:",t);c.textContent=r}document.body.appendChild(c),a=Tt(t,c,{placement:n,modifiers:[{name:"offset",options:{offset:[0,8]}}]}),requestAnimationFrame((()=>{c&&(c.style.opacity="1",c.style.transform="scale(1)",null==a||a.update())})),a&&_t.push({trigger:t,popoverElement:c,popperInstance:null})}))}t.addEventListener("click",(e=>{e.stopPropagation(),a?(a&&(a.destroy(),a=null),c&&(c.remove(),c=null),l&&l.classList.add("hidden"),_t=_t.filter((e=>e.trigger!==t))):u()})),s&&u(),jt.add(t)}))}function Wt(){_t.forEach((({popoverElement:t,popperInstance:e})=>{e&&e.destroy(),t&&t.remove()})),_t=[]}"undefined"!=typeof window&&"undefined"!=typeof document&&document.addEventListener("DOMContentLoaded",(()=>{!function(){h(this,void 0,void 0,(function*(){yield i(),Bt()}))}();new MutationObserver((()=>{Bt()})).observe(document.body,{childList:!0,subtree:!0})}));const Pt=new WeakSet;let Nt=[];function Rt(){document.querySelectorAll("[data-toggle='tooltip']").forEach((t=>{var e;if(Pt.has(t))return;const n=t.getAttribute("data-title")||"",o=t.getAttribute("data-placement")||"top",r=t.getAttribute("data-tooltip-class")||"tooltip-default";let s=null,a=null,c=null;(null===(e=t.nextElementSibling)||void 0===e?void 0:e.matches("[data-tooltip-content]"))&&(c=t.nextElementSibling),t.addEventListener("mouseenter",(function(){return h(this,void 0,void 0,(function*(){if(!a){if(yield i(),a=document.createElement("div"),a.className=r,c){const t=c.cloneNode(!0);t.classList.remove("hidden"),a.appendChild(t)}else{if(!n)return void console.warn("No tooltip content provided for:",t);a.textContent=n}document.body.appendChild(a),s=Tt(t,a,{placement:o,modifiers:[{name:"offset",options:{offset:[0,8]}}]}),Nt.push({trigger:t,tooltipElement:a,tooltipInstance:s})}}))})),t.addEventListener("mouseleave",(function(){s&&(s.destroy(),s=null),a&&(a.remove(),a=null),Nt=Nt.filter((e=>e.trigger!==t))})),Pt.add(t)}))}function Vt(){Nt.forEach((({tooltipElement:t,tooltipInstance:e})=>{e&&e.destroy(),t&&t.remove()})),Nt=[]}"undefined"!=typeof window&&"undefined"!=typeof document&&document.addEventListener("DOMContentLoaded",(()=>{!function(){h(this,void 0,void 0,(function*(){yield i(),Rt()}))}();new MutationObserver((()=>{Rt()})).observe(document.body,{childList:!0,subtree:!0})}));const $t=new WeakSet;function zt(){document.querySelectorAll(".tab-group").forEach((t=>{if($t.has(t))return;const e=t.querySelector("[role='tablist']"),n=(null==e?void 0:e.querySelectorAll(".tab-link"))||[],i=t.querySelectorAll(".tab-content"),o=null==e?void 0:e.querySelector(".tab-indicator"),r="vertical"===t.getAttribute("data-orientation");function s(t){n.forEach((t=>t.classList.remove("active"))),i.forEach((t=>{t.classList.add("hidden"),t.classList.remove("block")})),t.classList.add("active");const s=t.getAttribute("data-tab-target"),a=s?document.getElementById(s):null;a&&(a.classList.add("block"),a.classList.remove("hidden")),function(t){const n=t.getBoundingClientRect(),i=null==e?void 0:e.getBoundingClientRect();i&&o&&requestAnimationFrame((()=>{r?(o.style.transform=`translateY(${n.top-i.top}px)`,o.style.height=`${n.height}px`):(o.style.transform=`translateX(${n.left-i.left}px)`,o.style.width=`${n.width}px`),o.classList.remove("hidden"),o.style.opacity="1",o.style.scale="1"}))}(t)}!function(){const t=null==e?void 0:e.querySelector(".tab-link.active");t?s(t):n.length>0&&s(n[0]),n.forEach((t=>{t.addEventListener("click",(e=>{e.preventDefault(),s(t)}))}))}(),$t.add(t)}))}function Ft(){document.querySelectorAll(".tab-group").forEach((t=>{if($t.has(t)){const e=t.querySelector("[role='tablist']");((null==e?void 0:e.querySelectorAll(".tab-link"))||[]).forEach((t=>{if(t.parentNode){const e=t.cloneNode(!0);t.parentNode.replaceChild(e,t)}})),$t.delete(t)}}))}"undefined"!=typeof window&&document.addEventListener("DOMContentLoaded",(()=>{zt();new MutationObserver((()=>{zt()})).observe(document.body,{childList:!0,subtree:!0})}));const Gt=new WeakSet;let Ut=new WeakSet,Xt=[];function Yt(t){const e=t.currentTarget;if(!e)return;const n=e.getAttribute("data-target");if(!n)return;const i=document.querySelector(n);if(!i)return;const o=i.classList.contains("pointer-events-none");i.classList.toggle("opacity-0",!o),i.classList.toggle("opacity-100",o),o?i.classList.remove("pointer-events-none"):setTimeout((()=>i.classList.add("pointer-events-none")),300);const r=i.querySelector(o?".scale-95":".scale-100");r&&(r.classList.toggle("scale-95",!o),r.classList.toggle("scale-100",o)),i.setAttribute("aria-hidden",String(!o)),o?(i.addEventListener("click",Jt),Xt.push(i)):(i.removeEventListener("click",Jt),Xt=Xt.filter((t=>t!==i)))}function Kt(t){let e=null;if(t instanceof Event){const n=t.currentTarget;if(!n)return;e=n.closest(".fixed")}else e=t;if(!e)return;e.classList.add("opacity-0"),e.classList.remove("opacity-100");const n=e.querySelector(".scale-100");n&&(n.classList.add("scale-95"),n.classList.remove("scale-100")),setTimeout((()=>{e.classList.add("pointer-events-none"),e.setAttribute("aria-hidden","true")}),300),e.removeEventListener("click",Jt),Xt=Xt.filter((t=>t!==e))}function Jt(t){const e=t.currentTarget;if(!e)return;const n=e.querySelector(".scale-100, .scale-95");n&&(n.contains(t.target)||Kt(e))}function Qt(){document.querySelectorAll("[data-toggle='modal']").forEach((t=>{Ut.has(t)||(t.addEventListener("click",Yt),Ut.add(t))})),document.querySelectorAll("[data-dismiss='modal']").forEach((t=>{Ut.has(t)||(t.addEventListener("click",Kt),Ut.add(t))}))}function Zt(){Xt.forEach((t=>{t.removeEventListener("click",Jt)})),Xt=[],Ut=new WeakSet}"undefined"!=typeof window&&"undefined"!=typeof document&&document.addEventListener("DOMContentLoaded",(()=>{Qt();new MutationObserver((()=>{Qt()})).observe(document.body,{childList:!0,subtree:!0})}));const te=new WeakSet,ee=(t,e,n)=>{t.style.maxHeight=n?`${t.scrollHeight}px`:"0",e.setAttribute("aria-expanded",String(n)),((t,e,n=!1)=>{const i=t.querySelector("[data-accordion-icon-open]"),o=t.querySelector("[data-accordion-icon-close]"),r=t.querySelector("[data-accordion-icon]");i&&o&&(i.style.display=e?"block":"none",o.style.display=e?"none":"block"),r&&r.classList.toggle("rotate-180",n?e:!e)})(e,n)};function ne(t){const e=t.currentTarget;if("true"===e.getAttribute("aria-disabled"))return;const n=e.dataset.accordionTarget,i=e.closest("[data-accordion-container]"),o=null==i?void 0:i.dataset.accordionMode;if(null==n?void 0:n.startsWith("#")){const t=document.querySelector(n),r="true"===e.getAttribute("aria-expanded");"exclusive"===o&&i&&i.querySelectorAll("[data-accordion-toggle]").forEach((t=>{const e=t.dataset.accordionTarget;if(e&&e!==n){const n=document.querySelector(e);n instanceof HTMLElement&&ee(n,t,!1)}})),t&&ee(t,e,!r)}}function ie(t){t=t.startsWith("#")?t:`#${t}`;const e=document.querySelector(t),n=document.querySelector(`[data-accordion-target="${t}"]`);if("true"===(null==n?void 0:n.getAttribute("aria-disabled"))||!e||!n)return;const i="true"===n.getAttribute("aria-expanded"),o=n.closest("[data-accordion-container]");"exclusive"===(null==o?void 0:o.dataset.accordionMode)&&o&&o.querySelectorAll("[data-accordion-toggle]").forEach((e=>{const n=e.dataset.accordionTarget;if("string"==typeof n&&n!==t){const t=document.querySelector(n);t instanceof HTMLElement&&ee(t,e,!1)}})),ee(e,n,!i)}function oe(){document.querySelectorAll("[data-accordion-toggle]").forEach((t=>{if(!te.has(t)){t.addEventListener("click",ne),te.add(t);const e=t.dataset.accordionTarget;if("string"==typeof e){const n=document.querySelector(e);if(n instanceof HTMLElement){const e="true"===t.getAttribute("aria-expanded");ee(n,t,e)}}}}))}function re(){document.querySelectorAll("[data-accordion-toggle]").forEach((t=>{te.has(t)&&(t.removeEventListener("click",ne),te.delete(t))}))}"undefined"!=typeof window&&(window.toggleAccordionById=ie,document.addEventListener("DOMContentLoaded",(()=>{oe(),new MutationObserver(oe).observe(document.body,{childList:!0,subtree:!0})})));const se=new WeakSet;function ae(){document.querySelectorAll("[data-stepper-container]").forEach((t=>{if(!se.has(t)){se.add(t);const e=parseInt(t.getAttribute("data-initial-step")||"1",10);t.setAttribute("data-step",String(e)),function(t){const e=t.querySelectorAll("[data-step]"),n=t.querySelectorAll("[data-step-content]"),i=t.querySelectorAll("[data-stepper-prev]"),o=t.querySelectorAll("[data-stepper-next]");let r=parseInt(t.getAttribute("data-step")||"1",10);function s(){e.forEach(((t,e)=>{const n=e+1;t.setAttribute("data-active",String(n===r)),t.setAttribute("data-completed",String(n<r)),t.setAttribute("aria-disabled",String(n>r))})),n.forEach((t=>{parseInt(t.getAttribute("data-step-content")||"0",10)===r?t.classList.remove("hidden"):t.classList.add("hidden")})),i.forEach((t=>{t.disabled=1===r})),o.forEach((t=>{t.disabled=r===e.length}))}function a(){r<e.length&&(r++,t.setAttribute("data-step",String(r)),s())}function c(){r>1&&(r--,t.setAttribute("data-step",String(r)),s())}o.forEach((t=>{t.addEventListener("click",a)})),i.forEach((t=>{t.addEventListener("click",c)})),t.__stepperCleanup=()=>{o.forEach((t=>{t.removeEventListener("click",a)})),i.forEach((t=>{t.removeEventListener("click",c)}))},s()}(t)}}))}function ce(){document.querySelectorAll("[data-stepper-container]").forEach((t=>{t.__stepperCleanup&&(t.__stepperCleanup(),delete t.__stepperCleanup),se.delete(t)}))}"undefined"!=typeof window&&document.addEventListener("DOMContentLoaded",(()=>{ae(),new MutationObserver(ae).observe(document.body,{childList:!0,subtree:!0})}));const le={initAlert:s,initCollapse:f,initDropdowns:It,cleanupDropdowns:Ht,initPopovers:Bt,cleanupPopovers:Wt,initTooltips:Rt,cleanupTooltips:Vt,initTabs:zt,cleanupTabs:Ft,initModal:Qt,cleanupModals:Zt,initAccordion:oe,cleanupAccordions:re,toggleAccordionById:ie,initStepper:ae,cleanupSteppers:ce,initGallery:l,cleanupGallery:d};function de(){s(),f(),zt(),Qt(),oe(),ae(),l(),i().then((()=>{It(),Bt(),Rt()})).catch((t=>{console.error("Failed to load Popper.js:",t)}))}"undefined"!=typeof window&&"undefined"!=typeof document&&document.addEventListener("DOMContentLoaded",(()=>{de();new MutationObserver((()=>{s(),f(),oe(),ae(),l(),zt(),Qt(),It(),Bt(),Rt()})).observe(document.body,{childList:!0,subtree:!0}),window.DavidAI=Object.assign(Object.assign({},le),{initDavidAI:de})}));var ue=Object.assign(Object.assign({},le),{initDavidAI:de});t.Accordion=class{constructor(t,e={}){this.initialized=new WeakSet,this.toggleHandler=t=>{const e=t.currentTarget;this.toggle(e)},this.container=t,this.options=e,this.init()}init(){Array.from(this.container.children).filter((t=>t instanceof HTMLElement)).forEach((t=>{const e=t.nextElementSibling;if(e){this.initialized.add(t),t.addEventListener("click",this.toggleHandler);const n=this.options.allOpen||!1;this.setAccordionState(t,e,n)}})),this.options.allOpen&&this.showAll()}resolveElement(t){return"string"==typeof t?document.getElementById(t):t}toggle(t){const e=this.resolveElement(t);if(!e)return;const n=e.nextElementSibling;if(!n)return;const i="true"===e.getAttribute("aria-expanded");this.options.exclusive&&Array.from(this.container.children).forEach((t=>{if(t instanceof HTMLElement&&t!==e){const e=t.nextElementSibling;e&&this.setAccordionState(t,e,!1)}})),this.setAccordionState(e,n,!i)}show(t){const e=this.resolveElement(t);if(!e)return;const n=e.nextElementSibling;n&&this.setAccordionState(e,n,!0)}hide(t){const e=this.resolveElement(t);if(!e)return;const n=e.nextElementSibling;n&&this.setAccordionState(e,n,!1)}showAll(){Array.from(this.container.children).forEach((t=>{if(t instanceof HTMLElement){const e=t.nextElementSibling;e&&this.setAccordionState(t,e,!0)}}))}hideAll(){Array.from(this.container.children).forEach((t=>{if(t instanceof HTMLElement){const e=t.nextElementSibling;e&&this.setAccordionState(t,e,!1)}}))}cleanup(){Array.from(this.container.children).forEach((t=>{t instanceof HTMLElement&&this.initialized.has(t)&&(t.removeEventListener("click",this.toggleHandler),this.initialized.delete(t))}))}setAccordionState(t,e,n){e.style.maxHeight=n?`${e.scrollHeight}px`:"0",t.setAttribute("aria-expanded",String(n));const i=t.querySelector("[data-accordion-icon-open]"),o=t.querySelector("[data-accordion-icon-close]");i&&(i.style.display=n?"block":"none"),o&&(o.style.display=n?"none":"block");const r=t.querySelector("[data-accordion-icon]");r&&r.classList.toggle("rotate-180",n)}},t.Collapse=class{constructor(t,e,n={}){this.button=this.resolveElement(t,"Button element not found"),this.collapseElement=this.resolveElement(e,"Collapsible content element not found"),this.config=n,this.init()}resolveElement(t,e){if("string"==typeof t){const n=document.querySelector(t);if(!n)throw new Error(e);return n}if(t instanceof HTMLElement)return t;throw new Error(e)}init(){this.button.addEventListener("click",(()=>this.toggle()))}toggle(){const t="true"===this.button.getAttribute("aria-expanded");if(this.collapseElement.style.maxHeight=t?"0":`${this.collapseElement.scrollHeight}px`,this.button.setAttribute("aria-expanded",`${!t}`),this.config.iconSelector){const e=document.querySelector(this.config.iconSelector);e&&e.classList.toggle("rotate-180",!t)}}expand(){if(this.collapseElement.style.maxHeight=`${this.collapseElement.scrollHeight}px`,this.button.setAttribute("aria-expanded","true"),this.config.iconSelector){const t=document.querySelector(this.config.iconSelector);t&&t.classList.add("rotate-180")}}collapse(){if(this.collapseElement.style.maxHeight="0",this.button.setAttribute("aria-expanded","false"),this.config.iconSelector){const t=document.querySelector(this.config.iconSelector);t&&t.classList.remove("rotate-180")}}},t.DavidAI=le,t.Dropdown=class{constructor(t,e,n){var i;this.popperInstance=null,this.isOpen=!1,this.shouldIgnoreClick=!1,this.referenceElement=this.resolveElement(t,"Reference element not found"),this.menu=this.resolveElement(e,"Menu element not found"),this.config={placement:n.placement||"bottom-start",closeOnOutsideClick:null===(i=n.closeOnOutsideClick)||void 0===i||i,offset:n.offset||[0,5]},this.documentClickHandler=this.handleDocumentClick.bind(this),this.init()}resolveElement(t,e){if("string"==typeof t){const n=document.querySelector(t);if(!n)throw new Error(e);return n}if(t instanceof HTMLElement)return t;throw new Error(e)}handleDocumentClick(t){this.shouldIgnoreClick?this.shouldIgnoreClick=!1:this.menu.contains(t.target)||this.referenceElement.contains(t.target)||this.close()}init(){return h(this,void 0,void 0,(function*(){yield i(),this.popperInstance=Tt(this.referenceElement,this.menu,{placement:this.config.placement,modifiers:[{name:"offset",options:{offset:this.config.offset}}]}),this.config.closeOnOutsideClick&&document.addEventListener("click",this.documentClickHandler)}))}preventOutsideClick(){this.shouldIgnoreClick=!0}toggle(){this.isOpen?this.close():this.open()}open(){var t;this.isOpen||(this.menu.hidden=!1,this.menu.classList.remove("hidden"),null===(t=this.popperInstance)||void 0===t||t.update(),this.isOpen=!0)}close(){this.isOpen&&(this.menu.hidden=!0,this.menu.classList.add("hidden"),this.isOpen=!1)}destroy(){var t;null===(t=this.popperInstance)||void 0===t||t.destroy(),this.popperInstance=null,document.removeEventListener("click",this.documentClickHandler)}},t.Modal=class{constructor(t,e={}){this._isVisible=!1,this.handleKeydown=t=>{"Escape"===t.key&&this.hide()},this.handleOutsideClick=t=>{const e=t.target,n=this._modalElement.firstElementChild;n&&!n.contains(e)&&this.hide()},this._modalElement=t,this._config=Object.assign({keyboard:!0,closeOnOutsideClick:!0},e),this.setupModal(),setTimeout((()=>{this.removeHiddenClass()}),300)}show(){this._isVisible||(this._isVisible=!0,this._modalElement.classList.remove("opacity-0","pointer-events-none"),this._modalElement.classList.add("opacity-100"),this._modalElement.setAttribute("aria-hidden","false"),this._config.keyboard&&document.addEventListener("keydown",this.handleKeydown),this._config.closeOnOutsideClick&&document.addEventListener("click",this.handleOutsideClick,!0))}hide(){this._isVisible&&(this._isVisible=!1,this._modalElement.classList.add("opacity-0","pointer-events-none"),this._modalElement.classList.remove("opacity-100"),this._modalElement.setAttribute("aria-hidden","true"),this._config.keyboard&&document.removeEventListener("keydown",this.handleKeydown),this._config.closeOnOutsideClick&&document.removeEventListener("click",this.handleOutsideClick,!0))}toggle(){this._isVisible?this.hide():this.show()}isVisible(){return this._isVisible}setupModal(){const t=this._modalElement.classList.contains("opacity-0")||"true"===this._modalElement.getAttribute("aria-hidden");this._isVisible=!t,t?(this._modalElement.classList.add("opacity-0","pointer-events-none"),this._modalElement.classList.remove("opacity-100")):(this._modalElement.classList.remove("opacity-0","pointer-events-none"),this._modalElement.classList.add("opacity-100")),this._modalElement.setAttribute("aria-hidden",String(t))}removeHiddenClass(){this._modalElement.classList.remove("hidden")}},t.Popover=class{constructor(t,e){this.popperInstance=null,this.popoverElement=null,this.trigger=t,this.config={placement:e.placement||"top",popoverClass:e.popoverClass||"popover-default",content:e.content||"",openByDefault:e.openByDefault||!1,offset:e.offset||[0,8]},this.init()}init(){return h(this,void 0,void 0,(function*(){this.config.openByDefault&&(yield this.open()),this.trigger.addEventListener("click",this.handleTriggerClick.bind(this))}))}handleTriggerClick(t){t.stopPropagation(),this.toggle()}open(){return h(this,void 0,void 0,(function*(){if(!this.popoverElement){if(yield i(),this.popoverElement=document.createElement("div"),this.popoverElement.className=this.config.popoverClass||"popover-default","string"==typeof this.config.content)this.popoverElement.textContent=this.config.content;else{if(!(this.config.content instanceof HTMLElement))return void console.error("Invalid content provided for popover:",this.trigger);this.popoverElement.appendChild(this.config.content)}document.body.appendChild(this.popoverElement),this.popperInstance=Tt(this.trigger,this.popoverElement,{placement:this.config.placement,modifiers:[{name:"offset",options:{offset:this.config.offset}}]}),requestAnimationFrame((()=>{var t;this.popoverElement&&(this.popoverElement.style.opacity="1",this.popoverElement.style.transform="scale(1)",null===(t=this.popperInstance)||void 0===t||t.update())}))}}))}close(){this.popperInstance&&this.popoverElement&&(this.popperInstance.destroy(),this.popperInstance=null,this.popoverElement.remove(),this.popoverElement=null)}toggle(){this.popoverElement?this.close():this.open()}destroy(){this.close(),this.trigger.removeEventListener("click",this.handleTriggerClick.bind(this))}},t.Stepper=class{constructor(t){this.steps=t.stepElements,this.contents=t.contentElements,this.prevButton=t.prevButton,this.nextButton=t.nextButton,this.currentStep=t.initialStep||1,this.updateState(),this.prevButton.addEventListener("click",(()=>this.prev())),this.nextButton.addEventListener("click",(()=>this.next()))}updateState(){this.steps.forEach(((t,e)=>{const n=e+1;t.dataset.active=String(n===this.currentStep),t.dataset.completed=String(n<this.currentStep),t.setAttribute("aria-disabled",String(n>this.currentStep))})),this.contents.forEach(((t,e)=>{t.classList.toggle("hidden",e+1!==this.currentStep)})),this.prevButton.disabled=1===this.currentStep,this.nextButton.disabled=this.currentStep===this.steps.length}next(){this.currentStep<this.steps.length&&(this.currentStep++,this.updateState())}prev(){this.currentStep>1&&(this.currentStep--,this.updateState())}goToStep(t){t>=1&&t<=this.steps.length&&(this.currentStep=t,this.updateState())}getCurrentStep(){return this.currentStep}destroy(){this.prevButton.removeEventListener("click",(()=>this.prev())),this.nextButton.removeEventListener("click",(()=>this.next()))}},t.Tabs=class{constructor(t,e={orientation:"horizontal"}){var n,i,o;if(Gt.has(t))throw new Error("This tab group is already initialized.");this.tabGroup=t,this.tabList=t.querySelector("[role='tablist']"),this.tabLinks=Array.from((null===(n=this.tabList)||void 0===n?void 0:n.querySelectorAll(".tab-link"))||[]),this.tabContents=Array.from(t.querySelectorAll(".tab-content")),this.indicator=(null===(i=this.tabList)||void 0===i?void 0:i.querySelector(".tab-indicator"))||null,this.orientation=e.orientation||"horizontal",this.defaultTabId=e.defaultTabId||(null===(o=this.tabLinks[0])||void 0===o?void 0:o.id)||"tab1",this.initialize(),Gt.add(t)}initialize(){var t;const e=this.tabLinks.find((t=>t.id===this.defaultTabId))||(null===(t=this.tabList)||void 0===t?void 0:t.querySelector(".tab-link.active"))||this.tabLinks[0];e&&(this.tabLinks.forEach((t=>t.classList.remove("active"))),this.tabContents.forEach((t=>{t.classList.add("hidden"),t.classList.remove("block")})),setTimeout((()=>{this.activateTab(e.id)}),300)),this.tabLinks.forEach((t=>{t.addEventListener("click",(e=>{e.preventDefault(),this.activateTab(t.id)}))}))}updateIndicator(t){var e;const n=t.getBoundingClientRect(),i=null===(e=this.tabList)||void 0===e?void 0:e.getBoundingClientRect();i&&this.indicator&&requestAnimationFrame((()=>{"vertical"===this.orientation?(this.indicator.style.transform=`translateY(${n.top-i.top}px)`,this.indicator.style.height=`${n.height}px`):(this.indicator.style.transform=`translateX(${n.left-i.left}px)`,this.indicator.style.width=`${n.width}px`),this.indicator.classList.remove("hidden"),this.indicator.style.opacity="1",this.indicator.style.scale="1"}))}activateTab(t){const e=this.tabLinks.find((e=>e.id===t)),n=this.tabContents.find((e=>e.id===`${t}-content`));e&&n?(this.tabLinks.forEach((t=>t.classList.remove("active"))),this.tabContents.forEach((t=>{t.classList.add("hidden"),t.classList.remove("block")})),e.classList.add("active"),n.classList.add("block"),n.classList.remove("hidden"),this.updateIndicator(e)):console.warn(`Tab or content with id ${t} not found`)}cleanup(){this.tabLinks.forEach((t=>{const e=t.cloneNode(!0);t.replaceWith(e)})),Gt.delete(this.tabGroup)}},t.Tooltip=class{constructor(t,e={}){this.tooltipElement=null,this.tooltipInstance=null,this.triggerElement=t,this.options={placement:e.placement||"top",tooltipClass:e.tooltipClass||"tooltip-default",content:e.content||""},this.init()}init(){return h(this,void 0,void 0,(function*(){yield i(),this.triggerElement.addEventListener("mouseenter",this.showTooltip.bind(this)),this.triggerElement.addEventListener("mouseleave",this.hideTooltip.bind(this))}))}showTooltip(){return h(this,void 0,void 0,(function*(){if(!this.tooltipElement){if(this.tooltipElement=document.createElement("div"),this.tooltipElement.className=this.options.tooltipClass,"string"==typeof this.options.content)this.tooltipElement.textContent=this.options.content;else{if(!(this.options.content instanceof HTMLElement))return void console.warn("No valid content provided for tooltip.");{const t=this.options.content.cloneNode(!0);t.classList.remove("hidden"),this.tooltipElement.appendChild(t)}}document.body.appendChild(this.tooltipElement),this.tooltipInstance=Tt(this.triggerElement,this.tooltipElement,{placement:this.options.placement,modifiers:[{name:"offset",options:{offset:[0,8]}}]})}}))}hideTooltip(){this.tooltipInstance&&(this.tooltipInstance.destroy(),this.tooltipInstance=null),this.tooltipElement&&(this.tooltipElement.remove(),this.tooltipElement=null)}destroy(){this.triggerElement.removeEventListener("mouseenter",this.showTooltip.bind(this)),this.triggerElement.removeEventListener("mouseleave",this.hideTooltip.bind(this)),this.hideTooltip()}},t.cleanupAccordions=re,t.cleanupDropdowns=Ht,t.cleanupGallery=d,t.cleanupModals=Zt,t.cleanupPopovers=Wt,t.cleanupSteppers=ce,t.cleanupTabs=Ft,t.cleanupTooltips=Vt,t.default=ue,t.initAccordion=oe,t.initAlert=s,t.initCollapse=f,t.initDavidAI=de,t.initDropdowns=It,t.initGallery=l,t.initModal=Qt,t.initPopovers=Bt,t.initStepper=ae,t.initTabs=zt,t.initTooltips=Rt,t.toggleAccordionById=ie,Object.defineProperty(t,"__esModule",{value:!0})}));
//# sourceMappingURL=material-tailwind.min.js.map
{
"name": "@material-tailwind/html",
"version": "3.0.0-beta.2",
"version": "3.0.0-beta.3",
"description": "Material Tailwind is an open-source library that uses the power of Tailwind CSS and React to help you build unique web projects faster and easier. The stunning design inspired by Material Design is a bonus!",

@@ -21,2 +21,3 @@ "main": "dist/material-tailwind.js",

"package.json",
"CHANGELOG.md",
"rollup.config.mjs"

@@ -27,3 +28,2 @@ ],

"build:watch": "rollup -c --watch",
"dev": "rollup -c -w",
"test": "echo \"Error: no test specified\" && exit 1"

@@ -30,0 +30,0 @@ },

@@ -452,3 +452,3 @@ # Material Tailwind - Free Tailwind CSS Components Library

We welcome contributions and feedback! If you have suggestions, encounter issues, or want to propose new components, feel free to open an issue or submit a pull request on our repository. Your input helps make David UI better for everyone.
We welcome contributions and feedback! If you have suggestions, encounter issues, or want to propose new components, feel free to open an issue or submit a pull request on our repository. Your input helps make Material Tailwind better for everyone.

@@ -455,0 +455,0 @@ ---

@@ -6,6 +6,6 @@ // Accordion Component

dataset: {
duiAccordionIconOpen?: string;
duiAccordionIconClose?: string;
duiAccordionIcon?: string;
duiAccordionTarget?: string;
accordionIconOpen?: string;
accordionIconClose?: string;
accordionIcon?: string;
accordionTarget?: string;
};

@@ -16,3 +16,3 @@ };

dataset: {
duiAccordionMode?: "exclusive" | "all-open";
accordionMode?: "exclusive" | "all-open";
};

@@ -52,5 +52,5 @@ };

const targetID = button.dataset.duiAccordionTarget;
const targetID = button.dataset.accordionTarget;
const parentElement = button.closest<AccordionContainer>("[data-accordion-container]");
const mode = parentElement?.dataset.duiAccordionMode;
const mode = parentElement?.dataset.accordionMode;

@@ -63,3 +63,3 @@ if (targetID?.startsWith("#")) {

parentElement.querySelectorAll<AccordionButton>("[data-accordion-toggle]").forEach(otherButton => {
const otherTargetID = otherButton.dataset.duiAccordionTarget;
const otherTargetID = otherButton.dataset.accordionTarget;
if (otherTargetID && otherTargetID !== targetID) {

@@ -98,7 +98,7 @@ const otherElement = document.querySelector<HTMLElement>(otherTargetID);

const parentElement = toggleButton.closest<AccordionContainer>("[data-accordion-container]");
const mode = parentElement?.dataset.duiAccordionMode;
const mode = parentElement?.dataset.accordionMode;
if (mode === "exclusive" && parentElement) {
parentElement.querySelectorAll<AccordionButton>("[data-accordion-toggle]").forEach((otherButton) => {
const otherTargetID = otherButton.dataset.duiAccordionTarget;
const otherTargetID = otherButton.dataset.accordionTarget;

@@ -128,3 +128,3 @@ // Ensure otherTargetID is a string

const targetID = button.dataset.duiAccordionTarget;
const targetID = button.dataset.accordionTarget;

@@ -131,0 +131,0 @@ // Ensure targetID is a valid string

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

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

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