1/** 2 * Bundled by jsDelivr using Rollup v4.62.2 and esbuild v0.28.1. 3 * Original file: /npm/[email protected]/lib/esm/index.js 4 * 5 * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files 6 */ 7import{createPopper as tt}from"@popperjs/core";import{DateRangePicker as et,Datepicker as it}from"flowbite-datepicker";var bt=(function(){function e(t,i){i===void 0&&(i=[]),this._eventType=t,this._eventFunctions=i}return e.prototype.init=function(){var t=this;this._eventFunctions.forEach(function(i){typeof window<"u"&&window.addEventListener(t._eventType,i)})},e})(),Et=(function(){function e(){this._instances={Accordion:{},Carousel:{},Collapse:{},Dial:{},Dismiss:{},Drawer:{},Dropdown:{},Modal:{},Popover:{},Tabs:{},Tooltip:{},InputCounter:{},CopyClipboard:{},Datepicker:{}}}return e.prototype.addInstance=function(t,i,n,s){if(s===void 0&&(s=!1),!this._instances[t])return console.warn("Flowbite: Component ".concat(t," does not exist.")),!1;if(this._instances[t][n]&&!s){console.warn("Flowbite: Instance with ID ".concat(n," already exists."));return}s&&this._instances[t][n]&&this._instances[t][n].destroyAndRemoveInstance(),this._instances[t][n||this._generateRandomId()]=i},e.prototype.getAllInstances=function(){return this._instances},e.prototype.getInstances=function(t){return this._instances[t]?this._instances[t]:(console.warn("Flowbite: Component ".concat(t," does not exist.")),!1)},e.prototype.getInstance=function(t,i){if(this._componentAndInstanceCheck(t,i)){if(!this._instances[t][i]){console.warn("Flowbite: Instance with ID ".concat(i," does not exist."));return}return this._instances[t][i]}},e.prototype.destroyAndRemoveInstance=function(t,i){this._componentAndInstanceCheck(t,i)&&(this.destroyInstanceObject(t,i),this.removeInstance(t,i))},e.prototype.removeInstance=function(t,i){this._componentAndInstanceCheck(t,i)&&delete this._instances[t][i]},e.prototype.destroyInstanceObject=function(t,i){this._componentAndInstanceCheck(t,i)&&this._instances[t][i].destroy()},e.prototype.instanceExists=function(t,i){return!(!this._instances[t]||!this._instances[t][i])},e.prototype._generateRandomId=function(){return Math.random().toString(36).substr(2,9)},e.prototype._componentAndInstanceCheck=function(t,i){return this._instances[t]?this._instances[t][i]?!0:(console.warn("Flowbite: Instance with ID ".concat(i," does not exist.")),!1):(console.warn("Flowbite: Component ".concat(t," does not exist.")),!1)},e})(),a=new Et;typeof window<"u"&&(window.FlowbiteInstances=a);var w=function(){return w=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++){t=arguments[i];for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s])}return e},w.apply(this,arguments)},b={alwaysOpen:!1,activeClasses:"bg-neutral-secondary-medium text-heading",inactiveClasses:"bg-neutral-primary text-body",onOpen:function(){},onClose:function(){},onToggle:function(){}},It={id:null,override:!0},nt=(function(){function e(t,i,n,s){t===void 0&&(t=null),i===void 0&&(i=[]),n===void 0&&(n=b),s===void 0&&(s=It),this._instanceId=s.id?s.id:t.id,this._accordionEl=t,this._items=i,this._options=w(w({},b),n),this._initialized=!1,this.init(),a.addInstance("Accordion",this,this._instanceId,s.override)}return e.prototype.init=function(){var t=this;this._items.length&&!this._initialized&&(this._items.forEach(function(i){i.active&&t.open(i.id);var n=function(){t.toggle(i.id)};i.triggerEl.addEventListener("click",n),i.clickHandler=n}),this._initialized=!0)},e.prototype.destroy=function(){this._items.length&&this._initialized&&(this._items.forEach(function(t){t.triggerEl.removeEventListener("click",t.clickHandler),delete t.clickHandler}),this._initialized=!1)},e.prototype.removeInstance=function(){a.removeInstance("Accordion",this._instanceId)},e.prototype.destroyAndRemoveInstance=function(){this.destroy(),this.removeInstance()},e.prototype.getItem=function(t){return this._items.filter(function(i){return i.id===t})[0]},e.prototype.open=function(t){var i,n,s=this,o=this.getItem(t);this._options.alwaysOpen||this._items.map(function(r){var d,l;r!==o&&((d=r.triggerEl.classList).remove.apply(d,s._options.activeClasses.split(" ")),(l=r.triggerEl.classList).add.apply(l,s._options.inactiveClasses.split(" ")),r.targetEl.classList.add("hidden"),r.triggerEl.setAttribute("aria-expanded","fal
7se"),r.active=!1,r.iconEl&&r.iconEl.classList.add("rotate-180"))}),(i=o.triggerEl.classList).add.apply(i,this._options.activeClasses.split(" ")),(n=o.triggerEl.classList).remove.apply(n,this._options.inactiveClasses.split(" ")),o.triggerEl.setAttribute("aria-expanded","true"),o.targetEl.classList.remove("hidden"),o.active=!0,o.iconEl&&o.iconEl.classList.remove("rotate-180"),this._options.onOpen(this,o)},e.prototype.toggle=function(t){var i=this.getItem(t);i.active?this.close(t):this.open(t),this._options.onToggle(this,i)},e.prototype.close=function(t){var i,n,s=this.getItem(t);(i=s.triggerEl.classList).remove.apply(i,this._options.activeClasses.split(" ")),(n=s.triggerEl.classList).add.apply(n,this._options.inactiveClasses.split(" ")),s.targetEl.classList.add("hidden"),s.triggerEl.setAttribute("aria-expanded","false"),s.active=!1,s.iconEl&&s.iconEl.classList.add("rotate-180"),this._options.onClose(this,s)},e.prototype.updateOnOpen=function(t){this._options.onOpen=t},e.prototype.updateOnClose=function(t){this._options.onClose=t},e.prototype.updateOnToggle=function(t){this._options.onToggle=t},e})();function E(){document.querySelectorAll("[data-accordion]").forEach(function(e){var t=e.getAttribute("data-accordion"),i=e.getAttribute("data-active-classes"),n=e.getAttribute("data-inactive-classes"),s=[];e.querySelectorAll("[data-accordion-target]").forEach(function(o){if(o.closest("[data-accordion]")===e){var r={id:o.getAttribute("data-accordion-target"),triggerEl:o,targetEl:document.querySelector(o.getAttribute("data-accordion-target")),iconEl:o.querySelector("[data-accordion-icon]"),active:o.getAttribute("aria-expanded")==="true"};s.push(r)}}),new nt(e,s,{alwaysOpen:t==="open",activeClasses:i||b.activeClasses,inactiveClasses:n||b.inactiveClasses})})}typeof window<"u"&&(window.Accordion=nt,window.initAccordions=E);var I=function(){return I=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++){t=arguments[i];for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s])}return e},I.apply(this,arguments)},gt={onCollapse:function(){},onExpand:function(){},onToggle:function(){}},kt={id:null,override:!0},k=(function(){function e(t,i,n,s){t===void 0&&(t=null),i===void 0&&(i=null),n===void 0&&(n=gt),s===void 0&&(s=kt),this._instanceId=s.id?s.id:t.id,this._targetEl=t,this._triggerEl=i,this._options=I(I({},gt),n),this._visible=!1,this._initialized=!1,this.init(),a.addInstance("Collapse",this,this._instanceId,s.override)}return e.prototype.init=function(){var t=this;this._triggerEl&&this._targetEl&&!this._initialized&&(this._triggerEl.hasAttribute("aria-expanded")?this._visible=this._triggerEl.getAttribute("aria-expanded")==="true":this._visible=!this._targetEl.classList.contains("hidden"),this._clickHandler=function(){t.toggle()},this._triggerEl.addEventListener("click",this._clickHandler),this._initialized=!0)},e.prototype.destroy=function(){this._triggerEl&&this._initialized&&(this._triggerEl.removeEventListener("click",this._clickHandler),this._initialized=!1)},e.prototype.removeInstance=function(){a.removeInstance("Collapse",this._instanceId)},e.prototype.destroyAndRemoveInstance=function(){this.destroy(),this.removeInstance()},e.prototype.collapse=function(){this._targetEl.classList.add("hidden"),this._triggerEl&&this._triggerEl.setAttribute("aria-expanded","false"),this._visible=!1,this._options.onCollapse(this)},e.prototype.expand=function(){this._targetEl.classList.remove("hidden"),this._triggerEl&&this._triggerEl.setAttribute("aria-expanded","true"),this._visible=!0,this._options.onExpand(this)},e.prototype.toggle=function(){this._visible?this.collapse():this.expand(),this._options.onToggle(this)},e.prototype.updateOnCollapse=function(t){this._options.onCollapse=t},e.prototype.updateOnExpand=function(t){this._options.onExpand=t},e.prototype.updateOnToggle=function(t){this._options.onToggle=t},e})();function L(){document.querySelectorAll("[data-collapse-toggle]").forEach(function(e){var t=e.getAttribute("data-collapse-toggle"),i=document.getElementById(t);i?a.instanceExists("Collapse",i.getAttribute("id"))?new k(i,e,{},{id:i.getAttribute("id")+"_"+a._generateRandomId()}):new k(i,e):console.error('The target element with id "'.concat(t,'" does not exist. Please check the data-collapse-toggle attribute.'))})}typeof window<"u"&&(window.Collapse=k,window.initCollapses=L);var _=function(){return _=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++){t=arguments[i];for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s])}return e},_.apply(this,arguments)},A={defaultPosition:0,indicators:{items:[],activeClasses:"bg-white dark:bg-gray-800",inactiveClasses:"bg-white/50 dark:bg-gray-800/50 hover:bg-white dark:hover:bg-gray-800"},interval:3e3,onNext:function(){},onPrev:function(){},onChange:function(){}},Lt={id:null,override:!0},st=(function(){function e(t,i,n,s){t===void 0&&(t=null),i===void 0&&(i=[]),n===void 0&&(n=A),s===void 0&&(s=Lt),this._instanceId=s.id?s.id:t.id,this._carouselEl=t,this._items=i,this._options=_(_(_({},A),n),{indicators:_(_({},A.indicators),n.indicators)}),this._activeItem=this.getItem(this._options.defaultPosition),this._indicators=this._options.indicators.items,this._intervalDuration=this._options.interval,this._intervalInstance=null,this._initialized=!1,this.init(),a.addInstance("Carousel",this,this._instanceId,s.override)}return e.prototype.init=function(){var t=this;this._items.length&&!this._initialized&&(this._items.map(function(i){i.el.classList.add("absolute","
7inset-0","transition-transform","transform")}),this.getActiveItem()?this.slideTo(this.getActiveItem().position):this.slideTo(0),this._indicators.map(function(i,n){i.el.addEventListener("click",function(){t.slideTo(n)})}),this._initialized=!0)},e.prototype.destroy=function(){this._initialized&&(this._initialized=!1)},e.prototype.removeInstance=function(){a.removeInstance("Carousel",this._instanceId)},e.prototype.destroyAndRemoveInstance=function(){this.destroy(),this.removeInstance()},e.prototype.getItem=function(t){return this._items[t]},e.prototype.slideTo=function(t){var i=this._items[t],n={left:i.position===0?this._items[this._items.length-1]:this._items[i.position-1],middle:i,right:i.position===this._items.length-1?this._items[0]:this._items[i.position+1]};this._rotate(n),this._setActiveItem(i),this._intervalInstance&&(this.pause(),this.cycle()),this._options.onChange(this)},e.prototype.next=function(){var t=this.getActiveItem(),i=null;t.position===this._items.length-1?i=this._items[0]:i=this._items[t.position+1],this.slideTo(i.position),this._options.onNext(this)},e.prototype.prev=function(){var t=this.getActiveItem(),i=null;t.position===0?i=this._items[this._items.length-1]:i=this._items[t.position-1],this.slideTo(i.position),this._options.onPrev(this)},e.prototype._rotate=function(t){if(this._items.map(function(i){i.el.classList.add("hidden")}),this._items.length===1){t.middle.el.classList.remove("-translate-x-full","translate-x-full","translate-x-0","hidden","z-10"),t.middle.el.classList.add("translate-x-0","z-20");return}t.left.el.classList.remove("-translate-x-full","translate-x-full","translate-x-0","hidden","z-20"),t.left.el.classList.add("-translate-x-full","z-10"),t.middle.el.classList.remove("-translate-x-full","translate-x-full","translate-x-0","hidden","z-10"),t.middle.el.classList.add("translate-x-0","z-30"),t.right.el.classList.remove("-translate-x-full","translate-x-full","translate-x-0","hidden","z-30"),t.right.el.classList.add("translate-x-full","z-20")},e.prototype.cycle=function(){var t=this;typeof window<"u"&&(this._intervalInstance=window.setInterval(function(){t.next()},this._intervalDuration))},e.prototype.pause=function(){clearInterval(this._intervalInstance)},e.prototype.getActiveItem=function(){return this._activeItem},e.prototype._setActiveItem=function(t){var i,n,s=this;this._activeItem=t;var o=t.position;this._indicators.length&&(this._indicators.map(function(r){var d,l;r.el.setAttribute("aria-current","false"),(d=r.el.classList).remove.apply(d,s._options.indicators.activeClasses.split(" ")),(l=r.el.classList).add.apply(l,s._options.indicators.inactiveClasses.split(" "))}),(i=this._indicators[o].el.classList).add.apply(i,this._options.indicators.activeClasses.split(" ")),(n=this._indicators[o].el.classList).remove.apply(n,this._options.indicators.inactiveClasses.split(" ")),this._indicators[o].el.setAttribute("aria-current","true"))},e.prototype.updateOnNext=function(t){this._options.onNext=t},e.prototype.updateOnPrev=function(t){this._options.onPrev=t},e.prototype.updateOnChange=function(t){this._options.onChange=t},e})();function C(){document.querySelectorAll("[data-carousel]").forEach(function(e){var t=e.getAttribute("data-carousel-interval"),i=e.getAttribute("data-carousel")==="slide",n=[],s=0;e.querySelectorAll("[data-carousel-item]").length&&Array.from(e.querySelectorAll("[data-carousel-item]")).map(function(u,m){n.push({position:m,el:u}),u.getAttribute("data-carousel-item")==="active"&&(s=m)});var o=[];e.querySelectorAll("[data-carousel-slide-to]").length&&Array.from(e.querySelectorAll("[data-carousel-slide-to]")).map(function(u){o.push({position:parseInt(u.getAttribute("data-carousel-slide-to")),el:u})});var r=new st(e,n,{defaultPosition:s,indicators:{items:o},interval:t||A.interval});i&&r.cycle();var d=e.querySelector("[data-carousel-next]"),l=e.querySelector("[data-carousel-prev]");d&&d.addEventListener("click",function(){r.next()}),l&&l.addEventListener("click",function(){r.prev()})})}typeof window<"u"&&(window.Carousel=st,window.initCarousels=C);var T=function(){return T=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++){t=arguments[i];for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s])}return e},T.apply(this,arguments)},mt={transition:"transition-opacity",duration:300,timing:"ease-out",onHide:function(){}},At={id:null,override:!0},ot=(function(){function e(t,i,n,s){t===void 0&&(t=null),i===void 0&&(i=null),n===void 0&&(n=mt),s===void 0&&(s=At),this._instanceId=s.id?s.id:t.id,this._targetEl=t,this._triggerEl=i,this._options=T(T({},mt),n),this._initialized=!1,this.init(),a.addInstance("Dismiss",this,this._instanceId,s.override)}return e.prototype.init=function(){var t=this;this._triggerEl&&this._targetEl&&!this._initialized&&(this._clickHandler=function(){t.hide()},this._triggerEl.addEventListener("click",this._clickHandler),this._initialized=!0)},e.prototype.destroy=function(){this._triggerEl&&this._initialized&&(this._triggerEl.removeEventListener("click",this._clickHandler),this._initialized=!1)},e.prototype.removeInstance=function(){a.removeInstance("Dismiss",this._instanceId)},e.prototype.destroyAndRemoveInstance=function(){this.destroy(),this.removeInstance()},e.prototype.hide=function(){var t=this;this._targetEl.classList.add(this._options.transition,"duration-".concat(this._options.duration),this._options.timing,"opacity-0"),setTimeout(function(){t._targetEl.classList.add("hidden")},this._options.duration),this._options.onHide(this,this._targetEl)},e.prototype.updateOnHide=function(t){this._options.onHide=t},e})();function D(){document.querySelectorAll("[data-dismiss-target]").forEach(function(e){var t=e.getAttribute("data-dismiss-target"),i=document.querySelector(t);i?new ot(i,e):console.error('The dismiss element with id "'.concat(t,'" does not exist. Please check the data-dismiss-target attribute.'))})}
7typeof window<"u"&&(window.Dismiss=ot,window.initDismisses=D);var h=function(){return h=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++){t=arguments[i];for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s])}return e},h.apply(this,arguments)},H=function(e,t,i){if(i||arguments.length===2)for(var n=0,s=t.length,o;n<s;n++)(o||!(n in t))&&(o||(o=Array.prototype.slice.call(t,0,n)),o[n]=t[n]);return e.concat(o||Array.prototype.slice.call(t))},p={placement:"bottom",triggerType:"click",offsetSkidding:0,offsetDistance:10,delay:300,ignoreClickOutsideClass:!1,onShow:function(){},onHide:function(){},onToggle:function(){}},Ct={id:null,override:!0},rt=(function(){function e(t,i,n,s){t===void 0&&(t=null),i===void 0&&(i=null),n===void 0&&(n=p),s===void 0&&(s=Ct),this._instanceId=s.id?s.id:t.id,this._targetEl=t,this._triggerEl=i,this._options=h(h({},p),n),this._popperInstance=null,this._visible=!1,this._initialized=!1,this.init(),a.addInstance("Dropdown",this,this._instanceId,s.override)}return e.prototype.init=function(){this._triggerEl&&this._targetEl&&!this._initialized&&(this._popperInstance=this._createPopperInstance(),this._setupEventListeners(),this._initialized=!0)},e.prototype.destroy=function(){var t=this,i=this._getTriggerEvents();this._options.triggerType==="click"&&i.showEvents.forEach(function(n){t._triggerEl.removeEventListener(n,t._clickHandler)}),this._options.triggerType==="hover"&&(i.showEvents.forEach(function(n){t._triggerEl.removeEventListener(n,t._hoverShowTriggerElHandler),t._targetEl.removeEventListener(n,t._hoverShowTargetElHandler)}),i.hideEvents.forEach(function(n){t._triggerEl.removeEventListener(n,t._hoverHideHandler),t._targetEl.removeEventListener(n,t._hoverHideHandler)})),this._popperInstance.destroy(),this._initialized=!1},e.prototype.removeInstance=function(){a.removeInstance("Dropdown",this._instanceId)},e.prototype.destroyAndRemoveInstance=function(){this.destroy(),this.removeInstance()},e.prototype._setupEventListeners=function(){var t=this,i=this._getTriggerEvents();this._clickHandler=function(){t.toggle()},this._options.triggerType==="click"&&i.showEvents.forEach(function(n){t._triggerEl.addEventListener(n,t._clickHandler)}),this._hoverShowTriggerElHandler=function(n){n.type==="click"?t.toggle():setTimeout(function(){t.show()},t._options.delay)},this._hoverShowTargetElHandler=function(){t.show()},this._hoverHideHandler=function(){setTimeout(function(){t._targetEl.matches(":hover")||t.hide()},t._options.delay)},this._options.triggerType==="hover"&&(i.showEvents.forEach(function(n){t._triggerEl.addEventListener(n,t._hoverShowTriggerElHandler),t._targetEl.addEventListener(n,t._hoverShowTargetElHandler)}),i.hideEvents.forEach(function(n){t._triggerEl.addEventListener(n,t._hoverHideHandler),t._targetEl.addEventListener(n,t._hoverHideHandler)}))},e.prototype._createPopperInstance=function(){return tt(this._triggerEl,this._targetEl,{placement:this._options.placement,modifiers:[{name:"offset",options:{offset:[this._options.offsetSkidding,this._options.offsetDistance]}}]})},e.prototype._setupClickOutsideListener=function(){var t=this;this._clickOutsideEventListener=function(i){t._handleClickOutside(i,t._targetEl)},document.body.addEventListener("click",this._clickOutsideEventListener,!0)},e.prototype._removeClickOutsideListener=function(){document.body.removeEventListener("click",this._clickOutsideEventListener,!0)},e.prototype._handleClickOutside=function(t,i){var n=t.target,s=this._options.ignoreClickOutsideClass,o=!1;if(s){var r=document.querySelectorAll(".".concat(s));r.forEach(function(d){if(d.contains(n)){o=!0;return}})}n!==i&&!i.contains(n)&&!this._triggerEl.contains(n)&&!o&&this.isVisible()&&this.hide()},e.prototype._getTriggerEvents=function(){switch(this._options.triggerType){case"hover":return{showEvents:["mouseenter","click"],hideEvents:["mouseleave"]};case"click":return{showEvents:["click"],hideEvents:[]};case"none":return{showEvents:[],hideEvents:[]};default:return{showEvents:["click"],hideEvents:[]}}},e.prototype.toggle=function(){this.isVisible()?this.hide():this.show(),this._options.onToggle(this)},e.prototype.isVisible=function(){return this._visible},e.prototype.show=function(){this._targetEl.classList.remove("hidden"),this._targetEl.classList.add("block"),this._targetEl.removeAttribute("aria-hidden"),this._popperInstance.setOptions(function(t){return h(h({},t),{modifiers:H(H([],t.modifiers,!0),[{name:"eventListeners",enabled:!0}],!1)})}),this._setupClickOutsideListener(),this._popperInstance.update(
7),this._visible=!0,this._options.onShow(this)},e.prototype.hide=function(){this._targetEl.classList.remove("block"),this._targetEl.classList.add("hidden"),this._targetEl.setAttribute("aria-hidden","true"),this._popperInstance.setOptions(function(t){return h(h({},t),{modifiers:H(H([],t.modifiers,!0),[{name:"eventListeners",enabled:!1}],!1)})}),this._visible=!1,this._removeClickOutsideListener(),this._options.onHide(this)},e.prototype.updateOnShow=function(t){this._options.onShow=t},e.prototype.updateOnHide=function(t){this._options.onHide=t},e.prototype.updateOnToggle=function(t){this._options.onToggle=t},e})();function x(){document.querySelectorAll("[data-dropdown-toggle]").forEach(function(e){var t=e.getAttribute("data-dropdown-toggle"),i=document.getElementById(t);if(i){var n=e.getAttribute("data-dropdown-placement"),s=e.getAttribute("data-dropdown-offset-skidding"),o=e.getAttribute("data-dropdown-offset-distance"),r=e.getAttribute("data-dropdown-trigger"),d=e.getAttribute("data-dropdown-delay"),l=e.getAttribute("data-dropdown-ignore-click-outside-class");new rt(i,e,{placement:n||p.placement,triggerType:r||p.triggerType,offsetSkidding:s?parseInt(s):p.offsetSkidding,offsetDistance:o?parseInt(o):p.offsetDistance,delay:d?parseInt(d):p.delay,ignoreClickOutsideClass:l||p.ignoreClickOutsideClass})}else console.error('The dropdown element with id "'.concat(t,'" does not exist. Please check the data-dropdown-toggle attribute.'))})}typeof window<"u"&&(window.Dropdown=rt,window.initDropdowns=x);var O=function(){return O=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++){t=arguments[i];for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s])}return e},O.apply(this,arguments)},S={placement:"center",backdropClasses:"bg-dark-backdrop/70 fixed inset-0 z-40",backdrop:"dynamic",closable:!0,onHide:function(){},onShow:function(){},onToggle:function(){}},Tt={id:null,override:!0},at=(function(){function e(t,i,n){t===void 0&&(t=null),i===void 0&&(i=S),n===void 0&&(n=Tt),this._eventListenerInstances=[],this._instanceId=n.id?n.id:t.id,this._targetEl=t,this._options=O(O({},S),i),this._isHidden=!0,this._backdropEl=null,this._initialized=!1,this.init(),a.addInstance("Modal",this,this._instanceId,n.override)}return e.prototype.init=function(){var t=this;this._targetEl&&!this._initialized&&(this._getPlacementClasses().map(function(i){t._targetEl.classList.add(i)}),this._initialized=!0)},e.prototype.destroy=function(){this._initialized&&(this.removeAllEventListenerInstances(),this._destroyBackdropEl(),this._initialized=!1)},e.prototype.removeInstance=function(){a.removeInstance("Modal",this._instanceId)},e.prototype.destroyAndRemoveInstance=function(){this.destroy(),this.removeInstance()},e.prototype._createBackdrop=function(){var t;if(this._isHidden){var i=document.createElement("div");(t=i.classList).add.apply(t,this._options.backdropClasses.split(" ")),document.querySelector("body").append(i),this._backdropEl=i}},e.prototype._destroyBackdropEl=function(){!this._isHidden&&this._backdropEl&&(this._backdropEl.remove(),this._backdropEl=null)},e.prototype._setupModalCloseEventListeners=function(){var t=this;this._options.backdrop==="dynamic"&&(this._clickOutsideEventListener=function(i){t._handleOutsideClick(i.target)},this._targetEl.addEventListener("click",this._clickOutsideEventListener,!0)),this._keydownEventListener=function(i){i.key==="Escape"&&t.hide()},document.body.addEventListener("keydown",this._keydownEventListener,!0)},e.prototype._removeModalCloseEventListeners=function(){this._options.backdrop==="dynamic"&&this._targetEl.removeEventListener("click",this._clickOutsideEventListener,!0),document.body.removeEventListener("keydown",this._keydownEventListener,!0)},e.prototype._handleOutsideClick=function(t){(t===this._targetEl||t===this._backdropEl&&this.isVisible())&&this.hide()},e.prototype._getPlacementClasses=function(){switch(this._options.placement){case"top-left":return["justify-start","items-start"];case"top-center":return["justify-center","items-start"];case"top-right":return["justify-end","items-start"];case"center-left":return["justify-start","items-center"];case"center":return["justify-center","items-center"];case"center-right":return["justify-end","items-center"];case"bottom-left":return["justify-start","items-end"];case"bottom-center":return["justify-center","items-end"];case"bottom-right":return["justify-end","items-end"];default:return["justify-center","items-center"]}},e.prototype.toggle=function(){this._isHidden?this.show():this.hide(),this._options.onToggle(this)},e.prototype.show=function(){this.isHidden&&(this._targetEl.classList.add("flex"),this._targetEl.classList.remove("hidden"),this._targetEl.setAttribute("aria-modal","true"),this._targetEl.setAttribute("role","dialog"),this._targetEl.removeAttribute("aria-hidden"),this._createBackdrop(),this._isHidden=!1,this._options.closable&&this._setupModalCloseEventListeners(),document.body.classList.add("overflow-hidden"),this._options.onShow(this))},e.prototype.hide=function(){this.isVisible&&(this._targetEl.classList.add("hidden"),this._targetEl.classList.remove("flex"),this._targetEl.setAttribute("aria-hidden","true"),this._targetEl.removeAttribute("aria-modal"),this._targetEl.removeAttribute("role"),this._destroyBackdropEl(),this._isHidden=!0,document.body.classList.remove("overflow-hidden"),this._options.closable&&this._removeModalCloseEventListeners(),this._options.onHide(this))},e.prototype.isVisible=function(){return!this._isHidden},e.prototype.isHidden=function(){return this._isHidden},e.prototype.addEventListenerInstance=function(t,i,n){this._eventListenerInstances.push({element:t,type:i,handler:n})},e.prototype.removeAllEventListenerInstances=function(){this._eventListenerInstances.map(function(t){t.element.removeEventListener(t.type,t.handler)}),this._eventListenerInstances=[]},e.prototype.getAllEventListenerInstances=function(){return this._eventListenerInstances},e.prototype.updateOnShow=function(t){this._options.onShow=t},e.prototype.updateOnHide=function(t){this._options.onHide=t},e.prototype.updateOnToggle=function(t){this._options.onToggle=t},e})();function z(){document.querySelectorAll("[data-modal-target]").forEach(function(e){var t=e.getAttribute("data-modal-target"),i=document.getElementById(t);if(i){var n=i.getAttribute("data-modal-placement"),s=i.getAttribute("data-modal-backdrop");new at(i,{placement:n||S.placement,backdrop:s||S.backdrop})}
7else console.error("Modal with id ".concat(t," does not exist. Are you sure that the data-modal-target attribute points to the correct modal id?."))}),document.querySelectorAll("[data-modal-toggle]").forEach(function(e){var t=e.getAttribute("data-modal-toggle"),i=document.getElementById(t);if(i){var n=a.getInstance("Modal",t);if(n){var s=function(){n.toggle()};e.addEventListener("click",s),n.addEventListenerInstance(e,"click",s)}else console.error("Modal with id ".concat(t," has not been initialized. Please initialize it using the data-modal-target attribute."))}else console.error("Modal with id ".concat(t," does not exist. Are you sure that the data-modal-toggle attribute points to the correct modal id?"))}),document.querySelectorAll("[data-modal-show]").forEach(function(e){var t=e.getAttribute("data-modal-show"),i=document.getElementById(t);if(i){var n=a.getInstance("Modal",t);if(n){var s=function(){n.show()};e.addEventListener("click",s),n.addEventListenerInstance(e,"click",s)}else console.error("Modal with id ".concat(t," has not been initialized. Please initialize it using the data-modal-target attribute."))}
7else console.error("Modal with id ".concat(t," does not exist. Are you sure that the data-modal-show attribute points to the correct modal id?"))}),document.querySelectorAll("[data-modal-hide]").forEach(function(e){var t=e.getAttribute("data-modal-hide"),i=document.getElementById(t);if(i){var n=a.getInstance("Modal",t);if(n){var s=function(){n.hide()};e.addEventListener("click",s),n.addEventListenerInstance(e,"click",s)}else console.error("Modal with id ".concat(t," has not been initialized. Please initialize it using the data-modal-target attribute."))}else console.error("Modal with id ".concat(t," does not exist. Are you sure that the data-modal-hide attribute points to the correct modal id?"))})}typeof window<"u"&&(window.Modal=at,window.initModals=z);var P=function(){return P=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++){t=arguments[i];for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s])}return e},P.apply(this,arguments)},g={placement:"left",bodyScrolling:!1,backdrop:!0,edge:!1,edgeOffset:"bottom-[60px]",backdropClasses:"bg-dark-backdrop/70 fixed inset-0 z-30",onShow:function(){},onHide:function(){},onToggle:function(){}},Dt={id:null,override:!0},dt=(function(){function e(t,i,n){t===void 0&&(t=null),i===void 0&&(i=g),n===void 0&&(n=Dt),this._eventListenerInstances=[],this._instanceId=n.id?n.id:t.id,this._targetEl=t,this._options=P(P({},g),i),this._visible=!1,this._initialized=!1,this.init(),a.addInstance("Drawer",this,this._instanceId,n.override)}return e.prototype.init=function(){var t=this;this._targetEl&&!this._initialized&&(this._targetEl.setAttribute("aria-hidden","true"),this._targetEl.classList.add("transition-transform"),this._getPlacementClasses(this._options.placement).base.map(function(i){t._targetEl.classList.add(i)}),this._handleEscapeKey=function(i){i.key==="Escape"&&t.isVisible()&&t.hide()},document.addEventListener("keydown",this._handleEscapeKey),this._initialized=!0)},e.prototype.destroy=function(){this._initialized&&(this.removeAllEventListenerInstances(),this._destroyBackdropEl(),document.removeEventListener("keydown",this._handleEscapeKey),this._initialized=!1)},e.prototype.removeInstance=function(){a.removeInstance("Drawer",this._instanceId)},e.prototype.destroyAndRemoveInstance=function(){this.destroy(),this.removeInstance()},e.prototype.hide=function(){var t=this;this._options.edge?(this._getPlacementClasses(this._options.placement+"-edge").active.map(function(i){t._targetEl.classList.remove(i)}),this._getPlacementClasses(this._options.placement+"-edge").inactive.map(function(i){t._targetEl.classList.add(i)})):(this._getPlacementClasses(this._options.placement).active.map(function(i){t._targetEl.classList.remove(i)}),this._getPlacementClasses(this._options.placement).inactive.map(function(i){t._targetEl.classList.add(i)})),this._targetEl.setAttribute("aria-hidden","true"),this._targetEl.removeAttribute("aria-modal"),this._targetEl.removeAttribute("role"),this._options.bodyScrolling||document.body.classList.remove("overflow-hidden"),this._options.backdrop&&this._destroyBackdropEl(),this._visible=!1,this._options.onHide(this)},e.prototype.show=function(){var t=this;this._options.edge?(this._getPlacementClasses(this._options.placement+"-edge").active.map(function(i){t._targetEl.classList.add(i)}),this._getPlacementClasses(this._options.placement+"-edge").inactive.map(function(i){t._targetEl.classList.remove(i)})):(this._getPlacementClasses(this._options.placement).active.map(function(i){t._targetEl.classList.add(i)}),this._getPlacementClasses(this._options.placement).inactive.map(function(i){t._targetEl.classList.remove(i)})),this._targetEl.setAttribute("aria-modal","true"),this._targetEl.setAttribute("role","dialog"),this._targetEl.removeAttribute("aria-hidden"),this._options.bodyScrolling||document.body.classList.add("overflow-hidden"),this._options.backdrop&&this._createBackdrop(),this._visible=!0,this._options.onShow(this)},e.prototype.toggle=function(){this.isVisible()?this.hide():this.show()},e.prototype._createBackdrop=function(){var t,i=this;if(!this._visible){var n=document.createElement("div");n.setAttribute("drawer-backdrop",""),(t=n.classList).add.apply(t,this._options.backdropClasses.split(" ")),document.querySelector("body").append(n),n.addEventListener("click",function(){i.hide()})}},e.prototype._destroyBackdropEl=function(){this._visible&&document.querySelector("[drawer-backdrop]")!==null&&document.querySelector("[drawer-backdrop]").remove()},e.prototype._getPlacementClasses=function(t){switch(t){case"top":return{base:["top-0","left-0","right-0"],active:["transform-none"],inactive:["-translate-y-full"]};case"right":return{base:["right-0","top-0"],active:["transform-none"],inactive:["translate-x-full"]};case"bottom":return{base:["bottom-0","left-0","right-0"],active:["transform-none"],inactive:["translate-y-full"]};case"left":return{base:["left-0","top-0"],active:["transform-none"],inactive:["-translate-x-full"]};case"bottom-edge":return{base:["left-0","top-0"],active:["transform-none"],inactive:["translate-y-full",this._options.edgeOffset]};default:return{base:["left-0","top-0"],active:["transform-none"],inactive:["-translate-x-full"]}}},e.prototype.isHidden=function(){return!this._visible},e.prototype.isVisible=function(){return this._visible},e.prototype.addEventListenerInstance=function(t,i,n){this._eventListenerInstances.push({element:t,type:i,handler:n})},e.prototype.removeAllEventListenerInstances=function(){this._eventListenerInstances.map(function(t){t.element.removeEventListener(t.type,t.handler)}),this._eventListenerInstances=[]},e.prototype.getAllEventListenerInstances=function(){return this._eventListenerInstances},e.prototype.updateOnShow=function(t){this._options.onShow=t},e.prototype.updateOnHide=function(t){this._options.onHide=t},e.prototype.updateOnToggle=function(t){this._options.onToggle=t},e})();function j(){document.querySelectorAll("[data-drawer-target]").forEach(function(e){var t=e.getAttribute("data-drawer-target"),i=document.getElementById(t);if(i){var n=e.getAttribute("data-drawer-placement"),s=e.getAttribute("data-drawer-body-scrolling"),o=e.getAttribute("data-drawer-backdrop"),r=e.getAttribute("data-drawer-edge"),d=e.getAttribute("data-drawer-edge-offset");new dt(i,{placement:n||g.placement,bodyScrolling:s?s==="true":g.bodyScrolling,backdrop:o?o==="true":g.backdrop,edge:r?r==="true":g.edge,edgeOffset:d||g.edgeOffset})}
7else console.error("Drawer with id ".concat(t," not found. Are you sure that the data-drawer-target attribute points to the correct drawer id?"))}),document.querySelectorAll("[data-drawer-toggle]").forEach(function(e){var t=e.getAttribute("data-drawer-toggle"),i=document.getElementById(t);if(i){var n=a.getInstance("Drawer",t);if(n){var s=function(){n.toggle()};e.addEventListener("click",s),n.addEventListenerInstance(e,"click",s)}else console.error("Drawer with id ".concat(t," has not been initialized. Please initialize it using the data-drawer-target attribute."))}else console.error("Drawer with id ".concat(t," not found. Are you sure that the data-drawer-target attribute points to the correct drawer id?"))}),document.querySelectorAll("[data-drawer-dismiss], [data-drawer-hide]").forEach(function(e){var t=e.getAttribute("data-drawer-dismiss")?e.getAttribute("data-drawer-dismiss"):e.getAttribute("data-drawer-hide"),i=document.getElementById(t);if(i){var n=a.getInstance("Drawer",t);if(n){var s=function(){n.hide()};e.addEventListener("click",s),n.addEventListenerInstance(e,"click",s)}else console.error("Drawer with id ".concat(t," has not been initialized. Please initialize it using the data-drawer-target attribute."))}else console.error("Drawer with id ".concat(t," not found. Are you sure that the data-drawer-target attribute points to the correct drawer id"))}),document.querySelectorAll("[data-drawer-show]").forEach(function(e){var t=e.getAttribute("data-drawer-show"),i=document.getElementById(t);if(i){var n=a.getInstance("Drawer",t);if(n){var s=function(){n.show()};e.addEventListener("click",s),n.addEventListenerInstance(e,"click",s)}else console.error("Drawer with id ".concat(t," has not been initialized. Please initialize it using the data-drawer-target attribute."))}else console.error("Drawer with id ".concat(t," not found. Are you sure that the data-drawer-target attribute points to the correct drawer id?"))})}typeof window<"u"&&(window.Drawer=dt,window.initDrawers=j);var q=function(){return q=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++){t=arguments[i];for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s])}return e},q.apply(this,arguments)},V={defaultTabId:null,activeClasses:"text-fg-brand hover:text-fg-brand border-brand",inactiveClasses:"border-transparent text-body hover:text-heading border-soft hover:border-default",onShow:function(){}},Ht={id:null,override:!0},lt=(function(){function e(t,i,n,s){t===void 0&&(t=null),i===void 0&&(i=[]),n===void 0&&(n=V),s===void 0&&(s=Ht),this._instanceId=s.id?s.id:t.id,this._tabsEl=t,this._items=i,this._activeTab=n?this.getTab(n.defaultTabId):null,this._options=q(q({},V),n),this._initialized=!1,this.init(),a.addInstance("Tabs",this,this._instanceId,s.override)}return e.prototype.init=function(){var t=this;this._items.length&&!this._initialized&&(this._activeTab||this.setActiveTab(this._items[0]),this.show(this._activeTab.id,!0),this._items.map(function(i){i.triggerEl.addEventListener("click",function(n){n.preventDefault(),t.show(i.id)})}))},e.prototype.destroy=function(){this._initialized&&(this._initialized=!1)},e.prototype.removeInstance=function(){this.destroy(),a.removeInstance("Tabs",this._instanceId)},e.prototype.destroyAndRemoveInstance=function(){this.destroy(),this.removeInstance()},e.prototype.getActiveTab=function(){return this._activeTab},e.prototype.setActiveTab=function(t){this._activeTab=t},e.prototype.getTab=function(t){return this._items.filter(function(i){return i.id===t})[0]},e.prototype.show=function(t,i){var n,s,o=this;i===void 0&&(i=!1);var r=this.getTab(t);r===this._activeTab&&!i||(this._items.map(function(d){var l,u;d!==r&&((l=d.triggerEl.classList).remove.apply(l,o._options.activeClasses.split(" ")),(u=d.triggerEl.classList).add.apply(u,o._options.inactiveClasses.split(" ")),d.targetEl.classList.add("hidden"),d.triggerEl.setAttribute("aria-selected","false"))}),(n=r.triggerEl.classList).add.apply(n,this._options.activeClasses.split(" ")),(s=r.triggerEl.classList).remove.apply(s,this._options.inactiveClasses.split(" ")),r.triggerEl.setAttribute("aria-selected","true"),r.targetEl.classList.remove("hidden"),this.setActiveTab(r),this._options.onShow(this,r))},e.prototype.updateOnShow=function(t){this._options.onShow=t},e})();function B(){document.querySelectorAll("[data-tabs-toggle]").forEach(function(e){var t=[],i=e.getAttribute("data-tabs-active-classes"),n=e.getAttribute("data-tabs-inactive-classes"),s=null;e.querySelectorAll('[role="tab"]').forEach(function(o){var r=o.getAttribute("aria-selected")==="true",d={id:o.getAttribute("data-tabs-target"),triggerEl:o,targetEl:document.querySelector(o.getAttribute("data-tabs-target"))};t.push(d),r&&(s=d.id)}),new lt(e,t,{defaultTabId:s,activeClasses:i||V.activeClasses,inactiveClasses:n||V.inactiveClasses})})}typeof window<"u"&&(window.Tabs=lt,window.initTabs=B);var f=function(){return f=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++){t=arguments[i];for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s])}return e},f.apply(this,arguments)},M=function(e,t,i){if(i||arguments.length===2)for(var n=0,s=t.length,o;n<s;
7n++)(o||!(n in t))&&(o||(o=Array.prototype.slice.call(t,0,n)),o[n]=t[n]);return e.concat(o||Array.prototype.slice.call(t))},R={placement:"top",triggerType:"hover",onShow:function(){},onHide:function(){},onToggle:function(){}},xt={id:null,override:!0},ct=(function(){function e(t,i,n,s){t===void 0&&(t=null),i===void 0&&(i=null),n===void 0&&(n=R),s===void 0&&(s=xt),this._instanceId=s.id?s.id:t.id,this._targetEl=t,this._triggerEl=i,this._options=f(f({},R),n),this._popperInstance=null,this._visible=!1,this._initialized=!1,this.init(),a.addInstance("Tooltip",this,this._instanceId,s.override)}return e.prototype.init=function(){this._triggerEl&&this._targetEl&&!this._initialized&&(this._setupEventListeners(),this._popperInstance=this._createPopperInstance(),this._initialized=!0)},e.prototype.destroy=function(){var t=this;if(this._initialized){var i=this._getTriggerEvents();i.showEvents.forEach(function(n){t._triggerEl.removeEventListener(n,t._showHandler)}),i.hideEvents.forEach(function(n){t._triggerEl.removeEventListener(n,t._hideHandler)}),this._removeKeydownListener(),this._removeClickOutsideListener(),this._popperInstance&&this._popperInstance.destroy(),this._initialized=!1}},e.prototype.removeInstance=function(){a.removeInstance("Tooltip",this._instanceId)},e.prototype.destroyAndRemoveInstance=function(){this.destroy(),this.removeInstance()},e.prototype._setupEventListeners=function(){var t=this,i=this._getTriggerEvents();this._showHandler=function(){t.show()},this._hideHandler=function(){t.hide()},i.showEvents.forEach(function(n){t._triggerEl.addEventListener(n,t._showHandler)}),i.hideEvents.forEach(function(n){t._triggerEl.addEventListener(n,t._hideHandler)})},e.prototype._createPopperInstance=function(){return tt(this._triggerEl,this._targetEl,{placement:this._options.placement,modifiers:[{name:"offset",options:{offset:[0,8]}}]})},e.prototype._getTriggerEvents=function(){switch(this._options.triggerType){case"hover":return{showEvents:["mouseenter","focus"],hideEvents:["mouseleave","blur"]};case"click":return{showEvents:["click","focus"],hideEvents:["focusout","blur"]};case"none":return{showEvents:[],hideEvents:[]};default:return{showEvents:["mouseenter","focus"],hideEvents:["mouseleave","blur"]}}},e.prototype._setupKeydownListener=function(){var t=this;this._keydownEventListener=function(i){i.key==="Escape"&&t.hide()},document.body.addEventListener("keydown",this._keydownEventListener,!0)},e.prototype._removeKeydownListener=function(){document.body.removeEventListener("keydown",this._keydownEventListener,!0)},e.prototype._setupClickOutsideListener=function(){var t=this;this._clickOutsideEventListener=function(i){t._handleClickOutside(i,t._targetEl)},document.body.addEventListener("click",this._clickOutsideEventListener,!0)},e.prototype._removeClickOutsideListener=function(){document.body.removeEventListener("click",this._clickOutsideEventListener,!0)},e.prototype._handleClickOutside=function(t,i){var n=t.target;n!==i&&!i.contains(n)&&!this._triggerEl.contains(n)&&this.isVisible()&&this.hide()},e.prototype.isVisible=function(){return this._visible},e.prototype.toggle=function(){this.isVisible()?this.hide():this.show()},e.prototype.show=function(){this._targetEl.classList.remove("opacity-0","invisible"),this._targetEl.classList.add("opacity-100","visible"),this._popperInstance.setOptions(function(t){return f(f({},t),{modifiers:M(M([],t.modifiers,!0),[{name:"eventListeners",enabled:!0}],!1)})}),this._setupClickOutsideListener(),this._setupKeydownListener(),this._popperInstance.update(),this._visible=!0,this._options.onShow(this)},e.prototype.hide=function(){this._targetEl.classList.remove("opacity-100","visible"),this._targetEl.classList.add("opacity-0","invisible"),this._popperInstance.setOptions(function(t){return f(f({},t),{modifiers:M(M([],t.modifiers,!0),[{name:"eventListeners",enabled:!1}],!1)})}),this._removeClickOutsideListener(),this._removeKeydownListener(),this._visible=!1,this._options.onHide(this)},e.prototype.updateOnShow=function(t){this._options.onShow=t},e.prototype.updateOnHide=function(t){this._options.onHide=t},e.prototype.updateOnToggle=function(t){this._options.onToggle=t},e})();function K(){document.querySelectorAll("[data-tooltip-target]").forEach(function(e){var t=e.getAttribute("data-tooltip-target"),i=document.getElementById(t);if(i){var n=e.getAttribute("data-tooltip-trigger"),s=e.getAttribute("data-tooltip-placement");new ct(i,e,{placement:s||R.placement,triggerType:n||R.triggerType})}else console.error('The tooltip element with id "'.concat(t,'" does not exist. Please check the data-tooltip-target attribute.'))})}typeof window<"u"&&(window.Tooltip=ct,window.initTooltips=K);var v=function(){return v=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++){t=arguments[i];for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s])}return e},v.apply(this,arguments)},F=function(e,t,i){if(i||arguments.length===2)for(var n=0,s=t.length,o;n<s;
7n++)(o||!(n in t))&&(o||(o=Array.prototype.slice.call(t,0,n)),o[n]=t[n]);return e.concat(o||Array.prototype.slice.call(t))},y={placement:"top",offset:10,triggerType:"hover",onShow:function(){},onHide:function(){},onToggle:function(){}},Ot={id:null,override:!0},ut=(function(){function e(t,i,n,s){t===void 0&&(t=null),i===void 0&&(i=null),n===void 0&&(n=y),s===void 0&&(s=Ot),this._instanceId=s.id?s.id:t.id,this._targetEl=t,this._triggerEl=i,this._options=v(v({},y),n),this._popperInstance=null,this._visible=!1,this._initialized=!1,this.init(),a.addInstance("Popover",this,s.id?s.id:this._targetEl.id,s.override)}return e.prototype.init=function(){this._triggerEl&&this._targetEl&&!this._initialized&&(this._setupEventListeners(),this._popperInstance=this._createPopperInstance(),this._initialized=!0)},e.prototype.destroy=function(){var t=this;if(this._initialized){var i=this._getTriggerEvents();i.showEvents.forEach(function(n){t._triggerEl.removeEventListener(n,t._showHandler),t._targetEl.removeEventListener(n,t._showHandler)}),i.hideEvents.forEach(function(n){t._triggerEl.removeEventListener(n,t._hideHandler),t._targetEl.removeEventListener(n,t._hideHandler)}),this._removeKeydownListener(),this._removeClickOutsideListener(),this._popperInstance&&this._popperInstance.destroy(),this._initialized=!1}},e.prototype.removeInstance=function(){a.removeInstance("Popover",this._instanceId)},e.prototype.destroyAndRemoveInstance=function(){this.destroy(),this.removeInstance()},e.prototype._setupEventListeners=function(){var t=this,i=this._getTriggerEvents();this._showHandler=function(){t.show()},this._hideHandler=function(){setTimeout(function(){t._targetEl.matches(":hover")||t.hide()},100)},i.showEvents.forEach(function(n){t._triggerEl.addEventListener(n,t._showHandler),t._targetEl.addEventListener(n,t._showHandler)}),i.hideEvents.forEach(function(n){t._triggerEl.addEventListener(n,t._hideHandler),t._targetEl.addEventListener(n,t._hideHandler)})},e.prototype._createPopperInstance=function(){return tt(this._triggerEl,this._targetEl,{placement:this._options.placement,modifiers:[{name:"offset",options:{offset:[0,this._options.offset]}}]})},e.prototype._getTriggerEvents=function(){switch(this._options.triggerType){case"hover":return{showEvents:["mouseenter","focus"],hideEvents:["mouseleave","blur"]};case"click":return{showEvents:["click","focus"],hideEvents:["focusout","blur"]};case"none":return{showEvents:[],hideEvents:[]};default:return{showEvents:["mouseenter","focus"],hideEvents:["mouseleave","blur"]}}},e.prototype._setupKeydownListener=function(){var t=this;this._keydownEventListener=function(i){i.key==="Escape"&&t.hide()},document.body.addEventListener("keydown",this._keydownEventListener,!0)},e.prototype._removeKeydownListener=function(){document.body.removeEventListener("keydown",this._keydownEventListener,!0)},e.prototype._setupClickOutsideListener=function(){var t=this;this._clickOutsideEventListener=function(i){t._handleClickOutside(i,t._targetEl)},document.body.addEventListener("click",this._clickOutsideEventListener,!0)},e.prototype._removeClickOutsideListener=function(){document.body.removeEventListener("click",this._clickOutsideEventListener,!0)},e.prototype._handleClickOutside=function(t,i){var n=t.target;n!==i&&!i.contains(n)&&!this._triggerEl.contains(n)&&this.isVisible()&&this.hide()},e.prototype.isVisible=function(){return this._visible},e.prototype.toggle=function(){this.isVisible()?this.hide():this.show(),this._options.onToggle(this)},e.prototype.show=function(){this._targetEl.classList.remove("opacity-0","invisible"),this._targetEl.classList.add("opacity-100","visible"),this._popperInstance.setOptions(function(t){return v(v({},t),{modifiers:F(F([],t.modifiers,!0),[{name:"eventListeners",enabled:!0}],!1)})}),this._setupClickOutsideListener(),this._setupKeydownListener(),this._popperInstance.update(),this._visible=!0,this._options.onShow(this)},e.prototype.hide=function(){this._targetEl.classList.remove("opacity-100","visible"),this._targetEl.classList.add("opacity-0","invisible"),this._popperInstance.setOptions(function(t){return v(v({},t),{modifiers:F(F([],t.modifiers,!0),[{name:"eventListeners",enabled:!1}],!1)})}),this._removeClickOutsideListener(),this._removeKeydownListener(),this._visible=!1,this._options.onHide(this)},e.prototype.updateOnShow=function(t){this._options.onShow=t},e.prototype.updateOnHide=function(t){this._options.onHide=t},e.prototype.updateOnToggle=function(t){this._options.onToggle=t},e})();function N(){document.querySelectorAll("[data-popover-target]").forEach(function(e){var t=e.getAttribute("data-popover-target"),i=document.getElementById(t);if(i){var n=e.getAttribute("data-popover-trigger"),s=e.getAttribute("data-popover-placement"),o=e.getAttribute("data-popover-offset");new ut(i,e,{placement:s||y.placement,offset:o?parseInt(o):y.offset,triggerType:n||y.triggerType})}else console.error('The popover element with id "'.concat(t,'" does not exist. Please check the data-popover-target attribute.'))})}typeof window<"u"&&(window.Popover=ut,window.initPopovers=N);var G=function(){return G=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++){t=arguments[i];for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s])}return e},G.apply(this,arguments)},ht={triggerType:"hover",onShow:function(){},onHide:function(){},onToggle:function(){}},St={id:null,override:!0},pt=(function(){function e(t,i,n,s,o){t===void 0&&(t=null),i===void 0&&(i=null),n===void 0&&(n=null),s===void 0&&(s=ht),o===void 0&&(o=St),this._instanceId=o.id?o.id:n.id,this._parentEl=t,this._triggerEl=i,this._targetEl=n,this._options=G(G({},ht),s),this._visible=!1,this._initialized=!1,this.init(),a.addInstance("Dial",this,this._instanceId,o.override)}return e.prototype.init=function(){var t=this;if(this._triggerEl&&this._targetEl&&!this._initialized){var i=this._getTriggerEventTypes(this._options.triggerType);this._showEventHandler=function(){t.show()}
7,i.showEvents.forEach(function(n){t._triggerEl.addEventListener(n,t._showEventHandler),t._targetEl.addEventListener(n,t._showEventHandler)}),this._hideEventHandler=function(){t._parentEl.matches(":hover")||t.hide()},i.hideEvents.forEach(function(n){t._parentEl.addEventListener(n,t._hideEventHandler)}),this._initialized=!0}},e.prototype.destroy=function(){var t=this;if(this._initialized){var i=this._getTriggerEventTypes(this._options.triggerType);i.showEvents.forEach(function(n){t._triggerEl.removeEventListener(n,t._showEventHandler),t._targetEl.removeEventListener(n,t._showEventHandler)}),i.hideEvents.forEach(function(n){t._parentEl.removeEventListener(n,t._hideEventHandler)}),this._initialized=!1}},e.prototype.removeInstance=function(){a.removeInstance("Dial",this._instanceId)},e.prototype.destroyAndRemoveInstance=function(){this.destroy(),this.removeInstance()},e.prototype.hide=function(){this._targetEl.classList.add("hidden"),this._triggerEl&&this._triggerEl.setAttribute("aria-expanded","false"),this._visible=!1,this._options.onHide(this)},e.prototype.show=function(){this._targetEl.classList.remove("hidden"),this._triggerEl&&this._triggerEl.setAttribute("aria-expanded","true"),this._visible=!0,this._options.onShow(this)},e.prototype.toggle=function(){this._visible?this.hide():this.show()},e.prototype.isHidden=function(){return!this._visible},e.prototype.isVisible=function(){return this._visible},e.prototype._getTriggerEventTypes=function(t){switch(t){case"hover":return{showEvents:["mouseenter","focus"],hideEvents:["mouseleave","blur"]};case"click":return{showEvents:["click","focus"],hideEvents:["focusout","blur"]};case"none":return{showEvents:[],hideEvents:[]};default:return{showEvents:["mouseenter","focus"],hideEvents:["mouseleave","blur"]}}},e.prototype.updateOnShow=function(t){this._options.onShow=t},e.prototype.updateOnHide=function(t){this._options.onHide=t},e.prototype.updateOnToggle=function(t){this._options.onToggle=t},e})();function J(){document.querySelectorAll("[data-dial-init]").forEach(function(e){var t=e.querySelector("[data-dial-toggle]");if(t){var i=t.getAttribute("data-dial-toggle"),n=document.getElementById(i);if(n){var s=t.getAttribute("data-dial-trigger");new pt(e,t,n,{triggerType:s||ht.triggerType})}else console.error("Dial with id ".concat(i," does not exist. Are you sure that the data-dial-toggle attribute points to the correct modal id?"))}else console.error("Dial with id ".concat(e.id," does not have a trigger element. Are you sure that the data-dial-toggle attribute exists?"))})}typeof window<"u"&&(window.Dial=pt,window.initDials=J);var Q=function(){return Q=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++){t=arguments[i];for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s])}return e},Q.apply(this,arguments)},yt={minValue:null,maxValue:null,onIncrement:function(){},onDecrement:function(){}},zt={id:null,override:!0},ft=(function(){function e(t,i,n,s,o){t===void 0&&(t=null),i===void 0&&(i=null),n===void 0&&(n=null),s===void 0&&(s=yt),o===void 0&&(o=zt),this._instanceId=o.id?o.id:t.id,this._targetEl=t,this._incrementEl=i,this._decrementEl=n,this._options=Q(Q({},yt),s),this._initialized=!1,this.init(),a.addInstance("InputCounter",this,this._instanceId,o.override)}return e.prototype.init=function(){var t=this;this._targetEl&&!this._initialized&&(this._inputHandler=function(i){{var n=i.target;/^\d*$/.test(n.value)||(n.value=n.value.replace(/[^\d]/g,"")),t._options.maxValue!==null&&parseInt(n.value)>t._options.maxValue&&(n.value=t._options.maxValue.toString()),t._options.minValue!==null&&parseInt(n.value)<t._options.minValue&&(n.value=t._options.minValue.toString())}},this._incrementClickHandler=function(){t.increment()},this._decrementClickHandler=function(){t.decrement()},this._targetEl.addEventListener("input",this._inputHandler),this._incrementEl&&this._incrementEl.addEventListener("click",this._incrementClickHandler),this._decrementEl&&this._decrementEl.addEventListener("click",this._decrementClickHandler),this._initialized=!0)},e.prototype.destroy=function(){this._targetEl&&this._initialized&&(this._targetEl.removeEventListener("input",this._inputHandler),this._incrementEl&&this._incrementEl.removeEventListener("click",this._incrementClickHandler),this._decrementEl&&this._decrementEl.removeEventListener("click",this._decrementClickHandler),this._initialized=!1)},e.prototype.removeInstance=function(){a.removeInstance("InputCounter",this._instanceId)},e.prototype.destroyAndRemoveInstance=function(){this.destroy(),this.removeInstance()},e.prototype.getCurrentValue=function(){return parseInt(this._targetEl.value)||0},e.prototype.increment=function(){this._options.maxValue!==null&&this.getCurrentValue()>=this._options.maxValue||(this._targetEl.value=(this.getCurrentValue()+1).toString(),this._options.onIncrement(this))},e.prototype.decrement=function(){this._options.minValue!==null&&this.getCurrentValue()<=this._options.minValue||(this._targetEl.value=(this.getCurrentValue()-1).toString(),this._options.onDecrement
7(this))},e.prototype.updateOnIncrement=function(t){this._options.onIncrement=t},e.prototype.updateOnDecrement=function(t){this._options.onDecrement=t},e})();function U(){document.querySelectorAll("[data-input-counter]").forEach(function(e){var t=e.id,i=document.querySelector('[data-input-counter-increment="'+t+'"]'),n=document.querySelector('[data-input-counter-decrement="'+t+'"]'),s=e.getAttribute("data-input-counter-min"),o=e.getAttribute("data-input-counter-max");e?a.instanceExists("InputCounter",e.getAttribute("id"))||new ft(e,i||null,n||null,{minValue:s?parseInt(s):null,maxValue:o?parseInt(o):null}):console.error('The target element with id "'.concat(t,'" does not exist. Please check the data-input-counter attribute.'))})}typeof window<"u"&&(window.InputCounter=ft,window.initInputCounters=U);var W=function(){return W=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++){t=arguments[i];for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s])}return e},W.apply(this,arguments)},X={htmlEntities:!1,contentType:"input",onCopy:function(){}},Pt={id:null,override:!0},vt=(function(){function e(t,i,n,s){t===void 0&&(t=null),i===void 0&&(i=null),n===void 0&&(n=X),s===void 0&&(s=Pt),this._instanceId=s.id?s.id:i.id,this._triggerEl=t,this._targetEl=i,this._options=W(W({},X),n),this._initialized=!1,this.init(),a.addInstance("CopyClipboard",this,this._instanceId,s.override)}return e.prototype.init=function(){var t=this;this._targetEl&&this._triggerEl&&!this._initialized&&(this._triggerElClickHandler=function(){t.copy()},this._triggerEl&&this._triggerEl.addEventListener("click",this._triggerElClickHandler),this._initialized=!0)},e.prototype.destroy=function(){this._triggerEl&&this._targetEl&&this._initialized&&(this._triggerEl&&this._triggerEl.removeEventListener("click",this._triggerElClickHandler),this._initialized=!1)},e.prototype.removeInstance=function(){a.removeInstance("CopyClipboard",this._instanceId)},e.prototype.destroyAndRemoveInstance=function(){this.destroy(),this.removeInstance()},e.prototype.getTargetValue=function(){if(this._options.contentType==="input")return this._targetEl.value;if(this._options.contentType==="innerHTML")return this._targetEl.innerHTML;if(this._options.contentType==="textContent")return this._targetEl.textContent.replace(/\s+/g," ").trim()},e.prototype.copy=function(){var t=this.getTargetValue();this._options.htmlEntities&&(t=this.decodeHTML(t));var i=document.createElement("textarea");return i.value=t,document.body.appendChild(i),i.select(),document.execCommand("copy"),document.body.removeChild(i),this._options.onCopy(this),t},e.prototype.decodeHTML=function(t){var i=document.createElement("textarea");return i.innerHTML=t,i.textContent},e.prototype.updateOnCopyCallback=function(t){this._options.onCopy=t},e})();function Y(){document.querySelectorAll("[data-copy-to-clipboard-target]").forEach(function(e){var t=e.getAttribute("data-copy-to-clipboard-target"),i=document.getElementById(t),n=e.getAttribute("data-copy-to-clipboard-content-type"),s=e.getAttribute("data-copy-to-clipboard-html-entities");i?a.instanceExists("CopyClipboard",i.getAttribute("id"))||new vt(e,i,{htmlEntities:s&&s==="true"?!0:X.htmlEntities,contentType:n||X.contentType}):console.error('The target element with id "'.concat(t,'" does not exist. Please check the data-copy-to-clipboard-target attribute.'))})}typeof window<"u"&&(window.CopyClipboard=vt,window.initClipboards=Y);var Z=function(){return Z=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++){t=arguments[i];for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s])}return e},Z.apply(this,arguments)},c={defaultDatepickerId:null,autohide:!1,format:"mm/dd/yyyy",maxDate:null,minDate:null,orientation:"bottom",buttons:!1,autoSelectToday:0,title:null,language:"en",rangePicker:!1,onShow:function(){},onHide:function(){}},jt={id:null,override:!0},_t=(function(){function e(t,i,n){t===void 0&&(t=null),i===void 0&&(i=c),n===void 0&&(n=jt),this._instanceId=n.id?n.id:t.id,this._datepickerEl=t,this._datepickerInstance=null,this._options=Z(Z({},c),i),this._initialized=!1,this.init(),a.addInstance("Datepicker",this,this._instanceId,n.override)}return e.prototype.init=function(){this._datepickerEl&&!this._initialized&&(this._options.rangePicker?this._datepickerInstance=new et(this._datepickerEl,this._getDatepickerOptions(this._options)):this._datepickerInstance=new it(this._datepickerEl,this._getDatepickerOptions(this._options)),this._initialized=!0)},e.prototype.destroy=function(){this._initialized&&(this._initialized=!1,this._datepickerInstance.destroy())},e.prototype.removeInstance=function(){this.destroy(),a.removeInstance("Datepicker",this._instanceId)},e.prototype.destroyAndRemoveInstance=function(){this.destroy(),this.removeInstance()},e.prototype.getDatepickerInstance=function(){return this._datepickerInstance},e.prototype.getDate=function(){if(this._options.rangePicker&&this._datepickerInstance instanceof et)return this._datepickerInstance.getDates();if(!this._options.rangePicker&&this._datepickerInstance instanceof it)return this._datepickerInstance.getDate()},e.prototype.setDate=function(t){if(this._options.rangePicker&&this._datepickerInstance instanceof et)return this._datepickerInstance.setDates(t);if(!this._options.rangePicker&&this._datepickerInstance instanceof it)return this._datepickerInstance.setDate(t)},e.prototype.show=function(){this._datepickerInstance.show(),this._options.onShow(this)},e.prototype.hide=function(){this._datepickerInstance.hide(),this._options.onHide(this)},e.prototype._getDatepickerOptions=function(t){var i={};return t.buttons&&(i.todayBtn=!0,i.clearBtn=!0,t.autoSelectToday&&(i.todayBtnMode=1)),t.autohide&&(i.auto
7hide=!0),t.format&&(i.format=t.format),t.maxDate&&(i.maxDate=t.maxDate),t.minDate&&(i.minDate=t.minDate),t.orientation&&(i.orientation=t.orientation),t.title&&(i.title=t.title),t.language&&(i.language=t.language),i},e.prototype.updateOnShow=function(t){this._options.onShow=t},e.prototype.updateOnHide=function(t){this._options.onHide=t},e})();function $(){document.querySelectorAll("[datepicker], [inline-datepicker], [date-rangepicker]").forEach(function(e){if(e){var t=e.hasAttribute("datepicker-buttons"),i=e.hasAttribute("datepicker-autoselect-today"),n=e.hasAttribute("datepicker-autohide"),s=e.getAttribute("datepicker-format"),o=e.getAttribute("datepicker-max-date"),r=e.getAttribute("datepicker-min-date"),d=e.getAttribute("datepicker-orientation"),l=e.getAttribute("datepicker-title"),u=e.getAttribute("datepicker-language"),m=e.hasAttribute("date-rangepicker");new _t(e,{buttons:t||c.buttons,autoSelectToday:i||c.autoSelectToday,autohide:n||c.autohide,format:s||c.format,maxDate:o||c.maxDate,minDate:r||c.minDate,orientation:d||c.orientation,title:l||c.title,language:u||c.language,rangePicker:m||c.rangePicker})}else console.error("The datepicker element does not exist. Please check the datepicker attribute.")})}typeof window<"u"&&(window.Datepicker=_t,window.initDatepickers=$);function wt(){E(),L(),C(),D(),x(),z(),j(),B(),K(),N(),J(),U(),Y(),$()}typeof window<"u"&&(window.initFlowbite=wt);var qt=new bt("load",[E,L,C,D,x,z,j,B,K,N,J,U,Y,$]);qt.init();export{nt as Accordion,st as Carousel,k as Collapse,vt as CopyClipboard,_t as Datepicker,pt as Dial,ot as Dismiss,dt as Drawer,rt as Dropdown,ft as InputCounter,at as Modal,ut as Popover,lt as Tabs,ct as Tooltip,E as initAccordions,C as initCarousels,L as initCollapses,Y as initCopyClipboards,$ as initDatepickers,J as initDials,D as initDismisses,j as initDrawers,x as initDropdowns,wt as initFlowbite,U as initInputCounters,z as initModals,N as initPopovers,B as initTabs,K as initTooltips};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.