Files
Atomcms-edit/public/build/assets/app-BBe1NbvP.js
T
root 943d5bfc38 feat: install and configure Inertia.js with React
- Install inertia-laravel, @inertiajs/react, react, @vitejs/plugin-react
- Add HandleInertiaRequests middleware registered in web group
- Create Inertia root template (resources/views/app.blade.php)
- Add React entry point and page components (resources/js/)
- Add Inertia demo route (/inertia-test)
- HomeController reverted to Blade (index page stays original)
- Remove inertia-test2 test route
2026-05-25 15:15:14 +02:00

49 lines
169 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import{r as Yn,t as Kn}from"./chunk-BqhQeaEc.js";import{t as Un}from"./axios-BgauIbGG.js";import{l as $n,t as Xn,u as je}from"./swiper-B7Yxk788.js";var Jn=Kn(((e,t)=>{(function(){var i=this;(function(){(function(){this.Turbolinks={supported:(function(){return window.history.pushState!=null&&window.requestAnimationFrame!=null&&window.addEventListener!=null})(),visit:function(r,o){return n.controller.visit(r,o)},clearCache:function(){return n.controller.clearCache()},setProgressBarDelay:function(r){return n.controller.setProgressBarDelay(r)}}}).call(this)}).call(i);var n=i.Turbolinks;(function(){(function(){var r,o,a,s=[].slice;n.copyObject=function(l){var c,u={},d;for(c in l)d=l[c],u[c]=d;return u},n.closest=function(l,c){return r.call(l,c)},r=(function(){var l,c;return l=document.documentElement,(c=l.closest)!=null?c:function(u){var d;for(d=this;d;){if(d.nodeType===Node.ELEMENT_NODE&&o.call(d,u))return d;d=d.parentNode}}})(),n.defer=function(l){return setTimeout(l,1)},n.throttle=function(l){var c;return c=null,function(){var u;return u=1<=arguments.length?s.call(arguments,0):[],c??(c=requestAnimationFrame((function(d){return function(){return c=null,l.apply(d,u)}})(this)))}},n.dispatch=function(l,c){var u,d,f,h,p,v;return p=c??{},v=p.target,u=p.cancelable,d=p.data,f=document.createEvent("Events"),f.initEvent(l,!0,u===!0),f.data=d??{},f.cancelable&&!a&&(h=f.preventDefault,f.preventDefault=function(){return this.defaultPrevented||Object.defineProperty(this,"defaultPrevented",{get:function(){return!0}}),h.call(this)}),(v??document).dispatchEvent(f),f},a=(function(){var l;return l=document.createEvent("Events"),l.initEvent("test",!0,!0),l.preventDefault(),l.defaultPrevented})(),n.match=function(l,c){return o.call(l,c)},o=(function(){var l,c,u,d;return l=document.documentElement,(c=(u=(d=l.matchesSelector)!=null?d:l.webkitMatchesSelector)!=null?u:l.msMatchesSelector)!=null?c:l.mozMatchesSelector})(),n.uuid=function(){var l,c,u;for(u="",l=c=1;36>=c;l=++c)u+=l===9||l===14||l===19||l===24?"-":l===15?"4":l===20?(Math.floor(4*Math.random())+8).toString(16):Math.floor(15*Math.random()).toString(16);return u}}).call(this),function(){n.Location=(function(){function r(c){var u,d;c??="",d=document.createElement("a"),d.href=c.toString(),this.absoluteURL=d.href,u=d.hash.length,2>u?this.requestURL=this.absoluteURL:(this.requestURL=this.absoluteURL.slice(0,-u),this.anchor=d.hash.slice(1))}var o,a,s,l;return r.wrap=function(c){return c instanceof this?c:new this(c)},r.prototype.getOrigin=function(){return this.absoluteURL.split("/",3).join("/")},r.prototype.getPath=function(){var c,u;return(c=(u=this.requestURL.match(/\/\/[^\/]*(\/[^?;]*)/))!=null?u[1]:void 0)!=null?c:"/"},r.prototype.getPathComponents=function(){return this.getPath().split("/").slice(1)},r.prototype.getLastPathComponent=function(){return this.getPathComponents().slice(-1)[0]},r.prototype.getExtension=function(){var c,u;return(c=(u=this.getLastPathComponent().match(/\.[^.]*$/))!=null?u[0]:void 0)!=null?c:""},r.prototype.isHTML=function(){return this.getExtension().match(/^(?:|\.(?:htm|html|xhtml))$/)},r.prototype.isPrefixedBy=function(c){var u;return u=a(c),this.isEqualTo(c)||l(this.absoluteURL,u)},r.prototype.isEqualTo=function(c){return this.absoluteURL===c?.absoluteURL},r.prototype.toCacheKey=function(){return this.requestURL},r.prototype.toJSON=function(){return this.absoluteURL},r.prototype.toString=function(){return this.absoluteURL},r.prototype.valueOf=function(){return this.absoluteURL},a=function(c){return o(c.getOrigin()+c.getPath())},o=function(c){return s(c,"/")?c:c+"/"},l=function(c,u){return c.slice(0,u.length)===u},s=function(c,u){return c.slice(-u.length)===u},r})()}.call(this),function(){var r=function(o,a){return function(){return o.apply(a,arguments)}};n.HttpRequest=(function(){function o(a,s,l){this.delegate=a,this.requestCanceled=r(this.requestCanceled,this),this.requestTimedOut=r(this.requestTimedOut,this),this.requestFailed=r(this.requestFailed,this),this.requestLoaded=r(this.requestLoaded,this),this.requestProgressed=r(this.requestProgressed,this),this.url=n.Location.wrap(s).requestURL,this.referrer=n.Location.wrap(l).absoluteURL,this.createXHR()}return o.NETWORK_FAILURE=0,o.TIMEOUT_FAILURE=-1,o.timeout=60,o.prototype.send=function(){var a;return this.xhr&&!this.sent?(this.notifyApplicationBeforeRequestStart(),this.setProgress(0),this.xhr.send(),this.sent=!0,typeof(a=this.delegate).requestStarted=="function"?a.requestStarted():void 0):void 0},o.prototype.cancel=function(){return this.xhr&&this.sent?this.xhr.abort():void 0},o.prototype.requestProgressed=function(a){return a.lengthComputable?this.setProgress(a.loaded/a.total):void 0},o.prototype.requestLoaded=function(){return this.endRequest((function(a){return function(){var s;return 200<=(s=a.xhr.status)&&300>s?a.delegate.requestCompletedWithResponse(a.xhr.responseText,a.xhr.getResponseHeader("Turbolinks-Location")):(a.failed=!0,a.delegate.requestFailedWithStatusCode(a.xhr.status,a.xhr.responseText))}})(this))},o.prototype.requestFailed=function(){return this.endRequest((function(a){return function(){return a.failed=!0,a.delegate.requestFailedWithStatusCode(a.constructor.NETWORK_FAILURE)}})(this))},o.prototype.requestTimedOut=function(){return this.endRequest((function(a){return function(){return a.failed=!0,a.delegate.requestFailedWithStatusCode(a.constructor.TIMEOUT_FAILURE)}})(this))},o.prototype.requestCanceled=function(){return this.endRequest()},o.prototype.notifyApplicationBeforeRequestStart=function(){return n.dispatch("turbolinks:request-start",{data:{url:this.url,xhr:this.xhr}})},o.prototype.notifyApplicationAfterRequestEnd=function(){return n.dispatch("turbolinks:request-end",{data:{url:this.url,xhr:this.xhr}})},o.prototype.createXHR=function(){return this.xhr=new XMLHttpRequest,this.xhr.open("GET",this.url,!0),this.xhr.timeout=1e3*this.constructor.timeout,this.xhr.setRequestHeader("Accept","text/html, application/xhtml+xml"),this.xhr.setRequestHeader("Turbolinks-Referrer",this.referrer),this.xhr.onprogress=this.requestProgressed,this.xhr.onload=this.requestLoaded,this.xhr.onerror=this.requestFailed,this.xhr.ontimeout=this.requestTimedOut,this.xhr.onabort=this.requestCanceled},o.prototype.endRequest=function(a){return this.xhr?(this.notifyApplicationAfterRequestEnd(),a?.call(this),this.destroy()):void 0},o.prototype.setProgress=function(a){var s;return this.progress=a,typeof(s=this.delegate).requestProgressed=="function"?s.requestProgressed(this.progress):void 0},o.prototype.destroy=function(){var a;return this.setProgress(1),typeof(a=this.delegate).requestFinished=="function"&&a.requestFinished(),this.delegate=null,this.xhr=null},o})()}.call(this),function(){var r=function(o,a){return function(){return o.apply(a,arguments)}};n.ProgressBar=(function(){function o(){this.trickle=r(this.trickle,this),this.stylesheetElement=this.createStylesheetElement(),this.progressElement=this.createProgressElement()}var a;return a=300,o.defaultCSS=`.turbolinks-progress-bar {
position: fixed;
display: block;
top: 0;
left: 0;
height: 3px;
background: #0076ff;
z-index: 9999;
transition: width `+a+"ms ease-out, opacity "+a/2+"ms "+a/2+`ms ease-in;
transform: translate3d(0, 0, 0);
}`,o.prototype.show=function(){return this.visible?void 0:(this.visible=!0,this.installStylesheetElement(),this.installProgressElement(),this.startTrickling())},o.prototype.hide=function(){return this.visible&&!this.hiding?(this.hiding=!0,this.fadeProgressElement((function(s){return function(){return s.uninstallProgressElement(),s.stopTrickling(),s.visible=!1,s.hiding=!1}})(this))):void 0},o.prototype.setValue=function(s){return this.value=s,this.refresh()},o.prototype.installStylesheetElement=function(){return document.head.insertBefore(this.stylesheetElement,document.head.firstChild)},o.prototype.installProgressElement=function(){return this.progressElement.style.width=0,this.progressElement.style.opacity=1,document.documentElement.insertBefore(this.progressElement,document.body),this.refresh()},o.prototype.fadeProgressElement=function(s){return this.progressElement.style.opacity=0,setTimeout(s,1.5*a)},o.prototype.uninstallProgressElement=function(){return this.progressElement.parentNode?document.documentElement.removeChild(this.progressElement):void 0},o.prototype.startTrickling=function(){return this.trickleInterval!=null?this.trickleInterval:this.trickleInterval=setInterval(this.trickle,a)},o.prototype.stopTrickling=function(){return clearInterval(this.trickleInterval),this.trickleInterval=null},o.prototype.trickle=function(){return this.setValue(this.value+Math.random()/100)},o.prototype.refresh=function(){return requestAnimationFrame((function(s){return function(){return s.progressElement.style.width=10+90*s.value+"%"}})(this))},o.prototype.createStylesheetElement=function(){var s;return s=document.createElement("style"),s.type="text/css",s.textContent=this.constructor.defaultCSS,s},o.prototype.createProgressElement=function(){var s;return s=document.createElement("div"),s.className="turbolinks-progress-bar",s},o})()}.call(this),function(){var r=function(o,a){return function(){return o.apply(a,arguments)}};n.BrowserAdapter=(function(){function o(c){this.controller=c,this.showProgressBar=r(this.showProgressBar,this),this.progressBar=new n.ProgressBar}var a,s,l;return l=n.HttpRequest,a=l.NETWORK_FAILURE,s=l.TIMEOUT_FAILURE,o.prototype.visitProposedToLocationWithAction=function(c,u){return this.controller.startVisitToLocationWithAction(c,u)},o.prototype.visitStarted=function(c){return c.issueRequest(),c.changeHistory(),c.loadCachedSnapshot()},o.prototype.visitRequestStarted=function(c){return this.progressBar.setValue(0),c.hasCachedSnapshot()||c.action!=="restore"?this.showProgressBarAfterDelay():this.showProgressBar()},o.prototype.visitRequestProgressed=function(c){return this.progressBar.setValue(c.progress)},o.prototype.visitRequestCompleted=function(c){return c.loadResponse()},o.prototype.visitRequestFailedWithStatusCode=function(c,u){switch(u){case a:case s:return this.reload();default:return c.loadResponse()}},o.prototype.visitRequestFinished=function(c){return this.hideProgressBar()},o.prototype.visitCompleted=function(c){return c.followRedirect()},o.prototype.pageInvalidated=function(){return this.reload()},o.prototype.showProgressBarAfterDelay=function(){return this.progressBarTimeout=setTimeout(this.showProgressBar,this.controller.progressBarDelay)},o.prototype.showProgressBar=function(){return this.progressBar.show()},o.prototype.hideProgressBar=function(){return this.progressBar.hide(),clearTimeout(this.progressBarTimeout)},o.prototype.reload=function(){return window.location.reload()},o})()}.call(this),function(){var r=function(o,a){return function(){return o.apply(a,arguments)}};n.History=(function(){function o(a){this.delegate=a,this.onPageLoad=r(this.onPageLoad,this),this.onPopState=r(this.onPopState,this)}return o.prototype.start=function(){return this.started?void 0:(addEventListener("popstate",this.onPopState,!1),addEventListener("load",this.onPageLoad,!1),this.started=!0)},o.prototype.stop=function(){return this.started?(removeEventListener("popstate",this.onPopState,!1),removeEventListener("load",this.onPageLoad,!1),this.started=!1):void 0},o.prototype.push=function(a,s){return a=n.Location.wrap(a),this.update("push",a,s)},o.prototype.replace=function(a,s){return a=n.Location.wrap(a),this.update("replace",a,s)},o.prototype.onPopState=function(a){var s,l,c,u;return this.shouldHandlePopState()&&(u=(l=a.state)!=null?l.turbolinks:void 0)?(s=n.Location.wrap(window.location),c=u.restorationIdentifier,this.delegate.historyPoppedToLocationWithRestorationIdentifier(s,c)):void 0},o.prototype.onPageLoad=function(a){return n.defer((function(s){return function(){return s.pageLoaded=!0}})(this))},o.prototype.shouldHandlePopState=function(){return this.pageIsLoaded()},o.prototype.pageIsLoaded=function(){return this.pageLoaded||document.readyState==="complete"},o.prototype.update=function(a,s,l){var c;return c={turbolinks:{restorationIdentifier:l}},history[a+"State"](c,null,s)},o})()}.call(this),function(){n.HeadDetails=(function(){function r(u){var d,f,h,p,v,g;for(this.elements={},h=0,v=u.length;v>h;h++)g=u[h],g.nodeType===Node.ELEMENT_NODE&&(p=g.outerHTML,f=(d=this.elements)[p]!=null?d[p]:d[p]={type:c(g),tracked:l(g),elements:[]},f.elements.push(g))}var o,a,s,l,c;return r.fromHeadElement=function(u){var d;return new this((d=u?.childNodes)!=null?d:[])},r.prototype.hasElementWithKey=function(u){return u in this.elements},r.prototype.getTrackedElementSignature=function(){var u,d;return function(){var f=this.elements,h=[];for(u in f)d=f[u].tracked,d&&h.push(u);return h}.call(this).join("")},r.prototype.getScriptElementsNotInDetails=function(u){return this.getElementsMatchingTypeNotInDetails("script",u)},r.prototype.getStylesheetElementsNotInDetails=function(u){return this.getElementsMatchingTypeNotInDetails("stylesheet",u)},r.prototype.getElementsMatchingTypeNotInDetails=function(u,d){var f,h,p=this.elements,v,g=[],k;for(h in p)v=p[h],k=v.type,f=v.elements,k!==u||d.hasElementWithKey(h)||g.push(f[0]);return g},r.prototype.getProvisionalElements=function(){var u,d,f=[],h=this.elements,p,v,g;for(d in h)p=h[d],g=p.type,v=p.tracked,u=p.elements,g!=null||v?u.length>1&&f.push.apply(f,u.slice(1)):f.push.apply(f,u);return f},r.prototype.getMetaValue=function(u){var d;return(d=this.findMetaElementByName(u))!=null?d.getAttribute("content"):void 0},r.prototype.findMetaElementByName=function(u){var d=void 0,f,h,p=this.elements;for(h in p)f=p[h].elements,o(f[0],u)&&(d=f[0]);return d},c=function(u){return a(u)?"script":s(u)?"stylesheet":void 0},l=function(u){return u.getAttribute("data-turbolinks-track")==="reload"},a=function(u){var d;return d=u.tagName.toLowerCase(),d==="script"},s=function(u){var d;return d=u.tagName.toLowerCase(),d==="style"||d==="link"&&u.getAttribute("rel")==="stylesheet"},o=function(u,d){var f;return f=u.tagName.toLowerCase(),f==="meta"&&u.getAttribute("name")===d},r})()}.call(this),function(){n.Snapshot=(function(){function r(o,a){this.headDetails=o,this.bodyElement=a}return r.wrap=function(o){return o instanceof this?o:typeof o=="string"?this.fromHTMLString(o):this.fromHTMLElement(o)},r.fromHTMLString=function(o){var a;return a=document.createElement("html"),a.innerHTML=o,this.fromHTMLElement(a)},r.fromHTMLElement=function(o){var a,s,l,c;return l=o.querySelector("head"),a=(c=o.querySelector("body"))!=null?c:document.createElement("body"),s=n.HeadDetails.fromHeadElement(l),new this(s,a)},r.prototype.clone=function(){return new this.constructor(this.headDetails,this.bodyElement.cloneNode(!0))},r.prototype.getRootLocation=function(){var o,a;return a=(o=this.getSetting("root"))!=null?o:"/",new n.Location(a)},r.prototype.getCacheControlValue=function(){return this.getSetting("cache-control")},r.prototype.getElementForAnchor=function(o){try{return this.bodyElement.querySelector("[id='"+o+"'], a[name='"+o+"']")}catch{}},r.prototype.getPermanentElements=function(){return this.bodyElement.querySelectorAll("[id][data-turbolinks-permanent]")},r.prototype.getPermanentElementById=function(o){return this.bodyElement.querySelector("#"+o+"[data-turbolinks-permanent]")},r.prototype.getPermanentElementsPresentInSnapshot=function(o){var a,s,l,c,u;for(c=this.getPermanentElements(),u=[],s=0,l=c.length;l>s;s++)a=c[s],o.getPermanentElementById(a.id)&&u.push(a);return u},r.prototype.findFirstAutofocusableElement=function(){return this.bodyElement.querySelector("[autofocus]")},r.prototype.hasAnchor=function(o){return this.getElementForAnchor(o)!=null},r.prototype.isPreviewable=function(){return this.getCacheControlValue()!=="no-preview"},r.prototype.isCacheable=function(){return this.getCacheControlValue()!=="no-cache"},r.prototype.isVisitable=function(){return this.getSetting("visit-control")!=="reload"},r.prototype.getSetting=function(o){return this.headDetails.getMetaValue("turbolinks-"+o)},r})()}.call(this),function(){var r=[].slice;n.Renderer=(function(){function o(){}var a;return o.render=function(){var s,l,c,u;return c=arguments[0],l=arguments[1],s=3<=arguments.length?r.call(arguments,2):[],u=(function(d,f,h){h.prototype=d.prototype;var p=new h,v=d.apply(p,f);return Object(v)===v?v:p})(this,s,function(){}),u.delegate=c,u.render(l),u},o.prototype.renderView=function(s){return this.delegate.viewWillRender(this.newBody),s(),this.delegate.viewRendered(this.newBody)},o.prototype.invalidateView=function(){return this.delegate.viewInvalidated()},o.prototype.createScriptElement=function(s){var l;return s.getAttribute("data-turbolinks-eval")==="false"?s:(l=document.createElement("script"),l.textContent=s.textContent,l.async=!1,a(l,s),l)},a=function(s,l){var c,u,d,f,h,p,v;for(f=l.attributes,p=[],c=0,u=f.length;u>c;c++)h=f[c],d=h.name,v=h.value,p.push(s.setAttribute(d,v));return p},o})()}.call(this),function(){var r,o,a=function(l,c){function u(){this.constructor=l}for(var d in c)s.call(c,d)&&(l[d]=c[d]);return u.prototype=c.prototype,l.prototype=new u,l.__super__=c.prototype,l},s={}.hasOwnProperty;n.SnapshotRenderer=(function(l){function c(u,d,f){this.currentSnapshot=u,this.newSnapshot=d,this.isPreview=f,this.currentHeadDetails=this.currentSnapshot.headDetails,this.newHeadDetails=this.newSnapshot.headDetails,this.currentBody=this.currentSnapshot.bodyElement,this.newBody=this.newSnapshot.bodyElement}return a(c,l),c.prototype.render=function(u){return this.shouldRender()?(this.mergeHead(),this.renderView((function(d){return function(){return d.replaceBody(),d.isPreview||d.focusFirstAutofocusableElement(),u()}})(this))):this.invalidateView()},c.prototype.mergeHead=function(){return this.copyNewHeadStylesheetElements(),this.copyNewHeadScriptElements(),this.removeCurrentHeadProvisionalElements(),this.copyNewHeadProvisionalElements()},c.prototype.replaceBody=function(){var u;return u=this.relocateCurrentBodyPermanentElements(),this.activateNewBodyScriptElements(),this.assignNewBody(),this.replacePlaceholderElementsWithClonedPermanentElements(u)},c.prototype.shouldRender=function(){return this.newSnapshot.isVisitable()&&this.trackedElementsAreIdentical()},c.prototype.trackedElementsAreIdentical=function(){return this.currentHeadDetails.getTrackedElementSignature()===this.newHeadDetails.getTrackedElementSignature()},c.prototype.copyNewHeadStylesheetElements=function(){var u,d,f,h,p;for(h=this.getNewHeadStylesheetElements(),p=[],d=0,f=h.length;f>d;d++)u=h[d],p.push(document.head.appendChild(u));return p},c.prototype.copyNewHeadScriptElements=function(){var u,d,f,h,p;for(h=this.getNewHeadScriptElements(),p=[],d=0,f=h.length;f>d;d++)u=h[d],p.push(document.head.appendChild(this.createScriptElement(u)));return p},c.prototype.removeCurrentHeadProvisionalElements=function(){var u,d,f,h,p;for(h=this.getCurrentHeadProvisionalElements(),p=[],d=0,f=h.length;f>d;d++)u=h[d],p.push(document.head.removeChild(u));return p},c.prototype.copyNewHeadProvisionalElements=function(){var u,d,f,h,p;for(h=this.getNewHeadProvisionalElements(),p=[],d=0,f=h.length;f>d;d++)u=h[d],p.push(document.head.appendChild(u));return p},c.prototype.relocateCurrentBodyPermanentElements=function(){var u,d,f,h,p,v,g;for(v=this.getCurrentBodyPermanentElements(),g=[],u=0,d=v.length;d>u;u++)h=v[u],p=r(h),f=this.newSnapshot.getPermanentElementById(h.id),o(h,p.element),o(f,h),g.push(p);return g},c.prototype.replacePlaceholderElementsWithClonedPermanentElements=function(u){var d,f,h,p,v,g,k;for(k=[],h=0,p=u.length;p>h;h++)g=u[h],f=g.element,v=g.permanentElement,d=v.cloneNode(!0),k.push(o(f,d));return k},c.prototype.activateNewBodyScriptElements=function(){var u,d,f,h,p,v;for(p=this.getNewBodyScriptElements(),v=[],d=0,h=p.length;h>d;d++)f=p[d],u=this.createScriptElement(f),v.push(o(f,u));return v},c.prototype.assignNewBody=function(){return document.body=this.newBody},c.prototype.focusFirstAutofocusableElement=function(){var u;return(u=this.newSnapshot.findFirstAutofocusableElement())!=null?u.focus():void 0},c.prototype.getNewHeadStylesheetElements=function(){return this.newHeadDetails.getStylesheetElementsNotInDetails(this.currentHeadDetails)},c.prototype.getNewHeadScriptElements=function(){return this.newHeadDetails.getScriptElementsNotInDetails(this.currentHeadDetails)},c.prototype.getCurrentHeadProvisionalElements=function(){return this.currentHeadDetails.getProvisionalElements()},c.prototype.getNewHeadProvisionalElements=function(){return this.newHeadDetails.getProvisionalElements()},c.prototype.getCurrentBodyPermanentElements=function(){return this.currentSnapshot.getPermanentElementsPresentInSnapshot(this.newSnapshot)},c.prototype.getNewBodyScriptElements=function(){return this.newBody.querySelectorAll("script")},c})(n.Renderer),r=function(l){var c;return c=document.createElement("meta"),c.setAttribute("name","turbolinks-permanent-placeholder"),c.setAttribute("content",l.id),{element:c,permanentElement:l}},o=function(l,c){var u;return(u=l.parentNode)?u.replaceChild(c,l):void 0}}.call(this),function(){var r=function(a,s){function l(){this.constructor=a}for(var c in s)o.call(s,c)&&(a[c]=s[c]);return l.prototype=s.prototype,a.prototype=new l,a.__super__=s.prototype,a},o={}.hasOwnProperty;n.ErrorRenderer=(function(a){function s(l){var c=document.createElement("html");c.innerHTML=l,this.newHead=c.querySelector("head"),this.newBody=c.querySelector("body")}return r(s,a),s.prototype.render=function(l){return this.renderView((function(c){return function(){return c.replaceHeadAndBody(),c.activateBodyScriptElements(),l()}})(this))},s.prototype.replaceHeadAndBody=function(){var l,c;return c=document.head,l=document.body,c.parentNode.replaceChild(this.newHead,c),l.parentNode.replaceChild(this.newBody,l)},s.prototype.activateBodyScriptElements=function(){var l,c,u,d,f,h;for(d=this.getScriptElements(),h=[],c=0,u=d.length;u>c;c++)f=d[c],l=this.createScriptElement(f),h.push(f.parentNode.replaceChild(l,f));return h},s.prototype.getScriptElements=function(){return document.documentElement.querySelectorAll("script")},s})(n.Renderer)}.call(this),function(){n.View=(function(){function r(o){this.delegate=o,this.htmlElement=document.documentElement}return r.prototype.getRootLocation=function(){return this.getSnapshot().getRootLocation()},r.prototype.getElementForAnchor=function(o){return this.getSnapshot().getElementForAnchor(o)},r.prototype.getSnapshot=function(){return n.Snapshot.fromHTMLElement(this.htmlElement)},r.prototype.render=function(o,a){var s,l,c;return c=o.snapshot,s=o.error,l=o.isPreview,this.markAsPreview(l),c!=null?this.renderSnapshot(c,l,a):this.renderError(s,a)},r.prototype.markAsPreview=function(o){return o?this.htmlElement.setAttribute("data-turbolinks-preview",""):this.htmlElement.removeAttribute("data-turbolinks-preview")},r.prototype.renderSnapshot=function(o,a,s){return n.SnapshotRenderer.render(this.delegate,s,this.getSnapshot(),n.Snapshot.wrap(o),a)},r.prototype.renderError=function(o,a){return n.ErrorRenderer.render(this.delegate,a,o)},r})()}.call(this),function(){var r=function(o,a){return function(){return o.apply(a,arguments)}};n.ScrollManager=(function(){function o(a){this.delegate=a,this.onScroll=r(this.onScroll,this),this.onScroll=n.throttle(this.onScroll)}return o.prototype.start=function(){return this.started?void 0:(addEventListener("scroll",this.onScroll,!1),this.onScroll(),this.started=!0)},o.prototype.stop=function(){return this.started?(removeEventListener("scroll",this.onScroll,!1),this.started=!1):void 0},o.prototype.scrollToElement=function(a){return a.scrollIntoView()},o.prototype.scrollToPosition=function(a){var s,l;return s=a.x,l=a.y,window.scrollTo(s,l)},o.prototype.onScroll=function(a){return this.updatePosition({x:window.pageXOffset,y:window.pageYOffset})},o.prototype.updatePosition=function(a){var s;return this.position=a,(s=this.delegate)!=null?s.scrollPositionChanged(this.position):void 0},o})()}.call(this),function(){n.SnapshotCache=(function(){function r(a){this.size=a,this.keys=[],this.snapshots={}}var o;return r.prototype.has=function(a){var s;return s=o(a),s in this.snapshots},r.prototype.get=function(a){var s;if(this.has(a))return s=this.read(a),this.touch(a),s},r.prototype.put=function(a,s){return this.write(a,s),this.touch(a),s},r.prototype.read=function(a){var s;return s=o(a),this.snapshots[s]},r.prototype.write=function(a,s){var l;return l=o(a),this.snapshots[l]=s},r.prototype.touch=function(a){var s,l;return l=o(a),s=this.keys.indexOf(l),s>-1&&this.keys.splice(s,1),this.keys.unshift(l),this.trim()},r.prototype.trim=function(){var a,s,l,c,u;for(c=this.keys.splice(this.size),u=[],a=0,l=c.length;l>a;a++)s=c[a],u.push(delete this.snapshots[s]);return u},o=function(a){return n.Location.wrap(a).toCacheKey()},r})()}.call(this),function(){var r=function(o,a){return function(){return o.apply(a,arguments)}};n.Visit=(function(){function o(s,l,c){this.controller=s,this.action=c,this.performScroll=r(this.performScroll,this),this.identifier=n.uuid(),this.location=n.Location.wrap(l),this.adapter=this.controller.adapter,this.state="initialized",this.timingMetrics={}}var a;return o.prototype.start=function(){return this.state==="initialized"?(this.recordTimingMetric("visitStart"),this.state="started",this.adapter.visitStarted(this)):void 0},o.prototype.cancel=function(){var s;return this.state==="started"?((s=this.request)!=null&&s.cancel(),this.cancelRender(),this.state="canceled"):void 0},o.prototype.complete=function(){var s;return this.state==="started"?(this.recordTimingMetric("visitEnd"),this.state="completed",typeof(s=this.adapter).visitCompleted=="function"&&s.visitCompleted(this),this.controller.visitCompleted(this)):void 0},o.prototype.fail=function(){var s;return this.state==="started"?(this.state="failed",typeof(s=this.adapter).visitFailed=="function"?s.visitFailed(this):void 0):void 0},o.prototype.changeHistory=function(){var s,l;return this.historyChanged?void 0:(s=this.location.isEqualTo(this.referrer)?"replace":this.action,l=a(s),this.controller[l](this.location,this.restorationIdentifier),this.historyChanged=!0)},o.prototype.issueRequest=function(){return this.shouldIssueRequest()&&this.request==null?(this.progress=0,this.request=new n.HttpRequest(this,this.location,this.referrer),this.request.send()):void 0},o.prototype.getCachedSnapshot=function(){var s;return!(s=this.controller.getCachedSnapshotForLocation(this.location))||this.location.anchor!=null&&!s.hasAnchor(this.location.anchor)||this.action!=="restore"&&!s.isPreviewable()?void 0:s},o.prototype.hasCachedSnapshot=function(){return this.getCachedSnapshot()!=null},o.prototype.loadCachedSnapshot=function(){var s,l;return(l=this.getCachedSnapshot())?(s=this.shouldIssueRequest(),this.render(function(){var c;return this.cacheSnapshot(),this.controller.render({snapshot:l,isPreview:s},this.performScroll),typeof(c=this.adapter).visitRendered=="function"&&c.visitRendered(this),s?void 0:this.complete()})):void 0},o.prototype.loadResponse=function(){return this.response!=null?this.render(function(){var s,l;return this.cacheSnapshot(),this.request.failed?(this.controller.render({error:this.response},this.performScroll),typeof(s=this.adapter).visitRendered=="function"&&s.visitRendered(this),this.fail()):(this.controller.render({snapshot:this.response},this.performScroll),typeof(l=this.adapter).visitRendered=="function"&&l.visitRendered(this),this.complete())}):void 0},o.prototype.followRedirect=function(){return this.redirectedToLocation&&!this.followedRedirect?(this.location=this.redirectedToLocation,this.controller.replaceHistoryWithLocationAndRestorationIdentifier(this.redirectedToLocation,this.restorationIdentifier),this.followedRedirect=!0):void 0},o.prototype.requestStarted=function(){var s;return this.recordTimingMetric("requestStart"),typeof(s=this.adapter).visitRequestStarted=="function"?s.visitRequestStarted(this):void 0},o.prototype.requestProgressed=function(s){var l;return this.progress=s,typeof(l=this.adapter).visitRequestProgressed=="function"?l.visitRequestProgressed(this):void 0},o.prototype.requestCompletedWithResponse=function(s,l){return this.response=s,l!=null&&(this.redirectedToLocation=n.Location.wrap(l)),this.adapter.visitRequestCompleted(this)},o.prototype.requestFailedWithStatusCode=function(s,l){return this.response=l,this.adapter.visitRequestFailedWithStatusCode(this,s)},o.prototype.requestFinished=function(){var s;return this.recordTimingMetric("requestEnd"),typeof(s=this.adapter).visitRequestFinished=="function"?s.visitRequestFinished(this):void 0},o.prototype.performScroll=function(){return this.scrolled?void 0:(this.action==="restore"?this.scrollToRestoredPosition()||this.scrollToTop():this.scrollToAnchor()||this.scrollToTop(),this.scrolled=!0)},o.prototype.scrollToRestoredPosition=function(){var s,l;return s=(l=this.restorationData)!=null?l.scrollPosition:void 0,s!=null?(this.controller.scrollToPosition(s),!0):void 0},o.prototype.scrollToAnchor=function(){return this.location.anchor!=null?(this.controller.scrollToAnchor(this.location.anchor),!0):void 0},o.prototype.scrollToTop=function(){return this.controller.scrollToPosition({x:0,y:0})},o.prototype.recordTimingMetric=function(s){var l;return(l=this.timingMetrics)[s]!=null?l[s]:l[s]=new Date().getTime()},o.prototype.getTimingMetrics=function(){return n.copyObject(this.timingMetrics)},a=function(s){switch(s){case"replace":return"replaceHistoryWithLocationAndRestorationIdentifier";case"advance":case"restore":return"pushHistoryWithLocationAndRestorationIdentifier"}},o.prototype.shouldIssueRequest=function(){return this.action==="restore"?!this.hasCachedSnapshot():!0},o.prototype.cacheSnapshot=function(){return this.snapshotCached?void 0:(this.controller.cacheSnapshot(),this.snapshotCached=!0)},o.prototype.render=function(s){return this.cancelRender(),this.frame=requestAnimationFrame((function(l){return function(){return l.frame=null,s.call(l)}})(this))},o.prototype.cancelRender=function(){return this.frame?cancelAnimationFrame(this.frame):void 0},o})()}.call(this),function(){var r=function(o,a){return function(){return o.apply(a,arguments)}};n.Controller=(function(){function o(){this.clickBubbled=r(this.clickBubbled,this),this.clickCaptured=r(this.clickCaptured,this),this.pageLoaded=r(this.pageLoaded,this),this.history=new n.History(this),this.view=new n.View(this),this.scrollManager=new n.ScrollManager(this),this.restorationData={},this.clearCache(),this.setProgressBarDelay(500)}return o.prototype.start=function(){return n.supported&&!this.started?(addEventListener("click",this.clickCaptured,!0),addEventListener("DOMContentLoaded",this.pageLoaded,!1),this.scrollManager.start(),this.startHistory(),this.started=!0,this.enabled=!0):void 0},o.prototype.disable=function(){return this.enabled=!1},o.prototype.stop=function(){return this.started?(removeEventListener("click",this.clickCaptured,!0),removeEventListener("DOMContentLoaded",this.pageLoaded,!1),this.scrollManager.stop(),this.stopHistory(),this.started=!1):void 0},o.prototype.clearCache=function(){return this.cache=new n.SnapshotCache(10)},o.prototype.visit=function(a,s){var l,c;return s??={},a=n.Location.wrap(a),this.applicationAllowsVisitingLocation(a)?this.locationIsVisitable(a)?(l=(c=s.action)!=null?c:"advance",this.adapter.visitProposedToLocationWithAction(a,l)):window.location=a:void 0},o.prototype.startVisitToLocationWithAction=function(a,s,l){var c;return n.supported?(c=this.getRestorationDataForIdentifier(l),this.startVisit(a,s,{restorationData:c})):window.location=a},o.prototype.setProgressBarDelay=function(a){return this.progressBarDelay=a},o.prototype.startHistory=function(){return this.location=n.Location.wrap(window.location),this.restorationIdentifier=n.uuid(),this.history.start(),this.history.replace(this.location,this.restorationIdentifier)},o.prototype.stopHistory=function(){return this.history.stop()},o.prototype.pushHistoryWithLocationAndRestorationIdentifier=function(a,s){return this.restorationIdentifier=s,this.location=n.Location.wrap(a),this.history.push(this.location,this.restorationIdentifier)},o.prototype.replaceHistoryWithLocationAndRestorationIdentifier=function(a,s){return this.restorationIdentifier=s,this.location=n.Location.wrap(a),this.history.replace(this.location,this.restorationIdentifier)},o.prototype.historyPoppedToLocationWithRestorationIdentifier=function(a,s){var l;return this.restorationIdentifier=s,this.enabled?(l=this.getRestorationDataForIdentifier(this.restorationIdentifier),this.startVisit(a,"restore",{restorationIdentifier:this.restorationIdentifier,restorationData:l,historyChanged:!0}),this.location=n.Location.wrap(a)):this.adapter.pageInvalidated()},o.prototype.getCachedSnapshotForLocation=function(a){var s;return(s=this.cache.get(a))!=null?s.clone():void 0},o.prototype.shouldCacheSnapshot=function(){return this.view.getSnapshot().isCacheable()},o.prototype.cacheSnapshot=function(){var a,s;return this.shouldCacheSnapshot()?(this.notifyApplicationBeforeCachingSnapshot(),s=this.view.getSnapshot(),a=this.lastRenderedLocation,n.defer((function(l){return function(){return l.cache.put(a,s.clone())}})(this))):void 0},o.prototype.scrollToAnchor=function(a){var s;return(s=this.view.getElementForAnchor(a))?this.scrollToElement(s):this.scrollToPosition({x:0,y:0})},o.prototype.scrollToElement=function(a){return this.scrollManager.scrollToElement(a)},o.prototype.scrollToPosition=function(a){return this.scrollManager.scrollToPosition(a)},o.prototype.scrollPositionChanged=function(a){var s;return s=this.getCurrentRestorationData(),s.scrollPosition=a},o.prototype.render=function(a,s){return this.view.render(a,s)},o.prototype.viewInvalidated=function(){return this.adapter.pageInvalidated()},o.prototype.viewWillRender=function(a){return this.notifyApplicationBeforeRender(a)},o.prototype.viewRendered=function(){return this.lastRenderedLocation=this.currentVisit.location,this.notifyApplicationAfterRender()},o.prototype.pageLoaded=function(){return this.lastRenderedLocation=this.location,this.notifyApplicationAfterPageLoad()},o.prototype.clickCaptured=function(){return removeEventListener("click",this.clickBubbled,!1),addEventListener("click",this.clickBubbled,!1)},o.prototype.clickBubbled=function(a){var s,l,c;return this.enabled&&this.clickEventIsSignificant(a)&&(l=this.getVisitableLinkForNode(a.target))&&(c=this.getVisitableLocationForLink(l))&&this.applicationAllowsFollowingLinkToLocation(l,c)?(a.preventDefault(),s=this.getActionForLink(l),this.visit(c,{action:s})):void 0},o.prototype.applicationAllowsFollowingLinkToLocation=function(a,s){var l;return l=this.notifyApplicationAfterClickingLinkToLocation(a,s),!l.defaultPrevented},o.prototype.applicationAllowsVisitingLocation=function(a){var s;return s=this.notifyApplicationBeforeVisitingLocation(a),!s.defaultPrevented},o.prototype.notifyApplicationAfterClickingLinkToLocation=function(a,s){return n.dispatch("turbolinks:click",{target:a,data:{url:s.absoluteURL},cancelable:!0})},o.prototype.notifyApplicationBeforeVisitingLocation=function(a){return n.dispatch("turbolinks:before-visit",{data:{url:a.absoluteURL},cancelable:!0})},o.prototype.notifyApplicationAfterVisitingLocation=function(a){return n.dispatch("turbolinks:visit",{data:{url:a.absoluteURL}})},o.prototype.notifyApplicationBeforeCachingSnapshot=function(){return n.dispatch("turbolinks:before-cache")},o.prototype.notifyApplicationBeforeRender=function(a){return n.dispatch("turbolinks:before-render",{data:{newBody:a}})},o.prototype.notifyApplicationAfterRender=function(){return n.dispatch("turbolinks:render")},o.prototype.notifyApplicationAfterPageLoad=function(a){return a??={},n.dispatch("turbolinks:load",{data:{url:this.location.absoluteURL,timing:a}})},o.prototype.startVisit=function(a,s,l){var c;return(c=this.currentVisit)!=null&&c.cancel(),this.currentVisit=this.createVisit(a,s,l),this.currentVisit.start(),this.notifyApplicationAfterVisitingLocation(a)},o.prototype.createVisit=function(a,s,l){var c,u,d,f,h;return u=l??{},f=u.restorationIdentifier,d=u.restorationData,c=u.historyChanged,h=new n.Visit(this,a,s),h.restorationIdentifier=f??n.uuid(),h.restorationData=n.copyObject(d),h.historyChanged=c,h.referrer=this.location,h},o.prototype.visitCompleted=function(a){return this.notifyApplicationAfterPageLoad(a.getTimingMetrics())},o.prototype.clickEventIsSignificant=function(a){return!(a.defaultPrevented||a.target.isContentEditable||a.which>1||a.altKey||a.ctrlKey||a.metaKey||a.shiftKey)},o.prototype.getVisitableLinkForNode=function(a){return this.nodeIsVisitable(a)?n.closest(a,"a[href]:not([target]):not([download])"):void 0},o.prototype.getVisitableLocationForLink=function(a){var s;return s=new n.Location(a.getAttribute("href")),this.locationIsVisitable(s)?s:void 0},o.prototype.getActionForLink=function(a){var s;return(s=a.getAttribute("data-turbolinks-action"))!=null?s:"advance"},o.prototype.nodeIsVisitable=function(a){var s;return(s=n.closest(a,"[data-turbolinks]"))?s.getAttribute("data-turbolinks")!=="false":!0},o.prototype.locationIsVisitable=function(a){return a.isPrefixedBy(this.view.getRootLocation())&&a.isHTML()},o.prototype.getCurrentRestorationData=function(){return this.getRestorationDataForIdentifier(this.restorationIdentifier)},o.prototype.getRestorationDataForIdentifier=function(a){var s;return(s=this.restorationData)[a]!=null?s[a]:s[a]={}},o})()}.call(this),function(){(function(){var r,o;if((r=o=document.currentScript)&&!o.hasAttribute("data-turbolinks-suppress-warning")){for(;r=r.parentNode;)if(r===document.body)return console.warn(`You are loading Turbolinks from a <script> element inside the <body> element. This is probably not what you meant to do!
Load your applications JavaScript bundle inside the <head> element instead. <script> elements in <body> are evaluated with each page change.
For more information, see: https://github.com/turbolinks/turbolinks#working-with-script-elements
——
Suppress this warning by adding a \`data-turbolinks-suppress-warning\` attribute to: %s`,o.outerHTML)}})()}.call(this),function(){var r,o,a;n.start=function(){return o()?(n.controller??=r(),n.controller.start()):void 0},o=function(){return window.Turbolinks??(window.Turbolinks=n),a()},r=function(){var s;return s=new n.Controller,s.adapter=new n.BrowserAdapter(s),s},a=function(){return window.Turbolinks===n},a()&&n.start()}.call(this)}).call(this),typeof t=="object"&&t.exports?t.exports=n:typeof define=="function"&&define.amd&&define(n)}).call(e)})),Gn=Yn(Jn(),1);window.axios=Un;window.axios.defaults.headers.common["X-Requested-With"]="XMLHttpRequest";Gn.default.start();var Zn=(function(){function e(t,i){i===void 0&&(i=[]),this._eventType=t,this._eventFunctions=i}return e.prototype.init=function(){var t=this;this._eventFunctions.forEach(function(i){typeof window<"u"&&window.addEventListener(t._eventType,i)})},e})(),w=new((function(){function e(){this._instances={Accordion:{},Carousel:{},Collapse:{},Dial:{},Dismiss:{},Drawer:{},Dropdown:{},Modal:{},Popover:{},Tabs:{},Tooltip:{},InputCounter:{},CopyClipboard:{},Datepicker:{}}}return e.prototype.addInstance=function(t,i,n,r){if(r===void 0&&(r=!1),!this._instances[t])return console.warn("Flowbite: Component ".concat(t," does not exist.")),!1;if(this._instances[t][n]&&!r){console.warn("Flowbite: Instance with ID ".concat(n," already exists."));return}r&&this._instances[t][n]&&this._instances[t][n].destroyAndRemoveInstance(),this._instances[t][n||this._generateRandomId()]=i},e.prototype.getAllInstances=function(){return this._instances},e.prototype.getInstances=function(t){return this._instances[t]?this._instances[t]:(console.warn("Flowbite: Component ".concat(t," does not exist.")),!1)},e.prototype.getInstance=function(t,i){if(this._componentAndInstanceCheck(t,i)){if(!this._instances[t][i]){console.warn("Flowbite: Instance with ID ".concat(i," does not exist."));return}return this._instances[t][i]}},e.prototype.destroyAndRemoveInstance=function(t,i){this._componentAndInstanceCheck(t,i)&&(this.destroyInstanceObject(t,i),this.removeInstance(t,i))},e.prototype.removeInstance=function(t,i){this._componentAndInstanceCheck(t,i)&&delete this._instances[t][i]},e.prototype.destroyInstanceObject=function(t,i){this._componentAndInstanceCheck(t,i)&&this._instances[t][i].destroy()},e.prototype.instanceExists=function(t,i){return!(!this._instances[t]||!this._instances[t][i])},e.prototype._generateRandomId=function(){return Math.random().toString(36).substr(2,9)},e.prototype._componentAndInstanceCheck=function(t,i){return this._instances[t]?this._instances[t][i]?!0:(console.warn("Flowbite: Instance with ID ".concat(i," does not exist.")),!1):(console.warn("Flowbite: Component ".concat(t," does not exist.")),!1)},e})());typeof window<"u"&&(window.FlowbiteInstances=w);var Qt=function(){return Qt=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++){t=arguments[i];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},Qt.apply(this,arguments)},te={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(){}},Qn={id:null,override:!0},nn=(function(){function e(t,i,n,r){t===void 0&&(t=null),i===void 0&&(i=[]),n===void 0&&(n=te),r===void 0&&(r=Qn),this._instanceId=r.id?r.id:t.id,this._accordionEl=t,this._items=i,this._options=Qt(Qt({},te),n),this._initialized=!1,this.init(),w.addInstance("Accordion",this,this._instanceId,r.override)}return e.prototype.init=function(){var t=this;this._items.length&&!this._initialized&&(this._items.forEach(function(i){i.active&&t.open(i.id);var n=function(){t.toggle(i.id)};i.triggerEl.addEventListener("click",n),i.clickHandler=n}),this._initialized=!0)},e.prototype.destroy=function(){this._items.length&&this._initialized&&(this._items.forEach(function(t){t.triggerEl.removeEventListener("click",t.clickHandler),delete t.clickHandler}),this._initialized=!1)},e.prototype.removeInstance=function(){w.removeInstance("Accordion",this._instanceId)},e.prototype.destroyAndRemoveInstance=function(){this.destroy(),this.removeInstance()},e.prototype.getItem=function(t){return this._items.filter(function(i){return i.id===t})[0]},e.prototype.open=function(t){var i,n,r=this,o=this.getItem(t);this._options.alwaysOpen||this._items.map(function(a){var s,l;a!==o&&((s=a.triggerEl.classList).remove.apply(s,r._options.activeClasses.split(" ")),(l=a.triggerEl.classList).add.apply(l,r._options.inactiveClasses.split(" ")),a.targetEl.classList.add("hidden"),a.triggerEl.setAttribute("aria-expanded","false"),a.active=!1,a.iconEl&&a.iconEl.classList.add("rotate-180"))}),(i=o.triggerEl.classList).add.apply(i,this._options.activeClasses.split(" ")),(n=o.triggerEl.classList).remove.apply(n,this._options.inactiveClasses.split(" ")),o.triggerEl.setAttribute("aria-expanded","true"),o.targetEl.classList.remove("hidden"),o.active=!0,o.iconEl&&o.iconEl.classList.remove("rotate-180"),this._options.onOpen(this,o)},e.prototype.toggle=function(t){var i=this.getItem(t);i.active?this.close(t):this.open(t),this._options.onToggle(this,i)},e.prototype.close=function(t){var i,n,r=this.getItem(t);(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)},e.prototype.updateOnOpen=function(t){this._options.onOpen=t},e.prototype.updateOnClose=function(t){this._options.onClose=t},e.prototype.updateOnToggle=function(t){this._options.onToggle=t},e})();function ze(){document.querySelectorAll("[data-accordion]").forEach(function(e){var t=e.getAttribute("data-accordion"),i=e.getAttribute("data-active-classes"),n=e.getAttribute("data-inactive-classes"),r=[];e.querySelectorAll("[data-accordion-target]").forEach(function(o){if(o.closest("[data-accordion]")===e){var a={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(a)}}),new nn(e,r,{alwaysOpen:t==="open",activeClasses:i||te.activeClasses,inactiveClasses:n||te.inactiveClasses})})}typeof window<"u"&&(window.Accordion=nn,window.initAccordions=ze);var ee=function(){return ee=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++){t=arguments[i];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},ee.apply(this,arguments)},Li={onCollapse:function(){},onExpand:function(){},onToggle:function(){}},tr={id:null,override:!0},ie=(function(){function e(t,i,n,r){t===void 0&&(t=null),i===void 0&&(i=null),n===void 0&&(n=Li),r===void 0&&(r=tr),this._instanceId=r.id?r.id:t.id,this._targetEl=t,this._triggerEl=i,this._options=ee(ee({},Li),n),this._visible=!1,this._initialized=!1,this.init(),w.addInstance("Collapse",this,this._instanceId,r.override)}return e.prototype.init=function(){var t=this;this._triggerEl&&this._targetEl&&!this._initialized&&(this._triggerEl.hasAttribute("aria-expanded")?this._visible=this._triggerEl.getAttribute("aria-expanded")==="true":this._visible=!this._targetEl.classList.contains("hidden"),this._clickHandler=function(){t.toggle()},this._triggerEl.addEventListener("click",this._clickHandler),this._initialized=!0)},e.prototype.destroy=function(){this._triggerEl&&this._initialized&&(this._triggerEl.removeEventListener("click",this._clickHandler),this._initialized=!1)},e.prototype.removeInstance=function(){w.removeInstance("Collapse",this._instanceId)},e.prototype.destroyAndRemoveInstance=function(){this.destroy(),this.removeInstance()},e.prototype.collapse=function(){this._targetEl.classList.add("hidden"),this._triggerEl&&this._triggerEl.setAttribute("aria-expanded","false"),this._visible=!1,this._options.onCollapse(this)},e.prototype.expand=function(){this._targetEl.classList.remove("hidden"),this._triggerEl&&this._triggerEl.setAttribute("aria-expanded","true"),this._visible=!0,this._options.onExpand(this)},e.prototype.toggle=function(){this._visible?this.collapse():this.expand(),this._options.onToggle(this)},e.prototype.updateOnCollapse=function(t){this._options.onCollapse=t},e.prototype.updateOnExpand=function(t){this._options.onExpand=t},e.prototype.updateOnToggle=function(t){this._options.onToggle=t},e})();function We(){document.querySelectorAll("[data-collapse-toggle]").forEach(function(e){var t=e.getAttribute("data-collapse-toggle"),i=document.getElementById(t);i?w.instanceExists("Collapse",i.getAttribute("id"))?new ie(i,e,{},{id:i.getAttribute("id")+"_"+w._generateRandomId()}):new ie(i,e):console.error('The target element with id "'.concat(t,'" does not exist. Please check the data-collapse-toggle attribute.'))})}typeof window<"u"&&(window.Collapse=ie,window.initCollapses=We);var rt=function(){return rt=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++){t=arguments[i];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},rt.apply(this,arguments)},Jt={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(){}},er={id:null,override:!0},rn=(function(){function e(t,i,n,r){t===void 0&&(t=null),i===void 0&&(i=[]),n===void 0&&(n=Jt),r===void 0&&(r=er),this._instanceId=r.id?r.id:t.id,this._carouselEl=t,this._items=i,this._options=rt(rt(rt({},Jt),n),{indicators:rt(rt({},Jt.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(),w.addInstance("Carousel",this,this._instanceId,r.override)}return e.prototype.init=function(){var t=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(){t.slideTo(n)})}),this._initialized=!0)},e.prototype.destroy=function(){this._initialized&&(this._initialized=!1)},e.prototype.removeInstance=function(){w.removeInstance("Carousel",this._instanceId)},e.prototype.destroyAndRemoveInstance=function(){this.destroy(),this.removeInstance()},e.prototype.getItem=function(t){return this._items[t]},e.prototype.slideTo=function(t){var i=this._items[t],n={left:i.position===0?this._items[this._items.length-1]:this._items[i.position-1],middle:i,right:i.position===this._items.length-1?this._items[0]:this._items[i.position+1]};this._rotate(n),this._setActiveItem(i),this._intervalInstance&&(this.pause(),this.cycle()),this._options.onChange(this)},e.prototype.next=function(){var t=this.getActiveItem(),i=null;t.position===this._items.length-1?i=this._items[0]:i=this._items[t.position+1],this.slideTo(i.position),this._options.onNext(this)},e.prototype.prev=function(){var t=this.getActiveItem(),i=null;t.position===0?i=this._items[this._items.length-1]:i=this._items[t.position-1],this.slideTo(i.position),this._options.onPrev(this)},e.prototype._rotate=function(t){if(this._items.map(function(i){i.el.classList.add("hidden")}),this._items.length===1){t.middle.el.classList.remove("-translate-x-full","translate-x-full","translate-x-0","hidden","z-10"),t.middle.el.classList.add("translate-x-0","z-20");return}t.left.el.classList.remove("-translate-x-full","translate-x-full","translate-x-0","hidden","z-20"),t.left.el.classList.add("-translate-x-full","z-10"),t.middle.el.classList.remove("-translate-x-full","translate-x-full","translate-x-0","hidden","z-10"),t.middle.el.classList.add("translate-x-0","z-30"),t.right.el.classList.remove("-translate-x-full","translate-x-full","translate-x-0","hidden","z-30"),t.right.el.classList.add("translate-x-full","z-20")},e.prototype.cycle=function(){var t=this;typeof window<"u"&&(this._intervalInstance=window.setInterval(function(){t.next()},this._intervalDuration))},e.prototype.pause=function(){clearInterval(this._intervalInstance)},e.prototype.getActiveItem=function(){return this._activeItem},e.prototype._setActiveItem=function(t){var i,n,r=this;this._activeItem=t;var o=t.position;this._indicators.length&&(this._indicators.map(function(a){var s,l;a.el.setAttribute("aria-current","false"),(s=a.el.classList).remove.apply(s,r._options.indicators.activeClasses.split(" ")),(l=a.el.classList).add.apply(l,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"))},e.prototype.updateOnNext=function(t){this._options.onNext=t},e.prototype.updateOnPrev=function(t){this._options.onPrev=t},e.prototype.updateOnChange=function(t){this._options.onChange=t},e})();function Ye(){document.querySelectorAll("[data-carousel]").forEach(function(e){var t=e.getAttribute("data-carousel-interval"),i=e.getAttribute("data-carousel")==="slide",n=[],r=0;e.querySelectorAll("[data-carousel-item]").length&&Array.from(e.querySelectorAll("[data-carousel-item]")).map(function(c,u){n.push({position:u,el:c}),c.getAttribute("data-carousel-item")==="active"&&(r=u)});var o=[];e.querySelectorAll("[data-carousel-slide-to]").length&&Array.from(e.querySelectorAll("[data-carousel-slide-to]")).map(function(c){o.push({position:parseInt(c.getAttribute("data-carousel-slide-to")),el:c})});var a=new rn(e,n,{defaultPosition:r,indicators:{items:o},interval:t||Jt.interval});i&&a.cycle();var s=e.querySelector("[data-carousel-next]"),l=e.querySelector("[data-carousel-prev]");s&&s.addEventListener("click",function(){a.next()}),l&&l.addEventListener("click",function(){a.prev()})})}typeof window<"u"&&(window.Carousel=rn,window.initCarousels=Ye);var ne=function(){return ne=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++){t=arguments[i];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},ne.apply(this,arguments)},Ai={transition:"transition-opacity",duration:300,timing:"ease-out",onHide:function(){}},ir={id:null,override:!0},on=(function(){function e(t,i,n,r){t===void 0&&(t=null),i===void 0&&(i=null),n===void 0&&(n=Ai),r===void 0&&(r=ir),this._instanceId=r.id?r.id:t.id,this._targetEl=t,this._triggerEl=i,this._options=ne(ne({},Ai),n),this._initialized=!1,this.init(),w.addInstance("Dismiss",this,this._instanceId,r.override)}return e.prototype.init=function(){var t=this;this._triggerEl&&this._targetEl&&!this._initialized&&(this._clickHandler=function(){t.hide()},this._triggerEl.addEventListener("click",this._clickHandler),this._initialized=!0)},e.prototype.destroy=function(){this._triggerEl&&this._initialized&&(this._triggerEl.removeEventListener("click",this._clickHandler),this._initialized=!1)},e.prototype.removeInstance=function(){w.removeInstance("Dismiss",this._instanceId)},e.prototype.destroyAndRemoveInstance=function(){this.destroy(),this.removeInstance()},e.prototype.hide=function(){var t=this;this._targetEl.classList.add(this._options.transition,"duration-".concat(this._options.duration),this._options.timing,"opacity-0"),setTimeout(function(){t._targetEl.classList.add("hidden")},this._options.duration),this._options.onHide(this,this._targetEl)},e.prototype.updateOnHide=function(t){this._options.onHide=t},e})();function Ke(){document.querySelectorAll("[data-dismiss-target]").forEach(function(e){var t=e.getAttribute("data-dismiss-target"),i=document.querySelector(t);i?new on(i,e):console.error('The dismiss element with id "'.concat(t,'" does not exist. Please check the data-dismiss-target attribute.'))})}typeof window<"u"&&(window.Dismiss=on,window.initDismisses=Ke);var j="bottom",Z="right",N="left",nr="auto",Pt=["top",j,Z,N],Ee="start";var rr="clippingParents",or="viewport",Ii="popper",ar="reference",Ci=Pt.reduce(function(e,t){return e.concat([t+"-"+Ee,t+"-end"])},[]),an=[].concat(Pt,[nr]).reduce(function(e,t){return e.concat([t,t+"-"+Ee,t+"-end"])},[]),sr="beforeRead",lr="read",cr="afterRead",ur="beforeMain",dr="main",hr="afterMain",fr="beforeWrite",pr="write",vr="afterWrite",gr=[sr,lr,cr,ur,dr,hr,fr,pr,vr];function q(e){return e?(e.nodeName||"").toLowerCase():null}function R(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function st(e){return e instanceof R(e).Element||e instanceof Element}function M(e){return e instanceof R(e).HTMLElement||e instanceof HTMLElement}function Ue(e){return typeof ShadowRoot>"u"?!1:e instanceof R(e).ShadowRoot||e instanceof ShadowRoot}function mr(e){var t=e.state;Object.keys(t.elements).forEach(function(i){var n=t.styles[i]||{},r=t.attributes[i]||{},o=t.elements[i];!M(o)||!q(o)||(Object.assign(o.style,n),Object.keys(r).forEach(function(a){var s=r[a];s===!1?o.removeAttribute(a):o.setAttribute(a,s===!0?"":s)}))})}function yr(e){var t=e.state,i={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,i.popper),t.styles=i,t.elements.arrow&&Object.assign(t.elements.arrow.style,i.arrow),function(){Object.keys(t.elements).forEach(function(n){var r=t.elements[n],o=t.attributes[n]||{},a=Object.keys(t.styles.hasOwnProperty(n)?t.styles[n]:i[n]).reduce(function(s,l){return s[l]="",s},{});!M(r)||!q(r)||(Object.assign(r.style,a),Object.keys(o).forEach(function(s){r.removeAttribute(s)}))})}}var wr={name:"applyStyles",enabled:!0,phase:"write",fn:mr,effect:yr,requires:["computeStyles"]};function F(e){return e.split("-")[0]}var at=Math.max,re=Math.min,gt=Math.round;function He(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function sn(){return!/^((?!chrome|android).)*safari/i.test(He())}function mt(e,t,i){t===void 0&&(t=!1),i===void 0&&(i=!1);var n=e.getBoundingClientRect(),r=1,o=1;t&&M(e)&&(r=e.offsetWidth>0&&gt(n.width)/e.offsetWidth||1,o=e.offsetHeight>0&&gt(n.height)/e.offsetHeight||1);var a=(st(e)?R(e):window).visualViewport,s=!sn()&&i,l=(n.left+(s&&a?a.offsetLeft:0))/r,c=(n.top+(s&&a?a.offsetTop:0))/o,u=n.width/r,d=n.height/o;return{width:u,height:d,top:c,right:l+u,bottom:c+d,left:l,x:l,y:c}}function $e(e){var t=mt(e),i=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-i)<=1&&(i=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:i,height:n}}function ln(e,t){var i=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(i&&Ue(i)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function z(e){return R(e).getComputedStyle(e)}function br(e){return["table","td","th"].indexOf(q(e))>=0}function tt(e){return((st(e)?e.ownerDocument:e.document)||window.document).documentElement}function xe(e){return q(e)==="html"?e:e.assignedSlot||e.parentNode||(Ue(e)?e.host:null)||tt(e)}function Si(e){return!M(e)||z(e).position==="fixed"?null:e.offsetParent}function _r(e){var t=/firefox/i.test(He());if(/Trident/i.test(He())&&M(e)&&z(e).position==="fixed")return null;var i=xe(e);for(Ue(i)&&(i=i.host);M(i)&&["html","body"].indexOf(q(i))<0;){var n=z(i);if(n.transform!=="none"||n.perspective!=="none"||n.contain==="paint"||["transform","perspective"].indexOf(n.willChange)!==-1||t&&n.willChange==="filter"||t&&n.filter&&n.filter!=="none")return i;i=i.parentNode}return null}function Rt(e){for(var t=R(e),i=Si(e);i&&br(i)&&z(i).position==="static";)i=Si(i);return i&&(q(i)==="html"||q(i)==="body"&&z(i).position==="static")?t:i||_r(e)||t}function Xe(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function xt(e,t,i){return at(e,re(t,i))}function kr(e,t,i){var n=xt(e,t,i);return n>i?i:n}function cn(){return{top:0,right:0,bottom:0,left:0}}function un(e){return Object.assign({},cn(),e)}function dn(e,t){return t.reduce(function(i,n){return i[n]=e,i},{})}var Er=function(t,i){return t=typeof t=="function"?t(Object.assign({},i.rects,{placement:i.placement})):t,un(typeof t!="number"?t:dn(t,Pt))};function xr(e){var t,i=e.state,n=e.name,r=e.options,o=i.elements.arrow,a=i.modifiersData.popperOffsets,s=F(i.placement),l=Xe(s),c=["left","right"].indexOf(s)>=0?"height":"width";if(!(!o||!a)){var u=Er(r.padding,i),d=$e(o),f=l==="y"?"top":N,h=l==="y"?j:Z,p=i.rects.reference[c]+i.rects.reference[l]-a[l]-i.rects.popper[c],v=a[l]-i.rects.reference[l],g=Rt(o),k=g?l==="y"?g.clientHeight||0:g.clientWidth||0:0,A=p/2-v/2,D=u[f],m=k-d[c]-u[h],y=k/2-d[c]/2+A,b=xt(D,y,m),x=l;i.modifiersData[n]=(t={},t[x]=b,t.centerOffset=b-y,t)}}function Dr(e){var t=e.state,i=e.options.element,n=i===void 0?"[data-popper-arrow]":i;n!=null&&(typeof n=="string"&&(n=t.elements.popper.querySelector(n),!n)||ln(t.elements.popper,n)&&(t.elements.arrow=n))}var Lr={name:"arrow",enabled:!0,phase:"main",fn:xr,effect:Dr,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function yt(e){return e.split("-")[1]}var Ar={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Ir(e,t){var i=e.x,n=e.y,r=t.devicePixelRatio||1;return{x:gt(i*r)/r||0,y:gt(n*r)/r||0}}function Oi(e){var t,i=e.popper,n=e.popperRect,r=e.placement,o=e.variation,a=e.offsets,s=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,d=e.isFixed,f=a.x,h=f===void 0?0:f,p=a.y,v=p===void 0?0:p,g=typeof u=="function"?u({x:h,y:v}):{x:h,y:v};h=g.x,v=g.y;var k=a.hasOwnProperty("x"),A=a.hasOwnProperty("y"),D=N,m="top",y=window;if(c){var b=Rt(i),x="clientHeight",L="clientWidth";if(b===R(i)&&(b=tt(i),z(b).position!=="static"&&s==="absolute"&&(x="scrollHeight",L="scrollWidth")),b=b,r==="top"||(r==="left"||r==="right")&&o==="end"){m=j;var E=d&&b===y&&y.visualViewport?y.visualViewport.height:b[x];v-=E-n.height,v*=l?1:-1}if(r==="left"||(r==="top"||r==="bottom")&&o==="end"){D=Z;var _=d&&b===y&&y.visualViewport?y.visualViewport.width:b[L];h-=_-n.width,h*=l?1:-1}}var I=Object.assign({position:s},c&&Ar),T=u===!0?Ir({x:h,y:v},R(i)):{x:h,y:v};if(h=T.x,v=T.y,l){var S;return Object.assign({},I,(S={},S[m]=A?"0":"",S[D]=k?"0":"",S.transform=(y.devicePixelRatio||1)<=1?"translate("+h+"px, "+v+"px)":"translate3d("+h+"px, "+v+"px, 0)",S))}return Object.assign({},I,(t={},t[m]=A?v+"px":"",t[D]=k?h+"px":"",t.transform="",t))}function Cr(e){var t=e.state,i=e.options,n=i.gpuAcceleration,r=n===void 0?!0:n,o=i.adaptive,a=o===void 0?!0:o,s=i.roundOffsets,l=s===void 0?!0:s,c={placement:F(t.placement),variation:yt(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:r,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Oi(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Oi(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var Sr={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Cr,data:{}},Wt={passive:!0};function Or(e){var t=e.state,i=e.instance,n=e.options,r=n.scroll,o=r===void 0?!0:r,a=n.resize,s=a===void 0?!0:a,l=R(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&c.forEach(function(u){u.addEventListener("scroll",i.update,Wt)}),s&&l.addEventListener("resize",i.update,Wt),function(){o&&c.forEach(function(u){u.removeEventListener("scroll",i.update,Wt)}),s&&l.removeEventListener("resize",i.update,Wt)}}var Tr={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Or,data:{}},Pr={left:"right",right:"left",bottom:"top",top:"bottom"};function Gt(e){return e.replace(/left|right|bottom|top/g,function(t){return Pr[t]})}var Rr={start:"end",end:"start"};function Ti(e){return e.replace(/start|end/g,function(t){return Rr[t]})}function Je(e){var t=R(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Ge(e){return mt(tt(e)).left+Je(e).scrollLeft}function Hr(e,t){var i=R(e),n=tt(e),r=i.visualViewport,o=n.clientWidth,a=n.clientHeight,s=0,l=0;if(r){o=r.width,a=r.height;var c=sn();(c||!c&&t==="fixed")&&(s=r.offsetLeft,l=r.offsetTop)}return{width:o,height:a,x:s+Ge(e),y:l}}function Mr(e){var t,i=tt(e),n=Je(e),r=(t=e.ownerDocument)==null?void 0:t.body,o=at(i.scrollWidth,i.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),a=at(i.scrollHeight,i.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),s=-n.scrollLeft+Ge(e),l=-n.scrollTop;return z(r||i).direction==="rtl"&&(s+=at(i.clientWidth,r?r.clientWidth:0)-o),{width:o,height:a,x:s,y:l}}function Ze(e){var t=z(e),i=t.overflow,n=t.overflowX,r=t.overflowY;return/auto|scroll|overlay|hidden/.test(i+r+n)}function hn(e){return["html","body","#document"].indexOf(q(e))>=0?e.ownerDocument.body:M(e)&&Ze(e)?e:hn(xe(e))}function Dt(e,t){var i;t===void 0&&(t=[]);var n=hn(e),r=n===((i=e.ownerDocument)==null?void 0:i.body),o=R(n),a=r?[o].concat(o.visualViewport||[],Ze(n)?n:[]):n,s=t.concat(a);return r?s:s.concat(Dt(xe(a)))}function Me(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Br(e,t){var i=mt(e,!1,t==="fixed");return i.top=i.top+e.clientTop,i.left=i.left+e.clientLeft,i.bottom=i.top+e.clientHeight,i.right=i.left+e.clientWidth,i.width=e.clientWidth,i.height=e.clientHeight,i.x=i.left,i.y=i.top,i}function Pi(e,t,i){return t==="viewport"?Me(Hr(e,i)):st(t)?Br(t,i):Me(Mr(tt(e)))}function Vr(e){var t=Dt(xe(e)),i=["absolute","fixed"].indexOf(z(e).position)>=0&&M(e)?Rt(e):e;return st(i)?t.filter(function(n){return st(n)&&ln(n,i)&&q(n)!=="body"}):[]}function Fr(e,t,i,n){var r=t==="clippingParents"?Vr(e):[].concat(t),o=[].concat(r,[i]),a=o[0],s=o.reduce(function(l,c){var u=Pi(e,c,n);return l.top=at(u.top,l.top),l.right=re(u.right,l.right),l.bottom=re(u.bottom,l.bottom),l.left=at(u.left,l.left),l},Pi(e,a,n));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function fn(e){var t=e.reference,i=e.element,n=e.placement,r=n?F(n):null,o=n?yt(n):null,a=t.x+t.width/2-i.width/2,s=t.y+t.height/2-i.height/2,l;switch(r){case"top":l={x:a,y:t.y-i.height};break;case j:l={x:a,y:t.y+t.height};break;case Z:l={x:t.x+t.width,y:s};break;case N:l={x:t.x-i.width,y:s};break;default:l={x:t.x,y:t.y}}var c=r?Xe(r):null;if(c!=null){var u=c==="y"?"height":"width";switch(o){case Ee:l[c]=l[c]-(t[u]/2-i[u]/2);break;case"end":l[c]=l[c]+(t[u]/2-i[u]/2);break;default:}}return l}function Ct(e,t){t===void 0&&(t={});var i=t,n=i.placement,r=n===void 0?e.placement:n,o=i.strategy,a=o===void 0?e.strategy:o,s=i.boundary,l=s===void 0?rr:s,c=i.rootBoundary,u=c===void 0?or:c,d=i.elementContext,f=d===void 0?Ii:d,h=i.altBoundary,p=h===void 0?!1:h,v=i.padding,g=v===void 0?0:v,k=un(typeof g!="number"?g:dn(g,Pt)),A=f==="popper"?ar:Ii,D=e.rects.popper,m=e.elements[p?A:f],y=Fr(st(m)?m:m.contextElement||tt(e.elements.popper),l,u,a),b=mt(e.elements.reference),x=fn({reference:b,element:D,strategy:"absolute",placement:r}),L=Me(Object.assign({},D,x)),E=f==="popper"?L:b,_={top:y.top-E.top+k.top,bottom:E.bottom-y.bottom+k.bottom,left:y.left-E.left+k.left,right:E.right-y.right+k.right},I=e.modifiersData.offset;if(f==="popper"&&I){var T=I[r];Object.keys(_).forEach(function(S){var V=["right","bottom"].indexOf(S)>=0?1:-1,C=["top","bottom"].indexOf(S)>=0?"y":"x";_[S]+=T[C]*V})}return _}function qr(e,t){t===void 0&&(t={});var i=t,n=i.placement,r=i.boundary,o=i.rootBoundary,a=i.padding,s=i.flipVariations,l=i.allowedAutoPlacements,c=l===void 0?an:l,u=yt(n),d=u?s?Ci:Ci.filter(function(p){return yt(p)===u}):Pt,f=d.filter(function(p){return c.indexOf(p)>=0});f.length===0&&(f=d);var h=f.reduce(function(p,v){return p[v]=Ct(e,{placement:v,boundary:r,rootBoundary:o,padding:a})[F(v)],p},{});return Object.keys(h).sort(function(p,v){return h[p]-h[v]})}function Nr(e){if(F(e)==="auto")return[];var t=Gt(e);return[Ti(e),t,Ti(t)]}function jr(e){var t=e.state,i=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var r=i.mainAxis,o=r===void 0?!0:r,a=i.altAxis,s=a===void 0?!0:a,l=i.fallbackPlacements,c=i.padding,u=i.boundary,d=i.rootBoundary,f=i.altBoundary,h=i.flipVariations,p=h===void 0?!0:h,v=i.allowedAutoPlacements,g=t.options.placement,k=F(g)===g,A=l||(k||!p?[Gt(g)]:Nr(g)),D=[g].concat(A).reduce(function(ht,K){return ht.concat(F(K)==="auto"?qr(t,{placement:K,boundary:u,rootBoundary:d,padding:c,flipVariations:p,allowedAutoPlacements:v}):K)},[]),m=t.rects.reference,y=t.rects.popper,b=new Map,x=!0,L=D[0],E=0;E<D.length;E++){var _=D[E],I=F(_),T=yt(_)===Ee,S=["top",j].indexOf(I)>=0,V=S?"width":"height",C=Ct(t,{placement:_,boundary:u,rootBoundary:d,altBoundary:f,padding:c}),O=S?T?Z:N:T?j:"top";m[V]>y[V]&&(O=Gt(O));var B=Gt(O),et=[];if(o&&et.push(C[I]<=0),s&&et.push(C[O]<=0,C[B]<=0),et.every(function(ht){return ht})){L=_,x=!1;break}b.set(_,et)}if(x)for(var Bt=p?3:1,Vt=function(K){var Ft=D.find(function(qt){var _t=b.get(qt);if(_t)return _t.slice(0,K).every(function(Nt){return Nt})});if(Ft)return L=Ft,"break"},bt=Bt;bt>0&&Vt(bt)!=="break";bt--);t.placement!==L&&(t.modifiersData[n]._skip=!0,t.placement=L,t.reset=!0)}}var zr={name:"flip",enabled:!0,phase:"main",fn:jr,requiresIfExists:["offset"],data:{_skip:!1}};function Ri(e,t,i){return i===void 0&&(i={x:0,y:0}),{top:e.top-t.height-i.y,right:e.right-t.width+i.x,bottom:e.bottom-t.height+i.y,left:e.left-t.width-i.x}}function Hi(e){return["top",Z,j,N].some(function(t){return e[t]>=0})}function Wr(e){var t=e.state,i=e.name,n=t.rects.reference,r=t.rects.popper,o=t.modifiersData.preventOverflow,a=Ct(t,{elementContext:"reference"}),s=Ct(t,{altBoundary:!0}),l=Ri(a,n),c=Ri(s,r,o),u=Hi(l),d=Hi(c);t.modifiersData[i]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}var Yr={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Wr};function Kr(e,t,i){var n=F(e),r=["left","top"].indexOf(n)>=0?-1:1,o=typeof i=="function"?i(Object.assign({},t,{placement:e})):i,a=o[0],s=o[1];return a=a||0,s=(s||0)*r,["left","right"].indexOf(n)>=0?{x:s,y:a}:{x:a,y:s}}function Ur(e){var t=e.state,i=e.options,n=e.name,r=i.offset,o=r===void 0?[0,0]:r,a=an.reduce(function(u,d){return u[d]=Kr(d,t.rects,o),u},{}),s=a[t.placement],l=s.x,c=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[n]=a}var $r={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Ur};function Xr(e){var t=e.state,i=e.name;t.modifiersData[i]=fn({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var Jr={name:"popperOffsets",enabled:!0,phase:"read",fn:Xr,data:{}};function Gr(e){return e==="x"?"y":"x"}function Zr(e){var t=e.state,i=e.options,n=e.name,r=i.mainAxis,o=r===void 0?!0:r,a=i.altAxis,s=a===void 0?!1:a,l=i.boundary,c=i.rootBoundary,u=i.altBoundary,d=i.padding,f=i.tether,h=f===void 0?!0:f,p=i.tetherOffset,v=p===void 0?0:p,g=Ct(t,{boundary:l,rootBoundary:c,padding:d,altBoundary:u}),k=F(t.placement),A=yt(t.placement),D=!A,m=Xe(k),y=Gr(m),b=t.modifiersData.popperOffsets,x=t.rects.reference,L=t.rects.popper,E=typeof v=="function"?v(Object.assign({},t.rects,{placement:t.placement})):v,_=typeof E=="number"?{mainAxis:E,altAxis:E}:Object.assign({mainAxis:0,altAxis:0},E),I=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,T={x:0,y:0};if(b){if(o){var S,V=m==="y"?"top":N,C=m==="y"?j:Z,O=m==="y"?"height":"width",B=b[m],et=B+g[V],Bt=B-g[C],Vt=h?-L[O]/2:0,bt=A==="start"?x[O]:L[O],ht=A==="start"?-L[O]:-x[O],K=t.elements.arrow,Ft=h&&K?$e(K):{width:0,height:0},qt=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:cn(),_t=qt[V],Nt=qt[C],jt=xt(0,x[O],Ft[O]),Vn=D?x[O]/2-Vt-jt-_t-_.mainAxis:bt-jt-_t-_.mainAxis,Fn=D?-x[O]/2+Vt+jt+Nt+_.mainAxis:ht+jt+Nt+_.mainAxis,De=t.elements.arrow&&Rt(t.elements.arrow),qn=De?m==="y"?De.clientTop||0:De.clientLeft||0:0,mi=(S=I?.[m])!=null?S:0,Nn=B+Vn-mi-qn,jn=B+Fn-mi,yi=xt(h?re(et,Nn):et,B,h?at(Bt,jn):Bt);b[m]=yi,T[m]=yi-B}if(s){var wi,zn=m==="x"?"top":N,Wn=m==="x"?j:Z,it=b[y],zt=y==="y"?"height":"width",bi=it+g[zn],_i=it-g[Wn],Le=["top",N].indexOf(k)!==-1,ki=(wi=I?.[y])!=null?wi:0,Ei=Le?bi:it-x[zt]-L[zt]-ki+_.altAxis,xi=Le?it+x[zt]+L[zt]-ki-_.altAxis:_i,Di=h&&Le?kr(Ei,it,xi):xt(h?Ei:bi,it,h?xi:_i);b[y]=Di,T[y]=Di-it}t.modifiersData[n]=T}}var Qr={name:"preventOverflow",enabled:!0,phase:"main",fn:Zr,requiresIfExists:["offset"]};function to(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function eo(e){return e===R(e)||!M(e)?Je(e):to(e)}function io(e){var t=e.getBoundingClientRect(),i=gt(t.width)/e.offsetWidth||1,n=gt(t.height)/e.offsetHeight||1;return i!==1||n!==1}function no(e,t,i){i===void 0&&(i=!1);var n=M(t),r=M(t)&&io(t),o=tt(t),a=mt(e,r,i),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(n||!n&&!i)&&((q(t)!=="body"||Ze(o))&&(s=eo(t)),M(t)?(l=mt(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):o&&(l.x=Ge(o))),{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function ro(e){var t=new Map,i=new Set,n=[];e.forEach(function(o){t.set(o.name,o)});function r(o){i.add(o.name),[].concat(o.requires||[],o.requiresIfExists||[]).forEach(function(a){if(!i.has(a)){var s=t.get(a);s&&r(s)}}),n.push(o)}return e.forEach(function(o){i.has(o.name)||r(o)}),n}function oo(e){var t=ro(e);return gr.reduce(function(i,n){return i.concat(t.filter(function(r){return r.phase===n}))},[])}function ao(e){var t;return function(){return t||(t=new Promise(function(i){Promise.resolve().then(function(){t=void 0,i(e())})})),t}}function so(e){var t=e.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(t).map(function(i){return t[i]})}var Mi={placement:"bottom",modifiers:[],strategy:"absolute"};function Bi(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return!t.some(function(n){return!(n&&typeof n.getBoundingClientRect=="function")})}function lo(e){e===void 0&&(e={});var t=e,i=t.defaultModifiers,n=i===void 0?[]:i,r=t.defaultOptions,o=r===void 0?Mi:r;return function(s,l,c){c===void 0&&(c=o);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},Mi,o),modifiersData:{},elements:{reference:s,popper:l},attributes:{},styles:{}},d=[],f=!1,h={state:u,setOptions:function(k){var A=typeof k=="function"?k(u.options):k;v(),u.options=Object.assign({},o,u.options,A),u.scrollParents={reference:st(s)?Dt(s):s.contextElement?Dt(s.contextElement):[],popper:Dt(l)};var D=oo(so([].concat(n,u.options.modifiers)));return u.orderedModifiers=D.filter(function(m){return m.enabled}),p(),h.update()},forceUpdate:function(){if(!f){var k=u.elements,A=k.reference,D=k.popper;if(Bi(A,D)){u.rects={reference:no(A,Rt(D),u.options.strategy==="fixed"),popper:$e(D)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(_){return u.modifiersData[_.name]=Object.assign({},_.data)});for(var m=0;m<u.orderedModifiers.length;m++){if(u.reset===!0){u.reset=!1,m=-1;continue}var y=u.orderedModifiers[m],b=y.fn,x=y.options,L=x===void 0?{}:x,E=y.name;typeof b=="function"&&(u=b({state:u,options:L,name:E,instance:h})||u)}}}},update:ao(function(){return new Promise(function(g){h.forceUpdate(),g(u)})}),destroy:function(){v(),f=!0}};if(!Bi(s,l))return h;h.setOptions(c).then(function(g){!f&&c.onFirstUpdate&&c.onFirstUpdate(g)});function p(){u.orderedModifiers.forEach(function(g){var k=g.name,A=g.options,D=A===void 0?{}:A,m=g.effect;if(typeof m=="function"){var y=m({state:u,name:k,instance:h,options:D});d.push(y||function(){})}})}function v(){d.forEach(function(g){return g()}),d=[]}return h}}var co=[Tr,Jr,Sr,wr,$r,zr,Qr,Lr,Yr],Qe=lo({defaultModifiers:co}),U=function(){return U=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++){t=arguments[i];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},U.apply(this,arguments)},Yt=function(e,t,i){if(i||arguments.length===2)for(var n=0,r=t.length,o;n<r;n++)(o||!(n in t))&&(o||(o=Array.prototype.slice.call(t,0,n)),o[n]=t[n]);return e.concat(o||Array.prototype.slice.call(t))},$={placement:"bottom",triggerType:"click",offsetSkidding:0,offsetDistance:10,delay:300,ignoreClickOutsideClass:!1,onShow:function(){},onHide:function(){},onToggle:function(){}},uo={id:null,override:!0},pn=(function(){function e(t,i,n,r){t===void 0&&(t=null),i===void 0&&(i=null),n===void 0&&(n=$),r===void 0&&(r=uo),this._instanceId=r.id?r.id:t.id,this._targetEl=t,this._triggerEl=i,this._options=U(U({},$),n),this._popperInstance=null,this._visible=!1,this._initialized=!1,this.init(),w.addInstance("Dropdown",this,this._instanceId,r.override)}return e.prototype.init=function(){this._triggerEl&&this._targetEl&&!this._initialized&&(this._popperInstance=this._createPopperInstance(),this._setupEventListeners(),this._initialized=!0)},e.prototype.destroy=function(){var t=this,i=this._getTriggerEvents();this._options.triggerType==="click"&&i.showEvents.forEach(function(n){t._triggerEl.removeEventListener(n,t._clickHandler)}),this._options.triggerType==="hover"&&(i.showEvents.forEach(function(n){t._triggerEl.removeEventListener(n,t._hoverShowTriggerElHandler),t._targetEl.removeEventListener(n,t._hoverShowTargetElHandler)}),i.hideEvents.forEach(function(n){t._triggerEl.removeEventListener(n,t._hoverHideHandler),t._targetEl.removeEventListener(n,t._hoverHideHandler)})),this._popperInstance.destroy(),this._initialized=!1},e.prototype.removeInstance=function(){w.removeInstance("Dropdown",this._instanceId)},e.prototype.destroyAndRemoveInstance=function(){this.destroy(),this.removeInstance()},e.prototype._setupEventListeners=function(){var t=this,i=this._getTriggerEvents();this._clickHandler=function(){t.toggle()},this._options.triggerType==="click"&&i.showEvents.forEach(function(n){t._triggerEl.addEventListener(n,t._clickHandler)}),this._hoverShowTriggerElHandler=function(n){n.type==="click"?t.toggle():setTimeout(function(){t.show()},t._options.delay)},this._hoverShowTargetElHandler=function(){t.show()},this._hoverHideHandler=function(){setTimeout(function(){t._targetEl.matches(":hover")||t.hide()},t._options.delay)},this._options.triggerType==="hover"&&(i.showEvents.forEach(function(n){t._triggerEl.addEventListener(n,t._hoverShowTriggerElHandler),t._targetEl.addEventListener(n,t._hoverShowTargetElHandler)}),i.hideEvents.forEach(function(n){t._triggerEl.addEventListener(n,t._hoverHideHandler),t._targetEl.addEventListener(n,t._hoverHideHandler)}))},e.prototype._createPopperInstance=function(){return Qe(this._triggerEl,this._targetEl,{placement:this._options.placement,modifiers:[{name:"offset",options:{offset:[this._options.offsetSkidding,this._options.offsetDistance]}}]})},e.prototype._setupClickOutsideListener=function(){var t=this;this._clickOutsideEventListener=function(i){t._handleClickOutside(i,t._targetEl)},document.body.addEventListener("click",this._clickOutsideEventListener,!0)},e.prototype._removeClickOutsideListener=function(){document.body.removeEventListener("click",this._clickOutsideEventListener,!0)},e.prototype._handleClickOutside=function(t,i){var n=t.target,r=this._options.ignoreClickOutsideClass,o=!1;r&&document.querySelectorAll(".".concat(r)).forEach(function(a){if(a.contains(n)){o=!0;return}}),n!==i&&!i.contains(n)&&!this._triggerEl.contains(n)&&!o&&this.isVisible()&&this.hide()},e.prototype._getTriggerEvents=function(){switch(this._options.triggerType){case"hover":return{showEvents:["mouseenter","click"],hideEvents:["mouseleave"]};case"click":return{showEvents:["click"],hideEvents:[]};case"none":return{showEvents:[],hideEvents:[]};default:return{showEvents:["click"],hideEvents:[]}}},e.prototype.toggle=function(){this.isVisible()?this.hide():this.show(),this._options.onToggle(this)},e.prototype.isVisible=function(){return this._visible},e.prototype.show=function(){this._targetEl.classList.remove("hidden"),this._targetEl.classList.add("block"),this._targetEl.removeAttribute("aria-hidden"),this._popperInstance.setOptions(function(t){return U(U({},t),{modifiers:Yt(Yt([],t.modifiers,!0),[{name:"eventListeners",enabled:!0}],!1)})}),this._setupClickOutsideListener(),this._popperInstance.update(),this._visible=!0,this._options.onShow(this)},e.prototype.hide=function(){this._targetEl.classList.remove("block"),this._targetEl.classList.add("hidden"),this._targetEl.setAttribute("aria-hidden","true"),this._popperInstance.setOptions(function(t){return U(U({},t),{modifiers:Yt(Yt([],t.modifiers,!0),[{name:"eventListeners",enabled:!1}],!1)})}),this._visible=!1,this._removeClickOutsideListener(),this._options.onHide(this)},e.prototype.updateOnShow=function(t){this._options.onShow=t},e.prototype.updateOnHide=function(t){this._options.onHide=t},e.prototype.updateOnToggle=function(t){this._options.onToggle=t},e})();function ti(){document.querySelectorAll("[data-dropdown-toggle]").forEach(function(e){var t=e.getAttribute("data-dropdown-toggle"),i=document.getElementById(t);if(i){var n=e.getAttribute("data-dropdown-placement"),r=e.getAttribute("data-dropdown-offset-skidding"),o=e.getAttribute("data-dropdown-offset-distance"),a=e.getAttribute("data-dropdown-trigger"),s=e.getAttribute("data-dropdown-delay"),l=e.getAttribute("data-dropdown-ignore-click-outside-class");new pn(i,e,{placement:n||$.placement,triggerType:a||$.triggerType,offsetSkidding:r?parseInt(r):$.offsetSkidding,offsetDistance:o?parseInt(o):$.offsetDistance,delay:s?parseInt(s):$.delay,ignoreClickOutsideClass:l||$.ignoreClickOutsideClass})}else console.error('The dropdown element with id "'.concat(t,'" does not exist. Please check the data-dropdown-toggle attribute.'))})}typeof window<"u"&&(window.Dropdown=pn,window.initDropdowns=ti);var oe=function(){return oe=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++){t=arguments[i];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},oe.apply(this,arguments)},ae={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(){}},ho={id:null,override:!0},vn=(function(){function e(t,i,n){t===void 0&&(t=null),i===void 0&&(i=ae),n===void 0&&(n=ho),this._eventListenerInstances=[],this._instanceId=n.id?n.id:t.id,this._targetEl=t,this._options=oe(oe({},ae),i),this._isHidden=!0,this._backdropEl=null,this._initialized=!1,this.init(),w.addInstance("Modal",this,this._instanceId,n.override)}return e.prototype.init=function(){var t=this;this._targetEl&&!this._initialized&&(this._getPlacementClasses().map(function(i){t._targetEl.classList.add(i)}),this._initialized=!0)},e.prototype.destroy=function(){this._initialized&&(this.removeAllEventListenerInstances(),this._destroyBackdropEl(),this._initialized=!1)},e.prototype.removeInstance=function(){w.removeInstance("Modal",this._instanceId)},e.prototype.destroyAndRemoveInstance=function(){this.destroy(),this.removeInstance()},e.prototype._createBackdrop=function(){var t;if(this._isHidden){var i=document.createElement("div");(t=i.classList).add.apply(t,this._options.backdropClasses.split(" ")),document.querySelector("body").append(i),this._backdropEl=i}},e.prototype._destroyBackdropEl=function(){!this._isHidden&&this._backdropEl&&(this._backdropEl.remove(),this._backdropEl=null)},e.prototype._setupModalCloseEventListeners=function(){var t=this;this._options.backdrop==="dynamic"&&(this._clickOutsideEventListener=function(i){t._handleOutsideClick(i.target)},this._targetEl.addEventListener("click",this._clickOutsideEventListener,!0)),this._keydownEventListener=function(i){i.key==="Escape"&&t.hide()},document.body.addEventListener("keydown",this._keydownEventListener,!0)},e.prototype._removeModalCloseEventListeners=function(){this._options.backdrop==="dynamic"&&this._targetEl.removeEventListener("click",this._clickOutsideEventListener,!0),document.body.removeEventListener("keydown",this._keydownEventListener,!0)},e.prototype._handleOutsideClick=function(t){(t===this._targetEl||t===this._backdropEl&&this.isVisible())&&this.hide()},e.prototype._getPlacementClasses=function(){switch(this._options.placement){case"top-left":return["justify-start","items-start"];case"top-center":return["justify-center","items-start"];case"top-right":return["justify-end","items-start"];case"center-left":return["justify-start","items-center"];case"center":return["justify-center","items-center"];case"center-right":return["justify-end","items-center"];case"bottom-left":return["justify-start","items-end"];case"bottom-center":return["justify-center","items-end"];case"bottom-right":return["justify-end","items-end"];default:return["justify-center","items-center"]}},e.prototype.toggle=function(){this._isHidden?this.show():this.hide(),this._options.onToggle(this)},e.prototype.show=function(){this.isHidden&&(this._targetEl.classList.add("flex"),this._targetEl.classList.remove("hidden"),this._targetEl.setAttribute("aria-modal","true"),this._targetEl.setAttribute("role","dialog"),this._targetEl.removeAttribute("aria-hidden"),this._createBackdrop(),this._isHidden=!1,this._options.closable&&this._setupModalCloseEventListeners(),document.body.classList.add("overflow-hidden"),this._options.onShow(this))},e.prototype.hide=function(){this.isVisible&&(this._targetEl.classList.add("hidden"),this._targetEl.classList.remove("flex"),this._targetEl.setAttribute("aria-hidden","true"),this._targetEl.removeAttribute("aria-modal"),this._targetEl.removeAttribute("role"),this._destroyBackdropEl(),this._isHidden=!0,document.body.classList.remove("overflow-hidden"),this._options.closable&&this._removeModalCloseEventListeners(),this._options.onHide(this))},e.prototype.isVisible=function(){return!this._isHidden},e.prototype.isHidden=function(){return this._isHidden},e.prototype.addEventListenerInstance=function(t,i,n){this._eventListenerInstances.push({element:t,type:i,handler:n})},e.prototype.removeAllEventListenerInstances=function(){this._eventListenerInstances.map(function(t){t.element.removeEventListener(t.type,t.handler)}),this._eventListenerInstances=[]},e.prototype.getAllEventListenerInstances=function(){return this._eventListenerInstances},e.prototype.updateOnShow=function(t){this._options.onShow=t},e.prototype.updateOnHide=function(t){this._options.onHide=t},e.prototype.updateOnToggle=function(t){this._options.onToggle=t},e})();function ei(){document.querySelectorAll("[data-modal-target]").forEach(function(e){var t=e.getAttribute("data-modal-target"),i=document.getElementById(t);if(i){var n=i.getAttribute("data-modal-placement"),r=i.getAttribute("data-modal-backdrop");new vn(i,{placement:n||ae.placement,backdrop:r||ae.backdrop})}else console.error("Modal with id ".concat(t," does not exist. Are you sure that the data-modal-target attribute points to the correct modal id?."))}),document.querySelectorAll("[data-modal-toggle]").forEach(function(e){var t=e.getAttribute("data-modal-toggle");if(document.getElementById(t)){var i=w.getInstance("Modal",t);if(i){var n=function(){i.toggle()};e.addEventListener("click",n),i.addEventListenerInstance(e,"click",n)}else console.error("Modal with id ".concat(t," has not been initialized. Please initialize it using the data-modal-target attribute."))}else console.error("Modal with id ".concat(t," does not exist. Are you sure that the data-modal-toggle attribute points to the correct modal id?"))}),document.querySelectorAll("[data-modal-show]").forEach(function(e){var t=e.getAttribute("data-modal-show");if(document.getElementById(t)){var i=w.getInstance("Modal",t);if(i){var n=function(){i.show()};e.addEventListener("click",n),i.addEventListenerInstance(e,"click",n)}else console.error("Modal with id ".concat(t," has not been initialized. Please initialize it using the data-modal-target attribute."))}else console.error("Modal with id ".concat(t," does not exist. Are you sure that the data-modal-show attribute points to the correct modal id?"))}),document.querySelectorAll("[data-modal-hide]").forEach(function(e){var t=e.getAttribute("data-modal-hide");if(document.getElementById(t)){var i=w.getInstance("Modal",t);if(i){var n=function(){i.hide()};e.addEventListener("click",n),i.addEventListenerInstance(e,"click",n)}else console.error("Modal with id ".concat(t," has not been initialized. Please initialize it using the data-modal-target attribute."))}else console.error("Modal with id ".concat(t," does not exist. Are you sure that the data-modal-hide attribute points to the correct modal id?"))})}typeof window<"u"&&(window.Modal=vn,window.initModals=ei);var se=function(){return se=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++){t=arguments[i];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},se.apply(this,arguments)},ot={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(){}},fo={id:null,override:!0},gn=(function(){function e(t,i,n){t===void 0&&(t=null),i===void 0&&(i=ot),n===void 0&&(n=fo),this._eventListenerInstances=[],this._instanceId=n.id?n.id:t.id,this._targetEl=t,this._options=se(se({},ot),i),this._visible=!1,this._initialized=!1,this.init(),w.addInstance("Drawer",this,this._instanceId,n.override)}return e.prototype.init=function(){var t=this;this._targetEl&&!this._initialized&&(this._targetEl.setAttribute("aria-hidden","true"),this._targetEl.classList.add("transition-transform"),this._getPlacementClasses(this._options.placement).base.map(function(i){t._targetEl.classList.add(i)}),this._handleEscapeKey=function(i){i.key==="Escape"&&t.isVisible()&&t.hide()},document.addEventListener("keydown",this._handleEscapeKey),this._initialized=!0)},e.prototype.destroy=function(){this._initialized&&(this.removeAllEventListenerInstances(),this._destroyBackdropEl(),document.removeEventListener("keydown",this._handleEscapeKey),this._initialized=!1)},e.prototype.removeInstance=function(){w.removeInstance("Drawer",this._instanceId)},e.prototype.destroyAndRemoveInstance=function(){this.destroy(),this.removeInstance()},e.prototype.hide=function(){var t=this;this._options.edge?(this._getPlacementClasses(this._options.placement+"-edge").active.map(function(i){t._targetEl.classList.remove(i)}),this._getPlacementClasses(this._options.placement+"-edge").inactive.map(function(i){t._targetEl.classList.add(i)})):(this._getPlacementClasses(this._options.placement).active.map(function(i){t._targetEl.classList.remove(i)}),this._getPlacementClasses(this._options.placement).inactive.map(function(i){t._targetEl.classList.add(i)})),this._targetEl.setAttribute("aria-hidden","true"),this._targetEl.removeAttribute("aria-modal"),this._targetEl.removeAttribute("role"),this._options.bodyScrolling||document.body.classList.remove("overflow-hidden"),this._options.backdrop&&this._destroyBackdropEl(),this._visible=!1,this._options.onHide(this)},e.prototype.show=function(){var t=this;this._options.edge?(this._getPlacementClasses(this._options.placement+"-edge").active.map(function(i){t._targetEl.classList.add(i)}),this._getPlacementClasses(this._options.placement+"-edge").inactive.map(function(i){t._targetEl.classList.remove(i)})):(this._getPlacementClasses(this._options.placement).active.map(function(i){t._targetEl.classList.add(i)}),this._getPlacementClasses(this._options.placement).inactive.map(function(i){t._targetEl.classList.remove(i)})),this._targetEl.setAttribute("aria-modal","true"),this._targetEl.setAttribute("role","dialog"),this._targetEl.removeAttribute("aria-hidden"),this._options.bodyScrolling||document.body.classList.add("overflow-hidden"),this._options.backdrop&&this._createBackdrop(),this._visible=!0,this._options.onShow(this)},e.prototype.toggle=function(){this.isVisible()?this.hide():this.show()},e.prototype._createBackdrop=function(){var t,i=this;if(!this._visible){var n=document.createElement("div");n.setAttribute("drawer-backdrop",""),(t=n.classList).add.apply(t,this._options.backdropClasses.split(" ")),document.querySelector("body").append(n),n.addEventListener("click",function(){i.hide()})}},e.prototype._destroyBackdropEl=function(){this._visible&&document.querySelector("[drawer-backdrop]")!==null&&document.querySelector("[drawer-backdrop]").remove()},e.prototype._getPlacementClasses=function(t){switch(t){case"top":return{base:["top-0","left-0","right-0"],active:["transform-none"],inactive:["-translate-y-full"]};case"right":return{base:["right-0","top-0"],active:["transform-none"],inactive:["translate-x-full"]};case"bottom":return{base:["bottom-0","left-0","right-0"],active:["transform-none"],inactive:["translate-y-full"]};case"left":return{base:["left-0","top-0"],active:["transform-none"],inactive:["-translate-x-full"]};case"bottom-edge":return{base:["left-0","top-0"],active:["transform-none"],inactive:["translate-y-full",this._options.edgeOffset]};default:return{base:["left-0","top-0"],active:["transform-none"],inactive:["-translate-x-full"]}}},e.prototype.isHidden=function(){return!this._visible},e.prototype.isVisible=function(){return this._visible},e.prototype.addEventListenerInstance=function(t,i,n){this._eventListenerInstances.push({element:t,type:i,handler:n})},e.prototype.removeAllEventListenerInstances=function(){this._eventListenerInstances.map(function(t){t.element.removeEventListener(t.type,t.handler)}),this._eventListenerInstances=[]},e.prototype.getAllEventListenerInstances=function(){return this._eventListenerInstances},e.prototype.updateOnShow=function(t){this._options.onShow=t},e.prototype.updateOnHide=function(t){this._options.onHide=t},e.prototype.updateOnToggle=function(t){this._options.onToggle=t},e})();function ii(){document.querySelectorAll("[data-drawer-target]").forEach(function(e){var t=e.getAttribute("data-drawer-target"),i=document.getElementById(t);if(i){var n=e.getAttribute("data-drawer-placement"),r=e.getAttribute("data-drawer-body-scrolling"),o=e.getAttribute("data-drawer-backdrop"),a=e.getAttribute("data-drawer-edge"),s=e.getAttribute("data-drawer-edge-offset");new gn(i,{placement:n||ot.placement,bodyScrolling:r?r==="true":ot.bodyScrolling,backdrop:o?o==="true":ot.backdrop,edge:a?a==="true":ot.edge,edgeOffset:s||ot.edgeOffset})}else console.error("Drawer with id ".concat(t," not found. Are you sure that the data-drawer-target attribute points to the correct drawer id?"))}),document.querySelectorAll("[data-drawer-toggle]").forEach(function(e){var t=e.getAttribute("data-drawer-toggle");if(document.getElementById(t)){var i=w.getInstance("Drawer",t);if(i){var n=function(){i.toggle()};e.addEventListener("click",n),i.addEventListenerInstance(e,"click",n)}else console.error("Drawer with id ".concat(t," has not been initialized. Please initialize it using the data-drawer-target attribute."))}else console.error("Drawer with id ".concat(t," not found. Are you sure that the data-drawer-target attribute points to the correct drawer id?"))}),document.querySelectorAll("[data-drawer-dismiss], [data-drawer-hide]").forEach(function(e){var t=e.getAttribute("data-drawer-dismiss")?e.getAttribute("data-drawer-dismiss"):e.getAttribute("data-drawer-hide");if(document.getElementById(t)){var i=w.getInstance("Drawer",t);if(i){var n=function(){i.hide()};e.addEventListener("click",n),i.addEventListenerInstance(e,"click",n)}else console.error("Drawer with id ".concat(t," has not been initialized. Please initialize it using the data-drawer-target attribute."))}else console.error("Drawer with id ".concat(t," not found. Are you sure that the data-drawer-target attribute points to the correct drawer id"))}),document.querySelectorAll("[data-drawer-show]").forEach(function(e){var t=e.getAttribute("data-drawer-show");if(document.getElementById(t)){var i=w.getInstance("Drawer",t);if(i){var n=function(){i.show()};e.addEventListener("click",n),i.addEventListenerInstance(e,"click",n)}else console.error("Drawer with id ".concat(t," has not been initialized. Please initialize it using the data-drawer-target attribute."))}else console.error("Drawer with id ".concat(t," not found. Are you sure that the data-drawer-target attribute points to the correct drawer id?"))})}typeof window<"u"&&(window.Drawer=gn,window.initDrawers=ii);var le=function(){return le=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++){t=arguments[i];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},le.apply(this,arguments)},ce={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(){}},po={id:null,override:!0},mn=(function(){function e(t,i,n,r){t===void 0&&(t=null),i===void 0&&(i=[]),n===void 0&&(n=ce),r===void 0&&(r=po),this._instanceId=r.id?r.id:t.id,this._tabsEl=t,this._items=i,this._activeTab=n?this.getTab(n.defaultTabId):null,this._options=le(le({},ce),n),this._initialized=!1,this.init(),w.addInstance("Tabs",this,this._instanceId,r.override)}return e.prototype.init=function(){var t=this;this._items.length&&!this._initialized&&(this._activeTab||this.setActiveTab(this._items[0]),this.show(this._activeTab.id,!0),this._items.map(function(i){i.triggerEl.addEventListener("click",function(n){n.preventDefault(),t.show(i.id)})}))},e.prototype.destroy=function(){this._initialized&&(this._initialized=!1)},e.prototype.removeInstance=function(){this.destroy(),w.removeInstance("Tabs",this._instanceId)},e.prototype.destroyAndRemoveInstance=function(){this.destroy(),this.removeInstance()},e.prototype.getActiveTab=function(){return this._activeTab},e.prototype.setActiveTab=function(t){this._activeTab=t},e.prototype.getTab=function(t){return this._items.filter(function(i){return i.id===t})[0]},e.prototype.show=function(t,i){var n,r,o=this;i===void 0&&(i=!1);var a=this.getTab(t);a===this._activeTab&&!i||(this._items.map(function(s){var l,c;s!==a&&((l=s.triggerEl.classList).remove.apply(l,o._options.activeClasses.split(" ")),(c=s.triggerEl.classList).add.apply(c,o._options.inactiveClasses.split(" ")),s.targetEl.classList.add("hidden"),s.triggerEl.setAttribute("aria-selected","false"))}),(n=a.triggerEl.classList).add.apply(n,this._options.activeClasses.split(" ")),(r=a.triggerEl.classList).remove.apply(r,this._options.inactiveClasses.split(" ")),a.triggerEl.setAttribute("aria-selected","true"),a.targetEl.classList.remove("hidden"),this.setActiveTab(a),this._options.onShow(this,a))},e.prototype.updateOnShow=function(t){this._options.onShow=t},e})();function ni(){document.querySelectorAll("[data-tabs-toggle]").forEach(function(e){var t=[],i=e.getAttribute("data-tabs-active-classes"),n=e.getAttribute("data-tabs-inactive-classes"),r=null;e.querySelectorAll('[role="tab"]').forEach(function(o){var a=o.getAttribute("aria-selected")==="true",s={id:o.getAttribute("data-tabs-target"),triggerEl:o,targetEl:document.querySelector(o.getAttribute("data-tabs-target"))};t.push(s),a&&(r=s.id)}),new mn(e,t,{defaultTabId:r,activeClasses:i||ce.activeClasses,inactiveClasses:n||ce.inactiveClasses})})}typeof window<"u"&&(window.Tabs=mn,window.initTabs=ni);var X=function(){return X=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++){t=arguments[i];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},X.apply(this,arguments)},Kt=function(e,t,i){if(i||arguments.length===2)for(var n=0,r=t.length,o;n<r;n++)(o||!(n in t))&&(o||(o=Array.prototype.slice.call(t,0,n)),o[n]=t[n]);return e.concat(o||Array.prototype.slice.call(t))},ue={placement:"top",triggerType:"hover",onShow:function(){},onHide:function(){},onToggle:function(){}},vo={id:null,override:!0},yn=(function(){function e(t,i,n,r){t===void 0&&(t=null),i===void 0&&(i=null),n===void 0&&(n=ue),r===void 0&&(r=vo),this._instanceId=r.id?r.id:t.id,this._targetEl=t,this._triggerEl=i,this._options=X(X({},ue),n),this._popperInstance=null,this._visible=!1,this._initialized=!1,this.init(),w.addInstance("Tooltip",this,this._instanceId,r.override)}return e.prototype.init=function(){this._triggerEl&&this._targetEl&&!this._initialized&&(this._setupEventListeners(),this._popperInstance=this._createPopperInstance(),this._initialized=!0)},e.prototype.destroy=function(){var t=this;if(this._initialized){var i=this._getTriggerEvents();i.showEvents.forEach(function(n){t._triggerEl.removeEventListener(n,t._showHandler)}),i.hideEvents.forEach(function(n){t._triggerEl.removeEventListener(n,t._hideHandler)}),this._removeKeydownListener(),this._removeClickOutsideListener(),this._popperInstance&&this._popperInstance.destroy(),this._initialized=!1}},e.prototype.removeInstance=function(){w.removeInstance("Tooltip",this._instanceId)},e.prototype.destroyAndRemoveInstance=function(){this.destroy(),this.removeInstance()},e.prototype._setupEventListeners=function(){var t=this,i=this._getTriggerEvents();this._showHandler=function(){t.show()},this._hideHandler=function(){t.hide()},i.showEvents.forEach(function(n){t._triggerEl.addEventListener(n,t._showHandler)}),i.hideEvents.forEach(function(n){t._triggerEl.addEventListener(n,t._hideHandler)})},e.prototype._createPopperInstance=function(){return Qe(this._triggerEl,this._targetEl,{placement:this._options.placement,modifiers:[{name:"offset",options:{offset:[0,8]}}]})},e.prototype._getTriggerEvents=function(){switch(this._options.triggerType){case"hover":return{showEvents:["mouseenter","focus"],hideEvents:["mouseleave","blur"]};case"click":return{showEvents:["click","focus"],hideEvents:["focusout","blur"]};case"none":return{showEvents:[],hideEvents:[]};default:return{showEvents:["mouseenter","focus"],hideEvents:["mouseleave","blur"]}}},e.prototype._setupKeydownListener=function(){var t=this;this._keydownEventListener=function(i){i.key==="Escape"&&t.hide()},document.body.addEventListener("keydown",this._keydownEventListener,!0)},e.prototype._removeKeydownListener=function(){document.body.removeEventListener("keydown",this._keydownEventListener,!0)},e.prototype._setupClickOutsideListener=function(){var t=this;this._clickOutsideEventListener=function(i){t._handleClickOutside(i,t._targetEl)},document.body.addEventListener("click",this._clickOutsideEventListener,!0)},e.prototype._removeClickOutsideListener=function(){document.body.removeEventListener("click",this._clickOutsideEventListener,!0)},e.prototype._handleClickOutside=function(t,i){var n=t.target;n!==i&&!i.contains(n)&&!this._triggerEl.contains(n)&&this.isVisible()&&this.hide()},e.prototype.isVisible=function(){return this._visible},e.prototype.toggle=function(){this.isVisible()?this.hide():this.show()},e.prototype.show=function(){this._targetEl.classList.remove("opacity-0","invisible"),this._targetEl.classList.add("opacity-100","visible"),this._popperInstance.setOptions(function(t){return X(X({},t),{modifiers:Kt(Kt([],t.modifiers,!0),[{name:"eventListeners",enabled:!0}],!1)})}),this._setupClickOutsideListener(),this._setupKeydownListener(),this._popperInstance.update(),this._visible=!0,this._options.onShow(this)},e.prototype.hide=function(){this._targetEl.classList.remove("opacity-100","visible"),this._targetEl.classList.add("opacity-0","invisible"),this._popperInstance.setOptions(function(t){return X(X({},t),{modifiers:Kt(Kt([],t.modifiers,!0),[{name:"eventListeners",enabled:!1}],!1)})}),this._removeClickOutsideListener(),this._removeKeydownListener(),this._visible=!1,this._options.onHide(this)},e.prototype.updateOnShow=function(t){this._options.onShow=t},e.prototype.updateOnHide=function(t){this._options.onHide=t},e.prototype.updateOnToggle=function(t){this._options.onToggle=t},e})();function ri(){document.querySelectorAll("[data-tooltip-target]").forEach(function(e){var t=e.getAttribute("data-tooltip-target"),i=document.getElementById(t);if(i){var n=e.getAttribute("data-tooltip-trigger"),r=e.getAttribute("data-tooltip-placement");new yn(i,e,{placement:r||ue.placement,triggerType:n||ue.triggerType})}else console.error('The tooltip element with id "'.concat(t,'" does not exist. Please check the data-tooltip-target attribute.'))})}typeof window<"u"&&(window.Tooltip=yn,window.initTooltips=ri);var J=function(){return J=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++){t=arguments[i];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},J.apply(this,arguments)},Ut=function(e,t,i){if(i||arguments.length===2)for(var n=0,r=t.length,o;n<r;n++)(o||!(n in t))&&(o||(o=Array.prototype.slice.call(t,0,n)),o[n]=t[n]);return e.concat(o||Array.prototype.slice.call(t))},Lt={placement:"top",offset:10,triggerType:"hover",onShow:function(){},onHide:function(){},onToggle:function(){}},go={id:null,override:!0},wn=(function(){function e(t,i,n,r){t===void 0&&(t=null),i===void 0&&(i=null),n===void 0&&(n=Lt),r===void 0&&(r=go),this._instanceId=r.id?r.id:t.id,this._targetEl=t,this._triggerEl=i,this._options=J(J({},Lt),n),this._popperInstance=null,this._visible=!1,this._initialized=!1,this.init(),w.addInstance("Popover",this,r.id?r.id:this._targetEl.id,r.override)}return e.prototype.init=function(){this._triggerEl&&this._targetEl&&!this._initialized&&(this._setupEventListeners(),this._popperInstance=this._createPopperInstance(),this._initialized=!0)},e.prototype.destroy=function(){var t=this;if(this._initialized){var i=this._getTriggerEvents();i.showEvents.forEach(function(n){t._triggerEl.removeEventListener(n,t._showHandler),t._targetEl.removeEventListener(n,t._showHandler)}),i.hideEvents.forEach(function(n){t._triggerEl.removeEventListener(n,t._hideHandler),t._targetEl.removeEventListener(n,t._hideHandler)}),this._removeKeydownListener(),this._removeClickOutsideListener(),this._popperInstance&&this._popperInstance.destroy(),this._initialized=!1}},e.prototype.removeInstance=function(){w.removeInstance("Popover",this._instanceId)},e.prototype.destroyAndRemoveInstance=function(){this.destroy(),this.removeInstance()},e.prototype._setupEventListeners=function(){var t=this,i=this._getTriggerEvents();this._showHandler=function(){t.show()},this._hideHandler=function(){setTimeout(function(){t._targetEl.matches(":hover")||t.hide()},100)},i.showEvents.forEach(function(n){t._triggerEl.addEventListener(n,t._showHandler),t._targetEl.addEventListener(n,t._showHandler)}),i.hideEvents.forEach(function(n){t._triggerEl.addEventListener(n,t._hideHandler),t._targetEl.addEventListener(n,t._hideHandler)})},e.prototype._createPopperInstance=function(){return Qe(this._triggerEl,this._targetEl,{placement:this._options.placement,modifiers:[{name:"offset",options:{offset:[0,this._options.offset]}}]})},e.prototype._getTriggerEvents=function(){switch(this._options.triggerType){case"hover":return{showEvents:["mouseenter","focus"],hideEvents:["mouseleave","blur"]};case"click":return{showEvents:["click","focus"],hideEvents:["focusout","blur"]};case"none":return{showEvents:[],hideEvents:[]};default:return{showEvents:["mouseenter","focus"],hideEvents:["mouseleave","blur"]}}},e.prototype._setupKeydownListener=function(){var t=this;this._keydownEventListener=function(i){i.key==="Escape"&&t.hide()},document.body.addEventListener("keydown",this._keydownEventListener,!0)},e.prototype._removeKeydownListener=function(){document.body.removeEventListener("keydown",this._keydownEventListener,!0)},e.prototype._setupClickOutsideListener=function(){var t=this;this._clickOutsideEventListener=function(i){t._handleClickOutside(i,t._targetEl)},document.body.addEventListener("click",this._clickOutsideEventListener,!0)},e.prototype._removeClickOutsideListener=function(){document.body.removeEventListener("click",this._clickOutsideEventListener,!0)},e.prototype._handleClickOutside=function(t,i){var n=t.target;n!==i&&!i.contains(n)&&!this._triggerEl.contains(n)&&this.isVisible()&&this.hide()},e.prototype.isVisible=function(){return this._visible},e.prototype.toggle=function(){this.isVisible()?this.hide():this.show(),this._options.onToggle(this)},e.prototype.show=function(){this._targetEl.classList.remove("opacity-0","invisible"),this._targetEl.classList.add("opacity-100","visible"),this._popperInstance.setOptions(function(t){return J(J({},t),{modifiers:Ut(Ut([],t.modifiers,!0),[{name:"eventListeners",enabled:!0}],!1)})}),this._setupClickOutsideListener(),this._setupKeydownListener(),this._popperInstance.update(),this._visible=!0,this._options.onShow(this)},e.prototype.hide=function(){this._targetEl.classList.remove("opacity-100","visible"),this._targetEl.classList.add("opacity-0","invisible"),this._popperInstance.setOptions(function(t){return J(J({},t),{modifiers:Ut(Ut([],t.modifiers,!0),[{name:"eventListeners",enabled:!1}],!1)})}),this._removeClickOutsideListener(),this._removeKeydownListener(),this._visible=!1,this._options.onHide(this)},e.prototype.updateOnShow=function(t){this._options.onShow=t},e.prototype.updateOnHide=function(t){this._options.onHide=t},e.prototype.updateOnToggle=function(t){this._options.onToggle=t},e})();function oi(){document.querySelectorAll("[data-popover-target]").forEach(function(e){var t=e.getAttribute("data-popover-target"),i=document.getElementById(t);if(i){var n=e.getAttribute("data-popover-trigger"),r=e.getAttribute("data-popover-placement"),o=e.getAttribute("data-popover-offset");new wn(i,e,{placement:r||Lt.placement,offset:o?parseInt(o):Lt.offset,triggerType:n||Lt.triggerType})}else console.error('The popover element with id "'.concat(t,'" does not exist. Please check the data-popover-target attribute.'))})}typeof window<"u"&&(window.Popover=wn,window.initPopovers=oi);var de=function(){return de=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++){t=arguments[i];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},de.apply(this,arguments)},Be={triggerType:"hover",onShow:function(){},onHide:function(){},onToggle:function(){}},mo={id:null,override:!0},bn=(function(){function e(t,i,n,r,o){t===void 0&&(t=null),i===void 0&&(i=null),n===void 0&&(n=null),r===void 0&&(r=Be),o===void 0&&(o=mo),this._instanceId=o.id?o.id:n.id,this._parentEl=t,this._triggerEl=i,this._targetEl=n,this._options=de(de({},Be),r),this._visible=!1,this._initialized=!1,this.init(),w.addInstance("Dial",this,this._instanceId,o.override)}return e.prototype.init=function(){var t=this;if(this._triggerEl&&this._targetEl&&!this._initialized){var i=this._getTriggerEventTypes(this._options.triggerType);this._showEventHandler=function(){t.show()},i.showEvents.forEach(function(n){t._triggerEl.addEventListener(n,t._showEventHandler),t._targetEl.addEventListener(n,t._showEventHandler)}),this._hideEventHandler=function(){t._parentEl.matches(":hover")||t.hide()},i.hideEvents.forEach(function(n){t._parentEl.addEventListener(n,t._hideEventHandler)}),this._initialized=!0}},e.prototype.destroy=function(){var t=this;if(this._initialized){var i=this._getTriggerEventTypes(this._options.triggerType);i.showEvents.forEach(function(n){t._triggerEl.removeEventListener(n,t._showEventHandler),t._targetEl.removeEventListener(n,t._showEventHandler)}),i.hideEvents.forEach(function(n){t._parentEl.removeEventListener(n,t._hideEventHandler)}),this._initialized=!1}},e.prototype.removeInstance=function(){w.removeInstance("Dial",this._instanceId)},e.prototype.destroyAndRemoveInstance=function(){this.destroy(),this.removeInstance()},e.prototype.hide=function(){this._targetEl.classList.add("hidden"),this._triggerEl&&this._triggerEl.setAttribute("aria-expanded","false"),this._visible=!1,this._options.onHide(this)},e.prototype.show=function(){this._targetEl.classList.remove("hidden"),this._triggerEl&&this._triggerEl.setAttribute("aria-expanded","true"),this._visible=!0,this._options.onShow(this)},e.prototype.toggle=function(){this._visible?this.hide():this.show()},e.prototype.isHidden=function(){return!this._visible},e.prototype.isVisible=function(){return this._visible},e.prototype._getTriggerEventTypes=function(t){switch(t){case"hover":return{showEvents:["mouseenter","focus"],hideEvents:["mouseleave","blur"]};case"click":return{showEvents:["click","focus"],hideEvents:["focusout","blur"]};case"none":return{showEvents:[],hideEvents:[]};default:return{showEvents:["mouseenter","focus"],hideEvents:["mouseleave","blur"]}}},e.prototype.updateOnShow=function(t){this._options.onShow=t},e.prototype.updateOnHide=function(t){this._options.onHide=t},e.prototype.updateOnToggle=function(t){this._options.onToggle=t},e})();function ai(){document.querySelectorAll("[data-dial-init]").forEach(function(e){var t=e.querySelector("[data-dial-toggle]");if(t){var i=t.getAttribute("data-dial-toggle"),n=document.getElementById(i);if(n){var r=t.getAttribute("data-dial-trigger");new bn(e,t,n,{triggerType:r||Be.triggerType})}else console.error("Dial with id ".concat(i," does not exist. Are you sure that the data-dial-toggle attribute points to the correct modal id?"))}else console.error("Dial with id ".concat(e.id," does not have a trigger element. Are you sure that the data-dial-toggle attribute exists?"))})}typeof window<"u"&&(window.Dial=bn,window.initDials=ai);var he=function(){return he=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++){t=arguments[i];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},he.apply(this,arguments)},Vi={minValue:null,maxValue:null,onIncrement:function(){},onDecrement:function(){}},yo={id:null,override:!0},_n=(function(){function e(t,i,n,r,o){t===void 0&&(t=null),i===void 0&&(i=null),n===void 0&&(n=null),r===void 0&&(r=Vi),o===void 0&&(o=yo),this._instanceId=o.id?o.id:t.id,this._targetEl=t,this._incrementEl=i,this._decrementEl=n,this._options=he(he({},Vi),r),this._initialized=!1,this.init(),w.addInstance("InputCounter",this,this._instanceId,o.override)}return e.prototype.init=function(){var t=this;this._targetEl&&!this._initialized&&(this._inputHandler=function(i){var n=i.target;/^\d*$/.test(n.value)||(n.value=n.value.replace(/[^\d]/g,"")),t._options.maxValue!==null&&parseInt(n.value)>t._options.maxValue&&(n.value=t._options.maxValue.toString()),t._options.minValue!==null&&parseInt(n.value)<t._options.minValue&&(n.value=t._options.minValue.toString())},this._incrementClickHandler=function(){t.increment()},this._decrementClickHandler=function(){t.decrement()},this._targetEl.addEventListener("input",this._inputHandler),this._incrementEl&&this._incrementEl.addEventListener("click",this._incrementClickHandler),this._decrementEl&&this._decrementEl.addEventListener("click",this._decrementClickHandler),this._initialized=!0)},e.prototype.destroy=function(){this._targetEl&&this._initialized&&(this._targetEl.removeEventListener("input",this._inputHandler),this._incrementEl&&this._incrementEl.removeEventListener("click",this._incrementClickHandler),this._decrementEl&&this._decrementEl.removeEventListener("click",this._decrementClickHandler),this._initialized=!1)},e.prototype.removeInstance=function(){w.removeInstance("InputCounter",this._instanceId)},e.prototype.destroyAndRemoveInstance=function(){this.destroy(),this.removeInstance()},e.prototype.getCurrentValue=function(){return parseInt(this._targetEl.value)||0},e.prototype.increment=function(){this._options.maxValue!==null&&this.getCurrentValue()>=this._options.maxValue||(this._targetEl.value=(this.getCurrentValue()+1).toString(),this._options.onIncrement(this))},e.prototype.decrement=function(){this._options.minValue!==null&&this.getCurrentValue()<=this._options.minValue||(this._targetEl.value=(this.getCurrentValue()-1).toString(),this._options.onDecrement(this))},e.prototype.updateOnIncrement=function(t){this._options.onIncrement=t},e.prototype.updateOnDecrement=function(t){this._options.onDecrement=t},e})();function si(){document.querySelectorAll("[data-input-counter]").forEach(function(e){var t=e.id,i=document.querySelector('[data-input-counter-increment="'+t+'"]'),n=document.querySelector('[data-input-counter-decrement="'+t+'"]'),r=e.getAttribute("data-input-counter-min"),o=e.getAttribute("data-input-counter-max");e?w.instanceExists("InputCounter",e.getAttribute("id"))||new _n(e,i||null,n||null,{minValue:r?parseInt(r):null,maxValue:o?parseInt(o):null}):console.error('The target element with id "'.concat(t,'" does not exist. Please check the data-input-counter attribute.'))})}typeof window<"u"&&(window.InputCounter=_n,window.initInputCounters=si);var fe=function(){return fe=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++){t=arguments[i];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},fe.apply(this,arguments)},pe={htmlEntities:!1,contentType:"input",onCopy:function(){}},wo={id:null,override:!0},kn=(function(){function e(t,i,n,r){t===void 0&&(t=null),i===void 0&&(i=null),n===void 0&&(n=pe),r===void 0&&(r=wo),this._instanceId=r.id?r.id:i.id,this._triggerEl=t,this._targetEl=i,this._options=fe(fe({},pe),n),this._initialized=!1,this.init(),w.addInstance("CopyClipboard",this,this._instanceId,r.override)}return e.prototype.init=function(){var t=this;this._targetEl&&this._triggerEl&&!this._initialized&&(this._triggerElClickHandler=function(){t.copy()},this._triggerEl&&this._triggerEl.addEventListener("click",this._triggerElClickHandler),this._initialized=!0)},e.prototype.destroy=function(){this._triggerEl&&this._targetEl&&this._initialized&&(this._triggerEl&&this._triggerEl.removeEventListener("click",this._triggerElClickHandler),this._initialized=!1)},e.prototype.removeInstance=function(){w.removeInstance("CopyClipboard",this._instanceId)},e.prototype.destroyAndRemoveInstance=function(){this.destroy(),this.removeInstance()},e.prototype.getTargetValue=function(){if(this._options.contentType==="input")return this._targetEl.value;if(this._options.contentType==="innerHTML")return this._targetEl.innerHTML;if(this._options.contentType==="textContent")return this._targetEl.textContent.replace(/\s+/g," ").trim()},e.prototype.copy=function(){var t=this.getTargetValue();this._options.htmlEntities&&(t=this.decodeHTML(t));var i=document.createElement("textarea");return i.value=t,document.body.appendChild(i),i.select(),document.execCommand("copy"),document.body.removeChild(i),this._options.onCopy(this),t},e.prototype.decodeHTML=function(t){var i=document.createElement("textarea");return i.innerHTML=t,i.textContent},e.prototype.updateOnCopyCallback=function(t){this._options.onCopy=t},e})();function li(){document.querySelectorAll("[data-copy-to-clipboard-target]").forEach(function(e){var t=e.getAttribute("data-copy-to-clipboard-target"),i=document.getElementById(t),n=e.getAttribute("data-copy-to-clipboard-content-type"),r=e.getAttribute("data-copy-to-clipboard-html-entities");i?w.instanceExists("CopyClipboard",i.getAttribute("id"))||new kn(e,i,{htmlEntities:r&&r==="true"?!0:pe.htmlEntities,contentType:n||pe.contentType}):console.error('The target element with id "'.concat(t,'" does not exist. Please check the data-copy-to-clipboard-target attribute.'))})}typeof window<"u"&&(window.CopyClipboard=kn,window.initClipboards=li);function Ve(e,t){(t==null||t>e.length)&&(t=e.length);for(var i=0,n=Array(t);i<t;i++)n[i]=e[i];return n}function bo(e){if(Array.isArray(e))return e}function _o(e){if(Array.isArray(e))return Ve(e)}function ko(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ci(e,t,i){return t=Q(t),Ao(e,En()?Reflect.construct(t,i||[],Q(e).constructor):t.apply(e,i))}function ct(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Fi(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,So(n.key),n)}}function ut(e,t,i){return t&&Fi(e.prototype,t),i&&Fi(e,i),Object.defineProperty(e,"prototype",{writable:!1}),e}function St(){return St=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(e,t,i){var n=Io(e,t);if(n){var r=Object.getOwnPropertyDescriptor(n,t);return r.get?r.get.call(arguments.length<3?e:i):r.value}},St.apply(null,arguments)}function Q(e){return Q=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Q(e)}function ui(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Fe(e,t)}function En(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(En=function(){return!!e})()}function Eo(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function xo(e,t){var i=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(i!=null){var n,r,o,a,s=[],l=!0,c=!1;try{if(o=(i=i.call(e)).next,t===0){if(Object(i)!==i)return;l=!1}else for(;!(l=(n=o.call(i)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(u){c=!0,r=u}finally{try{if(!l&&i.return!=null&&(a=i.return(),Object(a)!==a))return}finally{if(c)throw r}}return s}}function Do(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Lo(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ao(e,t){if(t&&(typeof t=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ko(e)}function Fe(e,t){return Fe=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,n){return i.__proto__=n,i},Fe(e,t)}function P(e,t){return bo(e)||xo(e,t)||xn(e,t)||Do()}function Io(e,t){for(;!{}.hasOwnProperty.call(e,t)&&(e=Q(e))!==null;);return e}function Ht(e){return _o(e)||Eo(e)||xn(e)||Lo()}function Co(e,t){if(typeof e!="object"||!e)return e;var i=e[Symbol.toPrimitive];if(i!==void 0){var n=i.call(e,t||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function So(e){var t=Co(e,"string");return typeof t=="symbol"?t:t+""}function ve(e){"@babel/helpers - typeof";return ve=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ve(e)}function xn(e,t){if(e){if(typeof e=="string")return Ve(e,t);var i={}.toString.call(e).slice(8,-1);return i==="Object"&&e.constructor&&(i=e.constructor.name),i==="Map"||i==="Set"?Array.from(e):i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?Ve(e,t):void 0}}function W(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function di(e){return e[e.length-1]}function lt(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),n=1;n<t;n++)i[n-1]=arguments[n];return i.forEach(function(r){e.includes(r)||e.push(r)}),e}function Ae(e,t){return e?e.split(t):[]}function hi(e,t,i){return(t===void 0||e>=t)&&(i===void 0||e<=i)}function Dn(e,t,i){return e<t?t:e>i?i:e}function wt(e,t){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,r=arguments.length>4&&arguments[4]!==void 0?arguments[4]:"",o=Object.keys(i).reduce(function(s,l){var c=i[l];return typeof c=="function"&&(c=c(n)),"".concat(s," ").concat(l,'="').concat(c,'"')},e);r+="<".concat(o,"></").concat(e,">");var a=n+1;return a<t?wt(e,t,i,a,r):r}function fi(e){return e.replace(/>\s+/g,">").replace(/\s+</,"<")}function qe(e){return new Date(e).setHours(0,0,0,0)}function dt(){return new Date().setHours(0,0,0,0)}function G(){switch(arguments.length){case 0:return dt();case 1:return qe(arguments.length<=0?void 0:arguments[0])}var e=new Date(0);return e.setFullYear.apply(e,arguments),e.setHours(0,0,0,0)}function ft(e,t){var i=new Date(e);return i.setDate(i.getDate()+t)}function Oo(e,t){return ft(e,t*7)}function ge(e,t){var i=new Date(e),n=i.getMonth()+t,r=n%12;r<0&&(r+=12);var o=i.setMonth(n);return i.getMonth()!==r?i.setDate(0):o}function pt(e,t){var i=new Date(e),n=i.getMonth(),r=i.setFullYear(i.getFullYear()+t);return n===1&&i.getMonth()===2?i.setDate(0):r}function qi(e,t){return(e-t+7)%7}function me(e,t){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,n=new Date(e).getDay();return ft(e,qi(t,i)-qi(n,i))}function To(e){var t=me(e,4,1),i=me(new Date(t).setMonth(0,4),4,1);return Math.round((t-i)/6048e5)+1}function nt(e,t){var i=new Date(e).getFullYear();return Math.floor(i/t)*t}var Ne=/dd?|DD?|mm?|MM?|yy?(?:yy)?/,Po=/[\s!-/:-@[-`{-~年月日]+/,Ie={},Ni={y:function(t,i){return new Date(t).setFullYear(parseInt(i,10))},m:function(t,i,n){var r=new Date(t),o=parseInt(i,10)-1;if(isNaN(o)){if(!i)return NaN;var a=i.toLowerCase(),s=function(c){return c.toLowerCase().startsWith(a)};if(o=n.monthsShort.findIndex(s),o<0&&(o=n.months.findIndex(s)),o<0)return NaN}return r.setMonth(o),r.getMonth()!==Ln(o)?r.setDate(0):r.getTime()},d:function(t,i){return new Date(t).setDate(parseInt(i,10))}},Ro={d:function(t){return t.getDate()},dd:function(t){return $t(t.getDate(),2)},D:function(t,i){return i.daysShort[t.getDay()]},DD:function(t,i){return i.days[t.getDay()]},m:function(t){return t.getMonth()+1},mm:function(t){return $t(t.getMonth()+1,2)},M:function(t,i){return i.monthsShort[t.getMonth()]},MM:function(t,i){return i.months[t.getMonth()]},y:function(t){return t.getFullYear()},yy:function(t){return $t(t.getFullYear(),2).slice(-2)},yyyy:function(t){return $t(t.getFullYear(),4)}};function Ln(e){return e>-1?e%12:Ln(e+12)}function $t(e,t){return e.toString().padStart(t,"0")}function An(e){if(typeof e!="string")throw new Error("Invalid date format.");if(e in Ie)return Ie[e];var t=e.split(Ne),i=e.match(new RegExp(Ne,"g"));if(t.length===0||!i)throw new Error("Invalid date format.");var n=i.map(function(o){return Ro[o]}),r=Object.keys(Ni).reduce(function(o,a){return i.find(function(s){return s[0]!=="D"&&s[0].toLowerCase()===a})&&o.push(a),o},[]);return Ie[e]={parser:function(a,s){var l=a.split(Po).reduce(function(c,u,d){if(u.length>0&&i[d]){var f=i[d][0];f==="M"?c.m=u:f!=="D"&&(c[f]=u)}return c},{});return r.reduce(function(c,u){var d=Ni[u](c,l[u],s);return isNaN(d)?c:d},dt())},formatter:function(a,s){var l=n.reduce(function(c,u,d){return c+="".concat(t[d]).concat(u(a,s))},"");return l+=di(t)}}}function Ot(e,t,i){if(e instanceof Date||typeof e=="number"){var n=qe(e);return isNaN(n)?void 0:n}if(e){if(e==="today")return dt();if(t&&t.toValue){var r=t.toValue(e,t,i);return isNaN(r)?void 0:qe(r)}return An(t).parser(e,i)}}function Tt(e,t,i){if(isNaN(e)||!e&&e!==0)return"";var n=typeof e=="number"?new Date(e):e;return t.toDisplay?t.toDisplay(n,t,i):An(t).formatter(n,i)}var ye=new WeakMap,In=EventTarget.prototype,ji=In.addEventListener,zi=In.removeEventListener;function pi(e,t){var i=ye.get(e);i||(i=[],ye.set(e,i)),t.forEach(function(n){ji.call.apply(ji,Ht(n)),i.push(n)})}function Cn(e){var t=ye.get(e);t&&(t.forEach(function(i){zi.call.apply(zi,Ht(i))}),ye.delete(e))}if(!Event.prototype.composedPath){var Ho=function e(t){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];i.push(t);var n;return t.parentNode?n=t.parentNode:t.host?n=t.host:t.defaultView&&(n=t.defaultView),n?e(n,i):i};Event.prototype.composedPath=function(){return Ho(this.target)}}function Sn(e,t,i){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,r=e[n];return t(r)?r:r===i||!r.parentElement?void 0:Sn(e,t,i,n+1)}function On(e,t){var i=typeof t=="function"?t:function(n){return n.matches(t)};return Sn(e.composedPath(),i,e.currentTarget)}var kt={en:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],daysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],daysMin:["Su","Mo","Tu","We","Th","Fr","Sa"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],today:"Today",clear:"Clear",titleFormat:"MM y"}},Mt={autohide:!1,beforeShowDay:null,beforeShowDecade:null,beforeShowMonth:null,beforeShowYear:null,calendarWeeks:!1,clearBtn:!1,dateDelimiter:",",datesDisabled:[],daysOfWeekDisabled:[],daysOfWeekHighlighted:[],defaultViewDate:void 0,disableTouchKeyboard:!1,format:"mm/dd/yyyy",language:"en",maxDate:null,maxNumberOfDates:1,maxView:3,minDate:null,nextArrow:'<svg class="w-4 h-4 rtl:rotate-180 text-gray-800 dark:text-white" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 14 10"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M1 5h12m0 0L9 1m4 4L9 9"/></svg>',orientation:"auto",pickLevel:0,prevArrow:'<svg class="w-4 h-4 rtl:rotate-180 text-gray-800 dark:text-white" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 14 10"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 5H1m0 0 4 4M1 5l4-4"/></svg>',showDaysOfWeek:!0,showOnClick:!0,showOnFocus:!0,startView:0,title:"",todayBtn:!1,todayBtnMode:0,todayHighlight:!1,updateOnBlur:!0,weekStart:0},Ce=null;function Y(e){return Ce==null&&(Ce=document.createRange()),Ce.createContextualFragment(e)}function At(e){e.style.display!=="none"&&(e.style.display&&(e.dataset.styleDisplay=e.style.display),e.style.display="none")}function It(e){e.style.display==="none"&&(e.dataset.styleDisplay?(e.style.display=e.dataset.styleDisplay,delete e.dataset.styleDisplay):e.style.display="")}function we(e){e.firstChild&&(e.removeChild(e.firstChild),we(e))}function Mo(e,t){we(e),t instanceof DocumentFragment?e.appendChild(t):typeof t=="string"?e.appendChild(Y(t)):typeof t.forEach=="function"&&t.forEach(function(i){e.appendChild(i)})}var Se=Mt.language,Bo=Mt.format,Vo=Mt.weekStart;function Wi(e,t){return e.length<6&&t>=0&&t<7?lt(e,t):e}function Yi(e){return(e+6)%7}function Ki(e,t,i,n){var r=Ot(e,t,i);return r!==void 0?r:n}function Oe(e,t){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:3,n=parseInt(e,10);return n>=0&&n<=i?n:t}function Te(e,t){var i=Object.assign({},e),n={},r=t.constructor.locales,o=t.config||{},a=o.format,s=o.language,l=o.locale,c=o.maxDate,u=o.maxView,d=o.minDate,f=o.pickLevel,h=o.startView,p=o.weekStart;if(i.language){var v;if(i.language!==s&&(r[i.language]?v=i.language:(v=i.language.split("-")[0],r[v]===void 0&&(v=!1))),delete i.language,v){s=n.language=v;var g=l||r[Se];l=Object.assign({format:Bo,weekStart:Vo},r[Se]),s!==Se&&Object.assign(l,r[s]),n.locale=l,a===g.format&&(a=n.format=l.format),p===g.weekStart&&(p=n.weekStart=l.weekStart,n.weekEnd=Yi(l.weekStart))}}if(i.format){var k=typeof i.format.toDisplay=="function",A=typeof i.format.toValue=="function",D=Ne.test(i.format);(k&&A||D)&&(a=n.format=i.format),delete i.format}var m=d,y=c;if(i.minDate!==void 0&&(m=i.minDate===null?G(0,0,1):Ki(i.minDate,a,l,m),delete i.minDate),i.maxDate!==void 0&&(y=i.maxDate===null?void 0:Ki(i.maxDate,a,l,y),delete i.maxDate),y<m?(d=n.minDate=y,c=n.maxDate=m):(d!==m&&(d=n.minDate=m),c!==y&&(c=n.maxDate=y)),i.datesDisabled&&(n.datesDisabled=i.datesDisabled.reduce(function(C,O){var B=Ot(O,a,l);return B!==void 0?lt(C,B):C},[]),delete i.datesDisabled),i.defaultViewDate!==void 0){var b=Ot(i.defaultViewDate,a,l);b!==void 0&&(n.defaultViewDate=b),delete i.defaultViewDate}if(i.weekStart!==void 0){var x=Number(i.weekStart)%7;isNaN(x)||(p=n.weekStart=x,n.weekEnd=Yi(x)),delete i.weekStart}if(i.daysOfWeekDisabled&&(n.daysOfWeekDisabled=i.daysOfWeekDisabled.reduce(Wi,[]),delete i.daysOfWeekDisabled),i.daysOfWeekHighlighted&&(n.daysOfWeekHighlighted=i.daysOfWeekHighlighted.reduce(Wi,[]),delete i.daysOfWeekHighlighted),i.maxNumberOfDates!==void 0){var L=parseInt(i.maxNumberOfDates,10);L>=0&&(n.maxNumberOfDates=L,n.multidate=L!==1),delete i.maxNumberOfDates}i.dateDelimiter&&(n.dateDelimiter=String(i.dateDelimiter),delete i.dateDelimiter);var E=f;i.pickLevel!==void 0&&(E=Oe(i.pickLevel,2),delete i.pickLevel),E!==f&&(f=n.pickLevel=E);var _=u;i.maxView!==void 0&&(_=Oe(i.maxView,u),delete i.maxView),_=f>_?f:_,_!==u&&(u=n.maxView=_);var I=h;if(i.startView!==void 0&&(I=Oe(i.startView,I),delete i.startView),I<f?I=f:I>u&&(I=u),I!==h&&(n.startView=I),i.prevArrow){var T=Y(i.prevArrow);T.childNodes.length>0&&(n.prevArrow=T.childNodes),delete i.prevArrow}if(i.nextArrow){var S=Y(i.nextArrow);S.childNodes.length>0&&(n.nextArrow=S.childNodes),delete i.nextArrow}if(i.disableTouchKeyboard!==void 0&&(n.disableTouchKeyboard="ontouchstart"in document&&!!i.disableTouchKeyboard,delete i.disableTouchKeyboard),i.orientation){var V=i.orientation.toLowerCase().split(/\s+/g);n.orientation={x:V.find(function(C){return C==="left"||C==="right"})||"auto",y:V.find(function(C){return C==="top"||C==="bottom"})||"auto"},delete i.orientation}if(i.todayBtnMode!==void 0){switch(i.todayBtnMode){case 0:case 1:n.todayBtnMode=i.todayBtnMode}delete i.todayBtnMode}return Object.keys(i).forEach(function(C){i[C]!==void 0&&W(Mt,C)&&(n[C]=i[C])}),n}var Fo=fi(`<div class="datepicker hidden">
<div class="datepicker-picker inline-block rounded-lg bg-white dark:bg-gray-700 shadow-lg p-4">
<div class="datepicker-header">
<div class="datepicker-title bg-white dark:bg-gray-700 dark:text-white px-2 py-3 text-center font-semibold"></div>
<div class="datepicker-controls flex justify-between mb-2">
<button type="button" class="bg-white dark:bg-gray-700 rounded-lg text-gray-500 dark:text-white hover:bg-gray-100 dark:hover:bg-gray-600 hover:text-gray-900 dark:hover:text-white text-lg p-2.5 focus:outline-none focus:ring-2 focus:ring-gray-200 prev-btn"></button>
<button type="button" class="text-sm rounded-lg text-gray-900 dark:text-white bg-white dark:bg-gray-700 font-semibold py-2.5 px-5 hover:bg-gray-100 dark:hover:bg-gray-600 focus:outline-none focus:ring-2 focus:ring-gray-200 view-switch"></button>
<button type="button" class="bg-white dark:bg-gray-700 rounded-lg text-gray-500 dark:text-white hover:bg-gray-100 dark:hover:bg-gray-600 hover:text-gray-900 dark:hover:text-white text-lg p-2.5 focus:outline-none focus:ring-2 focus:ring-gray-200 next-btn"></button>
</div>
</div>
<div class="datepicker-main p-1"></div>
<div class="datepicker-footer">
<div class="datepicker-controls flex space-x-2 rtl:space-x-reverse mt-2">
<button type="button" class="%buttonClass% today-btn text-white bg-blue-700 !bg-primary-700 dark:bg-blue-600 dark:!bg-primary-600 hover:bg-blue-800 hover:!bg-primary-800 dark:hover:bg-blue-700 dark:hover:!bg-primary-700 focus:ring-4 focus:ring-blue-300 focus:!ring-primary-300 font-medium rounded-lg text-sm px-5 py-2 text-center w-1/2"></button>
<button type="button" class="%buttonClass% clear-btn text-gray-900 dark:text-white bg-white dark:bg-gray-700 border border-gray-300 dark:border-gray-600 hover:bg-gray-100 dark:hover:bg-gray-600 focus:ring-4 focus:ring-blue-300 focus:!ring-primary-300 font-medium rounded-lg text-sm px-5 py-2 text-center w-1/2"></button>
</div>
</div>
</div>
</div>`),qo=fi(`<div class="days">
<div class="days-of-week grid grid-cols-7 mb-1">`.concat(wt("span",7,{class:"dow block flex-1 leading-9 border-0 rounded-lg cursor-default text-center text-gray-900 font-semibold text-sm"}),`</div>
<div class="datepicker-grid w-64 grid grid-cols-7">`).concat(wt("span",42,{class:"block flex-1 leading-9 border-0 rounded-lg cursor-default text-center text-gray-900 font-semibold text-sm h-6 leading-6 text-sm font-medium text-gray-500 dark:text-gray-400"}),`</div>
</div>`)),No=fi(`<div class="calendar-weeks">
<div class="days-of-week flex"><span class="dow h-6 leading-6 text-sm font-medium text-gray-500 dark:text-gray-400"></span></div>
<div class="weeks">`.concat(wt("span",6,{class:"week block flex-1 leading-9 border-0 rounded-lg cursor-default text-center text-gray-900 font-semibold text-sm"}),`</div>
</div>`)),vi=(function(){function e(t,i){ct(this,e),Object.assign(this,i,{picker:t,element:Y('<div class="datepicker-view flex"></div>').firstChild,selected:[]}),this.init(this.picker.datepicker.config)}return ut(e,[{key:"init",value:function(i){i.pickLevel!==void 0&&(this.isMinView=this.id===i.pickLevel),this.setOptions(i),this.updateFocus(),this.updateSelection()}},{key:"performBeforeHook",value:function(i,n,r){var o=this.beforeShow(new Date(r));switch(ve(o)){case"boolean":o={enabled:o};break;case"string":o={classes:o}}if(o){if(o.enabled===!1&&(i.classList.add("disabled"),lt(this.disabled,n)),o.classes){var a,s=o.classes.split(/\s+/);(a=i.classList).add.apply(a,Ht(s)),s.includes("disabled")&&lt(this.disabled,n)}o.content&&Mo(i,o.content)}}}])})(),jo=(function(e){function t(i){return ct(this,t),ci(this,t,[i,{id:0,name:"days",cellClass:"day"}])}return ui(t,e),ut(t,[{key:"init",value:function(n){if(!(arguments.length>1&&arguments[1]!==void 0)||arguments[1]){var r=Y(qo).firstChild;this.dow=r.firstChild,this.grid=r.lastChild,this.element.appendChild(r)}St(Q(t.prototype),"init",this).call(this,n)}},{key:"setOptions",value:function(n){var r=this,o;if(W(n,"minDate")&&(this.minDate=n.minDate),W(n,"maxDate")&&(this.maxDate=n.maxDate),n.datesDisabled&&(this.datesDisabled=n.datesDisabled),n.daysOfWeekDisabled&&(this.daysOfWeekDisabled=n.daysOfWeekDisabled,o=!0),n.daysOfWeekHighlighted&&(this.daysOfWeekHighlighted=n.daysOfWeekHighlighted),n.todayHighlight!==void 0&&(this.todayHighlight=n.todayHighlight),n.weekStart!==void 0&&(this.weekStart=n.weekStart,this.weekEnd=n.weekEnd,o=!0),n.locale){var a=this.locale=n.locale;this.dayNames=a.daysMin,this.switchLabelFormat=a.titleFormat,o=!0}if(n.beforeShowDay!==void 0&&(this.beforeShow=typeof n.beforeShowDay=="function"?n.beforeShowDay:void 0),n.calendarWeeks!==void 0)if(n.calendarWeeks&&!this.calendarWeeks){var s=Y(No).firstChild;this.calendarWeeks={element:s,dow:s.firstChild,weeks:s.lastChild},this.element.insertBefore(s,this.element.firstChild)}else this.calendarWeeks&&!n.calendarWeeks&&(this.element.removeChild(this.calendarWeeks.element),this.calendarWeeks=null);n.showDaysOfWeek!==void 0&&(n.showDaysOfWeek?(It(this.dow),this.calendarWeeks&&It(this.calendarWeeks.dow)):(At(this.dow),this.calendarWeeks&&At(this.calendarWeeks.dow))),o&&Array.from(this.dow.children).forEach(function(l,c){var u=(r.weekStart+c)%7;l.textContent=r.dayNames[u],l.className=r.daysOfWeekDisabled.includes(u)?"dow disabled text-center h-6 leading-6 text-sm font-medium text-gray-500 dark:text-gray-400 cursor-not-allowed":"dow text-center h-6 leading-6 text-sm font-medium text-gray-500 dark:text-gray-400"})}},{key:"updateFocus",value:function(){var n=new Date(this.picker.viewDate),r=n.getFullYear(),o=n.getMonth(),a=G(r,o,1),s=me(a,this.weekStart,this.weekStart);this.first=a,this.last=G(r,o+1,0),this.start=s,this.focused=this.picker.viewDate}},{key:"updateSelection",value:function(){var n=this.picker.datepicker,r=n.dates,o=n.rangepicker;this.selected=r,o&&(this.range=o.dates)}},{key:"render",value:function(){var n=this;this.today=this.todayHighlight?dt():void 0,this.disabled=Ht(this.datesDisabled);var r=Tt(this.focused,this.switchLabelFormat,this.locale);if(this.picker.setViewSwitchLabel(r),this.picker.setPrevBtnDisabled(this.first<=this.minDate),this.picker.setNextBtnDisabled(this.last>=this.maxDate),this.calendarWeeks){var o=me(this.first,1,1);Array.from(this.calendarWeeks.weeks.children).forEach(function(a,s){a.textContent=To(Oo(o,s))})}Array.from(this.grid.children).forEach(function(a,s){var l=a.classList,c=ft(n.start,s),u=new Date(c),d=u.getDay();if(a.className="datepicker-cell hover:bg-gray-100 dark:hover:bg-gray-600 block flex-1 leading-9 border-0 rounded-lg cursor-pointer text-center text-gray-900 dark:text-white font-semibold text-sm ".concat(n.cellClass),a.dataset.date=c,a.textContent=u.getDate(),c<n.first?l.add("prev","text-gray-500","dark:text-white"):c>n.last&&l.add("next","text-gray-500","dark:text-white"),n.today===c&&l.add("today","bg-gray-100","dark:bg-gray-600"),(c<n.minDate||c>n.maxDate||n.disabled.includes(c))&&(l.add("disabled","cursor-not-allowed","text-gray-400","dark:text-gray-500"),l.remove("hover:bg-gray-100","dark:hover:bg-gray-600","text-gray-900","dark:text-white","cursor-pointer")),n.daysOfWeekDisabled.includes(d)&&(l.add("disabled","cursor-not-allowed","text-gray-400","dark:text-gray-500"),l.remove("hover:bg-gray-100","dark:hover:bg-gray-600","text-gray-900","dark:text-white","cursor-pointer"),lt(n.disabled,c)),n.daysOfWeekHighlighted.includes(d)&&l.add("highlighted"),n.range){var f=P(n.range,2),h=f[0],p=f[1];c>h&&c<p&&(l.add("range","bg-gray-200","dark:bg-gray-600"),l.remove("rounded-lg","rounded-l-lg","rounded-r-lg")),c===h&&(l.add("range-start","bg-gray-100","dark:bg-gray-600","rounded-l-lg"),l.remove("rounded-lg","rounded-r-lg")),c===p&&(l.add("range-end","bg-gray-100","dark:bg-gray-600","rounded-r-lg"),l.remove("rounded-lg","rounded-l-lg"))}n.selected.includes(c)&&(l.add("selected","bg-blue-700","!bg-primary-700","text-white","dark:bg-blue-600","dark:!bg-primary-600","dark:text-white"),l.remove("text-gray-900","text-gray-500","hover:bg-gray-100","dark:text-white","dark:hover:bg-gray-600","dark:bg-gray-600","bg-gray-100","bg-gray-200")),c===n.focused&&l.add("focused"),n.beforeShow&&n.performBeforeHook(a,c,c)})}},{key:"refresh",value:function(){var n=this,r=P(this.range||[],2),o=r[0],a=r[1];this.grid.querySelectorAll(".range, .range-start, .range-end, .selected, .focused").forEach(function(s){s.classList.remove("range","range-start","range-end","selected","bg-blue-700","!bg-primary-700","text-white","dark:bg-blue-600","dark:!bg-primary-600","dark:text-white","focused"),s.classList.add("text-gray-900","rounded-lg","dark:text-white")}),Array.from(this.grid.children).forEach(function(s){var l=Number(s.dataset.date),c=s.classList;c.remove("bg-gray-200","dark:bg-gray-600","rounded-l-lg","rounded-r-lg"),l>o&&l<a&&(c.add("range","bg-gray-200","dark:bg-gray-600"),c.remove("rounded-lg")),l===o&&(c.add("range-start","bg-gray-200","dark:bg-gray-600","rounded-l-lg"),c.remove("rounded-lg")),l===a&&(c.add("range-end","bg-gray-200","dark:bg-gray-600","rounded-r-lg"),c.remove("rounded-lg")),n.selected.includes(l)&&(c.add("selected","bg-blue-700","!bg-primary-700","text-white","dark:bg-blue-600","dark:!bg-primary-600","dark:text-white"),c.remove("text-gray-900","hover:bg-gray-100","dark:text-white","dark:hover:bg-gray-600","bg-gray-100","bg-gray-200","dark:bg-gray-600")),l===n.focused&&c.add("focused")})}},{key:"refreshFocus",value:function(){var n=Math.round((this.focused-this.start)/864e5);this.grid.querySelectorAll(".focused").forEach(function(r){r.classList.remove("focused")}),this.grid.children[n].classList.add("focused")}}])})(vi);function Ui(e,t){if(!(!e||!e[0]||!e[1])){var i=P(e,2),n=P(i[0],2),r=n[0],o=n[1],a=P(i[1],2),s=a[0],l=a[1];if(!(r>t||s<t))return[r===t?o:-1,s===t?l:12]}}var zo=(function(e){function t(i){return ct(this,t),ci(this,t,[i,{id:1,name:"months",cellClass:"month"}])}return ui(t,e),ut(t,[{key:"init",value:function(n){(!(arguments.length>1&&arguments[1]!==void 0)||arguments[1])&&(this.grid=this.element,this.element.classList.add("months","datepicker-grid","w-64","grid","grid-cols-4"),this.grid.appendChild(Y(wt("span",12,{"data-month":function(o){return o}})))),St(Q(t.prototype),"init",this).call(this,n)}},{key:"setOptions",value:function(n){if(n.locale&&(this.monthNames=n.locale.monthsShort),W(n,"minDate"))if(n.minDate===void 0)this.minYear=this.minMonth=this.minDate=void 0;else{var r=new Date(n.minDate);this.minYear=r.getFullYear(),this.minMonth=r.getMonth(),this.minDate=r.setDate(1)}if(W(n,"maxDate"))if(n.maxDate===void 0)this.maxYear=this.maxMonth=this.maxDate=void 0;else{var o=new Date(n.maxDate);this.maxYear=o.getFullYear(),this.maxMonth=o.getMonth(),this.maxDate=G(this.maxYear,this.maxMonth+1,0)}n.beforeShowMonth!==void 0&&(this.beforeShow=typeof n.beforeShowMonth=="function"?n.beforeShowMonth:void 0)}},{key:"updateFocus",value:function(){var n=new Date(this.picker.viewDate);this.year=n.getFullYear(),this.focused=n.getMonth()}},{key:"updateSelection",value:function(){var n=this.picker.datepicker,r=n.dates,o=n.rangepicker;this.selected=r.reduce(function(a,s){var l=new Date(s),c=l.getFullYear(),u=l.getMonth();return a[c]===void 0?a[c]=[u]:lt(a[c],u),a},{}),o&&o.dates&&(this.range=o.dates.map(function(a){var s=new Date(a);return isNaN(s)?void 0:[s.getFullYear(),s.getMonth()]}))}},{key:"render",value:function(){var n=this;this.disabled=[],this.picker.setViewSwitchLabel(this.year),this.picker.setPrevBtnDisabled(this.year<=this.minYear),this.picker.setNextBtnDisabled(this.year>=this.maxYear);var r=this.selected[this.year]||[],o=this.year<this.minYear||this.year>this.maxYear,a=this.year===this.minYear,s=this.year===this.maxYear,l=Ui(this.range,this.year);Array.from(this.grid.children).forEach(function(c,u){var d=c.classList,f=G(n.year,u,1);if(c.className="datepicker-cell hover:bg-gray-100 dark:hover:bg-gray-600 block flex-1 leading-9 border-0 rounded-lg cursor-pointer text-center text-gray-900 dark:text-white font-semibold text-sm ".concat(n.cellClass),n.isMinView&&(c.dataset.date=f),c.textContent=n.monthNames[u],(o||a&&u<n.minMonth||s&&u>n.maxMonth)&&d.add("disabled"),l){var h=P(l,2),p=h[0],v=h[1];u>p&&u<v&&d.add("range"),u===p&&d.add("range-start"),u===v&&d.add("range-end")}r.includes(u)&&(d.add("selected","bg-blue-700","!bg-primary-700","text-white","dark:bg-blue-600","dark:!bg-primary-600","dark:text-white"),d.remove("text-gray-900","hover:bg-gray-100","dark:text-white","dark:hover:bg-gray-600")),u===n.focused&&d.add("focused"),n.beforeShow&&n.performBeforeHook(c,u,f)})}},{key:"refresh",value:function(){var n=this,r=this.selected[this.year]||[],o=P(Ui(this.range,this.year)||[],2),a=o[0],s=o[1];this.grid.querySelectorAll(".range, .range-start, .range-end, .selected, .focused").forEach(function(l){l.classList.remove("range","range-start","range-end","selected","bg-blue-700","!bg-primary-700","dark:bg-blue-600","dark:!bg-primary-700","dark:text-white","text-white","focused"),l.classList.add("text-gray-900","hover:bg-gray-100","dark:text-white","dark:hover:bg-gray-600")}),Array.from(this.grid.children).forEach(function(l,c){var u=l.classList;c>a&&c<s&&u.add("range"),c===a&&u.add("range-start"),c===s&&u.add("range-end"),r.includes(c)&&(u.add("selected","bg-blue-700","!bg-primary-700","text-white","dark:bg-blue-600","dark:!bg-primary-600","dark:text-white"),u.remove("text-gray-900","hover:bg-gray-100","dark:text-white","dark:hover:bg-gray-600")),c===n.focused&&u.add("focused")})}},{key:"refreshFocus",value:function(){this.grid.querySelectorAll(".focused").forEach(function(n){n.classList.remove("focused")}),this.grid.children[this.focused].classList.add("focused")}}])})(vi);function Wo(e){return Ht(e).reduce(function(t,i,n){return t+=n?i:i.toUpperCase()},"")}var $i=(function(e){function t(i,n){return ct(this,t),ci(this,t,[i,n])}return ui(t,e),ut(t,[{key:"init",value:function(n){(!(arguments.length>1&&arguments[1]!==void 0)||arguments[1])&&(this.navStep=this.step*10,this.beforeShowOption="beforeShow".concat(Wo(this.cellClass)),this.grid=this.element,this.element.classList.add(this.name,"datepicker-grid","w-64","grid","grid-cols-4"),this.grid.appendChild(Y(wt("span",12)))),St(Q(t.prototype),"init",this).call(this,n)}},{key:"setOptions",value:function(n){if(W(n,"minDate")&&(n.minDate===void 0?this.minYear=this.minDate=void 0:(this.minYear=nt(n.minDate,this.step),this.minDate=G(this.minYear,0,1))),W(n,"maxDate")&&(n.maxDate===void 0?this.maxYear=this.maxDate=void 0:(this.maxYear=nt(n.maxDate,this.step),this.maxDate=G(this.maxYear,11,31))),n[this.beforeShowOption]!==void 0){var r=n[this.beforeShowOption];this.beforeShow=typeof r=="function"?r:void 0}}},{key:"updateFocus",value:function(){var n=new Date(this.picker.viewDate),r=nt(n,this.navStep),o=r+9*this.step;this.first=r,this.last=o,this.start=r-this.step,this.focused=nt(n,this.step)}},{key:"updateSelection",value:function(){var n=this,r=this.picker.datepicker,o=r.dates,a=r.rangepicker;this.selected=o.reduce(function(s,l){return lt(s,nt(l,n.step))},[]),a&&a.dates&&(this.range=a.dates.map(function(s){if(s!==void 0)return nt(s,n.step)}))}},{key:"render",value:function(){var n=this;this.disabled=[],this.picker.setViewSwitchLabel("".concat(this.first,"-").concat(this.last)),this.picker.setPrevBtnDisabled(this.first<=this.minYear),this.picker.setNextBtnDisabled(this.last>=this.maxYear),Array.from(this.grid.children).forEach(function(r,o){var a=r.classList,s=n.start+o*n.step,l=G(s,0,1);if(r.className="datepicker-cell hover:bg-gray-100 dark:hover:bg-gray-600 block flex-1 leading-9 border-0 rounded-lg cursor-pointer text-center text-gray-900 dark:text-white font-semibold text-sm ".concat(n.cellClass),n.isMinView&&(r.dataset.date=l),r.textContent=r.dataset.year=s,o===0?a.add("prev"):o===11&&a.add("next"),(s<n.minYear||s>n.maxYear)&&a.add("disabled"),n.range){var c=P(n.range,2),u=c[0],d=c[1];s>u&&s<d&&a.add("range"),s===u&&a.add("range-start"),s===d&&a.add("range-end")}n.selected.includes(s)&&(a.add("selected","bg-blue-700","!bg-primary-700","text-white","dark:bg-blue-600","dark:!bg-primary-600","dark:text-white"),a.remove("text-gray-900","hover:bg-gray-100","dark:text-white","dark:hover:bg-gray-600")),s===n.focused&&a.add("focused"),n.beforeShow&&n.performBeforeHook(r,s,l)})}},{key:"refresh",value:function(){var n=this,r=P(this.range||[],2),o=r[0],a=r[1];this.grid.querySelectorAll(".range, .range-start, .range-end, .selected, .focused").forEach(function(s){s.classList.remove("range","range-start","range-end","selected","bg-blue-700","!bg-primary-700","text-white","dark:bg-blue-600","dark!bg-primary-600","dark:text-white","focused")}),Array.from(this.grid.children).forEach(function(s){var l=Number(s.textContent),c=s.classList;l>o&&l<a&&c.add("range"),l===o&&c.add("range-start"),l===a&&c.add("range-end"),n.selected.includes(l)&&(c.add("selected","bg-blue-700","!bg-primary-700","text-white","dark:bg-blue-600","dark:!bg-primary-600","dark:text-white"),c.remove("text-gray-900","hover:bg-gray-100","dark:text-white","dark:hover:bg-gray-600")),l===n.focused&&c.add("focused")})}},{key:"refreshFocus",value:function(){var n=Math.round((this.focused-this.start)/this.step);this.grid.querySelectorAll(".focused").forEach(function(r){r.classList.remove("focused")}),this.grid.children[n].classList.add("focused")}}])})(vi);function vt(e,t){var i={date:e.getDate(),viewDate:new Date(e.picker.viewDate),viewId:e.picker.currentView.id,datepicker:e};e.element.dispatchEvent(new CustomEvent(t,{detail:i}))}function be(e,t){var i=e.config,n=i.minDate,r=i.maxDate,o=e.picker,a=o.currentView,s=o.viewDate,l;switch(a.id){case 0:l=ge(s,t);break;case 1:l=pt(s,t);break;default:l=pt(s,t*a.navStep)}l=Dn(l,n,r),e.picker.changeFocus(l).render()}function Tn(e){var t=e.picker.currentView.id;t!==e.config.maxView&&e.picker.changeView(t+1).render()}function Pn(e){e.config.updateOnBlur?e.update({autohide:!0}):(e.refresh("input"),e.hide())}function Xi(e,t){var i=e.picker,n=new Date(i.viewDate),r=i.currentView.id,o=r===1?ge(n,t-n.getMonth()):pt(n,t-n.getFullYear());i.changeFocus(o).changeView(r-1).render()}function Yo(e){var t=e.picker,i=dt();if(e.config.todayBtnMode===1){if(e.config.autohide){e.setDate(i);return}e.setDate(i,{render:!1}),t.update()}t.viewDate!==i&&t.changeFocus(i),t.changeView(0).render()}function Ko(e){e.setDate({clear:!0})}function Uo(e){Tn(e)}function $o(e){be(e,-1)}function Xo(e){be(e,1)}function Jo(e,t){var i=On(t,".datepicker-cell");if(!(!i||i.classList.contains("disabled"))){var n=e.picker.currentView,r=n.id;n.isMinView?e.setDate(Number(i.dataset.date)):r===1?Xi(e,Number(i.dataset.month)):Xi(e,Number(i.dataset.year))}}function Go(e){!e.inline&&!e.config.disableTouchKeyboard&&e.inputField.focus()}function Ji(e,t){if(t.title!==void 0&&(t.title?(e.controls.title.textContent=t.title,It(e.controls.title)):(e.controls.title.textContent="",At(e.controls.title))),t.prevArrow){var i=e.controls.prevBtn;we(i),t.prevArrow.forEach(function(s){i.appendChild(s.cloneNode(!0))})}if(t.nextArrow){var n=e.controls.nextBtn;we(n),t.nextArrow.forEach(function(s){n.appendChild(s.cloneNode(!0))})}if(t.locale&&(e.controls.todayBtn.textContent=t.locale.today,e.controls.clearBtn.textContent=t.locale.clear),t.todayBtn!==void 0&&(t.todayBtn?It(e.controls.todayBtn):At(e.controls.todayBtn)),W(t,"minDate")||W(t,"maxDate")){var r=e.datepicker.config,o=r.minDate,a=r.maxDate;e.controls.todayBtn.disabled=!hi(dt(),o,a)}t.clearBtn!==void 0&&(t.clearBtn?It(e.controls.clearBtn):At(e.controls.clearBtn))}function Gi(e){var t=e.dates,i=e.config;return Dn(t.length>0?di(t):i.defaultViewDate,i.minDate,i.maxDate)}function Zi(e,t){var i=new Date(e.viewDate),n=new Date(t),r=e.currentView,o=r.id,a=r.year,s=r.first,l=r.last,c=n.getFullYear();switch(e.viewDate=t,c!==i.getFullYear()&&vt(e.datepicker,"changeYear"),n.getMonth()!==i.getMonth()&&vt(e.datepicker,"changeMonth"),o){case 0:return t<s||t>l;case 1:return c!==a;default:return c<s||c>l}}function Pe(e){return window.getComputedStyle(e).direction}var Zo=(function(){function e(t){ct(this,e),this.datepicker=t;var i=this.element=Y(Fo.replace(/%buttonClass%/g,t.config.buttonClass)).firstChild,n=P(i.firstChild.children,3),r=n[0],o=n[1],a=n[2],s=r.firstElementChild,l=P(r.lastElementChild.children,3),c=l[0],u=l[1],d=l[2],f=P(a.firstChild.children,2),h={title:s,prevBtn:c,viewSwitch:u,nextBtn:d,todayBtn:f[0],clearBtn:f[1]};this.main=o,this.controls=h;var p=t.inline?"inline":"dropdown";i.classList.add("datepicker-".concat(p)),p==="dropdown"&&i.classList.add("dropdown","absolute","top-0","left-0","z-50","pt-2"),Ji(this,t.config),this.viewDate=Gi(t),pi(t,[[i,"click",Go.bind(null,t),{capture:!0}],[o,"click",Jo.bind(null,t)],[h.viewSwitch,"click",Uo.bind(null,t)],[h.prevBtn,"click",$o.bind(null,t)],[h.nextBtn,"click",Xo.bind(null,t)],[h.todayBtn,"click",Yo.bind(null,t)],[h.clearBtn,"click",Ko.bind(null,t)]]),this.views=[new jo(this),new zo(this),new $i(this,{id:2,name:"years",cellClass:"year",step:1}),new $i(this,{id:3,name:"decades",cellClass:"decade",step:10})],this.currentView=this.views[t.config.startView],this.currentView.render(),this.main.appendChild(this.currentView.element),t.config.container.appendChild(this.element)}return ut(e,[{key:"setOptions",value:function(i){Ji(this,i),this.views.forEach(function(n){n.init(i,!1)}),this.currentView.render()}},{key:"detach",value:function(){this.datepicker.config.container.removeChild(this.element)}},{key:"show",value:function(){if(!this.active){this.element.classList.add("active","block"),this.element.classList.remove("hidden"),this.active=!0;var i=this.datepicker;if(!i.inline){var n=Pe(i.inputField);n!==Pe(i.config.container)?this.element.dir=n:this.element.dir&&this.element.removeAttribute("dir"),this.place(),i.config.disableTouchKeyboard&&i.inputField.blur()}vt(i,"show")}}},{key:"hide",value:function(){this.active&&(this.datepicker.exitEditMode(),this.element.classList.remove("active","block"),this.element.classList.add("active","block","hidden"),this.active=!1,vt(this.datepicker,"hide"))}},{key:"place",value:function(){var i=this.element,n=i.classList,r=i.style,o=this.datepicker,a=o.config,s=o.inputField,l=a.container,c=this.element.getBoundingClientRect(),u=c.width,d=c.height,f=l.getBoundingClientRect(),h=f.left,p=f.top,v=f.width,g=s.getBoundingClientRect(),k=g.left,A=g.top,D=g.width,m=g.height,y=a.orientation,b=y.x,x=y.y,L,E,_;l===document.body?(L=window.scrollY,E=k+window.scrollX,_=A+L):(L=l.scrollTop,E=k-h,_=A-p+L),b==="auto"&&(E<0?(b="left",E=10):E+u>v?b="right":b=Pe(s)==="rtl"?"right":"left"),b==="right"&&(E-=u-D),x==="auto"&&(x=_-d<L?"bottom":"top"),x==="top"?_-=d:_+=m,n.remove("datepicker-orient-top","datepicker-orient-bottom","datepicker-orient-right","datepicker-orient-left"),n.add("datepicker-orient-".concat(x),"datepicker-orient-".concat(b)),r.top=_&&"".concat(_,"px"),r.left=E&&"".concat(E,"px")}},{key:"setViewSwitchLabel",value:function(i){this.controls.viewSwitch.textContent=i}},{key:"setPrevBtnDisabled",value:function(i){this.controls.prevBtn.disabled=i}},{key:"setNextBtnDisabled",value:function(i){this.controls.nextBtn.disabled=i}},{key:"changeView",value:function(i){var n=this.currentView,r=this.views[i];return r.id!==n.id&&(this.currentView=r,this._renderMethod="render",vt(this.datepicker,"changeView"),this.main.replaceChild(r.element,n.element)),this}},{key:"changeFocus",value:function(i){return this._renderMethod=Zi(this,i)?"render":"refreshFocus",this.views.forEach(function(n){n.updateFocus()}),this}},{key:"update",value:function(){var i=Gi(this.datepicker);return this._renderMethod=Zi(this,i)?"render":"refresh",this.views.forEach(function(n){n.updateFocus(),n.updateSelection()}),this}},{key:"render",value:function(){var i=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0)&&this._renderMethod||"render";delete this._renderMethod,this.currentView[i]()}}])})();function Rn(e,t,i,n,r,o){if(hi(e,r,o))return n(e)?Rn(t(e,i),t,i,n,r,o):e}function Xt(e,t,i,n){var r=e.picker,o=r.currentView,a=o.step||1,s=r.viewDate,l,c;switch(o.id){case 0:n?s=ft(s,i*7):t.ctrlKey||t.metaKey?s=pt(s,i):s=ft(s,i),l=ft,c=function(d){return o.disabled.includes(d)};break;case 1:s=ge(s,n?i*4:i),l=ge,c=function(d){var f=new Date(d),h=o.year,p=o.disabled;return f.getFullYear()===h&&p.includes(f.getMonth())};break;default:s=pt(s,i*(n?4:1)*a),l=pt,c=function(d){return o.disabled.includes(nt(d,a))}}s=Rn(s,l,i<0?-a:a,c,o.minDate,o.maxDate),s!==void 0&&r.changeFocus(s).render()}function Qo(e,t){if(t.key==="Tab"){Pn(e);return}var i=e.picker,n=i.currentView,r=n.id,o=n.isMinView;if(i.active)if(e.editMode)switch(t.key){case"Escape":i.hide();break;case"Enter":e.exitEditMode({update:!0,autohide:e.config.autohide});break;default:return}else switch(t.key){case"Escape":i.hide();break;case"ArrowLeft":if(t.ctrlKey||t.metaKey)be(e,-1);else if(t.shiftKey){e.enterEditMode();return}else Xt(e,t,-1,!1);break;case"ArrowRight":if(t.ctrlKey||t.metaKey)be(e,1);else if(t.shiftKey){e.enterEditMode();return}else Xt(e,t,1,!1);break;case"ArrowUp":if(t.ctrlKey||t.metaKey)Tn(e);else if(t.shiftKey){e.enterEditMode();return}else Xt(e,t,-1,!0);break;case"ArrowDown":if(t.shiftKey&&!t.ctrlKey&&!t.metaKey){e.enterEditMode();return}Xt(e,t,1,!0);break;case"Enter":o?e.setDate(i.viewDate):i.changeView(r-1).render();break;case"Backspace":case"Delete":e.enterEditMode();return;default:t.key.length===1&&!t.ctrlKey&&!t.metaKey&&e.enterEditMode();return}else switch(t.key){case"ArrowDown":case"Escape":i.show();break;case"Enter":e.update();break;default:return}t.preventDefault(),t.stopPropagation()}function ta(e){e.config.showOnFocus&&!e._showing&&e.show()}function ea(e,t){var i=t.target;(e.picker.active||e.config.showOnClick)&&(i._active=i===document.activeElement,i._clicking=setTimeout(function(){delete i._active,delete i._clicking},2e3))}function ia(e,t){var i=t.target;i._clicking&&(clearTimeout(i._clicking),delete i._clicking,i._active&&e.enterEditMode(),delete i._active,e.config.showOnClick&&e.show())}function na(e,t){t.clipboardData.types.includes("text/plain")&&e.enterEditMode()}function ra(e,t){var i=e.element;if(i===document.activeElement){var n=e.picker.element;On(t,function(r){return r===i||r===n})||Pn(e)}}function Hn(e,t){return e.map(function(i){return Tt(i,t.format,t.locale)}).join(t.dateDelimiter)}function Mn(e,t){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,n=e.config,r=e.dates,o=e.rangepicker;if(t.length===0)return i?[]:void 0;var a=o&&e===o.datepickers[1],s=t.reduce(function(l,c){var u=Ot(c,n.format,n.locale);if(u===void 0)return l;if(n.pickLevel>0){var d=new Date(u);n.pickLevel===1?u=a?d.setMonth(d.getMonth()+1,0):d.setDate(1):u=a?d.setFullYear(d.getFullYear()+1,0,0):d.setMonth(0,1)}return hi(u,n.minDate,n.maxDate)&&!l.includes(u)&&!n.datesDisabled.includes(u)&&!n.daysOfWeekDisabled.includes(new Date(u).getDay())&&l.push(u),l},[]);if(s.length!==0)return n.multidate&&!i&&(s=s.reduce(function(l,c){return r.includes(c)||l.push(c),l},r.filter(function(l){return!s.includes(l)}))),n.maxNumberOfDates&&s.length>n.maxNumberOfDates?s.slice(n.maxNumberOfDates*-1):s}function _e(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:3,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,n=e.config,r=e.picker,o=e.inputField;if(t&2){var a=r.active?n.pickLevel:n.startView;r.update().changeView(a).render(i)}t&1&&o&&(o.value=Hn(e.dates,n))}function Qi(e,t,i){var n=i.clear,r=i.render,o=i.autohide;r===void 0&&(r=!0),r?o===void 0&&(o=e.config.autohide):o=!1;var a=Mn(e,t,n);a&&(a.toString()!==e.dates.toString()?(e.dates=a,_e(e,r?3:1),vt(e,"changeDate")):_e(e,1),o&&e.hide())}var Zt=(function(){function e(t){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;ct(this,e),t.datepicker=this,this.element=t;var r=this.config=Object.assign({buttonClass:i.buttonClass&&String(i.buttonClass)||"button",container:document.body,defaultViewDate:dt(),maxDate:void 0,minDate:void 0},Te(Mt,this));this._options=i,Object.assign(r,Te(i,this));var o=this.inline=t.tagName!=="INPUT",a,s;if(o)r.container=t,s=Ae(t.dataset.date,r.dateDelimiter),delete t.dataset.date;else{var l=i.container?document.querySelector(i.container):null;l&&(r.container=l),a=this.inputField=t,a.classList.add("datepicker-input"),s=Ae(a.value,r.dateDelimiter)}if(n){var c=n.inputs.indexOf(a),u=n.datepickers;if(c<0||c>1||!Array.isArray(u))throw Error("Invalid rangepicker object.");u[c]=this,Object.defineProperty(this,"rangepicker",{get:function(){return n}})}this.dates=[];var d=Mn(this,s);d&&d.length>0&&(this.dates=d),a&&(a.value=Hn(this.dates,r));var f=this.picker=new Zo(this);if(o)this.show();else{var h=ra.bind(null,this),p=[[a,"keydown",Qo.bind(null,this)],[a,"focus",ta.bind(null,this)],[a,"mousedown",ea.bind(null,this)],[a,"click",ia.bind(null,this)],[a,"paste",na.bind(null,this)],[document,"mousedown",h],[document,"touchstart",h],[window,"resize",f.place.bind(f)]];pi(this,p)}}return ut(e,[{key:"active",get:function(){return!!(this.picker&&this.picker.active)}},{key:"pickerElement",get:function(){return this.picker?this.picker.element:void 0}},{key:"setOptions",value:function(i){var n=this.picker,r=Te(i,this);Object.assign(this._options,i),Object.assign(this.config,r),n.setOptions(r),_e(this,3)}},{key:"show",value:function(){if(this.inputField){if(this.inputField.disabled)return;this.inputField!==document.activeElement&&(this._showing=!0,this.inputField.focus(),delete this._showing)}this.picker.show()}},{key:"hide",value:function(){this.inline||(this.picker.hide(),this.picker.update().changeView(this.config.startView).render())}},{key:"destroy",value:function(){return this.hide(),Cn(this),this.picker.detach(),this.inline||this.inputField.classList.remove("datepicker-input"),delete this.element.datepicker,this}},{key:"getDate",value:function(){var i=this,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:void 0,r=n?function(o){return Tt(o,n,i.config.locale)}:function(o){return new Date(o)};if(this.config.multidate)return this.dates.map(r);if(this.dates.length>0)return r(this.dates[0])}},{key:"setDate",value:function(){for(var i=arguments.length,n=new Array(i),r=0;r<i;r++)n[r]=arguments[r];var o=[].concat(n),a={},s=di(n);ve(s)==="object"&&!Array.isArray(s)&&!(s instanceof Date)&&s&&Object.assign(a,o.pop());var l=Array.isArray(o[0])?o[0]:o;Qi(this,l,a)}},{key:"update",value:function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:void 0;if(!this.inline){var n={clear:!0,autohide:!!(i&&i.autohide)},r=Ae(this.inputField.value,this.config.dateDelimiter);Qi(this,r,n)}}},{key:"refresh",value:function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:void 0,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;i&&typeof i!="string"&&(n=i,i=void 0);var r;i==="picker"?r=2:i==="input"?r=1:r=3,_e(this,r,!n)}},{key:"enterEditMode",value:function(){this.inline||!this.picker.active||this.editMode||(this.editMode=!0,this.inputField.classList.add("in-edit","border-blue-700","!border-primary-700"))}},{key:"exitEditMode",value:function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:void 0;if(!(this.inline||!this.editMode)){var n=Object.assign({update:!1},i);delete this.editMode,this.inputField.classList.remove("in-edit","border-blue-700","!border-primary-700"),n.update&&this.update(n)}}}],[{key:"formatDate",value:function(i,n,r){return Tt(i,n,r&&kt[r]||kt.en)}},{key:"parseDate",value:function(i,n,r){return Ot(i,n,r&&kt[r]||kt.en)}},{key:"locales",get:function(){return kt}}])})();function tn(e){var t=Object.assign({},e);return delete t.inputs,delete t.allowOneSidedRange,delete t.maxNumberOfDates,t}function en(e,t,i,n){pi(e,[[i,"changeDate",t]]),new Zt(i,n,e)}function Et(e,t){if(!e._updating){e._updating=!0;var i=t.target;if(i.datepicker!==void 0){var n=e.datepickers,r={render:!1},o=e.inputs.indexOf(i),a=o===0?1:0,s=n[o].dates[0],l=n[a].dates[0];s!==void 0&&l!==void 0?o===0&&s>l?(n[0].setDate(l,r),n[1].setDate(s,r)):o===1&&s<l&&(n[0].setDate(s,r),n[1].setDate(l,r)):e.allowOneSidedRange||(s!==void 0||l!==void 0)&&(r.clear=!0,n[a].setDate(n[o].dates,r)),n[0].picker.update().render(),n[1].picker.update().render(),delete e._updating}}}var Re=(function(){function e(t){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};ct(this,e);var n=Array.isArray(i.inputs)?i.inputs:Array.from(t.querySelectorAll("input"));if(!(n.length<2)){t.rangepicker=this,this.element=t,this.inputs=n.slice(0,2),this.allowOneSidedRange=!!i.allowOneSidedRange;var r=Et.bind(null,this),o=tn(i),a=[];Object.defineProperty(this,"datepickers",{get:function(){return a}}),en(this,r,this.inputs[0],o),en(this,r,this.inputs[1],o),Object.freeze(a),a[0].dates.length>0?Et(this,{target:this.inputs[0]}):a[1].dates.length>0&&Et(this,{target:this.inputs[1]})}}return ut(e,[{key:"dates",get:function(){return this.datepickers.length===2?[this.datepickers[0].dates[0],this.datepickers[1].dates[0]]:void 0}},{key:"setOptions",value:function(i){this.allowOneSidedRange=!!i.allowOneSidedRange;var n=tn(i);this.datepickers[0].setOptions(n),this.datepickers[1].setOptions(n)}},{key:"destroy",value:function(){this.datepickers[0].destroy(),this.datepickers[1].destroy(),Cn(this),delete this.element.rangepicker}},{key:"getDates",value:function(){var i=this,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:void 0,r=n?function(o){return Tt(o,n,i.datepickers[0].config.locale)}:function(o){return new Date(o)};return this.dates.map(function(o){return o===void 0?o:r(o)})}},{key:"setDates",value:function(i,n){var r=P(this.datepickers,2),o=r[0],a=r[1],s=this.dates;this._updating=!0,o.setDate(i),a.setDate(n),delete this._updating,a.dates[0]!==s[1]?Et(this,{target:this.inputs[1]}):o.dates[0]!==s[0]&&Et(this,{target:this.inputs[0]})}}])})(),ke=function(){return ke=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++){t=arguments[i];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},ke.apply(this,arguments)},H={defaultDatepickerId:null,autohide:!1,format:"mm/dd/yyyy",maxDate:null,minDate:null,orientation:"bottom",buttons:!1,autoSelectToday:0,title:null,language:"en",rangePicker:!1,onShow:function(){},onHide:function(){}},oa={id:null,override:!0},Bn=(function(){function e(t,i,n){t===void 0&&(t=null),i===void 0&&(i=H),n===void 0&&(n=oa),this._instanceId=n.id?n.id:t.id,this._datepickerEl=t,this._datepickerInstance=null,this._options=ke(ke({},H),i),this._initialized=!1,this.init(),w.addInstance("Datepicker",this,this._instanceId,n.override)}return e.prototype.init=function(){this._datepickerEl&&!this._initialized&&(this._options.rangePicker?this._datepickerInstance=new Re(this._datepickerEl,this._getDatepickerOptions(this._options)):this._datepickerInstance=new Zt(this._datepickerEl,this._getDatepickerOptions(this._options)),this._initialized=!0)},e.prototype.destroy=function(){this._initialized&&(this._initialized=!1,this._datepickerInstance.destroy())},e.prototype.removeInstance=function(){this.destroy(),w.removeInstance("Datepicker",this._instanceId)},e.prototype.destroyAndRemoveInstance=function(){this.destroy(),this.removeInstance()},e.prototype.getDatepickerInstance=function(){return this._datepickerInstance},e.prototype.getDate=function(){if(this._options.rangePicker&&this._datepickerInstance instanceof Re)return this._datepickerInstance.getDates();if(!this._options.rangePicker&&this._datepickerInstance instanceof Zt)return this._datepickerInstance.getDate()},e.prototype.setDate=function(t){if(this._options.rangePicker&&this._datepickerInstance instanceof Re)return this._datepickerInstance.setDates(t);if(!this._options.rangePicker&&this._datepickerInstance instanceof Zt)return this._datepickerInstance.setDate(t)},e.prototype.show=function(){this._datepickerInstance.show(),this._options.onShow(this)},e.prototype.hide=function(){this._datepickerInstance.hide(),this._options.onHide(this)},e.prototype._getDatepickerOptions=function(t){var i={};return t.buttons&&(i.todayBtn=!0,i.clearBtn=!0,t.autoSelectToday&&(i.todayBtnMode=1)),t.autohide&&(i.autohide=!0),t.format&&(i.format=t.format),t.maxDate&&(i.maxDate=t.maxDate),t.minDate&&(i.minDate=t.minDate),t.orientation&&(i.orientation=t.orientation),t.title&&(i.title=t.title),t.language&&(i.language=t.language),i},e.prototype.updateOnShow=function(t){this._options.onShow=t},e.prototype.updateOnHide=function(t){this._options.onHide=t},e})();function gi(){document.querySelectorAll("[datepicker], [inline-datepicker], [date-rangepicker]").forEach(function(e){if(e){var t=e.hasAttribute("datepicker-buttons"),i=e.hasAttribute("datepicker-autoselect-today"),n=e.hasAttribute("datepicker-autohide"),r=e.getAttribute("datepicker-format"),o=e.getAttribute("datepicker-max-date"),a=e.getAttribute("datepicker-min-date"),s=e.getAttribute("datepicker-orientation"),l=e.getAttribute("datepicker-title"),c=e.getAttribute("datepicker-language"),u=e.hasAttribute("date-rangepicker");new Bn(e,{buttons:t||H.buttons,autoSelectToday:i||H.autoSelectToday,autohide:n||H.autohide,format:r||H.format,maxDate:o||H.maxDate,minDate:a||H.minDate,orientation:s||H.orientation,title:l||H.title,language:c||H.language,rangePicker:u||H.rangePicker})}else console.error("The datepicker element does not exist. Please check the datepicker attribute.")})}typeof window<"u"&&(window.Datepicker=Bn,window.initDatepickers=gi);function aa(){ze(),We(),Ye(),Ke(),ti(),ei(),ii(),ni(),ri(),oi(),ai(),si(),li(),gi()}typeof window<"u"&&(window.initFlowbite=aa);new Zn("load",[ze,We,Ye,Ke,ti,ei,ii,ni,ri,oi,ai,si,li,gi]).init();document.addEventListener("DOMContentLoaded",function(){const e=document.querySelector('[data-collapse-toggle="mobile-menu"]'),t=document.getElementById("mobile-menu");if(e&&t){const i=new ie(t);e.addEventListener("click",function(){i.toggle()})}});var sa={init(){document.addEventListener("alpine:init",()=>this.startComponent())},startComponent(){je.data("reactions",(e=[],t=[],i="")=>({url:i,myReactions:e,articleReactions:t,allReactions:[],isAuthenticated:!1,init(){this.treatArticleReactions(),this.allReactions=window.App.defaultReactions,this.isAuthenticated=window.App.isAuthenticated,this.dispatchFlowbiteEvent()},treatArticleReactions(){let n=this.articleReactions;this.articleReactions=[],Object.entries(n).forEach(r=>{let o=r[0],a=Object.values(r[1]);this.articleReactions.push({id:this.generateVirtualReactionId(o),name:o,count:a.length,users:a.map(s=>s.user?.username??"")})})},toggleReaction(n){!this.url.length||!this.isAuthenticated||axios.post(this.url,{reaction:n}).then(r=>{if(r.data.success){if(!r.data.added){this.removeReaction(n,r.data.username);return}this.addReaction(n,r.data.username)}})},addReaction(n,r){this.myReactions.push(n);let o=this.getReactionDataFromName(n);if(o){o.count++,o.users.push(r);return}this.articleReactions.push({id:this.generateVirtualReactionId(n),name:n,count:1,users:[r]}),this.dispatchFlowbiteEvent()},removeReaction(n,r){this.myReactions.splice(this.myReactions.indexOf(n),1);let o=this.getReactionDataFromName(n);if(o.count>1){o.count--,o.users.splice(o.users.indexOf(r),1);return}this.$nextTick(()=>{this.articleReactions.splice(this.articleReactions.indexOf(o),1)})},generateVirtualReactionId(n){return n+Math.floor(Math.random()*1e3)},canAddReactionFromModal(n){return!this.userHasReaction(n)&&!this.articleHasReaction(n)},userHasReaction(n){return this.myReactions.includes(n.name)},articleHasReaction(n){return typeof this.getReactionDataFromName(n)<"u"},getReactionDataFromName(n){return this.articleReactions.find(r=>r.name===n)},dispatchFlowbiteEvent(){this.$nextTick(()=>document.dispatchEvent(new CustomEvent("reactions:loaded")))}}))}},la={currentTheme:"light",init(){(localStorage.theme==="dark"||typeof window.matchMedia<"u"&&window.matchMedia("(prefers-color-scheme: dark)").matches&&localStorage.theme!=="light")&&this.toggleTheme(),document.addEventListener("turbolinks:load",()=>this.initButton())},initButton(){document.getElementById("theme-switcher")?.addEventListener("click",()=>this.toggleTheme())},toggleTheme(){this.currentTheme==="light"?(this.currentTheme="dark",document.documentElement.classList.add("dark")):(this.currentTheme="light",document.documentElement.classList.remove("dark")),localStorage.setItem("theme",this.currentTheme)}},ca={init(){document.addEventListener("turbolinks:load",()=>{this.initArticleSlider()})},initArticleSlider(){document.querySelector(".article-slider")&&new Xn(".articles-slider",{modules:[],slidesPerView:1,loop:!0,autoplay:{delay:5e3,disableOnInteraction:!1,pauseOnMouseEnter:!0},pagination:{el:".swiper-pagination",clickable:!0}})}};la.init();sa.init();ca.init();je.plugin($n);je.start();console.log(`%cAtom CMS%c
Atom CMS is a CMS for made for the community to enjoy. You can join our wonderful community at https://discord.gg/rX3aShUHdg
`,"color: #14619c; -webkit-text-stroke: 2px black; font-size: 32px; font-weight: bold;","");