avo 4.0.0.beta.30 → 4.0.0.beta.32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/app/assets/builds/avo/application.css +222 -158
- data/app/assets/builds/avo/application.js +2 -2
- data/app/assets/builds/avo/application.js.map +3 -3
- data/app/assets/images/avo/favicon-dark.ico +0 -0
- data/app/assets/images/avo/logo-dark.png +0 -0
- data/app/assets/images/avo/logomark-dark.png +0 -0
- data/app/assets/stylesheets/css/components/breadcrumbs.css +44 -4
- data/app/assets/stylesheets/css/components/color_scheme_switcher.css +17 -22
- data/app/assets/stylesheets/css/components/ui/card.css +5 -0
- data/app/assets/stylesheets/css/components/ui/description_list.css +1 -1
- data/app/assets/stylesheets/css/fields/code.css +1 -1
- data/app/assets/stylesheets/css/layout.css +187 -38
- data/app/assets/stylesheets/css/scrollbar.css +12 -0
- data/app/assets/stylesheets/css/sidebar.css +2 -2
- data/app/components/avo/fields/belongs_to_field/edit_component.html.erb +3 -3
- data/app/javascript/js/controllers/actions_overflow_controller.js +22 -3
- data/app/javascript/js/controllers/sidebar_controller.js +11 -0
- data/app/views/avo/partials/_footer.html.erb +1 -1
- data/app/views/avo/partials/_navbar.html.erb +31 -49
- data/app/views/layouts/avo/application.html.erb +20 -24
- data/lib/avo/concerns/breadcrumbs.rb +1 -0
- data/lib/avo/configuration/appearance.rb +27 -37
- data/lib/avo/version.rb +1 -1
- data/lib/generators/avo/templates/locales/avo.ar.yml +1 -0
- data/lib/generators/avo/templates/locales/avo.de.yml +1 -0
- data/lib/generators/avo/templates/locales/avo.en.yml +1 -0
- data/lib/generators/avo/templates/locales/avo.es.yml +1 -0
- data/lib/generators/avo/templates/locales/avo.fr.yml +1 -0
- data/lib/generators/avo/templates/locales/avo.it.yml +1 -0
- data/lib/generators/avo/templates/locales/avo.ja.yml +1 -0
- data/lib/generators/avo/templates/locales/avo.nb.yml +1 -0
- data/lib/generators/avo/templates/locales/avo.nl.yml +1 -0
- data/lib/generators/avo/templates/locales/avo.nn.yml +1 -0
- data/lib/generators/avo/templates/locales/avo.pl.yml +1 -0
- data/lib/generators/avo/templates/locales/avo.pt-BR.yml +1 -0
- data/lib/generators/avo/templates/locales/avo.pt.yml +1 -0
- data/lib/generators/avo/templates/locales/avo.ro.yml +1 -0
- data/lib/generators/avo/templates/locales/avo.ru.yml +1 -0
- data/lib/generators/avo/templates/locales/avo.tr.yml +1 -0
- data/lib/generators/avo/templates/locales/avo.ua.yml +1 -0
- data/lib/generators/avo/templates/locales/avo.zh-TW.yml +1 -0
- data/lib/generators/avo/templates/locales/avo.zh.yml +1 -0
- metadata +1 -1
|
@@ -653,7 +653,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
653
653
|
|
|
654
654
|
%o
|
|
655
655
|
|
|
656
|
-
%o`,t,e,n),(i=window.onerror)===null||i===void 0||i.call(window,t,"",0,0,e)}logFormattedMessage(e,t,n={}){n=Object.assign({application:this},n),this.logger.groupCollapsed(`${e} #${t}`),this.logger.log("details:",Object.assign({},n)),this.logger.groupEnd()}};function l3t(){return new Promise(r=>{document.readyState=="loading"?document.addEventListener("DOMContentLoaded",()=>r()):r()})}function u3t(r){return EC(r,"classes").reduce((t,n)=>Object.assign(t,c3t(n)),{})}function c3t(r){return{[`${r}Class`]:{get(){let{classes:e}=this;if(e.has(r))return e.get(r);{let t=e.getAttributeName(r);throw new Error(`Missing attribute "${t}"`)}}},[`${r}Classes`]:{get(){return this.classes.getAll(r)}},[`has${SC(r)}Class`]:{get(){return this.classes.has(r)}}}}function f3t(r){return EC(r,"outlets").reduce((t,n)=>Object.assign(t,h3t(n)),{})}function PCe(r,e,t){return r.application.getControllerForElementAndIdentifier(e,t)}function LCe(r,e,t){let n=PCe(r,e,t);if(n||(r.application.router.proposeToConnectScopeForElementAndIdentifier(e,t),n=PCe(r,e,t),n))return n}function h3t(r){let e=A7(r);return{[`${e}Outlet`]:{get(){let t=this.outlets.find(r),n=this.outlets.getSelectorForOutletName(r);if(t){let i=LCe(this,t,r);if(i)return i;throw new Error(`The provided outlet element is missing an outlet controller "${r}" instance for host controller "${this.identifier}"`)}throw new Error(`Missing outlet element "${r}" for host controller "${this.identifier}". Stimulus couldn't find a matching outlet element using selector "${n}".`)}},[`${e}Outlets`]:{get(){let t=this.outlets.findAll(r);return t.length>0?t.map(n=>{let i=LCe(this,n,r);if(i)return i;console.warn(`The provided outlet element is missing an outlet controller "${r}" instance for host controller "${this.identifier}"`,n)}).filter(n=>n):[]}},[`${e}OutletElement`]:{get(){let t=this.outlets.find(r),n=this.outlets.getSelectorForOutletName(r);if(t)return t;throw new Error(`Missing outlet element "${r}" for host controller "${this.identifier}". Stimulus couldn't find a matching outlet element using selector "${n}".`)}},[`${e}OutletElements`]:{get(){return this.outlets.findAll(r)}},[`has${SC(e)}Outlet`]:{get(){return this.outlets.has(r)}}}}function d3t(r){return EC(r,"targets").reduce((t,n)=>Object.assign(t,p3t(n)),{})}function p3t(r){return{[`${r}Target`]:{get(){let e=this.targets.find(r);if(e)return e;throw new Error(`Missing target element "${r}" for "${this.identifier}" controller`)}},[`${r}Targets`]:{get(){return this.targets.findAll(r)}},[`has${SC(r)}Target`]:{get(){return this.targets.has(r)}}}}function m3t(r){let e=Zzt(r,"values"),t={valueDescriptorMap:{get(){return e.reduce((n,i)=>{let o=jCe(i,this.identifier),a=this.data.getAttributeNameForKey(o.key);return Object.assign(n,{[a]:o})},{})}}};return e.reduce((n,i)=>Object.assign(n,g3t(i)),t)}function g3t(r,e){let t=jCe(r,e),{key:n,name:i,reader:o,writer:a}=t;return{[i]:{get(){let s=this.data.get(n);return s!==null?o(s):t.defaultValue},set(s){s===void 0?this.data.delete(n):this.data.set(n,a(s))}},[`has${SC(i)}`]:{get(){return this.data.has(n)||t.hasCustomDefaultValue}}}}function jCe([r,e],t){return x3t({controller:t,token:r,typeDefinition:e})}function _q(r){switch(r){case Array:return"array";case Boolean:return"boolean";case Number:return"number";case Object:return"object";case String:return"string"}}function wC(r){switch(typeof r){case"boolean":return"boolean";case"number":return"number";case"string":return"string"}if(Array.isArray(r))return"array";if(Object.prototype.toString.call(r)==="[object Object]")return"object"}function v3t(r){let{controller:e,token:t,typeObject:n}=r,i=OCe(n.type),o=OCe(n.default),a=i&&o,s=i&&!o,u=!i&&o,h=_q(n.type),d=wC(r.typeObject.default);if(s)return h;if(u)return d;if(h!==d){let y=e?`${e}.${t}`:t;throw new Error(`The specified default value for the Stimulus Value "${y}" must match the defined type "${h}". The provided default value of "${n.default}" is of type "${d}".`)}if(a)return h}function y3t(r){let{controller:e,token:t,typeDefinition:n}=r,o=v3t({controller:e,token:t,typeObject:n}),a=wC(n),s=_q(n),u=o||a||s;if(u)return u;let h=e?`${e}.${n}`:t;throw new Error(`Unknown value type "${h}" for "${t}" value`)}function b3t(r){let e=_q(r);if(e)return RCe[e];let t=C7(r,"default"),n=C7(r,"type"),i=r;if(t)return i.default;if(n){let{type:o}=i,a=_q(o);if(a)return RCe[a]}return r}function x3t(r){let{token:e,typeDefinition:t}=r,n=`${NCe(e)}-value`,i=y3t(r);return{type:i,key:n,name:G7(n),get defaultValue(){return b3t(t)},get hasCustomDefaultValue(){return wC(t)!==void 0},reader:_3t[i],writer:qCe[i]||qCe.default}}var RCe={get array(){return[]},boolean:!1,number:0,get object(){return{}},string:""},_3t={array(r){let e=JSON.parse(r);if(!Array.isArray(e))throw new TypeError(`expected value of type "array" but instead got value "${r}" of type "${wC(e)}"`);return e},boolean(r){return!(r=="0"||String(r).toLowerCase()=="false")},number(r){return Number(r.replace(/_/g,""))},object(r){let e=JSON.parse(r);if(e===null||typeof e!="object"||Array.isArray(e))throw new TypeError(`expected value of type "object" but instead got value "${r}" of type "${wC(e)}"`);return e},string(r){return r}},qCe={default:w3t,array:FCe,object:FCe};function FCe(r){return JSON.stringify(r)}function w3t(r){return`${r}`}var er=class{constructor(e){this.context=e}static get shouldLoad(){return!0}static afterLoad(e,t){}get application(){return this.context.application}get scope(){return this.context.scope}get element(){return this.scope.element}get identifier(){return this.scope.identifier}get targets(){return this.scope.targets}get outlets(){return this.scope.outlets}get classes(){return this.scope.classes}get data(){return this.scope.data}initialize(){}connect(){}disconnect(){}dispatch(e,{target:t=this.element,detail:n={},prefix:i=this.identifier,bubbles:o=!0,cancelable:a=!0}={}){let s=i?`${i}:${e}`:e,u=new CustomEvent(s,{detail:n,bubbles:o,cancelable:a});return t.dispatchEvent(u),u}};er.blessings=[u3t,d3t,m3t,f3t];er.targets=[];er.outlets=[];er.values={};var wS=class extends er{initialize(){this.hide()}connect(){setTimeout(()=>{this.show()},this.showDelayValue),this.hasDismissAfterValue&&setTimeout(()=>{this.close()},this.dismissAfterValue)}close(){this.hide(),setTimeout(()=>{this.element.remove()},this.removeDelayValue)}show(){this.element.classList.add(...this.showClasses),this.element.classList.remove(...this.hideClasses)}hide(){this.element.classList.add(...this.hideClasses),this.element.classList.remove(...this.showClasses)}};wS.values={dismissAfter:Number,showDelay:{type:Number,default:200},removeDelay:{type:Number,default:1100}},wS.classes=["show","hide"];var Y7=class extends er{connect(){this.timeout=null,this.duration=this.data.get("duration")||1e3}save(){clearTimeout(this.timeout),this.timeout=setTimeout(()=>{this.statusTarget.textContent="Saving...",Rails.fire(this.formTarget,"submit")},this.duration)}success(){this.setStatus("Saved!")}error(){this.setStatus("Unable to save!")}setStatus(e){this.statusTarget.textContent=e,this.timeout=setTimeout(()=>{this.statusTarget.textContent=""},2e3)}};Y7.targets=["form","status"];var TC=class extends er{constructor(...e){super(...e),this._onMenuButtonKeydown=t=>{switch(t.keyCode){case 13:case 32:t.preventDefault(),this.toggle()}}}connect(){this.toggleClass=this.data.get("class")||"hidden",this.visibleClass=this.data.get("visibleClass")||null,this.invisibleClass=this.data.get("invisibleClass")||null,this.activeClass=this.data.get("activeClass")||null,this.enteringClass=this.data.get("enteringClass")||null,this.leavingClass=this.data.get("leavingClass")||null,this.hasButtonTarget&&this.buttonTarget.addEventListener("keydown",this._onMenuButtonKeydown),this.element.setAttribute("aria-haspopup","true")}disconnect(){this.hasButtonTarget&&this.buttonTarget.removeEventListener("keydown",this._onMenuButtonKeydown)}toggle(){this.openValue=!this.openValue}openValueChanged(){this.openValue?this._show():this._hide()}_show(e){setTimeout((()=>{this.menuTarget.classList.remove(this.toggleClass),this.element.setAttribute("aria-expanded","true"),this._enteringClassList[0].forEach((t=>{this.menuTarget.classList.add(t)}).bind(this)),this._activeClassList[0].forEach(t=>{this.activeTarget.classList.add(t)}),this._invisibleClassList[0].forEach(t=>this.menuTarget.classList.remove(t)),this._visibleClassList[0].forEach(t=>{this.menuTarget.classList.add(t)}),setTimeout((()=>{this._enteringClassList[0].forEach(t=>this.menuTarget.classList.remove(t))}).bind(this),this.enterTimeout[0]),typeof e=="function"&&e()}).bind(this))}_hide(e){setTimeout((()=>{this.element.setAttribute("aria-expanded","false"),this._invisibleClassList[0].forEach(t=>this.menuTarget.classList.add(t)),this._visibleClassList[0].forEach(t=>this.menuTarget.classList.remove(t)),this._activeClassList[0].forEach(t=>this.activeTarget.classList.remove(t)),this._leavingClassList[0].forEach(t=>this.menuTarget.classList.add(t)),setTimeout((()=>{this._leavingClassList[0].forEach(t=>this.menuTarget.classList.remove(t)),typeof e=="function"&&e(),this.menuTarget.classList.add(this.toggleClass)}).bind(this),this.leaveTimeout[0])}).bind(this))}show(){this.openValue=!0}hide(e){this.element.contains(e.target)===!1&&this.openValue&&(this.openValue=!1)}get activeTarget(){return this.data.has("activeTarget")?document.querySelector(this.data.get("activeTarget")):this.element}get _activeClassList(){return this.activeClass?this.activeClass.split(",").map(e=>e.split(" ")):[[],[]]}get _visibleClassList(){return this.visibleClass?this.visibleClass.split(",").map(e=>e.split(" ")):[[],[]]}get _invisibleClassList(){return this.invisibleClass?this.invisibleClass.split(",").map(e=>e.split(" ")):[[],[]]}get _enteringClassList(){return this.enteringClass?this.enteringClass.split(",").map(e=>e.split(" ")):[[],[]]}get _leavingClassList(){return this.leavingClass?this.leavingClass.split(",").map(e=>e.split(" ")):[[],[]]}get enterTimeout(){return(this.data.get("enterTimeout")||"0,0").split(",").map(e=>parseInt(e))}get leaveTimeout(){return(this.data.get("leaveTimeout")||"0,0").split(",").map(e=>parseInt(e))}};TC.targets=["menu","button"],TC.values={open:Boolean};var wq=class extends er{connect(){this.toggleClass=this.data.get("class")||"hidden",this.backgroundId=this.data.get("backgroundId")||"modal-background",this.backgroundHtml=this.data.get("backgroundHtml")||this._backgroundHTML(),this.allowBackgroundClose=(this.data.get("allowBackgroundClose")||"true")==="true",this.preventDefaultActionOpening=(this.data.get("preventDefaultActionOpening")||"true")==="true",this.preventDefaultActionClosing=(this.data.get("preventDefaultActionClosing")||"true")==="true"}disconnect(){this.close()}open(e){this.preventDefaultActionOpening&&e.preventDefault(),e.target.blur&&e.target.blur(),this.lockScroll(),this.containerTarget.classList.remove(this.toggleClass),this.data.get("disable-backdrop")||(document.body.insertAdjacentHTML("beforeend",this.backgroundHtml),this.background=document.querySelector(`#${this.backgroundId}`))}close(e){e&&this.preventDefaultActionClosing&&e.preventDefault(),this.unlockScroll(),this.containerTarget.classList.add(this.toggleClass),this.background&&this.background.remove()}closeBackground(e){this.allowBackgroundClose&&e.target===this.containerTarget&&this.close(e)}closeWithKeyboard(e){e.keyCode!==27||this.containerTarget.classList.contains(this.toggleClass)||this.close(e)}_backgroundHTML(){return`<div id="${this.backgroundId}" class="fixed top-0 left-0 w-full h-full" style="background-color: ${this.backdropColorValue}; z-index: 9998;"></div>`}lockScroll(){let e=window.innerWidth-document.documentElement.clientWidth;document.body.style.paddingRight=`${e}px`,this.saveScrollPosition(),document.body.classList.add("fixed","inset-x-0","overflow-hidden"),document.body.style.top=`-${this.scrollPosition}px`}unlockScroll(){document.body.style.paddingRight=null,document.body.classList.remove("fixed","inset-x-0","overflow-hidden"),this.restoreScrollValue&&this.restoreScrollPosition(),document.body.style.top=null}saveScrollPosition(){this.scrollPosition=window.pageYOffset||document.body.scrollTop}restoreScrollPosition(){this.scrollPosition!==void 0&&(document.documentElement.scrollTop=this.scrollPosition)}};wq.targets=["container"],wq.values={backdropColor:{type:String,default:"rgba(0, 0, 0, 0.8)"},restoreScroll:{type:Boolean,default:!0}};var Z7=class extends er{connect(){this.activeTabClasses=(this.data.get("activeTab")||"active").split(" "),this.inactiveTabClasses=(this.data.get("inactiveTab")||"inactive").split(" "),this.anchor&&(this.index=this.tabTargets.findIndex(e=>e.id===this.anchor)),this.showTab()}change(e){e.preventDefault(),this.index=e.currentTarget.dataset.index?e.currentTarget.dataset.index:e.currentTarget.dataset.id?this.tabTargets.findIndex(t=>t.id==e.currentTarget.dataset.id):this.tabTargets.indexOf(e.currentTarget),window.dispatchEvent(new CustomEvent("tsc:tab-change"))}showTab(){this.tabTargets.forEach((e,t)=>{let n=this.panelTargets[t];t===this.index?(n.classList.remove("hidden"),e.classList.remove(...this.inactiveTabClasses),e.classList.add(...this.activeTabClasses),e.id&&(location.hash=e.id)):(n.classList.add("hidden"),e.classList.remove(...this.activeTabClasses),e.classList.add(...this.inactiveTabClasses))})}get index(){return parseInt(this.data.get("index")||0)}set index(e){this.data.set("index",e>=0?e:0),this.showTab()}get anchor(){return document.URL.split("#").length>1?document.URL.split("#")[1]:null}};Z7.targets=["tab","panel"];var Sq=class extends er{connect(){this.toggleClass=this.data.get("class")||"hidden"}toggle(e){e.preventDefault(),this.openValue=!this.openValue}hide(e){e.preventDefault(),this.openValue=!1}show(e){e.preventDefault(),this.openValue=!0}openValueChanged(){this.toggleClass&&this.toggleableTargets.forEach(e=>{e.classList.toggle(this.toggleClass)})}};Sq.targets=["toggleable"],Sq.values={open:Boolean};var kC=class extends er{initialize(){this.contentTarget.setAttribute("style",`transform:translate(${this.data.get("translateX")}, ${this.data.get("translateY")});`)}mouseOver(){this.contentTarget.classList.remove("hidden")}mouseOut(){this.contentTarget.classList.add("hidden")}toggle(){this.contentTarget.classList.contains("hidden")?this.contentTarget.classList.remove("hidden"):this.contentTarget.classList.add("hidden")}};kC.targets=["content"];var X7=class extends TC{_show(){this.overlayTarget.classList.remove(this.toggleClass),super._show((()=>{this._activeClassList[1].forEach(e=>this.overlayTarget.classList.add(e)),this._invisibleClassList[1].forEach(e=>this.overlayTarget.classList.remove(e)),this._visibleClassList[1].forEach(e=>this.overlayTarget.classList.add(e)),setTimeout((()=>{this._enteringClassList[1].forEach(e=>this.overlayTarget.classList.remove(e))}).bind(this),this.enterTimeout[1])}).bind(this))}_hide(){this._leavingClassList[1].forEach(e=>this.overlayTarget.classList.add(e)),super._hide((()=>{setTimeout((()=>{this._visibleClassList[1].forEach(e=>this.overlayTarget.classList.remove(e)),this._invisibleClassList[1].forEach(e=>this.overlayTarget.classList.add(e)),this._activeClassList[1].forEach(e=>this.overlayTarget.classList.remove(e)),this._leavingClassList[1].forEach(e=>this.overlayTarget.classList.remove(e)),this.overlayTarget.classList.add(this.toggleClass)}).bind(this),this.leaveTimeout[1])}).bind(this))}};X7.targets=["menu","overlay"];var J7=class extends er{connect(){this.styleProperty=this.data.get("style")||"backgroundColor"}update(){this.preview=this.color}set preview(e){this.previewTarget.style[this.styleProperty]=e;let t=this._getContrastYIQ(e);this.styleProperty==="color"?this.previewTarget.style.backgroundColor=t:this.previewTarget.style.color=t}get color(){return this.colorTarget.value}_getContrastYIQ(e){return e=e.replace("#",""),(299*parseInt(e.substr(0,2),16)+587*parseInt(e.substr(2,2),16)+114*parseInt(e.substr(4,2),16))/1e3>=128?"#000":"#fff"}};J7.targets=["preview","color"];var Q7=class extends er{connect(){this.hasButtonTarget&&(this.originalContent=this.buttonTarget.innerHTML)}copy(e){e.preventDefault();let t=this.sourceTarget.innerHTML||this.sourceTarget.value;navigator.clipboard.writeText(t).then(()=>this.copied())}copied(){this.hasButtonTarget&&(this.timeout&&clearTimeout(this.timeout),this.buttonTarget.innerHTML=this.successContentValue,this.timeout=setTimeout(()=>{this.buttonTarget.innerHTML=this.originalContent},this.successDurationValue))}};Q7.targets=["button","source"],Q7.values={successContent:String,successDuration:{type:Number,default:2e3}};var UCe=Q7;var eK=class extends er{connect(){this.hidden=this.inputTarget.type==="password",this.class=this.hasHiddenClass?this.hiddenClass:"hidden"}toggle(e){e.preventDefault(),this.inputTarget.type=this.hidden?"text":"password",this.hidden=!this.hidden,this.iconTargets.forEach(t=>t.classList.toggle(this.class))}};eK.targets=["input","icon"],eK.classes=["hidden"];var HCe=eK;var Eq=class extends HCe{toggle(r){this.inputTarget.disabled||super.toggle(r)}};function S3t(r,e){let t;return(...n)=>{let i=this;clearTimeout(t),t=setTimeout(()=>r.apply(i,n),e)}}var AC=class extends er{initialize(){this.autogrow=this.autogrow.bind(this)}connect(){this.element.style.overflow="hidden";let e=this.resizeDebounceDelayValue;this.onResize=e>0?S3t(this.autogrow,e):this.autogrow,this.autogrow(),this.element.addEventListener("input",this.autogrow),window.addEventListener("resize",this.onResize)}disconnect(){window.removeEventListener("resize",this.onResize)}autogrow(){this.element.style.height="auto",this.element.style.height=`${this.element.scrollHeight}px`}};AC.values={resizeDebounceDelay:{type:Number,default:100}};var VCe=11;function E3t(r,e){var t=e.attributes,n,i,o,a,s;if(!(e.nodeType===VCe||r.nodeType===VCe)){for(var u=t.length-1;u>=0;u--)n=t[u],i=n.name,o=n.namespaceURI,a=n.value,o?(i=n.localName||i,s=r.getAttributeNS(o,i),s!==a&&(n.prefix==="xmlns"&&(i=n.name),r.setAttributeNS(o,i,a))):(s=r.getAttribute(i),s!==a&&r.setAttribute(i,a));for(var h=r.attributes,d=h.length-1;d>=0;d--)n=h[d],i=n.name,o=n.namespaceURI,o?(i=n.localName||i,e.hasAttributeNS(o,i)||r.removeAttributeNS(o,i)):e.hasAttribute(i)||r.removeAttribute(i)}}var Tq,T3t="http://www.w3.org/1999/xhtml",vh=typeof document>"u"?void 0:document,k3t=!!vh&&"content"in vh.createElement("template"),A3t=!!vh&&vh.createRange&&"createContextualFragment"in vh.createRange();function C3t(r){var e=vh.createElement("template");return e.innerHTML=r,e.content.childNodes[0]}function O3t(r){Tq||(Tq=vh.createRange(),Tq.selectNode(vh.body));var e=Tq.createContextualFragment(r);return e.childNodes[0]}function D3t(r){var e=vh.createElement("body");return e.innerHTML=r,e.childNodes[0]}function I3t(r){return r=r.trim(),k3t?C3t(r):A3t?O3t(r):D3t(r)}function kq(r,e){var t=r.nodeName,n=e.nodeName,i,o;return t===n?!0:(i=t.charCodeAt(0),o=n.charCodeAt(0),i<=90&&o>=97?t===n.toUpperCase():o<=90&&i>=97?n===t.toUpperCase():!1)}function M3t(r,e){return!e||e===T3t?vh.createElement(r):vh.createElementNS(e,r)}function P3t(r,e){for(var t=r.firstChild;t;){var n=t.nextSibling;e.appendChild(t),t=n}return e}function tK(r,e,t){r[t]!==e[t]&&(r[t]=e[t],r[t]?r.setAttribute(t,""):r.removeAttribute(t))}var WCe={OPTION:function(r,e){var t=r.parentNode;if(t){var n=t.nodeName.toUpperCase();n==="OPTGROUP"&&(t=t.parentNode,n=t&&t.nodeName.toUpperCase()),n==="SELECT"&&!t.hasAttribute("multiple")&&(r.hasAttribute("selected")&&!e.selected&&(r.setAttribute("selected","selected"),r.removeAttribute("selected")),t.selectedIndex=-1)}tK(r,e,"selected")},INPUT:function(r,e){tK(r,e,"checked"),tK(r,e,"disabled"),r.value!==e.value&&(r.value=e.value),e.hasAttribute("value")||r.removeAttribute("value")},TEXTAREA:function(r,e){var t=e.value;r.value!==t&&(r.value=t);var n=r.firstChild;if(n){var i=n.nodeValue;if(i==t||!t&&i==r.placeholder)return;n.nodeValue=t}},SELECT:function(r,e){if(!e.hasAttribute("multiple")){for(var t=-1,n=0,i=r.firstChild,o,a;i;)if(a=i.nodeName&&i.nodeName.toUpperCase(),a==="OPTGROUP")o=i,i=o.firstChild;else{if(a==="OPTION"){if(i.hasAttribute("selected")){t=n;break}n++}i=i.nextSibling,!i&&o&&(i=o.nextSibling,o=null)}r.selectedIndex=t}}},CC=1,$Ce=11,KCe=3,GCe=8;function Rb(){}function L3t(r){if(r)return r.getAttribute&&r.getAttribute("id")||r.id}function R3t(r){return function(t,n,i){if(i||(i={}),typeof n=="string")if(t.nodeName==="#document"||t.nodeName==="HTML"||t.nodeName==="BODY"){var o=n;n=vh.createElement("html"),n.innerHTML=o}else n=I3t(n);else n.nodeType===$Ce&&(n=n.firstElementChild);var a=i.getNodeKey||L3t,s=i.onBeforeNodeAdded||Rb,u=i.onNodeAdded||Rb,h=i.onBeforeElUpdated||Rb,d=i.onElUpdated||Rb,y=i.onBeforeNodeDiscarded||Rb,S=i.onNodeDiscarded||Rb,k=i.onBeforeElChildrenUpdated||Rb,D=i.skipFromChildren||Rb,M=i.addChild||function(ie,fe){return ie.appendChild(fe)},L=i.childrenOnly===!0,N=Object.create(null),z=[];function Z(ie){z.push(ie)}function $(ie,fe){if(ie.nodeType===CC)for(var Pe=ie.firstChild;Pe;){var ve=void 0;fe&&(ve=a(Pe))?Z(ve):(S(Pe),Pe.firstChild&&$(Pe,fe)),Pe=Pe.nextSibling}}function te(ie,fe,Pe){y(ie)!==!1&&(fe&&fe.removeChild(ie),S(ie),$(ie,Pe))}function ue(ie){if(ie.nodeType===CC||ie.nodeType===$Ce)for(var fe=ie.firstChild;fe;){var Pe=a(fe);Pe&&(N[Pe]=fe),ue(fe),fe=fe.nextSibling}}ue(t);function re(ie){u(ie);for(var fe=ie.firstChild;fe;){var Pe=fe.nextSibling,ve=a(fe);if(ve){var se=N[ve];se&&kq(fe,se)?(fe.parentNode.replaceChild(se,fe),de(se,fe)):re(fe)}else re(fe);fe=Pe}}function ce(ie,fe,Pe){for(;fe;){var ve=fe.nextSibling;(Pe=a(fe))?Z(Pe):te(fe,ie,!0),fe=ve}}function de(ie,fe,Pe){var ve=a(fe);ve&&delete N[ve],!(!Pe&&(h(ie,fe)===!1||(r(ie,fe),d(ie),k(ie,fe)===!1)))&&(ie.nodeName!=="TEXTAREA"?Ae(ie,fe):WCe.TEXTAREA(ie,fe))}function Ae(ie,fe){var Pe=D(ie),ve=fe.firstChild,se=ie.firstChild,We,gt,rt,mt,ut;e:for(;ve;){for(mt=ve.nextSibling,We=a(ve);!Pe&&se;){if(rt=se.nextSibling,ve.isSameNode&&ve.isSameNode(se)){ve=mt,se=rt;continue e}gt=a(se);var Mt=se.nodeType,Ut=void 0;if(Mt===ve.nodeType&&(Mt===CC?(We?We!==gt&&((ut=N[We])?rt===ut?Ut=!1:(ie.insertBefore(ut,se),gt?Z(gt):te(se,ie,!0),se=ut):Ut=!1):gt&&(Ut=!1),Ut=Ut!==!1&&kq(se,ve),Ut&&de(se,ve)):(Mt===KCe||Mt==GCe)&&(Ut=!0,se.nodeValue!==ve.nodeValue&&(se.nodeValue=ve.nodeValue))),Ut){ve=mt,se=rt;continue e}gt?Z(gt):te(se,ie,!0),se=rt}if(We&&(ut=N[We])&&kq(ut,ve))M(ie,ut),de(ut,ve);else{var Wt=s(ve);Wt!==!1&&(Wt&&(ve=Wt),ve.actualize&&(ve=ve.actualize(ie.ownerDocument||vh)),M(ie,ve),re(ve))}ve=mt,se=rt}ce(ie,se,gt);var hr=WCe[ie.nodeName];hr&&hr(ie,fe)}var ye=t,j=ye.nodeType,H=n.nodeType;if(!L){if(j===CC)H===CC?kq(t,n)||(S(t),ye=P3t(t,M3t(n.nodeName,n.namespaceURI))):ye=n;else if(j===KCe||j===GCe){if(H===j)return ye.nodeValue!==n.nodeValue&&(ye.nodeValue=n.nodeValue),ye;ye=n}}if(ye===n)S(t);else{if(n.isSameNode&&n.isSameNode(ye))return;if(de(ye,n,L),z)for(var xe=0,Ie=z.length;xe<Ie;xe++){var pe=N[z[xe]];pe&&te(pe,pe.parentNode,!1)}}return!L&&ye!==t&&t.parentNode&&(ye.actualize&&(ye=ye.actualize(t.ownerDocument||vh)),t.parentNode.replaceChild(ye,t)),ye}}var q3t=R3t(E3t);function F3t(){let r={childrenOnly:this.hasAttribute("children-only")};this.targetElements.forEach((e=>{q3t(e,r.childrenOnly?this.templateContent:this.templateElement.innerHTML,r)}))}var N3t=r=>{r.morph=F3t};function nK(r){return r.replace(/(?:[_-])([a-z0-9])/g,((e,t)=>t.toUpperCase()))}function B3t(r){return r.charAt(0).toUpperCase()+r.slice(1)}function z3t(r){return r.replace(/([A-Z])/g,((e,t)=>`-${t.toLowerCase()}`))}function Aq(r){return r?r.match(/[^\s]+/g)||[]:[]}function iK(r){try{return JSON.parse(r)}catch{return r}}var j3t=Object.freeze({__proto__:null,camelize:nK,capitalize:B3t,dasherize:z3t,tokenize:Aq,typecast:iK});function ZCe(){let r=Aq(this.getAttribute("classes"));r.length>0?this.targetElements.forEach((e=>e.classList.add(...r))):console.warn('[TurboPower] no "classes" provided for Turbo Streams operation "add_css_class"')}function XCe(){let r=this.getAttribute("attribute");r?this.targetElements.forEach((e=>e.removeAttribute(r))):console.warn('[TurboPower] no "attribute" provided for Turbo Streams operation "remove_attribute"')}function JCe(){let r=Aq(this.getAttribute("classes"));r.length>0?this.targetElements.forEach((e=>e.classList.remove(...r))):console.warn('[TurboPower] no "classes" provided for Turbo Streams operation "remove_css_class"')}function QCe(){let r=this.getAttribute("attribute"),e=this.getAttribute("value")||"";r?this.targetElements.forEach((t=>t.setAttribute(r,e))):console.warn('[TurboPower] no "attribute" provided for Turbo Streams operation "set_attribute"')}function eOe(){let r=this.getAttribute("attribute"),e=this.getAttribute("value")||"";r?this.targetElements.forEach((t=>t.dataset[nK(r)]=e)):console.warn('[TurboPower] no "attribute" provided for Turbo Streams operation "set_dataset_attribute"')}function tOe(){let r=this.getAttribute("name"),e=iK(this.getAttribute("value")||"");r?this.targetElements.forEach((t=>t[r]=e)):console.error('[TurboPower] no "name" provided for Turbo Streams operation "set_property"')}function rOe(){let r=this.getAttribute("name"),e=this.getAttribute("value")||"";r?this.targetElements.forEach((t=>t.style[r]=e)):console.error('[TurboPower] no "name" provided for Turbo Streams operation "set_style"')}function nOe(){let r=this.getAttribute("styles")||"";this.targetElements.forEach((e=>e.setAttribute("style",r)))}function iOe(){let r=this.getAttribute("value")||"";this.targetElements.forEach((e=>e.value=r))}function oOe(){let r=Aq(this.getAttribute("classes"));r.length>0?this.targetElements.forEach((e=>{r.forEach((t=>e.classList.toggle(t)))})):console.warn('[TurboPower] no "classes" provided for Turbo Streams operation "toggle_css_class"')}function aOe(){let r=this.getAttribute("from")||"",e=this.getAttribute("to")||"";r&&e?this.targetElements.forEach((t=>{t.classList.replace(r,e)||console.warn(`[TurboPower] The "${r}" CSS class provided in the "from" attribute for the "replace_css_class" action was not found on the target element. No replacements made.`,t)})):console.warn('[TurboPower] no "from" or "to" class provided for Turbo Streams operation "replace_css_class"')}function sOe(r){r.add_css_class=ZCe,r.remove_css_class=JCe,r.remove_attribute=XCe,r.set_attribute=QCe,r.set_dataset_attribute=eOe,r.set_property=tOe,r.set_style=rOe,r.set_styles=nOe,r.set_value=iOe,r.toggle_css_class=oOe,r.replace_css_class=aOe}function lOe(){window.location.reload()}function uOe(){let r=this.getAttribute("align-to-top"),e=this.getAttribute("block"),t=this.getAttribute("inline"),n=this.getAttribute("behavior");if(r)this.targetElements.forEach((i=>i.scrollIntoView(r==="true")));else if(e||t||n){let i={};e&&(i.block=e),t&&(i.inline=t),n&&(i.behavior=n),this.targetElements.forEach((o=>o.scrollIntoView(i)))}else this.targetElements.forEach((i=>i.scrollIntoView()))}function cOe(){this.targetElements.forEach((r=>r.focus()))}function fOe(){let r=this.getAttribute("title")||"",e=document.head.querySelector("title");e||(e=document.createElement("title"),document.head.appendChild(e)),e.textContent=r}function hOe(r){r.reload=lOe,r.scroll_into_view=uOe,r.set_focus=cOe,r.set_title=fOe}function dOe(){let r=this.getAttribute("message"),e=this.getAttribute("level")||"log";console[e](r)}function pOe(){let r=JSON.parse(this.getAttribute("data")||"[]"),e=JSON.parse(this.getAttribute("columns")||"[]");console.table(r,e)}function mOe(r){r.console_log=dOe,r.console_table=pOe}function gOe(){console.warn("[TurboPower] The `invoke` Turbo Stream Action was removed from TurboPower. If you'd like to continue using this action please use the successor library instead. Read more here: https://github.com/hopsoft/turbo_boost-streams")}function vOe(r){r.invoke||(r.invoke=gOe)}var rK=class{constructor(e){this.ATTRIBUTE_TO_COOKIE_KEY_MAPPING=[["domain","Domain",!1],["path","Path",!1],["expires","Expires",!1],["max-age","Max-Age",!1],["http-only","HttpOnly",!0],["secure","Secure",!0],["same-site","SameSite",!1]],this.streamElement=e}build(){let e=`${this.streamElement.getAttribute("name")}=${this.streamElement.getAttribute("value")}`;return this.ATTRIBUTE_TO_COOKIE_KEY_MAPPING.forEach((([t,n,i])=>{let o=this.streamElement.getAttribute(t);if(o!==null){let a=i?n:`${n}=${o}`;e=`${e}; ${a}`}})),e}};function yOe(){let r=this.getAttribute("cookie")||"";document.cookie=r}function bOe(){let r=new rK(this);document.cookie=r.build()}function xOe(r){r.set_cookie=yOe,r.set_cookie_item=bOe}function _Oe(){let r=this.getAttribute("parent");if(r){let e=document.querySelector(r);e?this.targetElements.forEach((t=>e.appendChild(t))):console.error(`[TurboPower] couldn't find parent element using selector "${r}" for Turbo Streams operation "graft"`)}else console.error('[TurboPower] no "parent" selector provided for Turbo Streams operation "graft"')}function wOe(){let r=this.templateContent.textContent||"";this.targetElements.forEach((e=>e.innerHTML=r))}function SOe(){let r=this.getAttribute("position")||"beforebegin",e=this.templateContent.textContent||"";this.targetElements.forEach((t=>t.insertAdjacentHTML(r,e)))}function EOe(){let r=this.getAttribute("position")||"beforebegin",e=this.getAttribute("text")||"";this.targetElements.forEach((t=>t.insertAdjacentText(r,e)))}function TOe(){let r=this.templateContent.textContent||"";this.targetElements.forEach((e=>e.outerHTML=r))}function kOe(){let r=this.getAttribute("name"),e=this.getAttribute("content")||"";if(r){let t=document.head.querySelector(`meta[name='${r}']`);t||(t=document.createElement("meta"),t.name=r,document.head.appendChild(t)),t.content=e}else console.error('[TurboPower] no "name" provided for Turbo Streams operation "set_meta"')}function AOe(){let r=this.getAttribute("text")||"";this.targetElements.forEach((e=>e.textContent=r))}function COe(r){r.graft=_Oe,r.inner_html=wOe,r.insert_adjacent_html=SOe,r.insert_adjacent_text=EOe,r.outer_html=TOe,r.text_content=AOe,r.set_meta=kOe}function OOe(){let r=this.getAttribute("name"),e=null;try{e=this.templateContent.textContent}catch{}try{let t=e?JSON.parse(e):{};if(r){let n={bubbles:!0,cancelable:!0,detail:t},i=new CustomEvent(r,n);this.targetElements.forEach((o=>o.dispatchEvent(i)))}else console.warn('[TurboPower] no "name" provided for Turbo Streams operation "dispatch_event"')}catch(t){console.error(`[TurboPower] error proccessing provided "detail" in "<template>" ("${e}") for Turbo Streams operation "dispatch_event".`,`Error: "${t.message}"`)}}function DOe(r){r.dispatch_event=OOe}function IOe(){this.targetElements.forEach((r=>r.reset()))}function MOe(r){r.reset_form=IOe}function POe(){let r=this.getAttribute("url"),e=this.getAttribute("state"),t=this.getAttribute("title")||"";window.history.pushState(e,t,r)}function LOe(){let r=this.getAttribute("url"),e=this.getAttribute("state"),t=this.getAttribute("title")||"";window.history.replaceState(e,t,r)}function ROe(){window.history.back()}function U3t(){window.history.forward()}function qOe(){let r=Number(this.getAttribute("delta"))||0;window.history.go(r)}function FOe(r){r.push_state=POe,r.replace_state=LOe,r.history_back=ROe,r.history_go=qOe}var H3t=["dir","lang","badge","body","tag","icon","image","data","vibrate","renotify","require-interaction","actions","silent"],YCe=r=>{let e=r.getAttribute("title")||"",t=Array.from(r.attributes).filter((i=>H3t.includes(i.name))).map((i=>[nK(i.name),iK(i.value)])),n=Object.fromEntries(t);new Notification(e,n)};function NOe(){window.Notification?Notification.permission==="granted"?YCe(this):Notification.permission!=="denied"&&Notification.requestPermission().then((r=>{r==="granted"&&YCe(this)})):alert("This browser does not support desktop notification")}function BOe(r){r.notification=NOe}function oK(r){return r==="session"?window.sessionStorage:window.localStorage}function zOe(){let r=this.getAttribute("type");oK(r).clear()}function jOe(){let r=this.getAttribute("key"),e=this.getAttribute("value")||"",t=this.getAttribute("type");r?oK(t).setItem(r,e):console.warn('[TurboPower] no "key" provided for Turbo Streams operation "set_storage_item"')}function UOe(){let r=this.getAttribute("key"),e=this.getAttribute("type");r?oK(e).removeItem(r):console.warn('[TurboPower] no "key" provided for Turbo Streams operation "remove_storage_item"')}function HOe(r){r.clear_storage=zOe,r.set_storage_item=jOe,r.remove_storage_item=UOe}var V3t={get location(){return window.TurboPowerLocation||window.location}};function VOe(){let r=this.getAttribute("url")||"/",e=this.getAttribute("turbo-action")||"advance",t=this.getAttribute("turbo-frame"),n=this.getAttribute("turbo")!=="false",i={action:e};t&&(i.frame=t),n&&window.Turbo?window.Turbo.visit(r,i):V3t.location.assign(r)}function WOe(){window.Turbo.cache.clear()}function $Oe(r){r.redirect_to=VOe,r.turbo_clear_cache=WOe}function KOe(){let r=this.getAttribute("value")||0;window.Turbo.navigator.adapter.progressBar.setValue(Number(r))}function GOe(){window.Turbo.navigator.adapter.progressBar.show()}function YOe(){window.Turbo.navigator.adapter.progressBar.hide()}function ZOe(r){r.turbo_progress_bar_set_value=KOe,r.turbo_progress_bar_show=GOe,r.turbo_progress_bar_hide=YOe}function XOe(){this.targetElements.forEach((r=>r.reload()))}function JOe(){let r=this.getAttribute("src");this.targetElements.forEach((e=>e.src=r))}function QOe(r){r.turbo_frame_reload=XOe,r.turbo_frame_set_src=JOe}function eDe(r){sOe(r),hOe(r),mOe(r),vOe(r),xOe(r),COe(r),DOe(r),MOe(r),FOe(r),BOe(r),HOe(r),$Oe(r),ZOe(r),QOe(r)}var W3t=Object.freeze({__proto__:null,add_css_class:ZCe,clear_storage:zOe,console_log:dOe,console_table:pOe,dispatch_event:OOe,graft:_Oe,history_back:ROe,history_forward:U3t,history_go:qOe,inner_html:wOe,insert_adjacent_html:SOe,insert_adjacent_text:EOe,invoke:gOe,notification:NOe,outer_html:TOe,push_state:POe,redirect_to:VOe,register:eDe,registerAttributesActions:sOe,registerBrowserActions:hOe,registerDOMActions:COe,registerDebugActions:mOe,registerDeprecatedActions:vOe,registerDocumentActions:xOe,registerEventsActions:DOe,registerFormActions:MOe,registerHistoryActions:FOe,registerNotificationActions:BOe,registerStorageActions:HOe,registerTurboActions:$Oe,registerTurboFrameActions:QOe,registerTurboProgressBarActions:ZOe,reload:lOe,remove_attribute:XCe,remove_css_class:JCe,remove_storage_item:UOe,replace_css_class:aOe,replace_state:LOe,reset_form:IOe,scroll_into_view:uOe,set_attribute:QCe,set_cookie:yOe,set_cookie_item:bOe,set_dataset_attribute:eOe,set_focus:cOe,set_meta:kOe,set_property:tOe,set_storage_item:jOe,set_style:rOe,set_styles:nOe,set_title:fOe,set_value:iOe,text_content:AOe,toggle_css_class:oOe,turbo_clear_cache:WOe,turbo_frame_reload:XOe,turbo_frame_set_src:JOe,turbo_progress_bar_hide:YOe,turbo_progress_bar_set_value:KOe,turbo_progress_bar_show:GOe});function $3t(r){N3t(r),eDe(r)}function K3t(r,e,t){t[r]=e}var tDe={initialize:$3t,register:K3t,Actions:W3t,Utils:j3t};tDe.initialize(window.Turbo.StreamActions);var hn=xq.start();hn.debug=window?.localStorage.getItem("avo.debug");window.Stimulus=hn;window.FakeStimulus={Controller:er};hn.register("alert",wS);hn.register("popover",kC);hn.register("clipboard",UCe);hn.register("password-visibility",Eq);hn.register("textarea-autogrow",AC);var Cq=class extends er{static targets=["resourceIds","form","selectedAll","indexQuery"];static values={confirmation:Boolean,resourceName:String};connect(){this.resourceIdsTarget.value===""&&(this.resourceIdsTarget.value=this.resourceIds),this.selectedAllTarget.value=this.selectionOptions.itemSelectAllSelectedAllValue,this.selectionOptions.itemSelectAllSelectedAllQueryValue&&(this.indexQueryTarget.value=this.selectionOptions.itemSelectAllSelectedAllQueryValue),this.confirmationValue?this.element.classList.remove("hidden"):this.formTarget.requestSubmit()}get resourceIds(){try{return JSON.parse(this.selectionOptions.selectedResources)}catch{return[]}}get selectionOptions(){try{return document.querySelector(`[data-selected-resources-name="${this.resourceNameValue}"]`).dataset}catch{return[]}}};var Oq=class extends er{static targets=["content"];static values={panelList:Boolean};get parentTarget(){return document.querySelector('[data-component-name="avo/view_types/table_component"]')||document.querySelector('[data-component-name="avo/view_types/grid_component"]')||document.querySelector(".main-content-area .scrollable-wrapper")}get isRTL(){return document.documentElement.dir==="rtl"}childDimensions=null;parentDimensions=null;connect(){this.element.style.display="block",this.childDimensions=this.contentTarget.getBoundingClientRect(),this.element.style.display="",this.parentDimensions=this.parentTarget.getBoundingClientRect(),this.adjustOverflow()}adjustOverflow(){this.adjustVerticalOverflow(),this.adjustHorizontalOverflow()}adjustVerticalOverflow(){this.contentBottomOverflow&&(this.contentTarget.classList.remove("top-full","mt-2"),this.contentTarget.classList.add("bottom-full","mb-2"))}adjustHorizontalOverflow(){this.isRTL?this.contentRightOverflow&&(this.contentTarget.classList.remove("xl:start-0","sm:start-0"),this.contentTarget.classList.add("xl:end-0","sm:end-0")):this.contentLeftOverflow&&(this.contentTarget.classList.remove("xl:end-0","sm:end-0"),this.contentTarget.classList.add("xl:start-0","sm:start-0"))}get contentBottomOverflow(){return this.panelListValue===!0?!1:this.parentDimensions.bottom<this.childDimensions.bottom}get contentLeftOverflow(){return this.parentDimensions.left>this.childDimensions.left}get contentRightOverflow(){return this.parentDimensions.right<this.childDimensions.right}};var Dq=class extends er{static targets=["resourceAction","standaloneAction"];static classes=["enabled","disabled"];target={};get targetIsDisabled(){return this.target.dataset.disabled==="true"}get actionsShowTurboFrame(){return document.querySelector(`turbo-frame#${window.Avo.configuration.modal_frame_id}`)}enableTarget(){this.targetIsDisabled&&(this.target.classList.remove(...this.disabledClasses),this.target.classList.add(...this.enabledClasses),this.target.dataset.disabled=!1)}disableTarget(){this.target.classList.remove(...this.enabledClasses),this.target.classList.add(...this.disabledClasses),this.target.dataset.disabled=!0}visitAction(r){if(this.target=r.target,this.targetIsDisabled){r.preventDefault();return}this.disableTarget();let e=this;setTimeout(()=>{this.actionsShowTurboFrame.loaded.then(()=>e.enableTarget(e.target))},1)}};var Iq=class extends er{static targets=["form"];connect(){this.formTarget.submit()}};var Mq=class extends er{static targets=["select","type","container"];connect(){this.changeType()}changeType(){this.#e(),this.#t(this.selectTarget.value)}#e(){this.containerTarget.innerHTML="",this.containerTarget.classList.add("hidden")}#t(r){let e=this.typeTargets.find(t=>t.dataset.type===r);e&&(this.containerTarget.classList.remove("hidden"),this.containerTarget.appendChild(e.content.cloneNode(!0)))}};var aK=Ao(r_()),yh=class extends er{static targets=["urlRedirect"];static values={keepFiltersPanelOpen:Boolean};PARAM_KEY="encoded_filters";uriParams(){let r=this.urlRedirectTarget.dataset.turboFrame;return(0,aK.default)(r?this.element.closest(`turbo-frame#${r}`)?.src:window.location.toString()).query(!0)}viaResourceName(){return this.uriParams().via_resource_name}uriParam(r){return this.viaResourceName()?`${this.viaResourceName}_${r}`:r}decode(r){return JSON.parse(new TextDecoder().decode(Uint8Array.from(atob(decodeURIComponent(r)),e=>e.codePointAt(0))))}encode(r){return encodeURIComponent(btoa(String.fromCodePoint(...new TextEncoder().encode(JSON.stringify(r)))))}changeFilter(){let r=this.getFilterValue(),e=this.getFilterClass(),t=this.uriParams()[this.uriParam(this.PARAM_KEY)];t?t=this.decode(t):t={},t[e]=r;let n=Object.keys(t).filter(o=>t[o]!==null).reduce((o,a)=>(o[a]=t[a],o),{}),i;n&&Object.keys(n).length>0&&(i=this.encode(n)),this.navigateToURLWithFilters(i)}navigateToURLWithFilters(r){let e=new aK.default(this.urlRedirectTarget.href),t={...e.query(!0)};this.keepFiltersPanelOpenValue&&(t.keep_filters_panel_open=this.keepFiltersPanelOpenValue?1:null),t.page=1,r?t[this.PARAM_KEY]=r:delete t[this.PARAM_KEY],e.query(t),this.urlRedirectTarget.href=e.readable().toString(),this.urlRedirectTarget.click()}};var qq=class extends yh{static targets=["option"];getFilterValue(){let r={};return this.optionTargets.forEach(e=>{r[e.value]=e.checked}),r}getFilterClass(){let{filterClass:r}=this.optionTarget.dataset;return r}};var lDe=Ao(r_()),Fq=class extends er{static targets=["cards"];updateCards(r){this.cardsTargets.forEach(e=>{e.src=new lDe.default(e.src).setQuery("global_range[date]",r.target.dataset.days).toString()})}};var Nq=class extends er{static targets=["input","clearButton"];showClearButton(){this.clearButtonTarget.classList.remove("hidden")}clearInput(){this.inputTarget.value="",this.clearButtonTarget.classList.add("hidden")}};var wDr=Ao(TS()),SDr=Ao(mDe()),EDr=Ao(Bq()),TDr=Ao(OC()),kDr=Ao(zq()),ADr=Ao(ODe()),CDr=Ao(RDe()),ODr=Ao(NDe()),DDr=Ao(cK()),IDr=Ao(HDe()),MDr=Ao($De()),PDr=Ao(hIe()),LDr=Ao(kS()),RDr=Ao(mIe());var gIe=Ao(Oo());var AS=r=>r=="true";var Uq=class extends er{static targets=["element"];get isDark(){return document.documentElement.classList.contains("dark")}get resolvedTheme(){return this.isDark?"monokai":this.elementTarget.dataset.theme||"default"}connect(){let r={readOnly:AS(this.elementTarget.dataset.readOnly),mode:this.elementTarget.dataset.language,theme:this.resolvedTheme,tabSize:this.elementTarget.dataset.tabSize,indentWithTabs:AS(this.elementTarget.dataset.indentWithTabs),lineWrapping:AS(this.elementTarget.dataset.lineWrapping),lineNumbers:!0,extraKeys:{Esc:t=>t.getInputField().blur()}},e=this;setTimeout(()=>{e.cm=gIe.default.fromTextArea(e.elementTarget,r),e.cm.on("change",t=>{e.elementTarget.innerText=t.getValue(),e.elementTarget.dispatchEvent(new Event("input"))})},1),this.observer=new MutationObserver(()=>{e.cm&&e.cm.setOption("theme",e.resolvedTheme)}),this.observer.observe(document.documentElement,{attributes:!0,attributeFilter:["class"]})}disconnect(){this.observer&&this.observer.disconnect(),this.element.querySelector(".CodeMirror").CodeMirror.toTextArea()}};var DC=class{constructor(e){this.response=e}get statusCode(){return this.response.status}get redirected(){return this.response.redirected}get ok(){return this.response.ok}get unauthenticated(){return this.statusCode===401}get unprocessableEntity(){return this.statusCode===422}get authenticationURL(){return this.response.headers.get("WWW-Authenticate")}get contentType(){return(this.response.headers.get("Content-Type")||"").replace(/;.*$/,"")}get headers(){return this.response.headers}get html(){return this.contentType.match(/^(application|text)\/(html|xhtml\+xml)$/)?this.text:Promise.reject(new Error(`Expected an HTML response but got "${this.contentType}" instead`))}get json(){return this.contentType.match(/^application\/.*json$/)?this.responseJson||(this.responseJson=this.response.json()):Promise.reject(new Error(`Expected a JSON response but got "${this.contentType}" instead`))}get text(){return this.responseText||(this.responseText=this.response.text())}get isTurboStream(){return this.contentType.match(/^text\/vnd\.turbo-stream\.html/)}get isScript(){return this.contentType.match(/\b(?:java|ecma)script\b/)}async renderTurboStream(){if(this.isTurboStream)window.Turbo?await window.Turbo.renderStreamMessage(await this.text):console.warn("You must set `window.Turbo = Turbo` to automatically process Turbo Stream events with request.js");else return Promise.reject(new Error(`Expected a Turbo Stream response but got "${this.contentType}" instead`))}async activeScript(){if(this.isScript){let e=document.createElement("script"),t=document.querySelector("meta[name=csp-nonce]"),n=t&&t.content;n&&e.setAttribute("nonce",n),e.innerHTML=await this.text,document.body.appendChild(e)}else return Promise.reject(new Error(`Expected a Script response but got "${this.contentType}" instead`))}};var IC=class{static register(e){this.interceptor=e}static get(){return this.interceptor}static reset(){this.interceptor=void 0}};function vIe(r){let e=document.cookie?document.cookie.split("; "):[],t=`${encodeURIComponent(r)}=`,n=e.find(i=>i.startsWith(t));if(n){let i=n.split("=").slice(1).join("=");if(i)return decodeURIComponent(i)}}function yIe(r){let e={};for(let t in r){let n=r[t];n!==void 0&&(e[t]=n)}return e}function fK(r){let e=document.head.querySelector(`meta[name="${r}"]`);return e&&e.content}function bIe(r){return[...r].reduce((e,[t,n])=>e.concat(typeof n=="string"?[[t,n]]:[]),[])}function xIe(r,e){for(let[t,n]of e)n instanceof window.File||(r.has(t)&&!t.includes("[]")?(r.delete(t),r.set(t,n)):r.append(t,n))}var CS=class{constructor(e,t,n={}){this.method=e,this.options=n,this.originalUrl=t.toString()}async perform(){try{let i=IC.get();i&&await i(this)}catch(i){console.error(i)}let e=this.responseKind==="turbo-stream"&&window.Turbo?window.Turbo.fetch:window.fetch,t=new DC(await e(this.url,this.fetchOptions));return t.unauthenticated&&t.authenticationURL?Promise.reject(window.location.href=t.authenticationURL):(t.isScript&&await t.activeScript(),(t.ok||t.unprocessableEntity)&&t.isTurboStream&&await t.renderTurboStream(),t)}addHeader(e,t){let n=this.additionalHeaders;n[e]=t,this.options.headers=n}sameHostname(){if(!this.originalUrl.startsWith("http:"))return!0;try{return new URL(this.originalUrl).hostname===window.location.hostname}catch{return!0}}get fetchOptions(){return{method:this.method.toUpperCase(),headers:this.headers,body:this.formattedBody,signal:this.signal,credentials:this.credentials,redirect:this.redirect}}get headers(){let e={"X-Requested-With":"XMLHttpRequest","Content-Type":this.contentType,Accept:this.accept};return this.sameHostname()&&(e["X-CSRF-Token"]=this.csrfToken),yIe(Object.assign(e,this.additionalHeaders))}get csrfToken(){return vIe(fK("csrf-param"))||fK("csrf-token")}get contentType(){return this.options.contentType?this.options.contentType:this.body==null||this.body instanceof window.FormData?void 0:this.body instanceof window.File?this.body.type:"application/json"}get accept(){switch(this.responseKind){case"html":return"text/html, application/xhtml+xml";case"turbo-stream":return"text/vnd.turbo-stream.html, text/html, application/xhtml+xml";case"json":return"application/json, application/vnd.api+json";case"script":return"text/javascript, application/javascript";default:return"*/*"}}get body(){return this.options.body}get query(){let e=(this.originalUrl.split("?")[1]||"").split("#")[0],t=new URLSearchParams(e),n=this.options.query;n instanceof window.FormData?n=bIe(n):n instanceof window.URLSearchParams?n=n.entries():n=Object.entries(n||{}),xIe(t,n);let i=t.toString();return i.length>0?`?${i}`:""}get url(){return this.originalUrl.split("?")[0].split("#")[0]+this.query}get responseKind(){return this.options.responseKind||"html"}get signal(){return this.options.signal}get redirect(){return this.options.redirect||"follow"}get credentials(){return this.options.credentials||"same-origin"}get additionalHeaders(){return this.options.headers||{}}get formattedBody(){let e=Object.prototype.toString.call(this.body)==="[object String]";return this.headers["Content-Type"]==="application/json"&&!e?JSON.stringify(this.body):this.body}};async function hK(r,e){return new CS("get",r,e).perform()}async function dK(r,e){return new CS("patch",r,e).perform()}function Hq(r){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var n in t)r[n]=t[n]}return r}var G3t={read:function(r){return r[0]==='"'&&(r=r.slice(1,-1)),r.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(r){return encodeURIComponent(r).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function pK(r,e){function t(i,o,a){if(!(typeof document>"u")){a=Hq({},e,a),typeof a.expires=="number"&&(a.expires=new Date(Date.now()+a.expires*864e5)),a.expires&&(a.expires=a.expires.toUTCString()),i=encodeURIComponent(i).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var s="";for(var u in a)a[u]&&(s+="; "+u,a[u]!==!0&&(s+="="+a[u].split(";")[0]));return document.cookie=i+"="+r.write(o,i)+s}}function n(i){if(!(typeof document>"u"||arguments.length&&!i)){for(var o=document.cookie?document.cookie.split("; "):[],a={},s=0;s<o.length;s++){var u=o[s].split("="),h=u.slice(1).join("=");try{var d=decodeURIComponent(u[0]);if(a[d]=r.read(h,d),i===d)break}catch{}}return i?a[i]:a}}return Object.create({set:t,get:n,remove:function(i,o){t(i,"",Hq({},o,{expires:-1}))},withAttributes:function(i){return pK(this.converter,Hq({},this.attributes,i))},withConverter:function(i){return pK(Hq({},this.converter,i),this.attributes)}},{attributes:{value:Object.freeze(e)},converter:{value:Object.freeze(r)}})}var qb=pK(G3t,{path:"/"});var Vq=class extends er{static targets=["button","accentOption","themeLabel","themeOption"];connect(){this.appearance=window.Avo?.configuration?.appearance||{},this.lockedNeutral=this.appearance.neutralLocked?this.appearance.neutral:null,this.lockedAccent=this.appearance.accentLocked?this.appearance.accent:null,this.lockedScheme=this.appearance.schemeLocked?this.appearance.scheme:null,this.currentSchemeValue=this.readCurrentScheme(),this.currentThemeValue=this.readCurrentNeutral(),this.currentAccentValue=this.readCurrentAccent(),this.updateThemeLabel(),this.updateActiveThemeOption(),this.updateActiveAccentOption(),this.mediaQuery=window.matchMedia("(prefers-color-scheme: dark)"),this.mediaQueryListener=()=>{this.currentSchemeValue==="auto"&&this.applyScheme()},this.mediaQuery.addEventListener("change",this.mediaQueryListener)}readCurrentScheme(){let r=document.documentElement;return r.classList.contains("scheme-dark")?"dark":r.classList.contains("scheme-light")?"light":"auto"}readCurrentNeutral(){let r=Array.from(document.documentElement.classList).find(e=>e.startsWith("neutral-theme-"));return r?r.replace("neutral-theme-",""):"brand"}readCurrentAccent(){let r=Array.from(document.documentElement.classList).find(e=>e.startsWith("accent-theme-"));return r?r.replace("accent-theme-",""):"brand"}disconnect(){this.mediaQuery&&this.mediaQueryListener&&this.mediaQuery.removeEventListener("change",this.mediaQueryListener)}setScheme(r){if(r.preventDefault(),this.lockedScheme)return;let{scheme:e}=r.currentTarget.dataset;!e||!["auto","light","dark"].includes(e)||(this.currentSchemeValue=e,this.persistPreferences("scheme"),this.applyScheme())}setTheme(r){if(r.preventDefault(),this.lockedNeutral)return;let{theme:e}=r.currentTarget.dataset,t=this.appearance.neutrals||[];!e||!t.includes(e)||(this.currentThemeValue=e,this.persistPreferences("theme"),this.applyTheme(),this.updateThemeLabel(),this.updateActiveThemeOption())}previewTheme(r){let{theme:e}=r.currentTarget.dataset;e&&(this.applyThemeClass(e),this.updateActiveThemeOptionFor(e))}revertTheme(){this.applyTheme(),this.updateActiveThemeOption()}setAccent(r){if(r.preventDefault(),this.lockedAccent)return;let{accent:e}=r.currentTarget.dataset,t=this.appearance.accents||[];!e||!t.includes(e)||(this.currentAccentValue=e,this.persistPreferences("accent"),this.applyAccent())}previewAccent(r){let{accent:e}=r.currentTarget.dataset;e&&(this.applyAccentClass(e),this.updateActiveAccentOptionFor(e))}revertAccent(){this.applyAccent(),this.updateActiveAccentOption()}cycleScheme(){this.lockedScheme||(this.currentSchemeValue=this.nextValue(["auto","light","dark"],this.currentSchemeValue),this.persistPreferences("scheme"),this.applyScheme())}cycleNeutral(){if(this.lockedNeutral)return;let r=this.appearance.neutrals||[];r.length!==0&&(this.currentThemeValue=this.nextValue(r,this.currentThemeValue||"brand"),this.persistPreferences("theme"),this.applyTheme(),this.updateThemeLabel(),this.updateActiveThemeOption())}cycleAccent(){if(this.lockedAccent)return;let r=this.appearance.accents||[];r.length!==0&&(this.currentAccentValue=this.nextValue(r,this.currentAccentValue||"brand"),this.persistPreferences("accent"),this.applyAccent(),this.updateActiveAccentOption())}nextValue(r,e){let t=r.indexOf(e);return r[(t+1)%r.length]}persistPreferences(r){if(this.appearance.persistence==="database"){this.patchAppearanceSettings(r);return}this.writePreferenceCookie(r)}writePreferenceCookie(r){switch(r){case"scheme":this.setPreferenceCookie("color_scheme",this.currentSchemeValue,this.appearanceDefaultScheme());break;case"theme":this.setPreferenceCookie("theme",this.currentThemeValue,this.appearanceDefaultNeutral());break;case"accent":this.setPreferenceCookie("accent_color",this.currentAccentValue,this.appearanceDefaultAccent());break;default:break}}appearanceDefaultScheme(){let r=this.appearance.scheme;return r!=null&&r!==""?String(r):"auto"}appearanceDefaultNeutral(){let r=this.appearance.neutral;return r!=null&&r!==""?String(r):"brand"}appearanceDefaultAccent(){let r=this.appearance.accent;return r!=null&&r!==""?String(r):"brand"}setPreferenceCookie(r,e,t){e===t?qb.remove(r):qb.set(r,e)}patchAppearanceSettings(r){let e=this.appearanceSettingsPayload(r);e&&dK(`${window.Avo.configuration.root_path}/appearance_settings`,{responseKind:"json",contentType:"application/json",body:e})}appearanceSettingsPayload(r){switch(r){case"scheme":return{color_scheme:this.currentSchemeValue};case"theme":return{neutral:this.currentThemeValue};case"accent":return{accent:this.currentAccentValue};default:return null}}applyScheme(){let r=this.currentSchemeValue||"auto";document.documentElement.classList.remove("scheme-light","scheme-dark","scheme-auto"),r==="light"?(document.documentElement.classList.add("scheme-light"),document.documentElement.classList.remove("dark")):r==="dark"?(document.documentElement.classList.add("scheme-dark"),document.documentElement.classList.add("dark")):r==="auto"&&(document.documentElement.classList.add("scheme-auto"),window.matchMedia("(prefers-color-scheme: dark)").matches?document.documentElement.classList.add("dark"):document.documentElement.classList.remove("dark"))}applyTheme(){this.applyThemeClass(this.currentThemeValue||"brand")}applyThemeClass(r){let e=document.documentElement;Array.from(e.classList).forEach(t=>{t.startsWith("neutral-theme-")&&e.classList.remove(t)}),r!=="brand"&&e.classList.add(`neutral-theme-${r}`)}updateActiveThemeOption(){this.updateActiveThemeOptionFor(this.currentThemeValue||"brand")}updateActiveThemeOptionFor(r){this.hasThemeOptionTarget&&this.themeOptionTargets.forEach(e=>{let{theme:t}=e.dataset;t&&e.classList.toggle("color-scheme-switcher__theme-option--active",t===r)})}applyAccent(){this.applyAccentClass(this.currentAccentValue||"brand")}applyAccentClass(r){let e=document.documentElement;Array.from(e.classList).forEach(t=>{t.startsWith("accent-theme-")&&e.classList.remove(t)}),r!=="brand"&&e.classList.add(`accent-theme-${r}`)}updateActiveAccentOption(){this.updateActiveAccentOptionFor(this.currentAccentValue||"brand")}updateActiveAccentOptionFor(r){this.hasAccentOptionTarget&&this.accentOptionTargets.forEach(e=>{let{accent:t}=e.dataset;t&&e.classList.toggle("color-scheme-switcher__accent-option--active",t===r)})}updateThemeLabel(){this.updateThemeLabelText(this.currentThemeValue||"brand")}updateThemeLabelText(r){this.hasThemeLabelTarget&&(this.themeLabelTarget.textContent=r.charAt(0).toUpperCase()+r.slice(1))}};var Wq=class extends er{static targets=["option"];navigate(r){if(!["ArrowDown","ArrowUp"].includes(r.key))return;r.preventDefault();let e=this.optionTargets,t=e.indexOf(document.activeElement),n=r.key==="ArrowDown"?(t+1)%e.length:(t-1+e.length)%e.length;e[n]?.focus()}};var $q=class extends er{copy(r){r.preventDefault();let e=this.context.element.dataset.text,t=document.createElement("textarea"),n=t.contentEditable,i=t.readOnly;t.value=e,t.contentEditable=!0,t.readOnly=!1,t.setAttribute("readonly",!1),t.setAttribute("contenteditable",!0),t.style.position="absolute",t.style.left="-9999px",document.body.appendChild(t);let o=document.getSelection().rangeCount>0?document.getSelection().getRangeAt(0):!1;t.select(),t.setSelectionRange(0,999999),document.execCommand("copy"),document.body.removeChild(t),o&&(document.getSelection().removeAllRanges(),document.getSelection().addRange(o)),t.contentEditable=n,t.readOnly=i;let a=this.element,s=a.innerHTML;a.innerHTML="Copied \u{1F44C}",a.classList.add("transition","opacity-80","bg-green-100"),setTimeout(()=>{a.innerHTML=s,a.classList.remove("opacity-80","bg-green-100")},1500)}};var Kq=class extends er{static targets=["card"];interval;get parentTurboFrame(){return this.context.scope.element.closest("turbo-frame")}get refreshInterval(){if(this.cardTarget.dataset.refreshEvery)return parseInt(this.cardTarget.dataset.refreshEvery,10)*1e3}connect(){this.refreshInterval&&(this.interval=setInterval(()=>{this.parentTurboFrame.reload()},this.refreshInterval))}cardTargetDisconnected(){this.interval&&clearInterval(this.interval)}};var Rv=class extends Error{},EK=class extends Rv{constructor(e){super(`Invalid DateTime: ${e.toMessage()}`)}},TK=class extends Rv{constructor(e){super(`Invalid Interval: ${e.toMessage()}`)}},kK=class extends Rv{constructor(e){super(`Invalid Duration: ${e.toMessage()}`)}},Bb=class extends Rv{},tF=class extends Rv{constructor(e){super(`Invalid unit ${e}`)}},Su=class extends Rv{},_g=class extends Rv{constructor(){super("Zone is an abstract class")}},fn="numeric",mm="short",ld="long",rF={year:fn,month:fn,day:fn},XIe={year:fn,month:mm,day:fn},Y3t={year:fn,month:mm,day:fn,weekday:mm},JIe={year:fn,month:ld,day:fn},QIe={year:fn,month:ld,day:fn,weekday:ld},eMe={hour:fn,minute:fn},tMe={hour:fn,minute:fn,second:fn},rMe={hour:fn,minute:fn,second:fn,timeZoneName:mm},nMe={hour:fn,minute:fn,second:fn,timeZoneName:ld},iMe={hour:fn,minute:fn,hourCycle:"h23"},oMe={hour:fn,minute:fn,second:fn,hourCycle:"h23"},aMe={hour:fn,minute:fn,second:fn,hourCycle:"h23",timeZoneName:mm},sMe={hour:fn,minute:fn,second:fn,hourCycle:"h23",timeZoneName:ld},lMe={year:fn,month:fn,day:fn,hour:fn,minute:fn},uMe={year:fn,month:fn,day:fn,hour:fn,minute:fn,second:fn},cMe={year:fn,month:mm,day:fn,hour:fn,minute:fn},fMe={year:fn,month:mm,day:fn,hour:fn,minute:fn,second:fn},Z3t={year:fn,month:mm,day:fn,weekday:mm,hour:fn,minute:fn},hMe={year:fn,month:ld,day:fn,hour:fn,minute:fn,timeZoneName:mm},dMe={year:fn,month:ld,day:fn,hour:fn,minute:fn,second:fn,timeZoneName:mm},pMe={year:fn,month:ld,day:fn,weekday:ld,hour:fn,minute:fn,timeZoneName:ld},mMe={year:fn,month:ld,day:fn,weekday:ld,hour:fn,minute:fn,second:fn,timeZoneName:ld},a_=class{get type(){throw new _g}get name(){throw new _g}get ianaName(){return this.name}get isUniversal(){throw new _g}offsetName(e,t){throw new _g}formatOffset(e,t){throw new _g}offset(e){throw new _g}equals(e){throw new _g}get isValid(){throw new _g}},mK=null,nF=class r extends a_{static get instance(){return mK===null&&(mK=new r),mK}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(e,{format:t,locale:n}){return kMe(e,t,n)}formatOffset(e,t){return qC(this.offset(e),t)}offset(e){return-new Date(e).getTimezoneOffset()}equals(e){return e.type==="system"}get isValid(){return!0}},AK=new Map;function X3t(r){let e=AK.get(r);return e===void 0&&(e=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:r,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"}),AK.set(r,e)),e}var J3t={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function Q3t(r,e){let t=r.format(e).replace(/\u200E/g,""),n=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(t),[,i,o,a,s,u,h,d]=n;return[a,i,o,s,u,h,d]}function ejt(r,e){let t=r.formatToParts(e),n=[];for(let i=0;i<t.length;i++){let{type:o,value:a}=t[i],s=J3t[o];o==="era"?n[s]=a:vi(s)||(n[s]=parseInt(a,10))}return n}var gK=new Map,jb=class r extends a_{static create(e){let t=gK.get(e);return t===void 0&&gK.set(e,t=new r(e)),t}static resetCache(){gK.clear(),AK.clear()}static isValidSpecifier(e){return this.isValidZone(e)}static isValidZone(e){if(!e)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:e}).format(),!0}catch{return!1}}constructor(e){super(),this.zoneName=e,this.valid=r.isValidZone(e)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(e,{format:t,locale:n}){return kMe(e,t,n,this.name)}formatOffset(e,t){return qC(this.offset(e),t)}offset(e){if(!this.valid)return NaN;let t=new Date(e);if(isNaN(t))return NaN;let n=X3t(this.name),[i,o,a,s,u,h,d]=n.formatToParts?ejt(n,t):Q3t(n,t);s==="BC"&&(i=-Math.abs(i)+1);let S=uF({year:i,month:o,day:a,hour:u===24?0:u,minute:h,second:d,millisecond:0}),k=+t,D=k%1e3;return k-=D>=0?D:1e3+D,(S-k)/(60*1e3)}equals(e){return e.type==="iana"&&e.name===this.name}get isValid(){return this.valid}},_Ie={};function tjt(r,e={}){let t=JSON.stringify([r,e]),n=_Ie[t];return n||(n=new Intl.ListFormat(r,e),_Ie[t]=n),n}var CK=new Map;function OK(r,e={}){let t=JSON.stringify([r,e]),n=CK.get(t);return n===void 0&&(n=new Intl.DateTimeFormat(r,e),CK.set(t,n)),n}var DK=new Map;function rjt(r,e={}){let t=JSON.stringify([r,e]),n=DK.get(t);return n===void 0&&(n=new Intl.NumberFormat(r,e),DK.set(t,n)),n}var IK=new Map;function njt(r,e={}){let{base:t,...n}=e,i=JSON.stringify([r,n]),o=IK.get(i);return o===void 0&&(o=new Intl.RelativeTimeFormat(r,e),IK.set(i,o)),o}var PC=null;function ijt(){return PC||(PC=new Intl.DateTimeFormat().resolvedOptions().locale,PC)}var MK=new Map;function gMe(r){let e=MK.get(r);return e===void 0&&(e=new Intl.DateTimeFormat(r).resolvedOptions(),MK.set(r,e)),e}var PK=new Map;function ojt(r){let e=PK.get(r);if(!e){let t=new Intl.Locale(r);e="getWeekInfo"in t?t.getWeekInfo():t.weekInfo,"minimalDays"in e||(e={...vMe,...e}),PK.set(r,e)}return e}function ajt(r){let e=r.indexOf("-x-");e!==-1&&(r=r.substring(0,e));let t=r.indexOf("-u-");if(t===-1)return[r];{let n,i;try{n=OK(r).resolvedOptions(),i=r}catch{let u=r.substring(0,t);n=OK(u).resolvedOptions(),i=u}let{numberingSystem:o,calendar:a}=n;return[i,o,a]}}function sjt(r,e,t){return(t||e)&&(r.includes("-u-")||(r+="-u"),t&&(r+=`-ca-${t}`),e&&(r+=`-nu-${e}`)),r}function ljt(r){let e=[];for(let t=1;t<=12;t++){let n=pa.utc(2009,t,1);e.push(r(n))}return e}function ujt(r){let e=[];for(let t=1;t<=7;t++){let n=pa.utc(2016,11,13+t);e.push(r(n))}return e}function Gq(r,e,t,n){let i=r.listingMode();return i==="error"?null:i==="en"?t(e):n(e)}function cjt(r){return r.numberingSystem&&r.numberingSystem!=="latn"?!1:r.numberingSystem==="latn"||!r.locale||r.locale.startsWith("en")||gMe(r.locale).numberingSystem==="latn"}var LK=class{constructor(e,t,n){this.padTo=n.padTo||0,this.floor=n.floor||!1;let{padTo:i,floor:o,...a}=n;if(!t||Object.keys(a).length>0){let s={useGrouping:!1,...n};n.padTo>0&&(s.minimumIntegerDigits=n.padTo),this.inf=rjt(e,s)}}format(e){if(this.inf){let t=this.floor?Math.floor(e):e;return this.inf.format(t)}else{let t=this.floor?Math.floor(e):$K(e,3);return Rl(t,this.padTo)}}},RK=class{constructor(e,t,n){this.opts=n,this.originalZone=void 0;let i;if(this.opts.timeZone)this.dt=e;else if(e.zone.type==="fixed"){let a=-1*(e.offset/60),s=a>=0?`Etc/GMT+${a}`:`Etc/GMT${a}`;e.offset!==0&&jb.create(s).valid?(i=s,this.dt=e):(i="UTC",this.dt=e.offset===0?e:e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone)}else e.zone.type==="system"?this.dt=e:e.zone.type==="iana"?(this.dt=e,i=e.zone.name):(i="UTC",this.dt=e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone);let o={...this.opts};o.timeZone=o.timeZone||i,this.dtf=OK(t,o)}format(){return this.originalZone?this.formatToParts().map(({value:e})=>e).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){let e=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?e.map(t=>{if(t.type==="timeZoneName"){let n=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...t,value:n}}else return t}):e}resolvedOptions(){return this.dtf.resolvedOptions()}},qK=class{constructor(e,t,n){this.opts={style:"long",...n},!t&&EMe()&&(this.rtf=njt(e,n))}format(e,t){return this.rtf?this.rtf.format(e,t):Ijt(t,e,this.opts.numeric,this.opts.style!=="long")}formatToParts(e,t){return this.rtf?this.rtf.formatToParts(e,t):[]}},vMe={firstDay:1,minimalDays:4,weekend:[6,7]},Ca=class r{static fromOpts(e){return r.create(e.locale,e.numberingSystem,e.outputCalendar,e.weekSettings,e.defaultToEN)}static create(e,t,n,i,o=!1){let a=e||hs.defaultLocale,s=a||(o?"en-US":ijt()),u=t||hs.defaultNumberingSystem,h=n||hs.defaultOutputCalendar,d=BK(i)||hs.defaultWeekSettings;return new r(s,u,h,d,a)}static resetCache(){PC=null,CK.clear(),DK.clear(),IK.clear(),MK.clear(),PK.clear()}static fromObject({locale:e,numberingSystem:t,outputCalendar:n,weekSettings:i}={}){return r.create(e,t,n,i)}constructor(e,t,n,i,o){let[a,s,u]=ajt(e);this.locale=a,this.numberingSystem=t||s||null,this.outputCalendar=n||u||null,this.weekSettings=i,this.intl=sjt(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=o,this.fastNumbersCached=null}get fastNumbers(){return this.fastNumbersCached==null&&(this.fastNumbersCached=cjt(this)),this.fastNumbersCached}listingMode(){let e=this.isEnglish(),t=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return e&&t?"en":"intl"}clone(e){return!e||Object.getOwnPropertyNames(e).length===0?this:r.create(e.locale||this.specifiedLocale,e.numberingSystem||this.numberingSystem,e.outputCalendar||this.outputCalendar,BK(e.weekSettings)||this.weekSettings,e.defaultToEN||!1)}redefaultToEN(e={}){return this.clone({...e,defaultToEN:!0})}redefaultToSystem(e={}){return this.clone({...e,defaultToEN:!1})}months(e,t=!1){return Gq(this,e,OMe,()=>{let n=this.intl==="ja"||this.intl.startsWith("ja-");t&=!n;let i=t?{month:e,day:"numeric"}:{month:e},o=t?"format":"standalone";if(!this.monthsCache[o][e]){let a=n?s=>this.dtFormatter(s,i).format():s=>this.extract(s,i,"month");this.monthsCache[o][e]=ljt(a)}return this.monthsCache[o][e]})}weekdays(e,t=!1){return Gq(this,e,MMe,()=>{let n=t?{weekday:e,year:"numeric",month:"long",day:"numeric"}:{weekday:e},i=t?"format":"standalone";return this.weekdaysCache[i][e]||(this.weekdaysCache[i][e]=ujt(o=>this.extract(o,n,"weekday"))),this.weekdaysCache[i][e]})}meridiems(){return Gq(this,void 0,()=>PMe,()=>{if(!this.meridiemCache){let e={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[pa.utc(2016,11,13,9),pa.utc(2016,11,13,19)].map(t=>this.extract(t,e,"dayperiod"))}return this.meridiemCache})}eras(e){return Gq(this,e,LMe,()=>{let t={era:e};return this.eraCache[e]||(this.eraCache[e]=[pa.utc(-40,1,1),pa.utc(2017,1,1)].map(n=>this.extract(n,t,"era"))),this.eraCache[e]})}extract(e,t,n){let i=this.dtFormatter(e,t),o=i.formatToParts(),a=o.find(s=>s.type.toLowerCase()===n);return a?a.value:null}numberFormatter(e={}){return new LK(this.intl,e.forceSimple||this.fastNumbers,e)}dtFormatter(e,t={}){return new RK(e,this.intl,t)}relFormatter(e={}){return new qK(this.intl,this.isEnglish(),e)}listFormatter(e={}){return tjt(this.intl,e)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||gMe(this.intl).locale.startsWith("en-us")}getWeekSettings(){return this.weekSettings?this.weekSettings:TMe()?ojt(this.locale):vMe}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(e){return this.locale===e.locale&&this.numberingSystem===e.numberingSystem&&this.outputCalendar===e.outputCalendar}toString(){return`Locale(${this.locale}, ${this.numberingSystem}, ${this.outputCalendar})`}},vK=null,up=class r extends a_{static get utcInstance(){return vK===null&&(vK=new r(0)),vK}static instance(e){return e===0?r.utcInstance:new r(e)}static parseSpecifier(e){if(e){let t=e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(t)return new r(cF(t[1],t[2]))}return null}constructor(e){super(),this.fixed=e}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${qC(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${qC(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(e,t){return qC(this.fixed,t)}get isUniversal(){return!0}offset(){return this.fixed}equals(e){return e.type==="fixed"&&e.fixed===this.fixed}get isValid(){return!0}},FK=class extends a_{constructor(e){super(),this.zoneName=e}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}};function Nb(r,e){if(vi(r)||r===null)return e;if(r instanceof a_)return r;if(gjt(r)){let t=r.toLowerCase();return t==="default"?e:t==="local"||t==="system"?nF.instance:t==="utc"||t==="gmt"?up.utcInstance:up.parseSpecifier(t)||jb.create(r)}else return zb(r)?up.instance(r):typeof r=="object"&&"offset"in r&&typeof r.offset=="function"?r:new FK(r)}var UK={arab:"[\u0660-\u0669]",arabext:"[\u06F0-\u06F9]",bali:"[\u1B50-\u1B59]",beng:"[\u09E6-\u09EF]",deva:"[\u0966-\u096F]",fullwide:"[\uFF10-\uFF19]",gujr:"[\u0AE6-\u0AEF]",hanidec:"[\u3007|\u4E00|\u4E8C|\u4E09|\u56DB|\u4E94|\u516D|\u4E03|\u516B|\u4E5D]",khmr:"[\u17E0-\u17E9]",knda:"[\u0CE6-\u0CEF]",laoo:"[\u0ED0-\u0ED9]",limb:"[\u1946-\u194F]",mlym:"[\u0D66-\u0D6F]",mong:"[\u1810-\u1819]",mymr:"[\u1040-\u1049]",orya:"[\u0B66-\u0B6F]",tamldec:"[\u0BE6-\u0BEF]",telu:"[\u0C66-\u0C6F]",thai:"[\u0E50-\u0E59]",tibt:"[\u0F20-\u0F29]",latn:"\\d"},wIe={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},fjt=UK.hanidec.replace(/[\[|\]]/g,"").split("");function hjt(r){let e=parseInt(r,10);if(isNaN(e)){e="";for(let t=0;t<r.length;t++){let n=r.charCodeAt(t);if(r[t].search(UK.hanidec)!==-1)e+=fjt.indexOf(r[t]);else for(let i in wIe){let[o,a]=wIe[i];n>=o&&n<=a&&(e+=n-o)}}return parseInt(e,10)}else return e}var NK=new Map;function djt(){NK.clear()}function dm({numberingSystem:r},e=""){let t=r||"latn",n=NK.get(t);n===void 0&&(n=new Map,NK.set(t,n));let i=n.get(e);return i===void 0&&(i=new RegExp(`${UK[t]}${e}`),n.set(e,i)),i}var SIe=()=>Date.now(),EIe="system",TIe=null,kIe=null,AIe=null,CIe=60,OIe,DIe=null,hs=class{static get now(){return SIe}static set now(e){SIe=e}static set defaultZone(e){EIe=e}static get defaultZone(){return Nb(EIe,nF.instance)}static get defaultLocale(){return TIe}static set defaultLocale(e){TIe=e}static get defaultNumberingSystem(){return kIe}static set defaultNumberingSystem(e){kIe=e}static get defaultOutputCalendar(){return AIe}static set defaultOutputCalendar(e){AIe=e}static get defaultWeekSettings(){return DIe}static set defaultWeekSettings(e){DIe=BK(e)}static get twoDigitCutoffYear(){return CIe}static set twoDigitCutoffYear(e){CIe=e%100}static get throwOnInvalid(){return OIe}static set throwOnInvalid(e){OIe=e}static resetCaches(){Ca.resetCache(),jb.resetCache(),pa.resetCache(),djt()}},sd=class{constructor(e,t){this.reason=e,this.explanation=t}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}},yMe=[0,31,59,90,120,151,181,212,243,273,304,334],bMe=[0,31,60,91,121,152,182,213,244,274,305,335];function sp(r,e){return new sd("unit out of range",`you specified ${e} (of type ${typeof e}) as a ${r}, which is invalid`)}function HK(r,e,t){let n=new Date(Date.UTC(r,e-1,t));r<100&&r>=0&&n.setUTCFullYear(n.getUTCFullYear()-1900);let i=n.getUTCDay();return i===0?7:i}function xMe(r,e,t){return t+(NC(r)?bMe:yMe)[e-1]}function _Me(r,e){let t=NC(r)?bMe:yMe,n=t.findIndex(o=>o<e),i=e-t[n];return{month:n+1,day:i}}function VK(r,e){return(r-e+7)%7+1}function iF(r,e=4,t=1){let{year:n,month:i,day:o}=r,a=xMe(n,i,o),s=VK(HK(n,i,o),t),u=Math.floor((a-s+14-e)/7),h;return u<1?(h=n-1,u=FC(h,e,t)):u>FC(n,e,t)?(h=n+1,u=1):h=n,{weekYear:h,weekNumber:u,weekday:s,...fF(r)}}function IIe(r,e=4,t=1){let{weekYear:n,weekNumber:i,weekday:o}=r,a=VK(HK(n,1,e),t),s=PS(n),u=i*7+o-a-7+e,h;u<1?(h=n-1,u+=PS(h)):u>s?(h=n+1,u-=PS(n)):h=n;let{month:d,day:y}=_Me(h,u);return{year:h,month:d,day:y,...fF(r)}}function yK(r){let{year:e,month:t,day:n}=r,i=xMe(e,t,n);return{year:e,ordinal:i,...fF(r)}}function MIe(r){let{year:e,ordinal:t}=r,{month:n,day:i}=_Me(e,t);return{year:e,month:n,day:i,...fF(r)}}function PIe(r,e){if(!vi(r.localWeekday)||!vi(r.localWeekNumber)||!vi(r.localWeekYear)){if(!vi(r.weekday)||!vi(r.weekNumber)||!vi(r.weekYear))throw new Bb("Cannot mix locale-based week fields with ISO-based week fields");return vi(r.localWeekday)||(r.weekday=r.localWeekday),vi(r.localWeekNumber)||(r.weekNumber=r.localWeekNumber),vi(r.localWeekYear)||(r.weekYear=r.localWeekYear),delete r.localWeekday,delete r.localWeekNumber,delete r.localWeekYear,{minDaysInFirstWeek:e.getMinDaysInFirstWeek(),startOfWeek:e.getStartOfWeek()}}else return{minDaysInFirstWeek:4,startOfWeek:1}}function pjt(r,e=4,t=1){let n=lF(r.weekYear),i=lp(r.weekNumber,1,FC(r.weekYear,e,t)),o=lp(r.weekday,1,7);return n?i?o?!1:sp("weekday",r.weekday):sp("week",r.weekNumber):sp("weekYear",r.weekYear)}function mjt(r){let e=lF(r.year),t=lp(r.ordinal,1,PS(r.year));return e?t?!1:sp("ordinal",r.ordinal):sp("year",r.year)}function wMe(r){let e=lF(r.year),t=lp(r.month,1,12),n=lp(r.day,1,oF(r.year,r.month));return e?t?n?!1:sp("day",r.day):sp("month",r.month):sp("year",r.year)}function SMe(r){let{hour:e,minute:t,second:n,millisecond:i}=r,o=lp(e,0,23)||e===24&&t===0&&n===0&&i===0,a=lp(t,0,59),s=lp(n,0,59),u=lp(i,0,999);return o?a?s?u?!1:sp("millisecond",i):sp("second",n):sp("minute",t):sp("hour",e)}function vi(r){return typeof r>"u"}function zb(r){return typeof r=="number"}function lF(r){return typeof r=="number"&&r%1===0}function gjt(r){return typeof r=="string"}function vjt(r){return Object.prototype.toString.call(r)==="[object Date]"}function EMe(){try{return typeof Intl<"u"&&!!Intl.RelativeTimeFormat}catch{return!1}}function TMe(){try{return typeof Intl<"u"&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch{return!1}}function yjt(r){return Array.isArray(r)?r:[r]}function LIe(r,e,t){if(r.length!==0)return r.reduce((n,i)=>{let o=[e(i),i];return n&&t(n[0],o[0])===n[0]?n:o},null)[1]}function bjt(r,e){return e.reduce((t,n)=>(t[n]=r[n],t),{})}function qS(r,e){return Object.prototype.hasOwnProperty.call(r,e)}function BK(r){if(r==null)return null;if(typeof r!="object")throw new Su("Week settings must be an object");if(!lp(r.firstDay,1,7)||!lp(r.minimalDays,1,7)||!Array.isArray(r.weekend)||r.weekend.some(e=>!lp(e,1,7)))throw new Su("Invalid week settings");return{firstDay:r.firstDay,minimalDays:r.minimalDays,weekend:Array.from(r.weekend)}}function lp(r,e,t){return lF(r)&&r>=e&&r<=t}function xjt(r,e){return r-e*Math.floor(r/e)}function Rl(r,e=2){let t=r<0,n;return t?n="-"+(""+-r).padStart(e,"0"):n=(""+r).padStart(e,"0"),n}function Fb(r){if(!(vi(r)||r===null||r===""))return parseInt(r,10)}function n_(r){if(!(vi(r)||r===null||r===""))return parseFloat(r)}function WK(r){if(!(vi(r)||r===null||r==="")){let e=parseFloat("0."+r)*1e3;return Math.floor(e)}}function $K(r,e,t="round"){let n=10**e;switch(t){case"expand":return r>0?Math.ceil(r*n)/n:Math.floor(r*n)/n;case"trunc":return Math.trunc(r*n)/n;case"round":return Math.round(r*n)/n;case"floor":return Math.floor(r*n)/n;case"ceil":return Math.ceil(r*n)/n;default:throw new RangeError(`Value rounding ${t} is out of range`)}}function NC(r){return r%4===0&&(r%100!==0||r%400===0)}function PS(r){return NC(r)?366:365}function oF(r,e){let t=xjt(e-1,12)+1,n=r+(e-t)/12;return t===2?NC(n)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][t-1]}function uF(r){let e=Date.UTC(r.year,r.month-1,r.day,r.hour,r.minute,r.second,r.millisecond);return r.year<100&&r.year>=0&&(e=new Date(e),e.setUTCFullYear(r.year,r.month-1,r.day)),+e}function RIe(r,e,t){return-VK(HK(r,1,e),t)+e-1}function FC(r,e=4,t=1){let n=RIe(r,e,t),i=RIe(r+1,e,t);return(PS(r)-n+i)/7}function zK(r){return r>99?r:r>hs.twoDigitCutoffYear?1900+r:2e3+r}function kMe(r,e,t,n=null){let i=new Date(r),o={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};n&&(o.timeZone=n);let a={timeZoneName:e,...o},s=new Intl.DateTimeFormat(t,a).formatToParts(i).find(u=>u.type.toLowerCase()==="timezonename");return s?s.value:null}function cF(r,e){let t=parseInt(r,10);Number.isNaN(t)&&(t=0);let n=parseInt(e,10)||0,i=t<0||Object.is(t,-0)?-n:n;return t*60+i}function AMe(r){let e=Number(r);if(typeof r=="boolean"||r===""||!Number.isFinite(e))throw new Su(`Invalid unit value ${r}`);return e}function aF(r,e){let t={};for(let n in r)if(qS(r,n)){let i=r[n];if(i==null)continue;t[e(n)]=AMe(i)}return t}function qC(r,e){let t=Math.trunc(Math.abs(r/60)),n=Math.trunc(Math.abs(r%60)),i=r>=0?"+":"-";switch(e){case"short":return`${i}${Rl(t,2)}:${Rl(n,2)}`;case"narrow":return`${i}${t}${n>0?`:${n}`:""}`;case"techie":return`${i}${Rl(t,2)}${Rl(n,2)}`;default:throw new RangeError(`Value format ${e} is out of range for property format`)}}function fF(r){return bjt(r,["hour","minute","second","millisecond"])}var _jt=["January","February","March","April","May","June","July","August","September","October","November","December"],CMe=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wjt=["J","F","M","A","M","J","J","A","S","O","N","D"];function OMe(r){switch(r){case"narrow":return[...wjt];case"short":return[...CMe];case"long":return[..._jt];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}var DMe=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],IMe=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],Sjt=["M","T","W","T","F","S","S"];function MMe(r){switch(r){case"narrow":return[...Sjt];case"short":return[...IMe];case"long":return[...DMe];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}var PMe=["AM","PM"],Ejt=["Before Christ","Anno Domini"],Tjt=["BC","AD"],kjt=["B","A"];function LMe(r){switch(r){case"narrow":return[...kjt];case"short":return[...Tjt];case"long":return[...Ejt];default:return null}}function Ajt(r){return PMe[r.hour<12?0:1]}function Cjt(r,e){return MMe(e)[r.weekday-1]}function Ojt(r,e){return OMe(e)[r.month-1]}function Djt(r,e){return LMe(e)[r.year<0?0:1]}function Ijt(r,e,t="always",n=!1){let i={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},o=["hours","minutes","seconds"].indexOf(r)===-1;if(t==="auto"&&o){let y=r==="days";switch(e){case 1:return y?"tomorrow":`next ${i[r][0]}`;case-1:return y?"yesterday":`last ${i[r][0]}`;case 0:return y?"today":`this ${i[r][0]}`}}let a=Object.is(e,-0)||e<0,s=Math.abs(e),u=s===1,h=i[r],d=n?u?h[1]:h[2]||h[1]:u?i[r][0]:r;return a?`${s} ${d} ago`:`in ${s} ${d}`}function qIe(r,e){let t="";for(let n of r)n.literal?t+=n.val:t+=e(n.val);return t}var Mjt={D:rF,DD:XIe,DDD:JIe,DDDD:QIe,t:eMe,tt:tMe,ttt:rMe,tttt:nMe,T:iMe,TT:oMe,TTT:aMe,TTTT:sMe,f:lMe,ff:cMe,fff:hMe,ffff:pMe,F:uMe,FF:fMe,FFF:dMe,FFFF:mMe},ad=class r{static create(e,t={}){return new r(e,t)}static parseFormat(e){let t=null,n="",i=!1,o=[];for(let a=0;a<e.length;a++){let s=e.charAt(a);s==="'"?((n.length>0||i)&&o.push({literal:i||/^\s+$/.test(n),val:n===""?"'":n}),t=null,n="",i=!i):i||s===t?n+=s:(n.length>0&&o.push({literal:/^\s+$/.test(n),val:n}),n=s,t=s)}return n.length>0&&o.push({literal:i||/^\s+$/.test(n),val:n}),o}static macroTokenToFormatOpts(e){return Mjt[e]}constructor(e,t){this.opts=t,this.loc=e,this.systemLoc=null}formatWithSystemDefault(e,t){return this.systemLoc===null&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(e,{...this.opts,...t}).format()}dtFormatter(e,t={}){return this.loc.dtFormatter(e,{...this.opts,...t})}formatDateTime(e,t){return this.dtFormatter(e,t).format()}formatDateTimeParts(e,t){return this.dtFormatter(e,t).formatToParts()}formatInterval(e,t){return this.dtFormatter(e.start,t).dtf.formatRange(e.start.toJSDate(),e.end.toJSDate())}resolvedOptions(e,t){return this.dtFormatter(e,t).resolvedOptions()}num(e,t=0,n=void 0){if(this.opts.forceSimple)return Rl(e,t);let i={...this.opts};return t>0&&(i.padTo=t),n&&(i.signDisplay=n),this.loc.numberFormatter(i).format(e)}formatDateTimeFromString(e,t){let n=this.loc.listingMode()==="en",i=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",o=(k,D)=>this.loc.extract(e,k,D),a=k=>e.isOffsetFixed&&e.offset===0&&k.allowZ?"Z":e.isValid?e.zone.formatOffset(e.ts,k.format):"",s=()=>n?Ajt(e):o({hour:"numeric",hourCycle:"h12"},"dayperiod"),u=(k,D)=>n?Ojt(e,k):o(D?{month:k}:{month:k,day:"numeric"},"month"),h=(k,D)=>n?Cjt(e,k):o(D?{weekday:k}:{weekday:k,month:"long",day:"numeric"},"weekday"),d=k=>{let D=r.macroTokenToFormatOpts(k);return D?this.formatWithSystemDefault(e,D):k},y=k=>n?Djt(e,k):o({era:k},"era"),S=k=>{switch(k){case"S":return this.num(e.millisecond);case"u":case"SSS":return this.num(e.millisecond,3);case"s":return this.num(e.second);case"ss":return this.num(e.second,2);case"uu":return this.num(Math.floor(e.millisecond/10),2);case"uuu":return this.num(Math.floor(e.millisecond/100));case"m":return this.num(e.minute);case"mm":return this.num(e.minute,2);case"h":return this.num(e.hour%12===0?12:e.hour%12);case"hh":return this.num(e.hour%12===0?12:e.hour%12,2);case"H":return this.num(e.hour);case"HH":return this.num(e.hour,2);case"Z":return a({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return a({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return a({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return e.zone.offsetName(e.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return e.zone.offsetName(e.ts,{format:"long",locale:this.loc.locale});case"z":return e.zoneName;case"a":return s();case"d":return i?o({day:"numeric"},"day"):this.num(e.day);case"dd":return i?o({day:"2-digit"},"day"):this.num(e.day,2);case"c":return this.num(e.weekday);case"ccc":return h("short",!0);case"cccc":return h("long",!0);case"ccccc":return h("narrow",!0);case"E":return this.num(e.weekday);case"EEE":return h("short",!1);case"EEEE":return h("long",!1);case"EEEEE":return h("narrow",!1);case"L":return i?o({month:"numeric",day:"numeric"},"month"):this.num(e.month);case"LL":return i?o({month:"2-digit",day:"numeric"},"month"):this.num(e.month,2);case"LLL":return u("short",!0);case"LLLL":return u("long",!0);case"LLLLL":return u("narrow",!0);case"M":return i?o({month:"numeric"},"month"):this.num(e.month);case"MM":return i?o({month:"2-digit"},"month"):this.num(e.month,2);case"MMM":return u("short",!1);case"MMMM":return u("long",!1);case"MMMMM":return u("narrow",!1);case"y":return i?o({year:"numeric"},"year"):this.num(e.year);case"yy":return i?o({year:"2-digit"},"year"):this.num(e.year.toString().slice(-2),2);case"yyyy":return i?o({year:"numeric"},"year"):this.num(e.year,4);case"yyyyyy":return i?o({year:"numeric"},"year"):this.num(e.year,6);case"G":return y("short");case"GG":return y("long");case"GGGGG":return y("narrow");case"kk":return this.num(e.weekYear.toString().slice(-2),2);case"kkkk":return this.num(e.weekYear,4);case"W":return this.num(e.weekNumber);case"WW":return this.num(e.weekNumber,2);case"n":return this.num(e.localWeekNumber);case"nn":return this.num(e.localWeekNumber,2);case"ii":return this.num(e.localWeekYear.toString().slice(-2),2);case"iiii":return this.num(e.localWeekYear,4);case"o":return this.num(e.ordinal);case"ooo":return this.num(e.ordinal,3);case"q":return this.num(e.quarter);case"qq":return this.num(e.quarter,2);case"X":return this.num(Math.floor(e.ts/1e3));case"x":return this.num(e.ts);default:return d(k)}};return qIe(r.parseFormat(t),S)}formatDurationFromString(e,t){let n=this.opts.signMode==="negativeLargestOnly"?-1:1,i=d=>{switch(d[0]){case"S":return"milliseconds";case"s":return"seconds";case"m":return"minutes";case"h":return"hours";case"d":return"days";case"w":return"weeks";case"M":return"months";case"y":return"years";default:return null}},o=(d,y)=>S=>{let k=i(S);if(k){let D=y.isNegativeDuration&&k!==y.largestUnit?n:1,M;return this.opts.signMode==="negativeLargestOnly"&&k!==y.largestUnit?M="never":this.opts.signMode==="all"?M="always":M="auto",this.num(d.get(k)*D,S.length,M)}else return S},a=r.parseFormat(t),s=a.reduce((d,{literal:y,val:S})=>y?d:d.concat(S),[]),u=e.shiftTo(...s.map(i).filter(d=>d)),h={isNegativeDuration:u<0,largestUnit:Object.keys(u.values)[0]};return qIe(a,o(u,h))}},RMe=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function FS(...r){let e=r.reduce((t,n)=>t+n.source,"");return RegExp(`^${e}$`)}function NS(...r){return e=>r.reduce(([t,n,i],o)=>{let[a,s,u]=o(e,i);return[{...t,...a},s||n,u]},[{},null,1]).slice(0,2)}function BS(r,...e){if(r==null)return[null,null];for(let[t,n]of e){let i=t.exec(r);if(i)return n(i)}return[null,null]}function qMe(...r){return(e,t)=>{let n={},i;for(i=0;i<r.length;i++)n[r[i]]=Fb(e[t+i]);return[n,null,t+i]}}var FMe=/(?:([Zz])|([+-]\d\d)(?::?(\d\d))?)/,Pjt=`(?:${FMe.source}?(?:\\[(${RMe.source})\\])?)?`,KK=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,NMe=RegExp(`${KK.source}${Pjt}`),GK=RegExp(`(?:[Tt]${NMe.source})?`),Ljt=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,Rjt=/(\d{4})-?W(\d\d)(?:-?(\d))?/,qjt=/(\d{4})-?(\d{3})/,Fjt=qMe("weekYear","weekNumber","weekDay"),Njt=qMe("year","ordinal"),Bjt=/(\d{4})-(\d\d)-(\d\d)/,BMe=RegExp(`${KK.source} ?(?:${FMe.source}|(${RMe.source}))?`),zjt=RegExp(`(?: ${BMe.source})?`);function LS(r,e,t){let n=r[e];return vi(n)?t:Fb(n)}function jjt(r,e){return[{year:LS(r,e),month:LS(r,e+1,1),day:LS(r,e+2,1)},null,e+3]}function zS(r,e){return[{hours:LS(r,e,0),minutes:LS(r,e+1,0),seconds:LS(r,e+2,0),milliseconds:WK(r[e+3])},null,e+4]}function BC(r,e){let t=!r[e]&&!r[e+1],n=cF(r[e+1],r[e+2]),i=t?null:up.instance(n);return[{},i,e+3]}function zC(r,e){let t=r[e]?jb.create(r[e]):null;return[{},t,e+1]}var Ujt=RegExp(`^T?${KK.source}$`),Hjt=/^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;function Vjt(r){let[e,t,n,i,o,a,s,u,h]=r,d=e[0]==="-",y=u&&u[0]==="-",S=(k,D=!1)=>k!==void 0&&(D||k&&d)?-k:k;return[{years:S(n_(t)),months:S(n_(n)),weeks:S(n_(i)),days:S(n_(o)),hours:S(n_(a)),minutes:S(n_(s)),seconds:S(n_(u),u==="-0"),milliseconds:S(WK(h),y)}]}var Wjt={GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function YK(r,e,t,n,i,o,a){let s={year:e.length===2?zK(Fb(e)):Fb(e),month:CMe.indexOf(t)+1,day:Fb(n),hour:Fb(i),minute:Fb(o)};return a&&(s.second=Fb(a)),r&&(s.weekday=r.length>3?DMe.indexOf(r)+1:IMe.indexOf(r)+1),s}var $jt=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function Kjt(r){let[,e,t,n,i,o,a,s,u,h,d,y]=r,S=YK(e,i,n,t,o,a,s),k;return u?k=Wjt[u]:h?k=0:k=cF(d,y),[S,new up(k)]}function Gjt(r){return r.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}var Yjt=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,Zjt=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,Xjt=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function FIe(r){let[,e,t,n,i,o,a,s]=r;return[YK(e,i,n,t,o,a,s),up.utcInstance]}function Jjt(r){let[,e,t,n,i,o,a,s]=r;return[YK(e,s,t,n,i,o,a),up.utcInstance]}var Qjt=FS(Ljt,GK),e5t=FS(Rjt,GK),t5t=FS(qjt,GK),r5t=FS(NMe),zMe=NS(jjt,zS,BC,zC),n5t=NS(Fjt,zS,BC,zC),i5t=NS(Njt,zS,BC,zC),o5t=NS(zS,BC,zC);function a5t(r){return BS(r,[Qjt,zMe],[e5t,n5t],[t5t,i5t],[r5t,o5t])}function s5t(r){return BS(Gjt(r),[$jt,Kjt])}function l5t(r){return BS(r,[Yjt,FIe],[Zjt,FIe],[Xjt,Jjt])}function u5t(r){return BS(r,[Hjt,Vjt])}var c5t=NS(zS);function f5t(r){return BS(r,[Ujt,c5t])}var h5t=FS(Bjt,zjt),d5t=FS(BMe),p5t=NS(zS,BC,zC);function m5t(r){return BS(r,[h5t,zMe],[d5t,p5t])}var NIe="Invalid Duration",jMe={weeks:{days:7,hours:168,minutes:10080,seconds:10080*60,milliseconds:10080*60*1e3},days:{hours:24,minutes:1440,seconds:1440*60,milliseconds:1440*60*1e3},hours:{minutes:60,seconds:3600,milliseconds:3600*1e3},minutes:{seconds:60,milliseconds:60*1e3},seconds:{milliseconds:1e3}},g5t={years:{quarters:4,months:12,weeks:52,days:365,hours:365*24,minutes:365*24*60,seconds:365*24*60*60,milliseconds:365*24*60*60*1e3},quarters:{months:3,weeks:13,days:91,hours:2184,minutes:2184*60,seconds:2184*60*60,milliseconds:2184*60*60*1e3},months:{weeks:4,days:30,hours:720,minutes:720*60,seconds:720*60*60,milliseconds:720*60*60*1e3},...jMe},ap=146097/400,OS=146097/4800,v5t={years:{quarters:4,months:12,weeks:ap/7,days:ap,hours:ap*24,minutes:ap*24*60,seconds:ap*24*60*60,milliseconds:ap*24*60*60*1e3},quarters:{months:3,weeks:ap/28,days:ap/4,hours:ap*24/4,minutes:ap*24*60/4,seconds:ap*24*60*60/4,milliseconds:ap*24*60*60*1e3/4},months:{weeks:OS/7,days:OS,hours:OS*24,minutes:OS*24*60,seconds:OS*24*60*60,milliseconds:OS*24*60*60*1e3},...jMe},o_=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],y5t=o_.slice(0).reverse();function Lv(r,e,t=!1){let n={values:t?e.values:{...r.values,...e.values||{}},loc:r.loc.clone(e.loc),conversionAccuracy:e.conversionAccuracy||r.conversionAccuracy,matrix:e.matrix||r.matrix};return new Eu(n)}function UMe(r,e){let t=e.milliseconds??0;for(let n of y5t.slice(1))e[n]&&(t+=e[n]*r[n].milliseconds);return t}function BIe(r,e){let t=UMe(r,e)<0?-1:1;o_.reduceRight((n,i)=>{if(vi(e[i]))return n;if(n){let o=e[n]*t,a=r[i][n],s=Math.floor(o/a);e[i]+=s*t,e[n]-=s*a*t}return i},null),o_.reduce((n,i)=>{if(vi(e[i]))return n;if(n){let o=e[n]%1;e[n]-=o,e[i]+=o*r[n][i]}return i},null)}function zIe(r){let e={};for(let[t,n]of Object.entries(r))n!==0&&(e[t]=n);return e}var Eu=class r{constructor(e){let t=e.conversionAccuracy==="longterm"||!1,n=t?v5t:g5t;e.matrix&&(n=e.matrix),this.values=e.values,this.loc=e.loc||Ca.create(),this.conversionAccuracy=t?"longterm":"casual",this.invalid=e.invalid||null,this.matrix=n,this.isLuxonDuration=!0}static fromMillis(e,t){return r.fromObject({milliseconds:e},t)}static fromObject(e,t={}){if(e==null||typeof e!="object")throw new Su(`Duration.fromObject: argument expected to be an object, got ${e===null?"null":typeof e}`);return new r({values:aF(e,r.normalizeUnit),loc:Ca.fromObject(t),conversionAccuracy:t.conversionAccuracy,matrix:t.matrix})}static fromDurationLike(e){if(zb(e))return r.fromMillis(e);if(r.isDuration(e))return e;if(typeof e=="object")return r.fromObject(e);throw new Su(`Unknown duration argument ${e} of type ${typeof e}`)}static fromISO(e,t){let[n]=u5t(e);return n?r.fromObject(n,t):r.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static fromISOTime(e,t){let[n]=f5t(e);return n?r.fromObject(n,t):r.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static invalid(e,t=null){if(!e)throw new Su("need to specify a reason the Duration is invalid");let n=e instanceof sd?e:new sd(e,t);if(hs.throwOnInvalid)throw new kK(n);return new r({invalid:n})}static normalizeUnit(e){let t={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[e&&e.toLowerCase()];if(!t)throw new tF(e);return t}static isDuration(e){return e&&e.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(e,t={}){let n={...t,floor:t.round!==!1&&t.floor!==!1};return this.isValid?ad.create(this.loc,n).formatDurationFromString(this,e):NIe}toHuman(e={}){if(!this.isValid)return NIe;let t=e.showZeros!==!1,n=o_.map(i=>{let o=this.values[i];return vi(o)||o===0&&!t?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...e,unit:i.slice(0,-1)}).format(o)}).filter(i=>i);return this.loc.listFormatter({type:"conjunction",style:e.listStyle||"narrow",...e}).format(n)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let e="P";return this.years!==0&&(e+=this.years+"Y"),(this.months!==0||this.quarters!==0)&&(e+=this.months+this.quarters*3+"M"),this.weeks!==0&&(e+=this.weeks+"W"),this.days!==0&&(e+=this.days+"D"),(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)&&(e+="T"),this.hours!==0&&(e+=this.hours+"H"),this.minutes!==0&&(e+=this.minutes+"M"),(this.seconds!==0||this.milliseconds!==0)&&(e+=$K(this.seconds+this.milliseconds/1e3,3)+"S"),e==="P"&&(e+="T0S"),e}toISOTime(e={}){if(!this.isValid)return null;let t=this.toMillis();return t<0||t>=864e5?null:(e={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...e,includeOffset:!1},pa.fromMillis(t,{zone:"UTC"}).toISOTime(e))}toJSON(){return this.toISO()}toString(){return this.toISO()}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Duration { values: ${JSON.stringify(this.values)} }`:`Duration { Invalid, reason: ${this.invalidReason} }`}toMillis(){return this.isValid?UMe(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(e){if(!this.isValid)return this;let t=r.fromDurationLike(e),n={};for(let i of o_)(qS(t.values,i)||qS(this.values,i))&&(n[i]=t.get(i)+this.get(i));return Lv(this,{values:n},!0)}minus(e){if(!this.isValid)return this;let t=r.fromDurationLike(e);return this.plus(t.negate())}mapUnits(e){if(!this.isValid)return this;let t={};for(let n of Object.keys(this.values))t[n]=AMe(e(this.values[n],n));return Lv(this,{values:t},!0)}get(e){return this[r.normalizeUnit(e)]}set(e){if(!this.isValid)return this;let t={...this.values,...aF(e,r.normalizeUnit)};return Lv(this,{values:t})}reconfigure({locale:e,numberingSystem:t,conversionAccuracy:n,matrix:i}={}){let a={loc:this.loc.clone({locale:e,numberingSystem:t}),matrix:i,conversionAccuracy:n};return Lv(this,a)}as(e){return this.isValid?this.shiftTo(e).get(e):NaN}normalize(){if(!this.isValid)return this;let e=this.toObject();return BIe(this.matrix,e),Lv(this,{values:e},!0)}rescale(){if(!this.isValid)return this;let e=zIe(this.normalize().shiftToAll().toObject());return Lv(this,{values:e},!0)}shiftTo(...e){if(!this.isValid)return this;if(e.length===0)return this;e=e.map(a=>r.normalizeUnit(a));let t={},n={},i=this.toObject(),o;for(let a of o_)if(e.indexOf(a)>=0){o=a;let s=0;for(let h in n)s+=this.matrix[h][a]*n[h],n[h]=0;zb(i[a])&&(s+=i[a]);let u=Math.trunc(s);t[a]=u,n[a]=(s*1e3-u*1e3)/1e3}else zb(i[a])&&(n[a]=i[a]);for(let a in n)n[a]!==0&&(t[o]+=a===o?n[a]:n[a]/this.matrix[o][a]);return BIe(this.matrix,t),Lv(this,{values:t},!0)}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;let e={};for(let t of Object.keys(this.values))e[t]=this.values[t]===0?0:-this.values[t];return Lv(this,{values:e},!0)}removeZeros(){if(!this.isValid)return this;let e=zIe(this.values);return Lv(this,{values:e},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(e){if(!this.isValid||!e.isValid||!this.loc.equals(e.loc))return!1;function t(n,i){return n===void 0||n===0?i===void 0||i===0:n===i}for(let n of o_)if(!t(this.values[n],e.values[n]))return!1;return!0}},DS="Invalid Interval";function b5t(r,e){return!r||!r.isValid?RS.invalid("missing or invalid start"):!e||!e.isValid?RS.invalid("missing or invalid end"):e<r?RS.invalid("end before start",`The end of an interval must be after its start, but you had start=${r.toISO()} and end=${e.toISO()}`):null}var RS=class r{constructor(e){this.s=e.start,this.e=e.end,this.invalid=e.invalid||null,this.isLuxonInterval=!0}static invalid(e,t=null){if(!e)throw new Su("need to specify a reason the Interval is invalid");let n=e instanceof sd?e:new sd(e,t);if(hs.throwOnInvalid)throw new TK(n);return new r({invalid:n})}static fromDateTimes(e,t){let n=MC(e),i=MC(t),o=b5t(n,i);return o??new r({start:n,end:i})}static after(e,t){let n=Eu.fromDurationLike(t),i=MC(e);return r.fromDateTimes(i,i.plus(n))}static before(e,t){let n=Eu.fromDurationLike(t),i=MC(e);return r.fromDateTimes(i.minus(n),i)}static fromISO(e,t){let[n,i]=(e||"").split("/",2);if(n&&i){let o,a;try{o=pa.fromISO(n,t),a=o.isValid}catch{a=!1}let s,u;try{s=pa.fromISO(i,t),u=s.isValid}catch{u=!1}if(a&&u)return r.fromDateTimes(o,s);if(a){let h=Eu.fromISO(i,t);if(h.isValid)return r.after(o,h)}else if(u){let h=Eu.fromISO(n,t);if(h.isValid)return r.before(s,h)}}return r.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static isInterval(e){return e&&e.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get lastDateTime(){return this.isValid&&this.e?this.e.minus(1):null}get isValid(){return this.invalidReason===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(e="milliseconds"){return this.isValid?this.toDuration(e).get(e):NaN}count(e="milliseconds",t){if(!this.isValid)return NaN;let n=this.start.startOf(e,t),i;return t?.useLocaleWeeks?i=this.end.reconfigure({locale:n.locale}):i=this.end,i=i.startOf(e,t),Math.floor(i.diff(n,e).get(e))+(i.valueOf()!==this.end.valueOf())}hasSame(e){return this.isValid?this.isEmpty()||this.e.minus(1).hasSame(this.s,e):!1}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(e){return this.isValid?this.s>e:!1}isBefore(e){return this.isValid?this.e<=e:!1}contains(e){return this.isValid?this.s<=e&&this.e>e:!1}set({start:e,end:t}={}){return this.isValid?r.fromDateTimes(e||this.s,t||this.e):this}splitAt(...e){if(!this.isValid)return[];let t=e.map(MC).filter(a=>this.contains(a)).sort((a,s)=>a.toMillis()-s.toMillis()),n=[],{s:i}=this,o=0;for(;i<this.e;){let a=t[o]||this.e,s=+a>+this.e?this.e:a;n.push(r.fromDateTimes(i,s)),i=s,o+=1}return n}splitBy(e){let t=Eu.fromDurationLike(e);if(!this.isValid||!t.isValid||t.as("milliseconds")===0)return[];let{s:n}=this,i=1,o,a=[];for(;n<this.e;){let s=this.start.plus(t.mapUnits(u=>u*i));o=+s>+this.e?this.e:s,a.push(r.fromDateTimes(n,o)),n=o,i+=1}return a}divideEqually(e){return this.isValid?this.splitBy(this.length()/e).slice(0,e):[]}overlaps(e){return this.e>e.s&&this.s<e.e}abutsStart(e){return this.isValid?+this.e==+e.s:!1}abutsEnd(e){return this.isValid?+e.e==+this.s:!1}engulfs(e){return this.isValid?this.s<=e.s&&this.e>=e.e:!1}equals(e){return!this.isValid||!e.isValid?!1:this.s.equals(e.s)&&this.e.equals(e.e)}intersection(e){if(!this.isValid)return this;let t=this.s>e.s?this.s:e.s,n=this.e<e.e?this.e:e.e;return t>=n?null:r.fromDateTimes(t,n)}union(e){if(!this.isValid)return this;let t=this.s<e.s?this.s:e.s,n=this.e>e.e?this.e:e.e;return r.fromDateTimes(t,n)}static merge(e){let[t,n]=e.sort((i,o)=>i.s-o.s).reduce(([i,o],a)=>o?o.overlaps(a)||o.abutsStart(a)?[i,o.union(a)]:[i.concat([o]),a]:[i,a],[[],null]);return n&&t.push(n),t}static xor(e){let t=null,n=0,i=[],o=e.map(u=>[{time:u.s,type:"s"},{time:u.e,type:"e"}]),a=Array.prototype.concat(...o),s=a.sort((u,h)=>u.time-h.time);for(let u of s)n+=u.type==="s"?1:-1,n===1?t=u.time:(t&&+t!=+u.time&&i.push(r.fromDateTimes(t,u.time)),t=null);return r.merge(i)}difference(...e){return r.xor([this].concat(e)).map(t=>this.intersection(t)).filter(t=>t&&!t.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} \u2013 ${this.e.toISO()})`:DS}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`:`Interval { Invalid, reason: ${this.invalidReason} }`}toLocaleString(e=rF,t={}){return this.isValid?ad.create(this.s.loc.clone(t),e).formatInterval(this):DS}toISO(e){return this.isValid?`${this.s.toISO(e)}/${this.e.toISO(e)}`:DS}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:DS}toISOTime(e){return this.isValid?`${this.s.toISOTime(e)}/${this.e.toISOTime(e)}`:DS}toFormat(e,{separator:t=" \u2013 "}={}){return this.isValid?`${this.s.toFormat(e)}${t}${this.e.toFormat(e)}`:DS}toDuration(e,t){return this.isValid?this.e.diff(this.s,e,t):Eu.invalid(this.invalidReason)}mapEndpoints(e){return r.fromDateTimes(e(this.s),e(this.e))}},MS=class{static hasDST(e=hs.defaultZone){let t=pa.now().setZone(e).set({month:12});return!e.isUniversal&&t.offset!==t.set({month:6}).offset}static isValidIANAZone(e){return jb.isValidZone(e)}static normalizeZone(e){return Nb(e,hs.defaultZone)}static getStartOfWeek({locale:e=null,locObj:t=null}={}){return(t||Ca.create(e)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:e=null,locObj:t=null}={}){return(t||Ca.create(e)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:e=null,locObj:t=null}={}){return(t||Ca.create(e)).getWeekendDays().slice()}static months(e="long",{locale:t=null,numberingSystem:n=null,locObj:i=null,outputCalendar:o="gregory"}={}){return(i||Ca.create(t,n,o)).months(e)}static monthsFormat(e="long",{locale:t=null,numberingSystem:n=null,locObj:i=null,outputCalendar:o="gregory"}={}){return(i||Ca.create(t,n,o)).months(e,!0)}static weekdays(e="long",{locale:t=null,numberingSystem:n=null,locObj:i=null}={}){return(i||Ca.create(t,n,null)).weekdays(e)}static weekdaysFormat(e="long",{locale:t=null,numberingSystem:n=null,locObj:i=null}={}){return(i||Ca.create(t,n,null)).weekdays(e,!0)}static meridiems({locale:e=null}={}){return Ca.create(e).meridiems()}static eras(e="short",{locale:t=null}={}){return Ca.create(t,null,"gregory").eras(e)}static features(){return{relative:EMe(),localeWeek:TMe()}}};function jIe(r,e){let t=i=>i.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),n=t(e)-t(r);return Math.floor(Eu.fromMillis(n).as("days"))}function x5t(r,e,t){let n=[["years",(u,h)=>h.year-u.year],["quarters",(u,h)=>h.quarter-u.quarter+(h.year-u.year)*4],["months",(u,h)=>h.month-u.month+(h.year-u.year)*12],["weeks",(u,h)=>{let d=jIe(u,h);return(d-d%7)/7}],["days",jIe]],i={},o=r,a,s;for(let[u,h]of n)t.indexOf(u)>=0&&(a=u,i[u]=h(r,e),s=o.plus(i),s>e?(i[u]--,r=o.plus(i),r>e&&(s=r,i[u]--,r=o.plus(i))):r=s);return[r,i,s,a]}function _5t(r,e,t,n){let[i,o,a,s]=x5t(r,e,t),u=e-i,h=t.filter(y=>["hours","minutes","seconds","milliseconds"].indexOf(y)>=0);h.length===0&&(a<e&&(a=i.plus({[s]:1})),a!==i&&(o[s]=(o[s]||0)+u/(a-i)));let d=Eu.fromObject(o,n);return h.length>0?Eu.fromMillis(u,n).shiftTo(...h).plus(d):d}var w5t="missing Intl.DateTimeFormat.formatToParts support";function Qo(r,e=t=>t){return{regex:r,deser:([t])=>e(hjt(t))}}var S5t="\xA0",HMe=`[ ${S5t}]`,VMe=new RegExp(HMe,"g");function E5t(r){return r.replace(/\./g,"\\.?").replace(VMe,HMe)}function UIe(r){return r.replace(/\./g,"").replace(VMe," ").toLowerCase()}function pm(r,e){return r===null?null:{regex:RegExp(r.map(E5t).join("|")),deser:([t])=>r.findIndex(n=>UIe(t)===UIe(n))+e}}function HIe(r,e){return{regex:r,deser:([,t,n])=>cF(t,n),groups:e}}function Yq(r){return{regex:r,deser:([e])=>e}}function T5t(r){return r.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function k5t(r,e){let t=dm(e),n=dm(e,"{2}"),i=dm(e,"{3}"),o=dm(e,"{4}"),a=dm(e,"{6}"),s=dm(e,"{1,2}"),u=dm(e,"{1,3}"),h=dm(e,"{1,6}"),d=dm(e,"{1,9}"),y=dm(e,"{2,4}"),S=dm(e,"{4,6}"),k=L=>({regex:RegExp(T5t(L.val)),deser:([N])=>N,literal:!0}),M=(L=>{if(r.literal)return k(L);switch(L.val){case"G":return pm(e.eras("short"),0);case"GG":return pm(e.eras("long"),0);case"y":return Qo(h);case"yy":return Qo(y,zK);case"yyyy":return Qo(o);case"yyyyy":return Qo(S);case"yyyyyy":return Qo(a);case"M":return Qo(s);case"MM":return Qo(n);case"MMM":return pm(e.months("short",!0),1);case"MMMM":return pm(e.months("long",!0),1);case"L":return Qo(s);case"LL":return Qo(n);case"LLL":return pm(e.months("short",!1),1);case"LLLL":return pm(e.months("long",!1),1);case"d":return Qo(s);case"dd":return Qo(n);case"o":return Qo(u);case"ooo":return Qo(i);case"HH":return Qo(n);case"H":return Qo(s);case"hh":return Qo(n);case"h":return Qo(s);case"mm":return Qo(n);case"m":return Qo(s);case"q":return Qo(s);case"qq":return Qo(n);case"s":return Qo(s);case"ss":return Qo(n);case"S":return Qo(u);case"SSS":return Qo(i);case"u":return Yq(d);case"uu":return Yq(s);case"uuu":return Qo(t);case"a":return pm(e.meridiems(),0);case"kkkk":return Qo(o);case"kk":return Qo(y,zK);case"W":return Qo(s);case"WW":return Qo(n);case"E":case"c":return Qo(t);case"EEE":return pm(e.weekdays("short",!1),1);case"EEEE":return pm(e.weekdays("long",!1),1);case"ccc":return pm(e.weekdays("short",!0),1);case"cccc":return pm(e.weekdays("long",!0),1);case"Z":case"ZZ":return HIe(new RegExp(`([+-]${s.source})(?::(${n.source}))?`),2);case"ZZZ":return HIe(new RegExp(`([+-]${s.source})(${n.source})?`),2);case"z":return Yq(/[a-z_+-/]{1,256}?/i);case" ":return Yq(/[^\S\n\r]/);default:return k(L)}})(r)||{invalidReason:w5t};return M.token=r,M}var A5t={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour12:{numeric:"h","2-digit":"hh"},hour24:{numeric:"H","2-digit":"HH"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};function C5t(r,e,t){let{type:n,value:i}=r;if(n==="literal"){let u=/^\s+$/.test(i);return{literal:!u,val:u?" ":i}}let o=e[n],a=n;n==="hour"&&(e.hour12!=null?a=e.hour12?"hour12":"hour24":e.hourCycle!=null?e.hourCycle==="h11"||e.hourCycle==="h12"?a="hour12":a="hour24":a=t.hour12?"hour12":"hour24");let s=A5t[a];if(typeof s=="object"&&(s=s[o]),s)return{literal:!1,val:s}}function O5t(r){return[`^${r.map(t=>t.regex).reduce((t,n)=>`${t}(${n.source})`,"")}$`,r]}function D5t(r,e,t){let n=r.match(e);if(n){let i={},o=1;for(let a in t)if(qS(t,a)){let s=t[a],u=s.groups?s.groups+1:1;!s.literal&&s.token&&(i[s.token.val[0]]=s.deser(n.slice(o,o+u))),o+=u}return[n,i]}else return[n,{}]}function I5t(r){let e=o=>{switch(o){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}},t=null,n;return vi(r.z)||(t=jb.create(r.z)),vi(r.Z)||(t||(t=new up(r.Z)),n=r.Z),vi(r.q)||(r.M=(r.q-1)*3+1),vi(r.h)||(r.h<12&&r.a===1?r.h+=12:r.h===12&&r.a===0&&(r.h=0)),r.G===0&&r.y&&(r.y=-r.y),vi(r.u)||(r.S=WK(r.u)),[Object.keys(r).reduce((o,a)=>{let s=e(a);return s&&(o[s]=r[a]),o},{}),t,n]}var bK=null;function M5t(){return bK||(bK=pa.fromMillis(1555555555555)),bK}function P5t(r,e){if(r.literal)return r;let t=ad.macroTokenToFormatOpts(r.val),n=KMe(t,e);return n==null||n.includes(void 0)?r:n}function WMe(r,e){return Array.prototype.concat(...r.map(t=>P5t(t,e)))}var sF=class{constructor(e,t){if(this.locale=e,this.format=t,this.tokens=WMe(ad.parseFormat(t),e),this.units=this.tokens.map(n=>k5t(n,e)),this.disqualifyingUnit=this.units.find(n=>n.invalidReason),!this.disqualifyingUnit){let[n,i]=O5t(this.units);this.regex=RegExp(n,"i"),this.handlers=i}}explainFromTokens(e){if(this.isValid){let[t,n]=D5t(e,this.regex,this.handlers),[i,o,a]=n?I5t(n):[null,null,void 0];if(qS(n,"a")&&qS(n,"H"))throw new Bb("Can't include meridiem when specifying 24-hour format");return{input:e,tokens:this.tokens,regex:this.regex,rawMatches:t,matches:n,result:i,zone:o,specificOffset:a}}else return{input:e,tokens:this.tokens,invalidReason:this.invalidReason}}get isValid(){return!this.disqualifyingUnit}get invalidReason(){return this.disqualifyingUnit?this.disqualifyingUnit.invalidReason:null}};function $Me(r,e,t){return new sF(r,t).explainFromTokens(e)}function L5t(r,e,t){let{result:n,zone:i,specificOffset:o,invalidReason:a}=$Me(r,e,t);return[n,i,o,a]}function KMe(r,e){if(!r)return null;let n=ad.create(e,r).dtFormatter(M5t()),i=n.formatToParts(),o=n.resolvedOptions();return i.map(a=>C5t(a,r,o))}var xK="Invalid DateTime",VIe=864e13;function LC(r){return new sd("unsupported zone",`the zone "${r.name}" is not supported`)}function _K(r){return r.weekData===null&&(r.weekData=iF(r.c)),r.weekData}function wK(r){return r.localWeekData===null&&(r.localWeekData=iF(r.c,r.loc.getMinDaysInFirstWeek(),r.loc.getStartOfWeek())),r.localWeekData}function i_(r,e){let t={ts:r.ts,zone:r.zone,c:r.c,o:r.o,loc:r.loc,invalid:r.invalid};return new pa({...t,...e,old:t})}function GMe(r,e,t){let n=r-e*60*1e3,i=t.offset(n);if(e===i)return[n,e];n-=(i-e)*60*1e3;let o=t.offset(n);return i===o?[n,i]:[r-Math.min(i,o)*60*1e3,Math.max(i,o)]}function Zq(r,e){r+=e*60*1e3;let t=new Date(r);return{year:t.getUTCFullYear(),month:t.getUTCMonth()+1,day:t.getUTCDate(),hour:t.getUTCHours(),minute:t.getUTCMinutes(),second:t.getUTCSeconds(),millisecond:t.getUTCMilliseconds()}}function Jq(r,e,t){return GMe(uF(r),e,t)}function WIe(r,e){let t=r.o,n=r.c.year+Math.trunc(e.years),i=r.c.month+Math.trunc(e.months)+Math.trunc(e.quarters)*3,o={...r.c,year:n,month:i,day:Math.min(r.c.day,oF(n,i))+Math.trunc(e.days)+Math.trunc(e.weeks)*7},a=Eu.fromObject({years:e.years-Math.trunc(e.years),quarters:e.quarters-Math.trunc(e.quarters),months:e.months-Math.trunc(e.months),weeks:e.weeks-Math.trunc(e.weeks),days:e.days-Math.trunc(e.days),hours:e.hours,minutes:e.minutes,seconds:e.seconds,milliseconds:e.milliseconds}).as("milliseconds"),s=uF(o),[u,h]=GMe(s,t,r.zone);return a!==0&&(u+=a,h=r.zone.offset(u)),{ts:u,o:h}}function IS(r,e,t,n,i,o){let{setZone:a,zone:s}=t;if(r&&Object.keys(r).length!==0||e){let u=e||s,h=pa.fromObject(r,{...t,zone:u,specificOffset:o});return a?h:h.setZone(s)}else return pa.invalid(new sd("unparsable",`the input "${i}" can't be parsed as ${n}`))}function Xq(r,e,t=!0){return r.isValid?ad.create(Ca.create("en-US"),{allowZ:t,forceSimple:!0}).formatDateTimeFromString(r,e):null}function SK(r,e,t){let n=r.c.year>9999||r.c.year<0,i="";if(n&&r.c.year>=0&&(i+="+"),i+=Rl(r.c.year,n?6:4),t==="year")return i;if(e){if(i+="-",i+=Rl(r.c.month),t==="month")return i;i+="-"}else if(i+=Rl(r.c.month),t==="month")return i;return i+=Rl(r.c.day),i}function $Ie(r,e,t,n,i,o,a){let s=!t||r.c.millisecond!==0||r.c.second!==0,u="";switch(a){case"day":case"month":case"year":break;default:if(u+=Rl(r.c.hour),a==="hour")break;if(e){if(u+=":",u+=Rl(r.c.minute),a==="minute")break;s&&(u+=":",u+=Rl(r.c.second))}else{if(u+=Rl(r.c.minute),a==="minute")break;s&&(u+=Rl(r.c.second))}if(a==="second")break;s&&(!n||r.c.millisecond!==0)&&(u+=".",u+=Rl(r.c.millisecond,3))}return i&&(r.isOffsetFixed&&r.offset===0&&!o?u+="Z":r.o<0?(u+="-",u+=Rl(Math.trunc(-r.o/60)),u+=":",u+=Rl(Math.trunc(-r.o%60))):(u+="+",u+=Rl(Math.trunc(r.o/60)),u+=":",u+=Rl(Math.trunc(r.o%60)))),o&&(u+="["+r.zone.ianaName+"]"),u}var YMe={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},R5t={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},q5t={ordinal:1,hour:0,minute:0,second:0,millisecond:0},Qq=["year","month","day","hour","minute","second","millisecond"],F5t=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],N5t=["year","ordinal","hour","minute","second","millisecond"];function eF(r){let e={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[r.toLowerCase()];if(!e)throw new tF(r);return e}function KIe(r){switch(r.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return eF(r)}}function B5t(r){if(RC===void 0&&(RC=hs.now()),r.type!=="iana")return r.offset(RC);let e=r.name,t=jK.get(e);return t===void 0&&(t=r.offset(RC),jK.set(e,t)),t}function GIe(r,e){let t=Nb(e.zone,hs.defaultZone);if(!t.isValid)return pa.invalid(LC(t));let n=Ca.fromObject(e),i,o;if(vi(r.year))i=hs.now();else{for(let u of Qq)vi(r[u])&&(r[u]=YMe[u]);let a=wMe(r)||SMe(r);if(a)return pa.invalid(a);let s=B5t(t);[i,o]=Jq(r,s,t)}return new pa({ts:i,zone:t,loc:n,o})}function YIe(r,e,t){let n=vi(t.round)?!0:t.round,i=vi(t.rounding)?"trunc":t.rounding,o=(s,u)=>(s=$K(s,n||t.calendary?0:2,t.calendary?"round":i),e.loc.clone(t).relFormatter(t).format(s,u)),a=s=>t.calendary?e.hasSame(r,s)?0:e.startOf(s).diff(r.startOf(s),s).get(s):e.diff(r,s).get(s);if(t.unit)return o(a(t.unit),t.unit);for(let s of t.units){let u=a(s);if(Math.abs(u)>=1)return o(u,s)}return o(r>e?-0:0,t.units[t.units.length-1])}function ZIe(r){let e={},t;return r.length>0&&typeof r[r.length-1]=="object"?(e=r[r.length-1],t=Array.from(r).slice(0,r.length-1)):t=Array.from(r),[e,t]}var RC,jK=new Map,pa=class r{constructor(e){let t=e.zone||hs.defaultZone,n=e.invalid||(Number.isNaN(e.ts)?new sd("invalid input"):null)||(t.isValid?null:LC(t));this.ts=vi(e.ts)?hs.now():e.ts;let i=null,o=null;if(!n)if(e.old&&e.old.ts===this.ts&&e.old.zone.equals(t))[i,o]=[e.old.c,e.old.o];else{let s=zb(e.o)&&!e.old?e.o:t.offset(this.ts);i=Zq(this.ts,s),n=Number.isNaN(i.year)?new sd("invalid input"):null,i=n?null:i,o=n?null:s}this._zone=t,this.loc=e.loc||Ca.create(),this.invalid=n,this.weekData=null,this.localWeekData=null,this.c=i,this.o=o,this.isLuxonDateTime=!0}static now(){return new r({})}static local(){let[e,t]=ZIe(arguments),[n,i,o,a,s,u,h]=t;return GIe({year:n,month:i,day:o,hour:a,minute:s,second:u,millisecond:h},e)}static utc(){let[e,t]=ZIe(arguments),[n,i,o,a,s,u,h]=t;return e.zone=up.utcInstance,GIe({year:n,month:i,day:o,hour:a,minute:s,second:u,millisecond:h},e)}static fromJSDate(e,t={}){let n=vjt(e)?e.valueOf():NaN;if(Number.isNaN(n))return r.invalid("invalid input");let i=Nb(t.zone,hs.defaultZone);return i.isValid?new r({ts:n,zone:i,loc:Ca.fromObject(t)}):r.invalid(LC(i))}static fromMillis(e,t={}){if(zb(e))return e<-VIe||e>VIe?r.invalid("Timestamp out of range"):new r({ts:e,zone:Nb(t.zone,hs.defaultZone),loc:Ca.fromObject(t)});throw new Su(`fromMillis requires a numerical input, but received a ${typeof e} with value ${e}`)}static fromSeconds(e,t={}){if(zb(e))return new r({ts:e*1e3,zone:Nb(t.zone,hs.defaultZone),loc:Ca.fromObject(t)});throw new Su("fromSeconds requires a numerical input")}static fromObject(e,t={}){e=e||{};let n=Nb(t.zone,hs.defaultZone);if(!n.isValid)return r.invalid(LC(n));let i=Ca.fromObject(t),o=aF(e,KIe),{minDaysInFirstWeek:a,startOfWeek:s}=PIe(o,i),u=hs.now(),h=vi(t.specificOffset)?n.offset(u):t.specificOffset,d=!vi(o.ordinal),y=!vi(o.year),S=!vi(o.month)||!vi(o.day),k=y||S,D=o.weekYear||o.weekNumber;if((k||d)&&D)throw new Bb("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(S&&d)throw new Bb("Can't mix ordinal dates with month/day");let M=D||o.weekday&&!k,L,N,z=Zq(u,h);M?(L=F5t,N=R5t,z=iF(z,a,s)):d?(L=N5t,N=q5t,z=yK(z)):(L=Qq,N=YMe);let Z=!1;for(let Ae of L){let ye=o[Ae];vi(ye)?Z?o[Ae]=N[Ae]:o[Ae]=z[Ae]:Z=!0}let $=M?pjt(o,a,s):d?mjt(o):wMe(o),te=$||SMe(o);if(te)return r.invalid(te);let ue=M?IIe(o,a,s):d?MIe(o):o,[re,ce]=Jq(ue,h,n),de=new r({ts:re,zone:n,o:ce,loc:i});return o.weekday&&k&&e.weekday!==de.weekday?r.invalid("mismatched weekday",`you can't specify both a weekday of ${o.weekday} and a date of ${de.toISO()}`):de.isValid?de:r.invalid(de.invalid)}static fromISO(e,t={}){let[n,i]=a5t(e);return IS(n,i,t,"ISO 8601",e)}static fromRFC2822(e,t={}){let[n,i]=s5t(e);return IS(n,i,t,"RFC 2822",e)}static fromHTTP(e,t={}){let[n,i]=l5t(e);return IS(n,i,t,"HTTP",t)}static fromFormat(e,t,n={}){if(vi(e)||vi(t))throw new Su("fromFormat requires an input string and a format");let{locale:i=null,numberingSystem:o=null}=n,a=Ca.fromOpts({locale:i,numberingSystem:o,defaultToEN:!0}),[s,u,h,d]=L5t(a,e,t);return d?r.invalid(d):IS(s,u,n,`format ${t}`,e,h)}static fromString(e,t,n={}){return r.fromFormat(e,t,n)}static fromSQL(e,t={}){let[n,i]=m5t(e);return IS(n,i,t,"SQL",e)}static invalid(e,t=null){if(!e)throw new Su("need to specify a reason the DateTime is invalid");let n=e instanceof sd?e:new sd(e,t);if(hs.throwOnInvalid)throw new EK(n);return new r({invalid:n})}static isDateTime(e){return e&&e.isLuxonDateTime||!1}static parseFormatForOpts(e,t={}){let n=KMe(e,Ca.fromObject(t));return n?n.map(i=>i?i.val:null).join(""):null}static expandFormat(e,t={}){return WMe(ad.parseFormat(e),Ca.fromObject(t)).map(i=>i.val).join("")}static resetCache(){RC=void 0,jK.clear()}get(e){return this[e]}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?_K(this).weekYear:NaN}get weekNumber(){return this.isValid?_K(this).weekNumber:NaN}get weekday(){return this.isValid?_K(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?wK(this).weekday:NaN}get localWeekNumber(){return this.isValid?wK(this).weekNumber:NaN}get localWeekYear(){return this.isValid?wK(this).weekYear:NaN}get ordinal(){return this.isValid?yK(this.c).ordinal:NaN}get monthShort(){return this.isValid?MS.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?MS.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?MS.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?MS.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return this.isOffsetFixed?!1:this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed)return[this];let e=864e5,t=6e4,n=uF(this.c),i=this.zone.offset(n-e),o=this.zone.offset(n+e),a=this.zone.offset(n-i*t),s=this.zone.offset(n-o*t);if(a===s)return[this];let u=n-a*t,h=n-s*t,d=Zq(u,a),y=Zq(h,s);return d.hour===y.hour&&d.minute===y.minute&&d.second===y.second&&d.millisecond===y.millisecond?[i_(this,{ts:u}),i_(this,{ts:h})]:[this]}get isInLeapYear(){return NC(this.year)}get daysInMonth(){return oF(this.year,this.month)}get daysInYear(){return this.isValid?PS(this.year):NaN}get weeksInWeekYear(){return this.isValid?FC(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?FC(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(e={}){let{locale:t,numberingSystem:n,calendar:i}=ad.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:t,numberingSystem:n,outputCalendar:i}}toUTC(e=0,t={}){return this.setZone(up.instance(e),t)}toLocal(){return this.setZone(hs.defaultZone)}setZone(e,{keepLocalTime:t=!1,keepCalendarTime:n=!1}={}){if(e=Nb(e,hs.defaultZone),e.equals(this.zone))return this;if(e.isValid){let i=this.ts;if(t||n){let o=e.offset(this.ts),a=this.toObject();[i]=Jq(a,o,e)}return i_(this,{ts:i,zone:e})}else return r.invalid(LC(e))}reconfigure({locale:e,numberingSystem:t,outputCalendar:n}={}){let i=this.loc.clone({locale:e,numberingSystem:t,outputCalendar:n});return i_(this,{loc:i})}setLocale(e){return this.reconfigure({locale:e})}set(e){if(!this.isValid)return this;let t=aF(e,KIe),{minDaysInFirstWeek:n,startOfWeek:i}=PIe(t,this.loc),o=!vi(t.weekYear)||!vi(t.weekNumber)||!vi(t.weekday),a=!vi(t.ordinal),s=!vi(t.year),u=!vi(t.month)||!vi(t.day),h=s||u,d=t.weekYear||t.weekNumber;if((h||a)&&d)throw new Bb("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(u&&a)throw new Bb("Can't mix ordinal dates with month/day");let y;o?y=IIe({...iF(this.c,n,i),...t},n,i):vi(t.ordinal)?(y={...this.toObject(),...t},vi(t.day)&&(y.day=Math.min(oF(y.year,y.month),y.day))):y=MIe({...yK(this.c),...t});let[S,k]=Jq(y,this.o,this.zone);return i_(this,{ts:S,o:k})}plus(e){if(!this.isValid)return this;let t=Eu.fromDurationLike(e);return i_(this,WIe(this,t))}minus(e){if(!this.isValid)return this;let t=Eu.fromDurationLike(e).negate();return i_(this,WIe(this,t))}startOf(e,{useLocaleWeeks:t=!1}={}){if(!this.isValid)return this;let n={},i=Eu.normalizeUnit(e);switch(i){case"years":n.month=1;case"quarters":case"months":n.day=1;case"weeks":case"days":n.hour=0;case"hours":n.minute=0;case"minutes":n.second=0;case"seconds":n.millisecond=0;break}if(i==="weeks")if(t){let o=this.loc.getStartOfWeek(),{weekday:a}=this;a<o&&(n.weekNumber=this.weekNumber-1),n.weekday=o}else n.weekday=1;if(i==="quarters"){let o=Math.ceil(this.month/3);n.month=(o-1)*3+1}return this.set(n)}endOf(e,t){return this.isValid?this.plus({[e]:1}).startOf(e,t).minus(1):this}toFormat(e,t={}){return this.isValid?ad.create(this.loc.redefaultToEN(t)).formatDateTimeFromString(this,e):xK}toLocaleString(e=rF,t={}){return this.isValid?ad.create(this.loc.clone(t),e).formatDateTime(this):xK}toLocaleParts(e={}){return this.isValid?ad.create(this.loc.clone(e),e).formatDateTimeParts(this):[]}toISO({format:e="extended",suppressSeconds:t=!1,suppressMilliseconds:n=!1,includeOffset:i=!0,extendedZone:o=!1,precision:a="milliseconds"}={}){if(!this.isValid)return null;a=eF(a);let s=e==="extended",u=SK(this,s,a);return Qq.indexOf(a)>=3&&(u+="T"),u+=$Ie(this,s,t,n,i,o,a),u}toISODate({format:e="extended",precision:t="day"}={}){return this.isValid?SK(this,e==="extended",eF(t)):null}toISOWeekDate(){return Xq(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:e=!1,suppressSeconds:t=!1,includeOffset:n=!0,includePrefix:i=!1,extendedZone:o=!1,format:a="extended",precision:s="milliseconds"}={}){return this.isValid?(s=eF(s),(i&&Qq.indexOf(s)>=3?"T":"")+$Ie(this,a==="extended",t,e,n,o,s)):null}toRFC2822(){return Xq(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return Xq(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?SK(this,!0):null}toSQLTime({includeOffset:e=!0,includeZone:t=!1,includeOffsetSpace:n=!0}={}){let i="HH:mm:ss.SSS";return(t||e)&&(n&&(i+=" "),t?i+="z":e&&(i+="ZZ")),Xq(this,i,!0)}toSQL(e={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(e)}`:null}toString(){return this.isValid?this.toISO():xK}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`DateTime { ts: ${this.toISO()}, zone: ${this.zone.name}, locale: ${this.locale} }`:`DateTime { Invalid, reason: ${this.invalidReason} }`}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(e={}){if(!this.isValid)return{};let t={...this.c};return e.includeConfig&&(t.outputCalendar=this.outputCalendar,t.numberingSystem=this.loc.numberingSystem,t.locale=this.loc.locale),t}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(e,t="milliseconds",n={}){if(!this.isValid||!e.isValid)return Eu.invalid("created by diffing an invalid DateTime");let i={locale:this.locale,numberingSystem:this.numberingSystem,...n},o=yjt(t).map(Eu.normalizeUnit),a=e.valueOf()>this.valueOf(),s=a?this:e,u=a?e:this,h=_5t(s,u,o,i);return a?h.negate():h}diffNow(e="milliseconds",t={}){return this.diff(r.now(),e,t)}until(e){return this.isValid?RS.fromDateTimes(this,e):this}hasSame(e,t,n){if(!this.isValid)return!1;let i=e.valueOf(),o=this.setZone(e.zone,{keepLocalTime:!0});return o.startOf(t,n)<=i&&i<=o.endOf(t,n)}equals(e){return this.isValid&&e.isValid&&this.valueOf()===e.valueOf()&&this.zone.equals(e.zone)&&this.loc.equals(e.loc)}toRelative(e={}){if(!this.isValid)return null;let t=e.base||r.fromObject({},{zone:this.zone}),n=e.padding?this<t?-e.padding:e.padding:0,i=["years","months","days","hours","minutes","seconds"],o=e.unit;return Array.isArray(e.unit)&&(i=e.unit,o=void 0),YIe(t,this.plus(n),{...e,numeric:"always",units:i,unit:o})}toRelativeCalendar(e={}){return this.isValid?YIe(e.base||r.fromObject({},{zone:this.zone}),this,{...e,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...e){if(!e.every(r.isDateTime))throw new Su("min requires all arguments be DateTimes");return LIe(e,t=>t.valueOf(),Math.min)}static max(...e){if(!e.every(r.isDateTime))throw new Su("max requires all arguments be DateTimes");return LIe(e,t=>t.valueOf(),Math.max)}static fromFormatExplain(e,t,n={}){let{locale:i=null,numberingSystem:o=null}=n,a=Ca.fromOpts({locale:i,numberingSystem:o,defaultToEN:!0});return $Me(a,e,t)}static fromStringExplain(e,t,n={}){return r.fromFormatExplain(e,t,n)}static buildFormatParser(e,t={}){let{locale:n=null,numberingSystem:i=null}=t,o=Ca.fromOpts({locale:n,numberingSystem:i,defaultToEN:!0});return new sF(o,e)}static fromFormatParser(e,t,n={}){if(vi(e)||vi(t))throw new Su("fromFormatParser requires an input string and a format parser");let{locale:i=null,numberingSystem:o=null}=n,a=Ca.fromOpts({locale:i,numberingSystem:o,defaultToEN:!0});if(!a.equals(t.locale))throw new Su(`fromFormatParser called with a locale of ${a}, but the format parser was created for ${t.locale}`);let{result:s,zone:u,specificOffset:h,invalidReason:d}=t.explainFromTokens(e);return d?r.invalid(d):IS(s,u,n,`format ${t.format}`,e,h)}static get DATE_SHORT(){return rF}static get DATE_MED(){return XIe}static get DATE_MED_WITH_WEEKDAY(){return Y3t}static get DATE_FULL(){return JIe}static get DATE_HUGE(){return QIe}static get TIME_SIMPLE(){return eMe}static get TIME_WITH_SECONDS(){return tMe}static get TIME_WITH_SHORT_OFFSET(){return rMe}static get TIME_WITH_LONG_OFFSET(){return nMe}static get TIME_24_SIMPLE(){return iMe}static get TIME_24_WITH_SECONDS(){return oMe}static get TIME_24_WITH_SHORT_OFFSET(){return aMe}static get TIME_24_WITH_LONG_OFFSET(){return sMe}static get DATETIME_SHORT(){return lMe}static get DATETIME_SHORT_WITH_SECONDS(){return uMe}static get DATETIME_MED(){return cMe}static get DATETIME_MED_WITH_SECONDS(){return fMe}static get DATETIME_MED_WITH_WEEKDAY(){return Z3t}static get DATETIME_FULL(){return hMe}static get DATETIME_FULL_WITH_SECONDS(){return dMe}static get DATETIME_HUGE(){return pMe}static get DATETIME_HUGE_WITH_SECONDS(){return mMe}};function MC(r){if(pa.isDateTime(r))return r;if(r&&r.valueOf&&zb(r.valueOf()))return pa.fromJSDate(r);if(r&&typeof r=="object")return pa.fromObject(r);throw new Su(`Unknown datetime argument: ${r}, of type ${typeof r}`)}var hF=["onChange","onClose","onDayCreate","onDestroy","onKeyDown","onMonthChange","onOpen","onParseConfig","onReady","onValueUpdate","onYearChange","onPreCalendarPosition"],Ub={_disable:[],allowInput:!1,allowInvalidPreload:!1,altFormat:"F j, Y",altInput:!1,altInputClass:"form-control input",animate:typeof window=="object"&&window.navigator.userAgent.indexOf("MSIE")===-1,ariaDateFormat:"F j, Y",autoFillDefaultTime:!0,clickOpens:!0,closeOnSelect:!0,conjunction:", ",dateFormat:"Y-m-d",defaultHour:12,defaultMinute:0,defaultSeconds:0,disable:[],disableMobile:!1,enableSeconds:!1,enableTime:!1,errorHandler:function(r){return typeof console<"u"&&console.warn(r)},getWeek:function(r){var e=new Date(r.getTime());e.setHours(0,0,0,0),e.setDate(e.getDate()+3-(e.getDay()+6)%7);var t=new Date(e.getFullYear(),0,4);return 1+Math.round(((e.getTime()-t.getTime())/864e5-3+(t.getDay()+6)%7)/7)},hourIncrement:1,ignoredFocusElements:[],inline:!1,locale:"default",minuteIncrement:5,mode:"single",monthSelectorType:"dropdown",nextArrow:"<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 17 17'><g></g><path d='M13.207 8.472l-7.854 7.854-0.707-0.707 7.146-7.146-7.146-7.148 0.707-0.707 7.854 7.854z' /></svg>",noCalendar:!1,now:new Date,onChange:[],onClose:[],onDayCreate:[],onDestroy:[],onKeyDown:[],onMonthChange:[],onOpen:[],onParseConfig:[],onReady:[],onValueUpdate:[],onYearChange:[],onPreCalendarPosition:[],plugins:[],position:"auto",positionElement:void 0,prevArrow:"<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 17 17'><g></g><path d='M5.207 8.471l7.146 7.147-0.707 0.707-7.853-7.854 7.854-7.853 0.707 0.707-7.147 7.146z' /></svg>",shorthandCurrentMonth:!1,showMonths:1,static:!1,time_24hr:!1,weekNumbers:!1,wrap:!1};var dF={weekdays:{shorthand:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],longhand:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},months:{shorthand:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],longhand:["January","February","March","April","May","June","July","August","September","October","November","December"]},daysInMonth:[31,28,31,30,31,30,31,31,30,31,30,31],firstDayOfWeek:0,ordinal:function(r){var e=r%100;if(e>3&&e<21)return"th";switch(e%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}},rangeSeparator:" to ",weekAbbreviation:"Wk",scrollTitle:"Scroll to increment",toggleTitle:"Click to toggle",amPM:["AM","PM"],yearAriaLabel:"Year",monthAriaLabel:"Month",hourAriaLabel:"Hour",minuteAriaLabel:"Minute",time_24hr:!1},pF=dF;var Dc=function(r,e){return e===void 0&&(e=2),("000"+r).slice(e*-1)},bh=function(r){return r===!0?1:0};function ZK(r,e){var t;return function(){var n=this,i=arguments;clearTimeout(t),t=setTimeout(function(){return r.apply(n,i)},e)}}var mF=function(r){return r instanceof Array?r:[r]};function Ic(r,e,t){if(t===!0)return r.classList.add(e);r.classList.remove(e)}function Wo(r,e,t){var n=window.document.createElement(r);return e=e||"",t=t||"",n.className=e,t!==void 0&&(n.textContent=t),n}function jC(r){for(;r.firstChild;)r.removeChild(r.firstChild)}function XK(r,e){if(e(r))return r;if(r.parentNode)return XK(r.parentNode,e)}function UC(r,e){var t=Wo("div","numInputWrapper"),n=Wo("input","numInput "+r),i=Wo("span","arrowUp"),o=Wo("span","arrowDown");if(navigator.userAgent.indexOf("MSIE 9.0")===-1?n.type="number":(n.type="text",n.pattern="\\d*"),e!==void 0)for(var a in e)n.setAttribute(a,e[a]);return t.appendChild(n),t.appendChild(i),t.appendChild(o),t}function xh(r){try{if(typeof r.composedPath=="function"){var e=r.composedPath();return e[0]}return r.target}catch{return r.target}}var JK=function(){},HC=function(r,e,t){return t.months[e?"shorthand":"longhand"][r]},ZMe={D:JK,F:function(r,e,t){r.setMonth(t.months.longhand.indexOf(e))},G:function(r,e){r.setHours((r.getHours()>=12?12:0)+parseFloat(e))},H:function(r,e){r.setHours(parseFloat(e))},J:function(r,e){r.setDate(parseFloat(e))},K:function(r,e,t){r.setHours(r.getHours()%12+12*bh(new RegExp(t.amPM[1],"i").test(e)))},M:function(r,e,t){r.setMonth(t.months.shorthand.indexOf(e))},S:function(r,e){r.setSeconds(parseFloat(e))},U:function(r,e){return new Date(parseFloat(e)*1e3)},W:function(r,e,t){var n=parseInt(e),i=new Date(r.getFullYear(),0,2+(n-1)*7,0,0,0,0);return i.setDate(i.getDate()-i.getDay()+t.firstDayOfWeek),i},Y:function(r,e){r.setFullYear(parseFloat(e))},Z:function(r,e){return new Date(e)},d:function(r,e){r.setDate(parseFloat(e))},h:function(r,e){r.setHours((r.getHours()>=12?12:0)+parseFloat(e))},i:function(r,e){r.setMinutes(parseFloat(e))},j:function(r,e){r.setDate(parseFloat(e))},l:JK,m:function(r,e){r.setMonth(parseFloat(e)-1)},n:function(r,e){r.setMonth(parseFloat(e)-1)},s:function(r,e){r.setSeconds(parseFloat(e))},u:function(r,e){return new Date(parseFloat(e))},w:JK,y:function(r,e){r.setFullYear(2e3+parseFloat(e))}},qv={D:"",F:"",G:"(\\d\\d|\\d)",H:"(\\d\\d|\\d)",J:"(\\d\\d|\\d)\\w+",K:"",M:"",S:"(\\d\\d|\\d)",U:"(.+)",W:"(\\d\\d|\\d)",Y:"(\\d{4})",Z:"(.+)",d:"(\\d\\d|\\d)",h:"(\\d\\d|\\d)",i:"(\\d\\d|\\d)",j:"(\\d\\d|\\d)",l:"",m:"(\\d\\d|\\d)",n:"(\\d\\d|\\d)",s:"(\\d\\d|\\d)",u:"(.+)",w:"(\\d\\d|\\d)",y:"(\\d{2})"},jS={Z:function(r){return r.toISOString()},D:function(r,e,t){return e.weekdays.shorthand[jS.w(r,e,t)]},F:function(r,e,t){return HC(jS.n(r,e,t)-1,!1,e)},G:function(r,e,t){return Dc(jS.h(r,e,t))},H:function(r){return Dc(r.getHours())},J:function(r,e){return e.ordinal!==void 0?r.getDate()+e.ordinal(r.getDate()):r.getDate()},K:function(r,e){return e.amPM[bh(r.getHours()>11)]},M:function(r,e){return HC(r.getMonth(),!0,e)},S:function(r){return Dc(r.getSeconds())},U:function(r){return r.getTime()/1e3},W:function(r,e,t){return t.getWeek(r)},Y:function(r){return Dc(r.getFullYear(),4)},d:function(r){return Dc(r.getDate())},h:function(r){return r.getHours()%12?r.getHours()%12:12},i:function(r){return Dc(r.getMinutes())},j:function(r){return r.getDate()},l:function(r,e){return e.weekdays.longhand[r.getDay()]},m:function(r){return Dc(r.getMonth()+1)},n:function(r){return r.getMonth()+1},s:function(r){return r.getSeconds()},u:function(r){return r.getTime()},w:function(r){return r.getDay()},y:function(r){return String(r.getFullYear()).substring(2)}};var QK=function(r){var e=r.config,t=e===void 0?Ub:e,n=r.l10n,i=n===void 0?dF:n,o=r.isMobile,a=o===void 0?!1:o;return function(s,u,h){var d=h||i;return t.formatDate!==void 0&&!a?t.formatDate(s,u,d):u.split("").map(function(y,S,k){return jS[y]&&k[S-1]!=="\\"?jS[y](s,d,t):y!=="\\"?y:""}).join("")}},gF=function(r){var e=r.config,t=e===void 0?Ub:e,n=r.l10n,i=n===void 0?dF:n;return function(o,a,s,u){if(!(o!==0&&!o)){var h=u||i,d,y=o;if(o instanceof Date)d=new Date(o.getTime());else if(typeof o!="string"&&o.toFixed!==void 0)d=new Date(o);else if(typeof o=="string"){var S=a||(t||Ub).dateFormat,k=String(o).trim();if(k==="today")d=new Date,s=!0;else if(t&&t.parseDate)d=t.parseDate(o,S);else if(/Z$/.test(k)||/GMT$/.test(k))d=new Date(o);else{for(var D=void 0,M=[],L=0,N=0,z="";L<S.length;L++){var Z=S[L],$=Z==="\\",te=S[L-1]==="\\"||$;if(qv[Z]&&!te){z+=qv[Z];var ue=new RegExp(z).exec(o);ue&&(D=!0)&&M[Z!=="Y"?"push":"unshift"]({fn:ZMe[Z],val:ue[++N]})}else $||(z+=".")}d=!t||!t.noCalendar?new Date(new Date().getFullYear(),0,1,0,0,0,0):new Date(new Date().setHours(0,0,0,0)),M.forEach(function(re){var ce=re.fn,de=re.val;return d=ce(d,de,h)||d}),d=D?d:void 0}}if(!(d instanceof Date&&!isNaN(d.getTime()))){t.errorHandler(new Error("Invalid date provided: "+y));return}return s===!0&&d.setHours(0,0,0,0),d}}};function _h(r,e,t){return t===void 0&&(t=!0),t!==!1?new Date(r.getTime()).setHours(0,0,0,0)-new Date(e.getTime()).setHours(0,0,0,0):r.getTime()-e.getTime()}var XMe=function(r,e,t){return r>Math.min(e,t)&&r<Math.max(e,t)},vF=function(r,e,t){return r*3600+e*60+t},JMe=function(r){var e=Math.floor(r/3600),t=(r-e*3600)/60;return[e,t,r-e*3600-t*60]},QMe={DAY:864e5};function yF(r){var e=r.defaultHour,t=r.defaultMinute,n=r.defaultSeconds;if(r.minDate!==void 0){var i=r.minDate.getHours(),o=r.minDate.getMinutes(),a=r.minDate.getSeconds();e<i&&(e=i),e===i&&t<o&&(t=o),e===i&&t===o&&n<a&&(n=r.minDate.getSeconds())}if(r.maxDate!==void 0){var s=r.maxDate.getHours(),u=r.maxDate.getMinutes();e=Math.min(e,s),e===s&&(t=Math.min(u,t)),e===s&&t===u&&(n=r.maxDate.getSeconds())}return{hours:e,minutes:t,seconds:n}}typeof Object.assign!="function"&&(Object.assign=function(r){for(var e=[],t=1;t<arguments.length;t++)e[t-1]=arguments[t];if(!r)throw TypeError("Cannot convert undefined or null to object");for(var n=function(s){s&&Object.keys(s).forEach(function(u){return r[u]=s[u]})},i=0,o=e;i<o.length;i++){var a=o[i];n(a)}return r});var Mc=function(){return Mc=Object.assign||function(r){for(var e,t=1,n=arguments.length;t<n;t++){e=arguments[t];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(r[i]=e[i])}return r},Mc.apply(this,arguments)},ePe=function(){for(var r=0,e=0,t=arguments.length;e<t;e++)r+=arguments[e].length;for(var n=Array(r),i=0,e=0;e<t;e++)for(var o=arguments[e],a=0,s=o.length;a<s;a++,i++)n[i]=o[a];return n},z5t=300;function j5t(r,e){var t={config:Mc(Mc({},Ub),ql.defaultConfig),l10n:pF};t.parseDate=gF({config:t.config,l10n:t.l10n}),t._handlers=[],t.pluginElements=[],t.loadedPlugins=[],t._bind=M,t._setHoursFromDate=S,t._positionCalendar=dr,t.changeMonth=se,t.changeYear=Mt,t.clear=We,t.close=gt,t.onMouseOver=Xt,t._createElement=Wo,t.createDay=ue,t.destroy=rt,t.isEnabled=Ut,t.jumpToDate=z,t.updateValue=Fn,t.open=bt,t.redraw=kt,t.set=br,t.setDate=it,t.toggle=Vt;function n(){t.utils={getDaysInMonth:function(G,X){return G===void 0&&(G=t.currentMonth),X===void 0&&(X=t.currentYear),G===1&&(X%4===0&&X%100!==0||X%400===0)?29:t.l10n.daysInMonth[G]}}}function i(){t.element=t.input=r,t.isOpen=!1,be(),ze(),ii(),$r(),n(),t.isMobile||te(),N(),(t.selectedDates.length||t.config.noCalendar)&&(t.config.enableTime&&S(t.config.noCalendar?t.latestSelectedDateObj:void 0),Fn(!1)),s();var G=/^((?!chrome|android).)*safari/i.test(navigator.userAgent);!t.isMobile&&G&&dr(),Pt("onReady")}function o(){var G;return((G=t.calendarContainer)===null||G===void 0?void 0:G.getRootNode()).activeElement||document.activeElement}function a(G){return G.bind(t)}function s(){var G=t.config;G.weekNumbers===!1&&G.showMonths===1||G.noCalendar!==!0&&window.requestAnimationFrame(function(){if(t.calendarContainer!==void 0&&(t.calendarContainer.style.visibility="hidden",t.calendarContainer.style.display="block"),t.daysContainer!==void 0){var X=(t.days.offsetWidth+1)*G.showMonths;t.daysContainer.style.width=X+"px",t.calendarContainer.style.width=X+(t.weekWrapper!==void 0?t.weekWrapper.offsetWidth:0)+"px",t.calendarContainer.style.removeProperty("visibility"),t.calendarContainer.style.removeProperty("display")}})}function u(G){if(t.selectedDates.length===0){var X=t.config.minDate===void 0||_h(new Date,t.config.minDate)>=0?new Date:new Date(t.config.minDate.getTime()),oe=yF(t.config);X.setHours(oe.hours,oe.minutes,oe.seconds,X.getMilliseconds()),t.selectedDates=[X],t.latestSelectedDateObj=X}G!==void 0&&G.type!=="blur"&&Nn(G);var we=t._input.value;y(),Fn(),t._input.value!==we&&t._debouncedChange()}function h(G,X){return G%12+12*bh(X===t.l10n.amPM[1])}function d(G){switch(G%24){case 0:case 12:return 12;default:return G%12}}function y(){if(!(t.hourElement===void 0||t.minuteElement===void 0)){var G=(parseInt(t.hourElement.value.slice(-2),10)||0)%24,X=(parseInt(t.minuteElement.value,10)||0)%60,oe=t.secondElement!==void 0?(parseInt(t.secondElement.value,10)||0)%60:0;t.amPM!==void 0&&(G=h(G,t.amPM.textContent));var we=t.config.minTime!==void 0||t.config.minDate&&t.minDateHasTime&&t.latestSelectedDateObj&&_h(t.latestSelectedDateObj,t.config.minDate,!0)===0,Me=t.config.maxTime!==void 0||t.config.maxDate&&t.maxDateHasTime&&t.latestSelectedDateObj&&_h(t.latestSelectedDateObj,t.config.maxDate,!0)===0;if(t.config.maxTime!==void 0&&t.config.minTime!==void 0&&t.config.minTime>t.config.maxTime){var Ve=vF(t.config.minTime.getHours(),t.config.minTime.getMinutes(),t.config.minTime.getSeconds()),Qe=vF(t.config.maxTime.getHours(),t.config.maxTime.getMinutes(),t.config.maxTime.getSeconds()),ke=vF(G,X,oe);if(ke>Qe&&ke<Ve){var je=JMe(Ve);G=je[0],X=je[1],oe=je[2]}}else{if(Me){var at=t.config.maxTime!==void 0?t.config.maxTime:t.config.maxDate;G=Math.min(G,at.getHours()),G===at.getHours()&&(X=Math.min(X,at.getMinutes())),X===at.getMinutes()&&(oe=Math.min(oe,at.getSeconds()))}if(we){var At=t.config.minTime!==void 0?t.config.minTime:t.config.minDate;G=Math.max(G,At.getHours()),G===At.getHours()&&X<At.getMinutes()&&(X=At.getMinutes()),X===At.getMinutes()&&(oe=Math.max(oe,At.getSeconds()))}}k(G,X,oe)}}function S(G){var X=G||t.latestSelectedDateObj;X&&X instanceof Date&&k(X.getHours(),X.getMinutes(),X.getSeconds())}function k(G,X,oe){t.latestSelectedDateObj!==void 0&&t.latestSelectedDateObj.setHours(G%24,X,oe||0,0),!(!t.hourElement||!t.minuteElement||t.isMobile)&&(t.hourElement.value=Dc(t.config.time_24hr?G:(12+G)%12+12*bh(G%12===0)),t.minuteElement.value=Dc(X),t.amPM!==void 0&&(t.amPM.textContent=t.l10n.amPM[bh(G>=12)]),t.secondElement!==void 0&&(t.secondElement.value=Dc(oe)))}function D(G){var X=xh(G),oe=parseInt(X.value)+(G.delta||0);(oe/1e3>1||G.key==="Enter"&&!/[^\d]/.test(oe.toString()))&&Mt(oe)}function M(G,X,oe,we){if(X instanceof Array)return X.forEach(function(Me){return M(G,Me,oe,we)});if(G instanceof Array)return G.forEach(function(Me){return M(Me,X,oe,we)});G.addEventListener(X,oe,we),t._handlers.push({remove:function(){return G.removeEventListener(X,oe,we)}})}function L(){Pt("onChange")}function N(){if(t.config.wrap&&["open","close","toggle","clear"].forEach(function(oe){Array.prototype.forEach.call(t.element.querySelectorAll("[data-"+oe+"]"),function(we){return M(we,"click",t[oe])})}),t.isMobile){yi();return}var G=ZK(_t,50);if(t._debouncedChange=ZK(L,z5t),t.daysContainer&&!/iPhone|iPad|iPod/i.test(navigator.userAgent)&&M(t.daysContainer,"mouseover",function(oe){t.config.mode==="range"&&Xt(xh(oe))}),M(t._input,"keydown",nr),t.calendarContainer!==void 0&&M(t.calendarContainer,"keydown",nr),!t.config.inline&&!t.config.static&&M(window,"resize",G),window.ontouchstart!==void 0?M(window.document,"touchstart",ut):M(window.document,"mousedown",ut),M(window.document,"focus",ut,{capture:!0}),t.config.clickOpens===!0&&(M(t._input,"focus",t.open),M(t._input,"click",t.open)),t.daysContainer!==void 0&&(M(t.monthNav,"click",Yi),M(t.monthNav,["keyup","increment"],D),M(t.daysContainer,"click",fr)),t.timeContainer!==void 0&&t.minuteElement!==void 0&&t.hourElement!==void 0){var X=function(oe){return xh(oe).select()};M(t.timeContainer,["increment"],u),M(t.timeContainer,"blur",u,{capture:!0}),M(t.timeContainer,"click",Z),M([t.hourElement,t.minuteElement],["focus","click"],X),t.secondElement!==void 0&&M(t.secondElement,"focus",function(){return t.secondElement&&t.secondElement.select()}),t.amPM!==void 0&&M(t.amPM,"click",function(oe){u(oe)})}t.config.allowInput&&M(t._input,"blur",hr)}function z(G,X){var oe=G!==void 0?t.parseDate(G):t.latestSelectedDateObj||(t.config.minDate&&t.config.minDate>t.now?t.config.minDate:t.config.maxDate&&t.config.maxDate<t.now?t.config.maxDate:t.now),we=t.currentYear,Me=t.currentMonth;try{oe!==void 0&&(t.currentYear=oe.getFullYear(),t.currentMonth=oe.getMonth())}catch(Ve){Ve.message="Invalid date supplied: "+oe,t.config.errorHandler(Ve)}X&&t.currentYear!==we&&(Pt("onYearChange"),H()),X&&(t.currentYear!==we||t.currentMonth!==Me)&&Pt("onMonthChange"),t.redraw()}function Z(G){var X=xh(G);~X.className.indexOf("arrow")&&$(G,X.classList.contains("arrowUp")?1:-1)}function $(G,X,oe){var we=G&&xh(G),Me=oe||we&&we.parentNode&&we.parentNode.firstChild,Ve=Lr("increment");Ve.delta=X,Me&&Me.dispatchEvent(Ve)}function te(){var G=window.document.createDocumentFragment();if(t.calendarContainer=Wo("div","flatpickr-calendar"),t.calendarContainer.tabIndex=-1,!t.config.noCalendar){if(G.appendChild(pe()),t.innerContainer=Wo("div","flatpickr-innerContainer"),t.config.weekNumbers){var X=ve(),oe=X.weekWrapper,we=X.weekNumbers;t.innerContainer.appendChild(oe),t.weekNumbers=we,t.weekWrapper=oe}t.rContainer=Wo("div","flatpickr-rContainer"),t.rContainer.appendChild(fe()),t.daysContainer||(t.daysContainer=Wo("div","flatpickr-days"),t.daysContainer.tabIndex=-1),j(),t.rContainer.appendChild(t.daysContainer),t.innerContainer.appendChild(t.rContainer),G.appendChild(t.innerContainer)}t.config.enableTime&&G.appendChild(ie()),Ic(t.calendarContainer,"rangeMode",t.config.mode==="range"),Ic(t.calendarContainer,"animate",t.config.animate===!0),Ic(t.calendarContainer,"multiMonth",t.config.showMonths>1),t.calendarContainer.appendChild(G);var Me=t.config.appendTo!==void 0&&t.config.appendTo.nodeType!==void 0;if((t.config.inline||t.config.static)&&(t.calendarContainer.classList.add(t.config.inline?"inline":"static"),t.config.inline&&(!Me&&t.element.parentNode?t.element.parentNode.insertBefore(t.calendarContainer,t._input.nextSibling):t.config.appendTo!==void 0&&t.config.appendTo.appendChild(t.calendarContainer)),t.config.static)){var Ve=Wo("div","flatpickr-wrapper");t.element.parentNode&&t.element.parentNode.insertBefore(Ve,t.element),Ve.appendChild(t.element),t.altInput&&Ve.appendChild(t.altInput),Ve.appendChild(t.calendarContainer)}!t.config.static&&!t.config.inline&&(t.config.appendTo!==void 0?t.config.appendTo:window.document.body).appendChild(t.calendarContainer)}function ue(G,X,oe,we){var Me=Ut(X,!0),Ve=Wo("span",G,X.getDate().toString());return Ve.dateObj=X,Ve.$i=we,Ve.setAttribute("aria-label",t.formatDate(X,t.config.ariaDateFormat)),G.indexOf("hidden")===-1&&_h(X,t.now)===0&&(t.todayDateElem=Ve,Ve.classList.add("today"),Ve.setAttribute("aria-current","date")),Me?(Ve.tabIndex=-1,xr(X)&&(Ve.classList.add("selected"),t.selectedDateElem=Ve,t.config.mode==="range"&&(Ic(Ve,"startRange",t.selectedDates[0]&&_h(X,t.selectedDates[0],!0)===0),Ic(Ve,"endRange",t.selectedDates[1]&&_h(X,t.selectedDates[1],!0)===0),G==="nextMonthDay"&&Ve.classList.add("inRange")))):Ve.classList.add("flatpickr-disabled"),t.config.mode==="range"&&Sn(X)&&!xr(X)&&Ve.classList.add("inRange"),t.weekNumbers&&t.config.showMonths===1&&G!=="prevMonthDay"&&we%7===6&&t.weekNumbers.insertAdjacentHTML("beforeend","<span class='flatpickr-day'>"+t.config.getWeek(X)+"</span>"),Pt("onDayCreate",Ve),Ve}function re(G){G.focus(),t.config.mode==="range"&&Xt(G)}function ce(G){for(var X=G>0?0:t.config.showMonths-1,oe=G>0?t.config.showMonths:-1,we=X;we!=oe;we+=G)for(var Me=t.daysContainer.children[we],Ve=G>0?0:Me.children.length-1,Qe=G>0?Me.children.length:-1,ke=Ve;ke!=Qe;ke+=G){var je=Me.children[ke];if(je.className.indexOf("hidden")===-1&&Ut(je.dateObj))return je}}function de(G,X){for(var oe=G.className.indexOf("Month")===-1?G.dateObj.getMonth():t.currentMonth,we=X>0?t.config.showMonths:-1,Me=X>0?1:-1,Ve=oe-t.currentMonth;Ve!=we;Ve+=Me)for(var Qe=t.daysContainer.children[Ve],ke=oe-t.currentMonth===Ve?G.$i+X:X<0?Qe.children.length-1:0,je=Qe.children.length,at=ke;at>=0&&at<je&&at!=(X>0?je:-1);at+=Me){var At=Qe.children[at];if(At.className.indexOf("hidden")===-1&&Ut(At.dateObj)&&Math.abs(G.$i-at)>=Math.abs(X))return re(At)}t.changeMonth(Me),Ae(ce(Me),0)}function Ae(G,X){var oe=o(),we=Wt(oe||document.body),Me=G!==void 0?G:we?oe:t.selectedDateElem!==void 0&&Wt(t.selectedDateElem)?t.selectedDateElem:t.todayDateElem!==void 0&&Wt(t.todayDateElem)?t.todayDateElem:ce(X>0?1:-1);Me===void 0?t._input.focus():we?de(Me,X):re(Me)}function ye(G,X){for(var oe=(new Date(G,X,1).getDay()-t.l10n.firstDayOfWeek+7)%7,we=t.utils.getDaysInMonth((X-1+12)%12,G),Me=t.utils.getDaysInMonth(X,G),Ve=window.document.createDocumentFragment(),Qe=t.config.showMonths>1,ke=Qe?"prevMonthDay hidden":"prevMonthDay",je=Qe?"nextMonthDay hidden":"nextMonthDay",at=we+1-oe,At=0;at<=we;at++,At++)Ve.appendChild(ue("flatpickr-day "+ke,new Date(G,X-1,at),at,At));for(at=1;at<=Me;at++,At++)Ve.appendChild(ue("flatpickr-day",new Date(G,X,at),at,At));for(var zt=Me+1;zt<=42-oe&&(t.config.showMonths===1||At%7!==0);zt++,At++)Ve.appendChild(ue("flatpickr-day "+je,new Date(G,X+1,zt%Me),zt,At));var Dt=Wo("div","dayContainer");return Dt.appendChild(Ve),Dt}function j(){if(t.daysContainer!==void 0){jC(t.daysContainer),t.weekNumbers&&jC(t.weekNumbers);for(var G=document.createDocumentFragment(),X=0;X<t.config.showMonths;X++){var oe=new Date(t.currentYear,t.currentMonth,1);oe.setMonth(t.currentMonth+X),G.appendChild(ye(oe.getFullYear(),oe.getMonth()))}t.daysContainer.appendChild(G),t.days=t.daysContainer.firstChild,t.config.mode==="range"&&t.selectedDates.length===1&&Xt()}}function H(){if(!(t.config.showMonths>1||t.config.monthSelectorType!=="dropdown")){var G=function(we){return t.config.minDate!==void 0&&t.currentYear===t.config.minDate.getFullYear()&&we<t.config.minDate.getMonth()?!1:!(t.config.maxDate!==void 0&&t.currentYear===t.config.maxDate.getFullYear()&&we>t.config.maxDate.getMonth())};t.monthsDropdownContainer.tabIndex=-1,t.monthsDropdownContainer.innerHTML="";for(var X=0;X<12;X++)if(G(X)){var oe=Wo("option","flatpickr-monthDropdown-month");oe.value=new Date(t.currentYear,X).getMonth().toString(),oe.textContent=HC(X,t.config.shorthandCurrentMonth,t.l10n),oe.tabIndex=-1,t.currentMonth===X&&(oe.selected=!0),t.monthsDropdownContainer.appendChild(oe)}}}function xe(){var G=Wo("div","flatpickr-month"),X=window.document.createDocumentFragment(),oe;t.config.showMonths>1||t.config.monthSelectorType==="static"?oe=Wo("span","cur-month"):(t.monthsDropdownContainer=Wo("select","flatpickr-monthDropdown-months"),t.monthsDropdownContainer.setAttribute("aria-label",t.l10n.monthAriaLabel),M(t.monthsDropdownContainer,"change",function(Qe){var ke=xh(Qe),je=parseInt(ke.value,10);t.changeMonth(je-t.currentMonth),Pt("onMonthChange")}),H(),oe=t.monthsDropdownContainer);var we=UC("cur-year",{tabindex:"-1"}),Me=we.getElementsByTagName("input")[0];Me.setAttribute("aria-label",t.l10n.yearAriaLabel),t.config.minDate&&Me.setAttribute("min",t.config.minDate.getFullYear().toString()),t.config.maxDate&&(Me.setAttribute("max",t.config.maxDate.getFullYear().toString()),Me.disabled=!!t.config.minDate&&t.config.minDate.getFullYear()===t.config.maxDate.getFullYear());var Ve=Wo("div","flatpickr-current-month");return Ve.appendChild(oe),Ve.appendChild(we),X.appendChild(Ve),G.appendChild(X),{container:G,yearElement:Me,monthElement:oe}}function Ie(){jC(t.monthNav),t.monthNav.appendChild(t.prevMonthNav),t.config.showMonths&&(t.yearElements=[],t.monthElements=[]);for(var G=t.config.showMonths;G--;){var X=xe();t.yearElements.push(X.yearElement),t.monthElements.push(X.monthElement),t.monthNav.appendChild(X.container)}t.monthNav.appendChild(t.nextMonthNav)}function pe(){return t.monthNav=Wo("div","flatpickr-months"),t.yearElements=[],t.monthElements=[],t.prevMonthNav=Wo("span","flatpickr-prev-month"),t.prevMonthNav.innerHTML=t.config.prevArrow,t.nextMonthNav=Wo("span","flatpickr-next-month"),t.nextMonthNav.innerHTML=t.config.nextArrow,Ie(),Object.defineProperty(t,"_hidePrevMonthArrow",{get:function(){return t.__hidePrevMonthArrow},set:function(G){t.__hidePrevMonthArrow!==G&&(Ic(t.prevMonthNav,"flatpickr-disabled",G),t.__hidePrevMonthArrow=G)}}),Object.defineProperty(t,"_hideNextMonthArrow",{get:function(){return t.__hideNextMonthArrow},set:function(G){t.__hideNextMonthArrow!==G&&(Ic(t.nextMonthNav,"flatpickr-disabled",G),t.__hideNextMonthArrow=G)}}),t.currentYearElement=t.yearElements[0],zn(),t.monthNav}function ie(){t.calendarContainer.classList.add("hasTime"),t.config.noCalendar&&t.calendarContainer.classList.add("noCalendar");var G=yF(t.config);t.timeContainer=Wo("div","flatpickr-time"),t.timeContainer.tabIndex=-1;var X=Wo("span","flatpickr-time-separator",":"),oe=UC("flatpickr-hour",{"aria-label":t.l10n.hourAriaLabel});t.hourElement=oe.getElementsByTagName("input")[0];var we=UC("flatpickr-minute",{"aria-label":t.l10n.minuteAriaLabel});if(t.minuteElement=we.getElementsByTagName("input")[0],t.hourElement.tabIndex=t.minuteElement.tabIndex=-1,t.hourElement.value=Dc(t.latestSelectedDateObj?t.latestSelectedDateObj.getHours():t.config.time_24hr?G.hours:d(G.hours)),t.minuteElement.value=Dc(t.latestSelectedDateObj?t.latestSelectedDateObj.getMinutes():G.minutes),t.hourElement.setAttribute("step",t.config.hourIncrement.toString()),t.minuteElement.setAttribute("step",t.config.minuteIncrement.toString()),t.hourElement.setAttribute("min",t.config.time_24hr?"0":"1"),t.hourElement.setAttribute("max",t.config.time_24hr?"23":"12"),t.hourElement.setAttribute("maxlength","2"),t.minuteElement.setAttribute("min","0"),t.minuteElement.setAttribute("max","59"),t.minuteElement.setAttribute("maxlength","2"),t.timeContainer.appendChild(oe),t.timeContainer.appendChild(X),t.timeContainer.appendChild(we),t.config.time_24hr&&t.timeContainer.classList.add("time24hr"),t.config.enableSeconds){t.timeContainer.classList.add("hasSeconds");var Me=UC("flatpickr-second");t.secondElement=Me.getElementsByTagName("input")[0],t.secondElement.value=Dc(t.latestSelectedDateObj?t.latestSelectedDateObj.getSeconds():G.seconds),t.secondElement.setAttribute("step",t.minuteElement.getAttribute("step")),t.secondElement.setAttribute("min","0"),t.secondElement.setAttribute("max","59"),t.secondElement.setAttribute("maxlength","2"),t.timeContainer.appendChild(Wo("span","flatpickr-time-separator",":")),t.timeContainer.appendChild(Me)}return t.config.time_24hr||(t.amPM=Wo("span","flatpickr-am-pm",t.l10n.amPM[bh((t.latestSelectedDateObj?t.hourElement.value:t.config.defaultHour)>11)]),t.amPM.title=t.l10n.toggleTitle,t.amPM.tabIndex=-1,t.timeContainer.appendChild(t.amPM)),t.timeContainer}function fe(){t.weekdayContainer?jC(t.weekdayContainer):t.weekdayContainer=Wo("div","flatpickr-weekdays");for(var G=t.config.showMonths;G--;){var X=Wo("div","flatpickr-weekdaycontainer");t.weekdayContainer.appendChild(X)}return Pe(),t.weekdayContainer}function Pe(){if(t.weekdayContainer){var G=t.l10n.firstDayOfWeek,X=ePe(t.l10n.weekdays.shorthand);G>0&&G<X.length&&(X=ePe(X.splice(G,X.length),X.splice(0,G)));for(var oe=t.config.showMonths;oe--;)t.weekdayContainer.children[oe].innerHTML=`
|
|
656
|
+
%o`,t,e,n),(i=window.onerror)===null||i===void 0||i.call(window,t,"",0,0,e)}logFormattedMessage(e,t,n={}){n=Object.assign({application:this},n),this.logger.groupCollapsed(`${e} #${t}`),this.logger.log("details:",Object.assign({},n)),this.logger.groupEnd()}};function l3t(){return new Promise(r=>{document.readyState=="loading"?document.addEventListener("DOMContentLoaded",()=>r()):r()})}function u3t(r){return EC(r,"classes").reduce((t,n)=>Object.assign(t,c3t(n)),{})}function c3t(r){return{[`${r}Class`]:{get(){let{classes:e}=this;if(e.has(r))return e.get(r);{let t=e.getAttributeName(r);throw new Error(`Missing attribute "${t}"`)}}},[`${r}Classes`]:{get(){return this.classes.getAll(r)}},[`has${SC(r)}Class`]:{get(){return this.classes.has(r)}}}}function f3t(r){return EC(r,"outlets").reduce((t,n)=>Object.assign(t,h3t(n)),{})}function PCe(r,e,t){return r.application.getControllerForElementAndIdentifier(e,t)}function LCe(r,e,t){let n=PCe(r,e,t);if(n||(r.application.router.proposeToConnectScopeForElementAndIdentifier(e,t),n=PCe(r,e,t),n))return n}function h3t(r){let e=A7(r);return{[`${e}Outlet`]:{get(){let t=this.outlets.find(r),n=this.outlets.getSelectorForOutletName(r);if(t){let i=LCe(this,t,r);if(i)return i;throw new Error(`The provided outlet element is missing an outlet controller "${r}" instance for host controller "${this.identifier}"`)}throw new Error(`Missing outlet element "${r}" for host controller "${this.identifier}". Stimulus couldn't find a matching outlet element using selector "${n}".`)}},[`${e}Outlets`]:{get(){let t=this.outlets.findAll(r);return t.length>0?t.map(n=>{let i=LCe(this,n,r);if(i)return i;console.warn(`The provided outlet element is missing an outlet controller "${r}" instance for host controller "${this.identifier}"`,n)}).filter(n=>n):[]}},[`${e}OutletElement`]:{get(){let t=this.outlets.find(r),n=this.outlets.getSelectorForOutletName(r);if(t)return t;throw new Error(`Missing outlet element "${r}" for host controller "${this.identifier}". Stimulus couldn't find a matching outlet element using selector "${n}".`)}},[`${e}OutletElements`]:{get(){return this.outlets.findAll(r)}},[`has${SC(e)}Outlet`]:{get(){return this.outlets.has(r)}}}}function d3t(r){return EC(r,"targets").reduce((t,n)=>Object.assign(t,p3t(n)),{})}function p3t(r){return{[`${r}Target`]:{get(){let e=this.targets.find(r);if(e)return e;throw new Error(`Missing target element "${r}" for "${this.identifier}" controller`)}},[`${r}Targets`]:{get(){return this.targets.findAll(r)}},[`has${SC(r)}Target`]:{get(){return this.targets.has(r)}}}}function m3t(r){let e=Zzt(r,"values"),t={valueDescriptorMap:{get(){return e.reduce((n,i)=>{let o=jCe(i,this.identifier),a=this.data.getAttributeNameForKey(o.key);return Object.assign(n,{[a]:o})},{})}}};return e.reduce((n,i)=>Object.assign(n,g3t(i)),t)}function g3t(r,e){let t=jCe(r,e),{key:n,name:i,reader:o,writer:a}=t;return{[i]:{get(){let s=this.data.get(n);return s!==null?o(s):t.defaultValue},set(s){s===void 0?this.data.delete(n):this.data.set(n,a(s))}},[`has${SC(i)}`]:{get(){return this.data.has(n)||t.hasCustomDefaultValue}}}}function jCe([r,e],t){return x3t({controller:t,token:r,typeDefinition:e})}function _q(r){switch(r){case Array:return"array";case Boolean:return"boolean";case Number:return"number";case Object:return"object";case String:return"string"}}function wC(r){switch(typeof r){case"boolean":return"boolean";case"number":return"number";case"string":return"string"}if(Array.isArray(r))return"array";if(Object.prototype.toString.call(r)==="[object Object]")return"object"}function v3t(r){let{controller:e,token:t,typeObject:n}=r,i=OCe(n.type),o=OCe(n.default),a=i&&o,s=i&&!o,u=!i&&o,h=_q(n.type),d=wC(r.typeObject.default);if(s)return h;if(u)return d;if(h!==d){let y=e?`${e}.${t}`:t;throw new Error(`The specified default value for the Stimulus Value "${y}" must match the defined type "${h}". The provided default value of "${n.default}" is of type "${d}".`)}if(a)return h}function y3t(r){let{controller:e,token:t,typeDefinition:n}=r,o=v3t({controller:e,token:t,typeObject:n}),a=wC(n),s=_q(n),u=o||a||s;if(u)return u;let h=e?`${e}.${n}`:t;throw new Error(`Unknown value type "${h}" for "${t}" value`)}function b3t(r){let e=_q(r);if(e)return RCe[e];let t=C7(r,"default"),n=C7(r,"type"),i=r;if(t)return i.default;if(n){let{type:o}=i,a=_q(o);if(a)return RCe[a]}return r}function x3t(r){let{token:e,typeDefinition:t}=r,n=`${NCe(e)}-value`,i=y3t(r);return{type:i,key:n,name:G7(n),get defaultValue(){return b3t(t)},get hasCustomDefaultValue(){return wC(t)!==void 0},reader:_3t[i],writer:qCe[i]||qCe.default}}var RCe={get array(){return[]},boolean:!1,number:0,get object(){return{}},string:""},_3t={array(r){let e=JSON.parse(r);if(!Array.isArray(e))throw new TypeError(`expected value of type "array" but instead got value "${r}" of type "${wC(e)}"`);return e},boolean(r){return!(r=="0"||String(r).toLowerCase()=="false")},number(r){return Number(r.replace(/_/g,""))},object(r){let e=JSON.parse(r);if(e===null||typeof e!="object"||Array.isArray(e))throw new TypeError(`expected value of type "object" but instead got value "${r}" of type "${wC(e)}"`);return e},string(r){return r}},qCe={default:w3t,array:FCe,object:FCe};function FCe(r){return JSON.stringify(r)}function w3t(r){return`${r}`}var er=class{constructor(e){this.context=e}static get shouldLoad(){return!0}static afterLoad(e,t){}get application(){return this.context.application}get scope(){return this.context.scope}get element(){return this.scope.element}get identifier(){return this.scope.identifier}get targets(){return this.scope.targets}get outlets(){return this.scope.outlets}get classes(){return this.scope.classes}get data(){return this.scope.data}initialize(){}connect(){}disconnect(){}dispatch(e,{target:t=this.element,detail:n={},prefix:i=this.identifier,bubbles:o=!0,cancelable:a=!0}={}){let s=i?`${i}:${e}`:e,u=new CustomEvent(s,{detail:n,bubbles:o,cancelable:a});return t.dispatchEvent(u),u}};er.blessings=[u3t,d3t,m3t,f3t];er.targets=[];er.outlets=[];er.values={};var wS=class extends er{initialize(){this.hide()}connect(){setTimeout(()=>{this.show()},this.showDelayValue),this.hasDismissAfterValue&&setTimeout(()=>{this.close()},this.dismissAfterValue)}close(){this.hide(),setTimeout(()=>{this.element.remove()},this.removeDelayValue)}show(){this.element.classList.add(...this.showClasses),this.element.classList.remove(...this.hideClasses)}hide(){this.element.classList.add(...this.hideClasses),this.element.classList.remove(...this.showClasses)}};wS.values={dismissAfter:Number,showDelay:{type:Number,default:200},removeDelay:{type:Number,default:1100}},wS.classes=["show","hide"];var Y7=class extends er{connect(){this.timeout=null,this.duration=this.data.get("duration")||1e3}save(){clearTimeout(this.timeout),this.timeout=setTimeout(()=>{this.statusTarget.textContent="Saving...",Rails.fire(this.formTarget,"submit")},this.duration)}success(){this.setStatus("Saved!")}error(){this.setStatus("Unable to save!")}setStatus(e){this.statusTarget.textContent=e,this.timeout=setTimeout(()=>{this.statusTarget.textContent=""},2e3)}};Y7.targets=["form","status"];var TC=class extends er{constructor(...e){super(...e),this._onMenuButtonKeydown=t=>{switch(t.keyCode){case 13:case 32:t.preventDefault(),this.toggle()}}}connect(){this.toggleClass=this.data.get("class")||"hidden",this.visibleClass=this.data.get("visibleClass")||null,this.invisibleClass=this.data.get("invisibleClass")||null,this.activeClass=this.data.get("activeClass")||null,this.enteringClass=this.data.get("enteringClass")||null,this.leavingClass=this.data.get("leavingClass")||null,this.hasButtonTarget&&this.buttonTarget.addEventListener("keydown",this._onMenuButtonKeydown),this.element.setAttribute("aria-haspopup","true")}disconnect(){this.hasButtonTarget&&this.buttonTarget.removeEventListener("keydown",this._onMenuButtonKeydown)}toggle(){this.openValue=!this.openValue}openValueChanged(){this.openValue?this._show():this._hide()}_show(e){setTimeout((()=>{this.menuTarget.classList.remove(this.toggleClass),this.element.setAttribute("aria-expanded","true"),this._enteringClassList[0].forEach((t=>{this.menuTarget.classList.add(t)}).bind(this)),this._activeClassList[0].forEach(t=>{this.activeTarget.classList.add(t)}),this._invisibleClassList[0].forEach(t=>this.menuTarget.classList.remove(t)),this._visibleClassList[0].forEach(t=>{this.menuTarget.classList.add(t)}),setTimeout((()=>{this._enteringClassList[0].forEach(t=>this.menuTarget.classList.remove(t))}).bind(this),this.enterTimeout[0]),typeof e=="function"&&e()}).bind(this))}_hide(e){setTimeout((()=>{this.element.setAttribute("aria-expanded","false"),this._invisibleClassList[0].forEach(t=>this.menuTarget.classList.add(t)),this._visibleClassList[0].forEach(t=>this.menuTarget.classList.remove(t)),this._activeClassList[0].forEach(t=>this.activeTarget.classList.remove(t)),this._leavingClassList[0].forEach(t=>this.menuTarget.classList.add(t)),setTimeout((()=>{this._leavingClassList[0].forEach(t=>this.menuTarget.classList.remove(t)),typeof e=="function"&&e(),this.menuTarget.classList.add(this.toggleClass)}).bind(this),this.leaveTimeout[0])}).bind(this))}show(){this.openValue=!0}hide(e){this.element.contains(e.target)===!1&&this.openValue&&(this.openValue=!1)}get activeTarget(){return this.data.has("activeTarget")?document.querySelector(this.data.get("activeTarget")):this.element}get _activeClassList(){return this.activeClass?this.activeClass.split(",").map(e=>e.split(" ")):[[],[]]}get _visibleClassList(){return this.visibleClass?this.visibleClass.split(",").map(e=>e.split(" ")):[[],[]]}get _invisibleClassList(){return this.invisibleClass?this.invisibleClass.split(",").map(e=>e.split(" ")):[[],[]]}get _enteringClassList(){return this.enteringClass?this.enteringClass.split(",").map(e=>e.split(" ")):[[],[]]}get _leavingClassList(){return this.leavingClass?this.leavingClass.split(",").map(e=>e.split(" ")):[[],[]]}get enterTimeout(){return(this.data.get("enterTimeout")||"0,0").split(",").map(e=>parseInt(e))}get leaveTimeout(){return(this.data.get("leaveTimeout")||"0,0").split(",").map(e=>parseInt(e))}};TC.targets=["menu","button"],TC.values={open:Boolean};var wq=class extends er{connect(){this.toggleClass=this.data.get("class")||"hidden",this.backgroundId=this.data.get("backgroundId")||"modal-background",this.backgroundHtml=this.data.get("backgroundHtml")||this._backgroundHTML(),this.allowBackgroundClose=(this.data.get("allowBackgroundClose")||"true")==="true",this.preventDefaultActionOpening=(this.data.get("preventDefaultActionOpening")||"true")==="true",this.preventDefaultActionClosing=(this.data.get("preventDefaultActionClosing")||"true")==="true"}disconnect(){this.close()}open(e){this.preventDefaultActionOpening&&e.preventDefault(),e.target.blur&&e.target.blur(),this.lockScroll(),this.containerTarget.classList.remove(this.toggleClass),this.data.get("disable-backdrop")||(document.body.insertAdjacentHTML("beforeend",this.backgroundHtml),this.background=document.querySelector(`#${this.backgroundId}`))}close(e){e&&this.preventDefaultActionClosing&&e.preventDefault(),this.unlockScroll(),this.containerTarget.classList.add(this.toggleClass),this.background&&this.background.remove()}closeBackground(e){this.allowBackgroundClose&&e.target===this.containerTarget&&this.close(e)}closeWithKeyboard(e){e.keyCode!==27||this.containerTarget.classList.contains(this.toggleClass)||this.close(e)}_backgroundHTML(){return`<div id="${this.backgroundId}" class="fixed top-0 left-0 w-full h-full" style="background-color: ${this.backdropColorValue}; z-index: 9998;"></div>`}lockScroll(){let e=window.innerWidth-document.documentElement.clientWidth;document.body.style.paddingRight=`${e}px`,this.saveScrollPosition(),document.body.classList.add("fixed","inset-x-0","overflow-hidden"),document.body.style.top=`-${this.scrollPosition}px`}unlockScroll(){document.body.style.paddingRight=null,document.body.classList.remove("fixed","inset-x-0","overflow-hidden"),this.restoreScrollValue&&this.restoreScrollPosition(),document.body.style.top=null}saveScrollPosition(){this.scrollPosition=window.pageYOffset||document.body.scrollTop}restoreScrollPosition(){this.scrollPosition!==void 0&&(document.documentElement.scrollTop=this.scrollPosition)}};wq.targets=["container"],wq.values={backdropColor:{type:String,default:"rgba(0, 0, 0, 0.8)"},restoreScroll:{type:Boolean,default:!0}};var Z7=class extends er{connect(){this.activeTabClasses=(this.data.get("activeTab")||"active").split(" "),this.inactiveTabClasses=(this.data.get("inactiveTab")||"inactive").split(" "),this.anchor&&(this.index=this.tabTargets.findIndex(e=>e.id===this.anchor)),this.showTab()}change(e){e.preventDefault(),this.index=e.currentTarget.dataset.index?e.currentTarget.dataset.index:e.currentTarget.dataset.id?this.tabTargets.findIndex(t=>t.id==e.currentTarget.dataset.id):this.tabTargets.indexOf(e.currentTarget),window.dispatchEvent(new CustomEvent("tsc:tab-change"))}showTab(){this.tabTargets.forEach((e,t)=>{let n=this.panelTargets[t];t===this.index?(n.classList.remove("hidden"),e.classList.remove(...this.inactiveTabClasses),e.classList.add(...this.activeTabClasses),e.id&&(location.hash=e.id)):(n.classList.add("hidden"),e.classList.remove(...this.activeTabClasses),e.classList.add(...this.inactiveTabClasses))})}get index(){return parseInt(this.data.get("index")||0)}set index(e){this.data.set("index",e>=0?e:0),this.showTab()}get anchor(){return document.URL.split("#").length>1?document.URL.split("#")[1]:null}};Z7.targets=["tab","panel"];var Sq=class extends er{connect(){this.toggleClass=this.data.get("class")||"hidden"}toggle(e){e.preventDefault(),this.openValue=!this.openValue}hide(e){e.preventDefault(),this.openValue=!1}show(e){e.preventDefault(),this.openValue=!0}openValueChanged(){this.toggleClass&&this.toggleableTargets.forEach(e=>{e.classList.toggle(this.toggleClass)})}};Sq.targets=["toggleable"],Sq.values={open:Boolean};var kC=class extends er{initialize(){this.contentTarget.setAttribute("style",`transform:translate(${this.data.get("translateX")}, ${this.data.get("translateY")});`)}mouseOver(){this.contentTarget.classList.remove("hidden")}mouseOut(){this.contentTarget.classList.add("hidden")}toggle(){this.contentTarget.classList.contains("hidden")?this.contentTarget.classList.remove("hidden"):this.contentTarget.classList.add("hidden")}};kC.targets=["content"];var X7=class extends TC{_show(){this.overlayTarget.classList.remove(this.toggleClass),super._show((()=>{this._activeClassList[1].forEach(e=>this.overlayTarget.classList.add(e)),this._invisibleClassList[1].forEach(e=>this.overlayTarget.classList.remove(e)),this._visibleClassList[1].forEach(e=>this.overlayTarget.classList.add(e)),setTimeout((()=>{this._enteringClassList[1].forEach(e=>this.overlayTarget.classList.remove(e))}).bind(this),this.enterTimeout[1])}).bind(this))}_hide(){this._leavingClassList[1].forEach(e=>this.overlayTarget.classList.add(e)),super._hide((()=>{setTimeout((()=>{this._visibleClassList[1].forEach(e=>this.overlayTarget.classList.remove(e)),this._invisibleClassList[1].forEach(e=>this.overlayTarget.classList.add(e)),this._activeClassList[1].forEach(e=>this.overlayTarget.classList.remove(e)),this._leavingClassList[1].forEach(e=>this.overlayTarget.classList.remove(e)),this.overlayTarget.classList.add(this.toggleClass)}).bind(this),this.leaveTimeout[1])}).bind(this))}};X7.targets=["menu","overlay"];var J7=class extends er{connect(){this.styleProperty=this.data.get("style")||"backgroundColor"}update(){this.preview=this.color}set preview(e){this.previewTarget.style[this.styleProperty]=e;let t=this._getContrastYIQ(e);this.styleProperty==="color"?this.previewTarget.style.backgroundColor=t:this.previewTarget.style.color=t}get color(){return this.colorTarget.value}_getContrastYIQ(e){return e=e.replace("#",""),(299*parseInt(e.substr(0,2),16)+587*parseInt(e.substr(2,2),16)+114*parseInt(e.substr(4,2),16))/1e3>=128?"#000":"#fff"}};J7.targets=["preview","color"];var Q7=class extends er{connect(){this.hasButtonTarget&&(this.originalContent=this.buttonTarget.innerHTML)}copy(e){e.preventDefault();let t=this.sourceTarget.innerHTML||this.sourceTarget.value;navigator.clipboard.writeText(t).then(()=>this.copied())}copied(){this.hasButtonTarget&&(this.timeout&&clearTimeout(this.timeout),this.buttonTarget.innerHTML=this.successContentValue,this.timeout=setTimeout(()=>{this.buttonTarget.innerHTML=this.originalContent},this.successDurationValue))}};Q7.targets=["button","source"],Q7.values={successContent:String,successDuration:{type:Number,default:2e3}};var UCe=Q7;var eK=class extends er{connect(){this.hidden=this.inputTarget.type==="password",this.class=this.hasHiddenClass?this.hiddenClass:"hidden"}toggle(e){e.preventDefault(),this.inputTarget.type=this.hidden?"text":"password",this.hidden=!this.hidden,this.iconTargets.forEach(t=>t.classList.toggle(this.class))}};eK.targets=["input","icon"],eK.classes=["hidden"];var HCe=eK;var Eq=class extends HCe{toggle(r){this.inputTarget.disabled||super.toggle(r)}};function S3t(r,e){let t;return(...n)=>{let i=this;clearTimeout(t),t=setTimeout(()=>r.apply(i,n),e)}}var AC=class extends er{initialize(){this.autogrow=this.autogrow.bind(this)}connect(){this.element.style.overflow="hidden";let e=this.resizeDebounceDelayValue;this.onResize=e>0?S3t(this.autogrow,e):this.autogrow,this.autogrow(),this.element.addEventListener("input",this.autogrow),window.addEventListener("resize",this.onResize)}disconnect(){window.removeEventListener("resize",this.onResize)}autogrow(){this.element.style.height="auto",this.element.style.height=`${this.element.scrollHeight}px`}};AC.values={resizeDebounceDelay:{type:Number,default:100}};var VCe=11;function E3t(r,e){var t=e.attributes,n,i,o,a,s;if(!(e.nodeType===VCe||r.nodeType===VCe)){for(var u=t.length-1;u>=0;u--)n=t[u],i=n.name,o=n.namespaceURI,a=n.value,o?(i=n.localName||i,s=r.getAttributeNS(o,i),s!==a&&(n.prefix==="xmlns"&&(i=n.name),r.setAttributeNS(o,i,a))):(s=r.getAttribute(i),s!==a&&r.setAttribute(i,a));for(var h=r.attributes,d=h.length-1;d>=0;d--)n=h[d],i=n.name,o=n.namespaceURI,o?(i=n.localName||i,e.hasAttributeNS(o,i)||r.removeAttributeNS(o,i)):e.hasAttribute(i)||r.removeAttribute(i)}}var Tq,T3t="http://www.w3.org/1999/xhtml",vh=typeof document>"u"?void 0:document,k3t=!!vh&&"content"in vh.createElement("template"),A3t=!!vh&&vh.createRange&&"createContextualFragment"in vh.createRange();function C3t(r){var e=vh.createElement("template");return e.innerHTML=r,e.content.childNodes[0]}function O3t(r){Tq||(Tq=vh.createRange(),Tq.selectNode(vh.body));var e=Tq.createContextualFragment(r);return e.childNodes[0]}function D3t(r){var e=vh.createElement("body");return e.innerHTML=r,e.childNodes[0]}function I3t(r){return r=r.trim(),k3t?C3t(r):A3t?O3t(r):D3t(r)}function kq(r,e){var t=r.nodeName,n=e.nodeName,i,o;return t===n?!0:(i=t.charCodeAt(0),o=n.charCodeAt(0),i<=90&&o>=97?t===n.toUpperCase():o<=90&&i>=97?n===t.toUpperCase():!1)}function M3t(r,e){return!e||e===T3t?vh.createElement(r):vh.createElementNS(e,r)}function P3t(r,e){for(var t=r.firstChild;t;){var n=t.nextSibling;e.appendChild(t),t=n}return e}function tK(r,e,t){r[t]!==e[t]&&(r[t]=e[t],r[t]?r.setAttribute(t,""):r.removeAttribute(t))}var WCe={OPTION:function(r,e){var t=r.parentNode;if(t){var n=t.nodeName.toUpperCase();n==="OPTGROUP"&&(t=t.parentNode,n=t&&t.nodeName.toUpperCase()),n==="SELECT"&&!t.hasAttribute("multiple")&&(r.hasAttribute("selected")&&!e.selected&&(r.setAttribute("selected","selected"),r.removeAttribute("selected")),t.selectedIndex=-1)}tK(r,e,"selected")},INPUT:function(r,e){tK(r,e,"checked"),tK(r,e,"disabled"),r.value!==e.value&&(r.value=e.value),e.hasAttribute("value")||r.removeAttribute("value")},TEXTAREA:function(r,e){var t=e.value;r.value!==t&&(r.value=t);var n=r.firstChild;if(n){var i=n.nodeValue;if(i==t||!t&&i==r.placeholder)return;n.nodeValue=t}},SELECT:function(r,e){if(!e.hasAttribute("multiple")){for(var t=-1,n=0,i=r.firstChild,o,a;i;)if(a=i.nodeName&&i.nodeName.toUpperCase(),a==="OPTGROUP")o=i,i=o.firstChild;else{if(a==="OPTION"){if(i.hasAttribute("selected")){t=n;break}n++}i=i.nextSibling,!i&&o&&(i=o.nextSibling,o=null)}r.selectedIndex=t}}},CC=1,$Ce=11,KCe=3,GCe=8;function Rb(){}function L3t(r){if(r)return r.getAttribute&&r.getAttribute("id")||r.id}function R3t(r){return function(t,n,i){if(i||(i={}),typeof n=="string")if(t.nodeName==="#document"||t.nodeName==="HTML"||t.nodeName==="BODY"){var o=n;n=vh.createElement("html"),n.innerHTML=o}else n=I3t(n);else n.nodeType===$Ce&&(n=n.firstElementChild);var a=i.getNodeKey||L3t,s=i.onBeforeNodeAdded||Rb,u=i.onNodeAdded||Rb,h=i.onBeforeElUpdated||Rb,d=i.onElUpdated||Rb,y=i.onBeforeNodeDiscarded||Rb,S=i.onNodeDiscarded||Rb,k=i.onBeforeElChildrenUpdated||Rb,D=i.skipFromChildren||Rb,M=i.addChild||function(ie,fe){return ie.appendChild(fe)},L=i.childrenOnly===!0,N=Object.create(null),z=[];function Z(ie){z.push(ie)}function $(ie,fe){if(ie.nodeType===CC)for(var Pe=ie.firstChild;Pe;){var ve=void 0;fe&&(ve=a(Pe))?Z(ve):(S(Pe),Pe.firstChild&&$(Pe,fe)),Pe=Pe.nextSibling}}function te(ie,fe,Pe){y(ie)!==!1&&(fe&&fe.removeChild(ie),S(ie),$(ie,Pe))}function ue(ie){if(ie.nodeType===CC||ie.nodeType===$Ce)for(var fe=ie.firstChild;fe;){var Pe=a(fe);Pe&&(N[Pe]=fe),ue(fe),fe=fe.nextSibling}}ue(t);function re(ie){u(ie);for(var fe=ie.firstChild;fe;){var Pe=fe.nextSibling,ve=a(fe);if(ve){var se=N[ve];se&&kq(fe,se)?(fe.parentNode.replaceChild(se,fe),de(se,fe)):re(fe)}else re(fe);fe=Pe}}function ce(ie,fe,Pe){for(;fe;){var ve=fe.nextSibling;(Pe=a(fe))?Z(Pe):te(fe,ie,!0),fe=ve}}function de(ie,fe,Pe){var ve=a(fe);ve&&delete N[ve],!(!Pe&&(h(ie,fe)===!1||(r(ie,fe),d(ie),k(ie,fe)===!1)))&&(ie.nodeName!=="TEXTAREA"?Ae(ie,fe):WCe.TEXTAREA(ie,fe))}function Ae(ie,fe){var Pe=D(ie),ve=fe.firstChild,se=ie.firstChild,We,gt,rt,mt,ut;e:for(;ve;){for(mt=ve.nextSibling,We=a(ve);!Pe&&se;){if(rt=se.nextSibling,ve.isSameNode&&ve.isSameNode(se)){ve=mt,se=rt;continue e}gt=a(se);var Mt=se.nodeType,Ut=void 0;if(Mt===ve.nodeType&&(Mt===CC?(We?We!==gt&&((ut=N[We])?rt===ut?Ut=!1:(ie.insertBefore(ut,se),gt?Z(gt):te(se,ie,!0),se=ut):Ut=!1):gt&&(Ut=!1),Ut=Ut!==!1&&kq(se,ve),Ut&&de(se,ve)):(Mt===KCe||Mt==GCe)&&(Ut=!0,se.nodeValue!==ve.nodeValue&&(se.nodeValue=ve.nodeValue))),Ut){ve=mt,se=rt;continue e}gt?Z(gt):te(se,ie,!0),se=rt}if(We&&(ut=N[We])&&kq(ut,ve))M(ie,ut),de(ut,ve);else{var Wt=s(ve);Wt!==!1&&(Wt&&(ve=Wt),ve.actualize&&(ve=ve.actualize(ie.ownerDocument||vh)),M(ie,ve),re(ve))}ve=mt,se=rt}ce(ie,se,gt);var hr=WCe[ie.nodeName];hr&&hr(ie,fe)}var ye=t,j=ye.nodeType,H=n.nodeType;if(!L){if(j===CC)H===CC?kq(t,n)||(S(t),ye=P3t(t,M3t(n.nodeName,n.namespaceURI))):ye=n;else if(j===KCe||j===GCe){if(H===j)return ye.nodeValue!==n.nodeValue&&(ye.nodeValue=n.nodeValue),ye;ye=n}}if(ye===n)S(t);else{if(n.isSameNode&&n.isSameNode(ye))return;if(de(ye,n,L),z)for(var xe=0,Ie=z.length;xe<Ie;xe++){var pe=N[z[xe]];pe&&te(pe,pe.parentNode,!1)}}return!L&&ye!==t&&t.parentNode&&(ye.actualize&&(ye=ye.actualize(t.ownerDocument||vh)),t.parentNode.replaceChild(ye,t)),ye}}var q3t=R3t(E3t);function F3t(){let r={childrenOnly:this.hasAttribute("children-only")};this.targetElements.forEach((e=>{q3t(e,r.childrenOnly?this.templateContent:this.templateElement.innerHTML,r)}))}var N3t=r=>{r.morph=F3t};function nK(r){return r.replace(/(?:[_-])([a-z0-9])/g,((e,t)=>t.toUpperCase()))}function B3t(r){return r.charAt(0).toUpperCase()+r.slice(1)}function z3t(r){return r.replace(/([A-Z])/g,((e,t)=>`-${t.toLowerCase()}`))}function Aq(r){return r?r.match(/[^\s]+/g)||[]:[]}function iK(r){try{return JSON.parse(r)}catch{return r}}var j3t=Object.freeze({__proto__:null,camelize:nK,capitalize:B3t,dasherize:z3t,tokenize:Aq,typecast:iK});function ZCe(){let r=Aq(this.getAttribute("classes"));r.length>0?this.targetElements.forEach((e=>e.classList.add(...r))):console.warn('[TurboPower] no "classes" provided for Turbo Streams operation "add_css_class"')}function XCe(){let r=this.getAttribute("attribute");r?this.targetElements.forEach((e=>e.removeAttribute(r))):console.warn('[TurboPower] no "attribute" provided for Turbo Streams operation "remove_attribute"')}function JCe(){let r=Aq(this.getAttribute("classes"));r.length>0?this.targetElements.forEach((e=>e.classList.remove(...r))):console.warn('[TurboPower] no "classes" provided for Turbo Streams operation "remove_css_class"')}function QCe(){let r=this.getAttribute("attribute"),e=this.getAttribute("value")||"";r?this.targetElements.forEach((t=>t.setAttribute(r,e))):console.warn('[TurboPower] no "attribute" provided for Turbo Streams operation "set_attribute"')}function eOe(){let r=this.getAttribute("attribute"),e=this.getAttribute("value")||"";r?this.targetElements.forEach((t=>t.dataset[nK(r)]=e)):console.warn('[TurboPower] no "attribute" provided for Turbo Streams operation "set_dataset_attribute"')}function tOe(){let r=this.getAttribute("name"),e=iK(this.getAttribute("value")||"");r?this.targetElements.forEach((t=>t[r]=e)):console.error('[TurboPower] no "name" provided for Turbo Streams operation "set_property"')}function rOe(){let r=this.getAttribute("name"),e=this.getAttribute("value")||"";r?this.targetElements.forEach((t=>t.style[r]=e)):console.error('[TurboPower] no "name" provided for Turbo Streams operation "set_style"')}function nOe(){let r=this.getAttribute("styles")||"";this.targetElements.forEach((e=>e.setAttribute("style",r)))}function iOe(){let r=this.getAttribute("value")||"";this.targetElements.forEach((e=>e.value=r))}function oOe(){let r=Aq(this.getAttribute("classes"));r.length>0?this.targetElements.forEach((e=>{r.forEach((t=>e.classList.toggle(t)))})):console.warn('[TurboPower] no "classes" provided for Turbo Streams operation "toggle_css_class"')}function aOe(){let r=this.getAttribute("from")||"",e=this.getAttribute("to")||"";r&&e?this.targetElements.forEach((t=>{t.classList.replace(r,e)||console.warn(`[TurboPower] The "${r}" CSS class provided in the "from" attribute for the "replace_css_class" action was not found on the target element. No replacements made.`,t)})):console.warn('[TurboPower] no "from" or "to" class provided for Turbo Streams operation "replace_css_class"')}function sOe(r){r.add_css_class=ZCe,r.remove_css_class=JCe,r.remove_attribute=XCe,r.set_attribute=QCe,r.set_dataset_attribute=eOe,r.set_property=tOe,r.set_style=rOe,r.set_styles=nOe,r.set_value=iOe,r.toggle_css_class=oOe,r.replace_css_class=aOe}function lOe(){window.location.reload()}function uOe(){let r=this.getAttribute("align-to-top"),e=this.getAttribute("block"),t=this.getAttribute("inline"),n=this.getAttribute("behavior");if(r)this.targetElements.forEach((i=>i.scrollIntoView(r==="true")));else if(e||t||n){let i={};e&&(i.block=e),t&&(i.inline=t),n&&(i.behavior=n),this.targetElements.forEach((o=>o.scrollIntoView(i)))}else this.targetElements.forEach((i=>i.scrollIntoView()))}function cOe(){this.targetElements.forEach((r=>r.focus()))}function fOe(){let r=this.getAttribute("title")||"",e=document.head.querySelector("title");e||(e=document.createElement("title"),document.head.appendChild(e)),e.textContent=r}function hOe(r){r.reload=lOe,r.scroll_into_view=uOe,r.set_focus=cOe,r.set_title=fOe}function dOe(){let r=this.getAttribute("message"),e=this.getAttribute("level")||"log";console[e](r)}function pOe(){let r=JSON.parse(this.getAttribute("data")||"[]"),e=JSON.parse(this.getAttribute("columns")||"[]");console.table(r,e)}function mOe(r){r.console_log=dOe,r.console_table=pOe}function gOe(){console.warn("[TurboPower] The `invoke` Turbo Stream Action was removed from TurboPower. If you'd like to continue using this action please use the successor library instead. Read more here: https://github.com/hopsoft/turbo_boost-streams")}function vOe(r){r.invoke||(r.invoke=gOe)}var rK=class{constructor(e){this.ATTRIBUTE_TO_COOKIE_KEY_MAPPING=[["domain","Domain",!1],["path","Path",!1],["expires","Expires",!1],["max-age","Max-Age",!1],["http-only","HttpOnly",!0],["secure","Secure",!0],["same-site","SameSite",!1]],this.streamElement=e}build(){let e=`${this.streamElement.getAttribute("name")}=${this.streamElement.getAttribute("value")}`;return this.ATTRIBUTE_TO_COOKIE_KEY_MAPPING.forEach((([t,n,i])=>{let o=this.streamElement.getAttribute(t);if(o!==null){let a=i?n:`${n}=${o}`;e=`${e}; ${a}`}})),e}};function yOe(){let r=this.getAttribute("cookie")||"";document.cookie=r}function bOe(){let r=new rK(this);document.cookie=r.build()}function xOe(r){r.set_cookie=yOe,r.set_cookie_item=bOe}function _Oe(){let r=this.getAttribute("parent");if(r){let e=document.querySelector(r);e?this.targetElements.forEach((t=>e.appendChild(t))):console.error(`[TurboPower] couldn't find parent element using selector "${r}" for Turbo Streams operation "graft"`)}else console.error('[TurboPower] no "parent" selector provided for Turbo Streams operation "graft"')}function wOe(){let r=this.templateContent.textContent||"";this.targetElements.forEach((e=>e.innerHTML=r))}function SOe(){let r=this.getAttribute("position")||"beforebegin",e=this.templateContent.textContent||"";this.targetElements.forEach((t=>t.insertAdjacentHTML(r,e)))}function EOe(){let r=this.getAttribute("position")||"beforebegin",e=this.getAttribute("text")||"";this.targetElements.forEach((t=>t.insertAdjacentText(r,e)))}function TOe(){let r=this.templateContent.textContent||"";this.targetElements.forEach((e=>e.outerHTML=r))}function kOe(){let r=this.getAttribute("name"),e=this.getAttribute("content")||"";if(r){let t=document.head.querySelector(`meta[name='${r}']`);t||(t=document.createElement("meta"),t.name=r,document.head.appendChild(t)),t.content=e}else console.error('[TurboPower] no "name" provided for Turbo Streams operation "set_meta"')}function AOe(){let r=this.getAttribute("text")||"";this.targetElements.forEach((e=>e.textContent=r))}function COe(r){r.graft=_Oe,r.inner_html=wOe,r.insert_adjacent_html=SOe,r.insert_adjacent_text=EOe,r.outer_html=TOe,r.text_content=AOe,r.set_meta=kOe}function OOe(){let r=this.getAttribute("name"),e=null;try{e=this.templateContent.textContent}catch{}try{let t=e?JSON.parse(e):{};if(r){let n={bubbles:!0,cancelable:!0,detail:t},i=new CustomEvent(r,n);this.targetElements.forEach((o=>o.dispatchEvent(i)))}else console.warn('[TurboPower] no "name" provided for Turbo Streams operation "dispatch_event"')}catch(t){console.error(`[TurboPower] error proccessing provided "detail" in "<template>" ("${e}") for Turbo Streams operation "dispatch_event".`,`Error: "${t.message}"`)}}function DOe(r){r.dispatch_event=OOe}function IOe(){this.targetElements.forEach((r=>r.reset()))}function MOe(r){r.reset_form=IOe}function POe(){let r=this.getAttribute("url"),e=this.getAttribute("state"),t=this.getAttribute("title")||"";window.history.pushState(e,t,r)}function LOe(){let r=this.getAttribute("url"),e=this.getAttribute("state"),t=this.getAttribute("title")||"";window.history.replaceState(e,t,r)}function ROe(){window.history.back()}function U3t(){window.history.forward()}function qOe(){let r=Number(this.getAttribute("delta"))||0;window.history.go(r)}function FOe(r){r.push_state=POe,r.replace_state=LOe,r.history_back=ROe,r.history_go=qOe}var H3t=["dir","lang","badge","body","tag","icon","image","data","vibrate","renotify","require-interaction","actions","silent"],YCe=r=>{let e=r.getAttribute("title")||"",t=Array.from(r.attributes).filter((i=>H3t.includes(i.name))).map((i=>[nK(i.name),iK(i.value)])),n=Object.fromEntries(t);new Notification(e,n)};function NOe(){window.Notification?Notification.permission==="granted"?YCe(this):Notification.permission!=="denied"&&Notification.requestPermission().then((r=>{r==="granted"&&YCe(this)})):alert("This browser does not support desktop notification")}function BOe(r){r.notification=NOe}function oK(r){return r==="session"?window.sessionStorage:window.localStorage}function zOe(){let r=this.getAttribute("type");oK(r).clear()}function jOe(){let r=this.getAttribute("key"),e=this.getAttribute("value")||"",t=this.getAttribute("type");r?oK(t).setItem(r,e):console.warn('[TurboPower] no "key" provided for Turbo Streams operation "set_storage_item"')}function UOe(){let r=this.getAttribute("key"),e=this.getAttribute("type");r?oK(e).removeItem(r):console.warn('[TurboPower] no "key" provided for Turbo Streams operation "remove_storage_item"')}function HOe(r){r.clear_storage=zOe,r.set_storage_item=jOe,r.remove_storage_item=UOe}var V3t={get location(){return window.TurboPowerLocation||window.location}};function VOe(){let r=this.getAttribute("url")||"/",e=this.getAttribute("turbo-action")||"advance",t=this.getAttribute("turbo-frame"),n=this.getAttribute("turbo")!=="false",i={action:e};t&&(i.frame=t),n&&window.Turbo?window.Turbo.visit(r,i):V3t.location.assign(r)}function WOe(){window.Turbo.cache.clear()}function $Oe(r){r.redirect_to=VOe,r.turbo_clear_cache=WOe}function KOe(){let r=this.getAttribute("value")||0;window.Turbo.navigator.adapter.progressBar.setValue(Number(r))}function GOe(){window.Turbo.navigator.adapter.progressBar.show()}function YOe(){window.Turbo.navigator.adapter.progressBar.hide()}function ZOe(r){r.turbo_progress_bar_set_value=KOe,r.turbo_progress_bar_show=GOe,r.turbo_progress_bar_hide=YOe}function XOe(){this.targetElements.forEach((r=>r.reload()))}function JOe(){let r=this.getAttribute("src");this.targetElements.forEach((e=>e.src=r))}function QOe(r){r.turbo_frame_reload=XOe,r.turbo_frame_set_src=JOe}function eDe(r){sOe(r),hOe(r),mOe(r),vOe(r),xOe(r),COe(r),DOe(r),MOe(r),FOe(r),BOe(r),HOe(r),$Oe(r),ZOe(r),QOe(r)}var W3t=Object.freeze({__proto__:null,add_css_class:ZCe,clear_storage:zOe,console_log:dOe,console_table:pOe,dispatch_event:OOe,graft:_Oe,history_back:ROe,history_forward:U3t,history_go:qOe,inner_html:wOe,insert_adjacent_html:SOe,insert_adjacent_text:EOe,invoke:gOe,notification:NOe,outer_html:TOe,push_state:POe,redirect_to:VOe,register:eDe,registerAttributesActions:sOe,registerBrowserActions:hOe,registerDOMActions:COe,registerDebugActions:mOe,registerDeprecatedActions:vOe,registerDocumentActions:xOe,registerEventsActions:DOe,registerFormActions:MOe,registerHistoryActions:FOe,registerNotificationActions:BOe,registerStorageActions:HOe,registerTurboActions:$Oe,registerTurboFrameActions:QOe,registerTurboProgressBarActions:ZOe,reload:lOe,remove_attribute:XCe,remove_css_class:JCe,remove_storage_item:UOe,replace_css_class:aOe,replace_state:LOe,reset_form:IOe,scroll_into_view:uOe,set_attribute:QCe,set_cookie:yOe,set_cookie_item:bOe,set_dataset_attribute:eOe,set_focus:cOe,set_meta:kOe,set_property:tOe,set_storage_item:jOe,set_style:rOe,set_styles:nOe,set_title:fOe,set_value:iOe,text_content:AOe,toggle_css_class:oOe,turbo_clear_cache:WOe,turbo_frame_reload:XOe,turbo_frame_set_src:JOe,turbo_progress_bar_hide:YOe,turbo_progress_bar_set_value:KOe,turbo_progress_bar_show:GOe});function $3t(r){N3t(r),eDe(r)}function K3t(r,e,t){t[r]=e}var tDe={initialize:$3t,register:K3t,Actions:W3t,Utils:j3t};tDe.initialize(window.Turbo.StreamActions);var hn=xq.start();hn.debug=window?.localStorage.getItem("avo.debug");window.Stimulus=hn;window.FakeStimulus={Controller:er};hn.register("alert",wS);hn.register("popover",kC);hn.register("clipboard",UCe);hn.register("password-visibility",Eq);hn.register("textarea-autogrow",AC);var Cq=class extends er{static targets=["resourceIds","form","selectedAll","indexQuery"];static values={confirmation:Boolean,resourceName:String};connect(){this.resourceIdsTarget.value===""&&(this.resourceIdsTarget.value=this.resourceIds),this.selectedAllTarget.value=this.selectionOptions.itemSelectAllSelectedAllValue,this.selectionOptions.itemSelectAllSelectedAllQueryValue&&(this.indexQueryTarget.value=this.selectionOptions.itemSelectAllSelectedAllQueryValue),this.confirmationValue?this.element.classList.remove("hidden"):this.formTarget.requestSubmit()}get resourceIds(){try{return JSON.parse(this.selectionOptions.selectedResources)}catch{return[]}}get selectionOptions(){try{return document.querySelector(`[data-selected-resources-name="${this.resourceNameValue}"]`).dataset}catch{return[]}}};var Oq=class extends er{static targets=["content"];static values={panelList:Boolean};get parentTarget(){return document.querySelector('[data-component-name="avo/view_types/table_component"]')||document.querySelector('[data-component-name="avo/view_types/grid_component"]')||document.querySelector("#main-content")}get visibleParentDimensions(){let r=this.parentTarget;if(!r)return{top:0,left:0,right:window.innerWidth,bottom:window.innerHeight};let e=r.getBoundingClientRect();return{top:e.top,left:e.left,right:e.right,bottom:Math.min(e.bottom,window.innerHeight)}}get isRTL(){return document.documentElement.dir==="rtl"}childDimensions=null;parentDimensions=null;connect(){this.element.style.display="block",this.childDimensions=this.contentTarget.getBoundingClientRect(),this.element.style.display="",this.parentDimensions=this.visibleParentDimensions,this.adjustOverflow()}adjustOverflow(){this.adjustVerticalOverflow(),this.adjustHorizontalOverflow()}adjustVerticalOverflow(){this.contentBottomOverflow&&(this.contentTarget.classList.remove("top-full","mt-2"),this.contentTarget.classList.add("bottom-full","mb-2"))}adjustHorizontalOverflow(){this.isRTL?this.contentRightOverflow&&(this.contentTarget.classList.remove("xl:start-0","sm:start-0"),this.contentTarget.classList.add("xl:end-0","sm:end-0")):this.contentLeftOverflow&&(this.contentTarget.classList.remove("xl:end-0","sm:end-0"),this.contentTarget.classList.add("xl:start-0","sm:start-0"))}get contentBottomOverflow(){return this.panelListValue===!0?!1:this.parentDimensions.bottom<this.childDimensions.bottom}get contentLeftOverflow(){return this.parentDimensions.left>this.childDimensions.left}get contentRightOverflow(){return this.parentDimensions.right<this.childDimensions.right}};var Dq=class extends er{static targets=["resourceAction","standaloneAction"];static classes=["enabled","disabled"];target={};get targetIsDisabled(){return this.target.dataset.disabled==="true"}get actionsShowTurboFrame(){return document.querySelector(`turbo-frame#${window.Avo.configuration.modal_frame_id}`)}enableTarget(){this.targetIsDisabled&&(this.target.classList.remove(...this.disabledClasses),this.target.classList.add(...this.enabledClasses),this.target.dataset.disabled=!1)}disableTarget(){this.target.classList.remove(...this.enabledClasses),this.target.classList.add(...this.disabledClasses),this.target.dataset.disabled=!0}visitAction(r){if(this.target=r.target,this.targetIsDisabled){r.preventDefault();return}this.disableTarget();let e=this;setTimeout(()=>{this.actionsShowTurboFrame.loaded.then(()=>e.enableTarget(e.target))},1)}};var Iq=class extends er{static targets=["form"];connect(){this.formTarget.submit()}};var Mq=class extends er{static targets=["select","type","container"];connect(){this.changeType()}changeType(){this.#e(),this.#t(this.selectTarget.value)}#e(){this.containerTarget.innerHTML="",this.containerTarget.classList.add("hidden")}#t(r){let e=this.typeTargets.find(t=>t.dataset.type===r);e&&(this.containerTarget.classList.remove("hidden"),this.containerTarget.appendChild(e.content.cloneNode(!0)))}};var aK=Ao(r_()),yh=class extends er{static targets=["urlRedirect"];static values={keepFiltersPanelOpen:Boolean};PARAM_KEY="encoded_filters";uriParams(){let r=this.urlRedirectTarget.dataset.turboFrame;return(0,aK.default)(r?this.element.closest(`turbo-frame#${r}`)?.src:window.location.toString()).query(!0)}viaResourceName(){return this.uriParams().via_resource_name}uriParam(r){return this.viaResourceName()?`${this.viaResourceName}_${r}`:r}decode(r){return JSON.parse(new TextDecoder().decode(Uint8Array.from(atob(decodeURIComponent(r)),e=>e.codePointAt(0))))}encode(r){return encodeURIComponent(btoa(String.fromCodePoint(...new TextEncoder().encode(JSON.stringify(r)))))}changeFilter(){let r=this.getFilterValue(),e=this.getFilterClass(),t=this.uriParams()[this.uriParam(this.PARAM_KEY)];t?t=this.decode(t):t={},t[e]=r;let n=Object.keys(t).filter(o=>t[o]!==null).reduce((o,a)=>(o[a]=t[a],o),{}),i;n&&Object.keys(n).length>0&&(i=this.encode(n)),this.navigateToURLWithFilters(i)}navigateToURLWithFilters(r){let e=new aK.default(this.urlRedirectTarget.href),t={...e.query(!0)};this.keepFiltersPanelOpenValue&&(t.keep_filters_panel_open=this.keepFiltersPanelOpenValue?1:null),t.page=1,r?t[this.PARAM_KEY]=r:delete t[this.PARAM_KEY],e.query(t),this.urlRedirectTarget.href=e.readable().toString(),this.urlRedirectTarget.click()}};var qq=class extends yh{static targets=["option"];getFilterValue(){let r={};return this.optionTargets.forEach(e=>{r[e.value]=e.checked}),r}getFilterClass(){let{filterClass:r}=this.optionTarget.dataset;return r}};var lDe=Ao(r_()),Fq=class extends er{static targets=["cards"];updateCards(r){this.cardsTargets.forEach(e=>{e.src=new lDe.default(e.src).setQuery("global_range[date]",r.target.dataset.days).toString()})}};var Nq=class extends er{static targets=["input","clearButton"];showClearButton(){this.clearButtonTarget.classList.remove("hidden")}clearInput(){this.inputTarget.value="",this.clearButtonTarget.classList.add("hidden")}};var wDr=Ao(TS()),SDr=Ao(mDe()),EDr=Ao(Bq()),TDr=Ao(OC()),kDr=Ao(zq()),ADr=Ao(ODe()),CDr=Ao(RDe()),ODr=Ao(NDe()),DDr=Ao(cK()),IDr=Ao(HDe()),MDr=Ao($De()),PDr=Ao(hIe()),LDr=Ao(kS()),RDr=Ao(mIe());var gIe=Ao(Oo());var AS=r=>r=="true";var Uq=class extends er{static targets=["element"];get isDark(){return document.documentElement.classList.contains("dark")}get resolvedTheme(){return this.isDark?"monokai":this.elementTarget.dataset.theme||"default"}connect(){let r={readOnly:AS(this.elementTarget.dataset.readOnly),mode:this.elementTarget.dataset.language,theme:this.resolvedTheme,tabSize:this.elementTarget.dataset.tabSize,indentWithTabs:AS(this.elementTarget.dataset.indentWithTabs),lineWrapping:AS(this.elementTarget.dataset.lineWrapping),lineNumbers:!0,extraKeys:{Esc:t=>t.getInputField().blur()}},e=this;setTimeout(()=>{e.cm=gIe.default.fromTextArea(e.elementTarget,r),e.cm.on("change",t=>{e.elementTarget.innerText=t.getValue(),e.elementTarget.dispatchEvent(new Event("input"))})},1),this.observer=new MutationObserver(()=>{e.cm&&e.cm.setOption("theme",e.resolvedTheme)}),this.observer.observe(document.documentElement,{attributes:!0,attributeFilter:["class"]})}disconnect(){this.observer&&this.observer.disconnect(),this.element.querySelector(".CodeMirror").CodeMirror.toTextArea()}};var DC=class{constructor(e){this.response=e}get statusCode(){return this.response.status}get redirected(){return this.response.redirected}get ok(){return this.response.ok}get unauthenticated(){return this.statusCode===401}get unprocessableEntity(){return this.statusCode===422}get authenticationURL(){return this.response.headers.get("WWW-Authenticate")}get contentType(){return(this.response.headers.get("Content-Type")||"").replace(/;.*$/,"")}get headers(){return this.response.headers}get html(){return this.contentType.match(/^(application|text)\/(html|xhtml\+xml)$/)?this.text:Promise.reject(new Error(`Expected an HTML response but got "${this.contentType}" instead`))}get json(){return this.contentType.match(/^application\/.*json$/)?this.responseJson||(this.responseJson=this.response.json()):Promise.reject(new Error(`Expected a JSON response but got "${this.contentType}" instead`))}get text(){return this.responseText||(this.responseText=this.response.text())}get isTurboStream(){return this.contentType.match(/^text\/vnd\.turbo-stream\.html/)}get isScript(){return this.contentType.match(/\b(?:java|ecma)script\b/)}async renderTurboStream(){if(this.isTurboStream)window.Turbo?await window.Turbo.renderStreamMessage(await this.text):console.warn("You must set `window.Turbo = Turbo` to automatically process Turbo Stream events with request.js");else return Promise.reject(new Error(`Expected a Turbo Stream response but got "${this.contentType}" instead`))}async activeScript(){if(this.isScript){let e=document.createElement("script"),t=document.querySelector("meta[name=csp-nonce]"),n=t&&t.content;n&&e.setAttribute("nonce",n),e.innerHTML=await this.text,document.body.appendChild(e)}else return Promise.reject(new Error(`Expected a Script response but got "${this.contentType}" instead`))}};var IC=class{static register(e){this.interceptor=e}static get(){return this.interceptor}static reset(){this.interceptor=void 0}};function vIe(r){let e=document.cookie?document.cookie.split("; "):[],t=`${encodeURIComponent(r)}=`,n=e.find(i=>i.startsWith(t));if(n){let i=n.split("=").slice(1).join("=");if(i)return decodeURIComponent(i)}}function yIe(r){let e={};for(let t in r){let n=r[t];n!==void 0&&(e[t]=n)}return e}function fK(r){let e=document.head.querySelector(`meta[name="${r}"]`);return e&&e.content}function bIe(r){return[...r].reduce((e,[t,n])=>e.concat(typeof n=="string"?[[t,n]]:[]),[])}function xIe(r,e){for(let[t,n]of e)n instanceof window.File||(r.has(t)&&!t.includes("[]")?(r.delete(t),r.set(t,n)):r.append(t,n))}var CS=class{constructor(e,t,n={}){this.method=e,this.options=n,this.originalUrl=t.toString()}async perform(){try{let i=IC.get();i&&await i(this)}catch(i){console.error(i)}let e=this.responseKind==="turbo-stream"&&window.Turbo?window.Turbo.fetch:window.fetch,t=new DC(await e(this.url,this.fetchOptions));return t.unauthenticated&&t.authenticationURL?Promise.reject(window.location.href=t.authenticationURL):(t.isScript&&await t.activeScript(),(t.ok||t.unprocessableEntity)&&t.isTurboStream&&await t.renderTurboStream(),t)}addHeader(e,t){let n=this.additionalHeaders;n[e]=t,this.options.headers=n}sameHostname(){if(!this.originalUrl.startsWith("http:"))return!0;try{return new URL(this.originalUrl).hostname===window.location.hostname}catch{return!0}}get fetchOptions(){return{method:this.method.toUpperCase(),headers:this.headers,body:this.formattedBody,signal:this.signal,credentials:this.credentials,redirect:this.redirect}}get headers(){let e={"X-Requested-With":"XMLHttpRequest","Content-Type":this.contentType,Accept:this.accept};return this.sameHostname()&&(e["X-CSRF-Token"]=this.csrfToken),yIe(Object.assign(e,this.additionalHeaders))}get csrfToken(){return vIe(fK("csrf-param"))||fK("csrf-token")}get contentType(){return this.options.contentType?this.options.contentType:this.body==null||this.body instanceof window.FormData?void 0:this.body instanceof window.File?this.body.type:"application/json"}get accept(){switch(this.responseKind){case"html":return"text/html, application/xhtml+xml";case"turbo-stream":return"text/vnd.turbo-stream.html, text/html, application/xhtml+xml";case"json":return"application/json, application/vnd.api+json";case"script":return"text/javascript, application/javascript";default:return"*/*"}}get body(){return this.options.body}get query(){let e=(this.originalUrl.split("?")[1]||"").split("#")[0],t=new URLSearchParams(e),n=this.options.query;n instanceof window.FormData?n=bIe(n):n instanceof window.URLSearchParams?n=n.entries():n=Object.entries(n||{}),xIe(t,n);let i=t.toString();return i.length>0?`?${i}`:""}get url(){return this.originalUrl.split("?")[0].split("#")[0]+this.query}get responseKind(){return this.options.responseKind||"html"}get signal(){return this.options.signal}get redirect(){return this.options.redirect||"follow"}get credentials(){return this.options.credentials||"same-origin"}get additionalHeaders(){return this.options.headers||{}}get formattedBody(){let e=Object.prototype.toString.call(this.body)==="[object String]";return this.headers["Content-Type"]==="application/json"&&!e?JSON.stringify(this.body):this.body}};async function hK(r,e){return new CS("get",r,e).perform()}async function dK(r,e){return new CS("patch",r,e).perform()}function Hq(r){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var n in t)r[n]=t[n]}return r}var G3t={read:function(r){return r[0]==='"'&&(r=r.slice(1,-1)),r.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(r){return encodeURIComponent(r).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function pK(r,e){function t(i,o,a){if(!(typeof document>"u")){a=Hq({},e,a),typeof a.expires=="number"&&(a.expires=new Date(Date.now()+a.expires*864e5)),a.expires&&(a.expires=a.expires.toUTCString()),i=encodeURIComponent(i).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var s="";for(var u in a)a[u]&&(s+="; "+u,a[u]!==!0&&(s+="="+a[u].split(";")[0]));return document.cookie=i+"="+r.write(o,i)+s}}function n(i){if(!(typeof document>"u"||arguments.length&&!i)){for(var o=document.cookie?document.cookie.split("; "):[],a={},s=0;s<o.length;s++){var u=o[s].split("="),h=u.slice(1).join("=");try{var d=decodeURIComponent(u[0]);if(a[d]=r.read(h,d),i===d)break}catch{}}return i?a[i]:a}}return Object.create({set:t,get:n,remove:function(i,o){t(i,"",Hq({},o,{expires:-1}))},withAttributes:function(i){return pK(this.converter,Hq({},this.attributes,i))},withConverter:function(i){return pK(Hq({},this.converter,i),this.attributes)}},{attributes:{value:Object.freeze(e)},converter:{value:Object.freeze(r)}})}var qb=pK(G3t,{path:"/"});var Vq=class extends er{static targets=["button","accentOption","themeLabel","themeOption"];connect(){this.appearance=window.Avo?.configuration?.appearance||{},this.lockedNeutral=this.appearance.neutralLocked?this.appearance.neutral:null,this.lockedAccent=this.appearance.accentLocked?this.appearance.accent:null,this.lockedScheme=this.appearance.schemeLocked?this.appearance.scheme:null,this.currentSchemeValue=this.readCurrentScheme(),this.currentThemeValue=this.readCurrentNeutral(),this.currentAccentValue=this.readCurrentAccent(),this.updateThemeLabel(),this.updateActiveThemeOption(),this.updateActiveAccentOption(),this.mediaQuery=window.matchMedia("(prefers-color-scheme: dark)"),this.mediaQueryListener=()=>{this.currentSchemeValue==="auto"&&this.applyScheme()},this.mediaQuery.addEventListener("change",this.mediaQueryListener)}readCurrentScheme(){let r=document.documentElement;return r.classList.contains("scheme-dark")?"dark":r.classList.contains("scheme-light")?"light":"auto"}readCurrentNeutral(){let r=Array.from(document.documentElement.classList).find(e=>e.startsWith("neutral-theme-"));return r?r.replace("neutral-theme-",""):"brand"}readCurrentAccent(){let r=Array.from(document.documentElement.classList).find(e=>e.startsWith("accent-theme-"));return r?r.replace("accent-theme-",""):"brand"}disconnect(){this.mediaQuery&&this.mediaQueryListener&&this.mediaQuery.removeEventListener("change",this.mediaQueryListener)}setScheme(r){if(r.preventDefault(),this.lockedScheme)return;let{scheme:e}=r.currentTarget.dataset;!e||!["auto","light","dark"].includes(e)||(this.currentSchemeValue=e,this.persistPreferences("scheme"),this.applyScheme())}setTheme(r){if(r.preventDefault(),this.lockedNeutral)return;let{theme:e}=r.currentTarget.dataset,t=this.appearance.neutrals||[];!e||!t.includes(e)||(this.currentThemeValue=e,this.persistPreferences("theme"),this.applyTheme(),this.updateThemeLabel(),this.updateActiveThemeOption())}previewTheme(r){let{theme:e}=r.currentTarget.dataset;e&&(this.applyThemeClass(e),this.updateActiveThemeOptionFor(e))}revertTheme(){this.applyTheme(),this.updateActiveThemeOption()}setAccent(r){if(r.preventDefault(),this.lockedAccent)return;let{accent:e}=r.currentTarget.dataset,t=this.appearance.accents||[];!e||!t.includes(e)||(this.currentAccentValue=e,this.persistPreferences("accent"),this.applyAccent())}previewAccent(r){let{accent:e}=r.currentTarget.dataset;e&&(this.applyAccentClass(e),this.updateActiveAccentOptionFor(e))}revertAccent(){this.applyAccent(),this.updateActiveAccentOption()}cycleScheme(){this.lockedScheme||(this.currentSchemeValue=this.nextValue(["auto","light","dark"],this.currentSchemeValue),this.persistPreferences("scheme"),this.applyScheme())}cycleNeutral(){if(this.lockedNeutral)return;let r=this.appearance.neutrals||[];r.length!==0&&(this.currentThemeValue=this.nextValue(r,this.currentThemeValue||"brand"),this.persistPreferences("theme"),this.applyTheme(),this.updateThemeLabel(),this.updateActiveThemeOption())}cycleAccent(){if(this.lockedAccent)return;let r=this.appearance.accents||[];r.length!==0&&(this.currentAccentValue=this.nextValue(r,this.currentAccentValue||"brand"),this.persistPreferences("accent"),this.applyAccent(),this.updateActiveAccentOption())}nextValue(r,e){let t=r.indexOf(e);return r[(t+1)%r.length]}persistPreferences(r){if(this.appearance.persistence==="database"){this.patchAppearanceSettings(r);return}this.writePreferenceCookie(r)}writePreferenceCookie(r){switch(r){case"scheme":this.setPreferenceCookie("color_scheme",this.currentSchemeValue,this.appearanceDefaultScheme());break;case"theme":this.setPreferenceCookie("theme",this.currentThemeValue,this.appearanceDefaultNeutral());break;case"accent":this.setPreferenceCookie("accent_color",this.currentAccentValue,this.appearanceDefaultAccent());break;default:break}}appearanceDefaultScheme(){let r=this.appearance.scheme;return r!=null&&r!==""?String(r):"auto"}appearanceDefaultNeutral(){let r=this.appearance.neutral;return r!=null&&r!==""?String(r):"brand"}appearanceDefaultAccent(){let r=this.appearance.accent;return r!=null&&r!==""?String(r):"brand"}setPreferenceCookie(r,e,t){e===t?qb.remove(r):qb.set(r,e)}patchAppearanceSettings(r){let e=this.appearanceSettingsPayload(r);e&&dK(`${window.Avo.configuration.root_path}/appearance_settings`,{responseKind:"json",contentType:"application/json",body:e})}appearanceSettingsPayload(r){switch(r){case"scheme":return{color_scheme:this.currentSchemeValue};case"theme":return{neutral:this.currentThemeValue};case"accent":return{accent:this.currentAccentValue};default:return null}}applyScheme(){let r=this.currentSchemeValue||"auto";document.documentElement.classList.remove("scheme-light","scheme-dark","scheme-auto"),r==="light"?(document.documentElement.classList.add("scheme-light"),document.documentElement.classList.remove("dark")):r==="dark"?(document.documentElement.classList.add("scheme-dark"),document.documentElement.classList.add("dark")):r==="auto"&&(document.documentElement.classList.add("scheme-auto"),window.matchMedia("(prefers-color-scheme: dark)").matches?document.documentElement.classList.add("dark"):document.documentElement.classList.remove("dark"))}applyTheme(){this.applyThemeClass(this.currentThemeValue||"brand")}applyThemeClass(r){let e=document.documentElement;Array.from(e.classList).forEach(t=>{t.startsWith("neutral-theme-")&&e.classList.remove(t)}),r!=="brand"&&e.classList.add(`neutral-theme-${r}`)}updateActiveThemeOption(){this.updateActiveThemeOptionFor(this.currentThemeValue||"brand")}updateActiveThemeOptionFor(r){this.hasThemeOptionTarget&&this.themeOptionTargets.forEach(e=>{let{theme:t}=e.dataset;t&&e.classList.toggle("color-scheme-switcher__theme-option--active",t===r)})}applyAccent(){this.applyAccentClass(this.currentAccentValue||"brand")}applyAccentClass(r){let e=document.documentElement;Array.from(e.classList).forEach(t=>{t.startsWith("accent-theme-")&&e.classList.remove(t)}),r!=="brand"&&e.classList.add(`accent-theme-${r}`)}updateActiveAccentOption(){this.updateActiveAccentOptionFor(this.currentAccentValue||"brand")}updateActiveAccentOptionFor(r){this.hasAccentOptionTarget&&this.accentOptionTargets.forEach(e=>{let{accent:t}=e.dataset;t&&e.classList.toggle("color-scheme-switcher__accent-option--active",t===r)})}updateThemeLabel(){this.updateThemeLabelText(this.currentThemeValue||"brand")}updateThemeLabelText(r){this.hasThemeLabelTarget&&(this.themeLabelTarget.textContent=r.charAt(0).toUpperCase()+r.slice(1))}};var Wq=class extends er{static targets=["option"];navigate(r){if(!["ArrowDown","ArrowUp"].includes(r.key))return;r.preventDefault();let e=this.optionTargets,t=e.indexOf(document.activeElement),n=r.key==="ArrowDown"?(t+1)%e.length:(t-1+e.length)%e.length;e[n]?.focus()}};var $q=class extends er{copy(r){r.preventDefault();let e=this.context.element.dataset.text,t=document.createElement("textarea"),n=t.contentEditable,i=t.readOnly;t.value=e,t.contentEditable=!0,t.readOnly=!1,t.setAttribute("readonly",!1),t.setAttribute("contenteditable",!0),t.style.position="absolute",t.style.left="-9999px",document.body.appendChild(t);let o=document.getSelection().rangeCount>0?document.getSelection().getRangeAt(0):!1;t.select(),t.setSelectionRange(0,999999),document.execCommand("copy"),document.body.removeChild(t),o&&(document.getSelection().removeAllRanges(),document.getSelection().addRange(o)),t.contentEditable=n,t.readOnly=i;let a=this.element,s=a.innerHTML;a.innerHTML="Copied \u{1F44C}",a.classList.add("transition","opacity-80","bg-green-100"),setTimeout(()=>{a.innerHTML=s,a.classList.remove("opacity-80","bg-green-100")},1500)}};var Kq=class extends er{static targets=["card"];interval;get parentTurboFrame(){return this.context.scope.element.closest("turbo-frame")}get refreshInterval(){if(this.cardTarget.dataset.refreshEvery)return parseInt(this.cardTarget.dataset.refreshEvery,10)*1e3}connect(){this.refreshInterval&&(this.interval=setInterval(()=>{this.parentTurboFrame.reload()},this.refreshInterval))}cardTargetDisconnected(){this.interval&&clearInterval(this.interval)}};var Rv=class extends Error{},EK=class extends Rv{constructor(e){super(`Invalid DateTime: ${e.toMessage()}`)}},TK=class extends Rv{constructor(e){super(`Invalid Interval: ${e.toMessage()}`)}},kK=class extends Rv{constructor(e){super(`Invalid Duration: ${e.toMessage()}`)}},Bb=class extends Rv{},tF=class extends Rv{constructor(e){super(`Invalid unit ${e}`)}},Su=class extends Rv{},_g=class extends Rv{constructor(){super("Zone is an abstract class")}},fn="numeric",mm="short",ld="long",rF={year:fn,month:fn,day:fn},XIe={year:fn,month:mm,day:fn},Y3t={year:fn,month:mm,day:fn,weekday:mm},JIe={year:fn,month:ld,day:fn},QIe={year:fn,month:ld,day:fn,weekday:ld},eMe={hour:fn,minute:fn},tMe={hour:fn,minute:fn,second:fn},rMe={hour:fn,minute:fn,second:fn,timeZoneName:mm},nMe={hour:fn,minute:fn,second:fn,timeZoneName:ld},iMe={hour:fn,minute:fn,hourCycle:"h23"},oMe={hour:fn,minute:fn,second:fn,hourCycle:"h23"},aMe={hour:fn,minute:fn,second:fn,hourCycle:"h23",timeZoneName:mm},sMe={hour:fn,minute:fn,second:fn,hourCycle:"h23",timeZoneName:ld},lMe={year:fn,month:fn,day:fn,hour:fn,minute:fn},uMe={year:fn,month:fn,day:fn,hour:fn,minute:fn,second:fn},cMe={year:fn,month:mm,day:fn,hour:fn,minute:fn},fMe={year:fn,month:mm,day:fn,hour:fn,minute:fn,second:fn},Z3t={year:fn,month:mm,day:fn,weekday:mm,hour:fn,minute:fn},hMe={year:fn,month:ld,day:fn,hour:fn,minute:fn,timeZoneName:mm},dMe={year:fn,month:ld,day:fn,hour:fn,minute:fn,second:fn,timeZoneName:mm},pMe={year:fn,month:ld,day:fn,weekday:ld,hour:fn,minute:fn,timeZoneName:ld},mMe={year:fn,month:ld,day:fn,weekday:ld,hour:fn,minute:fn,second:fn,timeZoneName:ld},a_=class{get type(){throw new _g}get name(){throw new _g}get ianaName(){return this.name}get isUniversal(){throw new _g}offsetName(e,t){throw new _g}formatOffset(e,t){throw new _g}offset(e){throw new _g}equals(e){throw new _g}get isValid(){throw new _g}},mK=null,nF=class r extends a_{static get instance(){return mK===null&&(mK=new r),mK}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(e,{format:t,locale:n}){return kMe(e,t,n)}formatOffset(e,t){return qC(this.offset(e),t)}offset(e){return-new Date(e).getTimezoneOffset()}equals(e){return e.type==="system"}get isValid(){return!0}},AK=new Map;function X3t(r){let e=AK.get(r);return e===void 0&&(e=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:r,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"}),AK.set(r,e)),e}var J3t={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function Q3t(r,e){let t=r.format(e).replace(/\u200E/g,""),n=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(t),[,i,o,a,s,u,h,d]=n;return[a,i,o,s,u,h,d]}function ejt(r,e){let t=r.formatToParts(e),n=[];for(let i=0;i<t.length;i++){let{type:o,value:a}=t[i],s=J3t[o];o==="era"?n[s]=a:vi(s)||(n[s]=parseInt(a,10))}return n}var gK=new Map,jb=class r extends a_{static create(e){let t=gK.get(e);return t===void 0&&gK.set(e,t=new r(e)),t}static resetCache(){gK.clear(),AK.clear()}static isValidSpecifier(e){return this.isValidZone(e)}static isValidZone(e){if(!e)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:e}).format(),!0}catch{return!1}}constructor(e){super(),this.zoneName=e,this.valid=r.isValidZone(e)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(e,{format:t,locale:n}){return kMe(e,t,n,this.name)}formatOffset(e,t){return qC(this.offset(e),t)}offset(e){if(!this.valid)return NaN;let t=new Date(e);if(isNaN(t))return NaN;let n=X3t(this.name),[i,o,a,s,u,h,d]=n.formatToParts?ejt(n,t):Q3t(n,t);s==="BC"&&(i=-Math.abs(i)+1);let S=uF({year:i,month:o,day:a,hour:u===24?0:u,minute:h,second:d,millisecond:0}),k=+t,D=k%1e3;return k-=D>=0?D:1e3+D,(S-k)/(60*1e3)}equals(e){return e.type==="iana"&&e.name===this.name}get isValid(){return this.valid}},_Ie={};function tjt(r,e={}){let t=JSON.stringify([r,e]),n=_Ie[t];return n||(n=new Intl.ListFormat(r,e),_Ie[t]=n),n}var CK=new Map;function OK(r,e={}){let t=JSON.stringify([r,e]),n=CK.get(t);return n===void 0&&(n=new Intl.DateTimeFormat(r,e),CK.set(t,n)),n}var DK=new Map;function rjt(r,e={}){let t=JSON.stringify([r,e]),n=DK.get(t);return n===void 0&&(n=new Intl.NumberFormat(r,e),DK.set(t,n)),n}var IK=new Map;function njt(r,e={}){let{base:t,...n}=e,i=JSON.stringify([r,n]),o=IK.get(i);return o===void 0&&(o=new Intl.RelativeTimeFormat(r,e),IK.set(i,o)),o}var PC=null;function ijt(){return PC||(PC=new Intl.DateTimeFormat().resolvedOptions().locale,PC)}var MK=new Map;function gMe(r){let e=MK.get(r);return e===void 0&&(e=new Intl.DateTimeFormat(r).resolvedOptions(),MK.set(r,e)),e}var PK=new Map;function ojt(r){let e=PK.get(r);if(!e){let t=new Intl.Locale(r);e="getWeekInfo"in t?t.getWeekInfo():t.weekInfo,"minimalDays"in e||(e={...vMe,...e}),PK.set(r,e)}return e}function ajt(r){let e=r.indexOf("-x-");e!==-1&&(r=r.substring(0,e));let t=r.indexOf("-u-");if(t===-1)return[r];{let n,i;try{n=OK(r).resolvedOptions(),i=r}catch{let u=r.substring(0,t);n=OK(u).resolvedOptions(),i=u}let{numberingSystem:o,calendar:a}=n;return[i,o,a]}}function sjt(r,e,t){return(t||e)&&(r.includes("-u-")||(r+="-u"),t&&(r+=`-ca-${t}`),e&&(r+=`-nu-${e}`)),r}function ljt(r){let e=[];for(let t=1;t<=12;t++){let n=pa.utc(2009,t,1);e.push(r(n))}return e}function ujt(r){let e=[];for(let t=1;t<=7;t++){let n=pa.utc(2016,11,13+t);e.push(r(n))}return e}function Gq(r,e,t,n){let i=r.listingMode();return i==="error"?null:i==="en"?t(e):n(e)}function cjt(r){return r.numberingSystem&&r.numberingSystem!=="latn"?!1:r.numberingSystem==="latn"||!r.locale||r.locale.startsWith("en")||gMe(r.locale).numberingSystem==="latn"}var LK=class{constructor(e,t,n){this.padTo=n.padTo||0,this.floor=n.floor||!1;let{padTo:i,floor:o,...a}=n;if(!t||Object.keys(a).length>0){let s={useGrouping:!1,...n};n.padTo>0&&(s.minimumIntegerDigits=n.padTo),this.inf=rjt(e,s)}}format(e){if(this.inf){let t=this.floor?Math.floor(e):e;return this.inf.format(t)}else{let t=this.floor?Math.floor(e):$K(e,3);return Rl(t,this.padTo)}}},RK=class{constructor(e,t,n){this.opts=n,this.originalZone=void 0;let i;if(this.opts.timeZone)this.dt=e;else if(e.zone.type==="fixed"){let a=-1*(e.offset/60),s=a>=0?`Etc/GMT+${a}`:`Etc/GMT${a}`;e.offset!==0&&jb.create(s).valid?(i=s,this.dt=e):(i="UTC",this.dt=e.offset===0?e:e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone)}else e.zone.type==="system"?this.dt=e:e.zone.type==="iana"?(this.dt=e,i=e.zone.name):(i="UTC",this.dt=e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone);let o={...this.opts};o.timeZone=o.timeZone||i,this.dtf=OK(t,o)}format(){return this.originalZone?this.formatToParts().map(({value:e})=>e).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){let e=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?e.map(t=>{if(t.type==="timeZoneName"){let n=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...t,value:n}}else return t}):e}resolvedOptions(){return this.dtf.resolvedOptions()}},qK=class{constructor(e,t,n){this.opts={style:"long",...n},!t&&EMe()&&(this.rtf=njt(e,n))}format(e,t){return this.rtf?this.rtf.format(e,t):Ijt(t,e,this.opts.numeric,this.opts.style!=="long")}formatToParts(e,t){return this.rtf?this.rtf.formatToParts(e,t):[]}},vMe={firstDay:1,minimalDays:4,weekend:[6,7]},Ca=class r{static fromOpts(e){return r.create(e.locale,e.numberingSystem,e.outputCalendar,e.weekSettings,e.defaultToEN)}static create(e,t,n,i,o=!1){let a=e||hs.defaultLocale,s=a||(o?"en-US":ijt()),u=t||hs.defaultNumberingSystem,h=n||hs.defaultOutputCalendar,d=BK(i)||hs.defaultWeekSettings;return new r(s,u,h,d,a)}static resetCache(){PC=null,CK.clear(),DK.clear(),IK.clear(),MK.clear(),PK.clear()}static fromObject({locale:e,numberingSystem:t,outputCalendar:n,weekSettings:i}={}){return r.create(e,t,n,i)}constructor(e,t,n,i,o){let[a,s,u]=ajt(e);this.locale=a,this.numberingSystem=t||s||null,this.outputCalendar=n||u||null,this.weekSettings=i,this.intl=sjt(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=o,this.fastNumbersCached=null}get fastNumbers(){return this.fastNumbersCached==null&&(this.fastNumbersCached=cjt(this)),this.fastNumbersCached}listingMode(){let e=this.isEnglish(),t=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return e&&t?"en":"intl"}clone(e){return!e||Object.getOwnPropertyNames(e).length===0?this:r.create(e.locale||this.specifiedLocale,e.numberingSystem||this.numberingSystem,e.outputCalendar||this.outputCalendar,BK(e.weekSettings)||this.weekSettings,e.defaultToEN||!1)}redefaultToEN(e={}){return this.clone({...e,defaultToEN:!0})}redefaultToSystem(e={}){return this.clone({...e,defaultToEN:!1})}months(e,t=!1){return Gq(this,e,OMe,()=>{let n=this.intl==="ja"||this.intl.startsWith("ja-");t&=!n;let i=t?{month:e,day:"numeric"}:{month:e},o=t?"format":"standalone";if(!this.monthsCache[o][e]){let a=n?s=>this.dtFormatter(s,i).format():s=>this.extract(s,i,"month");this.monthsCache[o][e]=ljt(a)}return this.monthsCache[o][e]})}weekdays(e,t=!1){return Gq(this,e,MMe,()=>{let n=t?{weekday:e,year:"numeric",month:"long",day:"numeric"}:{weekday:e},i=t?"format":"standalone";return this.weekdaysCache[i][e]||(this.weekdaysCache[i][e]=ujt(o=>this.extract(o,n,"weekday"))),this.weekdaysCache[i][e]})}meridiems(){return Gq(this,void 0,()=>PMe,()=>{if(!this.meridiemCache){let e={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[pa.utc(2016,11,13,9),pa.utc(2016,11,13,19)].map(t=>this.extract(t,e,"dayperiod"))}return this.meridiemCache})}eras(e){return Gq(this,e,LMe,()=>{let t={era:e};return this.eraCache[e]||(this.eraCache[e]=[pa.utc(-40,1,1),pa.utc(2017,1,1)].map(n=>this.extract(n,t,"era"))),this.eraCache[e]})}extract(e,t,n){let i=this.dtFormatter(e,t),o=i.formatToParts(),a=o.find(s=>s.type.toLowerCase()===n);return a?a.value:null}numberFormatter(e={}){return new LK(this.intl,e.forceSimple||this.fastNumbers,e)}dtFormatter(e,t={}){return new RK(e,this.intl,t)}relFormatter(e={}){return new qK(this.intl,this.isEnglish(),e)}listFormatter(e={}){return tjt(this.intl,e)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||gMe(this.intl).locale.startsWith("en-us")}getWeekSettings(){return this.weekSettings?this.weekSettings:TMe()?ojt(this.locale):vMe}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(e){return this.locale===e.locale&&this.numberingSystem===e.numberingSystem&&this.outputCalendar===e.outputCalendar}toString(){return`Locale(${this.locale}, ${this.numberingSystem}, ${this.outputCalendar})`}},vK=null,up=class r extends a_{static get utcInstance(){return vK===null&&(vK=new r(0)),vK}static instance(e){return e===0?r.utcInstance:new r(e)}static parseSpecifier(e){if(e){let t=e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(t)return new r(cF(t[1],t[2]))}return null}constructor(e){super(),this.fixed=e}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${qC(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${qC(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(e,t){return qC(this.fixed,t)}get isUniversal(){return!0}offset(){return this.fixed}equals(e){return e.type==="fixed"&&e.fixed===this.fixed}get isValid(){return!0}},FK=class extends a_{constructor(e){super(),this.zoneName=e}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}};function Nb(r,e){if(vi(r)||r===null)return e;if(r instanceof a_)return r;if(gjt(r)){let t=r.toLowerCase();return t==="default"?e:t==="local"||t==="system"?nF.instance:t==="utc"||t==="gmt"?up.utcInstance:up.parseSpecifier(t)||jb.create(r)}else return zb(r)?up.instance(r):typeof r=="object"&&"offset"in r&&typeof r.offset=="function"?r:new FK(r)}var UK={arab:"[\u0660-\u0669]",arabext:"[\u06F0-\u06F9]",bali:"[\u1B50-\u1B59]",beng:"[\u09E6-\u09EF]",deva:"[\u0966-\u096F]",fullwide:"[\uFF10-\uFF19]",gujr:"[\u0AE6-\u0AEF]",hanidec:"[\u3007|\u4E00|\u4E8C|\u4E09|\u56DB|\u4E94|\u516D|\u4E03|\u516B|\u4E5D]",khmr:"[\u17E0-\u17E9]",knda:"[\u0CE6-\u0CEF]",laoo:"[\u0ED0-\u0ED9]",limb:"[\u1946-\u194F]",mlym:"[\u0D66-\u0D6F]",mong:"[\u1810-\u1819]",mymr:"[\u1040-\u1049]",orya:"[\u0B66-\u0B6F]",tamldec:"[\u0BE6-\u0BEF]",telu:"[\u0C66-\u0C6F]",thai:"[\u0E50-\u0E59]",tibt:"[\u0F20-\u0F29]",latn:"\\d"},wIe={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},fjt=UK.hanidec.replace(/[\[|\]]/g,"").split("");function hjt(r){let e=parseInt(r,10);if(isNaN(e)){e="";for(let t=0;t<r.length;t++){let n=r.charCodeAt(t);if(r[t].search(UK.hanidec)!==-1)e+=fjt.indexOf(r[t]);else for(let i in wIe){let[o,a]=wIe[i];n>=o&&n<=a&&(e+=n-o)}}return parseInt(e,10)}else return e}var NK=new Map;function djt(){NK.clear()}function dm({numberingSystem:r},e=""){let t=r||"latn",n=NK.get(t);n===void 0&&(n=new Map,NK.set(t,n));let i=n.get(e);return i===void 0&&(i=new RegExp(`${UK[t]}${e}`),n.set(e,i)),i}var SIe=()=>Date.now(),EIe="system",TIe=null,kIe=null,AIe=null,CIe=60,OIe,DIe=null,hs=class{static get now(){return SIe}static set now(e){SIe=e}static set defaultZone(e){EIe=e}static get defaultZone(){return Nb(EIe,nF.instance)}static get defaultLocale(){return TIe}static set defaultLocale(e){TIe=e}static get defaultNumberingSystem(){return kIe}static set defaultNumberingSystem(e){kIe=e}static get defaultOutputCalendar(){return AIe}static set defaultOutputCalendar(e){AIe=e}static get defaultWeekSettings(){return DIe}static set defaultWeekSettings(e){DIe=BK(e)}static get twoDigitCutoffYear(){return CIe}static set twoDigitCutoffYear(e){CIe=e%100}static get throwOnInvalid(){return OIe}static set throwOnInvalid(e){OIe=e}static resetCaches(){Ca.resetCache(),jb.resetCache(),pa.resetCache(),djt()}},sd=class{constructor(e,t){this.reason=e,this.explanation=t}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}},yMe=[0,31,59,90,120,151,181,212,243,273,304,334],bMe=[0,31,60,91,121,152,182,213,244,274,305,335];function sp(r,e){return new sd("unit out of range",`you specified ${e} (of type ${typeof e}) as a ${r}, which is invalid`)}function HK(r,e,t){let n=new Date(Date.UTC(r,e-1,t));r<100&&r>=0&&n.setUTCFullYear(n.getUTCFullYear()-1900);let i=n.getUTCDay();return i===0?7:i}function xMe(r,e,t){return t+(NC(r)?bMe:yMe)[e-1]}function _Me(r,e){let t=NC(r)?bMe:yMe,n=t.findIndex(o=>o<e),i=e-t[n];return{month:n+1,day:i}}function VK(r,e){return(r-e+7)%7+1}function iF(r,e=4,t=1){let{year:n,month:i,day:o}=r,a=xMe(n,i,o),s=VK(HK(n,i,o),t),u=Math.floor((a-s+14-e)/7),h;return u<1?(h=n-1,u=FC(h,e,t)):u>FC(n,e,t)?(h=n+1,u=1):h=n,{weekYear:h,weekNumber:u,weekday:s,...fF(r)}}function IIe(r,e=4,t=1){let{weekYear:n,weekNumber:i,weekday:o}=r,a=VK(HK(n,1,e),t),s=PS(n),u=i*7+o-a-7+e,h;u<1?(h=n-1,u+=PS(h)):u>s?(h=n+1,u-=PS(n)):h=n;let{month:d,day:y}=_Me(h,u);return{year:h,month:d,day:y,...fF(r)}}function yK(r){let{year:e,month:t,day:n}=r,i=xMe(e,t,n);return{year:e,ordinal:i,...fF(r)}}function MIe(r){let{year:e,ordinal:t}=r,{month:n,day:i}=_Me(e,t);return{year:e,month:n,day:i,...fF(r)}}function PIe(r,e){if(!vi(r.localWeekday)||!vi(r.localWeekNumber)||!vi(r.localWeekYear)){if(!vi(r.weekday)||!vi(r.weekNumber)||!vi(r.weekYear))throw new Bb("Cannot mix locale-based week fields with ISO-based week fields");return vi(r.localWeekday)||(r.weekday=r.localWeekday),vi(r.localWeekNumber)||(r.weekNumber=r.localWeekNumber),vi(r.localWeekYear)||(r.weekYear=r.localWeekYear),delete r.localWeekday,delete r.localWeekNumber,delete r.localWeekYear,{minDaysInFirstWeek:e.getMinDaysInFirstWeek(),startOfWeek:e.getStartOfWeek()}}else return{minDaysInFirstWeek:4,startOfWeek:1}}function pjt(r,e=4,t=1){let n=lF(r.weekYear),i=lp(r.weekNumber,1,FC(r.weekYear,e,t)),o=lp(r.weekday,1,7);return n?i?o?!1:sp("weekday",r.weekday):sp("week",r.weekNumber):sp("weekYear",r.weekYear)}function mjt(r){let e=lF(r.year),t=lp(r.ordinal,1,PS(r.year));return e?t?!1:sp("ordinal",r.ordinal):sp("year",r.year)}function wMe(r){let e=lF(r.year),t=lp(r.month,1,12),n=lp(r.day,1,oF(r.year,r.month));return e?t?n?!1:sp("day",r.day):sp("month",r.month):sp("year",r.year)}function SMe(r){let{hour:e,minute:t,second:n,millisecond:i}=r,o=lp(e,0,23)||e===24&&t===0&&n===0&&i===0,a=lp(t,0,59),s=lp(n,0,59),u=lp(i,0,999);return o?a?s?u?!1:sp("millisecond",i):sp("second",n):sp("minute",t):sp("hour",e)}function vi(r){return typeof r>"u"}function zb(r){return typeof r=="number"}function lF(r){return typeof r=="number"&&r%1===0}function gjt(r){return typeof r=="string"}function vjt(r){return Object.prototype.toString.call(r)==="[object Date]"}function EMe(){try{return typeof Intl<"u"&&!!Intl.RelativeTimeFormat}catch{return!1}}function TMe(){try{return typeof Intl<"u"&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch{return!1}}function yjt(r){return Array.isArray(r)?r:[r]}function LIe(r,e,t){if(r.length!==0)return r.reduce((n,i)=>{let o=[e(i),i];return n&&t(n[0],o[0])===n[0]?n:o},null)[1]}function bjt(r,e){return e.reduce((t,n)=>(t[n]=r[n],t),{})}function qS(r,e){return Object.prototype.hasOwnProperty.call(r,e)}function BK(r){if(r==null)return null;if(typeof r!="object")throw new Su("Week settings must be an object");if(!lp(r.firstDay,1,7)||!lp(r.minimalDays,1,7)||!Array.isArray(r.weekend)||r.weekend.some(e=>!lp(e,1,7)))throw new Su("Invalid week settings");return{firstDay:r.firstDay,minimalDays:r.minimalDays,weekend:Array.from(r.weekend)}}function lp(r,e,t){return lF(r)&&r>=e&&r<=t}function xjt(r,e){return r-e*Math.floor(r/e)}function Rl(r,e=2){let t=r<0,n;return t?n="-"+(""+-r).padStart(e,"0"):n=(""+r).padStart(e,"0"),n}function Fb(r){if(!(vi(r)||r===null||r===""))return parseInt(r,10)}function n_(r){if(!(vi(r)||r===null||r===""))return parseFloat(r)}function WK(r){if(!(vi(r)||r===null||r==="")){let e=parseFloat("0."+r)*1e3;return Math.floor(e)}}function $K(r,e,t="round"){let n=10**e;switch(t){case"expand":return r>0?Math.ceil(r*n)/n:Math.floor(r*n)/n;case"trunc":return Math.trunc(r*n)/n;case"round":return Math.round(r*n)/n;case"floor":return Math.floor(r*n)/n;case"ceil":return Math.ceil(r*n)/n;default:throw new RangeError(`Value rounding ${t} is out of range`)}}function NC(r){return r%4===0&&(r%100!==0||r%400===0)}function PS(r){return NC(r)?366:365}function oF(r,e){let t=xjt(e-1,12)+1,n=r+(e-t)/12;return t===2?NC(n)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][t-1]}function uF(r){let e=Date.UTC(r.year,r.month-1,r.day,r.hour,r.minute,r.second,r.millisecond);return r.year<100&&r.year>=0&&(e=new Date(e),e.setUTCFullYear(r.year,r.month-1,r.day)),+e}function RIe(r,e,t){return-VK(HK(r,1,e),t)+e-1}function FC(r,e=4,t=1){let n=RIe(r,e,t),i=RIe(r+1,e,t);return(PS(r)-n+i)/7}function zK(r){return r>99?r:r>hs.twoDigitCutoffYear?1900+r:2e3+r}function kMe(r,e,t,n=null){let i=new Date(r),o={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};n&&(o.timeZone=n);let a={timeZoneName:e,...o},s=new Intl.DateTimeFormat(t,a).formatToParts(i).find(u=>u.type.toLowerCase()==="timezonename");return s?s.value:null}function cF(r,e){let t=parseInt(r,10);Number.isNaN(t)&&(t=0);let n=parseInt(e,10)||0,i=t<0||Object.is(t,-0)?-n:n;return t*60+i}function AMe(r){let e=Number(r);if(typeof r=="boolean"||r===""||!Number.isFinite(e))throw new Su(`Invalid unit value ${r}`);return e}function aF(r,e){let t={};for(let n in r)if(qS(r,n)){let i=r[n];if(i==null)continue;t[e(n)]=AMe(i)}return t}function qC(r,e){let t=Math.trunc(Math.abs(r/60)),n=Math.trunc(Math.abs(r%60)),i=r>=0?"+":"-";switch(e){case"short":return`${i}${Rl(t,2)}:${Rl(n,2)}`;case"narrow":return`${i}${t}${n>0?`:${n}`:""}`;case"techie":return`${i}${Rl(t,2)}${Rl(n,2)}`;default:throw new RangeError(`Value format ${e} is out of range for property format`)}}function fF(r){return bjt(r,["hour","minute","second","millisecond"])}var _jt=["January","February","March","April","May","June","July","August","September","October","November","December"],CMe=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wjt=["J","F","M","A","M","J","J","A","S","O","N","D"];function OMe(r){switch(r){case"narrow":return[...wjt];case"short":return[...CMe];case"long":return[..._jt];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}var DMe=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],IMe=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],Sjt=["M","T","W","T","F","S","S"];function MMe(r){switch(r){case"narrow":return[...Sjt];case"short":return[...IMe];case"long":return[...DMe];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}var PMe=["AM","PM"],Ejt=["Before Christ","Anno Domini"],Tjt=["BC","AD"],kjt=["B","A"];function LMe(r){switch(r){case"narrow":return[...kjt];case"short":return[...Tjt];case"long":return[...Ejt];default:return null}}function Ajt(r){return PMe[r.hour<12?0:1]}function Cjt(r,e){return MMe(e)[r.weekday-1]}function Ojt(r,e){return OMe(e)[r.month-1]}function Djt(r,e){return LMe(e)[r.year<0?0:1]}function Ijt(r,e,t="always",n=!1){let i={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},o=["hours","minutes","seconds"].indexOf(r)===-1;if(t==="auto"&&o){let y=r==="days";switch(e){case 1:return y?"tomorrow":`next ${i[r][0]}`;case-1:return y?"yesterday":`last ${i[r][0]}`;case 0:return y?"today":`this ${i[r][0]}`}}let a=Object.is(e,-0)||e<0,s=Math.abs(e),u=s===1,h=i[r],d=n?u?h[1]:h[2]||h[1]:u?i[r][0]:r;return a?`${s} ${d} ago`:`in ${s} ${d}`}function qIe(r,e){let t="";for(let n of r)n.literal?t+=n.val:t+=e(n.val);return t}var Mjt={D:rF,DD:XIe,DDD:JIe,DDDD:QIe,t:eMe,tt:tMe,ttt:rMe,tttt:nMe,T:iMe,TT:oMe,TTT:aMe,TTTT:sMe,f:lMe,ff:cMe,fff:hMe,ffff:pMe,F:uMe,FF:fMe,FFF:dMe,FFFF:mMe},ad=class r{static create(e,t={}){return new r(e,t)}static parseFormat(e){let t=null,n="",i=!1,o=[];for(let a=0;a<e.length;a++){let s=e.charAt(a);s==="'"?((n.length>0||i)&&o.push({literal:i||/^\s+$/.test(n),val:n===""?"'":n}),t=null,n="",i=!i):i||s===t?n+=s:(n.length>0&&o.push({literal:/^\s+$/.test(n),val:n}),n=s,t=s)}return n.length>0&&o.push({literal:i||/^\s+$/.test(n),val:n}),o}static macroTokenToFormatOpts(e){return Mjt[e]}constructor(e,t){this.opts=t,this.loc=e,this.systemLoc=null}formatWithSystemDefault(e,t){return this.systemLoc===null&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(e,{...this.opts,...t}).format()}dtFormatter(e,t={}){return this.loc.dtFormatter(e,{...this.opts,...t})}formatDateTime(e,t){return this.dtFormatter(e,t).format()}formatDateTimeParts(e,t){return this.dtFormatter(e,t).formatToParts()}formatInterval(e,t){return this.dtFormatter(e.start,t).dtf.formatRange(e.start.toJSDate(),e.end.toJSDate())}resolvedOptions(e,t){return this.dtFormatter(e,t).resolvedOptions()}num(e,t=0,n=void 0){if(this.opts.forceSimple)return Rl(e,t);let i={...this.opts};return t>0&&(i.padTo=t),n&&(i.signDisplay=n),this.loc.numberFormatter(i).format(e)}formatDateTimeFromString(e,t){let n=this.loc.listingMode()==="en",i=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",o=(k,D)=>this.loc.extract(e,k,D),a=k=>e.isOffsetFixed&&e.offset===0&&k.allowZ?"Z":e.isValid?e.zone.formatOffset(e.ts,k.format):"",s=()=>n?Ajt(e):o({hour:"numeric",hourCycle:"h12"},"dayperiod"),u=(k,D)=>n?Ojt(e,k):o(D?{month:k}:{month:k,day:"numeric"},"month"),h=(k,D)=>n?Cjt(e,k):o(D?{weekday:k}:{weekday:k,month:"long",day:"numeric"},"weekday"),d=k=>{let D=r.macroTokenToFormatOpts(k);return D?this.formatWithSystemDefault(e,D):k},y=k=>n?Djt(e,k):o({era:k},"era"),S=k=>{switch(k){case"S":return this.num(e.millisecond);case"u":case"SSS":return this.num(e.millisecond,3);case"s":return this.num(e.second);case"ss":return this.num(e.second,2);case"uu":return this.num(Math.floor(e.millisecond/10),2);case"uuu":return this.num(Math.floor(e.millisecond/100));case"m":return this.num(e.minute);case"mm":return this.num(e.minute,2);case"h":return this.num(e.hour%12===0?12:e.hour%12);case"hh":return this.num(e.hour%12===0?12:e.hour%12,2);case"H":return this.num(e.hour);case"HH":return this.num(e.hour,2);case"Z":return a({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return a({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return a({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return e.zone.offsetName(e.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return e.zone.offsetName(e.ts,{format:"long",locale:this.loc.locale});case"z":return e.zoneName;case"a":return s();case"d":return i?o({day:"numeric"},"day"):this.num(e.day);case"dd":return i?o({day:"2-digit"},"day"):this.num(e.day,2);case"c":return this.num(e.weekday);case"ccc":return h("short",!0);case"cccc":return h("long",!0);case"ccccc":return h("narrow",!0);case"E":return this.num(e.weekday);case"EEE":return h("short",!1);case"EEEE":return h("long",!1);case"EEEEE":return h("narrow",!1);case"L":return i?o({month:"numeric",day:"numeric"},"month"):this.num(e.month);case"LL":return i?o({month:"2-digit",day:"numeric"},"month"):this.num(e.month,2);case"LLL":return u("short",!0);case"LLLL":return u("long",!0);case"LLLLL":return u("narrow",!0);case"M":return i?o({month:"numeric"},"month"):this.num(e.month);case"MM":return i?o({month:"2-digit"},"month"):this.num(e.month,2);case"MMM":return u("short",!1);case"MMMM":return u("long",!1);case"MMMMM":return u("narrow",!1);case"y":return i?o({year:"numeric"},"year"):this.num(e.year);case"yy":return i?o({year:"2-digit"},"year"):this.num(e.year.toString().slice(-2),2);case"yyyy":return i?o({year:"numeric"},"year"):this.num(e.year,4);case"yyyyyy":return i?o({year:"numeric"},"year"):this.num(e.year,6);case"G":return y("short");case"GG":return y("long");case"GGGGG":return y("narrow");case"kk":return this.num(e.weekYear.toString().slice(-2),2);case"kkkk":return this.num(e.weekYear,4);case"W":return this.num(e.weekNumber);case"WW":return this.num(e.weekNumber,2);case"n":return this.num(e.localWeekNumber);case"nn":return this.num(e.localWeekNumber,2);case"ii":return this.num(e.localWeekYear.toString().slice(-2),2);case"iiii":return this.num(e.localWeekYear,4);case"o":return this.num(e.ordinal);case"ooo":return this.num(e.ordinal,3);case"q":return this.num(e.quarter);case"qq":return this.num(e.quarter,2);case"X":return this.num(Math.floor(e.ts/1e3));case"x":return this.num(e.ts);default:return d(k)}};return qIe(r.parseFormat(t),S)}formatDurationFromString(e,t){let n=this.opts.signMode==="negativeLargestOnly"?-1:1,i=d=>{switch(d[0]){case"S":return"milliseconds";case"s":return"seconds";case"m":return"minutes";case"h":return"hours";case"d":return"days";case"w":return"weeks";case"M":return"months";case"y":return"years";default:return null}},o=(d,y)=>S=>{let k=i(S);if(k){let D=y.isNegativeDuration&&k!==y.largestUnit?n:1,M;return this.opts.signMode==="negativeLargestOnly"&&k!==y.largestUnit?M="never":this.opts.signMode==="all"?M="always":M="auto",this.num(d.get(k)*D,S.length,M)}else return S},a=r.parseFormat(t),s=a.reduce((d,{literal:y,val:S})=>y?d:d.concat(S),[]),u=e.shiftTo(...s.map(i).filter(d=>d)),h={isNegativeDuration:u<0,largestUnit:Object.keys(u.values)[0]};return qIe(a,o(u,h))}},RMe=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function FS(...r){let e=r.reduce((t,n)=>t+n.source,"");return RegExp(`^${e}$`)}function NS(...r){return e=>r.reduce(([t,n,i],o)=>{let[a,s,u]=o(e,i);return[{...t,...a},s||n,u]},[{},null,1]).slice(0,2)}function BS(r,...e){if(r==null)return[null,null];for(let[t,n]of e){let i=t.exec(r);if(i)return n(i)}return[null,null]}function qMe(...r){return(e,t)=>{let n={},i;for(i=0;i<r.length;i++)n[r[i]]=Fb(e[t+i]);return[n,null,t+i]}}var FMe=/(?:([Zz])|([+-]\d\d)(?::?(\d\d))?)/,Pjt=`(?:${FMe.source}?(?:\\[(${RMe.source})\\])?)?`,KK=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,NMe=RegExp(`${KK.source}${Pjt}`),GK=RegExp(`(?:[Tt]${NMe.source})?`),Ljt=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,Rjt=/(\d{4})-?W(\d\d)(?:-?(\d))?/,qjt=/(\d{4})-?(\d{3})/,Fjt=qMe("weekYear","weekNumber","weekDay"),Njt=qMe("year","ordinal"),Bjt=/(\d{4})-(\d\d)-(\d\d)/,BMe=RegExp(`${KK.source} ?(?:${FMe.source}|(${RMe.source}))?`),zjt=RegExp(`(?: ${BMe.source})?`);function LS(r,e,t){let n=r[e];return vi(n)?t:Fb(n)}function jjt(r,e){return[{year:LS(r,e),month:LS(r,e+1,1),day:LS(r,e+2,1)},null,e+3]}function zS(r,e){return[{hours:LS(r,e,0),minutes:LS(r,e+1,0),seconds:LS(r,e+2,0),milliseconds:WK(r[e+3])},null,e+4]}function BC(r,e){let t=!r[e]&&!r[e+1],n=cF(r[e+1],r[e+2]),i=t?null:up.instance(n);return[{},i,e+3]}function zC(r,e){let t=r[e]?jb.create(r[e]):null;return[{},t,e+1]}var Ujt=RegExp(`^T?${KK.source}$`),Hjt=/^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;function Vjt(r){let[e,t,n,i,o,a,s,u,h]=r,d=e[0]==="-",y=u&&u[0]==="-",S=(k,D=!1)=>k!==void 0&&(D||k&&d)?-k:k;return[{years:S(n_(t)),months:S(n_(n)),weeks:S(n_(i)),days:S(n_(o)),hours:S(n_(a)),minutes:S(n_(s)),seconds:S(n_(u),u==="-0"),milliseconds:S(WK(h),y)}]}var Wjt={GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function YK(r,e,t,n,i,o,a){let s={year:e.length===2?zK(Fb(e)):Fb(e),month:CMe.indexOf(t)+1,day:Fb(n),hour:Fb(i),minute:Fb(o)};return a&&(s.second=Fb(a)),r&&(s.weekday=r.length>3?DMe.indexOf(r)+1:IMe.indexOf(r)+1),s}var $jt=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function Kjt(r){let[,e,t,n,i,o,a,s,u,h,d,y]=r,S=YK(e,i,n,t,o,a,s),k;return u?k=Wjt[u]:h?k=0:k=cF(d,y),[S,new up(k)]}function Gjt(r){return r.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}var Yjt=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,Zjt=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,Xjt=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function FIe(r){let[,e,t,n,i,o,a,s]=r;return[YK(e,i,n,t,o,a,s),up.utcInstance]}function Jjt(r){let[,e,t,n,i,o,a,s]=r;return[YK(e,s,t,n,i,o,a),up.utcInstance]}var Qjt=FS(Ljt,GK),e5t=FS(Rjt,GK),t5t=FS(qjt,GK),r5t=FS(NMe),zMe=NS(jjt,zS,BC,zC),n5t=NS(Fjt,zS,BC,zC),i5t=NS(Njt,zS,BC,zC),o5t=NS(zS,BC,zC);function a5t(r){return BS(r,[Qjt,zMe],[e5t,n5t],[t5t,i5t],[r5t,o5t])}function s5t(r){return BS(Gjt(r),[$jt,Kjt])}function l5t(r){return BS(r,[Yjt,FIe],[Zjt,FIe],[Xjt,Jjt])}function u5t(r){return BS(r,[Hjt,Vjt])}var c5t=NS(zS);function f5t(r){return BS(r,[Ujt,c5t])}var h5t=FS(Bjt,zjt),d5t=FS(BMe),p5t=NS(zS,BC,zC);function m5t(r){return BS(r,[h5t,zMe],[d5t,p5t])}var NIe="Invalid Duration",jMe={weeks:{days:7,hours:168,minutes:10080,seconds:10080*60,milliseconds:10080*60*1e3},days:{hours:24,minutes:1440,seconds:1440*60,milliseconds:1440*60*1e3},hours:{minutes:60,seconds:3600,milliseconds:3600*1e3},minutes:{seconds:60,milliseconds:60*1e3},seconds:{milliseconds:1e3}},g5t={years:{quarters:4,months:12,weeks:52,days:365,hours:365*24,minutes:365*24*60,seconds:365*24*60*60,milliseconds:365*24*60*60*1e3},quarters:{months:3,weeks:13,days:91,hours:2184,minutes:2184*60,seconds:2184*60*60,milliseconds:2184*60*60*1e3},months:{weeks:4,days:30,hours:720,minutes:720*60,seconds:720*60*60,milliseconds:720*60*60*1e3},...jMe},ap=146097/400,OS=146097/4800,v5t={years:{quarters:4,months:12,weeks:ap/7,days:ap,hours:ap*24,minutes:ap*24*60,seconds:ap*24*60*60,milliseconds:ap*24*60*60*1e3},quarters:{months:3,weeks:ap/28,days:ap/4,hours:ap*24/4,minutes:ap*24*60/4,seconds:ap*24*60*60/4,milliseconds:ap*24*60*60*1e3/4},months:{weeks:OS/7,days:OS,hours:OS*24,minutes:OS*24*60,seconds:OS*24*60*60,milliseconds:OS*24*60*60*1e3},...jMe},o_=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],y5t=o_.slice(0).reverse();function Lv(r,e,t=!1){let n={values:t?e.values:{...r.values,...e.values||{}},loc:r.loc.clone(e.loc),conversionAccuracy:e.conversionAccuracy||r.conversionAccuracy,matrix:e.matrix||r.matrix};return new Eu(n)}function UMe(r,e){let t=e.milliseconds??0;for(let n of y5t.slice(1))e[n]&&(t+=e[n]*r[n].milliseconds);return t}function BIe(r,e){let t=UMe(r,e)<0?-1:1;o_.reduceRight((n,i)=>{if(vi(e[i]))return n;if(n){let o=e[n]*t,a=r[i][n],s=Math.floor(o/a);e[i]+=s*t,e[n]-=s*a*t}return i},null),o_.reduce((n,i)=>{if(vi(e[i]))return n;if(n){let o=e[n]%1;e[n]-=o,e[i]+=o*r[n][i]}return i},null)}function zIe(r){let e={};for(let[t,n]of Object.entries(r))n!==0&&(e[t]=n);return e}var Eu=class r{constructor(e){let t=e.conversionAccuracy==="longterm"||!1,n=t?v5t:g5t;e.matrix&&(n=e.matrix),this.values=e.values,this.loc=e.loc||Ca.create(),this.conversionAccuracy=t?"longterm":"casual",this.invalid=e.invalid||null,this.matrix=n,this.isLuxonDuration=!0}static fromMillis(e,t){return r.fromObject({milliseconds:e},t)}static fromObject(e,t={}){if(e==null||typeof e!="object")throw new Su(`Duration.fromObject: argument expected to be an object, got ${e===null?"null":typeof e}`);return new r({values:aF(e,r.normalizeUnit),loc:Ca.fromObject(t),conversionAccuracy:t.conversionAccuracy,matrix:t.matrix})}static fromDurationLike(e){if(zb(e))return r.fromMillis(e);if(r.isDuration(e))return e;if(typeof e=="object")return r.fromObject(e);throw new Su(`Unknown duration argument ${e} of type ${typeof e}`)}static fromISO(e,t){let[n]=u5t(e);return n?r.fromObject(n,t):r.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static fromISOTime(e,t){let[n]=f5t(e);return n?r.fromObject(n,t):r.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static invalid(e,t=null){if(!e)throw new Su("need to specify a reason the Duration is invalid");let n=e instanceof sd?e:new sd(e,t);if(hs.throwOnInvalid)throw new kK(n);return new r({invalid:n})}static normalizeUnit(e){let t={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[e&&e.toLowerCase()];if(!t)throw new tF(e);return t}static isDuration(e){return e&&e.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(e,t={}){let n={...t,floor:t.round!==!1&&t.floor!==!1};return this.isValid?ad.create(this.loc,n).formatDurationFromString(this,e):NIe}toHuman(e={}){if(!this.isValid)return NIe;let t=e.showZeros!==!1,n=o_.map(i=>{let o=this.values[i];return vi(o)||o===0&&!t?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...e,unit:i.slice(0,-1)}).format(o)}).filter(i=>i);return this.loc.listFormatter({type:"conjunction",style:e.listStyle||"narrow",...e}).format(n)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let e="P";return this.years!==0&&(e+=this.years+"Y"),(this.months!==0||this.quarters!==0)&&(e+=this.months+this.quarters*3+"M"),this.weeks!==0&&(e+=this.weeks+"W"),this.days!==0&&(e+=this.days+"D"),(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)&&(e+="T"),this.hours!==0&&(e+=this.hours+"H"),this.minutes!==0&&(e+=this.minutes+"M"),(this.seconds!==0||this.milliseconds!==0)&&(e+=$K(this.seconds+this.milliseconds/1e3,3)+"S"),e==="P"&&(e+="T0S"),e}toISOTime(e={}){if(!this.isValid)return null;let t=this.toMillis();return t<0||t>=864e5?null:(e={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...e,includeOffset:!1},pa.fromMillis(t,{zone:"UTC"}).toISOTime(e))}toJSON(){return this.toISO()}toString(){return this.toISO()}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Duration { values: ${JSON.stringify(this.values)} }`:`Duration { Invalid, reason: ${this.invalidReason} }`}toMillis(){return this.isValid?UMe(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(e){if(!this.isValid)return this;let t=r.fromDurationLike(e),n={};for(let i of o_)(qS(t.values,i)||qS(this.values,i))&&(n[i]=t.get(i)+this.get(i));return Lv(this,{values:n},!0)}minus(e){if(!this.isValid)return this;let t=r.fromDurationLike(e);return this.plus(t.negate())}mapUnits(e){if(!this.isValid)return this;let t={};for(let n of Object.keys(this.values))t[n]=AMe(e(this.values[n],n));return Lv(this,{values:t},!0)}get(e){return this[r.normalizeUnit(e)]}set(e){if(!this.isValid)return this;let t={...this.values,...aF(e,r.normalizeUnit)};return Lv(this,{values:t})}reconfigure({locale:e,numberingSystem:t,conversionAccuracy:n,matrix:i}={}){let a={loc:this.loc.clone({locale:e,numberingSystem:t}),matrix:i,conversionAccuracy:n};return Lv(this,a)}as(e){return this.isValid?this.shiftTo(e).get(e):NaN}normalize(){if(!this.isValid)return this;let e=this.toObject();return BIe(this.matrix,e),Lv(this,{values:e},!0)}rescale(){if(!this.isValid)return this;let e=zIe(this.normalize().shiftToAll().toObject());return Lv(this,{values:e},!0)}shiftTo(...e){if(!this.isValid)return this;if(e.length===0)return this;e=e.map(a=>r.normalizeUnit(a));let t={},n={},i=this.toObject(),o;for(let a of o_)if(e.indexOf(a)>=0){o=a;let s=0;for(let h in n)s+=this.matrix[h][a]*n[h],n[h]=0;zb(i[a])&&(s+=i[a]);let u=Math.trunc(s);t[a]=u,n[a]=(s*1e3-u*1e3)/1e3}else zb(i[a])&&(n[a]=i[a]);for(let a in n)n[a]!==0&&(t[o]+=a===o?n[a]:n[a]/this.matrix[o][a]);return BIe(this.matrix,t),Lv(this,{values:t},!0)}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;let e={};for(let t of Object.keys(this.values))e[t]=this.values[t]===0?0:-this.values[t];return Lv(this,{values:e},!0)}removeZeros(){if(!this.isValid)return this;let e=zIe(this.values);return Lv(this,{values:e},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(e){if(!this.isValid||!e.isValid||!this.loc.equals(e.loc))return!1;function t(n,i){return n===void 0||n===0?i===void 0||i===0:n===i}for(let n of o_)if(!t(this.values[n],e.values[n]))return!1;return!0}},DS="Invalid Interval";function b5t(r,e){return!r||!r.isValid?RS.invalid("missing or invalid start"):!e||!e.isValid?RS.invalid("missing or invalid end"):e<r?RS.invalid("end before start",`The end of an interval must be after its start, but you had start=${r.toISO()} and end=${e.toISO()}`):null}var RS=class r{constructor(e){this.s=e.start,this.e=e.end,this.invalid=e.invalid||null,this.isLuxonInterval=!0}static invalid(e,t=null){if(!e)throw new Su("need to specify a reason the Interval is invalid");let n=e instanceof sd?e:new sd(e,t);if(hs.throwOnInvalid)throw new TK(n);return new r({invalid:n})}static fromDateTimes(e,t){let n=MC(e),i=MC(t),o=b5t(n,i);return o??new r({start:n,end:i})}static after(e,t){let n=Eu.fromDurationLike(t),i=MC(e);return r.fromDateTimes(i,i.plus(n))}static before(e,t){let n=Eu.fromDurationLike(t),i=MC(e);return r.fromDateTimes(i.minus(n),i)}static fromISO(e,t){let[n,i]=(e||"").split("/",2);if(n&&i){let o,a;try{o=pa.fromISO(n,t),a=o.isValid}catch{a=!1}let s,u;try{s=pa.fromISO(i,t),u=s.isValid}catch{u=!1}if(a&&u)return r.fromDateTimes(o,s);if(a){let h=Eu.fromISO(i,t);if(h.isValid)return r.after(o,h)}else if(u){let h=Eu.fromISO(n,t);if(h.isValid)return r.before(s,h)}}return r.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static isInterval(e){return e&&e.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get lastDateTime(){return this.isValid&&this.e?this.e.minus(1):null}get isValid(){return this.invalidReason===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(e="milliseconds"){return this.isValid?this.toDuration(e).get(e):NaN}count(e="milliseconds",t){if(!this.isValid)return NaN;let n=this.start.startOf(e,t),i;return t?.useLocaleWeeks?i=this.end.reconfigure({locale:n.locale}):i=this.end,i=i.startOf(e,t),Math.floor(i.diff(n,e).get(e))+(i.valueOf()!==this.end.valueOf())}hasSame(e){return this.isValid?this.isEmpty()||this.e.minus(1).hasSame(this.s,e):!1}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(e){return this.isValid?this.s>e:!1}isBefore(e){return this.isValid?this.e<=e:!1}contains(e){return this.isValid?this.s<=e&&this.e>e:!1}set({start:e,end:t}={}){return this.isValid?r.fromDateTimes(e||this.s,t||this.e):this}splitAt(...e){if(!this.isValid)return[];let t=e.map(MC).filter(a=>this.contains(a)).sort((a,s)=>a.toMillis()-s.toMillis()),n=[],{s:i}=this,o=0;for(;i<this.e;){let a=t[o]||this.e,s=+a>+this.e?this.e:a;n.push(r.fromDateTimes(i,s)),i=s,o+=1}return n}splitBy(e){let t=Eu.fromDurationLike(e);if(!this.isValid||!t.isValid||t.as("milliseconds")===0)return[];let{s:n}=this,i=1,o,a=[];for(;n<this.e;){let s=this.start.plus(t.mapUnits(u=>u*i));o=+s>+this.e?this.e:s,a.push(r.fromDateTimes(n,o)),n=o,i+=1}return a}divideEqually(e){return this.isValid?this.splitBy(this.length()/e).slice(0,e):[]}overlaps(e){return this.e>e.s&&this.s<e.e}abutsStart(e){return this.isValid?+this.e==+e.s:!1}abutsEnd(e){return this.isValid?+e.e==+this.s:!1}engulfs(e){return this.isValid?this.s<=e.s&&this.e>=e.e:!1}equals(e){return!this.isValid||!e.isValid?!1:this.s.equals(e.s)&&this.e.equals(e.e)}intersection(e){if(!this.isValid)return this;let t=this.s>e.s?this.s:e.s,n=this.e<e.e?this.e:e.e;return t>=n?null:r.fromDateTimes(t,n)}union(e){if(!this.isValid)return this;let t=this.s<e.s?this.s:e.s,n=this.e>e.e?this.e:e.e;return r.fromDateTimes(t,n)}static merge(e){let[t,n]=e.sort((i,o)=>i.s-o.s).reduce(([i,o],a)=>o?o.overlaps(a)||o.abutsStart(a)?[i,o.union(a)]:[i.concat([o]),a]:[i,a],[[],null]);return n&&t.push(n),t}static xor(e){let t=null,n=0,i=[],o=e.map(u=>[{time:u.s,type:"s"},{time:u.e,type:"e"}]),a=Array.prototype.concat(...o),s=a.sort((u,h)=>u.time-h.time);for(let u of s)n+=u.type==="s"?1:-1,n===1?t=u.time:(t&&+t!=+u.time&&i.push(r.fromDateTimes(t,u.time)),t=null);return r.merge(i)}difference(...e){return r.xor([this].concat(e)).map(t=>this.intersection(t)).filter(t=>t&&!t.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} \u2013 ${this.e.toISO()})`:DS}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`:`Interval { Invalid, reason: ${this.invalidReason} }`}toLocaleString(e=rF,t={}){return this.isValid?ad.create(this.s.loc.clone(t),e).formatInterval(this):DS}toISO(e){return this.isValid?`${this.s.toISO(e)}/${this.e.toISO(e)}`:DS}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:DS}toISOTime(e){return this.isValid?`${this.s.toISOTime(e)}/${this.e.toISOTime(e)}`:DS}toFormat(e,{separator:t=" \u2013 "}={}){return this.isValid?`${this.s.toFormat(e)}${t}${this.e.toFormat(e)}`:DS}toDuration(e,t){return this.isValid?this.e.diff(this.s,e,t):Eu.invalid(this.invalidReason)}mapEndpoints(e){return r.fromDateTimes(e(this.s),e(this.e))}},MS=class{static hasDST(e=hs.defaultZone){let t=pa.now().setZone(e).set({month:12});return!e.isUniversal&&t.offset!==t.set({month:6}).offset}static isValidIANAZone(e){return jb.isValidZone(e)}static normalizeZone(e){return Nb(e,hs.defaultZone)}static getStartOfWeek({locale:e=null,locObj:t=null}={}){return(t||Ca.create(e)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:e=null,locObj:t=null}={}){return(t||Ca.create(e)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:e=null,locObj:t=null}={}){return(t||Ca.create(e)).getWeekendDays().slice()}static months(e="long",{locale:t=null,numberingSystem:n=null,locObj:i=null,outputCalendar:o="gregory"}={}){return(i||Ca.create(t,n,o)).months(e)}static monthsFormat(e="long",{locale:t=null,numberingSystem:n=null,locObj:i=null,outputCalendar:o="gregory"}={}){return(i||Ca.create(t,n,o)).months(e,!0)}static weekdays(e="long",{locale:t=null,numberingSystem:n=null,locObj:i=null}={}){return(i||Ca.create(t,n,null)).weekdays(e)}static weekdaysFormat(e="long",{locale:t=null,numberingSystem:n=null,locObj:i=null}={}){return(i||Ca.create(t,n,null)).weekdays(e,!0)}static meridiems({locale:e=null}={}){return Ca.create(e).meridiems()}static eras(e="short",{locale:t=null}={}){return Ca.create(t,null,"gregory").eras(e)}static features(){return{relative:EMe(),localeWeek:TMe()}}};function jIe(r,e){let t=i=>i.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),n=t(e)-t(r);return Math.floor(Eu.fromMillis(n).as("days"))}function x5t(r,e,t){let n=[["years",(u,h)=>h.year-u.year],["quarters",(u,h)=>h.quarter-u.quarter+(h.year-u.year)*4],["months",(u,h)=>h.month-u.month+(h.year-u.year)*12],["weeks",(u,h)=>{let d=jIe(u,h);return(d-d%7)/7}],["days",jIe]],i={},o=r,a,s;for(let[u,h]of n)t.indexOf(u)>=0&&(a=u,i[u]=h(r,e),s=o.plus(i),s>e?(i[u]--,r=o.plus(i),r>e&&(s=r,i[u]--,r=o.plus(i))):r=s);return[r,i,s,a]}function _5t(r,e,t,n){let[i,o,a,s]=x5t(r,e,t),u=e-i,h=t.filter(y=>["hours","minutes","seconds","milliseconds"].indexOf(y)>=0);h.length===0&&(a<e&&(a=i.plus({[s]:1})),a!==i&&(o[s]=(o[s]||0)+u/(a-i)));let d=Eu.fromObject(o,n);return h.length>0?Eu.fromMillis(u,n).shiftTo(...h).plus(d):d}var w5t="missing Intl.DateTimeFormat.formatToParts support";function Qo(r,e=t=>t){return{regex:r,deser:([t])=>e(hjt(t))}}var S5t="\xA0",HMe=`[ ${S5t}]`,VMe=new RegExp(HMe,"g");function E5t(r){return r.replace(/\./g,"\\.?").replace(VMe,HMe)}function UIe(r){return r.replace(/\./g,"").replace(VMe," ").toLowerCase()}function pm(r,e){return r===null?null:{regex:RegExp(r.map(E5t).join("|")),deser:([t])=>r.findIndex(n=>UIe(t)===UIe(n))+e}}function HIe(r,e){return{regex:r,deser:([,t,n])=>cF(t,n),groups:e}}function Yq(r){return{regex:r,deser:([e])=>e}}function T5t(r){return r.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function k5t(r,e){let t=dm(e),n=dm(e,"{2}"),i=dm(e,"{3}"),o=dm(e,"{4}"),a=dm(e,"{6}"),s=dm(e,"{1,2}"),u=dm(e,"{1,3}"),h=dm(e,"{1,6}"),d=dm(e,"{1,9}"),y=dm(e,"{2,4}"),S=dm(e,"{4,6}"),k=L=>({regex:RegExp(T5t(L.val)),deser:([N])=>N,literal:!0}),M=(L=>{if(r.literal)return k(L);switch(L.val){case"G":return pm(e.eras("short"),0);case"GG":return pm(e.eras("long"),0);case"y":return Qo(h);case"yy":return Qo(y,zK);case"yyyy":return Qo(o);case"yyyyy":return Qo(S);case"yyyyyy":return Qo(a);case"M":return Qo(s);case"MM":return Qo(n);case"MMM":return pm(e.months("short",!0),1);case"MMMM":return pm(e.months("long",!0),1);case"L":return Qo(s);case"LL":return Qo(n);case"LLL":return pm(e.months("short",!1),1);case"LLLL":return pm(e.months("long",!1),1);case"d":return Qo(s);case"dd":return Qo(n);case"o":return Qo(u);case"ooo":return Qo(i);case"HH":return Qo(n);case"H":return Qo(s);case"hh":return Qo(n);case"h":return Qo(s);case"mm":return Qo(n);case"m":return Qo(s);case"q":return Qo(s);case"qq":return Qo(n);case"s":return Qo(s);case"ss":return Qo(n);case"S":return Qo(u);case"SSS":return Qo(i);case"u":return Yq(d);case"uu":return Yq(s);case"uuu":return Qo(t);case"a":return pm(e.meridiems(),0);case"kkkk":return Qo(o);case"kk":return Qo(y,zK);case"W":return Qo(s);case"WW":return Qo(n);case"E":case"c":return Qo(t);case"EEE":return pm(e.weekdays("short",!1),1);case"EEEE":return pm(e.weekdays("long",!1),1);case"ccc":return pm(e.weekdays("short",!0),1);case"cccc":return pm(e.weekdays("long",!0),1);case"Z":case"ZZ":return HIe(new RegExp(`([+-]${s.source})(?::(${n.source}))?`),2);case"ZZZ":return HIe(new RegExp(`([+-]${s.source})(${n.source})?`),2);case"z":return Yq(/[a-z_+-/]{1,256}?/i);case" ":return Yq(/[^\S\n\r]/);default:return k(L)}})(r)||{invalidReason:w5t};return M.token=r,M}var A5t={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour12:{numeric:"h","2-digit":"hh"},hour24:{numeric:"H","2-digit":"HH"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};function C5t(r,e,t){let{type:n,value:i}=r;if(n==="literal"){let u=/^\s+$/.test(i);return{literal:!u,val:u?" ":i}}let o=e[n],a=n;n==="hour"&&(e.hour12!=null?a=e.hour12?"hour12":"hour24":e.hourCycle!=null?e.hourCycle==="h11"||e.hourCycle==="h12"?a="hour12":a="hour24":a=t.hour12?"hour12":"hour24");let s=A5t[a];if(typeof s=="object"&&(s=s[o]),s)return{literal:!1,val:s}}function O5t(r){return[`^${r.map(t=>t.regex).reduce((t,n)=>`${t}(${n.source})`,"")}$`,r]}function D5t(r,e,t){let n=r.match(e);if(n){let i={},o=1;for(let a in t)if(qS(t,a)){let s=t[a],u=s.groups?s.groups+1:1;!s.literal&&s.token&&(i[s.token.val[0]]=s.deser(n.slice(o,o+u))),o+=u}return[n,i]}else return[n,{}]}function I5t(r){let e=o=>{switch(o){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}},t=null,n;return vi(r.z)||(t=jb.create(r.z)),vi(r.Z)||(t||(t=new up(r.Z)),n=r.Z),vi(r.q)||(r.M=(r.q-1)*3+1),vi(r.h)||(r.h<12&&r.a===1?r.h+=12:r.h===12&&r.a===0&&(r.h=0)),r.G===0&&r.y&&(r.y=-r.y),vi(r.u)||(r.S=WK(r.u)),[Object.keys(r).reduce((o,a)=>{let s=e(a);return s&&(o[s]=r[a]),o},{}),t,n]}var bK=null;function M5t(){return bK||(bK=pa.fromMillis(1555555555555)),bK}function P5t(r,e){if(r.literal)return r;let t=ad.macroTokenToFormatOpts(r.val),n=KMe(t,e);return n==null||n.includes(void 0)?r:n}function WMe(r,e){return Array.prototype.concat(...r.map(t=>P5t(t,e)))}var sF=class{constructor(e,t){if(this.locale=e,this.format=t,this.tokens=WMe(ad.parseFormat(t),e),this.units=this.tokens.map(n=>k5t(n,e)),this.disqualifyingUnit=this.units.find(n=>n.invalidReason),!this.disqualifyingUnit){let[n,i]=O5t(this.units);this.regex=RegExp(n,"i"),this.handlers=i}}explainFromTokens(e){if(this.isValid){let[t,n]=D5t(e,this.regex,this.handlers),[i,o,a]=n?I5t(n):[null,null,void 0];if(qS(n,"a")&&qS(n,"H"))throw new Bb("Can't include meridiem when specifying 24-hour format");return{input:e,tokens:this.tokens,regex:this.regex,rawMatches:t,matches:n,result:i,zone:o,specificOffset:a}}else return{input:e,tokens:this.tokens,invalidReason:this.invalidReason}}get isValid(){return!this.disqualifyingUnit}get invalidReason(){return this.disqualifyingUnit?this.disqualifyingUnit.invalidReason:null}};function $Me(r,e,t){return new sF(r,t).explainFromTokens(e)}function L5t(r,e,t){let{result:n,zone:i,specificOffset:o,invalidReason:a}=$Me(r,e,t);return[n,i,o,a]}function KMe(r,e){if(!r)return null;let n=ad.create(e,r).dtFormatter(M5t()),i=n.formatToParts(),o=n.resolvedOptions();return i.map(a=>C5t(a,r,o))}var xK="Invalid DateTime",VIe=864e13;function LC(r){return new sd("unsupported zone",`the zone "${r.name}" is not supported`)}function _K(r){return r.weekData===null&&(r.weekData=iF(r.c)),r.weekData}function wK(r){return r.localWeekData===null&&(r.localWeekData=iF(r.c,r.loc.getMinDaysInFirstWeek(),r.loc.getStartOfWeek())),r.localWeekData}function i_(r,e){let t={ts:r.ts,zone:r.zone,c:r.c,o:r.o,loc:r.loc,invalid:r.invalid};return new pa({...t,...e,old:t})}function GMe(r,e,t){let n=r-e*60*1e3,i=t.offset(n);if(e===i)return[n,e];n-=(i-e)*60*1e3;let o=t.offset(n);return i===o?[n,i]:[r-Math.min(i,o)*60*1e3,Math.max(i,o)]}function Zq(r,e){r+=e*60*1e3;let t=new Date(r);return{year:t.getUTCFullYear(),month:t.getUTCMonth()+1,day:t.getUTCDate(),hour:t.getUTCHours(),minute:t.getUTCMinutes(),second:t.getUTCSeconds(),millisecond:t.getUTCMilliseconds()}}function Jq(r,e,t){return GMe(uF(r),e,t)}function WIe(r,e){let t=r.o,n=r.c.year+Math.trunc(e.years),i=r.c.month+Math.trunc(e.months)+Math.trunc(e.quarters)*3,o={...r.c,year:n,month:i,day:Math.min(r.c.day,oF(n,i))+Math.trunc(e.days)+Math.trunc(e.weeks)*7},a=Eu.fromObject({years:e.years-Math.trunc(e.years),quarters:e.quarters-Math.trunc(e.quarters),months:e.months-Math.trunc(e.months),weeks:e.weeks-Math.trunc(e.weeks),days:e.days-Math.trunc(e.days),hours:e.hours,minutes:e.minutes,seconds:e.seconds,milliseconds:e.milliseconds}).as("milliseconds"),s=uF(o),[u,h]=GMe(s,t,r.zone);return a!==0&&(u+=a,h=r.zone.offset(u)),{ts:u,o:h}}function IS(r,e,t,n,i,o){let{setZone:a,zone:s}=t;if(r&&Object.keys(r).length!==0||e){let u=e||s,h=pa.fromObject(r,{...t,zone:u,specificOffset:o});return a?h:h.setZone(s)}else return pa.invalid(new sd("unparsable",`the input "${i}" can't be parsed as ${n}`))}function Xq(r,e,t=!0){return r.isValid?ad.create(Ca.create("en-US"),{allowZ:t,forceSimple:!0}).formatDateTimeFromString(r,e):null}function SK(r,e,t){let n=r.c.year>9999||r.c.year<0,i="";if(n&&r.c.year>=0&&(i+="+"),i+=Rl(r.c.year,n?6:4),t==="year")return i;if(e){if(i+="-",i+=Rl(r.c.month),t==="month")return i;i+="-"}else if(i+=Rl(r.c.month),t==="month")return i;return i+=Rl(r.c.day),i}function $Ie(r,e,t,n,i,o,a){let s=!t||r.c.millisecond!==0||r.c.second!==0,u="";switch(a){case"day":case"month":case"year":break;default:if(u+=Rl(r.c.hour),a==="hour")break;if(e){if(u+=":",u+=Rl(r.c.minute),a==="minute")break;s&&(u+=":",u+=Rl(r.c.second))}else{if(u+=Rl(r.c.minute),a==="minute")break;s&&(u+=Rl(r.c.second))}if(a==="second")break;s&&(!n||r.c.millisecond!==0)&&(u+=".",u+=Rl(r.c.millisecond,3))}return i&&(r.isOffsetFixed&&r.offset===0&&!o?u+="Z":r.o<0?(u+="-",u+=Rl(Math.trunc(-r.o/60)),u+=":",u+=Rl(Math.trunc(-r.o%60))):(u+="+",u+=Rl(Math.trunc(r.o/60)),u+=":",u+=Rl(Math.trunc(r.o%60)))),o&&(u+="["+r.zone.ianaName+"]"),u}var YMe={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},R5t={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},q5t={ordinal:1,hour:0,minute:0,second:0,millisecond:0},Qq=["year","month","day","hour","minute","second","millisecond"],F5t=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],N5t=["year","ordinal","hour","minute","second","millisecond"];function eF(r){let e={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[r.toLowerCase()];if(!e)throw new tF(r);return e}function KIe(r){switch(r.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return eF(r)}}function B5t(r){if(RC===void 0&&(RC=hs.now()),r.type!=="iana")return r.offset(RC);let e=r.name,t=jK.get(e);return t===void 0&&(t=r.offset(RC),jK.set(e,t)),t}function GIe(r,e){let t=Nb(e.zone,hs.defaultZone);if(!t.isValid)return pa.invalid(LC(t));let n=Ca.fromObject(e),i,o;if(vi(r.year))i=hs.now();else{for(let u of Qq)vi(r[u])&&(r[u]=YMe[u]);let a=wMe(r)||SMe(r);if(a)return pa.invalid(a);let s=B5t(t);[i,o]=Jq(r,s,t)}return new pa({ts:i,zone:t,loc:n,o})}function YIe(r,e,t){let n=vi(t.round)?!0:t.round,i=vi(t.rounding)?"trunc":t.rounding,o=(s,u)=>(s=$K(s,n||t.calendary?0:2,t.calendary?"round":i),e.loc.clone(t).relFormatter(t).format(s,u)),a=s=>t.calendary?e.hasSame(r,s)?0:e.startOf(s).diff(r.startOf(s),s).get(s):e.diff(r,s).get(s);if(t.unit)return o(a(t.unit),t.unit);for(let s of t.units){let u=a(s);if(Math.abs(u)>=1)return o(u,s)}return o(r>e?-0:0,t.units[t.units.length-1])}function ZIe(r){let e={},t;return r.length>0&&typeof r[r.length-1]=="object"?(e=r[r.length-1],t=Array.from(r).slice(0,r.length-1)):t=Array.from(r),[e,t]}var RC,jK=new Map,pa=class r{constructor(e){let t=e.zone||hs.defaultZone,n=e.invalid||(Number.isNaN(e.ts)?new sd("invalid input"):null)||(t.isValid?null:LC(t));this.ts=vi(e.ts)?hs.now():e.ts;let i=null,o=null;if(!n)if(e.old&&e.old.ts===this.ts&&e.old.zone.equals(t))[i,o]=[e.old.c,e.old.o];else{let s=zb(e.o)&&!e.old?e.o:t.offset(this.ts);i=Zq(this.ts,s),n=Number.isNaN(i.year)?new sd("invalid input"):null,i=n?null:i,o=n?null:s}this._zone=t,this.loc=e.loc||Ca.create(),this.invalid=n,this.weekData=null,this.localWeekData=null,this.c=i,this.o=o,this.isLuxonDateTime=!0}static now(){return new r({})}static local(){let[e,t]=ZIe(arguments),[n,i,o,a,s,u,h]=t;return GIe({year:n,month:i,day:o,hour:a,minute:s,second:u,millisecond:h},e)}static utc(){let[e,t]=ZIe(arguments),[n,i,o,a,s,u,h]=t;return e.zone=up.utcInstance,GIe({year:n,month:i,day:o,hour:a,minute:s,second:u,millisecond:h},e)}static fromJSDate(e,t={}){let n=vjt(e)?e.valueOf():NaN;if(Number.isNaN(n))return r.invalid("invalid input");let i=Nb(t.zone,hs.defaultZone);return i.isValid?new r({ts:n,zone:i,loc:Ca.fromObject(t)}):r.invalid(LC(i))}static fromMillis(e,t={}){if(zb(e))return e<-VIe||e>VIe?r.invalid("Timestamp out of range"):new r({ts:e,zone:Nb(t.zone,hs.defaultZone),loc:Ca.fromObject(t)});throw new Su(`fromMillis requires a numerical input, but received a ${typeof e} with value ${e}`)}static fromSeconds(e,t={}){if(zb(e))return new r({ts:e*1e3,zone:Nb(t.zone,hs.defaultZone),loc:Ca.fromObject(t)});throw new Su("fromSeconds requires a numerical input")}static fromObject(e,t={}){e=e||{};let n=Nb(t.zone,hs.defaultZone);if(!n.isValid)return r.invalid(LC(n));let i=Ca.fromObject(t),o=aF(e,KIe),{minDaysInFirstWeek:a,startOfWeek:s}=PIe(o,i),u=hs.now(),h=vi(t.specificOffset)?n.offset(u):t.specificOffset,d=!vi(o.ordinal),y=!vi(o.year),S=!vi(o.month)||!vi(o.day),k=y||S,D=o.weekYear||o.weekNumber;if((k||d)&&D)throw new Bb("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(S&&d)throw new Bb("Can't mix ordinal dates with month/day");let M=D||o.weekday&&!k,L,N,z=Zq(u,h);M?(L=F5t,N=R5t,z=iF(z,a,s)):d?(L=N5t,N=q5t,z=yK(z)):(L=Qq,N=YMe);let Z=!1;for(let Ae of L){let ye=o[Ae];vi(ye)?Z?o[Ae]=N[Ae]:o[Ae]=z[Ae]:Z=!0}let $=M?pjt(o,a,s):d?mjt(o):wMe(o),te=$||SMe(o);if(te)return r.invalid(te);let ue=M?IIe(o,a,s):d?MIe(o):o,[re,ce]=Jq(ue,h,n),de=new r({ts:re,zone:n,o:ce,loc:i});return o.weekday&&k&&e.weekday!==de.weekday?r.invalid("mismatched weekday",`you can't specify both a weekday of ${o.weekday} and a date of ${de.toISO()}`):de.isValid?de:r.invalid(de.invalid)}static fromISO(e,t={}){let[n,i]=a5t(e);return IS(n,i,t,"ISO 8601",e)}static fromRFC2822(e,t={}){let[n,i]=s5t(e);return IS(n,i,t,"RFC 2822",e)}static fromHTTP(e,t={}){let[n,i]=l5t(e);return IS(n,i,t,"HTTP",t)}static fromFormat(e,t,n={}){if(vi(e)||vi(t))throw new Su("fromFormat requires an input string and a format");let{locale:i=null,numberingSystem:o=null}=n,a=Ca.fromOpts({locale:i,numberingSystem:o,defaultToEN:!0}),[s,u,h,d]=L5t(a,e,t);return d?r.invalid(d):IS(s,u,n,`format ${t}`,e,h)}static fromString(e,t,n={}){return r.fromFormat(e,t,n)}static fromSQL(e,t={}){let[n,i]=m5t(e);return IS(n,i,t,"SQL",e)}static invalid(e,t=null){if(!e)throw new Su("need to specify a reason the DateTime is invalid");let n=e instanceof sd?e:new sd(e,t);if(hs.throwOnInvalid)throw new EK(n);return new r({invalid:n})}static isDateTime(e){return e&&e.isLuxonDateTime||!1}static parseFormatForOpts(e,t={}){let n=KMe(e,Ca.fromObject(t));return n?n.map(i=>i?i.val:null).join(""):null}static expandFormat(e,t={}){return WMe(ad.parseFormat(e),Ca.fromObject(t)).map(i=>i.val).join("")}static resetCache(){RC=void 0,jK.clear()}get(e){return this[e]}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?_K(this).weekYear:NaN}get weekNumber(){return this.isValid?_K(this).weekNumber:NaN}get weekday(){return this.isValid?_K(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?wK(this).weekday:NaN}get localWeekNumber(){return this.isValid?wK(this).weekNumber:NaN}get localWeekYear(){return this.isValid?wK(this).weekYear:NaN}get ordinal(){return this.isValid?yK(this.c).ordinal:NaN}get monthShort(){return this.isValid?MS.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?MS.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?MS.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?MS.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return this.isOffsetFixed?!1:this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed)return[this];let e=864e5,t=6e4,n=uF(this.c),i=this.zone.offset(n-e),o=this.zone.offset(n+e),a=this.zone.offset(n-i*t),s=this.zone.offset(n-o*t);if(a===s)return[this];let u=n-a*t,h=n-s*t,d=Zq(u,a),y=Zq(h,s);return d.hour===y.hour&&d.minute===y.minute&&d.second===y.second&&d.millisecond===y.millisecond?[i_(this,{ts:u}),i_(this,{ts:h})]:[this]}get isInLeapYear(){return NC(this.year)}get daysInMonth(){return oF(this.year,this.month)}get daysInYear(){return this.isValid?PS(this.year):NaN}get weeksInWeekYear(){return this.isValid?FC(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?FC(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(e={}){let{locale:t,numberingSystem:n,calendar:i}=ad.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:t,numberingSystem:n,outputCalendar:i}}toUTC(e=0,t={}){return this.setZone(up.instance(e),t)}toLocal(){return this.setZone(hs.defaultZone)}setZone(e,{keepLocalTime:t=!1,keepCalendarTime:n=!1}={}){if(e=Nb(e,hs.defaultZone),e.equals(this.zone))return this;if(e.isValid){let i=this.ts;if(t||n){let o=e.offset(this.ts),a=this.toObject();[i]=Jq(a,o,e)}return i_(this,{ts:i,zone:e})}else return r.invalid(LC(e))}reconfigure({locale:e,numberingSystem:t,outputCalendar:n}={}){let i=this.loc.clone({locale:e,numberingSystem:t,outputCalendar:n});return i_(this,{loc:i})}setLocale(e){return this.reconfigure({locale:e})}set(e){if(!this.isValid)return this;let t=aF(e,KIe),{minDaysInFirstWeek:n,startOfWeek:i}=PIe(t,this.loc),o=!vi(t.weekYear)||!vi(t.weekNumber)||!vi(t.weekday),a=!vi(t.ordinal),s=!vi(t.year),u=!vi(t.month)||!vi(t.day),h=s||u,d=t.weekYear||t.weekNumber;if((h||a)&&d)throw new Bb("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(u&&a)throw new Bb("Can't mix ordinal dates with month/day");let y;o?y=IIe({...iF(this.c,n,i),...t},n,i):vi(t.ordinal)?(y={...this.toObject(),...t},vi(t.day)&&(y.day=Math.min(oF(y.year,y.month),y.day))):y=MIe({...yK(this.c),...t});let[S,k]=Jq(y,this.o,this.zone);return i_(this,{ts:S,o:k})}plus(e){if(!this.isValid)return this;let t=Eu.fromDurationLike(e);return i_(this,WIe(this,t))}minus(e){if(!this.isValid)return this;let t=Eu.fromDurationLike(e).negate();return i_(this,WIe(this,t))}startOf(e,{useLocaleWeeks:t=!1}={}){if(!this.isValid)return this;let n={},i=Eu.normalizeUnit(e);switch(i){case"years":n.month=1;case"quarters":case"months":n.day=1;case"weeks":case"days":n.hour=0;case"hours":n.minute=0;case"minutes":n.second=0;case"seconds":n.millisecond=0;break}if(i==="weeks")if(t){let o=this.loc.getStartOfWeek(),{weekday:a}=this;a<o&&(n.weekNumber=this.weekNumber-1),n.weekday=o}else n.weekday=1;if(i==="quarters"){let o=Math.ceil(this.month/3);n.month=(o-1)*3+1}return this.set(n)}endOf(e,t){return this.isValid?this.plus({[e]:1}).startOf(e,t).minus(1):this}toFormat(e,t={}){return this.isValid?ad.create(this.loc.redefaultToEN(t)).formatDateTimeFromString(this,e):xK}toLocaleString(e=rF,t={}){return this.isValid?ad.create(this.loc.clone(t),e).formatDateTime(this):xK}toLocaleParts(e={}){return this.isValid?ad.create(this.loc.clone(e),e).formatDateTimeParts(this):[]}toISO({format:e="extended",suppressSeconds:t=!1,suppressMilliseconds:n=!1,includeOffset:i=!0,extendedZone:o=!1,precision:a="milliseconds"}={}){if(!this.isValid)return null;a=eF(a);let s=e==="extended",u=SK(this,s,a);return Qq.indexOf(a)>=3&&(u+="T"),u+=$Ie(this,s,t,n,i,o,a),u}toISODate({format:e="extended",precision:t="day"}={}){return this.isValid?SK(this,e==="extended",eF(t)):null}toISOWeekDate(){return Xq(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:e=!1,suppressSeconds:t=!1,includeOffset:n=!0,includePrefix:i=!1,extendedZone:o=!1,format:a="extended",precision:s="milliseconds"}={}){return this.isValid?(s=eF(s),(i&&Qq.indexOf(s)>=3?"T":"")+$Ie(this,a==="extended",t,e,n,o,s)):null}toRFC2822(){return Xq(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return Xq(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?SK(this,!0):null}toSQLTime({includeOffset:e=!0,includeZone:t=!1,includeOffsetSpace:n=!0}={}){let i="HH:mm:ss.SSS";return(t||e)&&(n&&(i+=" "),t?i+="z":e&&(i+="ZZ")),Xq(this,i,!0)}toSQL(e={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(e)}`:null}toString(){return this.isValid?this.toISO():xK}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`DateTime { ts: ${this.toISO()}, zone: ${this.zone.name}, locale: ${this.locale} }`:`DateTime { Invalid, reason: ${this.invalidReason} }`}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(e={}){if(!this.isValid)return{};let t={...this.c};return e.includeConfig&&(t.outputCalendar=this.outputCalendar,t.numberingSystem=this.loc.numberingSystem,t.locale=this.loc.locale),t}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(e,t="milliseconds",n={}){if(!this.isValid||!e.isValid)return Eu.invalid("created by diffing an invalid DateTime");let i={locale:this.locale,numberingSystem:this.numberingSystem,...n},o=yjt(t).map(Eu.normalizeUnit),a=e.valueOf()>this.valueOf(),s=a?this:e,u=a?e:this,h=_5t(s,u,o,i);return a?h.negate():h}diffNow(e="milliseconds",t={}){return this.diff(r.now(),e,t)}until(e){return this.isValid?RS.fromDateTimes(this,e):this}hasSame(e,t,n){if(!this.isValid)return!1;let i=e.valueOf(),o=this.setZone(e.zone,{keepLocalTime:!0});return o.startOf(t,n)<=i&&i<=o.endOf(t,n)}equals(e){return this.isValid&&e.isValid&&this.valueOf()===e.valueOf()&&this.zone.equals(e.zone)&&this.loc.equals(e.loc)}toRelative(e={}){if(!this.isValid)return null;let t=e.base||r.fromObject({},{zone:this.zone}),n=e.padding?this<t?-e.padding:e.padding:0,i=["years","months","days","hours","minutes","seconds"],o=e.unit;return Array.isArray(e.unit)&&(i=e.unit,o=void 0),YIe(t,this.plus(n),{...e,numeric:"always",units:i,unit:o})}toRelativeCalendar(e={}){return this.isValid?YIe(e.base||r.fromObject({},{zone:this.zone}),this,{...e,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...e){if(!e.every(r.isDateTime))throw new Su("min requires all arguments be DateTimes");return LIe(e,t=>t.valueOf(),Math.min)}static max(...e){if(!e.every(r.isDateTime))throw new Su("max requires all arguments be DateTimes");return LIe(e,t=>t.valueOf(),Math.max)}static fromFormatExplain(e,t,n={}){let{locale:i=null,numberingSystem:o=null}=n,a=Ca.fromOpts({locale:i,numberingSystem:o,defaultToEN:!0});return $Me(a,e,t)}static fromStringExplain(e,t,n={}){return r.fromFormatExplain(e,t,n)}static buildFormatParser(e,t={}){let{locale:n=null,numberingSystem:i=null}=t,o=Ca.fromOpts({locale:n,numberingSystem:i,defaultToEN:!0});return new sF(o,e)}static fromFormatParser(e,t,n={}){if(vi(e)||vi(t))throw new Su("fromFormatParser requires an input string and a format parser");let{locale:i=null,numberingSystem:o=null}=n,a=Ca.fromOpts({locale:i,numberingSystem:o,defaultToEN:!0});if(!a.equals(t.locale))throw new Su(`fromFormatParser called with a locale of ${a}, but the format parser was created for ${t.locale}`);let{result:s,zone:u,specificOffset:h,invalidReason:d}=t.explainFromTokens(e);return d?r.invalid(d):IS(s,u,n,`format ${t.format}`,e,h)}static get DATE_SHORT(){return rF}static get DATE_MED(){return XIe}static get DATE_MED_WITH_WEEKDAY(){return Y3t}static get DATE_FULL(){return JIe}static get DATE_HUGE(){return QIe}static get TIME_SIMPLE(){return eMe}static get TIME_WITH_SECONDS(){return tMe}static get TIME_WITH_SHORT_OFFSET(){return rMe}static get TIME_WITH_LONG_OFFSET(){return nMe}static get TIME_24_SIMPLE(){return iMe}static get TIME_24_WITH_SECONDS(){return oMe}static get TIME_24_WITH_SHORT_OFFSET(){return aMe}static get TIME_24_WITH_LONG_OFFSET(){return sMe}static get DATETIME_SHORT(){return lMe}static get DATETIME_SHORT_WITH_SECONDS(){return uMe}static get DATETIME_MED(){return cMe}static get DATETIME_MED_WITH_SECONDS(){return fMe}static get DATETIME_MED_WITH_WEEKDAY(){return Z3t}static get DATETIME_FULL(){return hMe}static get DATETIME_FULL_WITH_SECONDS(){return dMe}static get DATETIME_HUGE(){return pMe}static get DATETIME_HUGE_WITH_SECONDS(){return mMe}};function MC(r){if(pa.isDateTime(r))return r;if(r&&r.valueOf&&zb(r.valueOf()))return pa.fromJSDate(r);if(r&&typeof r=="object")return pa.fromObject(r);throw new Su(`Unknown datetime argument: ${r}, of type ${typeof r}`)}var hF=["onChange","onClose","onDayCreate","onDestroy","onKeyDown","onMonthChange","onOpen","onParseConfig","onReady","onValueUpdate","onYearChange","onPreCalendarPosition"],Ub={_disable:[],allowInput:!1,allowInvalidPreload:!1,altFormat:"F j, Y",altInput:!1,altInputClass:"form-control input",animate:typeof window=="object"&&window.navigator.userAgent.indexOf("MSIE")===-1,ariaDateFormat:"F j, Y",autoFillDefaultTime:!0,clickOpens:!0,closeOnSelect:!0,conjunction:", ",dateFormat:"Y-m-d",defaultHour:12,defaultMinute:0,defaultSeconds:0,disable:[],disableMobile:!1,enableSeconds:!1,enableTime:!1,errorHandler:function(r){return typeof console<"u"&&console.warn(r)},getWeek:function(r){var e=new Date(r.getTime());e.setHours(0,0,0,0),e.setDate(e.getDate()+3-(e.getDay()+6)%7);var t=new Date(e.getFullYear(),0,4);return 1+Math.round(((e.getTime()-t.getTime())/864e5-3+(t.getDay()+6)%7)/7)},hourIncrement:1,ignoredFocusElements:[],inline:!1,locale:"default",minuteIncrement:5,mode:"single",monthSelectorType:"dropdown",nextArrow:"<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 17 17'><g></g><path d='M13.207 8.472l-7.854 7.854-0.707-0.707 7.146-7.146-7.146-7.148 0.707-0.707 7.854 7.854z' /></svg>",noCalendar:!1,now:new Date,onChange:[],onClose:[],onDayCreate:[],onDestroy:[],onKeyDown:[],onMonthChange:[],onOpen:[],onParseConfig:[],onReady:[],onValueUpdate:[],onYearChange:[],onPreCalendarPosition:[],plugins:[],position:"auto",positionElement:void 0,prevArrow:"<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 17 17'><g></g><path d='M5.207 8.471l7.146 7.147-0.707 0.707-7.853-7.854 7.854-7.853 0.707 0.707-7.147 7.146z' /></svg>",shorthandCurrentMonth:!1,showMonths:1,static:!1,time_24hr:!1,weekNumbers:!1,wrap:!1};var dF={weekdays:{shorthand:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],longhand:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},months:{shorthand:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],longhand:["January","February","March","April","May","June","July","August","September","October","November","December"]},daysInMonth:[31,28,31,30,31,30,31,31,30,31,30,31],firstDayOfWeek:0,ordinal:function(r){var e=r%100;if(e>3&&e<21)return"th";switch(e%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}},rangeSeparator:" to ",weekAbbreviation:"Wk",scrollTitle:"Scroll to increment",toggleTitle:"Click to toggle",amPM:["AM","PM"],yearAriaLabel:"Year",monthAriaLabel:"Month",hourAriaLabel:"Hour",minuteAriaLabel:"Minute",time_24hr:!1},pF=dF;var Dc=function(r,e){return e===void 0&&(e=2),("000"+r).slice(e*-1)},bh=function(r){return r===!0?1:0};function ZK(r,e){var t;return function(){var n=this,i=arguments;clearTimeout(t),t=setTimeout(function(){return r.apply(n,i)},e)}}var mF=function(r){return r instanceof Array?r:[r]};function Ic(r,e,t){if(t===!0)return r.classList.add(e);r.classList.remove(e)}function Wo(r,e,t){var n=window.document.createElement(r);return e=e||"",t=t||"",n.className=e,t!==void 0&&(n.textContent=t),n}function jC(r){for(;r.firstChild;)r.removeChild(r.firstChild)}function XK(r,e){if(e(r))return r;if(r.parentNode)return XK(r.parentNode,e)}function UC(r,e){var t=Wo("div","numInputWrapper"),n=Wo("input","numInput "+r),i=Wo("span","arrowUp"),o=Wo("span","arrowDown");if(navigator.userAgent.indexOf("MSIE 9.0")===-1?n.type="number":(n.type="text",n.pattern="\\d*"),e!==void 0)for(var a in e)n.setAttribute(a,e[a]);return t.appendChild(n),t.appendChild(i),t.appendChild(o),t}function xh(r){try{if(typeof r.composedPath=="function"){var e=r.composedPath();return e[0]}return r.target}catch{return r.target}}var JK=function(){},HC=function(r,e,t){return t.months[e?"shorthand":"longhand"][r]},ZMe={D:JK,F:function(r,e,t){r.setMonth(t.months.longhand.indexOf(e))},G:function(r,e){r.setHours((r.getHours()>=12?12:0)+parseFloat(e))},H:function(r,e){r.setHours(parseFloat(e))},J:function(r,e){r.setDate(parseFloat(e))},K:function(r,e,t){r.setHours(r.getHours()%12+12*bh(new RegExp(t.amPM[1],"i").test(e)))},M:function(r,e,t){r.setMonth(t.months.shorthand.indexOf(e))},S:function(r,e){r.setSeconds(parseFloat(e))},U:function(r,e){return new Date(parseFloat(e)*1e3)},W:function(r,e,t){var n=parseInt(e),i=new Date(r.getFullYear(),0,2+(n-1)*7,0,0,0,0);return i.setDate(i.getDate()-i.getDay()+t.firstDayOfWeek),i},Y:function(r,e){r.setFullYear(parseFloat(e))},Z:function(r,e){return new Date(e)},d:function(r,e){r.setDate(parseFloat(e))},h:function(r,e){r.setHours((r.getHours()>=12?12:0)+parseFloat(e))},i:function(r,e){r.setMinutes(parseFloat(e))},j:function(r,e){r.setDate(parseFloat(e))},l:JK,m:function(r,e){r.setMonth(parseFloat(e)-1)},n:function(r,e){r.setMonth(parseFloat(e)-1)},s:function(r,e){r.setSeconds(parseFloat(e))},u:function(r,e){return new Date(parseFloat(e))},w:JK,y:function(r,e){r.setFullYear(2e3+parseFloat(e))}},qv={D:"",F:"",G:"(\\d\\d|\\d)",H:"(\\d\\d|\\d)",J:"(\\d\\d|\\d)\\w+",K:"",M:"",S:"(\\d\\d|\\d)",U:"(.+)",W:"(\\d\\d|\\d)",Y:"(\\d{4})",Z:"(.+)",d:"(\\d\\d|\\d)",h:"(\\d\\d|\\d)",i:"(\\d\\d|\\d)",j:"(\\d\\d|\\d)",l:"",m:"(\\d\\d|\\d)",n:"(\\d\\d|\\d)",s:"(\\d\\d|\\d)",u:"(.+)",w:"(\\d\\d|\\d)",y:"(\\d{2})"},jS={Z:function(r){return r.toISOString()},D:function(r,e,t){return e.weekdays.shorthand[jS.w(r,e,t)]},F:function(r,e,t){return HC(jS.n(r,e,t)-1,!1,e)},G:function(r,e,t){return Dc(jS.h(r,e,t))},H:function(r){return Dc(r.getHours())},J:function(r,e){return e.ordinal!==void 0?r.getDate()+e.ordinal(r.getDate()):r.getDate()},K:function(r,e){return e.amPM[bh(r.getHours()>11)]},M:function(r,e){return HC(r.getMonth(),!0,e)},S:function(r){return Dc(r.getSeconds())},U:function(r){return r.getTime()/1e3},W:function(r,e,t){return t.getWeek(r)},Y:function(r){return Dc(r.getFullYear(),4)},d:function(r){return Dc(r.getDate())},h:function(r){return r.getHours()%12?r.getHours()%12:12},i:function(r){return Dc(r.getMinutes())},j:function(r){return r.getDate()},l:function(r,e){return e.weekdays.longhand[r.getDay()]},m:function(r){return Dc(r.getMonth()+1)},n:function(r){return r.getMonth()+1},s:function(r){return r.getSeconds()},u:function(r){return r.getTime()},w:function(r){return r.getDay()},y:function(r){return String(r.getFullYear()).substring(2)}};var QK=function(r){var e=r.config,t=e===void 0?Ub:e,n=r.l10n,i=n===void 0?dF:n,o=r.isMobile,a=o===void 0?!1:o;return function(s,u,h){var d=h||i;return t.formatDate!==void 0&&!a?t.formatDate(s,u,d):u.split("").map(function(y,S,k){return jS[y]&&k[S-1]!=="\\"?jS[y](s,d,t):y!=="\\"?y:""}).join("")}},gF=function(r){var e=r.config,t=e===void 0?Ub:e,n=r.l10n,i=n===void 0?dF:n;return function(o,a,s,u){if(!(o!==0&&!o)){var h=u||i,d,y=o;if(o instanceof Date)d=new Date(o.getTime());else if(typeof o!="string"&&o.toFixed!==void 0)d=new Date(o);else if(typeof o=="string"){var S=a||(t||Ub).dateFormat,k=String(o).trim();if(k==="today")d=new Date,s=!0;else if(t&&t.parseDate)d=t.parseDate(o,S);else if(/Z$/.test(k)||/GMT$/.test(k))d=new Date(o);else{for(var D=void 0,M=[],L=0,N=0,z="";L<S.length;L++){var Z=S[L],$=Z==="\\",te=S[L-1]==="\\"||$;if(qv[Z]&&!te){z+=qv[Z];var ue=new RegExp(z).exec(o);ue&&(D=!0)&&M[Z!=="Y"?"push":"unshift"]({fn:ZMe[Z],val:ue[++N]})}else $||(z+=".")}d=!t||!t.noCalendar?new Date(new Date().getFullYear(),0,1,0,0,0,0):new Date(new Date().setHours(0,0,0,0)),M.forEach(function(re){var ce=re.fn,de=re.val;return d=ce(d,de,h)||d}),d=D?d:void 0}}if(!(d instanceof Date&&!isNaN(d.getTime()))){t.errorHandler(new Error("Invalid date provided: "+y));return}return s===!0&&d.setHours(0,0,0,0),d}}};function _h(r,e,t){return t===void 0&&(t=!0),t!==!1?new Date(r.getTime()).setHours(0,0,0,0)-new Date(e.getTime()).setHours(0,0,0,0):r.getTime()-e.getTime()}var XMe=function(r,e,t){return r>Math.min(e,t)&&r<Math.max(e,t)},vF=function(r,e,t){return r*3600+e*60+t},JMe=function(r){var e=Math.floor(r/3600),t=(r-e*3600)/60;return[e,t,r-e*3600-t*60]},QMe={DAY:864e5};function yF(r){var e=r.defaultHour,t=r.defaultMinute,n=r.defaultSeconds;if(r.minDate!==void 0){var i=r.minDate.getHours(),o=r.minDate.getMinutes(),a=r.minDate.getSeconds();e<i&&(e=i),e===i&&t<o&&(t=o),e===i&&t===o&&n<a&&(n=r.minDate.getSeconds())}if(r.maxDate!==void 0){var s=r.maxDate.getHours(),u=r.maxDate.getMinutes();e=Math.min(e,s),e===s&&(t=Math.min(u,t)),e===s&&t===u&&(n=r.maxDate.getSeconds())}return{hours:e,minutes:t,seconds:n}}typeof Object.assign!="function"&&(Object.assign=function(r){for(var e=[],t=1;t<arguments.length;t++)e[t-1]=arguments[t];if(!r)throw TypeError("Cannot convert undefined or null to object");for(var n=function(s){s&&Object.keys(s).forEach(function(u){return r[u]=s[u]})},i=0,o=e;i<o.length;i++){var a=o[i];n(a)}return r});var Mc=function(){return Mc=Object.assign||function(r){for(var e,t=1,n=arguments.length;t<n;t++){e=arguments[t];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(r[i]=e[i])}return r},Mc.apply(this,arguments)},ePe=function(){for(var r=0,e=0,t=arguments.length;e<t;e++)r+=arguments[e].length;for(var n=Array(r),i=0,e=0;e<t;e++)for(var o=arguments[e],a=0,s=o.length;a<s;a++,i++)n[i]=o[a];return n},z5t=300;function j5t(r,e){var t={config:Mc(Mc({},Ub),ql.defaultConfig),l10n:pF};t.parseDate=gF({config:t.config,l10n:t.l10n}),t._handlers=[],t.pluginElements=[],t.loadedPlugins=[],t._bind=M,t._setHoursFromDate=S,t._positionCalendar=dr,t.changeMonth=se,t.changeYear=Mt,t.clear=We,t.close=gt,t.onMouseOver=Xt,t._createElement=Wo,t.createDay=ue,t.destroy=rt,t.isEnabled=Ut,t.jumpToDate=z,t.updateValue=Fn,t.open=bt,t.redraw=kt,t.set=br,t.setDate=it,t.toggle=Vt;function n(){t.utils={getDaysInMonth:function(G,X){return G===void 0&&(G=t.currentMonth),X===void 0&&(X=t.currentYear),G===1&&(X%4===0&&X%100!==0||X%400===0)?29:t.l10n.daysInMonth[G]}}}function i(){t.element=t.input=r,t.isOpen=!1,be(),ze(),ii(),$r(),n(),t.isMobile||te(),N(),(t.selectedDates.length||t.config.noCalendar)&&(t.config.enableTime&&S(t.config.noCalendar?t.latestSelectedDateObj:void 0),Fn(!1)),s();var G=/^((?!chrome|android).)*safari/i.test(navigator.userAgent);!t.isMobile&&G&&dr(),Pt("onReady")}function o(){var G;return((G=t.calendarContainer)===null||G===void 0?void 0:G.getRootNode()).activeElement||document.activeElement}function a(G){return G.bind(t)}function s(){var G=t.config;G.weekNumbers===!1&&G.showMonths===1||G.noCalendar!==!0&&window.requestAnimationFrame(function(){if(t.calendarContainer!==void 0&&(t.calendarContainer.style.visibility="hidden",t.calendarContainer.style.display="block"),t.daysContainer!==void 0){var X=(t.days.offsetWidth+1)*G.showMonths;t.daysContainer.style.width=X+"px",t.calendarContainer.style.width=X+(t.weekWrapper!==void 0?t.weekWrapper.offsetWidth:0)+"px",t.calendarContainer.style.removeProperty("visibility"),t.calendarContainer.style.removeProperty("display")}})}function u(G){if(t.selectedDates.length===0){var X=t.config.minDate===void 0||_h(new Date,t.config.minDate)>=0?new Date:new Date(t.config.minDate.getTime()),oe=yF(t.config);X.setHours(oe.hours,oe.minutes,oe.seconds,X.getMilliseconds()),t.selectedDates=[X],t.latestSelectedDateObj=X}G!==void 0&&G.type!=="blur"&&Nn(G);var we=t._input.value;y(),Fn(),t._input.value!==we&&t._debouncedChange()}function h(G,X){return G%12+12*bh(X===t.l10n.amPM[1])}function d(G){switch(G%24){case 0:case 12:return 12;default:return G%12}}function y(){if(!(t.hourElement===void 0||t.minuteElement===void 0)){var G=(parseInt(t.hourElement.value.slice(-2),10)||0)%24,X=(parseInt(t.minuteElement.value,10)||0)%60,oe=t.secondElement!==void 0?(parseInt(t.secondElement.value,10)||0)%60:0;t.amPM!==void 0&&(G=h(G,t.amPM.textContent));var we=t.config.minTime!==void 0||t.config.minDate&&t.minDateHasTime&&t.latestSelectedDateObj&&_h(t.latestSelectedDateObj,t.config.minDate,!0)===0,Me=t.config.maxTime!==void 0||t.config.maxDate&&t.maxDateHasTime&&t.latestSelectedDateObj&&_h(t.latestSelectedDateObj,t.config.maxDate,!0)===0;if(t.config.maxTime!==void 0&&t.config.minTime!==void 0&&t.config.minTime>t.config.maxTime){var Ve=vF(t.config.minTime.getHours(),t.config.minTime.getMinutes(),t.config.minTime.getSeconds()),Qe=vF(t.config.maxTime.getHours(),t.config.maxTime.getMinutes(),t.config.maxTime.getSeconds()),ke=vF(G,X,oe);if(ke>Qe&&ke<Ve){var je=JMe(Ve);G=je[0],X=je[1],oe=je[2]}}else{if(Me){var at=t.config.maxTime!==void 0?t.config.maxTime:t.config.maxDate;G=Math.min(G,at.getHours()),G===at.getHours()&&(X=Math.min(X,at.getMinutes())),X===at.getMinutes()&&(oe=Math.min(oe,at.getSeconds()))}if(we){var At=t.config.minTime!==void 0?t.config.minTime:t.config.minDate;G=Math.max(G,At.getHours()),G===At.getHours()&&X<At.getMinutes()&&(X=At.getMinutes()),X===At.getMinutes()&&(oe=Math.max(oe,At.getSeconds()))}}k(G,X,oe)}}function S(G){var X=G||t.latestSelectedDateObj;X&&X instanceof Date&&k(X.getHours(),X.getMinutes(),X.getSeconds())}function k(G,X,oe){t.latestSelectedDateObj!==void 0&&t.latestSelectedDateObj.setHours(G%24,X,oe||0,0),!(!t.hourElement||!t.minuteElement||t.isMobile)&&(t.hourElement.value=Dc(t.config.time_24hr?G:(12+G)%12+12*bh(G%12===0)),t.minuteElement.value=Dc(X),t.amPM!==void 0&&(t.amPM.textContent=t.l10n.amPM[bh(G>=12)]),t.secondElement!==void 0&&(t.secondElement.value=Dc(oe)))}function D(G){var X=xh(G),oe=parseInt(X.value)+(G.delta||0);(oe/1e3>1||G.key==="Enter"&&!/[^\d]/.test(oe.toString()))&&Mt(oe)}function M(G,X,oe,we){if(X instanceof Array)return X.forEach(function(Me){return M(G,Me,oe,we)});if(G instanceof Array)return G.forEach(function(Me){return M(Me,X,oe,we)});G.addEventListener(X,oe,we),t._handlers.push({remove:function(){return G.removeEventListener(X,oe,we)}})}function L(){Pt("onChange")}function N(){if(t.config.wrap&&["open","close","toggle","clear"].forEach(function(oe){Array.prototype.forEach.call(t.element.querySelectorAll("[data-"+oe+"]"),function(we){return M(we,"click",t[oe])})}),t.isMobile){yi();return}var G=ZK(_t,50);if(t._debouncedChange=ZK(L,z5t),t.daysContainer&&!/iPhone|iPad|iPod/i.test(navigator.userAgent)&&M(t.daysContainer,"mouseover",function(oe){t.config.mode==="range"&&Xt(xh(oe))}),M(t._input,"keydown",nr),t.calendarContainer!==void 0&&M(t.calendarContainer,"keydown",nr),!t.config.inline&&!t.config.static&&M(window,"resize",G),window.ontouchstart!==void 0?M(window.document,"touchstart",ut):M(window.document,"mousedown",ut),M(window.document,"focus",ut,{capture:!0}),t.config.clickOpens===!0&&(M(t._input,"focus",t.open),M(t._input,"click",t.open)),t.daysContainer!==void 0&&(M(t.monthNav,"click",Yi),M(t.monthNav,["keyup","increment"],D),M(t.daysContainer,"click",fr)),t.timeContainer!==void 0&&t.minuteElement!==void 0&&t.hourElement!==void 0){var X=function(oe){return xh(oe).select()};M(t.timeContainer,["increment"],u),M(t.timeContainer,"blur",u,{capture:!0}),M(t.timeContainer,"click",Z),M([t.hourElement,t.minuteElement],["focus","click"],X),t.secondElement!==void 0&&M(t.secondElement,"focus",function(){return t.secondElement&&t.secondElement.select()}),t.amPM!==void 0&&M(t.amPM,"click",function(oe){u(oe)})}t.config.allowInput&&M(t._input,"blur",hr)}function z(G,X){var oe=G!==void 0?t.parseDate(G):t.latestSelectedDateObj||(t.config.minDate&&t.config.minDate>t.now?t.config.minDate:t.config.maxDate&&t.config.maxDate<t.now?t.config.maxDate:t.now),we=t.currentYear,Me=t.currentMonth;try{oe!==void 0&&(t.currentYear=oe.getFullYear(),t.currentMonth=oe.getMonth())}catch(Ve){Ve.message="Invalid date supplied: "+oe,t.config.errorHandler(Ve)}X&&t.currentYear!==we&&(Pt("onYearChange"),H()),X&&(t.currentYear!==we||t.currentMonth!==Me)&&Pt("onMonthChange"),t.redraw()}function Z(G){var X=xh(G);~X.className.indexOf("arrow")&&$(G,X.classList.contains("arrowUp")?1:-1)}function $(G,X,oe){var we=G&&xh(G),Me=oe||we&&we.parentNode&&we.parentNode.firstChild,Ve=Lr("increment");Ve.delta=X,Me&&Me.dispatchEvent(Ve)}function te(){var G=window.document.createDocumentFragment();if(t.calendarContainer=Wo("div","flatpickr-calendar"),t.calendarContainer.tabIndex=-1,!t.config.noCalendar){if(G.appendChild(pe()),t.innerContainer=Wo("div","flatpickr-innerContainer"),t.config.weekNumbers){var X=ve(),oe=X.weekWrapper,we=X.weekNumbers;t.innerContainer.appendChild(oe),t.weekNumbers=we,t.weekWrapper=oe}t.rContainer=Wo("div","flatpickr-rContainer"),t.rContainer.appendChild(fe()),t.daysContainer||(t.daysContainer=Wo("div","flatpickr-days"),t.daysContainer.tabIndex=-1),j(),t.rContainer.appendChild(t.daysContainer),t.innerContainer.appendChild(t.rContainer),G.appendChild(t.innerContainer)}t.config.enableTime&&G.appendChild(ie()),Ic(t.calendarContainer,"rangeMode",t.config.mode==="range"),Ic(t.calendarContainer,"animate",t.config.animate===!0),Ic(t.calendarContainer,"multiMonth",t.config.showMonths>1),t.calendarContainer.appendChild(G);var Me=t.config.appendTo!==void 0&&t.config.appendTo.nodeType!==void 0;if((t.config.inline||t.config.static)&&(t.calendarContainer.classList.add(t.config.inline?"inline":"static"),t.config.inline&&(!Me&&t.element.parentNode?t.element.parentNode.insertBefore(t.calendarContainer,t._input.nextSibling):t.config.appendTo!==void 0&&t.config.appendTo.appendChild(t.calendarContainer)),t.config.static)){var Ve=Wo("div","flatpickr-wrapper");t.element.parentNode&&t.element.parentNode.insertBefore(Ve,t.element),Ve.appendChild(t.element),t.altInput&&Ve.appendChild(t.altInput),Ve.appendChild(t.calendarContainer)}!t.config.static&&!t.config.inline&&(t.config.appendTo!==void 0?t.config.appendTo:window.document.body).appendChild(t.calendarContainer)}function ue(G,X,oe,we){var Me=Ut(X,!0),Ve=Wo("span",G,X.getDate().toString());return Ve.dateObj=X,Ve.$i=we,Ve.setAttribute("aria-label",t.formatDate(X,t.config.ariaDateFormat)),G.indexOf("hidden")===-1&&_h(X,t.now)===0&&(t.todayDateElem=Ve,Ve.classList.add("today"),Ve.setAttribute("aria-current","date")),Me?(Ve.tabIndex=-1,xr(X)&&(Ve.classList.add("selected"),t.selectedDateElem=Ve,t.config.mode==="range"&&(Ic(Ve,"startRange",t.selectedDates[0]&&_h(X,t.selectedDates[0],!0)===0),Ic(Ve,"endRange",t.selectedDates[1]&&_h(X,t.selectedDates[1],!0)===0),G==="nextMonthDay"&&Ve.classList.add("inRange")))):Ve.classList.add("flatpickr-disabled"),t.config.mode==="range"&&Sn(X)&&!xr(X)&&Ve.classList.add("inRange"),t.weekNumbers&&t.config.showMonths===1&&G!=="prevMonthDay"&&we%7===6&&t.weekNumbers.insertAdjacentHTML("beforeend","<span class='flatpickr-day'>"+t.config.getWeek(X)+"</span>"),Pt("onDayCreate",Ve),Ve}function re(G){G.focus(),t.config.mode==="range"&&Xt(G)}function ce(G){for(var X=G>0?0:t.config.showMonths-1,oe=G>0?t.config.showMonths:-1,we=X;we!=oe;we+=G)for(var Me=t.daysContainer.children[we],Ve=G>0?0:Me.children.length-1,Qe=G>0?Me.children.length:-1,ke=Ve;ke!=Qe;ke+=G){var je=Me.children[ke];if(je.className.indexOf("hidden")===-1&&Ut(je.dateObj))return je}}function de(G,X){for(var oe=G.className.indexOf("Month")===-1?G.dateObj.getMonth():t.currentMonth,we=X>0?t.config.showMonths:-1,Me=X>0?1:-1,Ve=oe-t.currentMonth;Ve!=we;Ve+=Me)for(var Qe=t.daysContainer.children[Ve],ke=oe-t.currentMonth===Ve?G.$i+X:X<0?Qe.children.length-1:0,je=Qe.children.length,at=ke;at>=0&&at<je&&at!=(X>0?je:-1);at+=Me){var At=Qe.children[at];if(At.className.indexOf("hidden")===-1&&Ut(At.dateObj)&&Math.abs(G.$i-at)>=Math.abs(X))return re(At)}t.changeMonth(Me),Ae(ce(Me),0)}function Ae(G,X){var oe=o(),we=Wt(oe||document.body),Me=G!==void 0?G:we?oe:t.selectedDateElem!==void 0&&Wt(t.selectedDateElem)?t.selectedDateElem:t.todayDateElem!==void 0&&Wt(t.todayDateElem)?t.todayDateElem:ce(X>0?1:-1);Me===void 0?t._input.focus():we?de(Me,X):re(Me)}function ye(G,X){for(var oe=(new Date(G,X,1).getDay()-t.l10n.firstDayOfWeek+7)%7,we=t.utils.getDaysInMonth((X-1+12)%12,G),Me=t.utils.getDaysInMonth(X,G),Ve=window.document.createDocumentFragment(),Qe=t.config.showMonths>1,ke=Qe?"prevMonthDay hidden":"prevMonthDay",je=Qe?"nextMonthDay hidden":"nextMonthDay",at=we+1-oe,At=0;at<=we;at++,At++)Ve.appendChild(ue("flatpickr-day "+ke,new Date(G,X-1,at),at,At));for(at=1;at<=Me;at++,At++)Ve.appendChild(ue("flatpickr-day",new Date(G,X,at),at,At));for(var zt=Me+1;zt<=42-oe&&(t.config.showMonths===1||At%7!==0);zt++,At++)Ve.appendChild(ue("flatpickr-day "+je,new Date(G,X+1,zt%Me),zt,At));var Dt=Wo("div","dayContainer");return Dt.appendChild(Ve),Dt}function j(){if(t.daysContainer!==void 0){jC(t.daysContainer),t.weekNumbers&&jC(t.weekNumbers);for(var G=document.createDocumentFragment(),X=0;X<t.config.showMonths;X++){var oe=new Date(t.currentYear,t.currentMonth,1);oe.setMonth(t.currentMonth+X),G.appendChild(ye(oe.getFullYear(),oe.getMonth()))}t.daysContainer.appendChild(G),t.days=t.daysContainer.firstChild,t.config.mode==="range"&&t.selectedDates.length===1&&Xt()}}function H(){if(!(t.config.showMonths>1||t.config.monthSelectorType!=="dropdown")){var G=function(we){return t.config.minDate!==void 0&&t.currentYear===t.config.minDate.getFullYear()&&we<t.config.minDate.getMonth()?!1:!(t.config.maxDate!==void 0&&t.currentYear===t.config.maxDate.getFullYear()&&we>t.config.maxDate.getMonth())};t.monthsDropdownContainer.tabIndex=-1,t.monthsDropdownContainer.innerHTML="";for(var X=0;X<12;X++)if(G(X)){var oe=Wo("option","flatpickr-monthDropdown-month");oe.value=new Date(t.currentYear,X).getMonth().toString(),oe.textContent=HC(X,t.config.shorthandCurrentMonth,t.l10n),oe.tabIndex=-1,t.currentMonth===X&&(oe.selected=!0),t.monthsDropdownContainer.appendChild(oe)}}}function xe(){var G=Wo("div","flatpickr-month"),X=window.document.createDocumentFragment(),oe;t.config.showMonths>1||t.config.monthSelectorType==="static"?oe=Wo("span","cur-month"):(t.monthsDropdownContainer=Wo("select","flatpickr-monthDropdown-months"),t.monthsDropdownContainer.setAttribute("aria-label",t.l10n.monthAriaLabel),M(t.monthsDropdownContainer,"change",function(Qe){var ke=xh(Qe),je=parseInt(ke.value,10);t.changeMonth(je-t.currentMonth),Pt("onMonthChange")}),H(),oe=t.monthsDropdownContainer);var we=UC("cur-year",{tabindex:"-1"}),Me=we.getElementsByTagName("input")[0];Me.setAttribute("aria-label",t.l10n.yearAriaLabel),t.config.minDate&&Me.setAttribute("min",t.config.minDate.getFullYear().toString()),t.config.maxDate&&(Me.setAttribute("max",t.config.maxDate.getFullYear().toString()),Me.disabled=!!t.config.minDate&&t.config.minDate.getFullYear()===t.config.maxDate.getFullYear());var Ve=Wo("div","flatpickr-current-month");return Ve.appendChild(oe),Ve.appendChild(we),X.appendChild(Ve),G.appendChild(X),{container:G,yearElement:Me,monthElement:oe}}function Ie(){jC(t.monthNav),t.monthNav.appendChild(t.prevMonthNav),t.config.showMonths&&(t.yearElements=[],t.monthElements=[]);for(var G=t.config.showMonths;G--;){var X=xe();t.yearElements.push(X.yearElement),t.monthElements.push(X.monthElement),t.monthNav.appendChild(X.container)}t.monthNav.appendChild(t.nextMonthNav)}function pe(){return t.monthNav=Wo("div","flatpickr-months"),t.yearElements=[],t.monthElements=[],t.prevMonthNav=Wo("span","flatpickr-prev-month"),t.prevMonthNav.innerHTML=t.config.prevArrow,t.nextMonthNav=Wo("span","flatpickr-next-month"),t.nextMonthNav.innerHTML=t.config.nextArrow,Ie(),Object.defineProperty(t,"_hidePrevMonthArrow",{get:function(){return t.__hidePrevMonthArrow},set:function(G){t.__hidePrevMonthArrow!==G&&(Ic(t.prevMonthNav,"flatpickr-disabled",G),t.__hidePrevMonthArrow=G)}}),Object.defineProperty(t,"_hideNextMonthArrow",{get:function(){return t.__hideNextMonthArrow},set:function(G){t.__hideNextMonthArrow!==G&&(Ic(t.nextMonthNav,"flatpickr-disabled",G),t.__hideNextMonthArrow=G)}}),t.currentYearElement=t.yearElements[0],zn(),t.monthNav}function ie(){t.calendarContainer.classList.add("hasTime"),t.config.noCalendar&&t.calendarContainer.classList.add("noCalendar");var G=yF(t.config);t.timeContainer=Wo("div","flatpickr-time"),t.timeContainer.tabIndex=-1;var X=Wo("span","flatpickr-time-separator",":"),oe=UC("flatpickr-hour",{"aria-label":t.l10n.hourAriaLabel});t.hourElement=oe.getElementsByTagName("input")[0];var we=UC("flatpickr-minute",{"aria-label":t.l10n.minuteAriaLabel});if(t.minuteElement=we.getElementsByTagName("input")[0],t.hourElement.tabIndex=t.minuteElement.tabIndex=-1,t.hourElement.value=Dc(t.latestSelectedDateObj?t.latestSelectedDateObj.getHours():t.config.time_24hr?G.hours:d(G.hours)),t.minuteElement.value=Dc(t.latestSelectedDateObj?t.latestSelectedDateObj.getMinutes():G.minutes),t.hourElement.setAttribute("step",t.config.hourIncrement.toString()),t.minuteElement.setAttribute("step",t.config.minuteIncrement.toString()),t.hourElement.setAttribute("min",t.config.time_24hr?"0":"1"),t.hourElement.setAttribute("max",t.config.time_24hr?"23":"12"),t.hourElement.setAttribute("maxlength","2"),t.minuteElement.setAttribute("min","0"),t.minuteElement.setAttribute("max","59"),t.minuteElement.setAttribute("maxlength","2"),t.timeContainer.appendChild(oe),t.timeContainer.appendChild(X),t.timeContainer.appendChild(we),t.config.time_24hr&&t.timeContainer.classList.add("time24hr"),t.config.enableSeconds){t.timeContainer.classList.add("hasSeconds");var Me=UC("flatpickr-second");t.secondElement=Me.getElementsByTagName("input")[0],t.secondElement.value=Dc(t.latestSelectedDateObj?t.latestSelectedDateObj.getSeconds():G.seconds),t.secondElement.setAttribute("step",t.minuteElement.getAttribute("step")),t.secondElement.setAttribute("min","0"),t.secondElement.setAttribute("max","59"),t.secondElement.setAttribute("maxlength","2"),t.timeContainer.appendChild(Wo("span","flatpickr-time-separator",":")),t.timeContainer.appendChild(Me)}return t.config.time_24hr||(t.amPM=Wo("span","flatpickr-am-pm",t.l10n.amPM[bh((t.latestSelectedDateObj?t.hourElement.value:t.config.defaultHour)>11)]),t.amPM.title=t.l10n.toggleTitle,t.amPM.tabIndex=-1,t.timeContainer.appendChild(t.amPM)),t.timeContainer}function fe(){t.weekdayContainer?jC(t.weekdayContainer):t.weekdayContainer=Wo("div","flatpickr-weekdays");for(var G=t.config.showMonths;G--;){var X=Wo("div","flatpickr-weekdaycontainer");t.weekdayContainer.appendChild(X)}return Pe(),t.weekdayContainer}function Pe(){if(t.weekdayContainer){var G=t.l10n.firstDayOfWeek,X=ePe(t.l10n.weekdays.shorthand);G>0&&G<X.length&&(X=ePe(X.splice(G,X.length),X.splice(0,G)));for(var oe=t.config.showMonths;oe--;)t.weekdayContainer.children[oe].innerHTML=`
|
|
657
657
|
<span class='flatpickr-weekday'>
|
|
658
658
|
`+X.join("</span><span class='flatpickr-weekday'>")+`
|
|
659
659
|
</span>
|
|
@@ -726,7 +726,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
726
726
|
/>
|
|
727
727
|
</circle>`;var i=function o(){if(!n.parentElement){setTimeout(o,0);return}n.pauseAnimations()};return"pauseAnimations"in n&&i(),n};var AY=function(e){var t=e.environment,n=t.document.createElementNS("http://www.w3.org/2000/svg","svg");n.setAttribute("class","aa-SubmitIcon"),n.setAttribute("viewBox","0 0 24 24"),n.setAttribute("width","20"),n.setAttribute("height","20"),n.setAttribute("fill","currentColor");var i=t.document.createElementNS("http://www.w3.org/2000/svg","path");return i.setAttribute("d","M16.041 15.856c-0.034 0.026-0.067 0.055-0.099 0.087s-0.060 0.064-0.087 0.099c-1.258 1.213-2.969 1.958-4.855 1.958-1.933 0-3.682-0.782-4.95-2.050s-2.050-3.017-2.050-4.95 0.782-3.682 2.050-4.95 3.017-2.050 4.95-2.050 3.682 0.782 4.95 2.050 2.050 3.017 2.050 4.95c0 1.886-0.745 3.597-1.959 4.856zM21.707 20.293l-3.675-3.675c1.231-1.54 1.968-3.493 1.968-5.618 0-2.485-1.008-4.736-2.636-6.364s-3.879-2.636-6.364-2.636-4.736 1.008-6.364 2.636-2.636 3.879-2.636 6.364 1.008 4.736 2.636 6.364 3.879 2.636 6.364 2.636c2.125 0 4.078-0.737 5.618-1.968l3.675 3.675c0.391 0.391 1.024 0.391 1.414 0s0.391-1.024 0-1.414z"),n.appendChild(i),n};function jO(r){"@babel/helpers - typeof";return jO=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},jO(r)}function _Be(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable})),t.push.apply(t,n)}return t}function Yb(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?_Be(Object(t),!0).forEach(function(n){sKt(r,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):_Be(Object(t)).forEach(function(n){Object.defineProperty(r,n,Object.getOwnPropertyDescriptor(t,n))})}return r}function sKt(r,e,t){return e=lKt(e),e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}function lKt(r){var e=uKt(r,"string");return jO(e)==="symbol"?e:String(e)}function uKt(r,e){if(jO(r)!=="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var n=t.call(r,e||"default");if(jO(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}function wBe(r){var e=r.autocomplete,t=r.autocompleteScopeApi,n=r.classNames,i=r.environment,o=r.isDetached,a=r.placeholder,s=a===void 0?"Search":a,u=r.propGetters,h=r.setIsModalOpen,d=r.state,y=r.translations,S=oB(i),k=u.getRootProps(Yb({state:d,props:e.getRootProps({})},t)),D=S("div",Yb({class:n.root},k)),M=S("div",{class:n.detachedContainer,onMouseDown:function(se){se.stopPropagation()}}),L=S("div",{class:n.detachedOverlay,children:[M],onMouseDown:function(){h(!1),e.setIsOpen(!1)}}),N=u.getLabelProps(Yb({state:d,props:e.getLabelProps({})},t)),z=S("button",{class:n.submitButton,type:"submit",title:y.submitButtonTitle,children:[AY({environment:i})]}),Z=S("label",Yb({class:n.label,children:[z],ariaLabel:y.submitButtonTitle},N)),$=S("button",{class:n.clearButton,type:"reset",title:y.clearButtonTitle,children:[sBe({environment:i})]}),te=S("div",{class:n.loadingIndicator,children:[xBe({environment:i})]}),ue=bBe({class:n.input,environment:i,state:d,getInputProps:u.getInputProps,getInputPropsCore:e.getInputProps,autocompleteScopeApi:t,isDetached:o}),re=S("div",{class:n.inputWrapperPrefix,children:[Z,te]}),ce=S("div",{class:n.inputWrapperSuffix,children:[$]}),de=S("div",{class:n.inputWrapper,children:[ue]}),Ae=u.getFormProps(Yb({state:d,props:e.getFormProps({inputElement:ue})},t)),ye=S("form",Yb({class:n.form,children:[re,de,ce]},Ae)),j=u.getPanelProps(Yb({state:d,props:e.getPanelProps({})},t)),H=S("div",Yb({class:n.panel},j)),xe=S("div",{class:n.detachedSearchButtonQuery,textContent:d.query}),Ie=S("div",{class:n.detachedSearchButtonPlaceholder,hidden:!!d.query,textContent:s});if(o){var pe=S("div",{class:n.detachedSearchButtonIcon,ariaLabel:y.detachedSearchButtonTitle,children:[AY({environment:i})]}),ie=S("button",{type:"button",class:n.detachedSearchButton,title:y.detachedSearchButtonTitle,id:N.id,onClick:function(){h(!0)},children:[pe,Ie,xe]}),fe=S("button",{type:"button",class:n.detachedCancelButton,textContent:y.detachedCancelButtonText,onTouchStart:function(se){se.stopPropagation()},onClick:function(){e.setIsOpen(!1),h(!1)}}),Pe=S("div",{class:n.detachedFormContainer,children:[ye,fe]});M.appendChild(Pe),D.appendChild(ie)}else D.appendChild(ye);return{detachedContainer:M,detachedOverlay:L,detachedSearchButtonQuery:xe,detachedSearchButtonPlaceholder:Ie,inputWrapper:de,input:ue,root:D,form:ye,label:Z,submitButton:z,clearButton:$,loadingIndicator:te,panel:H}}function SBe(){var r=[],e=[];function t(n){r.push(n);var i=n();e.push(i)}return{runEffect:t,cleanupEffects:function(){var i=e;e=[],i.forEach(function(o){o()})},runEffects:function(){var i=r;r=[],i.forEach(function(o){t(o)})}}}function EBe(){var r=[];return{reactive:function(t){var n=t(),i={_fn:t,_ref:{current:n},get value(){return this._ref.current},set value(o){this._ref.current=o}};return r.push(i),i},runReactives:function(){r.forEach(function(t){t._ref.current=t._fn()})}}}var cB,ms,OBe,cKt,y_,TBe,DBe,IBe,MBe,IY,CY,OY,fKt,UO={},PBe=[],hKt=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,fB=Array.isArray;function Vv(r,e){for(var t in e)r[t]=e[t];return r}function MY(r){r&&r.parentNode&&r.parentNode.removeChild(r)}function PY(r,e,t){var n,i,o,a={};for(o in e)o=="key"?n=e[o]:o=="ref"?i=e[o]:a[o]=e[o];if(arguments.length>2&&(a.children=arguments.length>3?cB.call(arguments,2):t),typeof r=="function"&&r.defaultProps!=null)for(o in r.defaultProps)a[o]===void 0&&(a[o]=r.defaultProps[o]);return sB(r,a,n,i,null)}function sB(r,e,t,n,i){var o={type:r,props:e,key:t,ref:n,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:i??++OBe,__i:-1,__u:0};return i==null&&ms.vnode!=null&&ms.vnode(o),o}function _E(r){return r.children}function lB(r,e){this.props=r,this.context=e}function xE(r,e){if(e==null)return r.__?xE(r.__,r.__i+1):null;for(var t;e<r.__k.length;e++)if((t=r.__k[e])!=null&&t.__e!=null)return t.__e;return typeof r.type=="function"?xE(r):null}function LBe(r){var e,t;if((r=r.__)!=null&&r.__c!=null){for(r.__e=r.__c.base=null,e=0;e<r.__k.length;e++)if((t=r.__k[e])!=null&&t.__e!=null){r.__e=r.__c.base=t.__e;break}return LBe(r)}}function kBe(r){(!r.__d&&(r.__d=!0)&&y_.push(r)&&!uB.__r++||TBe!=ms.debounceRendering)&&((TBe=ms.debounceRendering)||DBe)(uB)}function uB(){for(var r,e,t,n,i,o,a,s=1;y_.length;)y_.length>s&&y_.sort(IBe),r=y_.shift(),s=y_.length,r.__d&&(t=void 0,n=void 0,i=(n=(e=r).__v).__e,o=[],a=[],e.__P&&((t=Vv({},n)).__v=n.__v+1,ms.vnode&&ms.vnode(t),LY(e.__P,t,n,e.__n,e.__P.namespaceURI,32&n.__u?[i]:null,o,i??xE(n),!!(32&n.__u),a),t.__v=n.__v,t.__.__k[t.__i]=t,FBe(o,t,a),n.__e=n.__=null,t.__e!=i&&LBe(t)));uB.__r=0}function RBe(r,e,t,n,i,o,a,s,u,h,d){var y,S,k,D,M,L,N,z=n&&n.__k||PBe,Z=e.length;for(u=dKt(t,e,z,u,Z),y=0;y<Z;y++)(k=t.__k[y])!=null&&(S=k.__i==-1?UO:z[k.__i]||UO,k.__i=y,L=LY(r,k,S,i,o,a,s,u,h,d),D=k.__e,k.ref&&S.ref!=k.ref&&(S.ref&&RY(S.ref,null,k),d.push(k.ref,k.__c||D,k)),M==null&&D!=null&&(M=D),(N=!!(4&k.__u))||S.__k===k.__k?u=qBe(k,u,r,N):typeof k.type=="function"&&L!==void 0?u=L:D&&(u=D.nextSibling),k.__u&=-7);return t.__e=M,u}function dKt(r,e,t,n,i){var o,a,s,u,h,d=t.length,y=d,S=0;for(r.__k=new Array(i),o=0;o<i;o++)(a=e[o])!=null&&typeof a!="boolean"&&typeof a!="function"?(u=o+S,(a=r.__k[o]=typeof a=="string"||typeof a=="number"||typeof a=="bigint"||a.constructor==String?sB(null,a,null,null,null):fB(a)?sB(_E,{children:a},null,null,null):a.constructor==null&&a.__b>0?sB(a.type,a.props,a.key,a.ref?a.ref:null,a.__v):a).__=r,a.__b=r.__b+1,s=null,(h=a.__i=pKt(a,t,u,y))!=-1&&(y--,(s=t[h])&&(s.__u|=2)),s==null||s.__v==null?(h==-1&&(i>d?S--:i<d&&S++),typeof a.type!="function"&&(a.__u|=4)):h!=u&&(h==u-1?S--:h==u+1?S++:(h>u?S--:S++,a.__u|=4))):r.__k[o]=null;if(y)for(o=0;o<d;o++)(s=t[o])!=null&&(2&s.__u)==0&&(s.__e==n&&(n=xE(s)),BBe(s,s));return n}function qBe(r,e,t,n){var i,o;if(typeof r.type=="function"){for(i=r.__k,o=0;i&&o<i.length;o++)i[o]&&(i[o].__=r,e=qBe(i[o],e,t,n));return e}r.__e!=e&&(n&&(e&&r.type&&!e.parentNode&&(e=xE(r)),t.insertBefore(r.__e,e||null)),e=r.__e);do e=e&&e.nextSibling;while(e!=null&&e.nodeType==8);return e}function pKt(r,e,t,n){var i,o,a,s=r.key,u=r.type,h=e[t],d=h!=null&&(2&h.__u)==0;if(h===null&&r.key==null||d&&s==h.key&&u==h.type)return t;if(n>(d?1:0)){for(i=t-1,o=t+1;i>=0||o<e.length;)if((h=e[a=i>=0?i--:o++])!=null&&(2&h.__u)==0&&s==h.key&&u==h.type)return a}return-1}function ABe(r,e,t){e[0]=="-"?r.setProperty(e,t??""):r[e]=t==null?"":typeof t!="number"||hKt.test(e)?t:t+"px"}function aB(r,e,t,n,i){var o,a;e:if(e=="style")if(typeof t=="string")r.style.cssText=t;else{if(typeof n=="string"&&(r.style.cssText=n=""),n)for(e in n)t&&e in t||ABe(r.style,e,"");if(t)for(e in t)n&&t[e]==n[e]||ABe(r.style,e,t[e])}else if(e[0]=="o"&&e[1]=="n")o=e!=(e=e.replace(MBe,"$1")),a=e.toLowerCase(),e=a in r||e=="onFocusOut"||e=="onFocusIn"?a.slice(2):e.slice(2),r.l||(r.l={}),r.l[e+o]=t,t?n?t.u=n.u:(t.u=IY,r.addEventListener(e,o?OY:CY,o)):r.removeEventListener(e,o?OY:CY,o);else{if(i=="http://www.w3.org/2000/svg")e=e.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(e!="width"&&e!="height"&&e!="href"&&e!="list"&&e!="form"&&e!="tabIndex"&&e!="download"&&e!="rowSpan"&&e!="colSpan"&&e!="role"&&e!="popover"&&e in r)try{r[e]=t??"";break e}catch{}typeof t=="function"||(t==null||t===!1&&e[4]!="-"?r.removeAttribute(e):r.setAttribute(e,e=="popover"&&t==1?"":t))}}function CBe(r){return function(e){if(this.l){var t=this.l[e.type+r];if(e.t==null)e.t=IY++;else if(e.t<t.u)return;return t(ms.event?ms.event(e):e)}}}function LY(r,e,t,n,i,o,a,s,u,h){var d,y,S,k,D,M,L,N,z,Z,$,te,ue,re,ce,de,Ae,ye=e.type;if(e.constructor!=null)return null;128&t.__u&&(u=!!(32&t.__u),o=[s=e.__e=t.__e]),(d=ms.__b)&&d(e);e:if(typeof ye=="function")try{if(N=e.props,z="prototype"in ye&&ye.prototype.render,Z=(d=ye.contextType)&&n[d.__c],$=d?Z?Z.props.value:d.__:n,t.__c?L=(y=e.__c=t.__c).__=y.__E:(z?e.__c=y=new ye(N,$):(e.__c=y=new lB(N,$),y.constructor=ye,y.render=gKt),Z&&Z.sub(y),y.props=N,y.state||(y.state={}),y.context=$,y.__n=n,S=y.__d=!0,y.__h=[],y._sb=[]),z&&y.__s==null&&(y.__s=y.state),z&&ye.getDerivedStateFromProps!=null&&(y.__s==y.state&&(y.__s=Vv({},y.__s)),Vv(y.__s,ye.getDerivedStateFromProps(N,y.__s))),k=y.props,D=y.state,y.__v=e,S)z&&ye.getDerivedStateFromProps==null&&y.componentWillMount!=null&&y.componentWillMount(),z&&y.componentDidMount!=null&&y.__h.push(y.componentDidMount);else{if(z&&ye.getDerivedStateFromProps==null&&N!==k&&y.componentWillReceiveProps!=null&&y.componentWillReceiveProps(N,$),!y.__e&&y.shouldComponentUpdate!=null&&y.shouldComponentUpdate(N,y.__s,$)===!1||e.__v==t.__v){for(e.__v!=t.__v&&(y.props=N,y.state=y.__s,y.__d=!1),e.__e=t.__e,e.__k=t.__k,e.__k.some(function(j){j&&(j.__=e)}),te=0;te<y._sb.length;te++)y.__h.push(y._sb[te]);y._sb=[],y.__h.length&&a.push(y);break e}y.componentWillUpdate!=null&&y.componentWillUpdate(N,y.__s,$),z&&y.componentDidUpdate!=null&&y.__h.push(function(){y.componentDidUpdate(k,D,M)})}if(y.context=$,y.props=N,y.__P=r,y.__e=!1,ue=ms.__r,re=0,z){for(y.state=y.__s,y.__d=!1,ue&&ue(e),d=y.render(y.props,y.state,y.context),ce=0;ce<y._sb.length;ce++)y.__h.push(y._sb[ce]);y._sb=[]}else do y.__d=!1,ue&&ue(e),d=y.render(y.props,y.state,y.context),y.state=y.__s;while(y.__d&&++re<25);y.state=y.__s,y.getChildContext!=null&&(n=Vv(Vv({},n),y.getChildContext())),z&&!S&&y.getSnapshotBeforeUpdate!=null&&(M=y.getSnapshotBeforeUpdate(k,D)),de=d,d!=null&&d.type===_E&&d.key==null&&(de=NBe(d.props.children)),s=RBe(r,fB(de)?de:[de],e,t,n,i,o,a,s,u,h),y.base=e.__e,e.__u&=-161,y.__h.length&&a.push(y),L&&(y.__E=y.__=null)}catch(j){if(e.__v=null,u||o!=null)if(j.then){for(e.__u|=u?160:128;s&&s.nodeType==8&&s.nextSibling;)s=s.nextSibling;o[o.indexOf(s)]=null,e.__e=s}else{for(Ae=o.length;Ae--;)MY(o[Ae]);DY(e)}else e.__e=t.__e,e.__k=t.__k,j.then||DY(e);ms.__e(j,e,t)}else o==null&&e.__v==t.__v?(e.__k=t.__k,e.__e=t.__e):s=e.__e=mKt(t.__e,e,t,n,i,o,a,u,h);return(d=ms.diffed)&&d(e),128&e.__u?void 0:s}function DY(r){r&&r.__c&&(r.__c.__e=!0),r&&r.__k&&r.__k.forEach(DY)}function FBe(r,e,t){for(var n=0;n<t.length;n++)RY(t[n],t[++n],t[++n]);ms.__c&&ms.__c(e,r),r.some(function(i){try{r=i.__h,i.__h=[],r.some(function(o){o.call(i)})}catch(o){ms.__e(o,i.__v)}})}function NBe(r){return typeof r!="object"||r==null||r.__b&&r.__b>0?r:fB(r)?r.map(NBe):Vv({},r)}function mKt(r,e,t,n,i,o,a,s,u){var h,d,y,S,k,D,M,L=t.props,N=e.props,z=e.type;if(z=="svg"?i="http://www.w3.org/2000/svg":z=="math"?i="http://www.w3.org/1998/Math/MathML":i||(i="http://www.w3.org/1999/xhtml"),o!=null){for(h=0;h<o.length;h++)if((k=o[h])&&"setAttribute"in k==!!z&&(z?k.localName==z:k.nodeType==3)){r=k,o[h]=null;break}}if(r==null){if(z==null)return document.createTextNode(N);r=document.createElementNS(i,z,N.is&&N),s&&(ms.__m&&ms.__m(e,o),s=!1),o=null}if(z==null)L===N||s&&r.data==N||(r.data=N);else{if(o=o&&cB.call(r.childNodes),L=t.props||UO,!s&&o!=null)for(L={},h=0;h<r.attributes.length;h++)L[(k=r.attributes[h]).name]=k.value;for(h in L)if(k=L[h],h!="children"){if(h=="dangerouslySetInnerHTML")y=k;else if(!(h in N)){if(h=="value"&&"defaultValue"in N||h=="checked"&&"defaultChecked"in N)continue;aB(r,h,null,k,i)}}for(h in N)k=N[h],h=="children"?S=k:h=="dangerouslySetInnerHTML"?d=k:h=="value"?D=k:h=="checked"?M=k:s&&typeof k!="function"||L[h]===k||aB(r,h,k,L[h],i);if(d)s||y&&(d.__html==y.__html||d.__html==r.innerHTML)||(r.innerHTML=d.__html),e.__k=[];else if(y&&(r.innerHTML=""),RBe(e.type=="template"?r.content:r,fB(S)?S:[S],e,t,n,z=="foreignObject"?"http://www.w3.org/1999/xhtml":i,o,a,o?o[0]:t.__k&&xE(t,0),s,u),o!=null)for(h=o.length;h--;)MY(o[h]);s||(h="value",z=="progress"&&D==null?r.removeAttribute("value"):D!=null&&(D!==r[h]||z=="progress"&&!D||z=="option"&&D!=L[h])&&aB(r,h,D,L[h],i),h="checked",M!=null&&M!=r[h]&&aB(r,h,M,L[h],i))}return r}function RY(r,e,t){try{if(typeof r=="function"){var n=typeof r.__u=="function";n&&r.__u(),n&&e==null||(r.__u=r(e))}else r.current=e}catch(i){ms.__e(i,t)}}function BBe(r,e,t){var n,i;if(ms.unmount&&ms.unmount(r),(n=r.ref)&&(n.current&&n.current!=r.__e||RY(n,null,e)),(n=r.__c)!=null){if(n.componentWillUnmount)try{n.componentWillUnmount()}catch(o){ms.__e(o,e)}n.base=n.__P=null}if(n=r.__k)for(i=0;i<n.length;i++)n[i]&&BBe(n[i],e,t||typeof r.type!="function");t||MY(r.__e),r.__c=r.__=r.__e=void 0}function gKt(r,e,t){return this.constructor(r,t)}function zBe(r,e,t){var n,i,o,a;e==document&&(e=document.documentElement),ms.__&&ms.__(r,e),i=(n=typeof t=="function")?null:t&&t.__k||e.__k,o=[],a=[],LY(e,r=(!n&&t||e).__k=PY(_E,null,[r]),i||UO,UO,e.namespaceURI,!n&&t?[t]:i?null:e.firstChild?cB.call(e.childNodes):null,o,!n&&t?t:i?i.__e:e.firstChild,n,a),FBe(o,r,a)}cB=PBe.slice,ms={__e:function(r,e,t,n){for(var i,o,a;e=e.__;)if((i=e.__c)&&!i.__)try{if((o=i.constructor)&&o.getDerivedStateFromError!=null&&(i.setState(o.getDerivedStateFromError(r)),a=i.__d),i.componentDidCatch!=null&&(i.componentDidCatch(r,n||{}),a=i.__d),a)return i.__E=i}catch(s){r=s}throw r}},OBe=0,cKt=function(r){return r!=null&&r.constructor==null},lB.prototype.setState=function(r,e){var t;t=this.__s!=null&&this.__s!=this.state?this.__s:this.__s=Vv({},this.state),typeof r=="function"&&(r=r(Vv({},t),this.props)),r&&Vv(t,r),r!=null&&this.__v&&(e&&this._sb.push(e),kBe(this))},lB.prototype.forceUpdate=function(r){this.__v&&(this.__e=!0,r&&this.__h.push(r),kBe(this))},lB.prototype.render=_E,y_=[],DBe=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,IBe=function(r,e){return r.__v.__b-e.__v.__b},uB.__r=0,MBe=/(PointerCapture)$|Capture$/i,IY=0,CY=CBe(!1),OY=CBe(!0),fKt=0;var jBe="__aa-highlight__",UBe="__/aa-highlight__";function vKt(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],e=r;return{get:function(){return e},add:function(n){var i=e[e.length-1];i?.isHighlighted===n.isHighlighted?e[e.length-1]={value:i.value+n.value,isHighlighted:i.isHighlighted}:e.push(n)}}}function hB(r){var e=r.highlightedValue,t=e.split(jBe),n=t.shift(),i=vKt(n?[{value:n,isHighlighted:!1}]:[]);return t.forEach(function(o){var a=o.split(UBe);i.add({value:a[0],isHighlighted:!0}),a[1]!==""&&i.add({value:a[1],isHighlighted:!1})}),i.get()}function yKt(r){return wKt(r)||_Kt(r)||xKt(r)||bKt()}function bKt(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
728
728
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function xKt(r,e){if(r){if(typeof r=="string")return qY(r,e);var t=Object.prototype.toString.call(r).slice(8,-1);if(t==="Object"&&r.constructor&&(t=r.constructor.name),t==="Map"||t==="Set")return Array.from(r);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return qY(r,e)}}function _Kt(r){if(typeof Symbol<"u"&&r[Symbol.iterator]!=null||r["@@iterator"]!=null)return Array.from(r)}function wKt(r){if(Array.isArray(r))return qY(r)}function qY(r,e){(e==null||e>r.length)&&(e=r.length);for(var t=0,n=new Array(e);t<e;t++)n[t]=r[t];return n}function dB(r){var e=r.hit,t=r.attribute,n=Array.isArray(t)?t:[t],i=fE(e,["_highlightResult"].concat(yKt(n),["value"]));return typeof i!="string"&&(i=fE(e,n)||""),hB({highlightedValue:i})}var SKt={"&":"&","<":"<",">":">",""":'"',"'":"'"},EKt=new RegExp(/\w/i),HBe=/&(amp|quot|lt|gt|#39);/g,TKt=RegExp(HBe.source);function kKt(r){return r&&TKt.test(r)?r.replace(HBe,function(e){return SKt[e]}):r}function VBe(r,e){var t,n,i=r[e],o=((t=r[e+1])===null||t===void 0?void 0:t.isHighlighted)||!0,a=((n=r[e-1])===null||n===void 0?void 0:n.isHighlighted)||!0;return!EKt.test(kKt(i.value))&&a===o?a:i.isHighlighted}function HO(r){"@babel/helpers - typeof";return HO=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},HO(r)}function WBe(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable})),t.push.apply(t,n)}return t}function pB(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?WBe(Object(t),!0).forEach(function(n){AKt(r,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):WBe(Object(t)).forEach(function(n){Object.defineProperty(r,n,Object.getOwnPropertyDescriptor(t,n))})}return r}function AKt(r,e,t){return e=CKt(e),e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}function CKt(r){var e=OKt(r,"string");return HO(e)==="symbol"?e:String(e)}function OKt(r,e){if(HO(r)!=="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var n=t.call(r,e||"default");if(HO(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}function mB(r){return r.some(function(e){return e.isHighlighted})?r.map(function(e,t){return pB(pB({},e),{},{isHighlighted:!VBe(r,t)})}):r.map(function(e){return pB(pB({},e),{},{isHighlighted:!1})})}function $Be(r){return mB(dB(r))}function DKt(r){return LKt(r)||PKt(r)||MKt(r)||IKt()}function IKt(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
729
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function MKt(r,e){if(r){if(typeof r=="string")return FY(r,e);var t=Object.prototype.toString.call(r).slice(8,-1);if(t==="Object"&&r.constructor&&(t=r.constructor.name),t==="Map"||t==="Set")return Array.from(r);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return FY(r,e)}}function PKt(r){if(typeof Symbol<"u"&&r[Symbol.iterator]!=null||r["@@iterator"]!=null)return Array.from(r)}function LKt(r){if(Array.isArray(r))return FY(r)}function FY(r,e){(e==null||e>r.length)&&(e=r.length);for(var t=0,n=new Array(e);t<e;t++)n[t]=r[t];return n}function gB(r){var e=r.hit,t=r.attribute,n=Array.isArray(t)?t:[t],i=fE(e,["_snippetResult"].concat(DKt(n),["value"]));return typeof i!="string"&&(i=fE(e,n)||""),hB({highlightedValue:i})}function KBe(r){return mB(gB(r))}function GBe(r){var e=r.createElement,t=r.Fragment;function n(i){var o=i.hit,a=i.attribute,s=i.tagName,u=s===void 0?"mark":s;return e(t,{},dB({hit:o,attribute:a}).map(function(h,d){return h.isHighlighted?e(u,{key:d},h.value):h.value}))}return n.__autocomplete_componentName="Highlight",n}function YBe(r){var e=r.createElement,t=r.Fragment;function n(i){var o=i.hit,a=i.attribute,s=i.tagName,u=s===void 0?"mark":s;return e(t,{},$Be({hit:o,attribute:a}).map(function(h,d){return h.isHighlighted?e(u,{key:d},h.value):h.value}))}return n.__autocomplete_componentName="ReverseHighlight",n}function ZBe(r){var e=r.createElement,t=r.Fragment;function n(i){var o=i.hit,a=i.attribute,s=i.tagName,u=s===void 0?"mark":s;return e(t,{},KBe({hit:o,attribute:a}).map(function(h,d){return h.isHighlighted?e(u,{key:d},h.value):h.value}))}return n.__autocomplete_componentName="ReverseSnippet",n}function XBe(r){var e=r.createElement,t=r.Fragment;function n(i){var o=i.hit,a=i.attribute,s=i.tagName,u=s===void 0?"mark":s;return e(t,{},gB({hit:o,attribute:a}).map(function(h,d){return h.isHighlighted?e(u,{key:d},h.value):h.value}))}return n.__autocomplete_componentName="Snippet",n}function VO(r){"@babel/helpers - typeof";return VO=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},VO(r)}var RKt=["classNames","container","getEnvironmentProps","getFormProps","getInputProps","getItemProps","getLabelProps","getListProps","getPanelProps","getRootProps","panelContainer","panelPlacement","render","renderNoResults","renderer","detachedMediaQuery","components","translations"];function JBe(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable})),t.push.apply(t,n)}return t}function Zb(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?JBe(Object(t),!0).forEach(function(n){qKt(r,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):JBe(Object(t)).forEach(function(n){Object.defineProperty(r,n,Object.getOwnPropertyDescriptor(t,n))})}return r}function qKt(r,e,t){return e=FKt(e),e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}function FKt(r){var e=NKt(r,"string");return VO(e)==="symbol"?e:String(e)}function NKt(r,e){if(VO(r)!=="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var n=t.call(r,e||"default");if(VO(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}function BKt(r,e){if(r==null)return{};var t=zKt(r,e),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(r);for(i=0;i<o.length;i++)n=o[i],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(r,n)&&(t[n]=r[n])}return t}function zKt(r,e){if(r==null)return{};var t={},n=Object.keys(r),i,o;for(o=0;o<n.length;o++)i=n[o],!(e.indexOf(i)>=0)&&(t[i]=r[i]);return t}var jKt={clearButton:"aa-ClearButton",detachedCancelButton:"aa-DetachedCancelButton",detachedContainer:"aa-DetachedContainer",detachedFormContainer:"aa-DetachedFormContainer",detachedOverlay:"aa-DetachedOverlay",detachedSearchButton:"aa-DetachedSearchButton",detachedSearchButtonIcon:"aa-DetachedSearchButtonIcon",detachedSearchButtonPlaceholder:"aa-DetachedSearchButtonPlaceholder",detachedSearchButtonQuery:"aa-DetachedSearchButtonQuery",form:"aa-Form",input:"aa-Input",inputWrapper:"aa-InputWrapper",inputWrapperPrefix:"aa-InputWrapperPrefix",inputWrapperSuffix:"aa-InputWrapperSuffix",item:"aa-Item",label:"aa-Label",list:"aa-List",loadingIndicator:"aa-LoadingIndicator",panel:"aa-Panel",panelLayout:"aa-PanelLayout aa-Panel--scrollable",root:"aa-Autocomplete",source:"aa-Source",sourceFooter:"aa-SourceFooter",sourceHeader:"aa-SourceHeader",sourceNoResults:"aa-SourceNoResults",submitButton:"aa-SubmitButton"},UKt=function(e,t){var n=e.children,i=e.render;i(n,t)},HKt={createElement:PY,Fragment:_E,render:zBe};function QBe(r){var e,t=r.classNames,n=r.container,i=r.getEnvironmentProps,o=r.getFormProps,a=r.getInputProps,s=r.getItemProps,u=r.getLabelProps,h=r.getListProps,d=r.getPanelProps,y=r.getRootProps,S=r.panelContainer,k=r.panelPlacement,D=r.render,M=r.renderNoResults,L=r.renderer,N=r.detachedMediaQuery,z=r.components,Z=r.translations,$=BKt(r,RKt),te=typeof window<"u"?window:{},ue=xY(te,n);ue.tagName;var re=Zb(Zb({},HKt),L),ce={Highlight:GBe(re),ReverseHighlight:YBe(re),ReverseSnippet:ZBe(re),Snippet:XBe(re)},de={clearButtonTitle:"Clear",detachedCancelButtonText:"Cancel",detachedSearchButtonTitle:"Search",submitButtonTitle:"Submit"};return{renderer:{classNames:lBe(jKt,t??{}),container:ue,getEnvironmentProps:i??function(Ae){var ye=Ae.props;return ye},getFormProps:o??function(Ae){var ye=Ae.props;return ye},getInputProps:a??function(Ae){var ye=Ae.props;return ye},getItemProps:s??function(Ae){var ye=Ae.props;return ye},getLabelProps:u??function(Ae){var ye=Ae.props;return ye},getListProps:h??function(Ae){var ye=Ae.props;return ye},getPanelProps:d??function(Ae){var ye=Ae.props;return ye},getRootProps:y??function(Ae){var ye=Ae.props;return ye},panelContainer:S?xY(te,S):te.document.body,panelPlacement:k??"input-wrapper-width",render:D??UKt,renderNoResults:M,renderer:re,detachedMediaQuery:N??getComputedStyle(te.document.documentElement).getPropertyValue("--aa-detached-media-query"),components:Zb(Zb({},ce),z),translations:Zb(Zb({},de),Z)},core:Zb(Zb({},$),{},{id:(e=$.id)!==null&&e!==void 0?e:ZN(),environment:te})}}function eze(r){var e=r.panelPlacement,t=r.container,n=r.form,i=r.environment,o=t.getBoundingClientRect(),a=i.pageYOffset||i.document.documentElement.scrollTop||i.document.body.scrollTop||0,s=a+o.top+o.height;switch(e){case"start":return{top:s,left:o.left};case"end":return{top:s,right:i.document.documentElement.clientWidth-(o.left+o.width)};case"full-width":return{top:s,left:0,right:0,width:"unset",maxWidth:"unset"};case"input-wrapper-width":{var u=n.getBoundingClientRect();return{top:s,left:u.left,right:i.document.documentElement.clientWidth-(u.left+u.width),width:"unset",maxWidth:"unset"}}default:throw new Error("[Autocomplete] The `panelPlacement` value ".concat(JSON.stringify(e)," is not valid."))}}function WO(r){"@babel/helpers - typeof";return WO=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},WO(r)}function vB(){return vB=Object.assign?Object.assign.bind():function(r){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=t[n])}return r},vB.apply(this,arguments)}function tze(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable})),t.push.apply(t,n)}return t}function wE(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?tze(Object(t),!0).forEach(function(n){VKt(r,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):tze(Object(t)).forEach(function(n){Object.defineProperty(r,n,Object.getOwnPropertyDescriptor(t,n))})}return r}function VKt(r,e,t){return e=WKt(e),e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}function WKt(r){var e=$Kt(r,"string");return WO(e)==="symbol"?e:String(e)}function $Kt(r,e){if(WO(r)!=="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var n=t.call(r,e||"default");if(WO(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}function rze(r){var e=r.autocomplete,t=r.autocompleteScopeApi,n=r.dom,i=r.propGetters,o=r.state;EY(n.root,i.getRootProps(wE({state:o,props:e.getRootProps({})},t))),EY(n.input,i.getInputProps(wE({state:o,props:e.getInputProps({inputElement:n.input}),inputElement:n.input},t))),Th(n.label,{hidden:o.status==="stalled"}),Th(n.loadingIndicator,{hidden:o.status!=="stalled"}),KKt(n.loadingIndicator,o.status==="stalled"),Th(n.clearButton,{hidden:!o.query}),Th(n.detachedSearchButtonQuery,{textContent:o.query}),Th(n.detachedSearchButtonPlaceholder,{hidden:!!o.query})}function KKt(r,e){var t,n=((t=r.firstChild)===null||t===void 0?void 0:t.nodeName)==="svg"?r.firstChild:null;!n||!n.pauseAnimations||!n.unpauseAnimations||(e?n.unpauseAnimations():n.pauseAnimations())}function nze(r,e){var t=e.autocomplete,n=e.autocompleteScopeApi,i=e.classNames,o=e.html,a=e.dom,s=e.panelContainer,u=e.propGetters,h=e.state,d=e.components,y=e.renderer;if(!h.isOpen){s.contains(a.panel)&&s.removeChild(a.panel);return}!s.contains(a.panel)&&h.status!=="loading"&&s.appendChild(a.panel),a.panel.classList.toggle("aa-Panel--stalled",h.status==="stalled");var S=h.collections.filter(function(M){var L=M.source,N=M.items;return L.templates.noResults||N.length>0}).map(function(M,L){var N=M.source,z=M.items;return y.createElement("section",{key:L,className:i.source,"data-autocomplete-source-id":N.sourceId},N.templates.header&&y.createElement("div",{className:i.sourceHeader},N.templates.header({components:d,createElement:y.createElement,Fragment:y.Fragment,items:z,source:N,state:h,html:o})),N.templates.noResults&&z.length===0?y.createElement("div",{className:i.sourceNoResults},N.templates.noResults({components:d,createElement:y.createElement,Fragment:y.Fragment,source:N,state:h,html:o})):y.createElement("ul",vB({className:i.list},u.getListProps(wE({state:h,props:t.getListProps({source:N})},n))),z.map(function(Z){var $=t.getItemProps({item:Z,source:N});return y.createElement("li",vB({key:$.id,className:i.item},u.getItemProps(wE({state:h,props:$},n))),N.templates.item({components:d,createElement:y.createElement,Fragment:y.Fragment,item:Z,state:h,html:o}))})),N.templates.footer&&y.createElement("div",{className:i.sourceFooter},N.templates.footer({components:d,createElement:y.createElement,Fragment:y.Fragment,items:z,source:N,state:h,html:o})))}),k=y.createElement(y.Fragment,null,y.createElement("div",{className:i.panelLayout},S),y.createElement("div",{className:"aa-GradientBottom"})),D=S.reduce(function(M,L){return M[L.props["data-autocomplete-source-id"]]=L,M},{});r(wE(wE({children:k,state:h,sections:S,elements:D},y),{},{components:d,html:o},n),a.panel)}var ize=[{segment:"autocomplete-js",version:XN}];var GKt=["components"];function $O(r){"@babel/helpers - typeof";return $O=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},$O(r)}function YKt(r,e){if(r==null)return{};var t=ZKt(r,e),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(r);for(i=0;i<o.length;i++)n=o[i],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(r,n)&&(t[n]=r[n])}return t}function ZKt(r,e){if(r==null)return{};var t={},n=Object.keys(r),i,o;for(o=0;o<n.length;o++)i=n[o],!(e.indexOf(i)>=0)&&(t[i]=r[i]);return t}function oze(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable})),t.push.apply(t,n)}return t}function b_(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?oze(Object(t),!0).forEach(function(n){sze(r,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):oze(Object(t)).forEach(function(n){Object.defineProperty(r,n,Object.getOwnPropertyDescriptor(t,n))})}return r}function sze(r,e,t){return e=XKt(e),e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}function XKt(r){var e=JKt(r,"string");return $O(e)==="symbol"?e:String(e)}function JKt(r,e){if($O(r)!=="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var n=t.call(r,e||"default");if($O(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}var aze=0;function lze(r){var e=SBe(),t=e.runEffect,n=e.cleanupEffects,i=e.runEffects,o=EBe(),a=o.reactive,s=o.runReactives,u=d_(!1),h=d_(r),d=d_(void 0),y=a(function(){return QBe(h.current)}),S=a(function(){return y.value.core.environment.matchMedia(y.value.renderer.detachedMediaQuery).matches}),k=a(function(){return nBe(b_(b_({},y.value.core),{},{onStateChange:function(de){var Ae,ye,j;u.current=de.state.collections.some(function(H){return H.source.templates.noResults}),(Ae=d.current)===null||Ae===void 0||Ae.call(d,de),(ye=(j=y.value.core).onStateChange)===null||ye===void 0||ye.call(j,de)},shouldPanelOpen:h.current.shouldPanelOpen||function(ce){var de=ce.state;if(S.value)return!0;var Ae=Gb(de)>0;if(!y.value.core.openOnFocus&&!de.query)return Ae;var ye=!!(u.current||y.value.renderer.renderNoResults);return!Ae&&ye||Ae},__autocomplete_metadata:{userAgents:ize,options:r}}))}),D=d_(b_({collections:[],completion:null,context:{},isOpen:!1,query:"",activeItemId:null,status:"idle"},y.value.core.initialState)),M={getEnvironmentProps:y.value.renderer.getEnvironmentProps,getFormProps:y.value.renderer.getFormProps,getInputProps:y.value.renderer.getInputProps,getItemProps:y.value.renderer.getItemProps,getLabelProps:y.value.renderer.getLabelProps,getListProps:y.value.renderer.getListProps,getPanelProps:y.value.renderer.getPanelProps,getRootProps:y.value.renderer.getRootProps},L={setActiveItemId:k.value.setActiveItemId,setQuery:k.value.setQuery,setCollections:k.value.setCollections,setIsOpen:k.value.setIsOpen,setStatus:k.value.setStatus,setContext:k.value.setContext,refresh:k.value.refresh,navigator:k.value.navigator},N=a(function(){return aBe.bind(y.value.renderer.renderer.createElement)}),z=a(function(){return wBe({autocomplete:k.value,autocompleteScopeApi:L,classNames:y.value.renderer.classNames,environment:y.value.core.environment,isDetached:S.value,placeholder:y.value.core.placeholder,propGetters:M,setIsModalOpen:re,state:D.current,translations:y.value.renderer.translations})});function Z(){Th(z.value.panel,{style:S.value?{}:eze({panelPlacement:y.value.renderer.panelPlacement,container:z.value.root,form:z.value.form,environment:y.value.core.environment})})}function $(ce){D.current=ce;var de={autocomplete:k.value,autocompleteScopeApi:L,classNames:y.value.renderer.classNames,components:y.value.renderer.components,container:y.value.renderer.container,html:N.value,dom:z.value,panelContainer:S.value?z.value.detachedContainer:y.value.renderer.panelContainer,propGetters:M,state:D.current,renderer:y.value.renderer.renderer},Ae=!Gb(ce)&&!u.current&&y.value.renderer.renderNoResults||y.value.renderer.render;rze(de),nze(Ae,de)}t(function(){var ce=k.value.getEnvironmentProps({formElement:z.value.form,panelElement:z.value.panel,inputElement:z.value.input});return Th(y.value.core.environment,ce),function(){Th(y.value.core.environment,Object.keys(ce).reduce(function(de,Ae){return b_(b_({},de),{},sze({},Ae,void 0))},{}))}}),t(function(){var ce=S.value?y.value.core.environment.document.body:y.value.renderer.panelContainer,de=S.value?z.value.detachedOverlay:z.value.panel;return S.value&&D.current.isOpen&&re(!0),$(D.current),function(){ce.contains(de)&&(ce.removeChild(de),ce.classList.remove("aa-Detached"))}}),t(function(){var ce=y.value.renderer.container;return ce.appendChild(z.value.root),function(){ce.removeChild(z.value.root)}}),t(function(){var ce=uE(function(de){var Ae=de.state;$(Ae)},0);return d.current=function(de){var Ae=de.state,ye=de.prevState;if(S.value&&ye.isOpen!==Ae.isOpen&&re(Ae.isOpen),!S.value&&Ae.isOpen&&!ye.isOpen&&Z(),Ae.query!==ye.query){var j=y.value.core.environment.document.querySelectorAll(".aa-Panel--scrollable");j.forEach(function(H){H.scrollTop!==0&&(H.scrollTop=0)})}ce({state:Ae})},function(){d.current=void 0}}),t(function(){var ce=uE(function(){var de=S.value;S.value=y.value.core.environment.matchMedia(y.value.renderer.detachedMediaQuery).matches,de!==S.value?ue({}):requestAnimationFrame(Z)},20);return y.value.core.environment.addEventListener("resize",ce),function(){y.value.core.environment.removeEventListener("resize",ce)}}),t(function(){if(!S.value)return function(){};function ce(j){z.value.detachedContainer.classList.toggle("aa-DetachedContainer--modal",j)}function de(j){ce(j.matches)}var Ae=y.value.core.environment.matchMedia(getComputedStyle(y.value.core.environment.document.documentElement).getPropertyValue("--aa-detached-modal-media-query"));ce(Ae.matches);var ye=!!Ae.addEventListener;return ye?Ae.addEventListener("change",de):Ae.addListener(de),function(){ye?Ae.removeEventListener("change",de):Ae.removeListener(de)}}),t(function(){return requestAnimationFrame(Z),function(){}});function te(){aze--,n()}function ue(){var ce=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};n();var de=y.value.renderer,Ae=de.components,ye=YKt(de,GKt);h.current=SY(ye,y.value.core,{components:pBe(Ae,function(j){var H=j.value;return!H.hasOwnProperty("__autocomplete_componentName")}),initialState:D.current},ce),s(),i(),k.value.refresh().then(function(){$(D.current)})}function re(ce){var de=y.value.core.environment.document.body.contains(z.value.detachedOverlay);ce!==de&&(ce?(y.value.core.environment.document.body.appendChild(z.value.detachedOverlay),y.value.core.environment.document.body.classList.add("aa-Detached"),z.value.input.focus()):(y.value.core.environment.document.body.removeChild(z.value.detachedOverlay),y.value.core.environment.document.body.classList.remove("aa-Detached")))}return aze++,b_(b_({},L),{},{update:ue,destroy:te})}var uze=Ao(r_());var yB=(r,e)=>{let t;return(...n)=>(t&&clearTimeout(t),new Promise(i=>{t=setTimeout(()=>i(r(...n)),e)}))};var bB=class extends er{static targets=["autocomplete","button","hiddenId","visibleLabel","clearValue","clearButton"];static values={extraParams:Object};debouncedFetch=yB(fetch,this.searchDebounce);destroyMethod;get dataset(){return this.autocompleteTarget.dataset}get searchDebounce(){return window.Avo.configuration.search_debounce}get translationKeys(){let r;try{r=JSON.parse(this.dataset.translationKeys)}catch{r={}}return r}get isBelongsToSearch(){return this.dataset.viaAssociation==="belongs_to"}get isHasManySearch(){return this.dataset.viaAssociation==="has_many"}connect(){console.log("search controller connected");let r=this;this.buttonTarget.onclick=()=>this.showSearchPanel(),this.clearValueTargets.forEach(t=>{t.getAttribute("value")&&this.hasClearButtonTarget&&this.clearButtonTarget.classList.remove("hidden")}),this.autocompleteTarget.innerHTML="";let{destroy:e}=lze({container:this.autocompleteTarget,placeholder:this.translationKeys.placeholder,translations:{detachedCancelButtonText:this.translationKeys.cancel_button},autoFocus:!0,openOnFocus:!0,detachedMediaQuery:"",onStateChange({prevState:t,state:n}){!n.isOpen&&t.isOpen&&(n.query="")},getSources:({query:t})=>{document.body.classList.add("search-loading");let n=r.searchUrl(t);return r.debouncedFetch(n).then(i=>(document.body.classList.remove("search-loading"),i.json())).then(i=>Object.keys(i).map(o=>r.addSource(o,i[o])))}});this.destroyMethod=e,this.buttonTarget.dataset.shouldBeDisabled!=="true"&&this.buttonTarget.removeAttribute("disabled")}disconnect(){this.destroyMethod&&(this.destroyMethod(),this.destroyMethod=null)}addSource(r,e){let t=this;return{sourceId:r,getItems:()=>e.results,onSelect:t.handleOnSelect.bind(t),templates:{header(){return`${e.header.toUpperCase()} ${e.help}`},item({item:n,createElement:i}){let o=[];if(n._avatar){let u;switch(n._avatar_type){default:case"circle":u="rounded-full";break;case"rounded":u="rounded-sm";break;case"square":u="rounded-none";break}o.push(i("img",{src:n._avatar,alt:n._label,class:`shrink-0 w-8 h-8 my-[2px] inline me-2 ${u}`}))}let a=YS.sanitize(n._label),s=[i("div",{dangerouslySetInnerHTML:{__html:a}},a)];if(n._description){let u=YS.sanitize(n._description);s.push(i("div",{class:"aa-ItemDescription",dangerouslySetInnerHTML:{__html:u}},u))}return o.push(i("div",null,s)),i("div",{class:"flex"},o)},noResults(){return t.translationKeys.no_item_found.replace("%{item}",r)}}}}handleOnSelect({item:r}){this.isBelongsToSearch&&!r._error?(this.updateFieldAttribute(this.hiddenIdTarget,"value",r._id),this.updateFieldAttribute(this.buttonTarget,"value",this.removeHTMLTags(r._label)),this.hasClearButtonTarget&&this.clearButtonTarget.classList.remove("hidden")):Ov.visit(r._url,{action:"advance"}),document.body.classList.remove("aa-Detached")}searchUrl(r){return(0,uze.default)().segment([window.Avo.configuration.root_path,...this.searchSegments()]).search(this.searchParams(r)).toString()}searchSegments(){return["avo_api",this.dataset.searchResource,"search"]}searchParams(r){let e={...Object.fromEntries(new URLSearchParams(window.location.search)),q:r,...this.extraParamsValue};return(this.isBelongsToSearch||this.isHasManySearch)&&(e=this.addAssociationParams(e),e=this.addReflectionParams(e),this.isBelongsToSearch&&(e={...e,via_parent_resource_id:this.dataset.viaParentResourceId,via_parent_resource_class:this.dataset.viaParentResourceClass,via_relation:this.dataset.viaRelation})),e}addAssociationParams(r){return r={...r,via_association:this.dataset.viaAssociation,via_association_id:this.dataset.viaAssociationId},r}addReflectionParams(r){return r={...r,via_reflection_class:this.dataset.viaReflectionClass,via_reflection_id:this.dataset.viaReflectionId,via_reflection_view:this.dataset.viaReflectionView},r}showSearchPanel(){this.autocompleteTarget.querySelector("button").click()}clearValue(){this.clearValueTargets.map(r=>this.updateFieldAttribute(r,"value","")),this.clearButtonTarget.classList.add("hidden")}updateFieldAttribute(r,e,t){r.setAttribute(e,t),r.dispatchEvent(new Event("input"))}removeHTMLTags(r){return new DOMParser().parseFromString(r,"text/html").body.textContent||""}};var cze=Ao(r_()),xB=class extends er{static targets=["select"];get parentTurboFrame(){return this.context.scope.element.closest("turbo-frame")}onChange(r){if(!this.parentTurboFrame.src)return;let e=new cze.default(this.parentTurboFrame.src);e.search({...e.query(!0),range:r.currentTarget.value}),this.parentTurboFrame.src=e.toString(),this.parentTurboFrame.reload()}};var _B=class extends yh{static targets=["selector"];getFilterValue(){return this.selectorTarget.value===""?null:this.selectorTarget.value}getFilterClass(){let{filterClass:r}=this.selectorTarget.dataset;return r}};var wB=class extends er{destroy(){this.context.element.remove()}};function QKt(r,e){let t=r.getBoundingClientRect(),n=document.documentElement,i=e.getBoundingClientRect();return t.top>=0&&t.left>=0&&t.bottom<=(i.height||window.innerHeight||n.clientHeight)&&t.right<=(i.width||window.innerWidth||n.clientWidth)}function eGt(){let r=document.querySelector(".avo-sidebar .mac-styled-scrollbar a.active"),e=document.querySelector(".avo-sidebar .mac-styled-scrollbar");r&&!QKt(r,e)&&r.scrollIntoView({block:"end",inline:"nearest"})}var SB=class extends er{static targets=["sidebar","mobileSidebar","mainArea"];static values={open:Boolean};get cookieKey(){return`${window.Avo.configuration.cookies_key}.sidebar.open`}get sidebarOpen(){return qb.get(this.cookieKey)==="1"}get sidebarScrollPosition(){return window.Avo.localStorage.get("sidebar.sidebarScrollPosition")}set sidebarScrollPosition(r){window.Avo.localStorage.set("sidebar.sidebarScrollPosition",r)}set cookie(r){qb.set(this.cookieKey,r===!0?1:0)}connect(){this.attachScrollVisibilityAnchor(),this.sidebarScrollPosition&&document.querySelector(".avo-sidebar .mac-styled-scrollbar").scrollTo({top:this.sidebarScrollPosition,behavior:"instant"}),this.rememberScrollPosition();let e=window.innerWidth<1024?this.mainAreaTarget.classList.contains("sidebar-mobile-open"):this.mainAreaTarget.classList.contains("sidebar-open");this.setToggleButtonsState(e?"open":"closed"),this.handleToggleShortcut=t=>{t.repeat||t.defaultPrevented||t.target?.closest("input, textarea, select, [contenteditable]")||!(t.metaKey||t.ctrlKey)||t.altKey||t.key!=="\\"||(t.preventDefault(),this.toggleSidebarForViewport())},document.addEventListener("keydown",this.handleToggleShortcut)}disconnect(){document.removeEventListener("keydown",this.handleToggleShortcut)}rememberScrollPosition(){let r;document.addEventListener("turbo:visit",r=()=>{this.sidebarScrollPosition=document.querySelector(".avo-sidebar .mac-styled-scrollbar").scrollTop,document.removeEventListener("turbo:visit",r)})}attachScrollVisibilityAnchor(){eGt()}get toggleButtons(){return document.querySelectorAll("[data-sidebar-toggle-icon]")}setToggleButtonsState(r){this.toggleButtons.forEach(e=>{e.dataset.sidebarState=r})}toggleSidebarForViewport(){window.innerWidth<1024?this.toggleSidebarOnMobile():this.toggleSidebar()}toggleSidebar(){this.sidebarTarget.classList.contains("hidden")&&this.sidebarTarget.classList.remove("hidden"),this.mainAreaTarget.classList.toggle("sidebar-open"),qb.set(this.cookieKey,this.newValue(qb.get(this.cookieKey)));let r=this.mainAreaTarget.classList.contains("sidebar-open");this.setToggleButtonsState(r?"open":"closed")}toggleSidebarOnMobile(){this.mobileSidebarTarget.classList.contains("hidden")&&(this.mainAreaTarget.classList.remove("sidebar-mobile-open"),this.mobileSidebarTarget.classList.remove("hidden"),this.mainAreaTarget.offsetHeight),this.mainAreaTarget.classList.toggle("sidebar-mobile-open");let r=this.mainAreaTarget.classList.contains("sidebar-mobile-open");this.setToggleButtonsState(r?"open":"closed")}newValue(r){return r===void 0||r==="1"?"0":"1"}};var EB=class extends er{static targets=["element"];static values={confirm:String};handle(r){r.preventDefault(),window.confirm(this.confirmValue)&&(window.Turbo.cache.clear(),this.element.submit())}};var TB=class extends er{static targets=["valueInput","starsContainer","star"];connect(){this.maxValue=parseInt(this.starsContainerTarget.dataset.max),this.currentValue=parseInt(this.starsContainerTarget.dataset.currentValue),this.updateStarsDisplay(this.currentValue)}setStar(r){let e=parseInt(r.currentTarget.dataset.starValue);e===this.currentValue?this.currentValue=0:this.currentValue=e,this.valueInputTarget.value=this.currentValue,this.updateStarsDisplay(this.currentValue),this.valueInputTarget.dispatchEvent(new Event("change"))}hoverStar(r){let e=parseInt(r.currentTarget.dataset.starValue);this.updateStarsDisplay(e,!0)}unhoverStar(r){this.updateStarsDisplay(this.currentValue)}updateStarsDisplay(r,e=!1){this.starTargets.forEach((t,n)=>{n+1<=r?t.classList.add("filled"):t.classList.remove("filled")})}};var kB=class extends er{connect(){this.isSelecting=!1,this.boundHandleMouseDown=this.#e.bind(this),this.boundHandleMouseMove=this.#t.bind(this),this.element.addEventListener("mousedown",this.boundHandleMouseDown),this.element.addEventListener("mousemove",this.boundHandleMouseMove)}disconnect(){this.element.removeEventListener("mousedown",this.boundHandleMouseDown),this.element.removeEventListener("mousemove",this.boundHandleMouseMove)}anchor=null;mouseEntered(r){let t=r.target.closest("tr").dataset.visitPath;t&&(this.anchor=this.createAnchor(t),this.anchor.dispatchEvent(new MouseEvent("mouseenter",{bubbles:!0})))}mouseLeft(){this.anchor&&(this.anchor.dispatchEvent(new MouseEvent("mouseleave",{bubbles:!0})),document.body.removeChild(this.anchor))}createAnchor(r){let e=document.createElement("a");return e.href=r,e.rel="noopener noreferrer",document.body.appendChild(e),e}visitRecord(r){if(r.type!=="click"||this.#r())return;let e=r.shiftKey,t=r.target.closest(".item-selector-cell"),n=r.target.closest("a, button"),i=r.target.closest('input[type="checkbox"]');if(e||n||i||t)return;let o=r.target.closest("tr"),a=o.dataset.visitPath;!o||!a||(r.metaKey||r.ctrlKey?this.#n(a):this.#i(a))}#e(){this.isSelecting=!1}#t(r){r.buttons===1&&(this.isSelecting=!0)}#r(){return this.isSelecting||window.getSelection().toString().length>0?(this.isSelecting=!1,!0):!1}#i(r){window.Turbo.visit(r)}#n(r){window.open(r,"_blank").focus()}};var AB=class extends er{static targets=["tabPanel"];static values={view:String,activeTab:String,groupId:String,resourceName:String};connect(){this.selectCurrentTab()}selectCurrentTab(){let r={};Array.from(new URL(window.location).searchParams.entries()).forEach(([i,o])=>{r[i]=o});let e=`resources.${this.resourceNameValue}.tabgroups.${this.groupIdValue}.selectedTab`,t=window.Avo.localStorage.get(e),n=null;r[this.groupParam(this.groupIdValue)]?n=r[this.groupParam(this.groupIdValue)]:t&&(n=t),this.getTabByName(n)&&(this.hideAllTabs(),this.revealTabByName(n))}getTabByName(r){return this.tabPanelTargets.find(e=>e.dataset.tabId===r)}groupParam(r){return encodeURIComponent(`tab-group_${r}`)}async changeTab(r){r.preventDefault();let{params:e}=r,{groupId:t,tabName:n,resourceName:i}=e,o=`resources.${i}.tabgroups.${t}.selectedTab`,a=new URL(window.location);a.searchParams.set(this.groupParam(t),encodeURIComponent(n)),window.Turbo.navigator.history.replace({href:a.pathname+a.search}),window.Avo.localStorage.set(o,n),this.hideAllTabs(),this.revealTabByName(n)}revealTabByName(r){this.getTabByName(r).classList.remove("hidden")}hideAllTabs(){this.tabPanelTargets.map(r=>r.classList.add("hidden"))}};var fze="tabs--scrollable",CB=class extends er{connect(){this.update=this.update.bind(this),this.resizeObserver=new ResizeObserver(this.update),this.resizeObserver.observe(this.element),this.update()}disconnect(){this.resizeObserver?.disconnect()}update(){this.element.classList.remove(fze);let r=Array.from(this.element.children);if(r.length<2)return;let e=r[0].offsetTop,t=r.some(n=>n.offsetTop!==e);this.element.classList.toggle(fze,t)}};var S_=Ao(VG());var hze="​";function NY(r,e){(e==null||e>r.length)&&(e=r.length);for(var t=0,n=new Array(e);t<e;t++)n[t]=r[t];return n}function dze(r){return(function(e){if(Array.isArray(e))return NY(e)})(r)||(function(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)})(r)||(function(e,t){if(e){if(typeof e=="string")return NY(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(n);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return NY(e,t)}})(r)||(function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")})()}var Jb={isEnabled:function(){var r;return(r=window.TAGIFY_DEBUG)===null||r===void 0||r},log:function(){for(var r=arguments.length,e=new Array(r),t=0;t<r;t++)e[t]=arguments[t];var n;this.isEnabled()&&(n=console).log.apply(n,["[Tagify]:"].concat(dze(e)))},warn:function(){for(var r=arguments.length,e=new Array(r),t=0;t<r;t++)e[t]=arguments[t];var n;this.isEnabled()&&(n=console).warn.apply(n,["[Tagify]:"].concat(dze(e)))}},GO=function(r,e,t,n){return r=""+r,e=""+e,n&&(r=r.trim(),e=e.trim()),t?r==e:r.toLowerCase()==e.toLowerCase()},pze=function(r,e){return r&&Array.isArray(r)&&r.map((function(t){return WY(t,e)}))};function WY(r,e){var t,n={};for(t in r)e.indexOf(t)<0&&(n[t]=r[t]);return n}function BY(r){return new DOMParser().parseFromString(r.trim(),"text/html").body.firstElementChild}function mze(r,e){for(e=e||"previous";r=r[e+"Sibling"];)if(r.nodeType==3)return r}function __(r){return typeof r=="string"?r.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/`|'/g,"'"):r}function wm(r){var e=Object.prototype.toString.call(r).split(" ")[1].slice(0,-1);return r===Object(r)&&e!="Array"&&e!="Function"&&e!="RegExp"&&e!="HTMLUnknownElement"}function au(r,e,t){var n,i;function o(a,s){for(var u in s)if(s.hasOwnProperty(u)){if(wm(s[u])){wm(a[u])?o(a[u],s[u]):a[u]=Object.assign({},s[u]);continue}if(Array.isArray(s[u])){a[u]=Object.assign([],s[u]);continue}a[u]=s[u]}}return n=r,((i=Object)!=null&&typeof Symbol<"u"&&i[Symbol.hasInstance]?i[Symbol.hasInstance](n):n instanceof i)||(r={}),o(r,e),t&&o(r,t),r}function gze(){var r=[],e={},t=!0,n=!1,i=void 0;try{for(var o,a=arguments[Symbol.iterator]();!(t=(o=a.next()).done);t=!0){var s=o.value,u=!0,h=!1,d=void 0;try{for(var y,S=s[Symbol.iterator]();!(u=(y=S.next()).done);u=!0){var k=y.value;wm(k)?e[k.value]||(r.push(k),e[k.value]=1):r.includes(k)||r.push(k)}}catch(D){h=!0,d=D}finally{try{u||S.return==null||S.return()}finally{if(h)throw d}}}}catch(D){n=!0,i=D}finally{try{t||a.return==null||a.return()}finally{if(n)throw i}}return r}function OB(r){return String.prototype.normalize?typeof r=="string"?r.normalize("NFD").replace(/[\u0300-\u036f]/g,""):void 0:r}var vze=function(){return/(?=.*chrome)(?=.*android)/i.test(navigator.userAgent)};function yze(){return("10000000-1000-4000-8000"+-1e11).replace(/[018]/g,(function(r){return(r^crypto.getRandomValues(new Uint8Array(1))[0]&15>>r/4).toString(16)}))}function w_(r){var e,t=Eze.call(this,r),n=r==null||(e=r.classList)===null||e===void 0?void 0:e.contains(this.settings.classNames.tag);return t&&n}function bze(r){return Eze.call(this,r)&&r?.closest(this.settings.classNames.tagSelector)}function Eze(r){var e;return(r==null||(e=r.closest)===null||e===void 0?void 0:e.call(r,this.settings.classNames.namespaceSelector))===this.DOM.scope}function Tze(r,e){var t=window.getSelection();return e=e||t.getRangeAt(0),typeof r=="string"&&(r=document.createTextNode(r)),e&&(e.deleteContents(),e.insertNode(r)),r}function ns(r,e,t){return r?(e&&(r.__tagifyTagData=t?e:au({},r.__tagifyTagData||{},e)),r.__tagifyTagData):(Jb.warn("tag element doesn't exist",{tagElm:r,data:e}),e)}function Xb(r){if(r&&r.parentNode){var e=r,t=window.getSelection(),n=t.getRangeAt(0);t.rangeCount&&(n.setStartAfter(e),n.collapse(!0),t.removeAllRanges(),t.addRange(n))}}function kze(r,e){r.forEach((function(t){if(ns(t.previousSibling)||!t.previousSibling){var n=document.createTextNode("\u200B");t.before(n),e&&Xb(n)}}))}var zY={delimiters:",",pattern:null,tagTextProp:"value",maxTags:1/0,callbacks:{},addTagOnBlur:!0,addTagOn:["blur","tab","enter"],onChangeAfterBlur:!0,duplicates:!1,whitelist:[],blacklist:[],enforceWhitelist:!1,userInput:!0,focusable:!0,focusInputOnRemove:!0,keepInvalidTags:!1,createInvalidTags:!0,mixTagsAllowedAfter:/,|\.|\:|\s/,mixTagsInterpolator:["[[","]]"],backspace:!0,skipInvalid:!1,pasteAsTags:!0,editTags:{clicks:2,keepInvalid:!0},transformTag:function(){},trim:!0,a11y:{focusableTags:!1},mixMode:{insertAfterTag:"\xA0"},autoComplete:{enabled:!0,rightKey:!1,tabKey:!1},classNames:{namespace:"tagify",mixMode:"tagify--mix",selectMode:"tagify--select",input:"tagify__input",focus:"tagify--focus",tagNoAnimation:"tagify--noAnim",tagInvalid:"tagify--invalid",tagNotAllowed:"tagify--notAllowed",scopeLoading:"tagify--loading",hasMaxTags:"tagify--hasMaxTags",hasNoTags:"tagify--noTags",empty:"tagify--empty",inputInvalid:"tagify__input--invalid",dropdown:"tagify__dropdown",dropdownWrapper:"tagify__dropdown__wrapper",dropdownHeader:"tagify__dropdown__header",dropdownFooter:"tagify__dropdown__footer",dropdownItem:"tagify__dropdown__item",dropdownItemActive:"tagify__dropdown__item--active",dropdownItemHidden:"tagify__dropdown__item--hidden",dropdownItemSelected:"tagify__dropdown__item--selected",dropdownInital:"tagify__dropdown--initial",tag:"tagify__tag",tagText:"tagify__tag-text",tagX:"tagify__tag__removeBtn",tagLoading:"tagify__tag--loading",tagEditing:"tagify__tag--editable",tagFlash:"tagify__tag--flash",tagHide:"tagify__tag--hide"},dropdown:{classname:"",enabled:2,maxItems:10,searchKeys:["value","searchBy"],fuzzySearch:!0,caseSensitive:!1,accentedSearch:!0,includeSelectedTags:!1,escapeHTML:!0,highlightFirst:!0,closeOnSelect:!0,clearOnSelect:!0,position:"all",appendTarget:null},hooks:{beforeRemoveTag:function(){return Promise.resolve()},beforePaste:function(){return Promise.resolve()},suggestionClick:function(){return Promise.resolve()},beforeKeyDown:function(){return Promise.resolve()}}};function tGt(r,e,t){return e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}function rGt(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{},n=Object.keys(t);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(t).filter((function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})))),n.forEach((function(i){tGt(r,i,t[i])}))}return r}function nGt(r,e){return e=e??{},Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(e)):(function(t,n){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);n&&(o=o.filter((function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable}))),i.push.apply(i,o)}return i})(Object(e)).forEach((function(t){Object.defineProperty(r,t,Object.getOwnPropertyDescriptor(e,t))})),r}function jY(r,e){(e==null||e>r.length)&&(e=r.length);for(var t=0,n=new Array(e);t<e;t++)n[t]=r[t];return n}function iGt(r,e,t){return e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}function oGt(r){return(function(e){if(Array.isArray(e))return jY(e)})(r)||(function(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)})(r)||(function(e,t){if(e){if(typeof e=="string")return jY(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(n);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return jY(e,t)}})(r)||(function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")})()}function aGt(){for(var r in this.dropdown={},this._dropdown)this.dropdown[r]=typeof this._dropdown[r]=="function"?this._dropdown[r].bind(this):this._dropdown[r];this.dropdown.refs(),this.DOM.dropdown.__tagify=this}var DB,SE,sGt=(DB=(function(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{},n=Object.keys(t);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(t).filter((function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})))),n.forEach((function(i){iGt(r,i,t[i])}))}return r})({},{events:{binding:function(){var r=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0],e=this.dropdown.events.callbacks,t=this.listeners.dropdown=this.listeners.dropdown||{position:this.dropdown.position.bind(this,null),onKeyDown:e.onKeyDown.bind(this),onMouseOver:e.onMouseOver.bind(this),onMouseLeave:e.onMouseLeave.bind(this),onClick:e.onClick.bind(this),onScroll:e.onScroll.bind(this)},n=r?"addEventListener":"removeEventListener";this.settings.dropdown.position!="manual"&&(document[n]("scroll",t.position,!0),window[n]("resize",t.position),window[n]("keydown",t.onKeyDown)),this.DOM.dropdown[n]("mouseover",t.onMouseOver),this.DOM.dropdown[n]("mouseleave",t.onMouseLeave),this.DOM.dropdown[n]("mousedown",t.onClick),this.DOM.dropdown.content[n]("scroll",t.onScroll)},callbacks:{onKeyDown:function(r){var e=this;if(this.state.hasFocus&&!this.state.composing){var t=this.settings,n=t.dropdown.includeSelectedTags,i=this.DOM.dropdown.querySelector(t.classNames.dropdownItemActiveSelector),o=this.dropdown.getSuggestionDataByNode(i),a=t.mode=="mix",s=t.mode=="select";t.hooks.beforeKeyDown(r,{tagify:this}).then((function(u){switch(r.key){case"ArrowDown":case"ArrowUp":case"Down":case"Up":r.preventDefault();var h=e.dropdown.getAllSuggestionsRefs(),d=r.key=="ArrowUp"||r.key=="Up";i&&(i=e.dropdown.getNextOrPrevOption(i,!d)),i&&i.matches(t.classNames.dropdownItemSelector)||(i=h[d?h.length-1:0]),e.dropdown.highlightOption(i,!0);break;case"PageUp":case"PageDown":var y;r.preventDefault();var S=e.dropdown.getAllSuggestionsRefs(),k=Math.floor(e.DOM.dropdown.content.clientHeight/((y=S[0])===null||y===void 0?void 0:y.offsetHeight))||1,D=r.key==="PageUp";if(i){var M=S.indexOf(i),L=D?Math.max(0,M-k):Math.min(S.length-1,M+k);i=S[L]}else i=S[0];e.dropdown.highlightOption(i,!0);break;case"Home":case"End":r.preventDefault();var N=e.dropdown.getAllSuggestionsRefs();i=N[r.key==="Home"?0:N.length-1],e.dropdown.highlightOption(i,!0);break;case"Escape":case"Esc":e.dropdown.hide();break;case"ArrowRight":if(e.state.actions.ArrowLeft||t.autoComplete.rightKey)return;case"Tab":var z=!t.autoComplete.rightKey||!t.autoComplete.tabKey;if(!a&&!s&&i&&z&&!e.state.editing&&o){r.preventDefault();var Z=e.dropdown.getMappedValue(o);return e.state.autoCompleteData=o,e.input.autocomplete.set.call(e,Z),!1}return!0;case"Enter":r.preventDefault(),e.state.actions.selectOption=!0,setTimeout((function(){return e.state.actions.selectOption=!1}),100),t.hooks.suggestionClick(r,{tagify:e,tagData:o,suggestionElm:i}).then((function(){if(i){var te=n?i:e.dropdown.getNextOrPrevOption(i,!d);e.dropdown.selectOption(i,r,(function(){if(te){var ue=te.getAttribute("value");te=e.dropdown.getSuggestionNodeByValue(ue),e.dropdown.highlightOption(te)}}))}else e.dropdown.hide(),a||e.addTags(e.state.inputText.trim(),!0)})).catch((function(te){return Jb.warn(te)}));break;case"Backspace":if(a||e.state.editing.scope)return;var $=e.input.raw.call(e);$!=""&&$.charCodeAt(0)!=8203||(t.backspace===!0?e.removeTags():t.backspace=="edit"&&setTimeout(e.editTag.bind(e),0))}}))}},onMouseOver:function(r){var e=r.target.closest(this.settings.classNames.dropdownItemSelector);this.dropdown.highlightOption(e)},onMouseLeave:function(r){this.dropdown.highlightOption()},onClick:function(r){var e=this;if(r.button==0&&r.target!=this.DOM.dropdown&&r.target!=this.DOM.dropdown.content){var t=r.target.closest(this.settings.classNames.dropdownItemSelector),n=this.dropdown.getSuggestionDataByNode(t);this.state.actions.selectOption=!0,setTimeout((function(){return e.state.actions.selectOption=!1}),100),this.settings.hooks.suggestionClick(r,{tagify:this,tagData:n,suggestionElm:t}).then((function(){t?e.dropdown.selectOption(t,r):e.dropdown.hide()})).catch((function(i){return Jb.warn(i)}))}},onScroll:function(r){var e=r.target,t=e.scrollTop/(e.scrollHeight-e.parentNode.clientHeight)*100;this.trigger("dropdown:scroll",{percentage:Math.round(t)})}}},refilter:function(r){r=r||this.state.dropdown.query||"",this.suggestedListItems=this.dropdown.filterListItems(r),this.dropdown.fill(),this.suggestedListItems.length||this.dropdown.hide(),this.trigger("dropdown:updated",this.DOM.dropdown)},getSuggestionDataByNode:function(r){for(var e,t=r&&r.getAttribute("value"),n=this.suggestedListItems.length;n--;){if(wm(e=this.suggestedListItems[n])&&e.value==t)return e;if(e==t)return{value:e}}},getSuggestionNodeByValue:function(r){return this.dropdown.getAllSuggestionsRefs().find((function(e){return e.getAttribute("value")===r}))},getNextOrPrevOption:function(r){var e=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],t=this.dropdown.getAllSuggestionsRefs(),n=t.findIndex((function(i){return i===r}));return e?t[n+1]:t[n-1]},highlightOption:function(r,e){var t,n=this.settings.classNames.dropdownItemActive;if(this.state.ddItemElm&&(this.state.ddItemElm.classList.remove(n),this.state.ddItemElm.removeAttribute("aria-selected")),!r)return this.state.ddItemData=null,this.state.ddItemElm=null,void this.input.autocomplete.suggest.call(this);t=this.dropdown.getSuggestionDataByNode(r),this.state.ddItemData=t,this.state.ddItemElm=r,r.classList.add(n),r.setAttribute("aria-selected",!0),e&&(r.parentNode.scrollTop=r.clientHeight+r.offsetTop-r.parentNode.clientHeight),this.settings.autoComplete&&(this.input.autocomplete.suggest.call(this,t),this.dropdown.position())},selectOption:function(r,e,t){var n=this,i=this.settings,o=i.dropdown.includeSelectedTags,a=i.dropdown,s=a.clearOnSelect,u=a.closeOnSelect;if(!r)return this.addTags(this.state.inputText,!0),void(u&&this.dropdown.hide());e=e||{};var h=r.getAttribute("value"),d=h=="noMatch",y=i.mode=="mix",S=this.suggestedListItems.find((function(D){var M;return((M=D.value)!==null&&M!==void 0?M:D)==h}));if(this.trigger("dropdown:select",{data:S,elm:r,event:e}),S||d){if(this.state.editing){var k=this.normalizeTags([S])[0];S=i.transformTag.call(this,k)||k,this.onEditTagDone(null,au({__isValid:!0},S))}else this[y?"addMixTags":"addTags"]([S||this.input.raw.call(this)],s);(y||this.DOM.input.parentNode)&&(setTimeout((function(){n.DOM.input.focus(),n.toggleFocusClass(!0)})),u&&setTimeout(this.dropdown.hide.bind(this)),o?t&&t():(r.addEventListener("transitionend",(function(){n.dropdown.fillHeaderFooter(),setTimeout((function(){r.remove(),n.dropdown.refilter(),t&&t()}),100)}),{once:!0}),r.classList.add(this.settings.classNames.dropdownItemHidden)))}else u&&setTimeout(this.dropdown.hide.bind(this))},selectAll:function(r){this.suggestedListItems.length=0,this.dropdown.hide(),this.dropdown.filterListItems("");var e=this.dropdown.filterListItems("");return r||(e=this.state.dropdown.suggestions),this.addTags(e,!0),this},filterListItems:function(r,e){var t,n,i,o,a,s,u=function(){var te,ue,re=void 0,ce=void 0;te=D[Z],n=((ue=Object)!=null&&typeof Symbol<"u"&&ue[Symbol.hasInstance]?ue[Symbol.hasInstance](te):te instanceof ue)?D[Z]:{value:D[Z]};var de,Ae=Object.keys(n).some((function(ye){return z.includes(ye)}))?z:["value"];y.fuzzySearch&&!e.exact?(o=Ae.reduce((function(ye,j){return ye+" "+(n[j]||"")}),"").toLowerCase().trim(),y.accentedSearch&&(o=OB(o),s=OB(s)),re=o.indexOf(s)==0,ce=o===s,de=o,i=s.toLowerCase().split(" ").every((function(ye){return de.includes(ye.toLowerCase())}))):(re=!0,i=Ae.some((function(ye){var j=""+(n[ye]||"");return y.accentedSearch&&(j=OB(j),s=OB(s)),y.caseSensitive||(j=j.toLowerCase()),ce=j===s,e.exact?j===s:j.indexOf(s)==0}))),a=!y.includeSelectedTags&&t.isTagDuplicate(wm(n)?n.value:n),i&&!a&&(ce&&re?k.push(n):y.sortby=="startsWith"&&re?S.unshift(n):S.push(n))},h=this,d=this.settings,y=d.dropdown,S=(e=e||{},[]),k=[],D=d.whitelist,M=y.maxItems>=0?y.maxItems:1/0,L=y.includeSelectedTags,N=typeof y.sortby=="function",z=y.searchKeys,Z=0;if(!(r=d.mode=="select"&&this.value.length&&this.value[0][d.tagTextProp]==r?"":r)||!z.length){S=L?D:D.filter((function(te){return!h.isTagDuplicate(wm(te)?te.value:te)}));var $=N?y.sortby(S,s):S.slice(0,M);return this.state.dropdown.suggestions=$,$}for(s=y.caseSensitive?""+r:(""+r).toLowerCase();Z<D.length;Z++)t=this,u();return this.state.dropdown.suggestions=k.concat(S),$=N?y.sortby(k.concat(S),s):k.concat(S).slice(0,M),this.state.dropdown.suggestions=$,$},getMappedValue:function(r){var e=this.settings.dropdown.mapValueTo;return e?typeof e=="function"?e(r):r[e]||r.value:r.value},createListHTML:function(r){var e=this;return au([],r).map((function(t,n){typeof t!="string"&&typeof t!="number"||(t={value:t});var i=e.dropdown.getMappedValue(t);return i=typeof i=="string"&&e.settings.dropdown.escapeHTML?__(i):i,e.settings.templates.dropdownItem.apply(e,[nGt(rGt({},t),{mappedValue:i}),e])})).join("")}}),SE=(SE={refs:function(){this.DOM.dropdown=this.parseTemplate("dropdown",[this.settings]),this.DOM.dropdown.content=this.DOM.dropdown.querySelector("[data-selector='tagify-suggestions-wrapper']")},getHeaderRef:function(){return this.DOM.dropdown.querySelector("[data-selector='tagify-suggestions-header']")},getFooterRef:function(){return this.DOM.dropdown.querySelector("[data-selector='tagify-suggestions-footer']")},getAllSuggestionsRefs:function(){return oGt(this.DOM.dropdown.content.querySelectorAll(this.settings.classNames.dropdownItemSelector))},show:function(r){var e,t,n,i=this,o=this.settings,a=o.mode=="mix"&&!o.enforceWhitelist,s=!o.whitelist||!o.whitelist.length,u=o.dropdown.position=="manual";if(r=r===void 0?this.state.inputText:r,!(s&&!a&&!o.templates.dropdownItemNoMatch||o.dropdown.enabled===!1||this.state.isLoading||this.settings.readonly)){if(clearTimeout(this.dropdownHide__bindEventsTimeout),this.suggestedListItems=this.dropdown.filterListItems(r),r&&!this.suggestedListItems.length&&(this.trigger("dropdown:noMatch",r),o.templates.dropdownItemNoMatch&&(n=o.templates.dropdownItemNoMatch.call(this,{value:r}))),!n){if(this.suggestedListItems.length)r&&a&&!this.state.editing.scope&&!GO(this.suggestedListItems[0].value,r)&&this.suggestedListItems.unshift({value:r});else{if(!r||!a||this.state.editing.scope)return this.input.autocomplete.suggest.call(this),void this.dropdown.hide();this.suggestedListItems=[{value:r}]}t=""+(wm(e=this.suggestedListItems[0])?e.value:e),o.autoComplete&&t&&t.indexOf(r)==0&&this.input.autocomplete.suggest.call(this,e)}this.dropdown.fill(n),o.dropdown.highlightFirst&&this.dropdown.highlightOption(this.DOM.dropdown.content.querySelector(o.classNames.dropdownItemSelector)),this.state.dropdown.visible||setTimeout(this.dropdown.events.binding.bind(this)),this.state.dropdown.visible=r||!0,this.state.dropdown.query=r,this.setStateSelection(),u||setTimeout((function(){i.dropdown.position(),i.dropdown.render()})),setTimeout((function(){i.trigger("dropdown:show",i.DOM.dropdown)}))}},hide:function(r){var e=this,t=this.DOM,n=t.scope,i=t.dropdown,o=this.settings.dropdown.position=="manual"&&!r;if(i&&document.body.contains(i)&&!o)return window.removeEventListener("resize",this.dropdown.position),this.dropdown.events.binding.call(this,!1),n.setAttribute("aria-expanded",!1),i.parentNode.removeChild(i),setTimeout((function(){e.state.dropdown.visible=!1}),100),this.state.dropdown.query=this.state.ddItemData=this.state.ddItemElm=this.state.selection=null,this.state.tag&&this.state.tag.value.length&&(this.state.flaggedTags[this.state.tag.baseOffset]=this.state.tag),this.trigger("dropdown:hide",i),this},toggle:function(r){this.dropdown[this.state.dropdown.visible&&!r?"hide":"show"]()},getAppendTarget:function(){var r=this.settings.dropdown;return typeof r.appendTarget=="function"?r.appendTarget():r.appendTarget},render:function(){var r,e,t,n=this,i=(r=this.DOM.dropdown,(t=r.cloneNode(!0)).style.cssText="position:fixed; top:-9999px; opacity:0",document.body.appendChild(t),e=t.clientHeight,t.parentNode.removeChild(t),e),o=this.settings,a=this.dropdown.getAppendTarget();return o.dropdown.enabled===!1||(this.DOM.scope.setAttribute("aria-expanded",!0),document.body.contains(this.DOM.dropdown)||(this.DOM.dropdown.classList.add(o.classNames.dropdownInital),this.dropdown.position(i),a.appendChild(this.DOM.dropdown),setTimeout((function(){return n.DOM.dropdown.classList.remove(o.classNames.dropdownInital)})))),this},fill:function(r){r=typeof r=="string"?r:this.dropdown.createListHTML(r||this.suggestedListItems);var e,t=this.settings.templates.dropdownContent.call(this,r);this.DOM.dropdown.content.innerHTML=(e=t)?e.replace(/\>[\r\n ]+\</g,"><").split(/>\s+</).join("><").trim():""},fillHeaderFooter:function(){var r=this.dropdown.filterListItems(this.state.dropdown.query),e=this.parseTemplate("dropdownHeader",[r]),t=this.parseTemplate("dropdownFooter",[r]),n=this.dropdown.getHeaderRef(),i=this.dropdown.getFooterRef();e&&n?.parentNode.replaceChild(e,n),t&&i?.parentNode.replaceChild(t,i)},position:function(r){var e=this.settings.dropdown,t=this.dropdown.getAppendTarget();if(e.position!="manual"&&t){var n,i,o,a,s,u,h,d,y,S,k=this.DOM.dropdown,D=e.RTL,M=t===document.body,L=t===this.DOM.scope,N=M?window.pageYOffset:t.scrollTop,z=document.fullscreenElement||document.webkitFullscreenElement||document.documentElement,Z=z.clientHeight,$=Math.max(z.clientWidth||0,window.innerWidth||0),te=$>480?e.position:"all",ue=this.DOM[te=="input"?"input":"scope"];if(r=r||k.clientHeight,this.state.dropdown.visible){if(te=="text"?(o=(n=(function(){var de=document.getSelection();if(de.rangeCount){var Ae,ye,j=de.getRangeAt(0),H=j.startContainer,xe=j.startOffset;if(xe>0)return(ye=document.createRange()).setStart(H,xe-1),ye.setEnd(H,xe),{left:(Ae=ye.getBoundingClientRect()).right,top:Ae.top,bottom:Ae.bottom};if(H.getBoundingClientRect)return H.getBoundingClientRect()}return{left:-9999,top:-9999}})()).bottom,i=n.top,a=n.left,s="auto"):(u=(function(de){var Ae=0,ye=0;for(de=de.parentNode;de&&de!=z;)Ae+=de.offsetTop||0,ye+=de.offsetLeft||0,de=de.parentNode;return{top:Ae,left:ye}})(t),n=ue.getBoundingClientRect(),i=L?-1:n.top-u.top,o=(L?n.height:n.bottom-u.top)-1,a=L?-1:n.left-u.left,s=n.width+"px"),!M){var re=(function(){for(var de=0,Ae=e.appendTarget.parentNode;Ae;)de+=Ae.scrollTop||0,Ae=Ae.parentNode;return de})();i+=re,o+=re}var ce;i=Math.floor(i),o=Math.ceil(o),d=$-a<120,y=((h=(ce=e.placeAbove)!==null&&ce!==void 0?ce:Z-n.bottom<r)?i:o)+N,S=a+(D&&n.width||0)+window.pageXOffset,S=te=="text"&&d?"right: 0;":"left: ".concat(S,"px;"),k.style.cssText="".concat(S," top: ").concat(y,"px; min-width: ").concat(s,"; max-width: ").concat(s),k.setAttribute("placement",h?"top":"bottom"),k.setAttribute("position",te)}}}})!=null?SE:{},Object.getOwnPropertyDescriptors?Object.defineProperties(DB,Object.getOwnPropertyDescriptors(SE)):(function(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);e&&(n=n.filter((function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable}))),t.push.apply(t,n)}return t})(Object(SE)).forEach((function(r){Object.defineProperty(DB,r,Object.getOwnPropertyDescriptor(SE,r))})),DB),KO="@yaireo/tagify/",lGt={empty:"empty",exceed:"number of tags exceeded",pattern:"pattern mismatch",duplicate:"already exists",notAllowed:"not allowed"},uGt={wrapper:function(r,e){return'<tags class="'.concat(e.classNames.namespace," ").concat(e.mode?"".concat(e.classNames[e.mode+"Mode"]):""," ").concat(r.className,`"
|
|
729
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function MKt(r,e){if(r){if(typeof r=="string")return FY(r,e);var t=Object.prototype.toString.call(r).slice(8,-1);if(t==="Object"&&r.constructor&&(t=r.constructor.name),t==="Map"||t==="Set")return Array.from(r);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return FY(r,e)}}function PKt(r){if(typeof Symbol<"u"&&r[Symbol.iterator]!=null||r["@@iterator"]!=null)return Array.from(r)}function LKt(r){if(Array.isArray(r))return FY(r)}function FY(r,e){(e==null||e>r.length)&&(e=r.length);for(var t=0,n=new Array(e);t<e;t++)n[t]=r[t];return n}function gB(r){var e=r.hit,t=r.attribute,n=Array.isArray(t)?t:[t],i=fE(e,["_snippetResult"].concat(DKt(n),["value"]));return typeof i!="string"&&(i=fE(e,n)||""),hB({highlightedValue:i})}function KBe(r){return mB(gB(r))}function GBe(r){var e=r.createElement,t=r.Fragment;function n(i){var o=i.hit,a=i.attribute,s=i.tagName,u=s===void 0?"mark":s;return e(t,{},dB({hit:o,attribute:a}).map(function(h,d){return h.isHighlighted?e(u,{key:d},h.value):h.value}))}return n.__autocomplete_componentName="Highlight",n}function YBe(r){var e=r.createElement,t=r.Fragment;function n(i){var o=i.hit,a=i.attribute,s=i.tagName,u=s===void 0?"mark":s;return e(t,{},$Be({hit:o,attribute:a}).map(function(h,d){return h.isHighlighted?e(u,{key:d},h.value):h.value}))}return n.__autocomplete_componentName="ReverseHighlight",n}function ZBe(r){var e=r.createElement,t=r.Fragment;function n(i){var o=i.hit,a=i.attribute,s=i.tagName,u=s===void 0?"mark":s;return e(t,{},KBe({hit:o,attribute:a}).map(function(h,d){return h.isHighlighted?e(u,{key:d},h.value):h.value}))}return n.__autocomplete_componentName="ReverseSnippet",n}function XBe(r){var e=r.createElement,t=r.Fragment;function n(i){var o=i.hit,a=i.attribute,s=i.tagName,u=s===void 0?"mark":s;return e(t,{},gB({hit:o,attribute:a}).map(function(h,d){return h.isHighlighted?e(u,{key:d},h.value):h.value}))}return n.__autocomplete_componentName="Snippet",n}function VO(r){"@babel/helpers - typeof";return VO=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},VO(r)}var RKt=["classNames","container","getEnvironmentProps","getFormProps","getInputProps","getItemProps","getLabelProps","getListProps","getPanelProps","getRootProps","panelContainer","panelPlacement","render","renderNoResults","renderer","detachedMediaQuery","components","translations"];function JBe(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable})),t.push.apply(t,n)}return t}function Zb(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?JBe(Object(t),!0).forEach(function(n){qKt(r,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):JBe(Object(t)).forEach(function(n){Object.defineProperty(r,n,Object.getOwnPropertyDescriptor(t,n))})}return r}function qKt(r,e,t){return e=FKt(e),e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}function FKt(r){var e=NKt(r,"string");return VO(e)==="symbol"?e:String(e)}function NKt(r,e){if(VO(r)!=="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var n=t.call(r,e||"default");if(VO(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}function BKt(r,e){if(r==null)return{};var t=zKt(r,e),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(r);for(i=0;i<o.length;i++)n=o[i],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(r,n)&&(t[n]=r[n])}return t}function zKt(r,e){if(r==null)return{};var t={},n=Object.keys(r),i,o;for(o=0;o<n.length;o++)i=n[o],!(e.indexOf(i)>=0)&&(t[i]=r[i]);return t}var jKt={clearButton:"aa-ClearButton",detachedCancelButton:"aa-DetachedCancelButton",detachedContainer:"aa-DetachedContainer",detachedFormContainer:"aa-DetachedFormContainer",detachedOverlay:"aa-DetachedOverlay",detachedSearchButton:"aa-DetachedSearchButton",detachedSearchButtonIcon:"aa-DetachedSearchButtonIcon",detachedSearchButtonPlaceholder:"aa-DetachedSearchButtonPlaceholder",detachedSearchButtonQuery:"aa-DetachedSearchButtonQuery",form:"aa-Form",input:"aa-Input",inputWrapper:"aa-InputWrapper",inputWrapperPrefix:"aa-InputWrapperPrefix",inputWrapperSuffix:"aa-InputWrapperSuffix",item:"aa-Item",label:"aa-Label",list:"aa-List",loadingIndicator:"aa-LoadingIndicator",panel:"aa-Panel",panelLayout:"aa-PanelLayout aa-Panel--scrollable",root:"aa-Autocomplete",source:"aa-Source",sourceFooter:"aa-SourceFooter",sourceHeader:"aa-SourceHeader",sourceNoResults:"aa-SourceNoResults",submitButton:"aa-SubmitButton"},UKt=function(e,t){var n=e.children,i=e.render;i(n,t)},HKt={createElement:PY,Fragment:_E,render:zBe};function QBe(r){var e,t=r.classNames,n=r.container,i=r.getEnvironmentProps,o=r.getFormProps,a=r.getInputProps,s=r.getItemProps,u=r.getLabelProps,h=r.getListProps,d=r.getPanelProps,y=r.getRootProps,S=r.panelContainer,k=r.panelPlacement,D=r.render,M=r.renderNoResults,L=r.renderer,N=r.detachedMediaQuery,z=r.components,Z=r.translations,$=BKt(r,RKt),te=typeof window<"u"?window:{},ue=xY(te,n);ue.tagName;var re=Zb(Zb({},HKt),L),ce={Highlight:GBe(re),ReverseHighlight:YBe(re),ReverseSnippet:ZBe(re),Snippet:XBe(re)},de={clearButtonTitle:"Clear",detachedCancelButtonText:"Cancel",detachedSearchButtonTitle:"Search",submitButtonTitle:"Submit"};return{renderer:{classNames:lBe(jKt,t??{}),container:ue,getEnvironmentProps:i??function(Ae){var ye=Ae.props;return ye},getFormProps:o??function(Ae){var ye=Ae.props;return ye},getInputProps:a??function(Ae){var ye=Ae.props;return ye},getItemProps:s??function(Ae){var ye=Ae.props;return ye},getLabelProps:u??function(Ae){var ye=Ae.props;return ye},getListProps:h??function(Ae){var ye=Ae.props;return ye},getPanelProps:d??function(Ae){var ye=Ae.props;return ye},getRootProps:y??function(Ae){var ye=Ae.props;return ye},panelContainer:S?xY(te,S):te.document.body,panelPlacement:k??"input-wrapper-width",render:D??UKt,renderNoResults:M,renderer:re,detachedMediaQuery:N??getComputedStyle(te.document.documentElement).getPropertyValue("--aa-detached-media-query"),components:Zb(Zb({},ce),z),translations:Zb(Zb({},de),Z)},core:Zb(Zb({},$),{},{id:(e=$.id)!==null&&e!==void 0?e:ZN(),environment:te})}}function eze(r){var e=r.panelPlacement,t=r.container,n=r.form,i=r.environment,o=t.getBoundingClientRect(),a=i.pageYOffset||i.document.documentElement.scrollTop||i.document.body.scrollTop||0,s=a+o.top+o.height;switch(e){case"start":return{top:s,left:o.left};case"end":return{top:s,right:i.document.documentElement.clientWidth-(o.left+o.width)};case"full-width":return{top:s,left:0,right:0,width:"unset",maxWidth:"unset"};case"input-wrapper-width":{var u=n.getBoundingClientRect();return{top:s,left:u.left,right:i.document.documentElement.clientWidth-(u.left+u.width),width:"unset",maxWidth:"unset"}}default:throw new Error("[Autocomplete] The `panelPlacement` value ".concat(JSON.stringify(e)," is not valid."))}}function WO(r){"@babel/helpers - typeof";return WO=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},WO(r)}function vB(){return vB=Object.assign?Object.assign.bind():function(r){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=t[n])}return r},vB.apply(this,arguments)}function tze(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable})),t.push.apply(t,n)}return t}function wE(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?tze(Object(t),!0).forEach(function(n){VKt(r,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):tze(Object(t)).forEach(function(n){Object.defineProperty(r,n,Object.getOwnPropertyDescriptor(t,n))})}return r}function VKt(r,e,t){return e=WKt(e),e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}function WKt(r){var e=$Kt(r,"string");return WO(e)==="symbol"?e:String(e)}function $Kt(r,e){if(WO(r)!=="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var n=t.call(r,e||"default");if(WO(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}function rze(r){var e=r.autocomplete,t=r.autocompleteScopeApi,n=r.dom,i=r.propGetters,o=r.state;EY(n.root,i.getRootProps(wE({state:o,props:e.getRootProps({})},t))),EY(n.input,i.getInputProps(wE({state:o,props:e.getInputProps({inputElement:n.input}),inputElement:n.input},t))),Th(n.label,{hidden:o.status==="stalled"}),Th(n.loadingIndicator,{hidden:o.status!=="stalled"}),KKt(n.loadingIndicator,o.status==="stalled"),Th(n.clearButton,{hidden:!o.query}),Th(n.detachedSearchButtonQuery,{textContent:o.query}),Th(n.detachedSearchButtonPlaceholder,{hidden:!!o.query})}function KKt(r,e){var t,n=((t=r.firstChild)===null||t===void 0?void 0:t.nodeName)==="svg"?r.firstChild:null;!n||!n.pauseAnimations||!n.unpauseAnimations||(e?n.unpauseAnimations():n.pauseAnimations())}function nze(r,e){var t=e.autocomplete,n=e.autocompleteScopeApi,i=e.classNames,o=e.html,a=e.dom,s=e.panelContainer,u=e.propGetters,h=e.state,d=e.components,y=e.renderer;if(!h.isOpen){s.contains(a.panel)&&s.removeChild(a.panel);return}!s.contains(a.panel)&&h.status!=="loading"&&s.appendChild(a.panel),a.panel.classList.toggle("aa-Panel--stalled",h.status==="stalled");var S=h.collections.filter(function(M){var L=M.source,N=M.items;return L.templates.noResults||N.length>0}).map(function(M,L){var N=M.source,z=M.items;return y.createElement("section",{key:L,className:i.source,"data-autocomplete-source-id":N.sourceId},N.templates.header&&y.createElement("div",{className:i.sourceHeader},N.templates.header({components:d,createElement:y.createElement,Fragment:y.Fragment,items:z,source:N,state:h,html:o})),N.templates.noResults&&z.length===0?y.createElement("div",{className:i.sourceNoResults},N.templates.noResults({components:d,createElement:y.createElement,Fragment:y.Fragment,source:N,state:h,html:o})):y.createElement("ul",vB({className:i.list},u.getListProps(wE({state:h,props:t.getListProps({source:N})},n))),z.map(function(Z){var $=t.getItemProps({item:Z,source:N});return y.createElement("li",vB({key:$.id,className:i.item},u.getItemProps(wE({state:h,props:$},n))),N.templates.item({components:d,createElement:y.createElement,Fragment:y.Fragment,item:Z,state:h,html:o}))})),N.templates.footer&&y.createElement("div",{className:i.sourceFooter},N.templates.footer({components:d,createElement:y.createElement,Fragment:y.Fragment,items:z,source:N,state:h,html:o})))}),k=y.createElement(y.Fragment,null,y.createElement("div",{className:i.panelLayout},S),y.createElement("div",{className:"aa-GradientBottom"})),D=S.reduce(function(M,L){return M[L.props["data-autocomplete-source-id"]]=L,M},{});r(wE(wE({children:k,state:h,sections:S,elements:D},y),{},{components:d,html:o},n),a.panel)}var ize=[{segment:"autocomplete-js",version:XN}];var GKt=["components"];function $O(r){"@babel/helpers - typeof";return $O=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},$O(r)}function YKt(r,e){if(r==null)return{};var t=ZKt(r,e),n,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(r);for(i=0;i<o.length;i++)n=o[i],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(r,n)&&(t[n]=r[n])}return t}function ZKt(r,e){if(r==null)return{};var t={},n=Object.keys(r),i,o;for(o=0;o<n.length;o++)i=n[o],!(e.indexOf(i)>=0)&&(t[i]=r[i]);return t}function oze(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable})),t.push.apply(t,n)}return t}function b_(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?oze(Object(t),!0).forEach(function(n){sze(r,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):oze(Object(t)).forEach(function(n){Object.defineProperty(r,n,Object.getOwnPropertyDescriptor(t,n))})}return r}function sze(r,e,t){return e=XKt(e),e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}function XKt(r){var e=JKt(r,"string");return $O(e)==="symbol"?e:String(e)}function JKt(r,e){if($O(r)!=="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var n=t.call(r,e||"default");if($O(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}var aze=0;function lze(r){var e=SBe(),t=e.runEffect,n=e.cleanupEffects,i=e.runEffects,o=EBe(),a=o.reactive,s=o.runReactives,u=d_(!1),h=d_(r),d=d_(void 0),y=a(function(){return QBe(h.current)}),S=a(function(){return y.value.core.environment.matchMedia(y.value.renderer.detachedMediaQuery).matches}),k=a(function(){return nBe(b_(b_({},y.value.core),{},{onStateChange:function(de){var Ae,ye,j;u.current=de.state.collections.some(function(H){return H.source.templates.noResults}),(Ae=d.current)===null||Ae===void 0||Ae.call(d,de),(ye=(j=y.value.core).onStateChange)===null||ye===void 0||ye.call(j,de)},shouldPanelOpen:h.current.shouldPanelOpen||function(ce){var de=ce.state;if(S.value)return!0;var Ae=Gb(de)>0;if(!y.value.core.openOnFocus&&!de.query)return Ae;var ye=!!(u.current||y.value.renderer.renderNoResults);return!Ae&&ye||Ae},__autocomplete_metadata:{userAgents:ize,options:r}}))}),D=d_(b_({collections:[],completion:null,context:{},isOpen:!1,query:"",activeItemId:null,status:"idle"},y.value.core.initialState)),M={getEnvironmentProps:y.value.renderer.getEnvironmentProps,getFormProps:y.value.renderer.getFormProps,getInputProps:y.value.renderer.getInputProps,getItemProps:y.value.renderer.getItemProps,getLabelProps:y.value.renderer.getLabelProps,getListProps:y.value.renderer.getListProps,getPanelProps:y.value.renderer.getPanelProps,getRootProps:y.value.renderer.getRootProps},L={setActiveItemId:k.value.setActiveItemId,setQuery:k.value.setQuery,setCollections:k.value.setCollections,setIsOpen:k.value.setIsOpen,setStatus:k.value.setStatus,setContext:k.value.setContext,refresh:k.value.refresh,navigator:k.value.navigator},N=a(function(){return aBe.bind(y.value.renderer.renderer.createElement)}),z=a(function(){return wBe({autocomplete:k.value,autocompleteScopeApi:L,classNames:y.value.renderer.classNames,environment:y.value.core.environment,isDetached:S.value,placeholder:y.value.core.placeholder,propGetters:M,setIsModalOpen:re,state:D.current,translations:y.value.renderer.translations})});function Z(){Th(z.value.panel,{style:S.value?{}:eze({panelPlacement:y.value.renderer.panelPlacement,container:z.value.root,form:z.value.form,environment:y.value.core.environment})})}function $(ce){D.current=ce;var de={autocomplete:k.value,autocompleteScopeApi:L,classNames:y.value.renderer.classNames,components:y.value.renderer.components,container:y.value.renderer.container,html:N.value,dom:z.value,panelContainer:S.value?z.value.detachedContainer:y.value.renderer.panelContainer,propGetters:M,state:D.current,renderer:y.value.renderer.renderer},Ae=!Gb(ce)&&!u.current&&y.value.renderer.renderNoResults||y.value.renderer.render;rze(de),nze(Ae,de)}t(function(){var ce=k.value.getEnvironmentProps({formElement:z.value.form,panelElement:z.value.panel,inputElement:z.value.input});return Th(y.value.core.environment,ce),function(){Th(y.value.core.environment,Object.keys(ce).reduce(function(de,Ae){return b_(b_({},de),{},sze({},Ae,void 0))},{}))}}),t(function(){var ce=S.value?y.value.core.environment.document.body:y.value.renderer.panelContainer,de=S.value?z.value.detachedOverlay:z.value.panel;return S.value&&D.current.isOpen&&re(!0),$(D.current),function(){ce.contains(de)&&(ce.removeChild(de),ce.classList.remove("aa-Detached"))}}),t(function(){var ce=y.value.renderer.container;return ce.appendChild(z.value.root),function(){ce.removeChild(z.value.root)}}),t(function(){var ce=uE(function(de){var Ae=de.state;$(Ae)},0);return d.current=function(de){var Ae=de.state,ye=de.prevState;if(S.value&&ye.isOpen!==Ae.isOpen&&re(Ae.isOpen),!S.value&&Ae.isOpen&&!ye.isOpen&&Z(),Ae.query!==ye.query){var j=y.value.core.environment.document.querySelectorAll(".aa-Panel--scrollable");j.forEach(function(H){H.scrollTop!==0&&(H.scrollTop=0)})}ce({state:Ae})},function(){d.current=void 0}}),t(function(){var ce=uE(function(){var de=S.value;S.value=y.value.core.environment.matchMedia(y.value.renderer.detachedMediaQuery).matches,de!==S.value?ue({}):requestAnimationFrame(Z)},20);return y.value.core.environment.addEventListener("resize",ce),function(){y.value.core.environment.removeEventListener("resize",ce)}}),t(function(){if(!S.value)return function(){};function ce(j){z.value.detachedContainer.classList.toggle("aa-DetachedContainer--modal",j)}function de(j){ce(j.matches)}var Ae=y.value.core.environment.matchMedia(getComputedStyle(y.value.core.environment.document.documentElement).getPropertyValue("--aa-detached-modal-media-query"));ce(Ae.matches);var ye=!!Ae.addEventListener;return ye?Ae.addEventListener("change",de):Ae.addListener(de),function(){ye?Ae.removeEventListener("change",de):Ae.removeListener(de)}}),t(function(){return requestAnimationFrame(Z),function(){}});function te(){aze--,n()}function ue(){var ce=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};n();var de=y.value.renderer,Ae=de.components,ye=YKt(de,GKt);h.current=SY(ye,y.value.core,{components:pBe(Ae,function(j){var H=j.value;return!H.hasOwnProperty("__autocomplete_componentName")}),initialState:D.current},ce),s(),i(),k.value.refresh().then(function(){$(D.current)})}function re(ce){var de=y.value.core.environment.document.body.contains(z.value.detachedOverlay);ce!==de&&(ce?(y.value.core.environment.document.body.appendChild(z.value.detachedOverlay),y.value.core.environment.document.body.classList.add("aa-Detached"),z.value.input.focus()):(y.value.core.environment.document.body.removeChild(z.value.detachedOverlay),y.value.core.environment.document.body.classList.remove("aa-Detached")))}return aze++,b_(b_({},L),{},{update:ue,destroy:te})}var uze=Ao(r_());var yB=(r,e)=>{let t;return(...n)=>(t&&clearTimeout(t),new Promise(i=>{t=setTimeout(()=>i(r(...n)),e)}))};var bB=class extends er{static targets=["autocomplete","button","hiddenId","visibleLabel","clearValue","clearButton"];static values={extraParams:Object};debouncedFetch=yB(fetch,this.searchDebounce);destroyMethod;get dataset(){return this.autocompleteTarget.dataset}get searchDebounce(){return window.Avo.configuration.search_debounce}get translationKeys(){let r;try{r=JSON.parse(this.dataset.translationKeys)}catch{r={}}return r}get isBelongsToSearch(){return this.dataset.viaAssociation==="belongs_to"}get isHasManySearch(){return this.dataset.viaAssociation==="has_many"}connect(){console.log("search controller connected");let r=this;this.buttonTarget.onclick=()=>this.showSearchPanel(),this.clearValueTargets.forEach(t=>{t.getAttribute("value")&&this.hasClearButtonTarget&&this.clearButtonTarget.classList.remove("hidden")}),this.autocompleteTarget.innerHTML="";let{destroy:e}=lze({container:this.autocompleteTarget,placeholder:this.translationKeys.placeholder,translations:{detachedCancelButtonText:this.translationKeys.cancel_button},autoFocus:!0,openOnFocus:!0,detachedMediaQuery:"",onStateChange({prevState:t,state:n}){!n.isOpen&&t.isOpen&&(n.query="")},getSources:({query:t})=>{document.body.classList.add("search-loading");let n=r.searchUrl(t);return r.debouncedFetch(n).then(i=>(document.body.classList.remove("search-loading"),i.json())).then(i=>Object.keys(i).map(o=>r.addSource(o,i[o])))}});this.destroyMethod=e,this.buttonTarget.dataset.shouldBeDisabled!=="true"&&this.buttonTarget.removeAttribute("disabled")}disconnect(){this.destroyMethod&&(this.destroyMethod(),this.destroyMethod=null)}addSource(r,e){let t=this;return{sourceId:r,getItems:()=>e.results,onSelect:t.handleOnSelect.bind(t),templates:{header(){return`${e.header.toUpperCase()} ${e.help}`},item({item:n,createElement:i}){let o=[];if(n._avatar){let u;switch(n._avatar_type){default:case"circle":u="rounded-full";break;case"rounded":u="rounded-sm";break;case"square":u="rounded-none";break}o.push(i("img",{src:n._avatar,alt:n._label,class:`shrink-0 w-8 h-8 my-[2px] inline me-2 ${u}`}))}let a=YS.sanitize(n._label),s=[i("div",{dangerouslySetInnerHTML:{__html:a}},a)];if(n._description){let u=YS.sanitize(n._description);s.push(i("div",{class:"aa-ItemDescription",dangerouslySetInnerHTML:{__html:u}},u))}return o.push(i("div",null,s)),i("div",{class:"flex"},o)},noResults(){return t.translationKeys.no_item_found.replace("%{item}",r)}}}}handleOnSelect({item:r}){this.isBelongsToSearch&&!r._error?(this.updateFieldAttribute(this.hiddenIdTarget,"value",r._id),this.updateFieldAttribute(this.buttonTarget,"value",this.removeHTMLTags(r._label)),this.hasClearButtonTarget&&this.clearButtonTarget.classList.remove("hidden")):Ov.visit(r._url,{action:"advance"}),document.body.classList.remove("aa-Detached")}searchUrl(r){return(0,uze.default)().segment([window.Avo.configuration.root_path,...this.searchSegments()]).search(this.searchParams(r)).toString()}searchSegments(){return["avo_api",this.dataset.searchResource,"search"]}searchParams(r){let e={...Object.fromEntries(new URLSearchParams(window.location.search)),q:r,...this.extraParamsValue};return(this.isBelongsToSearch||this.isHasManySearch)&&(e=this.addAssociationParams(e),e=this.addReflectionParams(e),this.isBelongsToSearch&&(e={...e,via_parent_resource_id:this.dataset.viaParentResourceId,via_parent_resource_class:this.dataset.viaParentResourceClass,via_relation:this.dataset.viaRelation})),e}addAssociationParams(r){return r={...r,via_association:this.dataset.viaAssociation,via_association_id:this.dataset.viaAssociationId},r}addReflectionParams(r){return r={...r,via_reflection_class:this.dataset.viaReflectionClass,via_reflection_id:this.dataset.viaReflectionId,via_reflection_view:this.dataset.viaReflectionView},r}showSearchPanel(){this.autocompleteTarget.querySelector("button").click()}clearValue(){this.clearValueTargets.map(r=>this.updateFieldAttribute(r,"value","")),this.clearButtonTarget.classList.add("hidden")}updateFieldAttribute(r,e,t){r.setAttribute(e,t),r.dispatchEvent(new Event("input"))}removeHTMLTags(r){return new DOMParser().parseFromString(r,"text/html").body.textContent||""}};var cze=Ao(r_()),xB=class extends er{static targets=["select"];get parentTurboFrame(){return this.context.scope.element.closest("turbo-frame")}onChange(r){if(!this.parentTurboFrame.src)return;let e=new cze.default(this.parentTurboFrame.src);e.search({...e.query(!0),range:r.currentTarget.value}),this.parentTurboFrame.src=e.toString(),this.parentTurboFrame.reload()}};var _B=class extends yh{static targets=["selector"];getFilterValue(){return this.selectorTarget.value===""?null:this.selectorTarget.value}getFilterClass(){let{filterClass:r}=this.selectorTarget.dataset;return r}};var wB=class extends er{destroy(){this.context.element.remove()}};function QKt(r,e){let t=r.getBoundingClientRect(),n=document.documentElement,i=e.getBoundingClientRect();return t.top>=0&&t.left>=0&&t.bottom<=(i.height||window.innerHeight||n.clientHeight)&&t.right<=(i.width||window.innerWidth||n.clientWidth)}function eGt(){let r=document.querySelector(".avo-sidebar .mac-styled-scrollbar a.active"),e=document.querySelector(".avo-sidebar .mac-styled-scrollbar");r&&!QKt(r,e)&&r.scrollIntoView({block:"end",inline:"nearest"})}var SB=class extends er{static targets=["sidebar","mobileSidebar","mainArea"];static values={open:Boolean};get cookieKey(){return`${window.Avo.configuration.cookies_key}.sidebar.open`}get sidebarOpen(){return qb.get(this.cookieKey)==="1"}get sidebarScrollPosition(){return window.Avo.localStorage.get("sidebar.sidebarScrollPosition")}set sidebarScrollPosition(r){window.Avo.localStorage.set("sidebar.sidebarScrollPosition",r)}set cookie(r){qb.set(this.cookieKey,r===!0?1:0)}connect(){this.attachScrollVisibilityAnchor(),this.sidebarScrollPosition&&document.querySelector(".avo-sidebar .mac-styled-scrollbar").scrollTo({top:this.sidebarScrollPosition,behavior:"instant"}),this.rememberScrollPosition();let e=window.innerWidth<1024?this.mainAreaTarget.classList.contains("sidebar-mobile-open"):this.mainAreaTarget.classList.contains("sidebar-open");this.setToggleButtonsState(e?"open":"closed"),this.handleToggleShortcut=t=>{t.repeat||t.defaultPrevented||t.target?.closest("input, textarea, select, [contenteditable]")||!(t.metaKey||t.ctrlKey)||t.altKey||t.key!=="\\"||(t.preventDefault(),this.toggleSidebarForViewport())},document.addEventListener("keydown",this.handleToggleShortcut)}disconnect(){document.removeEventListener("keydown",this.handleToggleShortcut)}rememberScrollPosition(){let r;document.addEventListener("turbo:visit",r=()=>{this.sidebarScrollPosition=document.querySelector(".avo-sidebar .mac-styled-scrollbar").scrollTop,document.removeEventListener("turbo:visit",r)})}attachScrollVisibilityAnchor(){eGt()}get toggleButtons(){return document.querySelectorAll("[data-sidebar-toggle-icon]")}setToggleButtonsState(r){this.toggleButtons.forEach(e=>{e.dataset.sidebarState=r})}toggleSidebarForViewport(){window.innerWidth<1024?this.toggleSidebarOnMobile():this.toggleSidebar()}toggleSidebar(){this.sidebarTarget.classList.contains("hidden")&&(this.sidebarTarget.classList.remove("hidden"),this.mainAreaTarget.offsetHeight),this.mainAreaTarget.classList.toggle("sidebar-open"),qb.set(this.cookieKey,this.newValue(qb.get(this.cookieKey)));let r=this.mainAreaTarget.classList.contains("sidebar-open");this.openValue=r,this.setToggleButtonsState(r?"open":"closed")}toggleSidebarOnMobile(){this.mobileSidebarTarget.classList.contains("hidden")&&(this.mainAreaTarget.classList.remove("sidebar-mobile-open"),this.mobileSidebarTarget.classList.remove("hidden"),this.mainAreaTarget.offsetHeight),this.mainAreaTarget.classList.toggle("sidebar-mobile-open");let r=this.mainAreaTarget.classList.contains("sidebar-mobile-open");this.setToggleButtonsState(r?"open":"closed")}newValue(r){return r===void 0||r==="1"?"0":"1"}};var EB=class extends er{static targets=["element"];static values={confirm:String};handle(r){r.preventDefault(),window.confirm(this.confirmValue)&&(window.Turbo.cache.clear(),this.element.submit())}};var TB=class extends er{static targets=["valueInput","starsContainer","star"];connect(){this.maxValue=parseInt(this.starsContainerTarget.dataset.max),this.currentValue=parseInt(this.starsContainerTarget.dataset.currentValue),this.updateStarsDisplay(this.currentValue)}setStar(r){let e=parseInt(r.currentTarget.dataset.starValue);e===this.currentValue?this.currentValue=0:this.currentValue=e,this.valueInputTarget.value=this.currentValue,this.updateStarsDisplay(this.currentValue),this.valueInputTarget.dispatchEvent(new Event("change"))}hoverStar(r){let e=parseInt(r.currentTarget.dataset.starValue);this.updateStarsDisplay(e,!0)}unhoverStar(r){this.updateStarsDisplay(this.currentValue)}updateStarsDisplay(r,e=!1){this.starTargets.forEach((t,n)=>{n+1<=r?t.classList.add("filled"):t.classList.remove("filled")})}};var kB=class extends er{connect(){this.isSelecting=!1,this.boundHandleMouseDown=this.#e.bind(this),this.boundHandleMouseMove=this.#t.bind(this),this.element.addEventListener("mousedown",this.boundHandleMouseDown),this.element.addEventListener("mousemove",this.boundHandleMouseMove)}disconnect(){this.element.removeEventListener("mousedown",this.boundHandleMouseDown),this.element.removeEventListener("mousemove",this.boundHandleMouseMove)}anchor=null;mouseEntered(r){let t=r.target.closest("tr").dataset.visitPath;t&&(this.anchor=this.createAnchor(t),this.anchor.dispatchEvent(new MouseEvent("mouseenter",{bubbles:!0})))}mouseLeft(){this.anchor&&(this.anchor.dispatchEvent(new MouseEvent("mouseleave",{bubbles:!0})),document.body.removeChild(this.anchor))}createAnchor(r){let e=document.createElement("a");return e.href=r,e.rel="noopener noreferrer",document.body.appendChild(e),e}visitRecord(r){if(r.type!=="click"||this.#r())return;let e=r.shiftKey,t=r.target.closest(".item-selector-cell"),n=r.target.closest("a, button"),i=r.target.closest('input[type="checkbox"]');if(e||n||i||t)return;let o=r.target.closest("tr"),a=o.dataset.visitPath;!o||!a||(r.metaKey||r.ctrlKey?this.#n(a):this.#i(a))}#e(){this.isSelecting=!1}#t(r){r.buttons===1&&(this.isSelecting=!0)}#r(){return this.isSelecting||window.getSelection().toString().length>0?(this.isSelecting=!1,!0):!1}#i(r){window.Turbo.visit(r)}#n(r){window.open(r,"_blank").focus()}};var AB=class extends er{static targets=["tabPanel"];static values={view:String,activeTab:String,groupId:String,resourceName:String};connect(){this.selectCurrentTab()}selectCurrentTab(){let r={};Array.from(new URL(window.location).searchParams.entries()).forEach(([i,o])=>{r[i]=o});let e=`resources.${this.resourceNameValue}.tabgroups.${this.groupIdValue}.selectedTab`,t=window.Avo.localStorage.get(e),n=null;r[this.groupParam(this.groupIdValue)]?n=r[this.groupParam(this.groupIdValue)]:t&&(n=t),this.getTabByName(n)&&(this.hideAllTabs(),this.revealTabByName(n))}getTabByName(r){return this.tabPanelTargets.find(e=>e.dataset.tabId===r)}groupParam(r){return encodeURIComponent(`tab-group_${r}`)}async changeTab(r){r.preventDefault();let{params:e}=r,{groupId:t,tabName:n,resourceName:i}=e,o=`resources.${i}.tabgroups.${t}.selectedTab`,a=new URL(window.location);a.searchParams.set(this.groupParam(t),encodeURIComponent(n)),window.Turbo.navigator.history.replace({href:a.pathname+a.search}),window.Avo.localStorage.set(o,n),this.hideAllTabs(),this.revealTabByName(n)}revealTabByName(r){this.getTabByName(r).classList.remove("hidden")}hideAllTabs(){this.tabPanelTargets.map(r=>r.classList.add("hidden"))}};var fze="tabs--scrollable",CB=class extends er{connect(){this.update=this.update.bind(this),this.resizeObserver=new ResizeObserver(this.update),this.resizeObserver.observe(this.element),this.update()}disconnect(){this.resizeObserver?.disconnect()}update(){this.element.classList.remove(fze);let r=Array.from(this.element.children);if(r.length<2)return;let e=r[0].offsetTop,t=r.some(n=>n.offsetTop!==e);this.element.classList.toggle(fze,t)}};var S_=Ao(VG());var hze="​";function NY(r,e){(e==null||e>r.length)&&(e=r.length);for(var t=0,n=new Array(e);t<e;t++)n[t]=r[t];return n}function dze(r){return(function(e){if(Array.isArray(e))return NY(e)})(r)||(function(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)})(r)||(function(e,t){if(e){if(typeof e=="string")return NY(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(n);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return NY(e,t)}})(r)||(function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")})()}var Jb={isEnabled:function(){var r;return(r=window.TAGIFY_DEBUG)===null||r===void 0||r},log:function(){for(var r=arguments.length,e=new Array(r),t=0;t<r;t++)e[t]=arguments[t];var n;this.isEnabled()&&(n=console).log.apply(n,["[Tagify]:"].concat(dze(e)))},warn:function(){for(var r=arguments.length,e=new Array(r),t=0;t<r;t++)e[t]=arguments[t];var n;this.isEnabled()&&(n=console).warn.apply(n,["[Tagify]:"].concat(dze(e)))}},GO=function(r,e,t,n){return r=""+r,e=""+e,n&&(r=r.trim(),e=e.trim()),t?r==e:r.toLowerCase()==e.toLowerCase()},pze=function(r,e){return r&&Array.isArray(r)&&r.map((function(t){return WY(t,e)}))};function WY(r,e){var t,n={};for(t in r)e.indexOf(t)<0&&(n[t]=r[t]);return n}function BY(r){return new DOMParser().parseFromString(r.trim(),"text/html").body.firstElementChild}function mze(r,e){for(e=e||"previous";r=r[e+"Sibling"];)if(r.nodeType==3)return r}function __(r){return typeof r=="string"?r.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/`|'/g,"'"):r}function wm(r){var e=Object.prototype.toString.call(r).split(" ")[1].slice(0,-1);return r===Object(r)&&e!="Array"&&e!="Function"&&e!="RegExp"&&e!="HTMLUnknownElement"}function au(r,e,t){var n,i;function o(a,s){for(var u in s)if(s.hasOwnProperty(u)){if(wm(s[u])){wm(a[u])?o(a[u],s[u]):a[u]=Object.assign({},s[u]);continue}if(Array.isArray(s[u])){a[u]=Object.assign([],s[u]);continue}a[u]=s[u]}}return n=r,((i=Object)!=null&&typeof Symbol<"u"&&i[Symbol.hasInstance]?i[Symbol.hasInstance](n):n instanceof i)||(r={}),o(r,e),t&&o(r,t),r}function gze(){var r=[],e={},t=!0,n=!1,i=void 0;try{for(var o,a=arguments[Symbol.iterator]();!(t=(o=a.next()).done);t=!0){var s=o.value,u=!0,h=!1,d=void 0;try{for(var y,S=s[Symbol.iterator]();!(u=(y=S.next()).done);u=!0){var k=y.value;wm(k)?e[k.value]||(r.push(k),e[k.value]=1):r.includes(k)||r.push(k)}}catch(D){h=!0,d=D}finally{try{u||S.return==null||S.return()}finally{if(h)throw d}}}}catch(D){n=!0,i=D}finally{try{t||a.return==null||a.return()}finally{if(n)throw i}}return r}function OB(r){return String.prototype.normalize?typeof r=="string"?r.normalize("NFD").replace(/[\u0300-\u036f]/g,""):void 0:r}var vze=function(){return/(?=.*chrome)(?=.*android)/i.test(navigator.userAgent)};function yze(){return("10000000-1000-4000-8000"+-1e11).replace(/[018]/g,(function(r){return(r^crypto.getRandomValues(new Uint8Array(1))[0]&15>>r/4).toString(16)}))}function w_(r){var e,t=Eze.call(this,r),n=r==null||(e=r.classList)===null||e===void 0?void 0:e.contains(this.settings.classNames.tag);return t&&n}function bze(r){return Eze.call(this,r)&&r?.closest(this.settings.classNames.tagSelector)}function Eze(r){var e;return(r==null||(e=r.closest)===null||e===void 0?void 0:e.call(r,this.settings.classNames.namespaceSelector))===this.DOM.scope}function Tze(r,e){var t=window.getSelection();return e=e||t.getRangeAt(0),typeof r=="string"&&(r=document.createTextNode(r)),e&&(e.deleteContents(),e.insertNode(r)),r}function ns(r,e,t){return r?(e&&(r.__tagifyTagData=t?e:au({},r.__tagifyTagData||{},e)),r.__tagifyTagData):(Jb.warn("tag element doesn't exist",{tagElm:r,data:e}),e)}function Xb(r){if(r&&r.parentNode){var e=r,t=window.getSelection(),n=t.getRangeAt(0);t.rangeCount&&(n.setStartAfter(e),n.collapse(!0),t.removeAllRanges(),t.addRange(n))}}function kze(r,e){r.forEach((function(t){if(ns(t.previousSibling)||!t.previousSibling){var n=document.createTextNode("\u200B");t.before(n),e&&Xb(n)}}))}var zY={delimiters:",",pattern:null,tagTextProp:"value",maxTags:1/0,callbacks:{},addTagOnBlur:!0,addTagOn:["blur","tab","enter"],onChangeAfterBlur:!0,duplicates:!1,whitelist:[],blacklist:[],enforceWhitelist:!1,userInput:!0,focusable:!0,focusInputOnRemove:!0,keepInvalidTags:!1,createInvalidTags:!0,mixTagsAllowedAfter:/,|\.|\:|\s/,mixTagsInterpolator:["[[","]]"],backspace:!0,skipInvalid:!1,pasteAsTags:!0,editTags:{clicks:2,keepInvalid:!0},transformTag:function(){},trim:!0,a11y:{focusableTags:!1},mixMode:{insertAfterTag:"\xA0"},autoComplete:{enabled:!0,rightKey:!1,tabKey:!1},classNames:{namespace:"tagify",mixMode:"tagify--mix",selectMode:"tagify--select",input:"tagify__input",focus:"tagify--focus",tagNoAnimation:"tagify--noAnim",tagInvalid:"tagify--invalid",tagNotAllowed:"tagify--notAllowed",scopeLoading:"tagify--loading",hasMaxTags:"tagify--hasMaxTags",hasNoTags:"tagify--noTags",empty:"tagify--empty",inputInvalid:"tagify__input--invalid",dropdown:"tagify__dropdown",dropdownWrapper:"tagify__dropdown__wrapper",dropdownHeader:"tagify__dropdown__header",dropdownFooter:"tagify__dropdown__footer",dropdownItem:"tagify__dropdown__item",dropdownItemActive:"tagify__dropdown__item--active",dropdownItemHidden:"tagify__dropdown__item--hidden",dropdownItemSelected:"tagify__dropdown__item--selected",dropdownInital:"tagify__dropdown--initial",tag:"tagify__tag",tagText:"tagify__tag-text",tagX:"tagify__tag__removeBtn",tagLoading:"tagify__tag--loading",tagEditing:"tagify__tag--editable",tagFlash:"tagify__tag--flash",tagHide:"tagify__tag--hide"},dropdown:{classname:"",enabled:2,maxItems:10,searchKeys:["value","searchBy"],fuzzySearch:!0,caseSensitive:!1,accentedSearch:!0,includeSelectedTags:!1,escapeHTML:!0,highlightFirst:!0,closeOnSelect:!0,clearOnSelect:!0,position:"all",appendTarget:null},hooks:{beforeRemoveTag:function(){return Promise.resolve()},beforePaste:function(){return Promise.resolve()},suggestionClick:function(){return Promise.resolve()},beforeKeyDown:function(){return Promise.resolve()}}};function tGt(r,e,t){return e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}function rGt(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{},n=Object.keys(t);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(t).filter((function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})))),n.forEach((function(i){tGt(r,i,t[i])}))}return r}function nGt(r,e){return e=e??{},Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(e)):(function(t,n){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);n&&(o=o.filter((function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable}))),i.push.apply(i,o)}return i})(Object(e)).forEach((function(t){Object.defineProperty(r,t,Object.getOwnPropertyDescriptor(e,t))})),r}function jY(r,e){(e==null||e>r.length)&&(e=r.length);for(var t=0,n=new Array(e);t<e;t++)n[t]=r[t];return n}function iGt(r,e,t){return e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}function oGt(r){return(function(e){if(Array.isArray(e))return jY(e)})(r)||(function(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)})(r)||(function(e,t){if(e){if(typeof e=="string")return jY(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(n);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return jY(e,t)}})(r)||(function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")})()}function aGt(){for(var r in this.dropdown={},this._dropdown)this.dropdown[r]=typeof this._dropdown[r]=="function"?this._dropdown[r].bind(this):this._dropdown[r];this.dropdown.refs(),this.DOM.dropdown.__tagify=this}var DB,SE,sGt=(DB=(function(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{},n=Object.keys(t);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(t).filter((function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})))),n.forEach((function(i){iGt(r,i,t[i])}))}return r})({},{events:{binding:function(){var r=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0],e=this.dropdown.events.callbacks,t=this.listeners.dropdown=this.listeners.dropdown||{position:this.dropdown.position.bind(this,null),onKeyDown:e.onKeyDown.bind(this),onMouseOver:e.onMouseOver.bind(this),onMouseLeave:e.onMouseLeave.bind(this),onClick:e.onClick.bind(this),onScroll:e.onScroll.bind(this)},n=r?"addEventListener":"removeEventListener";this.settings.dropdown.position!="manual"&&(document[n]("scroll",t.position,!0),window[n]("resize",t.position),window[n]("keydown",t.onKeyDown)),this.DOM.dropdown[n]("mouseover",t.onMouseOver),this.DOM.dropdown[n]("mouseleave",t.onMouseLeave),this.DOM.dropdown[n]("mousedown",t.onClick),this.DOM.dropdown.content[n]("scroll",t.onScroll)},callbacks:{onKeyDown:function(r){var e=this;if(this.state.hasFocus&&!this.state.composing){var t=this.settings,n=t.dropdown.includeSelectedTags,i=this.DOM.dropdown.querySelector(t.classNames.dropdownItemActiveSelector),o=this.dropdown.getSuggestionDataByNode(i),a=t.mode=="mix",s=t.mode=="select";t.hooks.beforeKeyDown(r,{tagify:this}).then((function(u){switch(r.key){case"ArrowDown":case"ArrowUp":case"Down":case"Up":r.preventDefault();var h=e.dropdown.getAllSuggestionsRefs(),d=r.key=="ArrowUp"||r.key=="Up";i&&(i=e.dropdown.getNextOrPrevOption(i,!d)),i&&i.matches(t.classNames.dropdownItemSelector)||(i=h[d?h.length-1:0]),e.dropdown.highlightOption(i,!0);break;case"PageUp":case"PageDown":var y;r.preventDefault();var S=e.dropdown.getAllSuggestionsRefs(),k=Math.floor(e.DOM.dropdown.content.clientHeight/((y=S[0])===null||y===void 0?void 0:y.offsetHeight))||1,D=r.key==="PageUp";if(i){var M=S.indexOf(i),L=D?Math.max(0,M-k):Math.min(S.length-1,M+k);i=S[L]}else i=S[0];e.dropdown.highlightOption(i,!0);break;case"Home":case"End":r.preventDefault();var N=e.dropdown.getAllSuggestionsRefs();i=N[r.key==="Home"?0:N.length-1],e.dropdown.highlightOption(i,!0);break;case"Escape":case"Esc":e.dropdown.hide();break;case"ArrowRight":if(e.state.actions.ArrowLeft||t.autoComplete.rightKey)return;case"Tab":var z=!t.autoComplete.rightKey||!t.autoComplete.tabKey;if(!a&&!s&&i&&z&&!e.state.editing&&o){r.preventDefault();var Z=e.dropdown.getMappedValue(o);return e.state.autoCompleteData=o,e.input.autocomplete.set.call(e,Z),!1}return!0;case"Enter":r.preventDefault(),e.state.actions.selectOption=!0,setTimeout((function(){return e.state.actions.selectOption=!1}),100),t.hooks.suggestionClick(r,{tagify:e,tagData:o,suggestionElm:i}).then((function(){if(i){var te=n?i:e.dropdown.getNextOrPrevOption(i,!d);e.dropdown.selectOption(i,r,(function(){if(te){var ue=te.getAttribute("value");te=e.dropdown.getSuggestionNodeByValue(ue),e.dropdown.highlightOption(te)}}))}else e.dropdown.hide(),a||e.addTags(e.state.inputText.trim(),!0)})).catch((function(te){return Jb.warn(te)}));break;case"Backspace":if(a||e.state.editing.scope)return;var $=e.input.raw.call(e);$!=""&&$.charCodeAt(0)!=8203||(t.backspace===!0?e.removeTags():t.backspace=="edit"&&setTimeout(e.editTag.bind(e),0))}}))}},onMouseOver:function(r){var e=r.target.closest(this.settings.classNames.dropdownItemSelector);this.dropdown.highlightOption(e)},onMouseLeave:function(r){this.dropdown.highlightOption()},onClick:function(r){var e=this;if(r.button==0&&r.target!=this.DOM.dropdown&&r.target!=this.DOM.dropdown.content){var t=r.target.closest(this.settings.classNames.dropdownItemSelector),n=this.dropdown.getSuggestionDataByNode(t);this.state.actions.selectOption=!0,setTimeout((function(){return e.state.actions.selectOption=!1}),100),this.settings.hooks.suggestionClick(r,{tagify:this,tagData:n,suggestionElm:t}).then((function(){t?e.dropdown.selectOption(t,r):e.dropdown.hide()})).catch((function(i){return Jb.warn(i)}))}},onScroll:function(r){var e=r.target,t=e.scrollTop/(e.scrollHeight-e.parentNode.clientHeight)*100;this.trigger("dropdown:scroll",{percentage:Math.round(t)})}}},refilter:function(r){r=r||this.state.dropdown.query||"",this.suggestedListItems=this.dropdown.filterListItems(r),this.dropdown.fill(),this.suggestedListItems.length||this.dropdown.hide(),this.trigger("dropdown:updated",this.DOM.dropdown)},getSuggestionDataByNode:function(r){for(var e,t=r&&r.getAttribute("value"),n=this.suggestedListItems.length;n--;){if(wm(e=this.suggestedListItems[n])&&e.value==t)return e;if(e==t)return{value:e}}},getSuggestionNodeByValue:function(r){return this.dropdown.getAllSuggestionsRefs().find((function(e){return e.getAttribute("value")===r}))},getNextOrPrevOption:function(r){var e=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],t=this.dropdown.getAllSuggestionsRefs(),n=t.findIndex((function(i){return i===r}));return e?t[n+1]:t[n-1]},highlightOption:function(r,e){var t,n=this.settings.classNames.dropdownItemActive;if(this.state.ddItemElm&&(this.state.ddItemElm.classList.remove(n),this.state.ddItemElm.removeAttribute("aria-selected")),!r)return this.state.ddItemData=null,this.state.ddItemElm=null,void this.input.autocomplete.suggest.call(this);t=this.dropdown.getSuggestionDataByNode(r),this.state.ddItemData=t,this.state.ddItemElm=r,r.classList.add(n),r.setAttribute("aria-selected",!0),e&&(r.parentNode.scrollTop=r.clientHeight+r.offsetTop-r.parentNode.clientHeight),this.settings.autoComplete&&(this.input.autocomplete.suggest.call(this,t),this.dropdown.position())},selectOption:function(r,e,t){var n=this,i=this.settings,o=i.dropdown.includeSelectedTags,a=i.dropdown,s=a.clearOnSelect,u=a.closeOnSelect;if(!r)return this.addTags(this.state.inputText,!0),void(u&&this.dropdown.hide());e=e||{};var h=r.getAttribute("value"),d=h=="noMatch",y=i.mode=="mix",S=this.suggestedListItems.find((function(D){var M;return((M=D.value)!==null&&M!==void 0?M:D)==h}));if(this.trigger("dropdown:select",{data:S,elm:r,event:e}),S||d){if(this.state.editing){var k=this.normalizeTags([S])[0];S=i.transformTag.call(this,k)||k,this.onEditTagDone(null,au({__isValid:!0},S))}else this[y?"addMixTags":"addTags"]([S||this.input.raw.call(this)],s);(y||this.DOM.input.parentNode)&&(setTimeout((function(){n.DOM.input.focus(),n.toggleFocusClass(!0)})),u&&setTimeout(this.dropdown.hide.bind(this)),o?t&&t():(r.addEventListener("transitionend",(function(){n.dropdown.fillHeaderFooter(),setTimeout((function(){r.remove(),n.dropdown.refilter(),t&&t()}),100)}),{once:!0}),r.classList.add(this.settings.classNames.dropdownItemHidden)))}else u&&setTimeout(this.dropdown.hide.bind(this))},selectAll:function(r){this.suggestedListItems.length=0,this.dropdown.hide(),this.dropdown.filterListItems("");var e=this.dropdown.filterListItems("");return r||(e=this.state.dropdown.suggestions),this.addTags(e,!0),this},filterListItems:function(r,e){var t,n,i,o,a,s,u=function(){var te,ue,re=void 0,ce=void 0;te=D[Z],n=((ue=Object)!=null&&typeof Symbol<"u"&&ue[Symbol.hasInstance]?ue[Symbol.hasInstance](te):te instanceof ue)?D[Z]:{value:D[Z]};var de,Ae=Object.keys(n).some((function(ye){return z.includes(ye)}))?z:["value"];y.fuzzySearch&&!e.exact?(o=Ae.reduce((function(ye,j){return ye+" "+(n[j]||"")}),"").toLowerCase().trim(),y.accentedSearch&&(o=OB(o),s=OB(s)),re=o.indexOf(s)==0,ce=o===s,de=o,i=s.toLowerCase().split(" ").every((function(ye){return de.includes(ye.toLowerCase())}))):(re=!0,i=Ae.some((function(ye){var j=""+(n[ye]||"");return y.accentedSearch&&(j=OB(j),s=OB(s)),y.caseSensitive||(j=j.toLowerCase()),ce=j===s,e.exact?j===s:j.indexOf(s)==0}))),a=!y.includeSelectedTags&&t.isTagDuplicate(wm(n)?n.value:n),i&&!a&&(ce&&re?k.push(n):y.sortby=="startsWith"&&re?S.unshift(n):S.push(n))},h=this,d=this.settings,y=d.dropdown,S=(e=e||{},[]),k=[],D=d.whitelist,M=y.maxItems>=0?y.maxItems:1/0,L=y.includeSelectedTags,N=typeof y.sortby=="function",z=y.searchKeys,Z=0;if(!(r=d.mode=="select"&&this.value.length&&this.value[0][d.tagTextProp]==r?"":r)||!z.length){S=L?D:D.filter((function(te){return!h.isTagDuplicate(wm(te)?te.value:te)}));var $=N?y.sortby(S,s):S.slice(0,M);return this.state.dropdown.suggestions=$,$}for(s=y.caseSensitive?""+r:(""+r).toLowerCase();Z<D.length;Z++)t=this,u();return this.state.dropdown.suggestions=k.concat(S),$=N?y.sortby(k.concat(S),s):k.concat(S).slice(0,M),this.state.dropdown.suggestions=$,$},getMappedValue:function(r){var e=this.settings.dropdown.mapValueTo;return e?typeof e=="function"?e(r):r[e]||r.value:r.value},createListHTML:function(r){var e=this;return au([],r).map((function(t,n){typeof t!="string"&&typeof t!="number"||(t={value:t});var i=e.dropdown.getMappedValue(t);return i=typeof i=="string"&&e.settings.dropdown.escapeHTML?__(i):i,e.settings.templates.dropdownItem.apply(e,[nGt(rGt({},t),{mappedValue:i}),e])})).join("")}}),SE=(SE={refs:function(){this.DOM.dropdown=this.parseTemplate("dropdown",[this.settings]),this.DOM.dropdown.content=this.DOM.dropdown.querySelector("[data-selector='tagify-suggestions-wrapper']")},getHeaderRef:function(){return this.DOM.dropdown.querySelector("[data-selector='tagify-suggestions-header']")},getFooterRef:function(){return this.DOM.dropdown.querySelector("[data-selector='tagify-suggestions-footer']")},getAllSuggestionsRefs:function(){return oGt(this.DOM.dropdown.content.querySelectorAll(this.settings.classNames.dropdownItemSelector))},show:function(r){var e,t,n,i=this,o=this.settings,a=o.mode=="mix"&&!o.enforceWhitelist,s=!o.whitelist||!o.whitelist.length,u=o.dropdown.position=="manual";if(r=r===void 0?this.state.inputText:r,!(s&&!a&&!o.templates.dropdownItemNoMatch||o.dropdown.enabled===!1||this.state.isLoading||this.settings.readonly)){if(clearTimeout(this.dropdownHide__bindEventsTimeout),this.suggestedListItems=this.dropdown.filterListItems(r),r&&!this.suggestedListItems.length&&(this.trigger("dropdown:noMatch",r),o.templates.dropdownItemNoMatch&&(n=o.templates.dropdownItemNoMatch.call(this,{value:r}))),!n){if(this.suggestedListItems.length)r&&a&&!this.state.editing.scope&&!GO(this.suggestedListItems[0].value,r)&&this.suggestedListItems.unshift({value:r});else{if(!r||!a||this.state.editing.scope)return this.input.autocomplete.suggest.call(this),void this.dropdown.hide();this.suggestedListItems=[{value:r}]}t=""+(wm(e=this.suggestedListItems[0])?e.value:e),o.autoComplete&&t&&t.indexOf(r)==0&&this.input.autocomplete.suggest.call(this,e)}this.dropdown.fill(n),o.dropdown.highlightFirst&&this.dropdown.highlightOption(this.DOM.dropdown.content.querySelector(o.classNames.dropdownItemSelector)),this.state.dropdown.visible||setTimeout(this.dropdown.events.binding.bind(this)),this.state.dropdown.visible=r||!0,this.state.dropdown.query=r,this.setStateSelection(),u||setTimeout((function(){i.dropdown.position(),i.dropdown.render()})),setTimeout((function(){i.trigger("dropdown:show",i.DOM.dropdown)}))}},hide:function(r){var e=this,t=this.DOM,n=t.scope,i=t.dropdown,o=this.settings.dropdown.position=="manual"&&!r;if(i&&document.body.contains(i)&&!o)return window.removeEventListener("resize",this.dropdown.position),this.dropdown.events.binding.call(this,!1),n.setAttribute("aria-expanded",!1),i.parentNode.removeChild(i),setTimeout((function(){e.state.dropdown.visible=!1}),100),this.state.dropdown.query=this.state.ddItemData=this.state.ddItemElm=this.state.selection=null,this.state.tag&&this.state.tag.value.length&&(this.state.flaggedTags[this.state.tag.baseOffset]=this.state.tag),this.trigger("dropdown:hide",i),this},toggle:function(r){this.dropdown[this.state.dropdown.visible&&!r?"hide":"show"]()},getAppendTarget:function(){var r=this.settings.dropdown;return typeof r.appendTarget=="function"?r.appendTarget():r.appendTarget},render:function(){var r,e,t,n=this,i=(r=this.DOM.dropdown,(t=r.cloneNode(!0)).style.cssText="position:fixed; top:-9999px; opacity:0",document.body.appendChild(t),e=t.clientHeight,t.parentNode.removeChild(t),e),o=this.settings,a=this.dropdown.getAppendTarget();return o.dropdown.enabled===!1||(this.DOM.scope.setAttribute("aria-expanded",!0),document.body.contains(this.DOM.dropdown)||(this.DOM.dropdown.classList.add(o.classNames.dropdownInital),this.dropdown.position(i),a.appendChild(this.DOM.dropdown),setTimeout((function(){return n.DOM.dropdown.classList.remove(o.classNames.dropdownInital)})))),this},fill:function(r){r=typeof r=="string"?r:this.dropdown.createListHTML(r||this.suggestedListItems);var e,t=this.settings.templates.dropdownContent.call(this,r);this.DOM.dropdown.content.innerHTML=(e=t)?e.replace(/\>[\r\n ]+\</g,"><").split(/>\s+</).join("><").trim():""},fillHeaderFooter:function(){var r=this.dropdown.filterListItems(this.state.dropdown.query),e=this.parseTemplate("dropdownHeader",[r]),t=this.parseTemplate("dropdownFooter",[r]),n=this.dropdown.getHeaderRef(),i=this.dropdown.getFooterRef();e&&n?.parentNode.replaceChild(e,n),t&&i?.parentNode.replaceChild(t,i)},position:function(r){var e=this.settings.dropdown,t=this.dropdown.getAppendTarget();if(e.position!="manual"&&t){var n,i,o,a,s,u,h,d,y,S,k=this.DOM.dropdown,D=e.RTL,M=t===document.body,L=t===this.DOM.scope,N=M?window.pageYOffset:t.scrollTop,z=document.fullscreenElement||document.webkitFullscreenElement||document.documentElement,Z=z.clientHeight,$=Math.max(z.clientWidth||0,window.innerWidth||0),te=$>480?e.position:"all",ue=this.DOM[te=="input"?"input":"scope"];if(r=r||k.clientHeight,this.state.dropdown.visible){if(te=="text"?(o=(n=(function(){var de=document.getSelection();if(de.rangeCount){var Ae,ye,j=de.getRangeAt(0),H=j.startContainer,xe=j.startOffset;if(xe>0)return(ye=document.createRange()).setStart(H,xe-1),ye.setEnd(H,xe),{left:(Ae=ye.getBoundingClientRect()).right,top:Ae.top,bottom:Ae.bottom};if(H.getBoundingClientRect)return H.getBoundingClientRect()}return{left:-9999,top:-9999}})()).bottom,i=n.top,a=n.left,s="auto"):(u=(function(de){var Ae=0,ye=0;for(de=de.parentNode;de&&de!=z;)Ae+=de.offsetTop||0,ye+=de.offsetLeft||0,de=de.parentNode;return{top:Ae,left:ye}})(t),n=ue.getBoundingClientRect(),i=L?-1:n.top-u.top,o=(L?n.height:n.bottom-u.top)-1,a=L?-1:n.left-u.left,s=n.width+"px"),!M){var re=(function(){for(var de=0,Ae=e.appendTarget.parentNode;Ae;)de+=Ae.scrollTop||0,Ae=Ae.parentNode;return de})();i+=re,o+=re}var ce;i=Math.floor(i),o=Math.ceil(o),d=$-a<120,y=((h=(ce=e.placeAbove)!==null&&ce!==void 0?ce:Z-n.bottom<r)?i:o)+N,S=a+(D&&n.width||0)+window.pageXOffset,S=te=="text"&&d?"right: 0;":"left: ".concat(S,"px;"),k.style.cssText="".concat(S," top: ").concat(y,"px; min-width: ").concat(s,"; max-width: ").concat(s),k.setAttribute("placement",h?"top":"bottom"),k.setAttribute("position",te)}}}})!=null?SE:{},Object.getOwnPropertyDescriptors?Object.defineProperties(DB,Object.getOwnPropertyDescriptors(SE)):(function(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);e&&(n=n.filter((function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable}))),t.push.apply(t,n)}return t})(Object(SE)).forEach((function(r){Object.defineProperty(DB,r,Object.getOwnPropertyDescriptor(SE,r))})),DB),KO="@yaireo/tagify/",lGt={empty:"empty",exceed:"number of tags exceeded",pattern:"pattern mismatch",duplicate:"already exists",notAllowed:"not allowed"},uGt={wrapper:function(r,e){return'<tags class="'.concat(e.classNames.namespace," ").concat(e.mode?"".concat(e.classNames[e.mode+"Mode"]):""," ").concat(r.className,`"
|
|
730
730
|
`).concat(e.readonly?"readonly":"",`
|
|
731
731
|
`).concat(e.disabled?"disabled":"",`
|
|
732
732
|
`).concat(e.required?"required":"",`
|