document.addEventListener("DOMContentLoaded",function(){var t=document.getElementById("theme-toggle-dark-icon"),e=document.getElementById("theme-toggle-light-icon");localStorage.getItem("color-theme")==="dark"||!("color-theme"in localStorage)&&window.matchMedia("(prefers-color-scheme: dark)").matches?(t.classList.remove("hidden"),e.classList.add("hidden"),document.documentElement.classList.add("dark")):(e.classList.remove("hidden"),t.classList.add("hidden"),document.documentElement.classList.remove("dark"));var i=document.getElementById("theme-toggle");i.addEventListener("click",function(){t.classList.toggle("hidden"),e.classList.toggle("hidden"),document.documentElement.classList.contains("dark")?(document.documentElement.classList.remove("dark"),localStorage.setItem("color-theme","light")):(document.documentElement.classList.add("dark"),localStorage.setItem("color-theme","dark"))})});let $t=document.getElementById("back-to-top");window.onscroll=function(){Do()};function Do(){document.body.scrollTop>20||document.documentElement.scrollTop>20?($t.classList.remove("hide"),$t.classList.add("show")):($t.classList.remove("show"),$t.classList.add("hide"))}$t.addEventListener("click",function(){window.scrollTo({top:0,behavior:"smooth"})});var Ho=function(){function t(e,i){i===void 0&&(i=[]),this._eventType=e,this._eventFunctions=i}return t.prototype.init=function(){var e=this;this._eventFunctions.forEach(function(i){typeof window<"u"&&window.addEventListener(e._eventType,i)})},t}(),Mo=function(){function t(){this._instances={Accordion:{},Carousel:{},Collapse:{},Dial:{},Dismiss:{},Drawer:{},Dropdown:{},Modal:{},Popover:{},Tabs:{},Tooltip:{},InputCounter:{},CopyClipboard:{}}}return t.prototype.addInstance=function(e,i,n,r){if(r===void 0&&(r=!1),!this._instances[e])return console.warn("Flowbite: Component ".concat(e," does not exist.")),!1;if(this._instances[e][n]&&!r){console.warn("Flowbite: Instance with ID ".concat(n," already exists."));return}r&&this._instances[e][n]&&this._instances[e][n].destroyAndRemoveInstance(),this._instances[e][n||this._generateRandomId()]=i},t.prototype.getAllInstances=function(){return this._instances},t.prototype.getInstances=function(e){return this._instances[e]?this._instances[e]:(console.warn("Flowbite: Component ".concat(e," does not exist.")),!1)},t.prototype.getInstance=function(e,i){if(this._componentAndInstanceCheck(e,i)){if(!this._instances[e][i]){console.warn("Flowbite: Instance with ID ".concat(i," does not exist."));return}return this._instances[e][i]}},t.prototype.destroyAndRemoveInstance=function(e,i){this._componentAndInstanceCheck(e,i)&&(this.destroyInstanceObject(e,i),this.removeInstance(e,i))},t.prototype.removeInstance=function(e,i){this._componentAndInstanceCheck(e,i)&&delete this._instances[e][i]},t.prototype.destroyInstanceObject=function(e,i){this._componentAndInstanceCheck(e,i)&&this._instances[e][i].destroy()},t.prototype.instanceExists=function(e,i){return!(!this._instances[e]||!this._instances[e][i])},t.prototype._generateRandomId=function(){return Math.random().toString(36).substr(2,9)},t.prototype._componentAndInstanceCheck=function(e,i){return this._instances[e]?this._instances[e][i]?!0:(console.warn("Flowbite: Instance with ID ".concat(i," does not exist.")),!1):(console.warn("Flowbite: Component ".concat(e," does not exist.")),!1)},t}(),y=new Mo;typeof window<"u"&&(window.FlowbiteInstances=y);var be=function(){return be=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++){e=arguments[i];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])}return t},be.apply(this,arguments)},we={alwaysOpen:!1,activeClasses:"bg-gray-100 dark:bg-gray-800 text-gray-900 dark:text-white",inactiveClasses:"text-gray-500 dark:text-gray-400",onOpen:function(){},onClose:function(){},onToggle:function(){}},jo={id:null,override:!0},Wn=function(){function t(e,i,n,r){e===void 0&&(e=null),i===void 0&&(i=[]),n===void 0&&(n=we),r===void 0&&(r=jo),this._instanceId=r.id?r.id:e.id,this._accordionEl=e,this._items=i,this._options=be(be({},we),n),this._initialized=!1,this.init(),y.addInstance("Accordion",this,this._instanceId,r.override)}return t.prototype.init=function(){var e=this;this._items.length&&!this._initialized&&(this._items.forEach(function(i){i.active&&e.open(i.id);var n=function(){e.toggle(i.id)};i.triggerEl.addEventListener("click",n),i.clickHandler=n}),this._initialized=!0)},t.prototype.destroy=function(){this._items.length&&this._initialized&&(this._items.forEach(function(e){e.triggerEl.removeEventListener("click",e.clickHandler),delete e.clickHandler}),this._initialized=!1)},t.prototype.removeInstance=function(){y.removeInstance("Accordion",this._instanceId)},t.prototype.destroyAndRemoveInstance=function(){this.destroy(),this.removeInstance()},t.prototype.getItem=function(e){return this._items.filter(function(i){return i.id===e})[0]},t.prototype.open=function(e){var i,n,r=this,o=this.getItem(e);this._options.alwaysOpen||this._items.map(function(s){var a,c;s!==o&&((a=s.triggerEl.classList).remove.apply(a,r._options.activeClasses.split(" ")),(c=s.triggerEl.classList).add.apply(c,r._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"))}),(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)},t.prototype.toggle=function(e){var i=this.getItem(e);i.active?this.close(e):this.open(e),this._options.onToggle(this,i)},t.prototype.close=function(e){var i,n,r=this.getItem(e);(i=r.triggerEl.classList).remove.apply(i,this._options.activeClasses.split(" ")),(n=r.triggerEl.classList).add.apply(n,this._options.inactiveClasses.split(" ")),r.targetEl.classList.add("hidden"),r.triggerEl.setAttribute("aria-expanded","false"),r.active=!1,r.iconEl&&r.iconEl.classList.add("rotate-180"),this._options.onClose(this,r)},t.prototype.updateOnOpen=function(e){this._options.onOpen=e},t.prototype.updateOnClose=function(e){this._options.onClose=e},t.prototype.updateOnToggle=function(e){this._options.onToggle=e},t}();function xi(){document.querySelectorAll("[data-accordion]").forEach(function(t){var e=t.getAttribute("data-accordion"),i=t.getAttribute("data-active-classes"),n=t.getAttribute("data-inactive-classes"),r=[];t.querySelectorAll("[data-accordion-target]").forEach(function(o){if(o.closest("[data-accordion]")===t){var s={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"};r.push(s)}}),new Wn(t,r,{alwaysOpen:e==="open",activeClasses:i||we.activeClasses,inactiveClasses:n||we.inactiveClasses})})}typeof window<"u"&&(window.Accordion=Wn,window.initAccordions=xi);var Ee=function(){return Ee=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++){e=arguments[i];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])}return t},Ee.apply(this,arguments)},bn={onCollapse:function(){},onExpand:function(){},onToggle:function(){}},Ro={id:null,override:!0},ii=function(){function t(e,i,n,r){e===void 0&&(e=null),i===void 0&&(i=null),n===void 0&&(n=bn),r===void 0&&(r=Ro),this._instanceId=r.id?r.id:e.id,this._targetEl=e,this._triggerEl=i,this._options=Ee(Ee({},bn),n),this._visible=!1,this._initialized=!1,this.init(),y.addInstance("Collapse",this,this._instanceId,r.override)}return t.prototype.init=function(){var e=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(){e.toggle()},this._triggerEl.addEventListener("click",this._clickHandler),this._initialized=!0)},t.prototype.destroy=function(){this._triggerEl&&this._initialized&&(this._triggerEl.removeEventListener("click",this._clickHandler),this._initialized=!1)},t.prototype.removeInstance=function(){y.removeInstance("Collapse",this._instanceId)},t.prototype.destroyAndRemoveInstance=function(){this.destroy(),this.removeInstance()},t.prototype.collapse=function(){this._targetEl.classList.add("hidden"),this._triggerEl&&this._triggerEl.setAttribute("aria-expanded","false"),this._visible=!1,this._options.onCollapse(this)},t.prototype.expand=function(){this._targetEl.classList.remove("hidden"),this._triggerEl&&this._triggerEl.setAttribute("aria-expanded","true"),this._visible=!0,this._options.onExpand(this)},t.prototype.toggle=function(){this._visible?this.collapse():this.expand(),this._options.onToggle(this)},t.prototype.updateOnCollapse=function(e){this._options.onCollapse=e},t.prototype.updateOnExpand=function(e){this._options.onExpand=e},t.prototype.updateOnToggle=function(e){this._options.onToggle=e},t}();function Ai(){document.querySelectorAll("[data-collapse-toggle]").forEach(function(t){var e=t.getAttribute("data-collapse-toggle"),i=document.getElementById(e);i?y.instanceExists("Collapse",i.getAttribute("id"))?new ii(i,t,{},{id:i.getAttribute("id")+"_"+y._generateRandomId()}):new ii(i,t):console.error('The target element with id "'.concat(e,'" does not exist. Please check the data-collapse-toggle attribute.'))})}typeof window<"u"&&(window.Collapse=ii,window.initCollapses=Ai);var ht=function(){return ht=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++){e=arguments[i];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])}return t},ht.apply(this,arguments)},_e={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(){}},zo={id:null,override:!0},Un=function(){function t(e,i,n,r){e===void 0&&(e=null),i===void 0&&(i=[]),n===void 0&&(n=_e),r===void 0&&(r=zo),this._instanceId=r.id?r.id:e.id,this._carouselEl=e,this._items=i,this._options=ht(ht(ht({},_e),n),{indicators:ht(ht({},_e.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(),y.addInstance("Carousel",this,this._instanceId,r.override)}return t.prototype.init=function(){var e=this;this._items.length&&!this._initialized&&(this._items.map(function(i){i.el.classList.add("absolute","inset-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(){e.slideTo(n)})}),this._initialized=!0)},t.prototype.destroy=function(){this._initialized&&(this._initialized=!1)},t.prototype.removeInstance=function(){y.removeInstance("Carousel",this._instanceId)},t.prototype.destroyAndRemoveInstance=function(){this.destroy(),this.removeInstance()},t.prototype.getItem=function(e){return this._items[e]},t.prototype.slideTo=function(e){var i=this._items[e],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)},t.prototype.next=function(){var e=this.getActiveItem(),i=null;e.position===this._items.length-1?i=this._items[0]:i=this._items[e.position+1],this.slideTo(i.position),this._options.onNext(this)},t.prototype.prev=function(){var e=this.getActiveItem(),i=null;e.position===0?i=this._items[this._items.length-1]:i=this._items[e.position-1],this.slideTo(i.position),this._options.onPrev(this)},t.prototype._rotate=function(e){if(this._items.map(function(i){i.el.classList.add("hidden")}),this._items.length===1){e.middle.el.classList.remove("-translate-x-full","translate-x-full","translate-x-0","hidden","z-10"),e.middle.el.classList.add("translate-x-0","z-20");return}e.left.el.classList.remove("-translate-x-full","translate-x-full","translate-x-0","hidden","z-20"),e.left.el.classList.add("-translate-x-full","z-10"),e.middle.el.classList.remove("-translate-x-full","translate-x-full","translate-x-0","hidden","z-10"),e.middle.el.classList.add("translate-x-0","z-30"),e.right.el.classList.remove("-translate-x-full","translate-x-full","translate-x-0","hidden","z-30"),e.right.el.classList.add("translate-x-full","z-20")},t.prototype.cycle=function(){var e=this;typeof window<"u"&&(this._intervalInstance=window.setInterval(function(){e.next()},this._intervalDuration))},t.prototype.pause=function(){clearInterval(this._intervalInstance)},t.prototype.getActiveItem=function(){return this._activeItem},t.prototype._setActiveItem=function(e){var i,n,r=this;this._activeItem=e;var o=e.position;this._indicators.length&&(this._indicators.map(function(s){var a,c;s.el.setAttribute("aria-current","false"),(a=s.el.classList).remove.apply(a,r._options.indicators.activeClasses.split(" ")),(c=s.el.classList).add.apply(c,r._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"))},t.prototype.updateOnNext=function(e){this._options.onNext=e},t.prototype.updateOnPrev=function(e){this._options.onPrev=e},t.prototype.updateOnChange=function(e){this._options.onChange=e},t}();function Ii(){document.querySelectorAll("[data-carousel]").forEach(function(t){var e=t.getAttribute("data-carousel-interval"),i=t.getAttribute("data-carousel")==="slide",n=[],r=0;t.querySelectorAll("[data-carousel-item]").length&&Array.from(t.querySelectorAll("[data-carousel-item]")).map(function(u,l){n.push({position:l,el:u}),u.getAttribute("data-carousel-item")==="active"&&(r=l)});var o=[];t.querySelectorAll("[data-carousel-slide-to]").length&&Array.from(t.querySelectorAll("[data-carousel-slide-to]")).map(function(u){o.push({position:parseInt(u.getAttribute("data-carousel-slide-to")),el:u})});var s=new Un(t,n,{defaultPosition:r,indicators:{items:o},interval:e||_e.interval});i&&s.cycle();var a=t.querySelector("[data-carousel-next]"),c=t.querySelector("[data-carousel-prev]");a&&a.addEventListener("click",function(){s.next()}),c&&c.addEventListener("click",function(){s.prev()})})}typeof window<"u"&&(window.Carousel=Un,window.initCarousels=Ii);var xe=function(){return xe=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++){e=arguments[i];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])}return t},xe.apply(this,arguments)},wn={transition:"transition-opacity",duration:300,timing:"ease-out",onHide:function(){}},Bo={id:null,override:!0},Yn=function(){function t(e,i,n,r){e===void 0&&(e=null),i===void 0&&(i=null),n===void 0&&(n=wn),r===void 0&&(r=Bo),this._instanceId=r.id?r.id:e.id,this._targetEl=e,this._triggerEl=i,this._options=xe(xe({},wn),n),this._initialized=!1,this.init(),y.addInstance("Dismiss",this,this._instanceId,r.override)}return t.prototype.init=function(){var e=this;this._triggerEl&&this._targetEl&&!this._initialized&&(this._clickHandler=function(){e.hide()},this._triggerEl.addEventListener("click",this._clickHandler),this._initialized=!0)},t.prototype.destroy=function(){this._triggerEl&&this._initialized&&(this._triggerEl.removeEventListener("click",this._clickHandler),this._initialized=!1)},t.prototype.removeInstance=function(){y.removeInstance("Dismiss",this._instanceId)},t.prototype.destroyAndRemoveInstance=function(){this.destroy(),this.removeInstance()},t.prototype.hide=function(){var e=this;this._targetEl.classList.add(this._options.transition,"duration-".concat(this._options.duration),this._options.timing,"opacity-0"),setTimeout(function(){e._targetEl.classList.add("hidden")},this._options.duration),this._options.onHide(this,this._targetEl)},t.prototype.updateOnHide=function(e){this._options.onHide=e},t}();function Li(){document.querySelectorAll("[data-dismiss-target]").forEach(function(t){var e=t.getAttribute("data-dismiss-target"),i=document.querySelector(e);i?new Yn(i,t):console.error('The dismiss element with id "'.concat(e,'" does not exist. Please check the data-dismiss-target attribute.'))})}typeof window<"u"&&(window.Dismiss=Yn,window.initDismisses=Li);var H="top",$="bottom",q="right",M="left",Ci="auto",Jt=[H,$,q,M],It="start",Ut="end",$o="clippingParents",Xn="viewport",jt="popper",qo="reference",En=Jt.reduce(function(t,e){return t.concat([e+"-"+It,e+"-"+Ut])},[]),Jn=[].concat(Jt,[Ci]).reduce(function(t,e){return t.concat([e,e+"-"+It,e+"-"+Ut])},[]),No="beforeRead",Fo="read",Vo="afterRead",Ko="beforeMain",Wo="main",Uo="afterMain",Yo="beforeWrite",Xo="write",Jo="afterWrite",Go=[No,Fo,Vo,Ko,Wo,Uo,Yo,Xo,Jo];function Y(t){return t?(t.nodeName||"").toLowerCase():null}function R(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function Et(t){var e=R(t).Element;return t instanceof e||t instanceof Element}function B(t){var e=R(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function Oi(t){if(typeof ShadowRoot>"u")return!1;var e=R(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function Zo(t){var e=t.state;Object.keys(e.elements).forEach(function(i){var n=e.styles[i]||{},r=e.attributes[i]||{},o=e.elements[i];!B(o)||!Y(o)||(Object.assign(o.style,n),Object.keys(r).forEach(function(s){var a=r[s];a===!1?o.removeAttribute(s):o.setAttribute(s,a===!0?"":a)}))})}function Qo(t){var e=t.state,i={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,i.popper),e.styles=i,e.elements.arrow&&Object.assign(e.elements.arrow.style,i.arrow),function(){Object.keys(e.elements).forEach(function(n){var r=e.elements[n],o=e.attributes[n]||{},s=Object.keys(e.styles.hasOwnProperty(n)?e.styles[n]:i[n]),a=s.reduce(function(c,u){return c[u]="",c},{});!B(r)||!Y(r)||(Object.assign(r.style,a),Object.keys(o).forEach(function(c){r.removeAttribute(c)}))})}}const ts={name:"applyStyles",enabled:!0,phase:"write",fn:Zo,effect:Qo,requires:["computeStyles"]};function U(t){return t.split("-")[0]}var gt=Math.max,Ae=Math.min,Lt=Math.round;function ni(){var t=navigator.userAgentData;return t!=null&&t.brands&&Array.isArray(t.brands)?t.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function Gn(){return!/^((?!chrome|android).)*safari/i.test(ni())}function Ct(t,e,i){e===void 0&&(e=!1),i===void 0&&(i=!1);var n=t.getBoundingClientRect(),r=1,o=1;e&&B(t)&&(r=t.offsetWidth>0&&Lt(n.width)/t.offsetWidth||1,o=t.offsetHeight>0&&Lt(n.height)/t.offsetHeight||1);var s=Et(t)?R(t):window,a=s.visualViewport,c=!Gn()&&i,u=(n.left+(c&&a?a.offsetLeft:0))/r,l=(n.top+(c&&a?a.offsetTop:0))/o,f=n.width/r,p=n.height/o;return{width:f,height:p,top:l,right:u+f,bottom:l+p,left:u,x:u,y:l}}function ki(t){var e=Ct(t),i=t.offsetWidth,n=t.offsetHeight;return Math.abs(e.width-i)<=1&&(i=e.width),Math.abs(e.height-n)<=1&&(n=e.height),{x:t.offsetLeft,y:t.offsetTop,width:i,height:n}}function Zn(t,e){var i=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(i&&Oi(i)){var n=e;do{if(n&&t.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function X(t){return R(t).getComputedStyle(t)}function es(t){return["table","td","th"].indexOf(Y(t))>=0}function st(t){return((Et(t)?t.ownerDocument:t.document)||window.document).documentElement}function Be(t){return Y(t)==="html"?t:t.assignedSlot||t.parentNode||(Oi(t)?t.host:null)||st(t)}function xn(t){return!B(t)||X(t).position==="fixed"?null:t.offsetParent}function is(t){var e=/firefox/i.test(ni()),i=/Trident/i.test(ni());if(i&&B(t)){var n=X(t);if(n.position==="fixed")return null}var r=Be(t);for(Oi(r)&&(r=r.host);B(r)&&["html","body"].indexOf(Y(r))<0;){var o=X(r);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||e&&o.willChange==="filter"||e&&o.filter&&o.filter!=="none")return r;r=r.parentNode}return null}function Gt(t){for(var e=R(t),i=xn(t);i&&es(i)&&X(i).position==="static";)i=xn(i);return i&&(Y(i)==="html"||Y(i)==="body"&&X(i).position==="static")?e:i||is(t)||e}function Si(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function Nt(t,e,i){return gt(t,Ae(e,i))}function ns(t,e,i){var n=Nt(t,e,i);return n>i?i:n}function Qn(){return{top:0,right:0,bottom:0,left:0}}function tr(t){return Object.assign({},Qn(),t)}function er(t,e){return e.reduce(function(i,n){return i[n]=t,i},{})}var rs=function(e,i){return e=typeof e=="function"?e(Object.assign({},i.rects,{placement:i.placement})):e,tr(typeof e!="number"?e:er(e,Jt))};function os(t){var e,i=t.state,n=t.name,r=t.options,o=i.elements.arrow,s=i.modifiersData.popperOffsets,a=U(i.placement),c=Si(a),u=[M,q].indexOf(a)>=0,l=u?"height":"width";if(!(!o||!s)){var f=rs(r.padding,i),p=ki(o),h=c==="y"?H:M,x=c==="y"?$:q,b=i.rects.reference[l]+i.rects.reference[c]-s[c]-i.rects.popper[l],d=s[c]-i.rects.reference[c],v=Gt(o),g=v?c==="y"?v.clientHeight||0:v.clientWidth||0:0,m=b/2-d/2,_=f[h],w=g-p[l]-f[x],E=g/2-p[l]/2+m,A=Nt(_,E,w),k=c;i.modifiersData[n]=(e={},e[k]=A,e.centerOffset=A-E,e)}}function ss(t){var e=t.state,i=t.options,n=i.element,r=n===void 0?"[data-popper-arrow]":n;r!=null&&(typeof r=="string"&&(r=e.elements.popper.querySelector(r),!r)||Zn(e.elements.popper,r)&&(e.elements.arrow=r))}const as={name:"arrow",enabled:!0,phase:"main",fn:os,effect:ss,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Ot(t){return t.split("-")[1]}var cs={top:"auto",right:"auto",bottom:"auto",left:"auto"};function ls(t,e){var i=t.x,n=t.y,r=e.devicePixelRatio||1;return{x:Lt(i*r)/r||0,y:Lt(n*r)/r||0}}function An(t){var e,i=t.popper,n=t.popperRect,r=t.placement,o=t.variation,s=t.offsets,a=t.position,c=t.gpuAcceleration,u=t.adaptive,l=t.roundOffsets,f=t.isFixed,p=s.x,h=p===void 0?0:p,x=s.y,b=x===void 0?0:x,d=typeof l=="function"?l({x:h,y:b}):{x:h,y:b};h=d.x,b=d.y;var v=s.hasOwnProperty("x"),g=s.hasOwnProperty("y"),m=M,_=H,w=window;if(u){var E=Gt(i),A="clientHeight",k="clientWidth";if(E===R(i)&&(E=st(i),X(E).position!=="static"&&a==="absolute"&&(A="scrollHeight",k="scrollWidth")),E=E,r===H||(r===M||r===q)&&o===Ut){_=$;var C=f&&E===w&&w.visualViewport?w.visualViewport.height:E[A];b-=C-n.height,b*=c?1:-1}if(r===M||(r===H||r===$)&&o===Ut){m=q;var L=f&&E===w&&w.visualViewport?w.visualViewport.width:E[k];h-=L-n.width,h*=c?1:-1}}var T=Object.assign({position:a},u&&cs),N=l===!0?ls({x:h,y:b},R(i)):{x:h,y:b};if(h=N.x,b=N.y,c){var P;return Object.assign({},T,(P={},P[_]=g?"0":"",P[m]=v?"0":"",P.transform=(w.devicePixelRatio||1)<=1?"translate("+h+"px, "+b+"px)":"translate3d("+h+"px, "+b+"px, 0)",P))}return Object.assign({},T,(e={},e[_]=g?b+"px":"",e[m]=v?h+"px":"",e.transform="",e))}function us(t){var e=t.state,i=t.options,n=i.gpuAcceleration,r=n===void 0?!0:n,o=i.adaptive,s=o===void 0?!0:o,a=i.roundOffsets,c=a===void 0?!0:a,u={placement:U(e.placement),variation:Ot(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:r,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,An(Object.assign({},u,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:s,roundOffsets:c})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,An(Object.assign({},u,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}const ds={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:us,data:{}};var ae={passive:!0};function fs(t){var e=t.state,i=t.instance,n=t.options,r=n.scroll,o=r===void 0?!0:r,s=n.resize,a=s===void 0?!0:s,c=R(e.elements.popper),u=[].concat(e.scrollParents.reference,e.scrollParents.popper);return o&&u.forEach(function(l){l.addEventListener("scroll",i.update,ae)}),a&&c.addEventListener("resize",i.update,ae),function(){o&&u.forEach(function(l){l.removeEventListener("scroll",i.update,ae)}),a&&c.removeEventListener("resize",i.update,ae)}}const ps={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:fs,data:{}};var hs={left:"right",right:"left",bottom:"top",top:"bottom"};function ge(t){return t.replace(/left|right|bottom|top/g,function(e){return hs[e]})}var vs={start:"end",end:"start"};function In(t){return t.replace(/start|end/g,function(e){return vs[e]})}function Ti(t){var e=R(t),i=e.pageXOffset,n=e.pageYOffset;return{scrollLeft:i,scrollTop:n}}function Pi(t){return Ct(st(t)).left+Ti(t).scrollLeft}function _s(t,e){var i=R(t),n=st(t),r=i.visualViewport,o=n.clientWidth,s=n.clientHeight,a=0,c=0;if(r){o=r.width,s=r.height;var u=Gn();(u||!u&&e==="fixed")&&(a=r.offsetLeft,c=r.offsetTop)}return{width:o,height:s,x:a+Pi(t),y:c}}function gs(t){var e,i=st(t),n=Ti(t),r=(e=t.ownerDocument)==null?void 0:e.body,o=gt(i.scrollWidth,i.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),s=gt(i.scrollHeight,i.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),a=-n.scrollLeft+Pi(t),c=-n.scrollTop;return X(r||i).direction==="rtl"&&(a+=gt(i.clientWidth,r?r.clientWidth:0)-o),{width:o,height:s,x:a,y:c}}function Di(t){var e=X(t),i=e.overflow,n=e.overflowX,r=e.overflowY;return/auto|scroll|overlay|hidden/.test(i+r+n)}function ir(t){return["html","body","#document"].indexOf(Y(t))>=0?t.ownerDocument.body:B(t)&&Di(t)?t:ir(Be(t))}function Ft(t,e){var i;e===void 0&&(e=[]);var n=ir(t),r=n===((i=t.ownerDocument)==null?void 0:i.body),o=R(n),s=r?[o].concat(o.visualViewport||[],Di(n)?n:[]):n,a=e.concat(s);return r?a:a.concat(Ft(Be(s)))}function ri(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function ms(t,e){var i=Ct(t,!1,e==="fixed");return i.top=i.top+t.clientTop,i.left=i.left+t.clientLeft,i.bottom=i.top+t.clientHeight,i.right=i.left+t.clientWidth,i.width=t.clientWidth,i.height=t.clientHeight,i.x=i.left,i.y=i.top,i}function Ln(t,e,i){return e===Xn?ri(_s(t,i)):Et(e)?ms(e,i):ri(gs(st(t)))}function ys(t){var e=Ft(Be(t)),i=["absolute","fixed"].indexOf(X(t).position)>=0,n=i&&B(t)?Gt(t):t;return Et(n)?e.filter(function(r){return Et(r)&&Zn(r,n)&&Y(r)!=="body"}):[]}function bs(t,e,i,n){var r=e==="clippingParents"?ys(t):[].concat(e),o=[].concat(r,[i]),s=o[0],a=o.reduce(function(c,u){var l=Ln(t,u,n);return c.top=gt(l.top,c.top),c.right=Ae(l.right,c.right),c.bottom=Ae(l.bottom,c.bottom),c.left=gt(l.left,c.left),c},Ln(t,s,n));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function nr(t){var e=t.reference,i=t.element,n=t.placement,r=n?U(n):null,o=n?Ot(n):null,s=e.x+e.width/2-i.width/2,a=e.y+e.height/2-i.height/2,c;switch(r){case H:c={x:s,y:e.y-i.height};break;case $:c={x:s,y:e.y+e.height};break;case q:c={x:e.x+e.width,y:a};break;case M:c={x:e.x-i.width,y:a};break;default:c={x:e.x,y:e.y}}var u=r?Si(r):null;if(u!=null){var l=u==="y"?"height":"width";switch(o){case It:c[u]=c[u]-(e[l]/2-i[l]/2);break;case Ut:c[u]=c[u]+(e[l]/2-i[l]/2);break}}return c}function Yt(t,e){e===void 0&&(e={});var i=e,n=i.placement,r=n===void 0?t.placement:n,o=i.strategy,s=o===void 0?t.strategy:o,a=i.boundary,c=a===void 0?$o:a,u=i.rootBoundary,l=u===void 0?Xn:u,f=i.elementContext,p=f===void 0?jt:f,h=i.altBoundary,x=h===void 0?!1:h,b=i.padding,d=b===void 0?0:b,v=tr(typeof d!="number"?d:er(d,Jt)),g=p===jt?qo:jt,m=t.rects.popper,_=t.elements[x?g:p],w=bs(Et(_)?_:_.contextElement||st(t.elements.popper),c,l,s),E=Ct(t.elements.reference),A=nr({reference:E,element:m,strategy:"absolute",placement:r}),k=ri(Object.assign({},m,A)),C=p===jt?k:E,L={top:w.top-C.top+v.top,bottom:C.bottom-w.bottom+v.bottom,left:w.left-C.left+v.left,right:C.right-w.right+v.right},T=t.modifiersData.offset;if(p===jt&&T){var N=T[r];Object.keys(L).forEach(function(P){var ct=[q,$].indexOf(P)>=0?1:-1,lt=[H,$].indexOf(P)>=0?"y":"x";L[P]+=N[lt]*ct})}return L}function ws(t,e){e===void 0&&(e={});var i=e,n=i.placement,r=i.boundary,o=i.rootBoundary,s=i.padding,a=i.flipVariations,c=i.allowedAutoPlacements,u=c===void 0?Jn:c,l=Ot(n),f=l?a?En:En.filter(function(x){return Ot(x)===l}):Jt,p=f.filter(function(x){return u.indexOf(x)>=0});p.length===0&&(p=f);var h=p.reduce(function(x,b){return x[b]=Yt(t,{placement:b,boundary:r,rootBoundary:o,padding:s})[U(b)],x},{});return Object.keys(h).sort(function(x,b){return h[x]-h[b]})}function Es(t){if(U(t)===Ci)return[];var e=ge(t);return[In(t),e,In(e)]}function xs(t){var e=t.state,i=t.options,n=t.name;if(!e.modifiersData[n]._skip){for(var r=i.mainAxis,o=r===void 0?!0:r,s=i.altAxis,a=s===void 0?!0:s,c=i.fallbackPlacements,u=i.padding,l=i.boundary,f=i.rootBoundary,p=i.altBoundary,h=i.flipVariations,x=h===void 0?!0:h,b=i.allowedAutoPlacements,d=e.options.placement,v=U(d),g=v===d,m=c||(g||!x?[ge(d)]:Es(d)),_=[d].concat(m).reduce(function(At,G){return At.concat(U(G)===Ci?ws(e,{placement:G,boundary:l,rootBoundary:f,padding:u,flipVariations:x,allowedAutoPlacements:b}):G)},[]),w=e.rects.reference,E=e.rects.popper,A=new Map,k=!0,C=_[0],L=0;L<_.length;L++){var T=_[L],N=U(T),P=Ot(T)===It,ct=[H,$].indexOf(N)>=0,lt=ct?"width":"height",j=Yt(e,{placement:T,boundary:l,rootBoundary:f,altBoundary:p,padding:u}),F=ct?P?q:M:P?$:H;w[lt]>E[lt]&&(F=ge(F));var ie=ge(F),ut=[];if(o&&ut.push(j[N]<=0),a&&ut.push(j[F]<=0,j[ie]<=0),ut.every(function(At){return At})){C=T,k=!1;break}A.set(T,ut)}if(k)for(var ne=x?3:1,Ue=function(G){var Mt=_.find(function(oe){var dt=A.get(oe);if(dt)return dt.slice(0,G).every(function(Ye){return Ye})});if(Mt)return C=Mt,"break"},Ht=ne;Ht>0;Ht--){var re=Ue(Ht);if(re==="break")break}e.placement!==C&&(e.modifiersData[n]._skip=!0,e.placement=C,e.reset=!0)}}const As={name:"flip",enabled:!0,phase:"main",fn:xs,requiresIfExists:["offset"],data:{_skip:!1}};function Cn(t,e,i){return i===void 0&&(i={x:0,y:0}),{top:t.top-e.height-i.y,right:t.right-e.width+i.x,bottom:t.bottom-e.height+i.y,left:t.left-e.width-i.x}}function On(t){return[H,q,$,M].some(function(e){return t[e]>=0})}function Is(t){var e=t.state,i=t.name,n=e.rects.reference,r=e.rects.popper,o=e.modifiersData.preventOverflow,s=Yt(e,{elementContext:"reference"}),a=Yt(e,{altBoundary:!0}),c=Cn(s,n),u=Cn(a,r,o),l=On(c),f=On(u);e.modifiersData[i]={referenceClippingOffsets:c,popperEscapeOffsets:u,isReferenceHidden:l,hasPopperEscaped:f},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":l,"data-popper-escaped":f})}const Ls={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Is};function Cs(t,e,i){var n=U(t),r=[M,H].indexOf(n)>=0?-1:1,o=typeof i=="function"?i(Object.assign({},e,{placement:t})):i,s=o[0],a=o[1];return s=s||0,a=(a||0)*r,[M,q].indexOf(n)>=0?{x:a,y:s}:{x:s,y:a}}function Os(t){var e=t.state,i=t.options,n=t.name,r=i.offset,o=r===void 0?[0,0]:r,s=Jn.reduce(function(l,f){return l[f]=Cs(f,e.rects,o),l},{}),a=s[e.placement],c=a.x,u=a.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=c,e.modifiersData.popperOffsets.y+=u),e.modifiersData[n]=s}const ks={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Os};function Ss(t){var e=t.state,i=t.name;e.modifiersData[i]=nr({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}const Ts={name:"popperOffsets",enabled:!0,phase:"read",fn:Ss,data:{}};function Ps(t){return t==="x"?"y":"x"}function Ds(t){var e=t.state,i=t.options,n=t.name,r=i.mainAxis,o=r===void 0?!0:r,s=i.altAxis,a=s===void 0?!1:s,c=i.boundary,u=i.rootBoundary,l=i.altBoundary,f=i.padding,p=i.tether,h=p===void 0?!0:p,x=i.tetherOffset,b=x===void 0?0:x,d=Yt(e,{boundary:c,rootBoundary:u,padding:f,altBoundary:l}),v=U(e.placement),g=Ot(e.placement),m=!g,_=Si(v),w=Ps(_),E=e.modifiersData.popperOffsets,A=e.rects.reference,k=e.rects.popper,C=typeof b=="function"?b(Object.assign({},e.rects,{placement:e.placement})):b,L=typeof C=="number"?{mainAxis:C,altAxis:C}:Object.assign({mainAxis:0,altAxis:0},C),T=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,N={x:0,y:0};if(E){if(o){var P,ct=_==="y"?H:M,lt=_==="y"?$:q,j=_==="y"?"height":"width",F=E[_],ie=F+d[ct],ut=F-d[lt],ne=h?-k[j]/2:0,Ue=g===It?A[j]:k[j],Ht=g===It?-k[j]:-A[j],re=e.elements.arrow,At=h&&re?ki(re):{width:0,height:0},G=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:Qn(),Mt=G[ct],oe=G[lt],dt=Nt(0,A[j],At[j]),Ye=m?A[j]/2-ne-dt-Mt-L.mainAxis:Ue-dt-Mt-L.mainAxis,Co=m?-A[j]/2+ne+dt+oe+L.mainAxis:Ht+dt+oe+L.mainAxis,Xe=e.elements.arrow&&Gt(e.elements.arrow),Oo=Xe?_==="y"?Xe.clientTop||0:Xe.clientLeft||0:0,dn=(P=T==null?void 0:T[_])!=null?P:0,ko=F+Ye-dn-Oo,So=F+Co-dn,fn=Nt(h?Ae(ie,ko):ie,F,h?gt(ut,So):ut);E[_]=fn,N[_]=fn-F}if(a){var pn,To=_==="x"?H:M,Po=_==="x"?$:q,ft=E[w],se=w==="y"?"height":"width",hn=ft+d[To],vn=ft-d[Po],Je=[H,M].indexOf(v)!==-1,_n=(pn=T==null?void 0:T[w])!=null?pn:0,gn=Je?hn:ft-A[se]-k[se]-_n+L.altAxis,mn=Je?ft+A[se]+k[se]-_n-L.altAxis:vn,yn=h&&Je?ns(gn,ft,mn):Nt(h?gn:hn,ft,h?mn:vn);E[w]=yn,N[w]=yn-ft}e.modifiersData[n]=N}}const Hs={name:"preventOverflow",enabled:!0,phase:"main",fn:Ds,requiresIfExists:["offset"]};function Ms(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function js(t){return t===R(t)||!B(t)?Ti(t):Ms(t)}function Rs(t){var e=t.getBoundingClientRect(),i=Lt(e.width)/t.offsetWidth||1,n=Lt(e.height)/t.offsetHeight||1;return i!==1||n!==1}function zs(t,e,i){i===void 0&&(i=!1);var n=B(e),r=B(e)&&Rs(e),o=st(e),s=Ct(t,r,i),a={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(n||!n&&!i)&&((Y(e)!=="body"||Di(o))&&(a=js(e)),B(e)?(c=Ct(e,!0),c.x+=e.clientLeft,c.y+=e.clientTop):o&&(c.x=Pi(o))),{x:s.left+a.scrollLeft-c.x,y:s.top+a.scrollTop-c.y,width:s.width,height:s.height}}function Bs(t){var e=new Map,i=new Set,n=[];t.forEach(function(o){e.set(o.name,o)});function r(o){i.add(o.name);var s=[].concat(o.requires||[],o.requiresIfExists||[]);s.forEach(function(a){if(!i.has(a)){var c=e.get(a);c&&r(c)}}),n.push(o)}return t.forEach(function(o){i.has(o.name)||r(o)}),n}function $s(t){var e=Bs(t);return Go.reduce(function(i,n){return i.concat(e.filter(function(r){return r.phase===n}))},[])}function qs(t){var e;return function(){return e||(e=new Promise(function(i){Promise.resolve().then(function(){e=void 0,i(t())})})),e}}function Ns(t){var e=t.reduce(function(i,n){var r=i[n.name];return i[n.name]=r?Object.assign({},r,n,{options:Object.assign({},r.options,n.options),data:Object.assign({},r.data,n.data)}):n,i},{});return Object.keys(e).map(function(i){return e[i]})}var kn={placement:"bottom",modifiers:[],strategy:"absolute"};function Sn(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return!e.some(function(n){return!(n&&typeof n.getBoundingClientRect=="function")})}function Fs(t){t===void 0&&(t={});var e=t,i=e.defaultModifiers,n=i===void 0?[]:i,r=e.defaultOptions,o=r===void 0?kn:r;return function(a,c,u){u===void 0&&(u=o);var l={placement:"bottom",orderedModifiers:[],options:Object.assign({},kn,o),modifiersData:{},elements:{reference:a,popper:c},attributes:{},styles:{}},f=[],p=!1,h={state:l,setOptions:function(v){var g=typeof v=="function"?v(l.options):v;b(),l.options=Object.assign({},o,l.options,g),l.scrollParents={reference:Et(a)?Ft(a):a.contextElement?Ft(a.contextElement):[],popper:Ft(c)};var m=$s(Ns([].concat(n,l.options.modifiers)));return l.orderedModifiers=m.filter(function(_){return _.enabled}),x(),h.update()},forceUpdate:function(){if(!p){var v=l.elements,g=v.reference,m=v.popper;if(Sn(g,m)){l.rects={reference:zs(g,Gt(m),l.options.strategy==="fixed"),popper:ki(m)},l.reset=!1,l.placement=l.options.placement,l.orderedModifiers.forEach(function(L){return l.modifiersData[L.name]=Object.assign({},L.data)});for(var _=0;_<l.orderedModifiers.length;_++){if(l.reset===!0){l.reset=!1,_=-1;continue}var w=l.orderedModifiers[_],E=w.fn,A=w.options,k=A===void 0?{}:A,C=w.name;typeof E=="function"&&(l=E({state:l,options:k,name:C,instance:h})||l)}}}},update:qs(function(){return new Promise(function(d){h.forceUpdate(),d(l)})}),destroy:function(){b(),p=!0}};if(!Sn(a,c))return h;h.setOptions(u).then(function(d){!p&&u.onFirstUpdate&&u.onFirstUpdate(d)});function x(){l.orderedModifiers.forEach(function(d){var v=d.name,g=d.options,m=g===void 0?{}:g,_=d.effect;if(typeof _=="function"){var w=_({state:l,name:v,instance:h,options:m}),E=function(){};f.push(w||E)}})}function b(){f.forEach(function(d){return d()}),f=[]}return h}}var Vs=[ps,Ts,ds,ts,ks,As,Hs,as,Ls],Hi=Fs({defaultModifiers:Vs}),Q=function(){return Q=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++){e=arguments[i];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])}return t},Q.apply(this,arguments)},ce=function(t,e,i){if(i||arguments.length===2)for(var n=0,r=e.length,o;n<r;n++)(o||!(n in e))&&(o||(o=Array.prototype.slice.call(e,0,n)),o[n]=e[n]);return t.concat(o||Array.prototype.slice.call(e))},tt={placement:"bottom",triggerType:"click",offsetSkidding:0,offsetDistance:10,delay:300,ignoreClickOutsideClass:!1,onShow:function(){},onHide:function(){},onToggle:function(){}},Ks={id:null,override:!0},rr=function(){function t(e,i,n,r){e===void 0&&(e=null),i===void 0&&(i=null),n===void 0&&(n=tt),r===void 0&&(r=Ks),this._instanceId=r.id?r.id:e.id,this._targetEl=e,this._triggerEl=i,this._options=Q(Q({},tt),n),this._popperInstance=null,this._visible=!1,this._initialized=!1,this.init(),y.addInstance("Dropdown",this,this._instanceId,r.override)}return t.prototype.init=function(){this._triggerEl&&this._targetEl&&!this._initialized&&(this._popperInstance=this._createPopperInstance(),this._setupEventListeners(),this._initialized=!0)},t.prototype.destroy=function(){var e=this,i=this._getTriggerEvents();this._options.triggerType==="click"&&i.showEvents.forEach(function(n){e._triggerEl.removeEventListener(n,e._clickHandler)}),this._options.triggerType==="hover"&&(i.showEvents.forEach(function(n){e._triggerEl.removeEventListener(n,e._hoverShowTriggerElHandler),e._targetEl.removeEventListener(n,e._hoverShowTargetElHandler)}),i.hideEvents.forEach(function(n){e._triggerEl.removeEventListener(n,e._hoverHideHandler),e._targetEl.removeEventListener(n,e._hoverHideHandler)})),this._popperInstance.destroy(),this._initialized=!1},t.prototype.removeInstance=function(){y.removeInstance("Dropdown",this._instanceId)},t.prototype.destroyAndRemoveInstance=function(){this.destroy(),this.removeInstance()},t.prototype._setupEventListeners=function(){var e=this,i=this._getTriggerEvents();this._clickHandler=function(){e.toggle()},this._options.triggerType==="click"&&i.showEvents.forEach(function(n){e._triggerEl.addEventListener(n,e._clickHandler)}),this._hoverShowTriggerElHandler=function(n){n.type==="click"?e.toggle():setTimeout(function(){e.show()},e._options.delay)},this._hoverShowTargetElHandler=function(){e.show()},this._hoverHideHandler=function(){setTimeout(function(){e._targetEl.matches(":hover")||e.hide()},e._options.delay)},this._options.triggerType==="hover"&&(i.showEvents.forEach(function(n){e._triggerEl.addEventListener(n,e._hoverShowTriggerElHandler),e._targetEl.addEventListener(n,e._hoverShowTargetElHandler)}),i.hideEvents.forEach(function(n){e._triggerEl.addEventListener(n,e._hoverHideHandler),e._targetEl.addEventListener(n,e._hoverHideHandler)}))},t.prototype._createPopperInstance=function(){return Hi(this._triggerEl,this._targetEl,{placement:this._options.placement,modifiers:[{name:"offset",options:{offset:[this._options.offsetSkidding,this._options.offsetDistance]}}]})},t.prototype._setupClickOutsideListener=function(){var e=this;this._clickOutsideEventListener=function(i){e._handleClickOutside(i,e._targetEl)},document.body.addEventListener("click",this._clickOutsideEventListener,!0)},t.prototype._removeClickOutsideListener=function(){document.body.removeEventListener("click",this._clickOutsideEventListener,!0)},t.prototype._handleClickOutside=function(e,i){var n=e.target,r=this._options.ignoreClickOutsideClass,o=!1;if(r){var s=document.querySelectorAll(".".concat(r));s.forEach(function(a){if(a.contains(n)){o=!0;return}})}n!==i&&!i.contains(n)&&!this._triggerEl.contains(n)&&!o&&this.isVisible()&&this.hide()},t.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:[]}}},t.prototype.toggle=function(){this.isVisible()?this.hide():this.show(),this._options.onToggle(this)},t.prototype.isVisible=function(){return this._visible},t.prototype.show=function(){this._targetEl.classList.remove("hidden"),this._targetEl.classList.add("block"),this._popperInstance.setOptions(function(e){return Q(Q({},e),{modifiers:ce(ce([],e.modifiers,!0),[{name:"eventListeners",enabled:!0}],!1)})}),this._setupClickOutsideListener(),this._popperInstance.update(),this._visible=!0,this._options.onShow(this)},t.prototype.hide=function(){this._targetEl.classList.remove("block"),this._targetEl.classList.add("hidden"),this._popperInstance.setOptions(function(e){return Q(Q({},e),{modifiers:ce(ce([],e.modifiers,!0),[{name:"eventListeners",enabled:!1}],!1)})}),this._visible=!1,this._removeClickOutsideListener(),this._options.onHide(this)},t.prototype.updateOnShow=function(e){this._options.onShow=e},t.prototype.updateOnHide=function(e){this._options.onHide=e},t.prototype.updateOnToggle=function(e){this._options.onToggle=e},t}();function Mi(){document.querySelectorAll("[data-dropdown-toggle]").forEach(function(t){var e=t.getAttribute("data-dropdown-toggle"),i=document.getElementById(e);if(i){var n=t.getAttribute("data-dropdown-placement"),r=t.getAttribute("data-dropdown-offset-skidding"),o=t.getAttribute("data-dropdown-offset-distance"),s=t.getAttribute("data-dropdown-trigger"),a=t.getAttribute("data-dropdown-delay"),c=t.getAttribute("data-dropdown-ignore-click-outside-class");new rr(i,t,{placement:n||tt.placement,triggerType:s||tt.triggerType,offsetSkidding:r?parseInt(r):tt.offsetSkidding,offsetDistance:o?parseInt(o):tt.offsetDistance,delay:a?parseInt(a):tt.delay,ignoreClickOutsideClass:c||tt.ignoreClickOutsideClass})}else console.error('The dropdown element with id "'.concat(e,'" does not exist. Please check the data-dropdown-toggle attribute.'))})}typeof window<"u"&&(window.Dropdown=rr,window.initDropdowns=Mi);var Ie=function(){return Ie=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++){e=arguments[i];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])}return t},Ie.apply(this,arguments)},Le={placement:"center",backdropClasses:"bg-gray-900/50 dark:bg-gray-900/80 fixed inset-0 z-40",backdrop:"dynamic",closable:!0,onHide:function(){},onShow:function(){},onToggle:function(){}},Ws={id:null,override:!0},or=function(){function t(e,i,n){e===void 0&&(e=null),i===void 0&&(i=Le),n===void 0&&(n=Ws),this._eventListenerInstances=[],this._instanceId=n.id?n.id:e.id,this._targetEl=e,this._options=Ie(Ie({},Le),i),this._isHidden=!0,this._backdropEl=null,this._initialized=!1,this.init(),y.addInstance("Modal",this,this._instanceId,n.override)}return t.prototype.init=function(){var e=this;this._targetEl&&!this._initialized&&(this._getPlacementClasses().map(function(i){e._targetEl.classList.add(i)}),this._initialized=!0)},t.prototype.destroy=function(){this._initialized&&(this.removeAllEventListenerInstances(),this._destroyBackdropEl(),this._initialized=!1)},t.prototype.removeInstance=function(){y.removeInstance("Modal",this._instanceId)},t.prototype.destroyAndRemoveInstance=function(){this.destroy(),this.removeInstance()},t.prototype._createBackdrop=function(){var e;if(this._isHidden){var i=document.createElement("div");i.setAttribute("modal-backdrop",""),(e=i.classList).add.apply(e,this._options.backdropClasses.split(" ")),document.querySelector("body").append(i),this._backdropEl=i}},t.prototype._destroyBackdropEl=function(){this._isHidden||document.querySelector("[modal-backdrop]").remove()},t.prototype._setupModalCloseEventListeners=function(){var e=this;this._options.backdrop==="dynamic"&&(this._clickOutsideEventListener=function(i){e._handleOutsideClick(i.target)},this._targetEl.addEventListener("click",this._clickOutsideEventListener,!0)),this._keydownEventListener=function(i){i.key==="Escape"&&e.hide()},document.body.addEventListener("keydown",this._keydownEventListener,!0)},t.prototype._removeModalCloseEventListeners=function(){this._options.backdrop==="dynamic"&&this._targetEl.removeEventListener("click",this._clickOutsideEventListener,!0),document.body.removeEventListener("keydown",this._keydownEventListener,!0)},t.prototype._handleOutsideClick=function(e){(e===this._targetEl||e===this._backdropEl&&this.isVisible())&&this.hide()},t.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"]}},t.prototype.toggle=function(){this._isHidden?this.show():this.hide(),this._options.onToggle(this)},t.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))},t.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))},t.prototype.isVisible=function(){return!this._isHidden},t.prototype.isHidden=function(){return this._isHidden},t.prototype.addEventListenerInstance=function(e,i,n){this._eventListenerInstances.push({element:e,type:i,handler:n})},t.prototype.removeAllEventListenerInstances=function(){this._eventListenerInstances.map(function(e){e.element.removeEventListener(e.type,e.handler)}),this._eventListenerInstances=[]},t.prototype.getAllEventListenerInstances=function(){return this._eventListenerInstances},t.prototype.updateOnShow=function(e){this._options.onShow=e},t.prototype.updateOnHide=function(e){this._options.onHide=e},t.prototype.updateOnToggle=function(e){this._options.onToggle=e},t}();function ji(){document.querySelectorAll("[data-modal-target]").forEach(function(t){var e=t.getAttribute("data-modal-target"),i=document.getElementById(e);if(i){var n=i.getAttribute("data-modal-placement"),r=i.getAttribute("data-modal-backdrop");new or(i,{placement:n||Le.placement,backdrop:r||Le.backdrop})}else console.error("Modal with id ".concat(e," 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(t){var e=t.getAttribute("data-modal-toggle"),i=document.getElementById(e);if(i){var n=y.getInstance("Modal",e);if(n){var r=function(){n.toggle()};t.addEventListener("click",r),n.addEventListenerInstance(t,"click",r)}else console.error("Modal with id ".concat(e," has not been initialized. Please initialize it using the data-modal-target attribute."))}else console.error("Modal with id ".concat(e," 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(t){var e=t.getAttribute("data-modal-show"),i=document.getElementById(e);if(i){var n=y.getInstance("Modal",e);if(n){var r=function(){n.show()};t.addEventListener("click",r),n.addEventListenerInstance(t,"click",r)}else console.error("Modal with id ".concat(e," has not been initialized. Please initialize it using the data-modal-target attribute."))}else console.error("Modal with id ".concat(e," 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(t){var e=t.getAttribute("data-modal-hide"),i=document.getElementById(e);if(i){var n=y.getInstance("Modal",e);if(n){var r=function(){n.hide()};t.addEventListener("click",r),n.addEventListenerInstance(t,"click",r)}else console.error("Modal with id ".concat(e," has not been initialized. Please initialize it using the data-modal-target attribute."))}else console.error("Modal with id ".concat(e," does not exist. Are you sure that the data-modal-hide attribute points to the correct modal id?"))})}typeof window<"u"&&(window.Modal=or,window.initModals=ji);var Ce=function(){return Ce=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++){e=arguments[i];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])}return t},Ce.apply(this,arguments)},vt={placement:"left",bodyScrolling:!1,backdrop:!0,edge:!1,edgeOffset:"bottom-[60px]",backdropClasses:"bg-gray-900/50 dark:bg-gray-900/80 fixed inset-0 z-30",onShow:function(){},onHide:function(){},onToggle:function(){}},Us={id:null,override:!0},sr=function(){function t(e,i,n){e===void 0&&(e=null),i===void 0&&(i=vt),n===void 0&&(n=Us),this._eventListenerInstances=[],this._instanceId=n.id?n.id:e.id,this._targetEl=e,this._options=Ce(Ce({},vt),i),this._visible=!1,this._initialized=!1,this.init(),y.addInstance("Drawer",this,this._instanceId,n.override)}return t.prototype.init=function(){var e=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){e._targetEl.classList.add(i)}),this._handleEscapeKey=function(i){i.key==="Escape"&&e.isVisible()&&e.hide()},document.addEventListener("keydown",this._handleEscapeKey),this._initialized=!0)},t.prototype.destroy=function(){this._initialized&&(this.removeAllEventListenerInstances(),this._destroyBackdropEl(),document.removeEventListener("keydown",this._handleEscapeKey),this._initialized=!1)},t.prototype.removeInstance=function(){y.removeInstance("Drawer",this._instanceId)},t.prototype.destroyAndRemoveInstance=function(){this.destroy(),this.removeInstance()},t.prototype.hide=function(){var e=this;this._options.edge?(this._getPlacementClasses(this._options.placement+"-edge").active.map(function(i){e._targetEl.classList.remove(i)}),this._getPlacementClasses(this._options.placement+"-edge").inactive.map(function(i){e._targetEl.classList.add(i)})):(this._getPlacementClasses(this._options.placement).active.map(function(i){e._targetEl.classList.remove(i)}),this._getPlacementClasses(this._options.placement).inactive.map(function(i){e._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)},t.prototype.show=function(){var e=this;this._options.edge?(this._getPlacementClasses(this._options.placement+"-edge").active.map(function(i){e._targetEl.classList.add(i)}),this._getPlacementClasses(this._options.placement+"-edge").inactive.map(function(i){e._targetEl.classList.remove(i)})):(this._getPlacementClasses(this._options.placement).active.map(function(i){e._targetEl.classList.add(i)}),this._getPlacementClasses(this._options.placement).inactive.map(function(i){e._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)},t.prototype.toggle=function(){this.isVisible()?this.hide():this.show()},t.prototype._createBackdrop=function(){var e,i=this;if(!this._visible){var n=document.createElement("div");n.setAttribute("drawer-backdrop",""),(e=n.classList).add.apply(e,this._options.backdropClasses.split(" ")),document.querySelector("body").append(n),n.addEventListener("click",function(){i.hide()})}},t.prototype._destroyBackdropEl=function(){this._visible&&document.querySelector("[drawer-backdrop]")!==null&&document.querySelector("[drawer-backdrop]").remove()},t.prototype._getPlacementClasses=function(e){switch(e){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"]}}},t.prototype.isHidden=function(){return!this._visible},t.prototype.isVisible=function(){return this._visible},t.prototype.addEventListenerInstance=function(e,i,n){this._eventListenerInstances.push({element:e,type:i,handler:n})},t.prototype.removeAllEventListenerInstances=function(){this._eventListenerInstances.map(function(e){e.element.removeEventListener(e.type,e.handler)}),this._eventListenerInstances=[]},t.prototype.getAllEventListenerInstances=function(){return this._eventListenerInstances},t.prototype.updateOnShow=function(e){this._options.onShow=e},t.prototype.updateOnHide=function(e){this._options.onHide=e},t.prototype.updateOnToggle=function(e){this._options.onToggle=e},t}();function Ri(){document.querySelectorAll("[data-drawer-target]").forEach(function(t){var e=t.getAttribute("data-drawer-target"),i=document.getElementById(e);if(i){var n=t.getAttribute("data-drawer-placement"),r=t.getAttribute("data-drawer-body-scrolling"),o=t.getAttribute("data-drawer-backdrop"),s=t.getAttribute("data-drawer-edge"),a=t.getAttribute("data-drawer-edge-offset");new sr(i,{placement:n||vt.placement,bodyScrolling:r?r==="true":vt.bodyScrolling,backdrop:o?o==="true":vt.backdrop,edge:s?s==="true":vt.edge,edgeOffset:a||vt.edgeOffset})}else console.error("Drawer with id ".concat(e," not found. Are you sure that the data-drawer-target attribute points to the correct drawer id?"))}),document.querySelectorAll("[data-drawer-toggle]").forEach(function(t){var e=t.getAttribute("data-drawer-toggle"),i=document.getElementById(e);if(i){var n=y.getInstance("Drawer",e);if(n){var r=function(){n.toggle()};t.addEventListener("click",r),n.addEventListenerInstance(t,"click",r)}else console.error("Drawer with id ".concat(e," has not been initialized. Please initialize it using the data-drawer-target attribute."))}else console.error("Drawer with id ".concat(e," 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(t){var e=t.getAttribute("data-drawer-dismiss")?t.getAttribute("data-drawer-dismiss"):t.getAttribute("data-drawer-hide"),i=document.getElementById(e);if(i){var n=y.getInstance("Drawer",e);if(n){var r=function(){n.hide()};t.addEventListener("click",r),n.addEventListenerInstance(t,"click",r)}else console.error("Drawer with id ".concat(e," has not been initialized. Please initialize it using the data-drawer-target attribute."))}else console.error("Drawer with id ".concat(e," not found. Are you sure that the data-drawer-target attribute points to the correct drawer id"))}),document.querySelectorAll("[data-drawer-show]").forEach(function(t){var e=t.getAttribute("data-drawer-show"),i=document.getElementById(e);if(i){var n=y.getInstance("Drawer",e);if(n){var r=function(){n.show()};t.addEventListener("click",r),n.addEventListenerInstance(t,"click",r)}else console.error("Drawer with id ".concat(e," has not been initialized. Please initialize it using the data-drawer-target attribute."))}else console.error("Drawer with id ".concat(e," not found. Are you sure that the data-drawer-target attribute points to the correct drawer id?"))})}typeof window<"u"&&(window.Drawer=sr,window.initDrawers=Ri);var Oe=function(){return Oe=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++){e=arguments[i];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])}return t},Oe.apply(this,arguments)},ke={defaultTabId:null,activeClasses:"text-blue-600 hover:text-blue-600 dark:text-blue-500 dark:hover:text-blue-500 border-blue-600 dark:border-blue-500",inactiveClasses:"dark:border-transparent text-gray-500 hover:text-gray-600 dark:text-gray-400 border-gray-100 hover:border-gray-300 dark:border-gray-700 dark:hover:text-gray-300",onShow:function(){}},Ys={id:null,override:!0},ar=function(){function t(e,i,n,r){e===void 0&&(e=null),i===void 0&&(i=[]),n===void 0&&(n=ke),r===void 0&&(r=Ys),this._instanceId=r.id?r.id:e.id,this._tabsEl=e,this._items=i,this._activeTab=n?this.getTab(n.defaultTabId):null,this._options=Oe(Oe({},ke),n),this._initialized=!1,this.init(),y.addInstance("Tabs",this,this._tabsEl.id,!0),y.addInstance("Tabs",this,this._instanceId,r.override)}return t.prototype.init=function(){var e=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(),e.show(i.id)})}))},t.prototype.destroy=function(){this._initialized&&(this._initialized=!1)},t.prototype.removeInstance=function(){this.destroy(),y.removeInstance("Tabs",this._instanceId)},t.prototype.destroyAndRemoveInstance=function(){this.destroy(),this.removeInstance()},t.prototype.getActiveTab=function(){return this._activeTab},t.prototype.setActiveTab=function(e){this._activeTab=e},t.prototype.getTab=function(e){return this._items.filter(function(i){return i.id===e})[0]},t.prototype.show=function(e,i){var n,r,o=this;i===void 0&&(i=!1);var s=this.getTab(e);s===this._activeTab&&!i||(this._items.map(function(a){var c,u;a!==s&&((c=a.triggerEl.classList).remove.apply(c,o._options.activeClasses.split(" ")),(u=a.triggerEl.classList).add.apply(u,o._options.inactiveClasses.split(" ")),a.targetEl.classList.add("hidden"),a.triggerEl.setAttribute("aria-selected","false"))}),(n=s.triggerEl.classList).add.apply(n,this._options.activeClasses.split(" ")),(r=s.triggerEl.classList).remove.apply(r,this._options.inactiveClasses.split(" ")),s.triggerEl.setAttribute("aria-selected","true"),s.targetEl.classList.remove("hidden"),this.setActiveTab(s),this._options.onShow(this,s))},t.prototype.updateOnShow=function(e){this._options.onShow=e},t}();function zi(){document.querySelectorAll("[data-tabs-toggle]").forEach(function(t){var e=[],i=t.getAttribute("data-tabs-active-classes"),n=t.getAttribute("data-tabs-inactive-classes"),r=null;t.querySelectorAll('[role="tab"]').forEach(function(o){var s=o.getAttribute("aria-selected")==="true",a={id:o.getAttribute("data-tabs-target"),triggerEl:o,targetEl:document.querySelector(o.getAttribute("data-tabs-target"))};e.push(a),s&&(r=a.id)}),new ar(t,e,{defaultTabId:r,activeClasses:i||ke.activeClasses,inactiveClasses:n||ke.inactiveClasses})})}typeof window<"u"&&(window.Tabs=ar,window.initTabs=zi);var et=function(){return et=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++){e=arguments[i];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])}return t},et.apply(this,arguments)},le=function(t,e,i){if(i||arguments.length===2)for(var n=0,r=e.length,o;n<r;n++)(o||!(n in e))&&(o||(o=Array.prototype.slice.call(e,0,n)),o[n]=e[n]);return t.concat(o||Array.prototype.slice.call(e))},Se={placement:"top",triggerType:"hover",onShow:function(){},onHide:function(){},onToggle:function(){}},Xs={id:null,override:!0},cr=function(){function t(e,i,n,r){e===void 0&&(e=null),i===void 0&&(i=null),n===void 0&&(n=Se),r===void 0&&(r=Xs),this._instanceId=r.id?r.id:e.id,this._targetEl=e,this._triggerEl=i,this._options=et(et({},Se),n),this._popperInstance=null,this._visible=!1,this._initialized=!1,this.init(),y.addInstance("Tooltip",this,this._instanceId,r.override)}return t.prototype.init=function(){this._triggerEl&&this._targetEl&&!this._initialized&&(this._setupEventListeners(),this._popperInstance=this._createPopperInstance(),this._initialized=!0)},t.prototype.destroy=function(){var e=this;if(this._initialized){var i=this._getTriggerEvents();i.showEvents.forEach(function(n){e._triggerEl.removeEventListener(n,e._showHandler)}),i.hideEvents.forEach(function(n){e._triggerEl.removeEventListener(n,e._hideHandler)}),this._removeKeydownListener(),this._removeClickOutsideListener(),this._popperInstance&&this._popperInstance.destroy(),this._initialized=!1}},t.prototype.removeInstance=function(){y.removeInstance("Tooltip",this._instanceId)},t.prototype.destroyAndRemoveInstance=function(){this.destroy(),this.removeInstance()},t.prototype._setupEventListeners=function(){var e=this,i=this._getTriggerEvents();this._showHandler=function(){e.show()},this._hideHandler=function(){e.hide()},i.showEvents.forEach(function(n){e._triggerEl.addEventListener(n,e._showHandler)}),i.hideEvents.forEach(function(n){e._triggerEl.addEventListener(n,e._hideHandler)})},t.prototype._createPopperInstance=function(){return Hi(this._triggerEl,this._targetEl,{placement:this._options.placement,modifiers:[{name:"offset",options:{offset:[0,8]}}]})},t.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"]}}},t.prototype._setupKeydownListener=function(){var e=this;this._keydownEventListener=function(i){i.key==="Escape"&&e.hide()},document.body.addEventListener("keydown",this._keydownEventListener,!0)},t.prototype._removeKeydownListener=function(){document.body.removeEventListener("keydown",this._keydownEventListener,!0)},t.prototype._setupClickOutsideListener=function(){var e=this;this._clickOutsideEventListener=function(i){e._handleClickOutside(i,e._targetEl)},document.body.addEventListener("click",this._clickOutsideEventListener,!0)},t.prototype._removeClickOutsideListener=function(){document.body.removeEventListener("click",this._clickOutsideEventListener,!0)},t.prototype._handleClickOutside=function(e,i){var n=e.target;n!==i&&!i.contains(n)&&!this._triggerEl.contains(n)&&this.isVisible()&&this.hide()},t.prototype.isVisible=function(){return this._visible},t.prototype.toggle=function(){this.isVisible()?this.hide():this.show()},t.prototype.show=function(){this._targetEl.classList.remove("opacity-0","invisible"),this._targetEl.classList.add("opacity-100","visible"),this._popperInstance.setOptions(function(e){return et(et({},e),{modifiers:le(le([],e.modifiers,!0),[{name:"eventListeners",enabled:!0}],!1)})}),this._setupClickOutsideListener(),this._setupKeydownListener(),this._popperInstance.update(),this._visible=!0,this._options.onShow(this)},t.prototype.hide=function(){this._targetEl.classList.remove("opacity-100","visible"),this._targetEl.classList.add("opacity-0","invisible"),this._popperInstance.setOptions(function(e){return et(et({},e),{modifiers:le(le([],e.modifiers,!0),[{name:"eventListeners",enabled:!1}],!1)})}),this._removeClickOutsideListener(),this._removeKeydownListener(),this._visible=!1,this._options.onHide(this)},t.prototype.updateOnShow=function(e){this._options.onShow=e},t.prototype.updateOnHide=function(e){this._options.onHide=e},t.prototype.updateOnToggle=function(e){this._options.onToggle=e},t}();function Bi(){document.querySelectorAll("[data-tooltip-target]").forEach(function(t){var e=t.getAttribute("data-tooltip-target"),i=document.getElementById(e);if(i){var n=t.getAttribute("data-tooltip-trigger"),r=t.getAttribute("data-tooltip-placement");new cr(i,t,{placement:r||Se.placement,triggerType:n||Se.triggerType})}else console.error('The tooltip element with id "'.concat(e,'" does not exist. Please check the data-tooltip-target attribute.'))})}typeof window<"u"&&(window.Tooltip=cr,window.initTooltips=Bi);var it=function(){return it=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++){e=arguments[i];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])}return t},it.apply(this,arguments)},ue=function(t,e,i){if(i||arguments.length===2)for(var n=0,r=e.length,o;n<r;n++)(o||!(n in e))&&(o||(o=Array.prototype.slice.call(e,0,n)),o[n]=e[n]);return t.concat(o||Array.prototype.slice.call(e))},Vt={placement:"top",offset:10,triggerType:"hover",onShow:function(){},onHide:function(){},onToggle:function(){}},Js={id:null,override:!0},lr=function(){function t(e,i,n,r){e===void 0&&(e=null),i===void 0&&(i=null),n===void 0&&(n=Vt),r===void 0&&(r=Js),this._instanceId=r.id?r.id:e.id,this._targetEl=e,this._triggerEl=i,this._options=it(it({},Vt),n),this._popperInstance=null,this._visible=!1,this._initialized=!1,this.init(),y.addInstance("Popover",this,r.id?r.id:this._targetEl.id,r.override)}return t.prototype.init=function(){this._triggerEl&&this._targetEl&&!this._initialized&&(this._setupEventListeners(),this._popperInstance=this._createPopperInstance(),this._initialized=!0)},t.prototype.destroy=function(){var e=this;if(this._initialized){var i=this._getTriggerEvents();i.showEvents.forEach(function(n){e._triggerEl.removeEventListener(n,e._showHandler),e._targetEl.removeEventListener(n,e._showHandler)}),i.hideEvents.forEach(function(n){e._triggerEl.removeEventListener(n,e._hideHandler),e._targetEl.removeEventListener(n,e._hideHandler)}),this._removeKeydownListener(),this._removeClickOutsideListener(),this._popperInstance&&this._popperInstance.destroy(),this._initialized=!1}},t.prototype.removeInstance=function(){y.removeInstance("Popover",this._instanceId)},t.prototype.destroyAndRemoveInstance=function(){this.destroy(),this.removeInstance()},t.prototype._setupEventListeners=function(){var e=this,i=this._getTriggerEvents();this._showHandler=function(){e.show()},this._hideHandler=function(){setTimeout(function(){e._targetEl.matches(":hover")||e.hide()},100)},i.showEvents.forEach(function(n){e._triggerEl.addEventListener(n,e._showHandler),e._targetEl.addEventListener(n,e._showHandler)}),i.hideEvents.forEach(function(n){e._triggerEl.addEventListener(n,e._hideHandler),e._targetEl.addEventListener(n,e._hideHandler)})},t.prototype._createPopperInstance=function(){return Hi(this._triggerEl,this._targetEl,{placement:this._options.placement,modifiers:[{name:"offset",options:{offset:[0,this._options.offset]}}]})},t.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"]}}},t.prototype._setupKeydownListener=function(){var e=this;this._keydownEventListener=function(i){i.key==="Escape"&&e.hide()},document.body.addEventListener("keydown",this._keydownEventListener,!0)},t.prototype._removeKeydownListener=function(){document.body.removeEventListener("keydown",this._keydownEventListener,!0)},t.prototype._setupClickOutsideListener=function(){var e=this;this._clickOutsideEventListener=function(i){e._handleClickOutside(i,e._targetEl)},document.body.addEventListener("click",this._clickOutsideEventListener,!0)},t.prototype._removeClickOutsideListener=function(){document.body.removeEventListener("click",this._clickOutsideEventListener,!0)},t.prototype._handleClickOutside=function(e,i){var n=e.target;n!==i&&!i.contains(n)&&!this._triggerEl.contains(n)&&this.isVisible()&&this.hide()},t.prototype.isVisible=function(){return this._visible},t.prototype.toggle=function(){this.isVisible()?this.hide():this.show(),this._options.onToggle(this)},t.prototype.show=function(){this._targetEl.classList.remove("opacity-0","invisible"),this._targetEl.classList.add("opacity-100","visible"),this._popperInstance.setOptions(function(e){return it(it({},e),{modifiers:ue(ue([],e.modifiers,!0),[{name:"eventListeners",enabled:!0}],!1)})}),this._setupClickOutsideListener(),this._setupKeydownListener(),this._popperInstance.update(),this._visible=!0,this._options.onShow(this)},t.prototype.hide=function(){this._targetEl.classList.remove("opacity-100","visible"),this._targetEl.classList.add("opacity-0","invisible"),this._popperInstance.setOptions(function(e){return it(it({},e),{modifiers:ue(ue([],e.modifiers,!0),[{name:"eventListeners",enabled:!1}],!1)})}),this._removeClickOutsideListener(),this._removeKeydownListener(),this._visible=!1,this._options.onHide(this)},t.prototype.updateOnShow=function(e){this._options.onShow=e},t.prototype.updateOnHide=function(e){this._options.onHide=e},t.prototype.updateOnToggle=function(e){this._options.onToggle=e},t}();function $i(){document.querySelectorAll("[data-popover-target]").forEach(function(t){var e=t.getAttribute("data-popover-target"),i=document.getElementById(e);if(i){var n=t.getAttribute("data-popover-trigger"),r=t.getAttribute("data-popover-placement"),o=t.getAttribute("data-popover-offset");new lr(i,t,{placement:r||Vt.placement,offset:o?parseInt(o):Vt.offset,triggerType:n||Vt.triggerType})}else console.error('The popover element with id "'.concat(e,'" does not exist. Please check the data-popover-target attribute.'))})}typeof window<"u"&&(window.Popover=lr,window.initPopovers=$i);var Te=function(){return Te=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++){e=arguments[i];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])}return t},Te.apply(this,arguments)},oi={triggerType:"hover",onShow:function(){},onHide:function(){},onToggle:function(){}},Gs={id:null,override:!0},ur=function(){function t(e,i,n,r,o){e===void 0&&(e=null),i===void 0&&(i=null),n===void 0&&(n=null),r===void 0&&(r=oi),o===void 0&&(o=Gs),this._instanceId=o.id?o.id:n.id,this._parentEl=e,this._triggerEl=i,this._targetEl=n,this._options=Te(Te({},oi),r),this._visible=!1,this._initialized=!1,this.init(),y.addInstance("Dial",this,this._instanceId,o.override)}return t.prototype.init=function(){var e=this;if(this._triggerEl&&this._targetEl&&!this._initialized){var i=this._getTriggerEventTypes(this._options.triggerType);this._showEventHandler=function(){e.show()},i.showEvents.forEach(function(n){e._triggerEl.addEventListener(n,e._showEventHandler),e._targetEl.addEventListener(n,e._showEventHandler)}),this._hideEventHandler=function(){e._parentEl.matches(":hover")||e.hide()},i.hideEvents.forEach(function(n){e._parentEl.addEventListener(n,e._hideEventHandler)}),this._initialized=!0}},t.prototype.destroy=function(){var e=this;if(this._initialized){var i=this._getTriggerEventTypes(this._options.triggerType);i.showEvents.forEach(function(n){e._triggerEl.removeEventListener(n,e._showEventHandler),e._targetEl.removeEventListener(n,e._showEventHandler)}),i.hideEvents.forEach(function(n){e._parentEl.removeEventListener(n,e._hideEventHandler)}),this._initialized=!1}},t.prototype.removeInstance=function(){y.removeInstance("Dial",this._instanceId)},t.prototype.destroyAndRemoveInstance=function(){this.destroy(),this.removeInstance()},t.prototype.hide=function(){this._targetEl.classList.add("hidden"),this._triggerEl&&this._triggerEl.setAttribute("aria-expanded","false"),this._visible=!1,this._options.onHide(this)},t.prototype.show=function(){this._targetEl.classList.remove("hidden"),this._triggerEl&&this._triggerEl.setAttribute("aria-expanded","true"),this._visible=!0,this._options.onShow(this)},t.prototype.toggle=function(){this._visible?this.hide():this.show()},t.prototype.isHidden=function(){return!this._visible},t.prototype.isVisible=function(){return this._visible},t.prototype._getTriggerEventTypes=function(e){switch(e){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"]}}},t.prototype.updateOnShow=function(e){this._options.onShow=e},t.prototype.updateOnHide=function(e){this._options.onHide=e},t.prototype.updateOnToggle=function(e){this._options.onToggle=e},t}();function qi(){document.querySelectorAll("[data-dial-init]").forEach(function(t){var e=t.querySelector("[data-dial-toggle]");if(e){var i=e.getAttribute("data-dial-toggle"),n=document.getElementById(i);if(n){var r=e.getAttribute("data-dial-trigger");new ur(t,e,n,{triggerType:r||oi.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(t.id," does not have a trigger element. Are you sure that the data-dial-toggle attribute exists?"))})}typeof window<"u"&&(window.Dial=ur,window.initDials=qi);var Pe=function(){return Pe=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++){e=arguments[i];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])}return t},Pe.apply(this,arguments)},Tn={minValue:null,maxValue:null,onIncrement:function(){},onDecrement:function(){}},Zs={id:null,override:!0},dr=function(){function t(e,i,n,r,o){e===void 0&&(e=null),i===void 0&&(i=null),n===void 0&&(n=null),r===void 0&&(r=Tn),o===void 0&&(o=Zs),this._instanceId=o.id?o.id:e.id,this._targetEl=e,this._incrementEl=i,this._decrementEl=n,this._options=Pe(Pe({},Tn),r),this._initialized=!1,this.init(),y.addInstance("InputCounter",this,this._instanceId,o.override)}return t.prototype.init=function(){var e=this;this._targetEl&&!this._initialized&&(this._inputHandler=function(i){{var n=i.target;/^\d*$/.test(n.value)||(n.value=n.value.replace(/[^\d]/g,"")),e._options.maxValue!==null&&parseInt(n.value)>e._options.maxValue&&(n.value=e._options.maxValue.toString()),e._options.minValue!==null&&parseInt(n.value)<e._options.minValue&&(n.value=e._options.minValue.toString())}},this._incrementClickHandler=function(){e.increment()},this._decrementClickHandler=function(){e.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)},t.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)},t.prototype.removeInstance=function(){y.removeInstance("InputCounter",this._instanceId)},t.prototype.destroyAndRemoveInstance=function(){this.destroy(),this.removeInstance()},t.prototype.getCurrentValue=function(){return parseInt(this._targetEl.value)||0},t.prototype.increment=function(){this._options.maxValue!==null&&this.getCurrentValue()>=this._options.maxValue||(this._targetEl.value=(this.getCurrentValue()+1).toString(),this._options.onIncrement(this))},t.prototype.decrement=function(){this._options.minValue!==null&&this.getCurrentValue()<=this._options.minValue||(this._targetEl.value=(this.getCurrentValue()-1).toString(),this._options.onDecrement(this))},t.prototype.updateOnIncrement=function(e){this._options.onIncrement=e},t.prototype.updateOnDecrement=function(e){this._options.onDecrement=e},t}();function Ni(){document.querySelectorAll("[data-input-counter]").forEach(function(t){var e=t.id,i=document.querySelector('[data-input-counter-increment="'+e+'"]'),n=document.querySelector('[data-input-counter-decrement="'+e+'"]'),r=t.getAttribute("data-input-counter-min"),o=t.getAttribute("data-input-counter-max");t?y.instanceExists("InputCounter",t.getAttribute("id"))||new dr(t,i||null,n||null,{minValue:r?parseInt(r):null,maxValue:o?parseInt(o):null}):console.error('The target element with id "'.concat(e,'" does not exist. Please check the data-input-counter attribute.'))})}typeof window<"u"&&(window.InputCounter=dr,window.initInputCounters=Ni);var De=function(){return De=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++){e=arguments[i];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])}return t},De.apply(this,arguments)},He={htmlEntities:!1,contentType:"input",onCopy:function(){}},Qs={id:null,override:!0},fr=function(){function t(e,i,n,r){e===void 0&&(e=null),i===void 0&&(i=null),n===void 0&&(n=He),r===void 0&&(r=Qs),this._instanceId=r.id?r.id:i.id,this._triggerEl=e,this._targetEl=i,this._options=De(De({},He),n),this._initialized=!1,this.init(),y.addInstance("CopyClipboard",this,this._instanceId,r.override)}return t.prototype.init=function(){var e=this;this._targetEl&&this._triggerEl&&!this._initialized&&(this._triggerElClickHandler=function(){e.copy()},this._triggerEl&&this._triggerEl.addEventListener("click",this._triggerElClickHandler),this._initialized=!0)},t.prototype.destroy=function(){this._triggerEl&&this._targetEl&&this._initialized&&(this._triggerEl&&this._triggerEl.removeEventListener("click",this._triggerElClickHandler),this._initialized=!1)},t.prototype.removeInstance=function(){y.removeInstance("CopyClipboard",this._instanceId)},t.prototype.destroyAndRemoveInstance=function(){this.destroy(),this.removeInstance()},t.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()},t.prototype.copy=function(){var e=this.getTargetValue();this._options.htmlEntities&&(e=this.decodeHTML(e));var i=document.createElement("textarea");return i.value=e,document.body.appendChild(i),i.select(),document.execCommand("copy"),document.body.removeChild(i),this._options.onCopy(this),e},t.prototype.decodeHTML=function(e){var i=document.createElement("textarea");return i.innerHTML=e,i.textContent},t.prototype.updateOnCopyCallback=function(e){this._options.onCopy=e},t}();function Fi(){document.querySelectorAll("[data-copy-to-clipboard-target]").forEach(function(t){var e=t.getAttribute("data-copy-to-clipboard-target"),i=document.getElementById(e),n=t.getAttribute("data-copy-to-clipboard-content-type"),r=t.getAttribute("data-copy-to-clipboard-html-entities");i?y.instanceExists("CopyClipboard",i.getAttribute("id"))||new fr(t,i,{htmlEntities:r&&r==="true"?!0:He.htmlEntities,contentType:n||He.contentType}):console.error('The target element with id "'.concat(e,'" does not exist. Please check the data-copy-to-clipboard-target attribute.'))})}typeof window<"u"&&(window.CopyClipboard=fr,window.initClipboards=Fi);function ta(){xi(),Ai(),Ii(),Li(),Mi(),ji(),Ri(),zi(),Bi(),$i(),qi(),Ni(),Fi()}typeof window<"u"&&(window.initFlowbite=ta);var ea=new Ho("load",[xi,Ai,Ii,Li,Mi,ji,Ri,zi,Bi,$i,qi,Ni,Fi]);ea.init();var si=!1,ai=!1,mt=[],ci=-1;function ia(t){na(t)}function na(t){mt.includes(t)||mt.push(t),ra()}function pr(t){let e=mt.indexOf(t);e!==-1&&e>ci&&mt.splice(e,1)}function ra(){!ai&&!si&&(si=!0,queueMicrotask(oa))}function oa(){si=!1,ai=!0;for(let t=0;t<mt.length;t++)mt[t](),ci=t;mt.length=0,ci=-1,ai=!1}var Tt,xt,Pt,hr,li=!0;function sa(t){li=!1,t(),li=!0}function aa(t){Tt=t.reactive,Pt=t.release,xt=e=>t.effect(e,{scheduler:i=>{li?ia(i):i()}}),hr=t.raw}function Pn(t){xt=t}function ca(t){let e=()=>{};return[n=>{let r=xt(n);return t._x_effects||(t._x_effects=new Set,t._x_runEffects=()=>{t._x_effects.forEach(o=>o())}),t._x_effects.add(r),e=()=>{r!==void 0&&(t._x_effects.delete(r),Pt(r))},r},()=>{e()}]}function vr(t,e){let i=!0,n,r=xt(()=>{let o=t();JSON.stringify(o),i?n=o:queueMicrotask(()=>{e(o,n),n=o}),i=!1});return()=>Pt(r)}var _r=[],gr=[],mr=[];function la(t){mr.push(t)}function Vi(t,e){typeof e=="function"?(t._x_cleanups||(t._x_cleanups=[]),t._x_cleanups.push(e)):(e=t,gr.push(e))}function yr(t){_r.push(t)}function br(t,e,i){t._x_attributeCleanups||(t._x_attributeCleanups={}),t._x_attributeCleanups[e]||(t._x_attributeCleanups[e]=[]),t._x_attributeCleanups[e].push(i)}function wr(t,e){t._x_attributeCleanups&&Object.entries(t._x_attributeCleanups).forEach(([i,n])=>{(e===void 0||e.includes(i))&&(n.forEach(r=>r()),delete t._x_attributeCleanups[i])})}function ua(t){if(t._x_cleanups)for(;t._x_cleanups.length;)t._x_cleanups.pop()()}var Ki=new MutationObserver(Xi),Wi=!1;function Ui(){Ki.observe(document,{subtree:!0,childList:!0,attributes:!0,attributeOldValue:!0}),Wi=!0}function Er(){da(),Ki.disconnect(),Wi=!1}var Rt=[];function da(){let t=Ki.takeRecords();Rt.push(()=>t.length>0&&Xi(t));let e=Rt.length;queueMicrotask(()=>{if(Rt.length===e)for(;Rt.length>0;)Rt.shift()()})}function S(t){if(!Wi)return t();Er();let e=t();return Ui(),e}var Yi=!1,Me=[];function fa(){Yi=!0}function pa(){Yi=!1,Xi(Me),Me=[]}function Xi(t){if(Yi){Me=Me.concat(t);return}let e=new Set,i=new Set,n=new Map,r=new Map;for(let o=0;o<t.length;o++)if(!t[o].target._x_ignoreMutationObserver&&(t[o].type==="childList"&&(t[o].addedNodes.forEach(s=>s.nodeType===1&&e.add(s)),t[o].removedNodes.forEach(s=>s.nodeType===1&&i.add(s))),t[o].type==="attributes")){let s=t[o].target,a=t[o].attributeName,c=t[o].oldValue,u=()=>{n.has(s)||n.set(s,[]),n.get(s).push({name:a,value:s.getAttribute(a)})},l=()=>{r.has(s)||r.set(s,[]),r.get(s).push(a)};s.hasAttribute(a)&&c===null?u():s.hasAttribute(a)?(l(),u()):l()}r.forEach((o,s)=>{wr(s,o)}),n.forEach((o,s)=>{_r.forEach(a=>a(s,o))});for(let o of i)e.has(o)||gr.forEach(s=>s(o));e.forEach(o=>{o._x_ignoreSelf=!0,o._x_ignore=!0});for(let o of e)i.has(o)||o.isConnected&&(delete o._x_ignoreSelf,delete o._x_ignore,mr.forEach(s=>s(o)),o._x_ignore=!0,o._x_ignoreSelf=!0);e.forEach(o=>{delete o._x_ignoreSelf,delete o._x_ignore}),e=null,i=null,n=null,r=null}function xr(t){return Qt(kt(t))}function Zt(t,e,i){return t._x_dataStack=[e,...kt(i||t)],()=>{t._x_dataStack=t._x_dataStack.filter(n=>n!==e)}}function kt(t){return t._x_dataStack?t._x_dataStack:typeof ShadowRoot=="function"&&t instanceof ShadowRoot?kt(t.host):t.parentNode?kt(t.parentNode):[]}function Qt(t){return new Proxy({objects:t},ha)}var ha={ownKeys({objects:t}){return Array.from(new Set(t.flatMap(e=>Object.keys(e))))},has({objects:t},e){return e==Symbol.unscopables?!1:t.some(i=>Object.prototype.hasOwnProperty.call(i,e)||Reflect.has(i,e))},get({objects:t},e,i){return e=="toJSON"?va:Reflect.get(t.find(n=>Reflect.has(n,e))||{},e,i)},set({objects:t},e,i,n){const r=t.find(s=>Object.prototype.hasOwnProperty.call(s,e))||t[t.length-1],o=Object.getOwnPropertyDescriptor(r,e);return o!=null&&o.set&&(o!=null&&o.get)?Reflect.set(r,e,i,n):Reflect.set(r,e,i)}};function va(){return Reflect.ownKeys(this).reduce((e,i)=>(e[i]=Reflect.get(this,i),e),{})}function Ar(t){let e=n=>typeof n=="object"&&!Array.isArray(n)&&n!==null,i=(n,r="")=>{Object.entries(Object.getOwnPropertyDescriptors(n)).forEach(([o,{value:s,enumerable:a}])=>{if(a===!1||s===void 0||typeof s=="object"&&s!==null&&s.__v_skip)return;let c=r===""?o:`${r}.${o}`;typeof s=="object"&&s!==null&&s._x_interceptor?n[o]=s.initialize(t,c,o):e(s)&&s!==n&&!(s instanceof Element)&&i(s,c)})};return i(t)}function Ir(t,e=()=>{}){let i={initialValue:void 0,_x_interceptor:!0,initialize(n,r,o){return t(this.initialValue,()=>_a(n,r),s=>ui(n,r,s),r,o)}};return e(i),n=>{if(typeof n=="object"&&n!==null&&n._x_interceptor){let r=i.initialize.bind(i);i.initialize=(o,s,a)=>{let c=n.initialize(o,s,a);return i.initialValue=c,r(o,s,a)}}else i.initialValue=n;return i}}function _a(t,e){return e.split(".").reduce((i,n)=>i[n],t)}function ui(t,e,i){if(typeof e=="string"&&(e=e.split(".")),e.length===1)t[e[0]]=i;else{if(e.length===0)throw error;return t[e[0]]||(t[e[0]]={}),ui(t[e[0]],e.slice(1),i)}}var Lr={};function K(t,e){Lr[t]=e}function di(t,e){return Object.entries(Lr).forEach(([i,n])=>{let r=null;function o(){if(r)return r;{let[s,a]=Pr(e);return r={interceptor:Ir,...s},Vi(e,a),r}}Object.defineProperty(t,`$${i}`,{get(){return n(e,o())},enumerable:!1})}),t}function ga(t,e,i,...n){try{return i(...n)}catch(r){Xt(r,t,e)}}function Xt(t,e,i=void 0){t=Object.assign(t??{message:"No error message given."},{el:e,expression:i}),console.warn(`Alpine Expression Error: ${t.message}

${i?'Expression: "'+i+`"

`:""}`,e),setTimeout(()=>{throw t},0)}var me=!0;function Cr(t){let e=me;me=!1;let i=t();return me=e,i}function yt(t,e,i={}){let n;return D(t,e)(r=>n=r,i),n}function D(...t){return Or(...t)}var Or=kr;function ma(t){Or=t}function kr(t,e){let i={};di(i,t);let n=[i,...kt(t)],r=typeof e=="function"?ya(n,e):wa(n,e,t);return ga.bind(null,t,e,r)}function ya(t,e){return(i=()=>{},{scope:n={},params:r=[]}={})=>{let o=e.apply(Qt([n,...t]),r);je(i,o)}}var Ge={};function ba(t,e){if(Ge[t])return Ge[t];let i=Object.getPrototypeOf(async function(){}).constructor,n=/^[\n\s]*if.*\(.*\)/.test(t.trim())||/^(let|const)\s/.test(t.trim())?`(async()=>{ ${t} })()`:t,o=(()=>{try{let s=new i(["__self","scope"],`with (scope) { __self.result = ${n} }; __self.finished = true; return __self.result;`);return Object.defineProperty(s,"name",{value:`[Alpine] ${t}`}),s}catch(s){return Xt(s,e,t),Promise.resolve()}})();return Ge[t]=o,o}function wa(t,e,i){let n=ba(e,i);return(r=()=>{},{scope:o={},params:s=[]}={})=>{n.result=void 0,n.finished=!1;let a=Qt([o,...t]);if(typeof n=="function"){let c=n(n,a).catch(u=>Xt(u,i,e));n.finished?(je(r,n.result,a,s,i),n.result=void 0):c.then(u=>{je(r,u,a,s,i)}).catch(u=>Xt(u,i,e)).finally(()=>n.result=void 0)}}}function je(t,e,i,n,r){if(me&&typeof e=="function"){let o=e.apply(i,n);o instanceof Promise?o.then(s=>je(t,s,i,n)).catch(s=>Xt(s,r,e)):t(o)}else typeof e=="object"&&e instanceof Promise?e.then(o=>t(o)):t(e)}var Ji="x-";function Dt(t=""){return Ji+t}function Ea(t){Ji=t}var Re={};function O(t,e){return Re[t]=e,{before(i){if(!Re[i]){console.warn(String.raw`Cannot find directive \`${i}\`. \`${t}\` will use the default order of execution`);return}const n=_t.indexOf(i);_t.splice(n>=0?n:_t.indexOf("DEFAULT"),0,t)}}}function xa(t){return Object.keys(Re).includes(t)}function Gi(t,e,i){if(e=Array.from(e),t._x_virtualDirectives){let o=Object.entries(t._x_virtualDirectives).map(([a,c])=>({name:a,value:c})),s=Sr(o);o=o.map(a=>s.find(c=>c.name===a.name)?{name:`x-bind:${a.name}`,value:`"${a.value}"`}:a),e=e.concat(o)}let n={};return e.map(Mr((o,s)=>n[o]=s)).filter(Rr).map(La(n,i)).sort(Ca).map(o=>Ia(t,o))}function Sr(t){return Array.from(t).map(Mr()).filter(e=>!Rr(e))}var fi=!1,qt=new Map,Tr=Symbol();function Aa(t){fi=!0;let e=Symbol();Tr=e,qt.set(e,[]);let i=()=>{for(;qt.get(e).length;)qt.get(e).shift()();qt.delete(e)},n=()=>{fi=!1,i()};t(i),n()}function Pr(t){let e=[],i=a=>e.push(a),[n,r]=ca(t);return e.push(r),[{Alpine:ee,effect:n,cleanup:i,evaluateLater:D.bind(D,t),evaluate:yt.bind(yt,t)},()=>e.forEach(a=>a())]}function Ia(t,e){let i=()=>{},n=Re[e.type]||i,[r,o]=Pr(t);br(t,e.original,o);let s=()=>{t._x_ignore||t._x_ignoreSelf||(n.inline&&n.inline(t,e,r),n=n.bind(n,t,e,r),fi?qt.get(Tr).push(n):n())};return s.runCleanups=o,s}var Dr=(t,e)=>({name:i,value:n})=>(i.startsWith(t)&&(i=i.replace(t,e)),{name:i,value:n}),Hr=t=>t;function Mr(t=()=>{}){return({name:e,value:i})=>{let{name:n,value:r}=jr.reduce((o,s)=>s(o),{name:e,value:i});return n!==e&&t(n,e),{name:n,value:r}}}var jr=[];function Zi(t){jr.push(t)}function Rr({name:t}){return zr().test(t)}var zr=()=>new RegExp(`^${Ji}([^:^.]+)\\b`);function La(t,e){return({name:i,value:n})=>{let r=i.match(zr()),o=i.match(/:([a-zA-Z0-9\-_:]+)/),s=i.match(/\.[^.\]]+(?=[^\]]*$)/g)||[],a=e||t[i]||i;return{type:r?r[1]:null,value:o?o[1]:null,modifiers:s.map(c=>c.replace(".","")),expression:n,original:a}}}var pi="DEFAULT",_t=["ignore","ref","data","id","anchor","bind","init","for","model","modelable","transition","show","if",pi,"teleport"];function Ca(t,e){let i=_t.indexOf(t.type)===-1?pi:t.type,n=_t.indexOf(e.type)===-1?pi:e.type;return _t.indexOf(i)-_t.indexOf(n)}function Kt(t,e,i={}){t.dispatchEvent(new CustomEvent(e,{detail:i,bubbles:!0,composed:!0,cancelable:!0}))}function nt(t,e){if(typeof ShadowRoot=="function"&&t instanceof ShadowRoot){Array.from(t.children).forEach(r=>nt(r,e));return}let i=!1;if(e(t,()=>i=!0),i)return;let n=t.firstElementChild;for(;n;)nt(n,e),n=n.nextElementSibling}function z(t,...e){console.warn(`Alpine Warning: ${t}`,...e)}var Dn=!1;function Oa(){Dn&&z("Alpine has already been initialized on this page. Calling Alpine.start() more than once can cause problems."),Dn=!0,document.body||z("Unable to initialize. Trying to load Alpine before `<body>` is available. Did you forget to add `defer` in Alpine's `<script>` tag?"),Kt(document,"alpine:init"),Kt(document,"alpine:initializing"),Ui(),la(e=>J(e,nt)),Vi(e=>Kr(e)),yr((e,i)=>{Gi(e,i).forEach(n=>n())});let t=e=>!$e(e.parentElement,!0);Array.from(document.querySelectorAll(qr().join(","))).filter(t).forEach(e=>{J(e)}),Kt(document,"alpine:initialized"),setTimeout(()=>{Ta()})}var Qi=[],Br=[];function $r(){return Qi.map(t=>t())}function qr(){return Qi.concat(Br).map(t=>t())}function Nr(t){Qi.push(t)}function Fr(t){Br.push(t)}function $e(t,e=!1){return te(t,i=>{if((e?qr():$r()).some(r=>i.matches(r)))return!0})}function te(t,e){if(t){if(e(t))return t;if(t._x_teleportBack&&(t=t._x_teleportBack),!!t.parentElement)return te(t.parentElement,e)}}function ka(t){return $r().some(e=>t.matches(e))}var Vr=[];function Sa(t){Vr.push(t)}function J(t,e=nt,i=()=>{}){Aa(()=>{e(t,(n,r)=>{i(n,r),Vr.forEach(o=>o(n,r)),Gi(n,n.attributes).forEach(o=>o()),n._x_ignore&&r()})})}function Kr(t,e=nt){e(t,i=>{wr(i),ua(i)})}function Ta(){[["ui","dialog",["[x-dialog], [x-popover]"]],["anchor","anchor",["[x-anchor]"]],["sort","sort",["[x-sort]"]]].forEach(([e,i,n])=>{xa(i)||n.some(r=>{if(document.querySelector(r))return z(`found "${r}", but missing ${e} plugin`),!0})})}var hi=[],tn=!1;function en(t=()=>{}){return queueMicrotask(()=>{tn||setTimeout(()=>{vi()})}),new Promise(e=>{hi.push(()=>{t(),e()})})}function vi(){for(tn=!1;hi.length;)hi.shift()()}function Pa(){tn=!0}function nn(t,e){return Array.isArray(e)?Hn(t,e.join(" ")):typeof e=="object"&&e!==null?Da(t,e):typeof e=="function"?nn(t,e()):Hn(t,e)}function Hn(t,e){let i=r=>r.split(" ").filter(o=>!t.classList.contains(o)).filter(Boolean),n=r=>(t.classList.add(...r),()=>{t.classList.remove(...r)});return e=e===!0?e="":e||"",n(i(e))}function Da(t,e){let i=a=>a.split(" ").filter(Boolean),n=Object.entries(e).flatMap(([a,c])=>c?i(a):!1).filter(Boolean),r=Object.entries(e).flatMap(([a,c])=>c?!1:i(a)).filter(Boolean),o=[],s=[];return r.forEach(a=>{t.classList.contains(a)&&(t.classList.remove(a),s.push(a))}),n.forEach(a=>{t.classList.contains(a)||(t.classList.add(a),o.push(a))}),()=>{s.forEach(a=>t.classList.add(a)),o.forEach(a=>t.classList.remove(a))}}function qe(t,e){return typeof e=="object"&&e!==null?Ha(t,e):Ma(t,e)}function Ha(t,e){let i={};return Object.entries(e).forEach(([n,r])=>{i[n]=t.style[n],n.startsWith("--")||(n=ja(n)),t.style.setProperty(n,r)}),setTimeout(()=>{t.style.length===0&&t.removeAttribute("style")}),()=>{qe(t,i)}}function Ma(t,e){let i=t.getAttribute("style",e);return t.setAttribute("style",e),()=>{t.setAttribute("style",i||"")}}function ja(t){return t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function _i(t,e=()=>{}){let i=!1;return function(){i?e.apply(this,arguments):(i=!0,t.apply(this,arguments))}}O("transition",(t,{value:e,modifiers:i,expression:n},{evaluate:r})=>{typeof n=="function"&&(n=r(n)),n!==!1&&(!n||typeof n=="boolean"?za(t,i,e):Ra(t,n,e))});function Ra(t,e,i){Wr(t,nn,""),{enter:r=>{t._x_transition.enter.during=r},"enter-start":r=>{t._x_transition.enter.start=r},"enter-end":r=>{t._x_transition.enter.end=r},leave:r=>{t._x_transition.leave.during=r},"leave-start":r=>{t._x_transition.leave.start=r},"leave-end":r=>{t._x_transition.leave.end=r}}[i](e)}function za(t,e,i){Wr(t,qe);let n=!e.includes("in")&&!e.includes("out")&&!i,r=n||e.includes("in")||["enter"].includes(i),o=n||e.includes("out")||["leave"].includes(i);e.includes("in")&&!n&&(e=e.filter((v,g)=>g<e.indexOf("out"))),e.includes("out")&&!n&&(e=e.filter((v,g)=>g>e.indexOf("out")));let s=!e.includes("opacity")&&!e.includes("scale"),a=s||e.includes("opacity"),c=s||e.includes("scale"),u=a?0:1,l=c?zt(e,"scale",95)/100:1,f=zt(e,"delay",0)/1e3,p=zt(e,"origin","center"),h="opacity, transform",x=zt(e,"duration",150)/1e3,b=zt(e,"duration",75)/1e3,d="cubic-bezier(0.4, 0.0, 0.2, 1)";r&&(t._x_transition.enter.during={transformOrigin:p,transitionDelay:`${f}s`,transitionProperty:h,transitionDuration:`${x}s`,transitionTimingFunction:d},t._x_transition.enter.start={opacity:u,transform:`scale(${l})`},t._x_transition.enter.end={opacity:1,transform:"scale(1)"}),o&&(t._x_transition.leave.during={transformOrigin:p,transitionDelay:`${f}s`,transitionProperty:h,transitionDuration:`${b}s`,transitionTimingFunction:d},t._x_transition.leave.start={opacity:1,transform:"scale(1)"},t._x_transition.leave.end={opacity:u,transform:`scale(${l})`})}function Wr(t,e,i={}){t._x_transition||(t._x_transition={enter:{during:i,start:i,end:i},leave:{during:i,start:i,end:i},in(n=()=>{},r=()=>{}){gi(t,e,{during:this.enter.during,start:this.enter.start,end:this.enter.end},n,r)},out(n=()=>{},r=()=>{}){gi(t,e,{during:this.leave.during,start:this.leave.start,end:this.leave.end},n,r)}})}window.Element.prototype._x_toggleAndCascadeWithTransitions=function(t,e,i,n){const r=document.visibilityState==="visible"?requestAnimationFrame:setTimeout;let o=()=>r(i);if(e){t._x_transition&&(t._x_transition.enter||t._x_transition.leave)?t._x_transition.enter&&(Object.entries(t._x_transition.enter.during).length||Object.entries(t._x_transition.enter.start).length||Object.entries(t._x_transition.enter.end).length)?t._x_transition.in(i):o():t._x_transition?t._x_transition.in(i):o();return}t._x_hidePromise=t._x_transition?new Promise((s,a)=>{t._x_transition.out(()=>{},()=>s(n)),t._x_transitioning&&t._x_transitioning.beforeCancel(()=>a({isFromCancelledTransition:!0}))}):Promise.resolve(n),queueMicrotask(()=>{let s=Ur(t);s?(s._x_hideChildren||(s._x_hideChildren=[]),s._x_hideChildren.push(t)):r(()=>{let a=c=>{let u=Promise.all([c._x_hidePromise,...(c._x_hideChildren||[]).map(a)]).then(([l])=>l==null?void 0:l());return delete c._x_hidePromise,delete c._x_hideChildren,u};a(t).catch(c=>{if(!c.isFromCancelledTransition)throw c})})})};function Ur(t){let e=t.parentNode;if(e)return e._x_hidePromise?e:Ur(e)}function gi(t,e,{during:i,start:n,end:r}={},o=()=>{},s=()=>{}){if(t._x_transitioning&&t._x_transitioning.cancel(),Object.keys(i).length===0&&Object.keys(n).length===0&&Object.keys(r).length===0){o(),s();return}let a,c,u;Ba(t,{start(){a=e(t,n)},during(){c=e(t,i)},before:o,end(){a(),u=e(t,r)},after:s,cleanup(){c(),u()}})}function Ba(t,e){let i,n,r,o=_i(()=>{S(()=>{i=!0,n||e.before(),r||(e.end(),vi()),e.after(),t.isConnected&&e.cleanup(),delete t._x_transitioning})});t._x_transitioning={beforeCancels:[],beforeCancel(s){this.beforeCancels.push(s)},cancel:_i(function(){for(;this.beforeCancels.length;)this.beforeCancels.shift()();o()}),finish:o},S(()=>{e.start(),e.during()}),Pa(),requestAnimationFrame(()=>{if(i)return;let s=Number(getComputedStyle(t).transitionDuration.replace(/,.*/,"").replace("s",""))*1e3,a=Number(getComputedStyle(t).transitionDelay.replace(/,.*/,"").replace("s",""))*1e3;s===0&&(s=Number(getComputedStyle(t).animationDuration.replace("s",""))*1e3),S(()=>{e.before()}),n=!0,requestAnimationFrame(()=>{i||(S(()=>{e.end()}),vi(),setTimeout(t._x_transitioning.finish,s+a),r=!0)})})}function zt(t,e,i){if(t.indexOf(e)===-1)return i;const n=t[t.indexOf(e)+1];if(!n||e==="scale"&&isNaN(n))return i;if(e==="duration"||e==="delay"){let r=n.match(/([0-9]+)ms/);if(r)return r[1]}return e==="origin"&&["top","right","left","center","bottom"].includes(t[t.indexOf(e)+2])?[n,t[t.indexOf(e)+2]].join(" "):n}var rt=!1;function at(t,e=()=>{}){return(...i)=>rt?e(...i):t(...i)}function $a(t){return(...e)=>rt&&t(...e)}var Yr=[];function Ne(t){Yr.push(t)}function qa(t,e){Yr.forEach(i=>i(t,e)),rt=!0,Xr(()=>{J(e,(i,n)=>{n(i,()=>{})})}),rt=!1}var mi=!1;function Na(t,e){e._x_dataStack||(e._x_dataStack=t._x_dataStack),rt=!0,mi=!0,Xr(()=>{Fa(e)}),rt=!1,mi=!1}function Fa(t){let e=!1;J(t,(n,r)=>{nt(n,(o,s)=>{if(e&&ka(o))return s();e=!0,r(o,s)})})}function Xr(t){let e=xt;Pn((i,n)=>{let r=e(i);return Pt(r),()=>{}}),t(),Pn(e)}function Jr(t,e,i,n=[]){switch(t._x_bindings||(t._x_bindings=Tt({})),t._x_bindings[e]=i,e=n.includes("camel")?Ga(e):e,e){case"value":Va(t,i);break;case"style":Wa(t,i);break;case"class":Ka(t,i);break;case"selected":case"checked":Ua(t,e,i);break;default:Gr(t,e,i);break}}function Va(t,e){if(t.type==="radio")t.attributes.value===void 0&&(t.value=e),window.fromModel&&(typeof e=="boolean"?t.checked=ye(t.value)===e:t.checked=Mn(t.value,e));else if(t.type==="checkbox")Number.isInteger(e)?t.value=e:!Array.isArray(e)&&typeof e!="boolean"&&![null,void 0].includes(e)?t.value=String(e):Array.isArray(e)?t.checked=e.some(i=>Mn(i,t.value)):t.checked=!!e;else if(t.tagName==="SELECT")Ja(t,e);else{if(t.value===e)return;t.value=e===void 0?"":e}}function Ka(t,e){t._x_undoAddedClasses&&t._x_undoAddedClasses(),t._x_undoAddedClasses=nn(t,e)}function Wa(t,e){t._x_undoAddedStyles&&t._x_undoAddedStyles(),t._x_undoAddedStyles=qe(t,e)}function Ua(t,e,i){Gr(t,e,i),Xa(t,e,i)}function Gr(t,e,i){[null,void 0,!1].includes(i)&&Za(e)?t.removeAttribute(e):(Zr(e)&&(i=e),Ya(t,e,i))}function Ya(t,e,i){t.getAttribute(e)!=i&&t.setAttribute(e,i)}function Xa(t,e,i){t[e]!==i&&(t[e]=i)}function Ja(t,e){const i=[].concat(e).map(n=>n+"");Array.from(t.options).forEach(n=>{n.selected=i.includes(n.value)})}function Ga(t){return t.toLowerCase().replace(/-(\w)/g,(e,i)=>i.toUpperCase())}function Mn(t,e){return t==e}function ye(t){return[1,"1","true","on","yes",!0].includes(t)?!0:[0,"0","false","off","no",!1].includes(t)?!1:t?!!t:null}function Zr(t){return["disabled","checked","required","readonly","open","selected","autofocus","itemscope","multiple","novalidate","allowfullscreen","allowpaymentrequest","formnovalidate","autoplay","controls","loop","muted","playsinline","default","ismap","reversed","async","defer","nomodule"].includes(t)}function Za(t){return!["aria-pressed","aria-checked","aria-expanded","aria-selected"].includes(t)}function Qa(t,e,i){return t._x_bindings&&t._x_bindings[e]!==void 0?t._x_bindings[e]:Qr(t,e,i)}function tc(t,e,i,n=!0){if(t._x_bindings&&t._x_bindings[e]!==void 0)return t._x_bindings[e];if(t._x_inlineBindings&&t._x_inlineBindings[e]!==void 0){let r=t._x_inlineBindings[e];return r.extract=n,Cr(()=>yt(t,r.expression))}return Qr(t,e,i)}function Qr(t,e,i){let n=t.getAttribute(e);return n===null?typeof i=="function"?i():i:n===""?!0:Zr(e)?!![e,"true"].includes(n):n}function to(t,e){var i;return function(){var n=this,r=arguments,o=function(){i=null,t.apply(n,r)};clearTimeout(i),i=setTimeout(o,e)}}function eo(t,e){let i;return function(){let n=this,r=arguments;i||(t.apply(n,r),i=!0,setTimeout(()=>i=!1,e))}}function io({get:t,set:e},{get:i,set:n}){let r=!0,o,s=xt(()=>{let a=t(),c=i();if(r)n(Ze(a)),r=!1;else{let u=JSON.stringify(a),l=JSON.stringify(c);u!==o?n(Ze(a)):u!==l&&e(Ze(c))}o=JSON.stringify(t()),JSON.stringify(i())});return()=>{Pt(s)}}function Ze(t){return typeof t=="object"?JSON.parse(JSON.stringify(t)):t}function ec(t){(Array.isArray(t)?t:[t]).forEach(i=>i(ee))}var pt={},jn=!1;function ic(t,e){if(jn||(pt=Tt(pt),jn=!0),e===void 0)return pt[t];pt[t]=e,typeof e=="object"&&e!==null&&e.hasOwnProperty("init")&&typeof e.init=="function"&&pt[t].init(),Ar(pt[t])}function nc(){return pt}var no={};function rc(t,e){let i=typeof e!="function"?()=>e:e;return t instanceof Element?ro(t,i()):(no[t]=i,()=>{})}function oc(t){return Object.entries(no).forEach(([e,i])=>{Object.defineProperty(t,e,{get(){return(...n)=>i(...n)}})}),t}function ro(t,e,i){let n=[];for(;n.length;)n.pop()();let r=Object.entries(e).map(([s,a])=>({name:s,value:a})),o=Sr(r);return r=r.map(s=>o.find(a=>a.name===s.name)?{name:`x-bind:${s.name}`,value:`"${s.value}"`}:s),Gi(t,r,i).map(s=>{n.push(s.runCleanups),s()}),()=>{for(;n.length;)n.pop()()}}var oo={};function sc(t,e){oo[t]=e}function ac(t,e){return Object.entries(oo).forEach(([i,n])=>{Object.defineProperty(t,i,{get(){return(...r)=>n.bind(e)(...r)},enumerable:!1})}),t}var cc={get reactive(){return Tt},get release(){return Pt},get effect(){return xt},get raw(){return hr},version:"3.14.0",flushAndStopDeferringMutations:pa,dontAutoEvaluateFunctions:Cr,disableEffectScheduling:sa,startObservingMutations:Ui,stopObservingMutations:Er,setReactivityEngine:aa,onAttributeRemoved:br,onAttributesAdded:yr,closestDataStack:kt,skipDuringClone:at,onlyDuringClone:$a,addRootSelector:Nr,addInitSelector:Fr,interceptClone:Ne,addScopeToNode:Zt,deferMutations:fa,mapAttributes:Zi,evaluateLater:D,interceptInit:Sa,setEvaluator:ma,mergeProxies:Qt,extractProp:tc,findClosest:te,onElRemoved:Vi,closestRoot:$e,destroyTree:Kr,interceptor:Ir,transition:gi,setStyles:qe,mutateDom:S,directive:O,entangle:io,throttle:eo,debounce:to,evaluate:yt,initTree:J,nextTick:en,prefixed:Dt,prefix:Ea,plugin:ec,magic:K,store:ic,start:Oa,clone:Na,cloneNode:qa,bound:Qa,$data:xr,watch:vr,walk:nt,data:sc,bind:rc},ee=cc;function lc(t,e){const i=Object.create(null),n=t.split(",");for(let r=0;r<n.length;r++)i[n[r]]=!0;return r=>!!i[r]}var uc=Object.freeze({}),dc=Object.prototype.hasOwnProperty,Fe=(t,e)=>dc.call(t,e),bt=Array.isArray,Wt=t=>so(t)==="[object Map]",fc=t=>typeof t=="string",rn=t=>typeof t=="symbol",Ve=t=>t!==null&&typeof t=="object",pc=Object.prototype.toString,so=t=>pc.call(t),ao=t=>so(t).slice(8,-1),on=t=>fc(t)&&t!=="NaN"&&t[0]!=="-"&&""+parseInt(t,10)===t,hc=t=>{const e=Object.create(null);return i=>e[i]||(e[i]=t(i))},vc=hc(t=>t.charAt(0).toUpperCase()+t.slice(1)),co=(t,e)=>t!==e&&(t===t||e===e),yi=new WeakMap,Bt=[],W,wt=Symbol("iterate"),bi=Symbol("Map key iterate");function _c(t){return t&&t._isEffect===!0}function gc(t,e=uc){_c(t)&&(t=t.raw);const i=bc(t,e);return e.lazy||i(),i}function mc(t){t.active&&(lo(t),t.options.onStop&&t.options.onStop(),t.active=!1)}var yc=0;function bc(t,e){const i=function(){if(!i.active)return t();if(!Bt.includes(i)){lo(i);try{return Ec(),Bt.push(i),W=i,t()}finally{Bt.pop(),uo(),W=Bt[Bt.length-1]}}};return i.id=yc++,i.allowRecurse=!!e.allowRecurse,i._isEffect=!0,i.active=!0,i.raw=t,i.deps=[],i.options=e,i}function lo(t){const{deps:e}=t;if(e.length){for(let i=0;i<e.length;i++)e[i].delete(t);e.length=0}}var St=!0,sn=[];function wc(){sn.push(St),St=!1}function Ec(){sn.push(St),St=!0}function uo(){const t=sn.pop();St=t===void 0?!0:t}function V(t,e,i){if(!St||W===void 0)return;let n=yi.get(t);n||yi.set(t,n=new Map);let r=n.get(i);r||n.set(i,r=new Set),r.has(W)||(r.add(W),W.deps.push(r),W.options.onTrack&&W.options.onTrack({effect:W,target:t,type:e,key:i}))}function ot(t,e,i,n,r,o){const s=yi.get(t);if(!s)return;const a=new Set,c=l=>{l&&l.forEach(f=>{(f!==W||f.allowRecurse)&&a.add(f)})};if(e==="clear")s.forEach(c);else if(i==="length"&&bt(t))s.forEach((l,f)=>{(f==="length"||f>=n)&&c(l)});else switch(i!==void 0&&c(s.get(i)),e){case"add":bt(t)?on(i)&&c(s.get("length")):(c(s.get(wt)),Wt(t)&&c(s.get(bi)));break;case"delete":bt(t)||(c(s.get(wt)),Wt(t)&&c(s.get(bi)));break;case"set":Wt(t)&&c(s.get(wt));break}const u=l=>{l.options.onTrigger&&l.options.onTrigger({effect:l,target:t,key:i,type:e,newValue:n,oldValue:r,oldTarget:o}),l.options.scheduler?l.options.scheduler(l):l()};a.forEach(u)}var xc=lc("__proto__,__v_isRef,__isVue"),fo=new Set(Object.getOwnPropertyNames(Symbol).map(t=>Symbol[t]).filter(rn)),Ac=po(),Ic=po(!0),Rn=Lc();function Lc(){const t={};return["includes","indexOf","lastIndexOf"].forEach(e=>{t[e]=function(...i){const n=I(this);for(let o=0,s=this.length;o<s;o++)V(n,"get",o+"");const r=n[e](...i);return r===-1||r===!1?n[e](...i.map(I)):r}}),["push","pop","shift","unshift","splice"].forEach(e=>{t[e]=function(...i){wc();const n=I(this)[e].apply(this,i);return uo(),n}}),t}function po(t=!1,e=!1){return function(n,r,o){if(r==="__v_isReactive")return!t;if(r==="__v_isReadonly")return t;if(r==="__v_raw"&&o===(t?e?$c:go:e?Bc:_o).get(n))return n;const s=bt(n);if(!t&&s&&Fe(Rn,r))return Reflect.get(Rn,r,o);const a=Reflect.get(n,r,o);return(rn(r)?fo.has(r):xc(r))||(t||V(n,"get",r),e)?a:wi(a)?!s||!on(r)?a.value:a:Ve(a)?t?mo(a):un(a):a}}var Cc=Oc();function Oc(t=!1){return function(i,n,r,o){let s=i[n];if(!t&&(r=I(r),s=I(s),!bt(i)&&wi(s)&&!wi(r)))return s.value=r,!0;const a=bt(i)&&on(n)?Number(n)<i.length:Fe(i,n),c=Reflect.set(i,n,r,o);return i===I(o)&&(a?co(r,s)&&ot(i,"set",n,r,s):ot(i,"add",n,r)),c}}function kc(t,e){const i=Fe(t,e),n=t[e],r=Reflect.deleteProperty(t,e);return r&&i&&ot(t,"delete",e,void 0,n),r}function Sc(t,e){const i=Reflect.has(t,e);return(!rn(e)||!fo.has(e))&&V(t,"has",e),i}function Tc(t){return V(t,"iterate",bt(t)?"length":wt),Reflect.ownKeys(t)}var Pc={get:Ac,set:Cc,deleteProperty:kc,has:Sc,ownKeys:Tc},Dc={get:Ic,set(t,e){return console.warn(`Set operation on key "${String(e)}" failed: target is readonly.`,t),!0},deleteProperty(t,e){return console.warn(`Delete operation on key "${String(e)}" failed: target is readonly.`,t),!0}},an=t=>Ve(t)?un(t):t,cn=t=>Ve(t)?mo(t):t,ln=t=>t,Ke=t=>Reflect.getPrototypeOf(t);function de(t,e,i=!1,n=!1){t=t.__v_raw;const r=I(t),o=I(e);e!==o&&!i&&V(r,"get",e),!i&&V(r,"get",o);const{has:s}=Ke(r),a=n?ln:i?cn:an;if(s.call(r,e))return a(t.get(e));if(s.call(r,o))return a(t.get(o));t!==r&&t.get(e)}function fe(t,e=!1){const i=this.__v_raw,n=I(i),r=I(t);return t!==r&&!e&&V(n,"has",t),!e&&V(n,"has",r),t===r?i.has(t):i.has(t)||i.has(r)}function pe(t,e=!1){return t=t.__v_raw,!e&&V(I(t),"iterate",wt),Reflect.get(t,"size",t)}function zn(t){t=I(t);const e=I(this);return Ke(e).has.call(e,t)||(e.add(t),ot(e,"add",t,t)),this}function Bn(t,e){e=I(e);const i=I(this),{has:n,get:r}=Ke(i);let o=n.call(i,t);o?vo(i,n,t):(t=I(t),o=n.call(i,t));const s=r.call(i,t);return i.set(t,e),o?co(e,s)&&ot(i,"set",t,e,s):ot(i,"add",t,e),this}function $n(t){const e=I(this),{has:i,get:n}=Ke(e);let r=i.call(e,t);r?vo(e,i,t):(t=I(t),r=i.call(e,t));const o=n?n.call(e,t):void 0,s=e.delete(t);return r&&ot(e,"delete",t,void 0,o),s}function qn(){const t=I(this),e=t.size!==0,i=Wt(t)?new Map(t):new Set(t),n=t.clear();return e&&ot(t,"clear",void 0,void 0,i),n}function he(t,e){return function(n,r){const o=this,s=o.__v_raw,a=I(s),c=e?ln:t?cn:an;return!t&&V(a,"iterate",wt),s.forEach((u,l)=>n.call(r,c(u),c(l),o))}}function ve(t,e,i){return function(...n){const r=this.__v_raw,o=I(r),s=Wt(o),a=t==="entries"||t===Symbol.iterator&&s,c=t==="keys"&&s,u=r[t](...n),l=i?ln:e?cn:an;return!e&&V(o,"iterate",c?bi:wt),{next(){const{value:f,done:p}=u.next();return p?{value:f,done:p}:{value:a?[l(f[0]),l(f[1])]:l(f),done:p}},[Symbol.iterator](){return this}}}}function Z(t){return function(...e){{const i=e[0]?`on key "${e[0]}" `:"";console.warn(`${vc(t)} operation ${i}failed: target is readonly.`,I(this))}return t==="delete"?!1:this}}function Hc(){const t={get(o){return de(this,o)},get size(){return pe(this)},has:fe,add:zn,set:Bn,delete:$n,clear:qn,forEach:he(!1,!1)},e={get(o){return de(this,o,!1,!0)},get size(){return pe(this)},has:fe,add:zn,set:Bn,delete:$n,clear:qn,forEach:he(!1,!0)},i={get(o){return de(this,o,!0)},get size(){return pe(this,!0)},has(o){return fe.call(this,o,!0)},add:Z("add"),set:Z("set"),delete:Z("delete"),clear:Z("clear"),forEach:he(!0,!1)},n={get(o){return de(this,o,!0,!0)},get size(){return pe(this,!0)},has(o){return fe.call(this,o,!0)},add:Z("add"),set:Z("set"),delete:Z("delete"),clear:Z("clear"),forEach:he(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(o=>{t[o]=ve(o,!1,!1),i[o]=ve(o,!0,!1),e[o]=ve(o,!1,!0),n[o]=ve(o,!0,!0)}),[t,i,e,n]}var[Mc,jc,al,cl]=Hc();function ho(t,e){const i=t?jc:Mc;return(n,r,o)=>r==="__v_isReactive"?!t:r==="__v_isReadonly"?t:r==="__v_raw"?n:Reflect.get(Fe(i,r)&&r in n?i:n,r,o)}var Rc={get:ho(!1)},zc={get:ho(!0)};function vo(t,e,i){const n=I(i);if(n!==i&&e.call(t,n)){const r=ao(t);console.warn(`Reactive ${r} contains both the raw and reactive versions of the same object${r==="Map"?" as keys":""}, which can lead to inconsistencies. Avoid differentiating between the raw and reactive versions of an object and only use the reactive version if possible.`)}}var _o=new WeakMap,Bc=new WeakMap,go=new WeakMap,$c=new WeakMap;function qc(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Nc(t){return t.__v_skip||!Object.isExtensible(t)?0:qc(ao(t))}function un(t){return t&&t.__v_isReadonly?t:yo(t,!1,Pc,Rc,_o)}function mo(t){return yo(t,!0,Dc,zc,go)}function yo(t,e,i,n,r){if(!Ve(t))return console.warn(`value cannot be made reactive: ${String(t)}`),t;if(t.__v_raw&&!(e&&t.__v_isReactive))return t;const o=r.get(t);if(o)return o;const s=Nc(t);if(s===0)return t;const a=new Proxy(t,s===2?n:i);return r.set(t,a),a}function I(t){return t&&I(t.__v_raw)||t}function wi(t){return!!(t&&t.__v_isRef===!0)}K("nextTick",()=>en);K("dispatch",t=>Kt.bind(Kt,t));K("watch",(t,{evaluateLater:e,cleanup:i})=>(n,r)=>{let o=e(n),a=vr(()=>{let c;return o(u=>c=u),c},r);i(a)});K("store",nc);K("data",t=>xr(t));K("root",t=>$e(t));K("refs",t=>(t._x_refs_proxy||(t._x_refs_proxy=Qt(Fc(t))),t._x_refs_proxy));function Fc(t){let e=[];return te(t,i=>{i._x_refs&&e.push(i._x_refs)}),e}var Qe={};function bo(t){return Qe[t]||(Qe[t]=0),++Qe[t]}function Vc(t,e){return te(t,i=>{if(i._x_ids&&i._x_ids[e])return!0})}function Kc(t,e){t._x_ids||(t._x_ids={}),t._x_ids[e]||(t._x_ids[e]=bo(e))}K("id",(t,{cleanup:e})=>(i,n=null)=>{let r=`${i}${n?`-${n}`:""}`;return Wc(t,r,e,()=>{let o=Vc(t,i),s=o?o._x_ids[i]:bo(i);return n?`${i}-${s}-${n}`:`${i}-${s}`})});Ne((t,e)=>{t._x_id&&(e._x_id=t._x_id)});function Wc(t,e,i,n){if(t._x_id||(t._x_id={}),t._x_id[e])return t._x_id[e];let r=n();return t._x_id[e]=r,i(()=>{delete t._x_id[e]}),r}K("el",t=>t);wo("Focus","focus","focus");wo("Persist","persist","persist");function wo(t,e,i){K(e,n=>z(`You can't use [$${e}] without first installing the "${t}" plugin here: https://alpinejs.dev/plugins/${i}`,n))}O("modelable",(t,{expression:e},{effect:i,evaluateLater:n,cleanup:r})=>{let o=n(e),s=()=>{let l;return o(f=>l=f),l},a=n(`${e} = __placeholder`),c=l=>a(()=>{},{scope:{__placeholder:l}}),u=s();c(u),queueMicrotask(()=>{if(!t._x_model)return;t._x_removeModelListeners.default();let l=t._x_model.get,f=t._x_model.set,p=io({get(){return l()},set(h){f(h)}},{get(){return s()},set(h){c(h)}});r(p)})});O("teleport",(t,{modifiers:e,expression:i},{cleanup:n})=>{t.tagName.toLowerCase()!=="template"&&z("x-teleport can only be used on a <template> tag",t);let r=Nn(i),o=t.content.cloneNode(!0).firstElementChild;t._x_teleport=o,o._x_teleportBack=t,t.setAttribute("data-teleport-template",!0),o.setAttribute("data-teleport-target",!0),t._x_forwardEvents&&t._x_forwardEvents.forEach(a=>{o.addEventListener(a,c=>{c.stopPropagation(),t.dispatchEvent(new c.constructor(c.type,c))})}),Zt(o,{},t);let s=(a,c,u)=>{u.includes("prepend")?c.parentNode.insertBefore(a,c):u.includes("append")?c.parentNode.insertBefore(a,c.nextSibling):c.appendChild(a)};S(()=>{s(o,r,e),at(()=>{J(o),o._x_ignore=!0})()}),t._x_teleportPutBack=()=>{let a=Nn(i);S(()=>{s(t._x_teleport,a,e)})},n(()=>o.remove())});var Uc=document.createElement("div");function Nn(t){let e=at(()=>document.querySelector(t),()=>Uc)();return e||z(`Cannot find x-teleport element for selector: "${t}"`),e}var Eo=()=>{};Eo.inline=(t,{modifiers:e},{cleanup:i})=>{e.includes("self")?t._x_ignoreSelf=!0:t._x_ignore=!0,i(()=>{e.includes("self")?delete t._x_ignoreSelf:delete t._x_ignore})};O("ignore",Eo);O("effect",at((t,{expression:e},{effect:i})=>{i(D(t,e))}));function Ei(t,e,i,n){let r=t,o=c=>n(c),s={},a=(c,u)=>l=>u(c,l);if(i.includes("dot")&&(e=Yc(e)),i.includes("camel")&&(e=Xc(e)),i.includes("passive")&&(s.passive=!0),i.includes("capture")&&(s.capture=!0),i.includes("window")&&(r=window),i.includes("document")&&(r=document),i.includes("debounce")){let c=i[i.indexOf("debounce")+1]||"invalid-wait",u=ze(c.split("ms")[0])?Number(c.split("ms")[0]):250;o=to(o,u)}if(i.includes("throttle")){let c=i[i.indexOf("throttle")+1]||"invalid-wait",u=ze(c.split("ms")[0])?Number(c.split("ms")[0]):250;o=eo(o,u)}return i.includes("prevent")&&(o=a(o,(c,u)=>{u.preventDefault(),c(u)})),i.includes("stop")&&(o=a(o,(c,u)=>{u.stopPropagation(),c(u)})),i.includes("once")&&(o=a(o,(c,u)=>{c(u),r.removeEventListener(e,o,s)})),(i.includes("away")||i.includes("outside"))&&(r=document,o=a(o,(c,u)=>{t.contains(u.target)||u.target.isConnected!==!1&&(t.offsetWidth<1&&t.offsetHeight<1||t._x_isShown!==!1&&c(u))})),i.includes("self")&&(o=a(o,(c,u)=>{u.target===t&&c(u)})),(Gc(e)||xo(e))&&(o=a(o,(c,u)=>{Zc(u,i)||c(u)})),r.addEventListener(e,o,s),()=>{r.removeEventListener(e,o,s)}}function Yc(t){return t.replace(/-/g,".")}function Xc(t){return t.toLowerCase().replace(/-(\w)/g,(e,i)=>i.toUpperCase())}function ze(t){return!Array.isArray(t)&&!isNaN(t)}function Jc(t){return[" ","_"].includes(t)?t:t.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[_\s]/,"-").toLowerCase()}function Gc(t){return["keydown","keyup"].includes(t)}function xo(t){return["contextmenu","click","mouse"].some(e=>t.includes(e))}function Zc(t,e){let i=e.filter(o=>!["window","document","prevent","stop","once","capture","self","away","outside","passive"].includes(o));if(i.includes("debounce")){let o=i.indexOf("debounce");i.splice(o,ze((i[o+1]||"invalid-wait").split("ms")[0])?2:1)}if(i.includes("throttle")){let o=i.indexOf("throttle");i.splice(o,ze((i[o+1]||"invalid-wait").split("ms")[0])?2:1)}if(i.length===0||i.length===1&&Fn(t.key).includes(i[0]))return!1;const r=["ctrl","shift","alt","meta","cmd","super"].filter(o=>i.includes(o));return i=i.filter(o=>!r.includes(o)),!(r.length>0&&r.filter(s=>((s==="cmd"||s==="super")&&(s="meta"),t[`${s}Key`])).length===r.length&&(xo(t.type)||Fn(t.key).includes(i[0])))}function Fn(t){if(!t)return[];t=Jc(t);let e={ctrl:"control",slash:"/",space:" ",spacebar:" ",cmd:"meta",esc:"escape",up:"arrow-up",down:"arrow-down",left:"arrow-left",right:"arrow-right",period:".",comma:",",equal:"=",minus:"-",underscore:"_"};return e[t]=t,Object.keys(e).map(i=>{if(e[i]===t)return i}).filter(i=>i)}O("model",(t,{modifiers:e,expression:i},{effect:n,cleanup:r})=>{let o=t;e.includes("parent")&&(o=t.parentNode);let s=D(o,i),a;typeof i=="string"?a=D(o,`${i} = __placeholder`):typeof i=="function"&&typeof i()=="string"?a=D(o,`${i()} = __placeholder`):a=()=>{};let c=()=>{let p;return s(h=>p=h),Vn(p)?p.get():p},u=p=>{let h;s(x=>h=x),Vn(h)?h.set(p):a(()=>{},{scope:{__placeholder:p}})};typeof i=="string"&&t.type==="radio"&&S(()=>{t.hasAttribute("name")||t.setAttribute("name",i)});var l=t.tagName.toLowerCase()==="select"||["checkbox","radio"].includes(t.type)||e.includes("lazy")?"change":"input";let f=rt?()=>{}:Ei(t,l,e,p=>{u(ti(t,e,p,c()))});if(e.includes("fill")&&([void 0,null,""].includes(c())||t.type==="checkbox"&&Array.isArray(c())||t.tagName.toLowerCase()==="select"&&t.multiple)&&u(ti(t,e,{target:t},c())),t._x_removeModelListeners||(t._x_removeModelListeners={}),t._x_removeModelListeners.default=f,r(()=>t._x_removeModelListeners.default()),t.form){let p=Ei(t.form,"reset",[],h=>{en(()=>t._x_model&&t._x_model.set(ti(t,e,{target:t},c())))});r(()=>p())}t._x_model={get(){return c()},set(p){u(p)}},t._x_forceModelUpdate=p=>{p===void 0&&typeof i=="string"&&i.match(/\./)&&(p=""),window.fromModel=!0,S(()=>Jr(t,"value",p)),delete window.fromModel},n(()=>{let p=c();e.includes("unintrusive")&&document.activeElement.isSameNode(t)||t._x_forceModelUpdate(p)})});function ti(t,e,i,n){return S(()=>{if(i instanceof CustomEvent&&i.detail!==void 0)return i.detail!==null&&i.detail!==void 0?i.detail:i.target.value;if(t.type==="checkbox")if(Array.isArray(n)){let r=null;return e.includes("number")?r=ei(i.target.value):e.includes("boolean")?r=ye(i.target.value):r=i.target.value,i.target.checked?n.includes(r)?n:n.concat([r]):n.filter(o=>!Qc(o,r))}else return i.target.checked;else{if(t.tagName.toLowerCase()==="select"&&t.multiple)return e.includes("number")?Array.from(i.target.selectedOptions).map(r=>{let o=r.value||r.text;return ei(o)}):e.includes("boolean")?Array.from(i.target.selectedOptions).map(r=>{let o=r.value||r.text;return ye(o)}):Array.from(i.target.selectedOptions).map(r=>r.value||r.text);{let r;return t.type==="radio"?i.target.checked?r=i.target.value:r=n:r=i.target.value,e.includes("number")?ei(r):e.includes("boolean")?ye(r):e.includes("trim")?r.trim():r}}})}function ei(t){let e=t?parseFloat(t):null;return tl(e)?e:t}function Qc(t,e){return t==e}function tl(t){return!Array.isArray(t)&&!isNaN(t)}function Vn(t){return t!==null&&typeof t=="object"&&typeof t.get=="function"&&typeof t.set=="function"}O("cloak",t=>queueMicrotask(()=>S(()=>t.removeAttribute(Dt("cloak")))));Fr(()=>`[${Dt("init")}]`);O("init",at((t,{expression:e},{evaluate:i})=>typeof e=="string"?!!e.trim()&&i(e,{},!1):i(e,{},!1)));O("text",(t,{expression:e},{effect:i,evaluateLater:n})=>{let r=n(e);i(()=>{r(o=>{S(()=>{t.textContent=o})})})});O("html",(t,{expression:e},{effect:i,evaluateLater:n})=>{let r=n(e);i(()=>{r(o=>{S(()=>{t.innerHTML=o,t._x_ignoreSelf=!0,J(t),delete t._x_ignoreSelf})})})});Zi(Dr(":",Hr(Dt("bind:"))));var Ao=(t,{value:e,modifiers:i,expression:n,original:r},{effect:o,cleanup:s})=>{if(!e){let c={};oc(c),D(t,n)(l=>{ro(t,l,r)},{scope:c});return}if(e==="key")return el(t,n);if(t._x_inlineBindings&&t._x_inlineBindings[e]&&t._x_inlineBindings[e].extract)return;let a=D(t,n);o(()=>a(c=>{c===void 0&&typeof n=="string"&&n.match(/\./)&&(c=""),S(()=>Jr(t,e,c,i))})),s(()=>{t._x_undoAddedClasses&&t._x_undoAddedClasses(),t._x_undoAddedStyles&&t._x_undoAddedStyles()})};Ao.inline=(t,{value:e,modifiers:i,expression:n})=>{e&&(t._x_inlineBindings||(t._x_inlineBindings={}),t._x_inlineBindings[e]={expression:n,extract:!1})};O("bind",Ao);function el(t,e){t._x_keyExpression=e}Nr(()=>`[${Dt("data")}]`);O("data",(t,{expression:e},{cleanup:i})=>{if(il(t))return;e=e===""?"{}":e;let n={};di(n,t);let r={};ac(r,n);let o=yt(t,e,{scope:r});(o===void 0||o===!0)&&(o={}),di(o,t);let s=Tt(o);Ar(s);let a=Zt(t,s);s.init&&yt(t,s.init),i(()=>{s.destroy&&yt(t,s.destroy),a()})});Ne((t,e)=>{t._x_dataStack&&(e._x_dataStack=t._x_dataStack,e.setAttribute("data-has-alpine-state",!0))});function il(t){return rt?mi?!0:t.hasAttribute("data-has-alpine-state"):!1}O("show",(t,{modifiers:e,expression:i},{effect:n})=>{let r=D(t,i);t._x_doHide||(t._x_doHide=()=>{S(()=>{t.style.setProperty("display","none",e.includes("important")?"important":void 0)})}),t._x_doShow||(t._x_doShow=()=>{S(()=>{t.style.length===1&&t.style.display==="none"?t.removeAttribute("style"):t.style.removeProperty("display")})});let o=()=>{t._x_doHide(),t._x_isShown=!1},s=()=>{t._x_doShow(),t._x_isShown=!0},a=()=>setTimeout(s),c=_i(f=>f?s():o(),f=>{typeof t._x_toggleAndCascadeWithTransitions=="function"?t._x_toggleAndCascadeWithTransitions(t,f,s,o):f?a():o()}),u,l=!0;n(()=>r(f=>{!l&&f===u||(e.includes("immediate")&&(f?a():o()),c(f),u=f,l=!1)}))});O("for",(t,{expression:e},{effect:i,cleanup:n})=>{let r=rl(e),o=D(t,r.items),s=D(t,t._x_keyExpression||"index");t._x_prevKeys=[],t._x_lookup={},i(()=>nl(t,r,o,s)),n(()=>{Object.values(t._x_lookup).forEach(a=>a.remove()),delete t._x_prevKeys,delete t._x_lookup})});function nl(t,e,i,n){let r=s=>typeof s=="object"&&!Array.isArray(s),o=t;i(s=>{ol(s)&&s>=0&&(s=Array.from(Array(s).keys(),d=>d+1)),s===void 0&&(s=[]);let a=t._x_lookup,c=t._x_prevKeys,u=[],l=[];if(r(s))s=Object.entries(s).map(([d,v])=>{let g=Kn(e,v,d,s);n(m=>{l.includes(m)&&z("Duplicate key on x-for",t),l.push(m)},{scope:{index:d,...g}}),u.push(g)});else for(let d=0;d<s.length;d++){let v=Kn(e,s[d],d,s);n(g=>{l.includes(g)&&z("Duplicate key on x-for",t),l.push(g)},{scope:{index:d,...v}}),u.push(v)}let f=[],p=[],h=[],x=[];for(let d=0;d<c.length;d++){let v=c[d];l.indexOf(v)===-1&&h.push(v)}c=c.filter(d=>!h.includes(d));let b="template";for(let d=0;d<l.length;d++){let v=l[d],g=c.indexOf(v);if(g===-1)c.splice(d,0,v),f.push([b,d]);else if(g!==d){let m=c.splice(d,1)[0],_=c.splice(g-1,1)[0];c.splice(d,0,_),c.splice(g,0,m),p.push([m,_])}else x.push(v);b=v}for(let d=0;d<h.length;d++){let v=h[d];a[v]._x_effects&&a[v]._x_effects.forEach(pr),a[v].remove(),a[v]=null,delete a[v]}for(let d=0;d<p.length;d++){let[v,g]=p[d],m=a[v],_=a[g],w=document.createElement("div");S(()=>{_||z('x-for ":key" is undefined or invalid',o,g,a),_.after(w),m.after(_),_._x_currentIfEl&&_.after(_._x_currentIfEl),w.before(m),m._x_currentIfEl&&m.after(m._x_currentIfEl),w.remove()}),_._x_refreshXForScope(u[l.indexOf(g)])}for(let d=0;d<f.length;d++){let[v,g]=f[d],m=v==="template"?o:a[v];m._x_currentIfEl&&(m=m._x_currentIfEl);let _=u[g],w=l[g],E=document.importNode(o.content,!0).firstElementChild,A=Tt(_);Zt(E,A,o),E._x_refreshXForScope=k=>{Object.entries(k).forEach(([C,L])=>{A[C]=L})},S(()=>{m.after(E),at(()=>J(E))()}),typeof w=="object"&&z("x-for key cannot be an object, it must be a string or an integer",o),a[w]=E}for(let d=0;d<x.length;d++)a[x[d]]._x_refreshXForScope(u[l.indexOf(x[d])]);o._x_prevKeys=l})}function rl(t){let e=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,i=/^\s*\(|\)\s*$/g,n=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,r=t.match(n);if(!r)return;let o={};o.items=r[2].trim();let s=r[1].replace(i,"").trim(),a=s.match(e);return a?(o.item=s.replace(e,"").trim(),o.index=a[1].trim(),a[2]&&(o.collection=a[2].trim())):o.item=s,o}function Kn(t,e,i,n){let r={};return/^\[.*\]$/.test(t.item)&&Array.isArray(e)?t.item.replace("[","").replace("]","").split(",").map(s=>s.trim()).forEach((s,a)=>{r[s]=e[a]}):/^\{.*\}$/.test(t.item)&&!Array.isArray(e)&&typeof e=="object"?t.item.replace("{","").replace("}","").split(",").map(s=>s.trim()).forEach(s=>{r[s]=e[s]}):r[t.item]=e,t.index&&(r[t.index]=i),t.collection&&(r[t.collection]=n),r}function ol(t){return!Array.isArray(t)&&!isNaN(t)}function Io(){}Io.inline=(t,{expression:e},{cleanup:i})=>{let n=$e(t);n._x_refs||(n._x_refs={}),n._x_refs[e]=t,i(()=>delete n._x_refs[e])};O("ref",Io);O("if",(t,{expression:e},{effect:i,cleanup:n})=>{t.tagName.toLowerCase()!=="template"&&z("x-if can only be used on a <template> tag",t);let r=D(t,e),o=()=>{if(t._x_currentIfEl)return t._x_currentIfEl;let a=t.content.cloneNode(!0).firstElementChild;return Zt(a,{},t),S(()=>{t.after(a),at(()=>J(a))()}),t._x_currentIfEl=a,t._x_undoIf=()=>{nt(a,c=>{c._x_effects&&c._x_effects.forEach(pr)}),a.remove(),delete t._x_currentIfEl},a},s=()=>{t._x_undoIf&&(t._x_undoIf(),delete t._x_undoIf)};i(()=>r(a=>{a?o():s()})),n(()=>t._x_undoIf&&t._x_undoIf())});O("id",(t,{expression:e},{evaluate:i})=>{i(e).forEach(r=>Kc(t,r))});Ne((t,e)=>{t._x_ids&&(e._x_ids=t._x_ids)});Zi(Dr("@",Hr(Dt("on:"))));O("on",at((t,{value:e,modifiers:i,expression:n},{cleanup:r})=>{let o=n?D(t,n):()=>{};t.tagName.toLowerCase()==="template"&&(t._x_forwardEvents||(t._x_forwardEvents=[]),t._x_forwardEvents.includes(e)||t._x_forwardEvents.push(e));let s=Ei(t,e,i,a=>{o(()=>{},{scope:{$event:a},params:[a]})});r(()=>s())}));We("Collapse","collapse","collapse");We("Intersect","intersect","intersect");We("Focus","trap","focus");We("Mask","mask","mask");function We(t,e,i){O(e,n=>z(`You can't use [x-${e}] without first installing the "${t}" plugin here: https://alpinejs.dev/plugins/${i}`,n))}ee.setEvaluator(kr);ee.setReactivityEngine({reactive:un,effect:gc,release:mc,raw:I});var sl=ee,Lo=sl;window.Alpine=Lo;Lo.start();
