@cagovweb/state-template 6.5.1 → 6.5.3
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.
- package/dist/css/cagov.core.css +360 -745
- package/dist/css/cagov.core.flat.css +352 -735
- package/dist/css/cagov.core.min.css +1 -1
- package/dist/js/cagov.core.js +179 -249
- package/dist/js/cagov.core.min.js +4 -4
- package/dist/readme.md +2 -2
- package/package.json +3 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
var StateTemplateNpmPackageVersion="6.5.
|
|
1
|
+
var StateTemplateNpmPackageVersion="6.5.3";
|
|
2
2
|
/*!
|
|
3
|
-
* Bootstrap v5.3.
|
|
4
|
-
* Copyright 2011-
|
|
3
|
+
* Bootstrap v5.3.8 (https://getbootstrap.com/)
|
|
4
|
+
* Copyright 2011-2025 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
|
5
5
|
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
|
6
|
-
*/!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).bootstrap=t()}(void 0,(function(){const e=new Map,t={set(t,n,i){e.has(t)||e.set(t,new Map);const s=e.get(t);s.has(n)||0===s.size?s.set(n,i):console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(s.keys())[0]}.`)},get:(t,n)=>e.has(t)&&e.get(t).get(n)||null,remove(t,n){if(!e.has(t))return;const i=e.get(t);i.delete(n),0===i.size&&e.delete(t)}},n="transitionend",i=e=>(e&&window.CSS&&window.CSS.escape&&(e=e.replace(/#([^\s"#']+)/g,((e,t)=>`#${CSS.escape(t)}`))),e),s=e=>{e.dispatchEvent(new Event(n))},o=e=>!(!e||"object"!=typeof e)&&(void 0!==e.jquery&&(e=e[0]),void 0!==e.nodeType),r=e=>o(e)?e.jquery?e[0]:e:"string"==typeof e&&e.length>0?document.querySelector(i(e)):null,a=e=>{if(!o(e)||0===e.getClientRects().length)return!1;const t="visible"===getComputedStyle(e).getPropertyValue("visibility"),n=e.closest("details:not([open])");if(!n)return t;if(n!==e){const t=e.closest("summary");if(t&&t.parentNode!==n)return!1;if(null===t)return!1}return t},l=e=>!e||e.nodeType!==Node.ELEMENT_NODE||(!!e.classList.contains("disabled")||(void 0!==e.disabled?e.disabled:e.hasAttribute("disabled")&&"false"!==e.getAttribute("disabled"))),c=e=>{if(!document.documentElement.attachShadow)return null;if("function"==typeof e.getRootNode){const t=e.getRootNode();return t instanceof ShadowRoot?t:null}return e instanceof ShadowRoot?e:e.parentNode?c(e.parentNode):null},d=()=>{},u=e=>{e.offsetHeight},h=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,f=[],p=()=>"rtl"===document.documentElement.dir,g=e=>{var t;t=()=>{const t=h();if(t){const n=e.NAME,i=t.fn[n];t.fn[n]=e.jQueryInterface,t.fn[n].Constructor=e,t.fn[n].noConflict=()=>(t.fn[n]=i,e.jQueryInterface)}},"loading"===document.readyState?(f.length||document.addEventListener("DOMContentLoaded",(()=>{for(const e of f)e()})),f.push(t)):t()},m=(e,t=[],n=e)=>"function"==typeof e?e(...t):n,_=(e,t,i=!0)=>{if(!i)return void m(e);const o=(e=>{if(!e)return 0;let{transitionDuration:t,transitionDelay:n}=window.getComputedStyle(e);const i=Number.parseFloat(t),s=Number.parseFloat(n);return i||s?(t=t.split(",")[0],n=n.split(",")[0],1e3*(Number.parseFloat(t)+Number.parseFloat(n))):0})(t)+5;let r=!1;const a=({target:i})=>{i===t&&(r=!0,t.removeEventListener(n,a),m(e))};t.addEventListener(n,a),setTimeout((()=>{r||s(t)}),o)},v=(e,t,n,i)=>{const s=e.length;let o=e.indexOf(t);return-1===o?!n&&i?e[s-1]:e[0]:(o+=n?1:-1,i&&(o=(o+s)%s),e[Math.max(0,Math.min(o,s-1))])},b=/[^.]*(?=\..*)\.|.*/,y=/\..*/,w=/::\d+$/,A={};let E=1;const T={mouseenter:"mouseover",mouseleave:"mouseout"},L=new Set(["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"]);function C(e,t){return t&&`${t}::${E++}`||e.uidEvent||E++}function S(e){const t=C(e);return e.uidEvent=t,A[t]=A[t]||{},A[t]}function O(e,t,n=null){return Object.values(e).find((e=>e.callable===t&&e.delegationSelector===n))}function x(e,t,n){const i="string"==typeof t,s=i?n:t||n;let o=N(e);return L.has(o)||(o=e),[i,s,o]}function k(e,t,n,i,s){if("string"!=typeof t||!e)return;let[o,r,a]=x(t,n,i);if(t in T){const e=e=>function(t){if(!t.relatedTarget||t.relatedTarget!==t.delegateTarget&&!t.delegateTarget.contains(t.relatedTarget))return e.call(this,t)};r=e(r)}const l=S(e),c=l[a]||(l[a]={}),d=O(c,r,o?n:null);if(d)return void(d.oneOff=d.oneOff&&s);const u=C(r,t.replace(b,"")),h=o?function(e,t,n){return function i(s){const o=e.querySelectorAll(t);for(let{target:r}=s;r&&r!==this;r=r.parentNode)for(const a of o)if(a===r)return P(s,{delegateTarget:r}),i.oneOff&&$.off(e,s.type,t,n),n.apply(r,[s])}}(e,n,r):function(e,t){return function n(i){return P(i,{delegateTarget:e}),n.oneOff&&$.off(e,i.type,t),t.apply(e,[i])}}(e,r);h.delegationSelector=o?n:null,h.callable=r,h.oneOff=s,h.uidEvent=u,c[u]=h,e.addEventListener(a,h,o)}function D(e,t,n,i,s){const o=O(t[n],i,s);o&&(e.removeEventListener(n,o,Boolean(s)),delete t[n][o.uidEvent])}function I(e,t,n,i){const s=t[n]||{};for(const[o,r]of Object.entries(s))o.includes(i)&&D(e,t,n,r.callable,r.delegationSelector)}function N(e){return e=e.replace(y,""),T[e]||e}const $={on(e,t,n,i){k(e,t,n,i,!1)},one(e,t,n,i){k(e,t,n,i,!0)},off(e,t,n,i){if("string"!=typeof t||!e)return;const[s,o,r]=x(t,n,i),a=r!==t,l=S(e),c=l[r]||{},d=t.startsWith(".");if(void 0===o){if(d)for(const n of Object.keys(l))I(e,l,n,t.slice(1));for(const[n,i]of Object.entries(c)){const s=n.replace(w,"");a&&!t.includes(s)||D(e,l,r,i.callable,i.delegationSelector)}}else{if(!Object.keys(c).length)return;D(e,l,r,o,s?n:null)}},trigger(e,t,n){if("string"!=typeof t||!e)return null;const i=h();let s=null,o=!0,r=!0,a=!1;t!==N(t)&&i&&(s=i.Event(t,n),i(e).trigger(s),o=!s.isPropagationStopped(),r=!s.isImmediatePropagationStopped(),a=s.isDefaultPrevented());const l=P(new Event(t,{bubbles:o,cancelable:!0}),n);return a&&l.preventDefault(),r&&e.dispatchEvent(l),l.defaultPrevented&&s&&s.preventDefault(),l}};function P(e,t={}){for(const[n,i]of Object.entries(t))try{e[n]=i}catch(t){Object.defineProperty(e,n,{configurable:!0,get:()=>i})}return e}function q(e){if("true"===e)return!0;if("false"===e)return!1;if(e===Number(e).toString())return Number(e);if(""===e||"null"===e)return null;if("string"!=typeof e)return e;try{return JSON.parse(decodeURIComponent(e))}catch(t){return e}}function M(e){return e.replace(/[A-Z]/g,(e=>`-${e.toLowerCase()}`))}const R={setDataAttribute(e,t,n){e.setAttribute(`data-bs-${M(t)}`,n)},removeDataAttribute(e,t){e.removeAttribute(`data-bs-${M(t)}`)},getDataAttributes(e){if(!e)return{};const t={},n=Object.keys(e.dataset).filter((e=>e.startsWith("bs")&&!e.startsWith("bsConfig")));for(const i of n){let n=i.replace(/^bs/,"");n=n.charAt(0).toLowerCase()+n.slice(1,n.length),t[n]=q(e.dataset[i])}return t},getDataAttribute:(e,t)=>q(e.getAttribute(`data-bs-${M(t)}`))};class H{static get Default(){return{}}static get DefaultType(){return{}}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}_getConfig(e){return e=this._mergeConfigObj(e),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}_configAfterMerge(e){return e}_mergeConfigObj(e,t){const n=o(t)?R.getDataAttribute(t,"config"):{};return{...this.constructor.Default,..."object"==typeof n?n:{},...o(t)?R.getDataAttributes(t):{},..."object"==typeof e?e:{}}}_typeCheckConfig(e,t=this.constructor.DefaultType){for(const[i,s]of Object.entries(t)){const t=e[i],r=o(t)?"element":null==(n=t)?`${n}`:Object.prototype.toString.call(n).match(/\s([a-z]+)/i)[1].toLowerCase();if(!new RegExp(s).test(r))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${i}" provided type "${r}" but expected type "${s}".`)}var n}}class j extends H{constructor(e,n){super(),(e=r(e))&&(this._element=e,this._config=this._getConfig(n),t.set(this._element,this.constructor.DATA_KEY,this))}dispose(){t.remove(this._element,this.constructor.DATA_KEY),$.off(this._element,this.constructor.EVENT_KEY);for(const e of Object.getOwnPropertyNames(this))this[e]=null}_queueCallback(e,t,n=!0){_(e,t,n)}_getConfig(e){return e=this._mergeConfigObj(e,this._element),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}static getInstance(e){return t.get(r(e),this.DATA_KEY)}static getOrCreateInstance(e,t={}){return this.getInstance(e)||new this(e,"object"==typeof t?t:null)}static get VERSION(){return"5.3.3"}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(e){return`${e}${this.EVENT_KEY}`}}const F=e=>{let t=e.getAttribute("data-bs-target");if(!t||"#"===t){let n=e.getAttribute("href");if(!n||!n.includes("#")&&!n.startsWith("."))return null;n.includes("#")&&!n.startsWith("#")&&(n=`#${n.split("#")[1]}`),t=n&&"#"!==n?n.trim():null}return t?t.split(",").map((e=>i(e))).join(","):null},B={find:(e,t=document.documentElement)=>[].concat(...Element.prototype.querySelectorAll.call(t,e)),findOne:(e,t=document.documentElement)=>Element.prototype.querySelector.call(t,e),children:(e,t)=>[].concat(...e.children).filter((e=>e.matches(t))),parents(e,t){const n=[];let i=e.parentNode.closest(t);for(;i;)n.push(i),i=i.parentNode.closest(t);return n},prev(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return[n];n=n.previousElementSibling}return[]},next(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return[n];n=n.nextElementSibling}return[]},focusableChildren(e){const t=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map((e=>`${e}:not([tabindex^="-"])`)).join(",");return this.find(t,e).filter((e=>!l(e)&&a(e)))},getSelectorFromElement(e){const t=F(e);return t&&B.findOne(t)?t:null},getElementFromSelector(e){const t=F(e);return t?B.findOne(t):null},getMultipleElementsFromSelector(e){const t=F(e);return t?B.find(t):[]}},W=(e,t="hide")=>{const n=`click.dismiss${e.EVENT_KEY}`,i=e.NAME;$.on(document,n,`[data-bs-dismiss="${i}"]`,(function(n){if(["A","AREA"].includes(this.tagName)&&n.preventDefault(),l(this))return;const s=B.getElementFromSelector(this)||this.closest(`.${i}`);e.getOrCreateInstance(s)[t]()}))},z=".bs.alert",Y=`close${z}`,V=`closed${z}`;class X extends j{static get NAME(){return"alert"}close(){if($.trigger(this._element,Y).defaultPrevented)return;this._element.classList.remove("show");const e=this._element.classList.contains("fade");this._queueCallback((()=>this._destroyElement()),this._element,e)}_destroyElement(){this._element.remove(),$.trigger(this._element,V),this.dispose()}static jQueryInterface(e){return this.each((function(){const t=X.getOrCreateInstance(this);if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method named "${e}"`);t[e](this)}}))}}W(X,"close"),g(X);const U='[data-bs-toggle="button"]';class K extends j{static get NAME(){return"button"}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle("active"))}static jQueryInterface(e){return this.each((function(){const t=K.getOrCreateInstance(this);"toggle"===e&&t[e]()}))}}$.on(document,"click.bs.button.data-api",U,(e=>{e.preventDefault();const t=e.target.closest(U);K.getOrCreateInstance(t).toggle()})),g(K);const Q=".bs.swipe",J=`touchstart${Q}`,G=`touchmove${Q}`,Z=`touchend${Q}`,ee=`pointerdown${Q}`,te=`pointerup${Q}`,ne={endCallback:null,leftCallback:null,rightCallback:null},ie={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class se extends H{constructor(e,t){super(),this._element=e,e&&se.isSupported()&&(this._config=this._getConfig(t),this._deltaX=0,this._supportPointerEvents=Boolean(window.PointerEvent),this._initEvents())}static get Default(){return ne}static get DefaultType(){return ie}static get NAME(){return"swipe"}dispose(){$.off(this._element,Q)}_start(e){this._supportPointerEvents?this._eventIsPointerPenTouch(e)&&(this._deltaX=e.clientX):this._deltaX=e.touches[0].clientX}_end(e){this._eventIsPointerPenTouch(e)&&(this._deltaX=e.clientX-this._deltaX),this._handleSwipe(),m(this._config.endCallback)}_move(e){this._deltaX=e.touches&&e.touches.length>1?0:e.touches[0].clientX-this._deltaX}_handleSwipe(){const e=Math.abs(this._deltaX);if(e<=40)return;const t=e/this._deltaX;this._deltaX=0,t&&m(t>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?($.on(this._element,ee,(e=>this._start(e))),$.on(this._element,te,(e=>this._end(e))),this._element.classList.add("pointer-event")):($.on(this._element,J,(e=>this._start(e))),$.on(this._element,G,(e=>this._move(e))),$.on(this._element,Z,(e=>this._end(e))))}_eventIsPointerPenTouch(e){return this._supportPointerEvents&&("pen"===e.pointerType||"touch"===e.pointerType)}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}}const oe=".bs.carousel",re=".data-api",ae="next",le="prev",ce="left",de="right",ue=`slide${oe}`,he=`slid${oe}`,fe=`keydown${oe}`,pe=`mouseenter${oe}`,ge=`mouseleave${oe}`,me=`dragstart${oe}`,_e=`load${oe}${re}`,ve=`click${oe}${re}`,be="carousel",ye="active",we=".active",Ae=".carousel-item",Ee=we+Ae,Te={ArrowLeft:de,ArrowRight:ce},Le={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},Ce={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class Se extends j{constructor(e,t){super(e,t),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=B.findOne(".carousel-indicators",this._element),this._addEventListeners(),this._config.ride===be&&this.cycle()}static get Default(){return Le}static get DefaultType(){return Ce}static get NAME(){return"carousel"}next(){this._slide(ae)}nextWhenVisible(){!document.hidden&&a(this._element)&&this.next()}prev(){this._slide(le)}pause(){this._isSliding&&s(this._element),this._clearInterval()}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval((()=>this.nextWhenVisible()),this._config.interval)}_maybeEnableCycle(){this._config.ride&&(this._isSliding?$.one(this._element,he,(()=>this.cycle())):this.cycle())}to(e){const t=this._getItems();if(e>t.length-1||e<0)return;if(this._isSliding)return void $.one(this._element,he,(()=>this.to(e)));const n=this._getItemIndex(this._getActive());if(n===e)return;const i=e>n?ae:le;this._slide(i,t[e])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(e){return e.defaultInterval=e.interval,e}_addEventListeners(){this._config.keyboard&&$.on(this._element,fe,(e=>this._keydown(e))),"hover"===this._config.pause&&($.on(this._element,pe,(()=>this.pause())),$.on(this._element,ge,(()=>this._maybeEnableCycle()))),this._config.touch&&se.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const e of B.find(".carousel-item img",this._element))$.on(e,me,(e=>e.preventDefault()));const e={leftCallback:()=>this._slide(this._directionToOrder(ce)),rightCallback:()=>this._slide(this._directionToOrder(de)),endCallback:()=>{"hover"===this._config.pause&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout((()=>this._maybeEnableCycle()),500+this._config.interval))}};this._swipeHelper=new se(this._element,e)}_keydown(e){if(/input|textarea/i.test(e.target.tagName))return;const t=Te[e.key];t&&(e.preventDefault(),this._slide(this._directionToOrder(t)))}_getItemIndex(e){return this._getItems().indexOf(e)}_setActiveIndicatorElement(e){if(!this._indicatorsElement)return;const t=B.findOne(we,this._indicatorsElement);t.classList.remove(ye),t.removeAttribute("aria-current");const n=B.findOne(`[data-bs-slide-to="${e}"]`,this._indicatorsElement);n&&(n.classList.add(ye),n.setAttribute("aria-current","true"))}_updateInterval(){const e=this._activeElement||this._getActive();if(!e)return;const t=Number.parseInt(e.getAttribute("data-bs-interval"),10);this._config.interval=t||this._config.defaultInterval}_slide(e,t=null){if(this._isSliding)return;const n=this._getActive(),i=e===ae,s=t||v(this._getItems(),n,i,this._config.wrap);if(s===n)return;const o=this._getItemIndex(s),r=t=>$.trigger(this._element,t,{relatedTarget:s,direction:this._orderToDirection(e),from:this._getItemIndex(n),to:o});if(r(ue).defaultPrevented)return;if(!n||!s)return;const a=Boolean(this._interval);this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(o),this._activeElement=s;const l=i?"carousel-item-start":"carousel-item-end",c=i?"carousel-item-next":"carousel-item-prev";s.classList.add(c),u(s),n.classList.add(l),s.classList.add(l);this._queueCallback((()=>{s.classList.remove(l,c),s.classList.add(ye),n.classList.remove(ye,c,l),this._isSliding=!1,r(he)}),n,this._isAnimated()),a&&this.cycle()}_isAnimated(){return this._element.classList.contains("slide")}_getActive(){return B.findOne(Ee,this._element)}_getItems(){return B.find(Ae,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(e){return p()?e===ce?le:ae:e===ce?ae:le}_orderToDirection(e){return p()?e===le?ce:de:e===le?de:ce}static jQueryInterface(e){return this.each((function(){const t=Se.getOrCreateInstance(this,e);if("number"!=typeof e){if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method named "${e}"`);t[e]()}}else t.to(e)}))}}$.on(document,ve,"[data-bs-slide], [data-bs-slide-to]",(function(e){const t=B.getElementFromSelector(this);if(!t||!t.classList.contains(be))return;e.preventDefault();const n=Se.getOrCreateInstance(t),i=this.getAttribute("data-bs-slide-to");return i?(n.to(i),void n._maybeEnableCycle()):"next"===R.getDataAttribute(this,"slide")?(n.next(),void n._maybeEnableCycle()):(n.prev(),void n._maybeEnableCycle())})),$.on(window,_e,(()=>{const e=B.find('[data-bs-ride="carousel"]');for(const t of e)Se.getOrCreateInstance(t)})),g(Se);const Oe=".bs.collapse",xe=`show${Oe}`,ke=`shown${Oe}`,De=`hide${Oe}`,Ie=`hidden${Oe}`,Ne=`click${Oe}.data-api`,$e="show",Pe="collapse",qe="collapsing",Me=`:scope .${Pe} .${Pe}`,Re='[data-bs-toggle="collapse"]',He={parent:null,toggle:!0},je={parent:"(null|element)",toggle:"boolean"};class Fe extends j{constructor(e,t){super(e,t),this._isTransitioning=!1,this._triggerArray=[];const n=B.find(Re);for(const e of n){const t=B.getSelectorFromElement(e),n=B.find(t).filter((e=>e===this._element));null!==t&&n.length&&this._triggerArray.push(e)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return He}static get DefaultType(){return je}static get NAME(){return"collapse"}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let e=[];if(this._config.parent&&(e=this._getFirstLevelChildren(".collapse.show, .collapse.collapsing").filter((e=>e!==this._element)).map((e=>Fe.getOrCreateInstance(e,{toggle:!1})))),e.length&&e[0]._isTransitioning)return;if($.trigger(this._element,xe).defaultPrevented)return;for(const t of e)t.hide();const t=this._getDimension();this._element.classList.remove(Pe),this._element.classList.add(qe),this._element.style[t]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const n=`scroll${t[0].toUpperCase()+t.slice(1)}`;this._queueCallback((()=>{this._isTransitioning=!1,this._element.classList.remove(qe),this._element.classList.add(Pe,$e),this._element.style[t]="",$.trigger(this._element,ke)}),this._element,!0),this._element.style[t]=`${this._element[n]}px`}hide(){if(this._isTransitioning||!this._isShown())return;if($.trigger(this._element,De).defaultPrevented)return;const e=this._getDimension();this._element.style[e]=`${this._element.getBoundingClientRect()[e]}px`,u(this._element),this._element.classList.add(qe),this._element.classList.remove(Pe,$e);for(const e of this._triggerArray){const t=B.getElementFromSelector(e);t&&!this._isShown(t)&&this._addAriaAndCollapsedClass([e],!1)}this._isTransitioning=!0;this._element.style[e]="",this._queueCallback((()=>{this._isTransitioning=!1,this._element.classList.remove(qe),this._element.classList.add(Pe),$.trigger(this._element,Ie)}),this._element,!0)}_isShown(e=this._element){return e.classList.contains($e)}_configAfterMerge(e){return e.toggle=Boolean(e.toggle),e.parent=r(e.parent),e}_getDimension(){return this._element.classList.contains("collapse-horizontal")?"width":"height"}_initializeChildren(){if(!this._config.parent)return;const e=this._getFirstLevelChildren(Re);for(const t of e){const e=B.getElementFromSelector(t);e&&this._addAriaAndCollapsedClass([t],this._isShown(e))}}_getFirstLevelChildren(e){const t=B.find(Me,this._config.parent);return B.find(e,this._config.parent).filter((e=>!t.includes(e)))}_addAriaAndCollapsedClass(e,t){if(e.length)for(const n of e)n.classList.toggle("collapsed",!t),n.setAttribute("aria-expanded",t)}static jQueryInterface(e){const t={};return"string"==typeof e&&/show|hide/.test(e)&&(t.toggle=!1),this.each((function(){const n=Fe.getOrCreateInstance(this,t);if("string"==typeof e){if(void 0===n[e])throw new TypeError(`No method named "${e}"`);n[e]()}}))}}$.on(document,Ne,Re,(function(e){("A"===e.target.tagName||e.delegateTarget&&"A"===e.delegateTarget.tagName)&&e.preventDefault();for(const e of B.getMultipleElementsFromSelector(this))Fe.getOrCreateInstance(e,{toggle:!1}).toggle()})),g(Fe);var Be="top",We="bottom",ze="right",Ye="left",Ve="auto",Xe=[Be,We,ze,Ye],Ue="start",Ke="end",Qe="clippingParents",Je="viewport",Ge="popper",Ze="reference",et=Xe.reduce((function(e,t){return e.concat([t+"-"+Ue,t+"-"+Ke])}),[]),tt=[].concat(Xe,[Ve]).reduce((function(e,t){return e.concat([t,t+"-"+Ue,t+"-"+Ke])}),[]),nt="beforeRead",it="read",st="afterRead",ot="beforeMain",rt="main",at="afterMain",lt="beforeWrite",ct="write",dt="afterWrite",ut=[nt,it,st,ot,rt,at,lt,ct,dt];function ht(e){return e?(e.nodeName||"").toLowerCase():null}function ft(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function pt(e){return e instanceof ft(e).Element||e instanceof Element}function gt(e){return e instanceof ft(e).HTMLElement||e instanceof HTMLElement}function mt(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ft(e).ShadowRoot||e instanceof ShadowRoot)}const _t={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},i=t.attributes[e]||{},s=t.elements[e];gt(s)&&ht(s)&&(Object.assign(s.style,n),Object.keys(i).forEach((function(e){var t=i[e];!1===t?s.removeAttribute(e):s.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var i=t.elements[e],s=t.attributes[e]||{},o=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});gt(i)&&ht(i)&&(Object.assign(i.style,o),Object.keys(s).forEach((function(e){i.removeAttribute(e)})))}))}},requires:["computeStyles"]};function vt(e){return e.split("-")[0]}var bt=Math.max,yt=Math.min,wt=Math.round;function At(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function Et(){return!/^((?!chrome|android).)*safari/i.test(At())}function Tt(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var i=e.getBoundingClientRect(),s=1,o=1;t&>(e)&&(s=e.offsetWidth>0&&wt(i.width)/e.offsetWidth||1,o=e.offsetHeight>0&&wt(i.height)/e.offsetHeight||1);var r=(pt(e)?ft(e):window).visualViewport,a=!Et()&&n,l=(i.left+(a&&r?r.offsetLeft:0))/s,c=(i.top+(a&&r?r.offsetTop:0))/o,d=i.width/s,u=i.height/o;return{width:d,height:u,top:c,right:l+d,bottom:c+u,left:l,x:l,y:c}}function Lt(e){var t=Tt(e),n=e.offsetWidth,i=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-i)<=1&&(i=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:i}}function Ct(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&mt(n)){var i=t;do{if(i&&e.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function St(e){return ft(e).getComputedStyle(e)}function Ot(e){return["table","td","th"].indexOf(ht(e))>=0}function xt(e){return((pt(e)?e.ownerDocument:e.document)||window.document).documentElement}function kt(e){return"html"===ht(e)?e:e.assignedSlot||e.parentNode||(mt(e)?e.host:null)||xt(e)}function Dt(e){return gt(e)&&"fixed"!==St(e).position?e.offsetParent:null}function It(e){for(var t=ft(e),n=Dt(e);n&&Ot(n)&&"static"===St(n).position;)n=Dt(n);return n&&("html"===ht(n)||"body"===ht(n)&&"static"===St(n).position)?t:n||function(e){var t=/firefox/i.test(At());if(/Trident/i.test(At())&>(e)&&"fixed"===St(e).position)return null;var n=kt(e);for(mt(n)&&(n=n.host);gt(n)&&["html","body"].indexOf(ht(n))<0;){var i=St(n);if("none"!==i.transform||"none"!==i.perspective||"paint"===i.contain||-1!==["transform","perspective"].indexOf(i.willChange)||t&&"filter"===i.willChange||t&&i.filter&&"none"!==i.filter)return n;n=n.parentNode}return null}(e)||t}function Nt(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function $t(e,t,n){return bt(e,yt(t,n))}function Pt(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function qt(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}const Mt={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,i=e.name,s=e.options,o=n.elements.arrow,r=n.modifiersData.popperOffsets,a=vt(n.placement),l=Nt(a),c=[Ye,ze].indexOf(a)>=0?"height":"width";if(o&&r){var d=function(e,t){return Pt("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:qt(e,Xe))}(s.padding,n),u=Lt(o),h="y"===l?Be:Ye,f="y"===l?We:ze,p=n.rects.reference[c]+n.rects.reference[l]-r[l]-n.rects.popper[c],g=r[l]-n.rects.reference[l],m=It(o),_=m?"y"===l?m.clientHeight||0:m.clientWidth||0:0,v=p/2-g/2,b=d[h],y=_-u[c]-d[f],w=_/2-u[c]/2+v,A=$t(b,w,y),E=l;n.modifiersData[i]=((t={})[E]=A,t.centerOffset=A-w,t)}},effect:function(e){var t=e.state,n=e.options.element,i=void 0===n?"[data-popper-arrow]":n;null!=i&&("string"!=typeof i||(i=t.elements.popper.querySelector(i)))&&Ct(t.elements.popper,i)&&(t.elements.arrow=i)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Rt(e){return e.split("-")[1]}var Ht={top:"auto",right:"auto",bottom:"auto",left:"auto"};function jt(e){var t,n=e.popper,i=e.popperRect,s=e.placement,o=e.variation,r=e.offsets,a=e.position,l=e.gpuAcceleration,c=e.adaptive,d=e.roundOffsets,u=e.isFixed,h=r.x,f=void 0===h?0:h,p=r.y,g=void 0===p?0:p,m="function"==typeof d?d({x:f,y:g}):{x:f,y:g};f=m.x,g=m.y;var _=r.hasOwnProperty("x"),v=r.hasOwnProperty("y"),b=Ye,y=Be,w=window;if(c){var A=It(n),E="clientHeight",T="clientWidth";if(A===ft(n)&&"static"!==St(A=xt(n)).position&&"absolute"===a&&(E="scrollHeight",T="scrollWidth"),s===Be||(s===Ye||s===ze)&&o===Ke)y=We,g-=(u&&A===w&&w.visualViewport?w.visualViewport.height:A[E])-i.height,g*=l?1:-1;if(s===Ye||(s===Be||s===We)&&o===Ke)b=ze,f-=(u&&A===w&&w.visualViewport?w.visualViewport.width:A[T])-i.width,f*=l?1:-1}var L,C=Object.assign({position:a},c&&Ht),S=!0===d?function(e,t){var n=e.x,i=e.y,s=t.devicePixelRatio||1;return{x:wt(n*s)/s||0,y:wt(i*s)/s||0}}({x:f,y:g},ft(n)):{x:f,y:g};return f=S.x,g=S.y,l?Object.assign({},C,((L={})[y]=v?"0":"",L[b]=_?"0":"",L.transform=(w.devicePixelRatio||1)<=1?"translate("+f+"px, "+g+"px)":"translate3d("+f+"px, "+g+"px, 0)",L)):Object.assign({},C,((t={})[y]=v?g+"px":"",t[b]=_?f+"px":"",t.transform="",t))}const Ft={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,i=n.gpuAcceleration,s=void 0===i||i,o=n.adaptive,r=void 0===o||o,a=n.roundOffsets,l=void 0===a||a,c={placement:vt(t.placement),variation:Rt(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:s,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,jt(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:r,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,jt(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}};var Bt={passive:!0};const Wt={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,i=e.options,s=i.scroll,o=void 0===s||s,r=i.resize,a=void 0===r||r,l=ft(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&c.forEach((function(e){e.addEventListener("scroll",n.update,Bt)})),a&&l.addEventListener("resize",n.update,Bt),function(){o&&c.forEach((function(e){e.removeEventListener("scroll",n.update,Bt)})),a&&l.removeEventListener("resize",n.update,Bt)}},data:{}};var zt={left:"right",right:"left",bottom:"top",top:"bottom"};function Yt(e){return e.replace(/left|right|bottom|top/g,(function(e){return zt[e]}))}var Vt={start:"end",end:"start"};function Xt(e){return e.replace(/start|end/g,(function(e){return Vt[e]}))}function Ut(e){var t=ft(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Kt(e){return Tt(xt(e)).left+Ut(e).scrollLeft}function Qt(e){var t=St(e),n=t.overflow,i=t.overflowX,s=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+s+i)}function Jt(e){return["html","body","#document"].indexOf(ht(e))>=0?e.ownerDocument.body:gt(e)&&Qt(e)?e:Jt(kt(e))}function Gt(e,t){var n;void 0===t&&(t=[]);var i=Jt(e),s=i===(null==(n=e.ownerDocument)?void 0:n.body),o=ft(i),r=s?[o].concat(o.visualViewport||[],Qt(i)?i:[]):i,a=t.concat(r);return s?a:a.concat(Gt(kt(r)))}function Zt(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function en(e,t,n){return t===Je?Zt(function(e,t){var n=ft(e),i=xt(e),s=n.visualViewport,o=i.clientWidth,r=i.clientHeight,a=0,l=0;if(s){o=s.width,r=s.height;var c=Et();(c||!c&&"fixed"===t)&&(a=s.offsetLeft,l=s.offsetTop)}return{width:o,height:r,x:a+Kt(e),y:l}}(e,n)):pt(t)?function(e,t){var n=Tt(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):Zt(function(e){var t,n=xt(e),i=Ut(e),s=null==(t=e.ownerDocument)?void 0:t.body,o=bt(n.scrollWidth,n.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),r=bt(n.scrollHeight,n.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0),a=-i.scrollLeft+Kt(e),l=-i.scrollTop;return"rtl"===St(s||n).direction&&(a+=bt(n.clientWidth,s?s.clientWidth:0)-o),{width:o,height:r,x:a,y:l}}(xt(e)))}function tn(e,t,n,i){var s="clippingParents"===t?function(e){var t=Gt(kt(e)),n=["absolute","fixed"].indexOf(St(e).position)>=0&>(e)?It(e):e;return pt(n)?t.filter((function(e){return pt(e)&&Ct(e,n)&&"body"!==ht(e)})):[]}(e):[].concat(t),o=[].concat(s,[n]),r=o[0],a=o.reduce((function(t,n){var s=en(e,n,i);return t.top=bt(s.top,t.top),t.right=yt(s.right,t.right),t.bottom=yt(s.bottom,t.bottom),t.left=bt(s.left,t.left),t}),en(e,r,i));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function nn(e){var t,n=e.reference,i=e.element,s=e.placement,o=s?vt(s):null,r=s?Rt(s):null,a=n.x+n.width/2-i.width/2,l=n.y+n.height/2-i.height/2;switch(o){case Be:t={x:a,y:n.y-i.height};break;case We:t={x:a,y:n.y+n.height};break;case ze:t={x:n.x+n.width,y:l};break;case Ye:t={x:n.x-i.width,y:l};break;default:t={x:n.x,y:n.y}}var c=o?Nt(o):null;if(null!=c){var d="y"===c?"height":"width";switch(r){case Ue:t[c]=t[c]-(n[d]/2-i[d]/2);break;case Ke:t[c]=t[c]+(n[d]/2-i[d]/2)}}return t}function sn(e,t){void 0===t&&(t={});var n=t,i=n.placement,s=void 0===i?e.placement:i,o=n.strategy,r=void 0===o?e.strategy:o,a=n.boundary,l=void 0===a?Qe:a,c=n.rootBoundary,d=void 0===c?Je:c,u=n.elementContext,h=void 0===u?Ge:u,f=n.altBoundary,p=void 0!==f&&f,g=n.padding,m=void 0===g?0:g,_=Pt("number"!=typeof m?m:qt(m,Xe)),v=h===Ge?Ze:Ge,b=e.rects.popper,y=e.elements[p?v:h],w=tn(pt(y)?y:y.contextElement||xt(e.elements.popper),l,d,r),A=Tt(e.elements.reference),E=nn({reference:A,element:b,strategy:"absolute",placement:s}),T=Zt(Object.assign({},b,E)),L=h===Ge?T:A,C={top:w.top-L.top+_.top,bottom:L.bottom-w.bottom+_.bottom,left:w.left-L.left+_.left,right:L.right-w.right+_.right},S=e.modifiersData.offset;if(h===Ge&&S){var O=S[s];Object.keys(C).forEach((function(e){var t=[ze,We].indexOf(e)>=0?1:-1,n=[Be,We].indexOf(e)>=0?"y":"x";C[e]+=O[n]*t}))}return C}function on(e,t){void 0===t&&(t={});var n=t,i=n.placement,s=n.boundary,o=n.rootBoundary,r=n.padding,a=n.flipVariations,l=n.allowedAutoPlacements,c=void 0===l?tt:l,d=Rt(i),u=d?a?et:et.filter((function(e){return Rt(e)===d})):Xe,h=u.filter((function(e){return c.indexOf(e)>=0}));0===h.length&&(h=u);var f=h.reduce((function(t,n){return t[n]=sn(e,{placement:n,boundary:s,rootBoundary:o,padding:r})[vt(n)],t}),{});return Object.keys(f).sort((function(e,t){return f[e]-f[t]}))}const rn={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,i=e.name;if(!t.modifiersData[i]._skip){for(var s=n.mainAxis,o=void 0===s||s,r=n.altAxis,a=void 0===r||r,l=n.fallbackPlacements,c=n.padding,d=n.boundary,u=n.rootBoundary,h=n.altBoundary,f=n.flipVariations,p=void 0===f||f,g=n.allowedAutoPlacements,m=t.options.placement,_=vt(m),v=l||(_===m||!p?[Yt(m)]:function(e){if(vt(e)===Ve)return[];var t=Yt(e);return[Xt(e),t,Xt(t)]}(m)),b=[m].concat(v).reduce((function(e,n){return e.concat(vt(n)===Ve?on(t,{placement:n,boundary:d,rootBoundary:u,padding:c,flipVariations:p,allowedAutoPlacements:g}):n)}),[]),y=t.rects.reference,w=t.rects.popper,A=new Map,E=!0,T=b[0],L=0;L<b.length;L++){var C=b[L],S=vt(C),O=Rt(C)===Ue,x=[Be,We].indexOf(S)>=0,k=x?"width":"height",D=sn(t,{placement:C,boundary:d,rootBoundary:u,altBoundary:h,padding:c}),I=x?O?ze:Ye:O?We:Be;y[k]>w[k]&&(I=Yt(I));var N=Yt(I),$=[];if(o&&$.push(D[S]<=0),a&&$.push(D[I]<=0,D[N]<=0),$.every((function(e){return e}))){T=C,E=!1;break}A.set(C,$)}if(E)for(var P=function(e){var t=b.find((function(t){var n=A.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return T=t,"break"},q=p?3:1;q>0;q--){if("break"===P(q))break}t.placement!==T&&(t.modifiersData[i]._skip=!0,t.placement=T,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function an(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function ln(e){return[Be,ze,We,Ye].some((function(t){return e[t]>=0}))}const cn={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,i=t.rects.reference,s=t.rects.popper,o=t.modifiersData.preventOverflow,r=sn(t,{elementContext:"reference"}),a=sn(t,{altBoundary:!0}),l=an(r,i),c=an(a,s,o),d=ln(l),u=ln(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:d,hasPopperEscaped:u},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":u})}};const dn={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,i=e.name,s=n.offset,o=void 0===s?[0,0]:s,r=tt.reduce((function(e,n){return e[n]=function(e,t,n){var i=vt(e),s=[Ye,Be].indexOf(i)>=0?-1:1,o="function"==typeof n?n(Object.assign({},t,{placement:e})):n,r=o[0],a=o[1];return r=r||0,a=(a||0)*s,[Ye,ze].indexOf(i)>=0?{x:a,y:r}:{x:r,y:a}}(n,t.rects,o),e}),{}),a=r[t.placement],l=a.x,c=a.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[i]=r}};const un={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=nn({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}};const hn={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,i=e.name,s=n.mainAxis,o=void 0===s||s,r=n.altAxis,a=void 0!==r&&r,l=n.boundary,c=n.rootBoundary,d=n.altBoundary,u=n.padding,h=n.tether,f=void 0===h||h,p=n.tetherOffset,g=void 0===p?0:p,m=sn(t,{boundary:l,rootBoundary:c,padding:u,altBoundary:d}),_=vt(t.placement),v=Rt(t.placement),b=!v,y=Nt(_),w="x"===y?"y":"x",A=t.modifiersData.popperOffsets,E=t.rects.reference,T=t.rects.popper,L="function"==typeof g?g(Object.assign({},t.rects,{placement:t.placement})):g,C="number"==typeof L?{mainAxis:L,altAxis:L}:Object.assign({mainAxis:0,altAxis:0},L),S=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,O={x:0,y:0};if(A){if(o){var x,k="y"===y?Be:Ye,D="y"===y?We:ze,I="y"===y?"height":"width",N=A[y],$=N+m[k],P=N-m[D],q=f?-T[I]/2:0,M=v===Ue?E[I]:T[I],R=v===Ue?-T[I]:-E[I],H=t.elements.arrow,j=f&&H?Lt(H):{width:0,height:0},F=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},B=F[k],W=F[D],z=$t(0,E[I],j[I]),Y=b?E[I]/2-q-z-B-C.mainAxis:M-z-B-C.mainAxis,V=b?-E[I]/2+q+z+W+C.mainAxis:R+z+W+C.mainAxis,X=t.elements.arrow&&It(t.elements.arrow),U=X?"y"===y?X.clientTop||0:X.clientLeft||0:0,K=null!=(x=null==S?void 0:S[y])?x:0,Q=N+V-K,J=$t(f?yt($,N+Y-K-U):$,N,f?bt(P,Q):P);A[y]=J,O[y]=J-N}if(a){var G,Z="x"===y?Be:Ye,ee="x"===y?We:ze,te=A[w],ne="y"===w?"height":"width",ie=te+m[Z],se=te-m[ee],oe=-1!==[Be,Ye].indexOf(_),re=null!=(G=null==S?void 0:S[w])?G:0,ae=oe?ie:te-E[ne]-T[ne]-re+C.altAxis,le=oe?te+E[ne]+T[ne]-re-C.altAxis:se,ce=f&&oe?function(e,t,n){var i=$t(e,t,n);return i>n?n:i}(ae,te,le):$t(f?ae:ie,te,f?le:se);A[w]=ce,O[w]=ce-te}t.modifiersData[i]=O}},requiresIfExists:["offset"]};function fn(e,t,n){void 0===n&&(n=!1);var i,s,o=gt(t),r=gt(t)&&function(e){var t=e.getBoundingClientRect(),n=wt(t.width)/e.offsetWidth||1,i=wt(t.height)/e.offsetHeight||1;return 1!==n||1!==i}(t),a=xt(t),l=Tt(e,r,n),c={scrollLeft:0,scrollTop:0},d={x:0,y:0};return(o||!o&&!n)&&(("body"!==ht(t)||Qt(a))&&(c=(i=t)!==ft(i)&>(i)?{scrollLeft:(s=i).scrollLeft,scrollTop:s.scrollTop}:Ut(i)),gt(t)?((d=Tt(t,!0)).x+=t.clientLeft,d.y+=t.clientTop):a&&(d.x=Kt(a))),{x:l.left+c.scrollLeft-d.x,y:l.top+c.scrollTop-d.y,width:l.width,height:l.height}}function pn(e){var t=new Map,n=new Set,i=[];function s(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var i=t.get(e);i&&s(i)}})),i.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||s(e)})),i}var gn={placement:"bottom",modifiers:[],strategy:"absolute"};function mn(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function _n(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,i=void 0===n?[]:n,s=t.defaultOptions,o=void 0===s?gn:s;return function(e,t,n){void 0===n&&(n=o);var s,r,a={placement:"bottom",orderedModifiers:[],options:Object.assign({},gn,o),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},l=[],c=!1,d={state:a,setOptions:function(n){var s="function"==typeof n?n(a.options):n;u(),a.options=Object.assign({},o,a.options,s),a.scrollParents={reference:pt(e)?Gt(e):e.contextElement?Gt(e.contextElement):[],popper:Gt(t)};var r,c,h=function(e){var t=pn(e);return ut.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}((r=[].concat(i,a.options.modifiers),c=r.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{}),Object.keys(c).map((function(e){return c[e]}))));return a.orderedModifiers=h.filter((function(e){return e.enabled})),a.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,i=void 0===n?{}:n,s=e.effect;if("function"==typeof s){var o=s({state:a,name:t,instance:d,options:i}),r=function(){};l.push(o||r)}})),d.update()},forceUpdate:function(){if(!c){var e=a.elements,t=e.reference,n=e.popper;if(mn(t,n)){a.rects={reference:fn(t,It(n),"fixed"===a.options.strategy),popper:Lt(n)},a.reset=!1,a.placement=a.options.placement,a.orderedModifiers.forEach((function(e){return a.modifiersData[e.name]=Object.assign({},e.data)}));for(var i=0;i<a.orderedModifiers.length;i++)if(!0!==a.reset){var s=a.orderedModifiers[i],o=s.fn,r=s.options,l=void 0===r?{}:r,u=s.name;"function"==typeof o&&(a=o({state:a,options:l,name:u,instance:d})||a)}else a.reset=!1,i=-1}}},update:(s=function(){return new Promise((function(e){d.forceUpdate(),e(a)}))},function(){return r||(r=new Promise((function(e){Promise.resolve().then((function(){r=void 0,e(s())}))}))),r}),destroy:function(){u(),c=!0}};if(!mn(e,t))return d;function u(){l.forEach((function(e){return e()})),l=[]}return d.setOptions(n).then((function(e){!c&&n.onFirstUpdate&&n.onFirstUpdate(e)})),d}}var vn=_n(),bn=_n({defaultModifiers:[Wt,un,Ft,_t]}),yn=_n({defaultModifiers:[Wt,un,Ft,_t,dn,rn,hn,Mt,cn]});const wn=Object.freeze(Object.defineProperty({__proto__:null,afterMain:at,afterRead:st,afterWrite:dt,applyStyles:_t,arrow:Mt,auto:Ve,basePlacements:Xe,beforeMain:ot,beforeRead:nt,beforeWrite:lt,bottom:We,clippingParents:Qe,computeStyles:Ft,createPopper:yn,createPopperBase:vn,createPopperLite:bn,detectOverflow:sn,end:Ke,eventListeners:Wt,flip:rn,hide:cn,left:Ye,main:rt,modifierPhases:ut,offset:dn,placements:tt,popper:Ge,popperGenerator:_n,popperOffsets:un,preventOverflow:hn,read:it,reference:Ze,right:ze,start:Ue,top:Be,variationPlacements:et,viewport:Je,write:ct},Symbol.toStringTag,{value:"Module"})),An="dropdown",En=".bs.dropdown",Tn=".data-api",Ln="ArrowUp",Cn="ArrowDown",Sn=`hide${En}`,On=`hidden${En}`,xn=`show${En}`,kn=`shown${En}`,Dn=`click${En}${Tn}`,In=`keydown${En}${Tn}`,Nn=`keyup${En}${Tn}`,$n="show",Pn='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',qn=`${Pn}.${$n}`,Mn=".dropdown-menu",Rn=p()?"top-end":"top-start",Hn=p()?"top-start":"top-end",jn=p()?"bottom-end":"bottom-start",Fn=p()?"bottom-start":"bottom-end",Bn=p()?"left-start":"right-start",Wn=p()?"right-start":"left-start",zn={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},Yn={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class Vn extends j{constructor(e,t){super(e,t),this._popper=null,this._parent=this._element.parentNode,this._menu=B.next(this._element,Mn)[0]||B.prev(this._element,Mn)[0]||B.findOne(Mn,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return zn}static get DefaultType(){return Yn}static get NAME(){return An}toggle(){return this._isShown()?this.hide():this.show()}show(){if(l(this._element)||this._isShown())return;const e={relatedTarget:this._element};if(!$.trigger(this._element,xn,e).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(".navbar-nav"))for(const e of[].concat(...document.body.children))$.on(e,"mouseover",d);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add($n),this._element.classList.add($n),$.trigger(this._element,kn,e)}}hide(){if(l(this._element)||!this._isShown())return;const e={relatedTarget:this._element};this._completeHide(e)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(e){if(!$.trigger(this._element,Sn,e).defaultPrevented){if("ontouchstart"in document.documentElement)for(const e of[].concat(...document.body.children))$.off(e,"mouseover",d);this._popper&&this._popper.destroy(),this._menu.classList.remove($n),this._element.classList.remove($n),this._element.setAttribute("aria-expanded","false"),R.removeDataAttribute(this._menu,"popper"),$.trigger(this._element,On,e)}}_getConfig(e){if("object"==typeof(e=super._getConfig(e)).reference&&!o(e.reference)&&"function"!=typeof e.reference.getBoundingClientRect)throw new TypeError(`${An.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return e}_createPopper(){if(void 0===wn)throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");let e=this._element;"parent"===this._config.reference?e=this._parent:o(this._config.reference)?e=r(this._config.reference):"object"==typeof this._config.reference&&(e=this._config.reference);const t=this._getPopperConfig();this._popper=yn(e,this._menu,t)}_isShown(){return this._menu.classList.contains($n)}_getPlacement(){const e=this._parent;if(e.classList.contains("dropend"))return Bn;if(e.classList.contains("dropstart"))return Wn;if(e.classList.contains("dropup-center"))return"top";if(e.classList.contains("dropdown-center"))return"bottom";const t="end"===getComputedStyle(this._menu).getPropertyValue("--bs-position").trim();return e.classList.contains("dropup")?t?Hn:Rn:t?Fn:jn}_detectNavbar(){return null!==this._element.closest(".navbar")}_getOffset(){const{offset:e}=this._config;return"string"==typeof e?e.split(",").map((e=>Number.parseInt(e,10))):"function"==typeof e?t=>e(t,this._element):e}_getPopperConfig(){const e={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return(this._inNavbar||"static"===this._config.display)&&(R.setDataAttribute(this._menu,"popper","static"),e.modifiers=[{name:"applyStyles",enabled:!1}]),{...e,...m(this._config.popperConfig,[e])}}_selectMenuItem({key:e,target:t}){const n=B.find(".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",this._menu).filter((e=>a(e)));n.length&&v(n,t,e===Cn,!n.includes(t)).focus()}static jQueryInterface(e){return this.each((function(){const t=Vn.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method named "${e}"`);t[e]()}}))}static clearMenus(e){if(2===e.button||"keyup"===e.type&&"Tab"!==e.key)return;const t=B.find(qn);for(const n of t){const t=Vn.getInstance(n);if(!t||!1===t._config.autoClose)continue;const i=e.composedPath(),s=i.includes(t._menu);if(i.includes(t._element)||"inside"===t._config.autoClose&&!s||"outside"===t._config.autoClose&&s)continue;if(t._menu.contains(e.target)&&("keyup"===e.type&&"Tab"===e.key||/input|select|option|textarea|form/i.test(e.target.tagName)))continue;const o={relatedTarget:t._element};"click"===e.type&&(o.clickEvent=e),t._completeHide(o)}}static dataApiKeydownHandler(e){const t=/input|textarea/i.test(e.target.tagName),n="Escape"===e.key,i=[Ln,Cn].includes(e.key);if(!i&&!n)return;if(t&&!n)return;e.preventDefault();const s=this.matches(Pn)?this:B.prev(this,Pn)[0]||B.next(this,Pn)[0]||B.findOne(Pn,e.delegateTarget.parentNode),o=Vn.getOrCreateInstance(s);if(i)return e.stopPropagation(),o.show(),void o._selectMenuItem(e);o._isShown()&&(e.stopPropagation(),o.hide(),s.focus())}}$.on(document,In,Pn,Vn.dataApiKeydownHandler),$.on(document,In,Mn,Vn.dataApiKeydownHandler),$.on(document,Dn,Vn.clearMenus),$.on(document,Nn,Vn.clearMenus),$.on(document,Dn,Pn,(function(e){e.preventDefault(),Vn.getOrCreateInstance(this).toggle()})),g(Vn);const Xn="backdrop",Un="show",Kn=`mousedown.bs.${Xn}`,Qn={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},Jn={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class Gn extends H{constructor(e){super(),this._config=this._getConfig(e),this._isAppended=!1,this._element=null}static get Default(){return Qn}static get DefaultType(){return Jn}static get NAME(){return Xn}show(e){if(!this._config.isVisible)return void m(e);this._append();const t=this._getElement();this._config.isAnimated&&u(t),t.classList.add(Un),this._emulateAnimation((()=>{m(e)}))}hide(e){this._config.isVisible?(this._getElement().classList.remove(Un),this._emulateAnimation((()=>{this.dispose(),m(e)}))):m(e)}dispose(){this._isAppended&&($.off(this._element,Kn),this._element.remove(),this._isAppended=!1)}_getElement(){if(!this._element){const e=document.createElement("div");e.className=this._config.className,this._config.isAnimated&&e.classList.add("fade"),this._element=e}return this._element}_configAfterMerge(e){return e.rootElement=r(e.rootElement),e}_append(){if(this._isAppended)return;const e=this._getElement();this._config.rootElement.append(e),$.on(e,Kn,(()=>{m(this._config.clickCallback)})),this._isAppended=!0}_emulateAnimation(e){_(e,this._getElement(),this._config.isAnimated)}}const Zn=".bs.focustrap",ei=`focusin${Zn}`,ti=`keydown.tab${Zn}`,ni="backward",ii={autofocus:!0,trapElement:null},si={autofocus:"boolean",trapElement:"element"};class oi extends H{constructor(e){super(),this._config=this._getConfig(e),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return ii}static get DefaultType(){return si}static get NAME(){return"focustrap"}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),$.off(document,Zn),$.on(document,ei,(e=>this._handleFocusin(e))),$.on(document,ti,(e=>this._handleKeydown(e))),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,$.off(document,Zn))}_handleFocusin(e){const{trapElement:t}=this._config;if(e.target===document||e.target===t||t.contains(e.target))return;const n=B.focusableChildren(t);0===n.length?t.focus():this._lastTabNavDirection===ni?n[n.length-1].focus():n[0].focus()}_handleKeydown(e){"Tab"===e.key&&(this._lastTabNavDirection=e.shiftKey?ni:"forward")}}const ri=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",ai=".sticky-top",li="padding-right",ci="margin-right";class di{constructor(){this._element=document.body}getWidth(){const e=document.documentElement.clientWidth;return Math.abs(window.innerWidth-e)}hide(){const e=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,li,(t=>t+e)),this._setElementAttributes(ri,li,(t=>t+e)),this._setElementAttributes(ai,ci,(t=>t-e))}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,li),this._resetElementAttributes(ri,li),this._resetElementAttributes(ai,ci)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(e,t,n){const i=this.getWidth();this._applyManipulationCallback(e,(e=>{if(e!==this._element&&window.innerWidth>e.clientWidth+i)return;this._saveInitialAttribute(e,t);const s=window.getComputedStyle(e).getPropertyValue(t);e.style.setProperty(t,`${n(Number.parseFloat(s))}px`)}))}_saveInitialAttribute(e,t){const n=e.style.getPropertyValue(t);n&&R.setDataAttribute(e,t,n)}_resetElementAttributes(e,t){this._applyManipulationCallback(e,(e=>{const n=R.getDataAttribute(e,t);null!==n?(R.removeDataAttribute(e,t),e.style.setProperty(t,n)):e.style.removeProperty(t)}))}_applyManipulationCallback(e,t){if(o(e))t(e);else for(const n of B.find(e,this._element))t(n)}}const ui=".bs.modal",hi=`hide${ui}`,fi=`hidePrevented${ui}`,pi=`hidden${ui}`,gi=`show${ui}`,mi=`shown${ui}`,_i=`resize${ui}`,vi=`click.dismiss${ui}`,bi=`mousedown.dismiss${ui}`,yi=`keydown.dismiss${ui}`,wi=`click${ui}.data-api`,Ai="modal-open",Ei="show",Ti="modal-static",Li={backdrop:!0,focus:!0,keyboard:!0},Ci={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class Si extends j{constructor(e,t){super(e,t),this._dialog=B.findOne(".modal-dialog",this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new di,this._addEventListeners()}static get Default(){return Li}static get DefaultType(){return Ci}static get NAME(){return"modal"}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){if(this._isShown||this._isTransitioning)return;$.trigger(this._element,gi,{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(Ai),this._adjustDialog(),this._backdrop.show((()=>this._showElement(e))))}hide(){if(!this._isShown||this._isTransitioning)return;$.trigger(this._element,hi).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(Ei),this._queueCallback((()=>this._hideModal()),this._element,this._isAnimated()))}dispose(){$.off(window,ui),$.off(this._dialog,ui),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new Gn({isVisible:Boolean(this._config.backdrop),isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new oi({trapElement:this._element})}_showElement(e){document.body.contains(this._element)||document.body.append(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.scrollTop=0;const t=B.findOne(".modal-body",this._dialog);t&&(t.scrollTop=0),u(this._element),this._element.classList.add(Ei);this._queueCallback((()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,$.trigger(this._element,mi,{relatedTarget:e})}),this._dialog,this._isAnimated())}_addEventListeners(){$.on(this._element,yi,(e=>{"Escape"===e.key&&(this._config.keyboard?this.hide():this._triggerBackdropTransition())})),$.on(window,_i,(()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()})),$.on(this._element,bi,(e=>{$.one(this._element,vi,(t=>{this._element===e.target&&this._element===t.target&&("static"!==this._config.backdrop?this._config.backdrop&&this.hide():this._triggerBackdropTransition())}))}))}_hideModal(){this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._backdrop.hide((()=>{document.body.classList.remove(Ai),this._resetAdjustments(),this._scrollBar.reset(),$.trigger(this._element,pi)}))}_isAnimated(){return this._element.classList.contains("fade")}_triggerBackdropTransition(){if($.trigger(this._element,fi).defaultPrevented)return;const e=this._element.scrollHeight>document.documentElement.clientHeight,t=this._element.style.overflowY;"hidden"===t||this._element.classList.contains(Ti)||(e||(this._element.style.overflowY="hidden"),this._element.classList.add(Ti),this._queueCallback((()=>{this._element.classList.remove(Ti),this._queueCallback((()=>{this._element.style.overflowY=t}),this._dialog)}),this._dialog),this._element.focus())}_adjustDialog(){const e=this._element.scrollHeight>document.documentElement.clientHeight,t=this._scrollBar.getWidth(),n=t>0;if(n&&!e){const e=p()?"paddingLeft":"paddingRight";this._element.style[e]=`${t}px`}if(!n&&e){const e=p()?"paddingRight":"paddingLeft";this._element.style[e]=`${t}px`}}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(e,t){return this.each((function(){const n=Si.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===n[e])throw new TypeError(`No method named "${e}"`);n[e](t)}}))}}$.on(document,wi,'[data-bs-toggle="modal"]',(function(e){const t=B.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&e.preventDefault(),$.one(t,gi,(e=>{e.defaultPrevented||$.one(t,pi,(()=>{a(this)&&this.focus()}))}));const n=B.findOne(".modal.show");n&&Si.getInstance(n).hide();Si.getOrCreateInstance(t).toggle(this)})),W(Si),g(Si);const Oi=".bs.offcanvas",xi=".data-api",ki=`load${Oi}${xi}`,Di="show",Ii="showing",Ni="hiding",$i=".offcanvas.show",Pi=`show${Oi}`,qi=`shown${Oi}`,Mi=`hide${Oi}`,Ri=`hidePrevented${Oi}`,Hi=`hidden${Oi}`,ji=`resize${Oi}`,Fi=`click${Oi}${xi}`,Bi=`keydown.dismiss${Oi}`,Wi={backdrop:!0,keyboard:!0,scroll:!1},zi={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};class Yi extends j{constructor(e,t){super(e,t),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return Wi}static get DefaultType(){return zi}static get NAME(){return"offcanvas"}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){if(this._isShown)return;if($.trigger(this._element,Pi,{relatedTarget:e}).defaultPrevented)return;this._isShown=!0,this._backdrop.show(),this._config.scroll||(new di).hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(Ii);this._queueCallback((()=>{this._config.scroll&&!this._config.backdrop||this._focustrap.activate(),this._element.classList.add(Di),this._element.classList.remove(Ii),$.trigger(this._element,qi,{relatedTarget:e})}),this._element,!0)}hide(){if(!this._isShown)return;if($.trigger(this._element,Mi).defaultPrevented)return;this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(Ni),this._backdrop.hide();this._queueCallback((()=>{this._element.classList.remove(Di,Ni),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||(new di).reset(),$.trigger(this._element,Hi)}),this._element,!0)}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){const e=Boolean(this._config.backdrop);return new Gn({className:"offcanvas-backdrop",isVisible:e,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:e?()=>{"static"!==this._config.backdrop?this.hide():$.trigger(this._element,Ri)}:null})}_initializeFocusTrap(){return new oi({trapElement:this._element})}_addEventListeners(){$.on(this._element,Bi,(e=>{"Escape"===e.key&&(this._config.keyboard?this.hide():$.trigger(this._element,Ri))}))}static jQueryInterface(e){return this.each((function(){const t=Yi.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method named "${e}"`);t[e](this)}}))}}$.on(document,Fi,'[data-bs-toggle="offcanvas"]',(function(e){const t=B.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&e.preventDefault(),l(this))return;$.one(t,Hi,(()=>{a(this)&&this.focus()}));const n=B.findOne($i);n&&n!==t&&Yi.getInstance(n).hide();Yi.getOrCreateInstance(t).toggle(this)})),$.on(window,ki,(()=>{for(const e of B.find($i))Yi.getOrCreateInstance(e).show()})),$.on(window,ji,(()=>{for(const e of B.find("[aria-modal][class*=show][class*=offcanvas-]"))"fixed"!==getComputedStyle(e).position&&Yi.getOrCreateInstance(e).hide()})),W(Yi),g(Yi);const Vi={"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],dd:[],div:[],dl:[],dt:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},Xi=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),Ui=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,Ki=(e,t)=>{const n=e.nodeName.toLowerCase();return t.includes(n)?!Xi.has(n)||Boolean(Ui.test(e.nodeValue)):t.filter((e=>e instanceof RegExp)).some((e=>e.test(n)))};const Qi={allowList:Vi,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"<div></div>"},Ji={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},Gi={entry:"(string|element|function|null)",selector:"(string|element)"};class Zi extends H{constructor(e){super(),this._config=this._getConfig(e)}static get Default(){return Qi}static get DefaultType(){return Ji}static get NAME(){return"TemplateFactory"}getContent(){return Object.values(this._config.content).map((e=>this._resolvePossibleFunction(e))).filter(Boolean)}hasContent(){return this.getContent().length>0}changeContent(e){return this._checkContent(e),this._config.content={...this._config.content,...e},this}toHtml(){const e=document.createElement("div");e.innerHTML=this._maybeSanitize(this._config.template);for(const[t,n]of Object.entries(this._config.content))this._setContent(e,n,t);const t=e.children[0],n=this._resolvePossibleFunction(this._config.extraClass);return n&&t.classList.add(...n.split(" ")),t}_typeCheckConfig(e){super._typeCheckConfig(e),this._checkContent(e.content)}_checkContent(e){for(const[t,n]of Object.entries(e))super._typeCheckConfig({selector:t,entry:n},Gi)}_setContent(e,t,n){const i=B.findOne(n,e);i&&((t=this._resolvePossibleFunction(t))?o(t)?this._putElementInTemplate(r(t),i):this._config.html?i.innerHTML=this._maybeSanitize(t):i.textContent=t:i.remove())}_maybeSanitize(e){return this._config.sanitize?function(e,t,n){if(!e.length)return e;if(n&&"function"==typeof n)return n(e);const i=(new window.DOMParser).parseFromString(e,"text/html"),s=[].concat(...i.body.querySelectorAll("*"));for(const e of s){const n=e.nodeName.toLowerCase();if(!Object.keys(t).includes(n)){e.remove();continue}const i=[].concat(...e.attributes),s=[].concat(t["*"]||[],t[n]||[]);for(const t of i)Ki(t,s)||e.removeAttribute(t.nodeName)}return i.body.innerHTML}(e,this._config.allowList,this._config.sanitizeFn):e}_resolvePossibleFunction(e){return m(e,[this])}_putElementInTemplate(e,t){if(this._config.html)return t.innerHTML="",void t.append(e);t.textContent=e.textContent}}const es=new Set(["sanitize","allowList","sanitizeFn"]),ts="fade",ns="show",is=".modal",ss="hide.bs.modal",os="hover",rs="focus",as={AUTO:"auto",TOP:"top",RIGHT:p()?"left":"right",BOTTOM:"bottom",LEFT:p()?"right":"left"},ls={allowList:Vi,animation:!0,boundary:"clippingParents",container:!1,customClass:"",delay:0,fallbackPlacements:["top","right","bottom","left"],html:!1,offset:[0,6],placement:"top",popperConfig:null,sanitize:!0,sanitizeFn:null,selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',title:"",trigger:"hover focus"},cs={allowList:"object",animation:"boolean",boundary:"(string|element)",container:"(string|element|boolean)",customClass:"(string|function)",delay:"(number|object)",fallbackPlacements:"array",html:"boolean",offset:"(array|string|function)",placement:"(string|function)",popperConfig:"(null|object|function)",sanitize:"boolean",sanitizeFn:"(null|function)",selector:"(string|boolean)",template:"string",title:"(string|element|function)",trigger:"string"};class ds extends j{constructor(e,t){if(void 0===wn)throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");super(e,t),this._isEnabled=!0,this._timeout=0,this._isHovered=null,this._activeTrigger={},this._popper=null,this._templateFactory=null,this._newContent=null,this.tip=null,this._setListeners(),this._config.selector||this._fixTitle()}static get Default(){return ls}static get DefaultType(){return cs}static get NAME(){return"tooltip"}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){this._isEnabled&&(this._activeTrigger.click=!this._activeTrigger.click,this._isShown()?this._leave():this._enter())}dispose(){clearTimeout(this._timeout),$.off(this._element.closest(is),ss,this._hideModalHandler),this._element.getAttribute("data-bs-original-title")&&this._element.setAttribute("title",this._element.getAttribute("data-bs-original-title")),this._disposePopper(),super.dispose()}show(){if("none"===this._element.style.display)throw new Error("Please use show on visible elements");if(!this._isWithContent()||!this._isEnabled)return;const e=$.trigger(this._element,this.constructor.eventName("show")),t=(c(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(e.defaultPrevented||!t)return;this._disposePopper();const n=this._getTipElement();this._element.setAttribute("aria-describedby",n.getAttribute("id"));const{container:i}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(i.append(n),$.trigger(this._element,this.constructor.eventName("inserted"))),this._popper=this._createPopper(n),n.classList.add(ns),"ontouchstart"in document.documentElement)for(const e of[].concat(...document.body.children))$.on(e,"mouseover",d);this._queueCallback((()=>{$.trigger(this._element,this.constructor.eventName("shown")),!1===this._isHovered&&this._leave(),this._isHovered=!1}),this.tip,this._isAnimated())}hide(){if(!this._isShown())return;if($.trigger(this._element,this.constructor.eventName("hide")).defaultPrevented)return;if(this._getTipElement().classList.remove(ns),"ontouchstart"in document.documentElement)for(const e of[].concat(...document.body.children))$.off(e,"mouseover",d);this._activeTrigger.click=!1,this._activeTrigger[rs]=!1,this._activeTrigger[os]=!1,this._isHovered=null;this._queueCallback((()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),$.trigger(this._element,this.constructor.eventName("hidden")))}),this.tip,this._isAnimated())}update(){this._popper&&this._popper.update()}_isWithContent(){return Boolean(this._getTitle())}_getTipElement(){return this.tip||(this.tip=this._createTipElement(this._newContent||this._getContentForTemplate())),this.tip}_createTipElement(e){const t=this._getTemplateFactory(e).toHtml();if(!t)return null;t.classList.remove(ts,ns),t.classList.add(`bs-${this.constructor.NAME}-auto`);const n=(e=>{do{e+=Math.floor(1e6*Math.random())}while(document.getElementById(e));return e})(this.constructor.NAME).toString();return t.setAttribute("id",n),this._isAnimated()&&t.classList.add(ts),t}setContent(e){this._newContent=e,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(e){return this._templateFactory?this._templateFactory.changeContent(e):this._templateFactory=new Zi({...this._config,content:e,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{".tooltip-inner":this._getTitle()}}_getTitle(){return this._resolvePossibleFunction(this._config.title)||this._element.getAttribute("data-bs-original-title")}_initializeOnDelegatedTarget(e){return this.constructor.getOrCreateInstance(e.delegateTarget,this._getDelegateConfig())}_isAnimated(){return this._config.animation||this.tip&&this.tip.classList.contains(ts)}_isShown(){return this.tip&&this.tip.classList.contains(ns)}_createPopper(e){const t=m(this._config.placement,[this,e,this._element]),n=as[t.toUpperCase()];return yn(this._element,e,this._getPopperConfig(n))}_getOffset(){const{offset:e}=this._config;return"string"==typeof e?e.split(",").map((e=>Number.parseInt(e,10))):"function"==typeof e?t=>e(t,this._element):e}_resolvePossibleFunction(e){return m(e,[this._element])}_getPopperConfig(e){const t={placement:e,modifiers:[{name:"flip",options:{fallbackPlacements:this._config.fallbackPlacements}},{name:"offset",options:{offset:this._getOffset()}},{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"arrow",options:{element:`.${this.constructor.NAME}-arrow`}},{name:"preSetPlacement",enabled:!0,phase:"beforeMain",fn:e=>{this._getTipElement().setAttribute("data-popper-placement",e.state.placement)}}]};return{...t,...m(this._config.popperConfig,[t])}}_setListeners(){const e=this._config.trigger.split(" ");for(const t of e)if("click"===t)$.on(this._element,this.constructor.eventName("click"),this._config.selector,(e=>{this._initializeOnDelegatedTarget(e).toggle()}));else if("manual"!==t){const e=t===os?this.constructor.eventName("mouseenter"):this.constructor.eventName("focusin"),n=t===os?this.constructor.eventName("mouseleave"):this.constructor.eventName("focusout");$.on(this._element,e,this._config.selector,(e=>{const t=this._initializeOnDelegatedTarget(e);t._activeTrigger["focusin"===e.type?rs:os]=!0,t._enter()})),$.on(this._element,n,this._config.selector,(e=>{const t=this._initializeOnDelegatedTarget(e);t._activeTrigger["focusout"===e.type?rs:os]=t._element.contains(e.relatedTarget),t._leave()}))}this._hideModalHandler=()=>{this._element&&this.hide()},$.on(this._element.closest(is),ss,this._hideModalHandler)}_fixTitle(){const e=this._element.getAttribute("title");e&&(this._element.getAttribute("aria-label")||this._element.textContent.trim()||this._element.setAttribute("aria-label",e),this._element.setAttribute("data-bs-original-title",e),this._element.removeAttribute("title"))}_enter(){this._isShown()||this._isHovered?this._isHovered=!0:(this._isHovered=!0,this._setTimeout((()=>{this._isHovered&&this.show()}),this._config.delay.show))}_leave(){this._isWithActiveTrigger()||(this._isHovered=!1,this._setTimeout((()=>{this._isHovered||this.hide()}),this._config.delay.hide))}_setTimeout(e,t){clearTimeout(this._timeout),this._timeout=setTimeout(e,t)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(e){const t=R.getDataAttributes(this._element);for(const e of Object.keys(t))es.has(e)&&delete t[e];return e={...t,..."object"==typeof e&&e?e:{}},e=this._mergeConfigObj(e),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}_configAfterMerge(e){return e.container=!1===e.container?document.body:r(e.container),"number"==typeof e.delay&&(e.delay={show:e.delay,hide:e.delay}),"number"==typeof e.title&&(e.title=e.title.toString()),"number"==typeof e.content&&(e.content=e.content.toString()),e}_getDelegateConfig(){const e={};for(const[t,n]of Object.entries(this._config))this.constructor.Default[t]!==n&&(e[t]=n);return e.selector=!1,e.trigger="manual",e}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null),this.tip&&(this.tip.remove(),this.tip=null)}static jQueryInterface(e){return this.each((function(){const t=ds.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method named "${e}"`);t[e]()}}))}}g(ds);const us={...ds.Default,content:"",offset:[0,8],placement:"right",template:'<div class="popover" role="tooltip"><div class="popover-arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>',trigger:"click"},hs={...ds.DefaultType,content:"(null|string|element|function)"};class fs extends ds{static get Default(){return us}static get DefaultType(){return hs}static get NAME(){return"popover"}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{".popover-header":this._getTitle(),".popover-body":this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(e){return this.each((function(){const t=fs.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method named "${e}"`);t[e]()}}))}}g(fs);const ps=".bs.scrollspy",gs=`activate${ps}`,ms=`click${ps}`,_s=`load${ps}.data-api`,vs="active",bs="[href]",ys=".nav-link",ws=`${ys}, .nav-item > ${ys}, .list-group-item`,As={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},Es={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};class Ts extends j{constructor(e,t){super(e,t),this._targetLinks=new Map,this._observableSections=new Map,this._rootElement="visible"===getComputedStyle(this._element).overflowY?null:this._element,this._activeTarget=null,this._observer=null,this._previousScrollData={visibleEntryTop:0,parentScrollTop:0},this.refresh()}static get Default(){return As}static get DefaultType(){return Es}static get NAME(){return"scrollspy"}refresh(){this._initializeTargetsAndObservables(),this._maybeEnableSmoothScroll(),this._observer?this._observer.disconnect():this._observer=this._getNewObserver();for(const e of this._observableSections.values())this._observer.observe(e)}dispose(){this._observer.disconnect(),super.dispose()}_configAfterMerge(e){return e.target=r(e.target)||document.body,e.rootMargin=e.offset?`${e.offset}px 0px -30%`:e.rootMargin,"string"==typeof e.threshold&&(e.threshold=e.threshold.split(",").map((e=>Number.parseFloat(e)))),e}_maybeEnableSmoothScroll(){this._config.smoothScroll&&($.off(this._config.target,ms),$.on(this._config.target,ms,bs,(e=>{const t=this._observableSections.get(e.target.hash);if(t){e.preventDefault();const n=this._rootElement||window,i=t.offsetTop-this._element.offsetTop;if(n.scrollTo)return void n.scrollTo({top:i,behavior:"smooth"});n.scrollTop=i}})))}_getNewObserver(){const e={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver((e=>this._observerCallback(e)),e)}_observerCallback(e){const t=e=>this._targetLinks.get(`#${e.target.id}`),n=e=>{this._previousScrollData.visibleEntryTop=e.target.offsetTop,this._process(t(e))},i=(this._rootElement||document.documentElement).scrollTop,s=i>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=i;for(const o of e){if(!o.isIntersecting){this._activeTarget=null,this._clearActiveClass(t(o));continue}const e=o.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(s&&e){if(n(o),!i)return}else s||e||n(o)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;const e=B.find(bs,this._config.target);for(const t of e){if(!t.hash||l(t))continue;const e=B.findOne(decodeURI(t.hash),this._element);a(e)&&(this._targetLinks.set(decodeURI(t.hash),t),this._observableSections.set(t.hash,e))}}_process(e){this._activeTarget!==e&&(this._clearActiveClass(this._config.target),this._activeTarget=e,e.classList.add(vs),this._activateParents(e),$.trigger(this._element,gs,{relatedTarget:e}))}_activateParents(e){if(e.classList.contains("dropdown-item"))B.findOne(".dropdown-toggle",e.closest(".dropdown")).classList.add(vs);else for(const t of B.parents(e,".nav, .list-group"))for(const e of B.prev(t,ws))e.classList.add(vs)}_clearActiveClass(e){e.classList.remove(vs);const t=B.find(`${bs}.${vs}`,e);for(const e of t)e.classList.remove(vs)}static jQueryInterface(e){return this.each((function(){const t=Ts.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method named "${e}"`);t[e]()}}))}}$.on(window,_s,(()=>{for(const e of B.find('[data-bs-spy="scroll"]'))Ts.getOrCreateInstance(e)})),g(Ts);const Ls=".bs.tab",Cs=`hide${Ls}`,Ss=`hidden${Ls}`,Os=`show${Ls}`,xs=`shown${Ls}`,ks=`click${Ls}`,Ds=`keydown${Ls}`,Is=`load${Ls}`,Ns="ArrowLeft",$s="ArrowRight",Ps="ArrowUp",qs="ArrowDown",Ms="Home",Rs="End",Hs="active",js="fade",Fs="show",Bs=".dropdown-toggle",Ws=`:not(${Bs})`,zs='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',Ys=`${`.nav-link${Ws}, .list-group-item${Ws}, [role="tab"]${Ws}`}, ${zs}`,Vs=`.${Hs}[data-bs-toggle="tab"], .${Hs}[data-bs-toggle="pill"], .${Hs}[data-bs-toggle="list"]`;class Xs extends j{constructor(e){super(e),this._parent=this._element.closest('.list-group, .nav, [role="tablist"]'),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),$.on(this._element,Ds,(e=>this._keydown(e))))}static get NAME(){return"tab"}show(){const e=this._element;if(this._elemIsActive(e))return;const t=this._getActiveElem(),n=t?$.trigger(t,Cs,{relatedTarget:e}):null;$.trigger(e,Os,{relatedTarget:t}).defaultPrevented||n&&n.defaultPrevented||(this._deactivate(t,e),this._activate(e,t))}_activate(e,t){if(!e)return;e.classList.add(Hs),this._activate(B.getElementFromSelector(e));this._queueCallback((()=>{"tab"===e.getAttribute("role")?(e.removeAttribute("tabindex"),e.setAttribute("aria-selected",!0),this._toggleDropDown(e,!0),$.trigger(e,xs,{relatedTarget:t})):e.classList.add(Fs)}),e,e.classList.contains(js))}_deactivate(e,t){if(!e)return;e.classList.remove(Hs),e.blur(),this._deactivate(B.getElementFromSelector(e));this._queueCallback((()=>{"tab"===e.getAttribute("role")?(e.setAttribute("aria-selected",!1),e.setAttribute("tabindex","-1"),this._toggleDropDown(e,!1),$.trigger(e,Ss,{relatedTarget:t})):e.classList.remove(Fs)}),e,e.classList.contains(js))}_keydown(e){if(![Ns,$s,Ps,qs,Ms,Rs].includes(e.key))return;e.stopPropagation(),e.preventDefault();const t=this._getChildren().filter((e=>!l(e)));let n;if([Ms,Rs].includes(e.key))n=t[e.key===Ms?0:t.length-1];else{const i=[$s,qs].includes(e.key);n=v(t,e.target,i,!0)}n&&(n.focus({preventScroll:!0}),Xs.getOrCreateInstance(n).show())}_getChildren(){return B.find(Ys,this._parent)}_getActiveElem(){return this._getChildren().find((e=>this._elemIsActive(e)))||null}_setInitialAttributes(e,t){this._setAttributeIfNotExists(e,"role","tablist");for(const e of t)this._setInitialAttributesOnChild(e)}_setInitialAttributesOnChild(e){e=this._getInnerElement(e);const t=this._elemIsActive(e),n=this._getOuterElement(e);e.setAttribute("aria-selected",t),n!==e&&this._setAttributeIfNotExists(n,"role","presentation"),t||e.setAttribute("tabindex","-1"),this._setAttributeIfNotExists(e,"role","tab"),this._setInitialAttributesOnTargetPanel(e)}_setInitialAttributesOnTargetPanel(e){const t=B.getElementFromSelector(e);t&&(this._setAttributeIfNotExists(t,"role","tabpanel"),e.id&&this._setAttributeIfNotExists(t,"aria-labelledby",`${e.id}`))}_toggleDropDown(e,t){const n=this._getOuterElement(e);if(!n.classList.contains("dropdown"))return;const i=(e,i)=>{const s=B.findOne(e,n);s&&s.classList.toggle(i,t)};i(Bs,Hs),i(".dropdown-menu",Fs),n.setAttribute("aria-expanded",t)}_setAttributeIfNotExists(e,t,n){e.hasAttribute(t)||e.setAttribute(t,n)}_elemIsActive(e){return e.classList.contains(Hs)}_getInnerElement(e){return e.matches(Ys)?e:B.findOne(Ys,e)}_getOuterElement(e){return e.closest(".nav-item, .list-group-item")||e}static jQueryInterface(e){return this.each((function(){const t=Xs.getOrCreateInstance(this);if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method named "${e}"`);t[e]()}}))}}$.on(document,ks,zs,(function(e){["A","AREA"].includes(this.tagName)&&e.preventDefault(),l(this)||Xs.getOrCreateInstance(this).show()})),$.on(window,Is,(()=>{for(const e of B.find(Vs))Xs.getOrCreateInstance(e)})),g(Xs);const Us=".bs.toast",Ks=`mouseover${Us}`,Qs=`mouseout${Us}`,Js=`focusin${Us}`,Gs=`focusout${Us}`,Zs=`hide${Us}`,eo=`hidden${Us}`,to=`show${Us}`,no=`shown${Us}`,io="hide",so="show",oo="showing",ro={animation:"boolean",autohide:"boolean",delay:"number"},ao={animation:!0,autohide:!0,delay:5e3};class lo extends j{constructor(e,t){super(e,t),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return ao}static get DefaultType(){return ro}static get NAME(){return"toast"}show(){if($.trigger(this._element,to).defaultPrevented)return;this._clearTimeout(),this._config.animation&&this._element.classList.add("fade");this._element.classList.remove(io),u(this._element),this._element.classList.add(so,oo),this._queueCallback((()=>{this._element.classList.remove(oo),$.trigger(this._element,no),this._maybeScheduleHide()}),this._element,this._config.animation)}hide(){if(!this.isShown())return;if($.trigger(this._element,Zs).defaultPrevented)return;this._element.classList.add(oo),this._queueCallback((()=>{this._element.classList.add(io),this._element.classList.remove(oo,so),$.trigger(this._element,eo)}),this._element,this._config.animation)}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(so),super.dispose()}isShown(){return this._element.classList.contains(so)}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout((()=>{this.hide()}),this._config.delay)))}_onInteraction(e,t){switch(e.type){case"mouseover":case"mouseout":this._hasMouseInteraction=t;break;case"focusin":case"focusout":this._hasKeyboardInteraction=t}if(t)return void this._clearTimeout();const n=e.relatedTarget;this._element===n||this._element.contains(n)||this._maybeScheduleHide()}_setListeners(){$.on(this._element,Ks,(e=>this._onInteraction(e,!0))),$.on(this._element,Qs,(e=>this._onInteraction(e,!1))),$.on(this._element,Js,(e=>this._onInteraction(e,!0))),$.on(this._element,Gs,(e=>this._onInteraction(e,!1)))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(e){return this.each((function(){const t=lo.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method named "${e}"`);t[e](this)}}))}}W(lo),g(lo);return{Alert:X,Button:K,Carousel:Se,Collapse:Fe,Dropdown:Vn,Modal:Si,Offcanvas:Yi,Popover:fs,ScrollSpy:Ts,Tab:Xs,Toast:lo,Tooltip:ds}})),window.addEventListener("load",(()=>{const e=document.documentElement;let t,n=window.scrollY||e.scrollTop,i=0,s=0;const o=document.querySelector("header .alert"),r=document.querySelector(".utility-header"),a=document.querySelector("header");r&&a&&window.addEventListener("scroll",(()=>{if(t=window.scrollY||e.scrollTop,t>n?i=2:t<n&&(i=1),i!==s)if(2===i&&t>40){const e=r.clientHeight+(o?.clientHeight||0);a.style.top=`-${e}px`,s=i}else 1===i&&t<40&&(a.style.removeProperty("top"),s=i);n=t}))})),window.addEventListener("load",(()=>{class e extends HTMLElement{connectedCallback(){this.summaryEl=this.querySelector("summary"),this.setHeight(),this.summaryEl.addEventListener("click",this.listen.bind(this)),this.summaryEl.insertAdjacentHTML("beforeend",'<div class="cagov-open-indicator" aria-hidden="true" />'),this.detailsEl=this.querySelector("details"),this.bodyEl=this.querySelector(".accordion-body"),window.addEventListener("resize",this.debounce(this.setHeight).bind(this))}setHeight(){window.requestAnimationFrame((()=>{this.closedHeightInt=this.summaryEl.scrollHeight+2,this.closedHeight=`${this.closedHeightInt}px`,this.detailsEl.hasAttribute("open")?this.detailsEl.style.height=`${this.bodyEl.scrollHeight+this.closedHeightInt}px`:this.detailsEl.style.height=this.closedHeight}))}listen(){this.detailsEl.hasAttribute("open")?this.detailsEl.style.height=this.closedHeight:window.requestAnimationFrame((()=>{this.detailsEl.style.height=`${this.bodyEl.scrollHeight+this.closedHeightInt}px`}))}debounce(e,t=300){let n;return(...i)=>{window.clearTimeout(n),n=window.setTimeout((()=>{e.apply(this,i)}),t)}}}window.customElements.define("cagov-accordion",e)})),window.addEventListener("load",(()=>{const e=window,t=document,n={};e.ARIAaccordion=n,n.NS="ARIAaccordion",n.AUTHOR="Scott O'Hara",n.VERSION="3.2.1",n.LICENSE="https://github.com/scottaohara/accessible_accordions/blob/master/LICENSE";const i="accordion",s=`${i}__trigger`,o=`${i}__heading`,r=`${i}__panel`,a="[data-aria-accordion-heading]",l="[data-aria-accordion-panel]";let c=0;const d=e=>t.querySelectorAll(`#${e}> li`).length?`#${e} li > `:`#${e} > `;n.create=()=>{let e="none";const o=t.querySelectorAll("[data-aria-accordion]");c+=1;for(let u=0;u<o.length;u++){const h=o[u];h.hasAttribute("id")||(h.id=`acc_${c}-${u}`),h.classList.add(i);const f=d(h.id),p=t.querySelectorAll(`${f}${l}`),g=t.querySelectorAll(`${f}${a}`);h.hasAttribute("data-default")&&(e=h.getAttribute("data-default"));const m=h.hasAttribute("data-constant");if(h.hasAttribute("data-transition")){const e=h.querySelectorAll(l);for(let t=0;t<e.length;t++)e[t].classList.add(`${r}--transition`)}n.setupPanels(h.id,p,e,m),n.setupHeadingButton(g,m);const _=t.querySelectorAll(`${f}${a} .${s}`);for(let e=0;e<_.length;e++)_[e].addEventListener("click",n.actions),_[e].addEventListener("keydown",n.keytrolls)}},n.setupPanels=function(e,t,n,i){for(let s=0;s<t.length;s++){const o=t[s],a=`${e}_panel_${s+1}`,l=n,c=i;if(o.setAttribute("id",a),u(t[0],!0),o.classList.add(r),"none"!==l&&!Number.isNaN(parseInt(l))){const e=parseInt(l);e<=1?u(t[0],!1):e-1>=t.length?u(t[t.length-1],!1):u(t[e-1],!1)}c&&("none"===l||Number.isNaN(parseInt(l)))&&u(t[0],!1)}},n.setupHeadingButton=function(e,n){for(let i=0;i<e.length;i++){const r=e[i],a=r.nextElementSibling.id,l=t.getElementById(a).getAttribute("aria-hidden"),c=t.createElement("button"),d=r.textContent;r.innerHTML="",r.classList.add(o),c.type="button",c.setAttribute("aria-controls",a),c.id=`${a}_trigger`,c.classList.add(s),"false"===l?(h(c,!0),p(c,!0),n&&c.setAttribute("aria-disabled","true")):(h(c,!1),p(c,!1)),r.appendChild(c),c.appendChild(t.createTextNode(d))}},n.actions=function(e){const i=this.id.replace(/_panel.*$/g,""),o=t.getElementById(this.getAttribute("aria-controls")),r=d(i),l=t.querySelectorAll(`${r}${a} .${s}`);e.preventDefault(),n.togglePanel(e,i,o,l)},n.togglePanel=function(e,n,i,s){const o=e.target;if("true"!==o.getAttribute("aria-disabled")&&(p(o,!0),"true"===o.getAttribute("aria-expanded")?(h(o,!1),u(i,!0)):(h(o,!0),u(i,!1),t.getElementById(n).hasAttribute("data-constant")&&f(o,!0)),t.getElementById(n).hasAttribute("data-constant")||!t.getElementById(n).hasAttribute("data-multi")))for(const e of s)if(o!==e){p(e,!1);const n=e.getAttribute("aria-controls");f(e,!1),h(e,!1),u(t.getElementById(n),!0)}},n.keytrolls=function(e){if(e.target.classList.contains(s)){const n=e.keyCode||e.which,i=36,o=35,r=this.id.replace(/_panel.*$/g,""),l=d(r),c=t.querySelectorAll(`${l}${a} .${s}`);switch(n){case o:e.preventDefault(),c[c.length-1].focus();break;case i:e.preventDefault(),c[0].focus()}}},n.init=function(){n.create()};const u=function(e,t){e.setAttribute("aria-hidden",t.toString())},h=function(e,t){e.setAttribute("aria-expanded",t.toString())},f=function(e,t){e.setAttribute("aria-disabled",t.toString())},p=function(e,t){e.setAttribute("data-current",t.toString())};n.init()})),(()=>{const e=(e,t,n)=>(t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e),t="data-nav-id",n=(()=>{const e={};return{set:(t,n)=>{e[t]=n},get:t=>e[t],remove:t=>e[t]}})(),i=(e,n)=>document.querySelector(`#${e}[${t}="${n}"]`),s=(e,t)=>{Object.keys(t).forEach((n=>{e.setAttribute(n,t[n])}))},o=()=>{const e=document.querySelector(".global-header .mobile-controls");return!!e&&"none"!==getComputedStyle(e).display},r=(...i)=>{const r=i.length<=0||void 0===i[0]?{}:i[0],a="first-level-btn";document.querySelectorAll(".main-navigation .sub-nav").forEach((e=>{e.parentElement.querySelector("a").className=a}));let l={ACCORDION_JS:"main-navigation",ACCORDION_JS_HEADER:a,ACCORDION_JS_PANEL:"nav-panel",ACCORDION_DATA_PREFIX_CLASS:"data-nav-prefix-classes",ACCORDION_DATA_OPENED:"data-nav-opened",ACCORDION_DATA_MULTISELECTABLE:"data-nav-multiselectable",ACCORDION_DATA_COOL_SELECTORS:!0,ACCORDION_PREFIX_IDS:"nav",ACCORDION_BUTTON_ID:"_tab",ACCORDION_PANEL_ID:"_panel",ACCORDION_STYLE:"nav",ACCORDION_TITLE_STYLE:"has-sub-btn",ACCORDION_HEADER_STYLE:"nav-header",ACCORDION_PANEL_STYLE:"sub-nav",ACCORDION_ROLE_TABLIST:"tablist",ACCORDION_ROLE_TAB:"tab",ACCORDION_ROLE_TABPANEL:"tabpanel",ATTR_ROLE:"role",ATTR_MULTISELECTABLE:"data-multiselectable",ATTR_EXPANDED:"aria-expanded",ATTR_LABELLEDBY:"aria-labelledby",ATTR_HIDDEN:"aria-hidden",ATTR_CONTROLS:"aria-controls",ATTR_SELECTED:"aria-selected"};l=Object.assign(l,r);const c=Math.random().toString(32).slice(2,12);n.set(c,l);return{attach:(...n)=>{(e=>{const t=e.length<=0?document.documentElement:e[0];return[].slice.call(t.querySelectorAll(`.${l.ACCORDION_JS}`))})(n).forEach((n=>{const i=`z${Math.random().toString(32).slice(2,12)}`,r=n.hasAttribute(l.ACCORDION_DATA_PREFIX_CLASS)?`${n.getAttribute(l.ACCORDION_DATA_PREFIX_CLASS)}-`:"",a=l.ACCORDION_DATA_COOL_SELECTORS,d="first-level-btn";n.setAttribute(l.ATTR_MULTISELECTABLE,o()?"true":"false"),n.setAttribute(t,c),n.classList.add(r+l.ACCORDION_STYLE);[].slice.call(n.querySelectorAll(`.${d}`)).forEach(((o,u)=>{let h,f;if(o.parentNode!==n&&!a)return;const p=u+1,g=o.nextElementSibling;if(!g)return;const m=o.innerHTML,_=document.createElement("BUTTON"),v=o.hasAttribute(l.ACCORDION_DATA_OPENED)?o.getAttribute(l.ACCORDION_DATA_OPENED):"";_.innerHTML=m,_.classList.add(d,r+l.ACCORDION_HEADER_STYLE),s(_,(h={},e(h,"id",l.ACCORDION_PREFIX_IDS+i+l.ACCORDION_BUTTON_ID+p),e(h,l.ATTR_CONTROLS,l.ACCORDION_PREFIX_IDS+i+l.ACCORDION_PANEL_ID+p),e(h,t,c),h)),o.innerHTML="",o.appendChild(_),o.classList.add(r+l.ACCORDION_TITLE_STYLE),o.classList.remove(d),g.classList.add(r+l.ACCORDION_PANEL_STYLE),s(g,(f={},e(f,l.ATTR_ROLE,l.ACCORDION_ROLE_TABPANEL),e(f,l.ATTR_LABELLEDBY,l.ACCORDION_PREFIX_IDS+i+l.ACCORDION_BUTTON_ID+p),e(f,"id",l.ACCORDION_PREFIX_IDS+i+l.ACCORDION_PANEL_ID+p),e(f,t,c),f)),"true"===v?(_.setAttribute(l.ATTR_EXPANDED,"true"),o.removeAttribute(l.ACCORDION_DATA_OPENED),g.setAttribute(l.ATTR_HIDDEN,"false"),g.querySelectorAll(".second-level-link").forEach((e=>{e.removeAttribute("tabindex")}))):(_.setAttribute(l.ATTR_EXPANDED,"false"),g.setAttribute(l.ATTR_HIDDEN,"true"),g.querySelectorAll(".second-level-link").forEach((e=>{e.tabIndex=-1})))}))}))}}},a=function(){return["click","keydown","focus"].forEach((e=>{document.body.addEventListener(e,(s=>{const r=((e,t)=>{let n=e;for(;n;){if(n.hasAttribute(t))return n.getAttribute(t);n=n.parentElement}return""})(s.target,t);""!==r&&(()=>{const a=n.get(r);s.target.classList.contains("first-level-btn")&&"click"===e&&(()=>{const e=s.target,n=i(((e,n,i)=>{let s=e;for(;s;){if(s.classList.contains(n)&&s.getAttribute(t)===i)return s.getAttribute("id");s=s.parentElement}return""})(e,a.ACCORDION_JS,r),r),l=!0===a.ACCORDION_DATA_COOL_SELECTORS;let c=[].slice.call(n.querySelectorAll(".first-level-btn"));const d=i(e.getAttribute(a.ATTR_CONTROLS),r),u=e.getAttribute(a.ATTR_EXPANDED);l||(c=c.filter((e=>e.parentNode.parentNode===n))),"false"===u?(e.setAttribute(a.ATTR_EXPANDED,"true"),d.removeAttribute(a.ATTR_HIDDEN),d.classList.add("open"),d.querySelectorAll(".second-level-link").forEach((e=>e.removeAttribute("tabindex")))):(e.setAttribute(a.ATTR_EXPANDED,"false"),d.setAttribute(a.ATTR_HIDDEN,"true"),d.classList.remove("open"),d.querySelectorAll(".second-level-link").forEach((e=>e.tabIndex=-1))),o()||c.forEach((t=>{const n=i(t.getAttribute(a.ATTR_CONTROLS),r);t!==e&&(t.setAttribute(a.ATTR_EXPANDED,"false"),n.classList.remove("open"),n.querySelectorAll(".second-level-link").forEach((e=>e.tabIndex=-1)))})),setTimeout((()=>{e.focus()}),0),s.stopPropagation(),s.preventDefault()})()})()}),!0)})),r},l=()=>{document.querySelectorAll(".first-level-btn").forEach((e=>e.ariaExpanded="false")),document.querySelectorAll(".sub-nav").forEach((e=>{e.ariaHidden="true",e.classList.remove("open")})),document.querySelectorAll(".second-level-link").forEach((e=>e.tabIndex=-1)),document.querySelectorAll(".rotate").forEach((e=>e.style.display=window.innerWidth>991?"none":"block"))};window.addEventListener("load",(()=>{a()().attach();const e=document.querySelector(".main-navigation");if(!e)return;document.querySelectorAll(".main-navigation .nav-item a.has-sub-btn").forEach((e=>{const t=document.createElement("div");t.innerHTML=e.innerHTML,t.classList.add("has-sub-btn"),e.replaceWith(t)}));const t=e.classList.contains("auto-highlight"),n=document.querySelectorAll(".main-navigation .nav-item"),i=[].slice.call(n).filter((e=>e.querySelector(".sub-nav")));n.forEach((e=>{const n=e.querySelector(".first-level-btn, .first-level-link");if(n&&t&&n.getAttribute("href")){const t=n.getAttribute("href")?.split("/"),i=location.href.split("/");t&&t.length>4&&i[3]===t[3]&&e.classList.add("active")}})),document.addEventListener("mouseup",(e=>{const t=document.querySelector(".main-navigation");t===e.target||t?.contains(e.target)||l()})),i.forEach((e=>{if(e.querySelectorAll(".second-level-nav > li").length<=2){const t=e.querySelector(".sub-nav");t&&t.classList.add("with-few-items")}})),e.classList.contains("singleLevel")||document.querySelectorAll(".first-level-btn").forEach((e=>{e.classList.add("has-sub");const t=document.createElement("span");t.classList.add("ca-gov-icon-caret-down","carrot"),t.ariaHidden="true";const n=document.createElement("div");n.classList.add("ca-gov-icon-caret-right","rotate"),n.ariaHidden="true",n.style.display=o()?"block":"none",e.appendChild(n),e.appendChild(t)})),c()})),document.addEventListener("keyup",(e=>{"Escape"===e.key&&l()}));const c=()=>{const e=document.querySelectorAll(".second-level-link"),t=e.length,n=location.href.split("#")[0];for(let i=0;i<t;i++)e[i].href.split("#")[0]==n&&(e[i].className+=" bold")}})(),window.addEventListener("load",(()=>{const e=()=>{a&&(l?(a.removeAttribute("aria-hidden"),document.querySelector("[name='q']")?.removeAttribute("tabindex"),document.querySelector(".gsc-search-button")?.removeAttribute("tabindex")):a.setAttribute("aria-hidden","true"))},t=()=>{const e=document.querySelector(".global-header .mobile-controls");return!!e&&"none"!==getComputedStyle(e).display},n=()=>{document.body.classList.remove("active-search"),i&&(i.value=""),a?.classList.remove("active"),a?.setAttribute("aria-hidden","true"),document.querySelector(".search-results-container")?.classList.remove("visible"),document.querySelectorAll(".ask-group").forEach((e=>e.classList.remove("fade-out"))),l||(document.querySelector("button.first-level-link")?.setAttribute("aria-expanded","false"),y()),window.dispatchEvent(new CustomEvent("scroll")),t()&&e()},i=document.querySelector(".search-textfield"),s=document.querySelector("#head-search #Search .search-textfield"),o=document.querySelector("#head-search #Search .gsc-search-button"),r=document.querySelector("#head-search #Search .close-search"),a=document.querySelector("#head-search"),l=a?.classList.contains("featured-search"),c=a?.classList.contains("active"),d=document.querySelector("#SearchInput"),u=document.querySelector(".search-container:not(.featured-search)"),h=document.querySelector(".global-header")?.offsetHeight,f=document.querySelector(".utility-header"),p=f?.offsetHeight||0,g=document.querySelectorAll(".alert-banner");let m=0;g.forEach((e=>{m+=e.offsetHeight}));const _=document.querySelector(".navigation-search")?.classList.contains("full-width-nav")?82:0;if(i&&a){const e=()=>{a.classList.remove("focus"),document.querySelector(".search-container")?.classList.add("focus")};i.addEventListener("blur",e,!1),i.addEventListener("focus",e,!1);const t=function(){this.value&&document.body.classList.add("active-search")};i.addEventListener("change",t,!1),i.addEventListener("keyup",t,!1),i.addEventListener("paste",t,!1)}if(l||document.querySelector("button.first-level-link")?.setAttribute("aria-expanded","false"),!t()){const e=h-p-m-_;!t()&&u&&(u.style.top=`${Math.max(e,82)}px`)}document.querySelector(".search-results-container .close")?.addEventListener("click",n,!1),document.querySelector("#head-search .close")?.addEventListener("click",n,!1);const v=document.querySelector("#nav-item-search");v&&i&&v.addEventListener("click",(function(e){e.preventDefault(),i.focus(),!l&&u&&u.classList.toggle("active"),c?(this.querySelector("button")?.setAttribute("aria-expanded","true"),b()):(this.querySelector("button")?.setAttribute("aria-expanded","false"),y()),l&&b(),a&&(a.classList.add("play-animation"),a.addEventListener("animationend",(()=>{this.classList.remove("play-animation")})))}),!1),r?.addEventListener("click",n);const b=()=>{s?.removeAttribute("tabindex"),s?.removeAttribute("aria-hidden"),o?.removeAttribute("tabindex"),o?.removeAttribute("aria-hidden"),r?.removeAttribute("tabindex"),r?.removeAttribute("aria-hidden"),d?.removeAttribute("aria-hidden"),a?.removeAttribute("aria-hidden")},y=()=>{s?.setAttribute("tabindex","-1"),s?.setAttribute("aria-hidden","true"),o?.setAttribute("tabindex","-1"),o?.setAttribute("aria-hidden","true"),r?.setAttribute("tabindex","-1"),r?.setAttribute("aria-hidden","true"),d?.setAttribute("aria-hidden","true"),a?.setAttribute("aria-hidden","true")};a&&(a.classList.contains("featured-search")?b():y());const w=()=>{const e=h-p-m-_;!t()&&u&&(u.style.top=`${Math.max(e,55)}px`)};document.querySelectorAll(".alert-banner .close").forEach((e=>{e.addEventListener("click",w)})),window.addEventListener("scroll",(()=>{if(!t()){setTimeout(w,400);const e=document.querySelector("nav ~ #head-search");e&&(document.body.scrollTop>=100||document.documentElement.scrollTop>=100?e.classList.add("hidden-up"):e.classList.remove("hidden-up"))}})),window.addEventListener("resize",(()=>{w(),e()})),e()})),(()=>{const e={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function t(e){const t=e.previousElementSibling;if(t){if("pre"==t.tagName.toLowerCase()){const e=t.querySelector("code")?.innerText;e&&navigator.clipboard.writeText(e)}else navigator.clipboard.writeText(t.value);const n=document.createRange();n.selectNode(t),window.getSelection()?.removeAllRanges(),window.getSelection()?.addRange(n),e.innerHTML='<span class="ca-gov-icon-check-mark"></span> Code copied'}}window.addEventListener("load",(()=>{const n=document.querySelectorAll("pre code, textarea.sourcecode");for(let i=0,s=n.length;i<s;i++){const s=n[i];if("code"==s.tagName.toLowerCase()){let t=s.innerHTML;t=t.replace(/[&<>"'/]/g,(t=>e[t])),s.innerHTML=t}const o=document.createElement("button");o.type="button",o.onclick=function(){t(this)},o.classList.add("btn","btn-outline-primary"),o.innerHTML="<span class='ca-gov-icon-copy'></span> Copy code","code"==s.tagName.toLowerCase()?s.parentElement?.after(o):s.after(o)}}))})(),window.addEventListener("load",(()=>{document.querySelectorAll(".tabs").forEach((e=>{const t=e.querySelector("ul");if(!t)return;const n=t.querySelectorAll("a"),i=e.querySelectorAll('[id^="section"]'),s=(e,t)=>{t.focus(),t.removeAttribute("tabindex"),t.setAttribute("aria-selected","true"),e.removeAttribute("aria-selected"),e.setAttribute("tabindex","-1");const s=Array.prototype.indexOf.call(n,t),o=Array.prototype.indexOf.call(n,e);i[o].hidden=!0,i[s].hidden=!1};t.setAttribute("role","tablist"),n.forEach(((e,o)=>{e.setAttribute("role","tab"),e.setAttribute("tabindex","-1"),e.parentNode.setAttribute("role","presentation"),e.addEventListener("click",(e=>{e.preventDefault();const n=t.querySelector("[aria-selected]");n&&e.currentTarget!==n&&s(n,e.currentTarget)})),e.addEventListener("keydown",(e=>{const t=Array.prototype.indexOf.call(n,e.currentTarget),r=["ArrowLeft","Left"].includes(e.key)?t-1:["ArrowRight","Right"].includes(e.key)?t+1:["ArrowDown","Down"].includes(e.key)?"down":null;null!==r&&(e.preventDefault(),"down"===r?i[o].focus():n[r]&&s(e.currentTarget,n[r]))}))})),i.forEach(((e,t)=>{e.setAttribute("role","tabpanel"),e.setAttribute("tabindex","-1"),e.setAttribute("aria-label",n[t].innerText),e.hidden=!0})),n[0].removeAttribute("tabindex"),n[0].setAttribute("aria-selected","true"),i[0].hidden=!1}))})),document.addEventListener("DOMContentLoaded",(()=>{const e=document.querySelectorAll(".scroll-counter");e.forEach((e=>{e.counterAlreadyFired=!1,e.counterSpeed=Number(e.getAttribute("data-counter-time"))/45,e.counterTarget=+e.innerText,e.counterCount=0,e.counterStep=e.counterTarget/e.counterSpeed,e.updateCounter=()=>{e.counterCount+=e.counterStep,e.innerText=Math.ceil(e.counterCount).toLocaleString(),e.counterCount<e.counterTarget?window.setTimeout(e.updateCounter,e.counterSpeed):e.innerText=e.counterTarget.toLocaleString()}}));const t=()=>{e.forEach((e=>{e.counterAlreadyFired||(e=>{const t=window.scrollY||window.pageYOffset,n=e.getBoundingClientRect().top+t,i=t,s=t+window.innerHeight,o=n,r=n+e.clientHeight;return r>=i&&r<=s||o<=s&&o>=i})(e)&&(e.updateCounter(),e.counterAlreadyFired=!0)}))};window.addEventListener("load",t),window.addEventListener("scroll",t)})),window.addEventListener("load",(()=>{document.querySelectorAll(".return-top").forEach((e=>e.addEventListener("click",(()=>{document.body.scrollTop=0,document.documentElement.scrollTop=0})))),document.querySelectorAll("a[href='#skip-to-content']").forEach((t=>t.addEventListener("click",e)));const e=e=>{e.preventDefault(),document.body.scrollTop=0,document.documentElement.scrollTop=0};let t=0,n=0;window.addEventListener("scroll",(()=>{const e=document.querySelector(".return-top");if(!e)return;const i=window.pageYOffset||document.documentElement.scrollTop;i>n?e.classList.remove("is-visible"):document.body.scrollTop>=400||document.documentElement.scrollTop>=400?(t&&window.clearTimeout(t),e.classList.add("is-visible"),t=window.setTimeout((()=>{e.classList.remove("is-visible")}),2e3)):e.classList.remove("is-visible"),n=i<=0?0:i}),!1),window.addEventListener("scroll",(()=>{const e=document.querySelector(".return-top");e&&window.innerHeight+window.scrollY>=document.body.offsetHeight&&e.classList.add("is-visible")}))})),window.addEventListener("load",(()=>{const e=document.querySelector("header"),t=document.querySelector(".side-navigation");if(!t||!e)return;const n=t.querySelectorAll(".side-navigation a"),i=t.closest("div");t.id="side-navigation";const s=localStorage.getItem("sidebar-scroll"),o=document.querySelector(".global-header .mobile-controls");if(!o)return;let r=window.getComputedStyle(o).display;const a=e?e.clientHeight:0;let l=0;let c,d,u;const h=()=>{d&&d.append(t),t.ariaHidden="true",n?.forEach((e=>{e.tabIndex=-1}))},f=()=>{c.classList.toggle("visible"),c.classList.contains("visible")?(t.removeAttribute("aria-hidden"),u.ariaExpanded="true",n?.forEach((e=>{e.removeAttribute("tabindex")}))):(u.ariaExpanded="false",t.ariaHidden="true",n?.forEach((e=>{e.tabIndex=-1})))};const p=()=>{if("none"===getComputedStyle(o).display){const e=document.documentElement.clientHeight-a-100;e<=(document.querySelector(".side-navigation")?.clientHeight||0)?t.classList.add("overflow-auto"):(t.classList.remove("overflow-auto"),t.removeAttribute("style")),[...t.classList].includes("overflow-auto")&&t.setAttribute("style",`max-height:${e}px`)}else t.classList.remove("overflow-auto"),t.removeAttribute("style");null!==s&&(t.scrollTop=parseInt(s,10)),window.addEventListener("beforeunload",(()=>{localStorage.setItem("sidebar-scroll",t.scrollTop.toString())}))};!function(){const e=document.querySelectorAll("a.nav-heading"),t=e.length,n=location.href.split("#")[0];for(let i=0;i<t;i++)e[i].href.split("#")[0]==n&&(e[i].className+=" active")}(),c=document.createElement("aside"),c.className="mobile-sidenav",d=document.createElement("div"),d.className="container",c.append(d),e.after(c),(()=>{const t=document.querySelector(".side-navigation a, .sidenav");if(t){let n=t.innerText;const i=t.querySelector("span")?.innerText||"";n=n.replace(i,"").trim();const s=document.createElement("aside");s.className="sidenav-mobile-btn";const o=document.createElement("div");o.className="container",s.append(o),u=document.createElement("button"),u.type="button",u.className="sidenav-toggle",u.ariaExpanded="false",u.setAttribute("aria-controls","side-navigation"),u.innerText=n;const r=document.createElement("span");r.ariaHidden="true",r.className="ca-gov-icon-caret-down",u.append(r),o.append(u),e.after(s),u.addEventListener("click",f)}})(),"block"==r&&h(),window.addEventListener("resize",(()=>{r=getComputedStyle(o).display,window.clearTimeout(l),l=window.setTimeout(p,250),"block"==r?h():t!==i&&(i?.append(t),t.removeAttribute("aria-hidden"),n?.forEach((e=>{e.removeAttribute("tabindex")})))})),p()})),window.addEventListener("load",(()=>{const e=":not(code *):not(.cagov-logo)";document.querySelectorAll(`main a${e}, .agency-footer a${e}, .site-footer a${e}, footer a${e}`).forEach((e=>{const t=0===e.href.indexOf("#"),n=e.href.indexOf("localhost")>-1,i=e.href.indexOf("@")>-1,s=e;!1!==function(e){return window.location.host.indexOf(e.host)>-1}(s)||t||i||n||(s.innerHTML+='<span class="external-link-icon" aria-hidden="true"></span><span class="sr-only">(external link)</span>')}))})),window.addEventListener("load",(()=>{const e=document.querySelectorAll("h2"),t=document.querySelector("h2"),n=document.querySelector(".page-navigation");if(n&&0===n.childNodes.length&&t){const t=document.createElement("ul");e.forEach((n=>{const i=n.innerHTML,s=n.innerHTML.replace(/\s+/g,"-");n.setAttribute("id",s);const o=`<a href="#${s}">${i}</a>`,r=document.createElement("li");r.innerHTML=o,t.appendChild(r);const a=e.length;a>8?t.classList.add("columns-3"):a>5&&t.classList.add("columns-2")}));const i='<div id="on-this-page-navigation-label" class="label">On this page</div>';n.innerHTML=i,n.appendChild(t),n.setAttribute("aria-labelledby","on-this-page-navigation-label")}const i=window.location;i.hash&&setTimeout((()=>{const e=i.hash;i.hash+="_",i.hash=e}),500)})),window.addEventListener("load",(()=>{function e(e,t){return`<li class="cagov-pagination__item">\n <a\n href="javascript:void(0);"\n class="cagov-pagination__button"\n aria-label="${e} ${t}"\n data-page-num="${t}"\n >\n ${t}\n </a>\n </li>`}class t extends HTMLElement{constructor(){if(super(),!document.querySelector("#cagov-pagination-styles")){const e=document.createElement("style");e.id="cagov-pagination-styles",e.textContent="\ncagov-pagination {\n white-space: nowrap;\n font-size: .9rem;\n}\ncagov-pagination a {\n text-decoration: none !important;\n}\ncagov-pagination .cagov-pagination__list {\n list-style: none;\n margin: 0;\n padding: 0 !important;\n display: flex;\n overflow-x: scroll;\n}\ncagov-pagination .cagov-pagination__item {\n margin: var(--s-sm, 0.25rem);\n}\ncagov-pagination .cagov-pagination__item a {\n padding: 6px 14px;\n display: inline-block;\n color: #4a4958;\n}\ncagov-pagination .cagov-pagination__item a:hover, cagov-pagination .cagov-pagination__item a:focus {\n box-shadow: inset 0 0 0 3px #d4d4d7;\n}\ncagov-pagination .cagov-pagination__item.cagov-pagination-current {\n font-weight:700;\n}\ncagov-pagination .cagov-pagination__item.cagov-pagination-current a {\n box-shadow: inset 0 0 0 1px #d4d4d7;\n}\ncagov-pagination .cagov-pagination__item.cagov-pagination__overflow {\n border: none;\n padding: 0.875rem 0;\n}\ncagov-pagination .cagov-pagination__item:has(.cagov-pagination__link-inactive) {\n display:none;\n}\n.ca-gov-icon-arrow-prev, .ca-gov-icon-arrow-next {\n font-size: 0.86em;\n}\n",document.head.appendChild(e)}}connectedCallback(){this.currentPage=parseInt(this.dataset.currentPage?this.dataset.currentPage:"1",10),this.render()}render(){const t=this.dataset.previous?this.dataset.previous:'<span class="ca-gov-icon-arrow-prev" aria-hidden="true"></span> Previous',n=this.dataset.next?this.dataset.next:'Next <span class="ca-gov-icon-arrow-next" aria-hidden="true"></span>',i=this.dataset.page?this.dataset.page:"Page";if(this.totalPages=this.dataset.totalPages?Number(this.dataset.totalPages):1,this.totalPages<0||this.totalPages>1){const s=function(t,n,i,s,o){const r=-1==o;return`<nav aria-label="Pagination" class="cagov-pagination">\n <ul class="cagov-pagination__list">\n <li class="cagov-pagination__item">\n <a\n href="javascript:void(0);"\n class="cagov-pagination__link cagov-pagination__previous-page"\n aria-label="previous page"\n >\n <span class="cagov-pagination__link-text ${s>1?"":"cagov-pagination__link-inactive"}"> ${n} </span>\n </a>\n </li>\n ${s>2?e(i,1):""}\n\n ${4==s?e(i,2):""}\n ${s>4?'<li\n class="cagov-pagination__item cagov-pagination__overflow"\n role="presentation"\n >\n <span> … </span>\n </li>':""}\n\n ${s>1?e(i,s-1):""}\n\n <li class="cagov-pagination__item cagov-pagination-current">\n <a\n href="javascript:void(0);"\n class="cagov-pagination__button"\n aria-label="Page ${s}"\n aria-current="page"\n data-page-num="${s}"\n >\n ${s}\n </a>\n </li>\n\n ${r||s<o?e(i,s+1):""}\n\n ${!r&&s<o-2?'<li\n class="cagov-pagination__item cagov-pagination__overflow"\n role="presentation"\n >\n <span> … </span>\n </li>':""}\n ${r?e(i,s+2):""}\n\n ${s<o-1?e(i,o):""}\n ${r?'<li\n class="cagov-pagination__item cagov-pagination__overflow"\n role="presentation"\n >\n <span> … </span>\n </li>':""}\n\n <li class="cagov-pagination__item">\n <a\n href="javascript:void(0);"\n class="cagov-pagination__link cagov-pagination__next-page"\n aria-label="next page"\n >\n <span class="cagov-pagination__link-text ${!r&&s>o-1?"cagov-pagination__link-inactive":""}"> ${t} </span>\n </a>\n </li>\n </ul>\n </nav>`}(n,t,i,this.currentPage,this.totalPages);this.innerHTML=s,this.applyListeners()}else this.innerHTML=""}static get observedAttributes(){return["data-current-page","data-total-pages"]}attributeChangedCallback(e,t,n){"data-current-page"===e&&(this.currentPage=parseInt(n,10),this.render()),"data-total-pages"===e&&(this.totalPages=parseInt(n,10),this.render())}applyListeners(){this.querySelectorAll(".cagov-pagination__button").forEach((e=>{e.addEventListener("click",(e=>{this.currentPage=parseInt(e.target.dataset.pageNum,10),this.dispatchEvent(new CustomEvent("paginationClick",{detail:this.currentPage})),this.dataset.currentPage=this.currentPage.toString()}))})),this.querySelector(".cagov-pagination__previous-page").addEventListener("click",(e=>{e.target.classList.contains("cagov-pagination__link-inactive")||(this.currentPage-=1,this.currentPage<1&&(this.currentPage=1),this.dispatchEvent(new CustomEvent("paginationClick",{detail:this.currentPage})),this.dataset.currentPage=this.currentPage.toString())})),this.querySelector(".cagov-pagination__next-page").addEventListener("click",(e=>{e.target.classList.contains("cagov-pagination__link-inactive")||(this.currentPage+=1,-1!=this.totalPages&&this.currentPage>this.totalPages&&(this.currentPage=this.totalPages),this.dispatchEvent(new CustomEvent("paginationClick",{detail:this.currentPage})),this.dataset.currentPage=this.currentPage.toString())}))}}window.customElements.define("cagov-pagination",t)})),window.addEventListener("load",(()=>{const e=()=>window.innerWidth>991,t=document.querySelector(".toggle-menu");if(!t)return;const n=document.querySelector(".main-navigation"),i=document.createElement("div");i.className="nav-drawer";const s=document.createElement("button");s.type="button",s.classList.add("mobile-control","toggle-menu"),s.ariaExpanded="false",s.setAttribute("aria-controls","navigation"),s.tabIndex=-1;const o=[0,1,2,3,4].map((()=>document.createElement("span")));o[4].classList.add("sr-only"),o[4].innerText="Menu",s.append(...o),i.append(s);const r=document.querySelector(".navigation-search");if(!r)return;const a=document.querySelector(".global-header .mobile-controls"),l=a?window.getComputedStyle(a).display:"",c=document.querySelectorAll(".main-content, footer, .site-footer, .utility-header, .branding"),d=document.querySelector("header"),u=()=>{document.querySelectorAll(".first-level-btn").forEach((e=>e.ariaExpanded="false")),document.querySelectorAll(".sub-nav").forEach((e=>{e.ariaHidden="true",e.classList.remove("open")})),document.querySelectorAll(".second-level-link").forEach((e=>e.tabIndex=-1)),document.querySelectorAll(".rotate").forEach((t=>t.style.display=e()?"none":"block"));const t=e()?null:"true";r.ariaHidden!=t&&(r.ariaHidden=t)},h=()=>r.querySelectorAll('a.first-level-link, button.first-level-btn, input, button, [tabindex]:not([tabindex="-1"])'),f=()=>r.querySelectorAll("a.first-level-link, button.first-level-btn");document.addEventListener("keydown",(e=>{r.classList.contains("visible")&&"Escape"===e.key&&(e.stopPropagation(),m())}));const p=()=>{const e=document.querySelector(".global-header .mobile-controls");return!!e&&"none"!==getComputedStyle(e).display};r.addEventListener("focusout",(e=>{if(p()){const t=e.relatedTarget,n=e.currentTarget;t&&!n.contains(t)&&m()}}));const g=()=>{s.ariaExpanded="true",r.ariaHidden=null,h().forEach((e=>e.removeAttribute("tabindex"))),"block"!==l&&"false"!==t.ariaExpanded&&(t.ariaExpanded="false")},m=()=>{r.classList.contains("visible")&&(r.classList.remove("visible"),t.focus()),r.classList.add("not-visible"),_()},_=()=>{"false"!==t.ariaExpanded&&(t.ariaExpanded="false"),"false"!==s.ariaExpanded&&(s.ariaExpanded="false"),n&&document.body.classList.remove("overflow-hidden"),h().forEach((e=>e.tabIndex=-1)),c.forEach((e=>e.ariaHidden=null)),d?.classList.remove("nav-overlay"),u()};t.addEventListener("click",(()=>{r.classList.add("visible"),r.classList.remove("not-visible"),document.body.classList.add("overflow-hidden"),t.ariaExpanded="true",g(),c.forEach((e=>e.ariaHidden="true")),d?.classList.add("nav-overlay"),s.focus()})),s.addEventListener("click",m);const v=()=>{const t=document.querySelector(".search-textfield");t&&(t.addEventListener("focus",(()=>{t.classList.add("is-in-focus")})),t.addEventListener("blur",(()=>{setTimeout((()=>{t.classList.remove("is-in-focus")}),500)})),t.classList.contains("is-in-focus")||(u(),e()?f().forEach((e=>e.removeAttribute("tabindex"))):(f().forEach((e=>e.tabIndex=-1)),m())))};d.addEventListener("mouseup",(e=>{p()&&(r===e.target||r?.contains(e.target)||m())})),window.addEventListener("resize",v),document.querySelector(".navigation-search")?.prepend(i),v()})),window.addEventListener("DOMContentLoaded",(()=>{const e=document.querySelector("link[rel='stylesheet'][href*='cagov.core.']");function t(){e&&(e.removeAttribute("integrity"),e.href=e.href.replace(/cagov\.core(\.min)?\.css/,"cagov.core.flat.css"),console.log(`POLYFILL: Using new CSS file - ${e.href}`))}CSS.supports("selector(&)")||(console.log("POLYFILL: Nested CSS is not supported"),t()),(void 0===window.matchMedia&&void 0===window.msMatchMedia||!window.matchMedia("(width >= 0px)").matches)&&(console.log("POLYFILL: Media query range notation (<, <=, >, >=) is not supported."),t())}));
|
|
6
|
+
*/!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).bootstrap=t()}(void 0,function(){const e=new Map,t={set(t,n,i){e.has(t)||e.set(t,new Map);const s=e.get(t);s.has(n)||0===s.size?s.set(n,i):console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(s.keys())[0]}.`)},get:(t,n)=>e.has(t)&&e.get(t).get(n)||null,remove(t,n){if(!e.has(t))return;const i=e.get(t);i.delete(n),0===i.size&&e.delete(t)}},n="transitionend",i=e=>(e&&window.CSS&&window.CSS.escape&&(e=e.replace(/#([^\s"#']+)/g,(e,t)=>`#${CSS.escape(t)}`)),e),s=e=>null==e?`${e}`:Object.prototype.toString.call(e).match(/\s([a-z]+)/i)[1].toLowerCase(),o=e=>{e.dispatchEvent(new Event(n))},r=e=>!(!e||"object"!=typeof e)&&(void 0!==e.jquery&&(e=e[0]),void 0!==e.nodeType),a=e=>r(e)?e.jquery?e[0]:e:"string"==typeof e&&e.length>0?document.querySelector(i(e)):null,l=e=>{if(!r(e)||0===e.getClientRects().length)return!1;const t="visible"===getComputedStyle(e).getPropertyValue("visibility"),n=e.closest("details:not([open])");if(!n)return t;if(n!==e){const t=e.closest("summary");if(t&&t.parentNode!==n)return!1;if(null===t)return!1}return t},c=e=>!e||e.nodeType!==Node.ELEMENT_NODE||(!!e.classList.contains("disabled")||(void 0!==e.disabled?e.disabled:e.hasAttribute("disabled")&&"false"!==e.getAttribute("disabled"))),d=e=>{if(!document.documentElement.attachShadow)return null;if("function"==typeof e.getRootNode){const t=e.getRootNode();return t instanceof ShadowRoot?t:null}return e instanceof ShadowRoot?e:e.parentNode?d(e.parentNode):null},u=()=>{},h=e=>{e.offsetHeight},f=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,p=[],g=()=>"rtl"===document.documentElement.dir,m=e=>{var t;t=()=>{const t=f();if(t){const n=e.NAME,i=t.fn[n];t.fn[n]=e.jQueryInterface,t.fn[n].Constructor=e,t.fn[n].noConflict=()=>(t.fn[n]=i,e.jQueryInterface)}},"loading"===document.readyState?(p.length||document.addEventListener("DOMContentLoaded",()=>{for(const e of p)e()}),p.push(t)):t()},_=(e,t=[],n=e)=>"function"==typeof e?e.call(...t):n,v=(e,t,i=!0)=>{if(!i)return void _(e);const s=(e=>{if(!e)return 0;let{transitionDuration:t,transitionDelay:n}=window.getComputedStyle(e);const i=Number.parseFloat(t),s=Number.parseFloat(n);return i||s?(t=t.split(",")[0],n=n.split(",")[0],1e3*(Number.parseFloat(t)+Number.parseFloat(n))):0})(t)+5;let r=!1;const a=({target:i})=>{i===t&&(r=!0,t.removeEventListener(n,a),_(e))};t.addEventListener(n,a),setTimeout(()=>{r||o(t)},s)},b=(e,t,n,i)=>{const s=e.length;let o=e.indexOf(t);return-1===o?!n&&i?e[s-1]:e[0]:(o+=n?1:-1,i&&(o=(o+s)%s),e[Math.max(0,Math.min(o,s-1))])},y=/[^.]*(?=\..*)\.|.*/,A=/\..*/,w=/::\d+$/,E={};let L=1;const T={mouseenter:"mouseover",mouseleave:"mouseout"},C=new Set(["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"]);function S(e,t){return t&&`${t}::${L++}`||e.uidEvent||L++}function O(e){const t=S(e);return e.uidEvent=t,E[t]=E[t]||{},E[t]}function x(e,t,n=null){return Object.values(e).find(e=>e.callable===t&&e.delegationSelector===n)}function k(e,t,n){const i="string"==typeof t,s=i?n:t||n;let o=$(e);return C.has(o)||(o=e),[i,s,o]}function D(e,t,n,i,s){if("string"!=typeof t||!e)return;let[o,r,a]=k(t,n,i);if(t in T){const e=e=>function(t){if(!t.relatedTarget||t.relatedTarget!==t.delegateTarget&&!t.delegateTarget.contains(t.relatedTarget))return e.call(this,t)};r=e(r)}const l=O(e),c=l[a]||(l[a]={}),d=x(c,r,o?n:null);if(d)return void(d.oneOff=d.oneOff&&s);const u=S(r,t.replace(y,"")),h=o?function(e,t,n){return function i(s){const o=e.querySelectorAll(t);for(let{target:r}=s;r&&r!==this;r=r.parentNode)for(const a of o)if(a===r)return q(s,{delegateTarget:r}),i.oneOff&&P.off(e,s.type,t,n),n.apply(r,[s])}}(e,n,r):function(e,t){return function n(i){return q(i,{delegateTarget:e}),n.oneOff&&P.off(e,i.type,t),t.apply(e,[i])}}(e,r);h.delegationSelector=o?n:null,h.callable=r,h.oneOff=s,h.uidEvent=u,c[u]=h,e.addEventListener(a,h,o)}function I(e,t,n,i,s){const o=x(t[n],i,s);o&&(e.removeEventListener(n,o,Boolean(s)),delete t[n][o.uidEvent])}function N(e,t,n,i){const s=t[n]||{};for(const[o,r]of Object.entries(s))o.includes(i)&&I(e,t,n,r.callable,r.delegationSelector)}function $(e){return e=e.replace(A,""),T[e]||e}const P={on(e,t,n,i){D(e,t,n,i,!1)},one(e,t,n,i){D(e,t,n,i,!0)},off(e,t,n,i){if("string"!=typeof t||!e)return;const[s,o,r]=k(t,n,i),a=r!==t,l=O(e),c=l[r]||{},d=t.startsWith(".");if(void 0===o){if(d)for(const n of Object.keys(l))N(e,l,n,t.slice(1));for(const[n,i]of Object.entries(c)){const s=n.replace(w,"");a&&!t.includes(s)||I(e,l,r,i.callable,i.delegationSelector)}}else{if(!Object.keys(c).length)return;I(e,l,r,o,s?n:null)}},trigger(e,t,n){if("string"!=typeof t||!e)return null;const i=f();let s=null,o=!0,r=!0,a=!1;t!==$(t)&&i&&(s=i.Event(t,n),i(e).trigger(s),o=!s.isPropagationStopped(),r=!s.isImmediatePropagationStopped(),a=s.isDefaultPrevented());const l=q(new Event(t,{bubbles:o,cancelable:!0}),n);return a&&l.preventDefault(),r&&e.dispatchEvent(l),l.defaultPrevented&&s&&s.preventDefault(),l}};function q(e,t={}){for(const[n,i]of Object.entries(t))try{e[n]=i}catch(t){Object.defineProperty(e,n,{configurable:!0,get:()=>i})}return e}function M(e){if("true"===e)return!0;if("false"===e)return!1;if(e===Number(e).toString())return Number(e);if(""===e||"null"===e)return null;if("string"!=typeof e)return e;try{return JSON.parse(decodeURIComponent(e))}catch(t){return e}}function R(e){return e.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}const H={setDataAttribute(e,t,n){e.setAttribute(`data-bs-${R(t)}`,n)},removeDataAttribute(e,t){e.removeAttribute(`data-bs-${R(t)}`)},getDataAttributes(e){if(!e)return{};const t={},n=Object.keys(e.dataset).filter(e=>e.startsWith("bs")&&!e.startsWith("bsConfig"));for(const i of n){let n=i.replace(/^bs/,"");n=n.charAt(0).toLowerCase()+n.slice(1),t[n]=M(e.dataset[i])}return t},getDataAttribute:(e,t)=>M(e.getAttribute(`data-bs-${R(t)}`))};class j{static get Default(){return{}}static get DefaultType(){return{}}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}_getConfig(e){return e=this._mergeConfigObj(e),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}_configAfterMerge(e){return e}_mergeConfigObj(e,t){const n=r(t)?H.getDataAttribute(t,"config"):{};return{...this.constructor.Default,..."object"==typeof n?n:{},...r(t)?H.getDataAttributes(t):{},..."object"==typeof e?e:{}}}_typeCheckConfig(e,t=this.constructor.DefaultType){for(const[n,i]of Object.entries(t)){const t=e[n],o=r(t)?"element":s(t);if(!new RegExp(i).test(o))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${n}" provided type "${o}" but expected type "${i}".`)}}}class F extends j{constructor(e,n){super(),(e=a(e))&&(this._element=e,this._config=this._getConfig(n),t.set(this._element,this.constructor.DATA_KEY,this))}dispose(){t.remove(this._element,this.constructor.DATA_KEY),P.off(this._element,this.constructor.EVENT_KEY);for(const e of Object.getOwnPropertyNames(this))this[e]=null}_queueCallback(e,t,n=!0){v(e,t,n)}_getConfig(e){return e=this._mergeConfigObj(e,this._element),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}static getInstance(e){return t.get(a(e),this.DATA_KEY)}static getOrCreateInstance(e,t={}){return this.getInstance(e)||new this(e,"object"==typeof t?t:null)}static get VERSION(){return"5.3.8"}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(e){return`${e}${this.EVENT_KEY}`}}const B=e=>{let t=e.getAttribute("data-bs-target");if(!t||"#"===t){let n=e.getAttribute("href");if(!n||!n.includes("#")&&!n.startsWith("."))return null;n.includes("#")&&!n.startsWith("#")&&(n=`#${n.split("#")[1]}`),t=n&&"#"!==n?n.trim():null}return t?t.split(",").map(e=>i(e)).join(","):null},z={find:(e,t=document.documentElement)=>[].concat(...Element.prototype.querySelectorAll.call(t,e)),findOne:(e,t=document.documentElement)=>Element.prototype.querySelector.call(t,e),children:(e,t)=>[].concat(...e.children).filter(e=>e.matches(t)),parents(e,t){const n=[];let i=e.parentNode.closest(t);for(;i;)n.push(i),i=i.parentNode.closest(t);return n},prev(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return[n];n=n.previousElementSibling}return[]},next(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return[n];n=n.nextElementSibling}return[]},focusableChildren(e){const t=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map(e=>`${e}:not([tabindex^="-"])`).join(",");return this.find(t,e).filter(e=>!c(e)&&l(e))},getSelectorFromElement(e){const t=B(e);return t&&z.findOne(t)?t:null},getElementFromSelector(e){const t=B(e);return t?z.findOne(t):null},getMultipleElementsFromSelector(e){const t=B(e);return t?z.find(t):[]}},W=(e,t="hide")=>{const n=`click.dismiss${e.EVENT_KEY}`,i=e.NAME;P.on(document,n,`[data-bs-dismiss="${i}"]`,function(n){if(["A","AREA"].includes(this.tagName)&&n.preventDefault(),c(this))return;const s=z.getElementFromSelector(this)||this.closest(`.${i}`);e.getOrCreateInstance(s)[t]()})},V=".bs.alert",Y=`close${V}`,X=`closed${V}`;class U extends F{static get NAME(){return"alert"}close(){if(P.trigger(this._element,Y).defaultPrevented)return;this._element.classList.remove("show");const e=this._element.classList.contains("fade");this._queueCallback(()=>this._destroyElement(),this._element,e)}_destroyElement(){this._element.remove(),P.trigger(this._element,X),this.dispose()}static jQueryInterface(e){return this.each(function(){const t=U.getOrCreateInstance(this);if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method named "${e}"`);t[e](this)}})}}W(U,"close"),m(U);const K='[data-bs-toggle="button"]';class Q extends F{static get NAME(){return"button"}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle("active"))}static jQueryInterface(e){return this.each(function(){const t=Q.getOrCreateInstance(this);"toggle"===e&&t[e]()})}}P.on(document,"click.bs.button.data-api",K,e=>{e.preventDefault();const t=e.target.closest(K);Q.getOrCreateInstance(t).toggle()}),m(Q);const J=".bs.swipe",G=`touchstart${J}`,Z=`touchmove${J}`,ee=`touchend${J}`,te=`pointerdown${J}`,ne=`pointerup${J}`,ie={endCallback:null,leftCallback:null,rightCallback:null},se={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class oe extends j{constructor(e,t){super(),this._element=e,e&&oe.isSupported()&&(this._config=this._getConfig(t),this._deltaX=0,this._supportPointerEvents=Boolean(window.PointerEvent),this._initEvents())}static get Default(){return ie}static get DefaultType(){return se}static get NAME(){return"swipe"}dispose(){P.off(this._element,J)}_start(e){this._supportPointerEvents?this._eventIsPointerPenTouch(e)&&(this._deltaX=e.clientX):this._deltaX=e.touches[0].clientX}_end(e){this._eventIsPointerPenTouch(e)&&(this._deltaX=e.clientX-this._deltaX),this._handleSwipe(),_(this._config.endCallback)}_move(e){this._deltaX=e.touches&&e.touches.length>1?0:e.touches[0].clientX-this._deltaX}_handleSwipe(){const e=Math.abs(this._deltaX);if(e<=40)return;const t=e/this._deltaX;this._deltaX=0,t&&_(t>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(P.on(this._element,te,e=>this._start(e)),P.on(this._element,ne,e=>this._end(e)),this._element.classList.add("pointer-event")):(P.on(this._element,G,e=>this._start(e)),P.on(this._element,Z,e=>this._move(e)),P.on(this._element,ee,e=>this._end(e)))}_eventIsPointerPenTouch(e){return this._supportPointerEvents&&("pen"===e.pointerType||"touch"===e.pointerType)}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}}const re=".bs.carousel",ae=".data-api",le="ArrowLeft",ce="ArrowRight",de="next",ue="prev",he="left",fe="right",pe=`slide${re}`,ge=`slid${re}`,me=`keydown${re}`,_e=`mouseenter${re}`,ve=`mouseleave${re}`,be=`dragstart${re}`,ye=`load${re}${ae}`,Ae=`click${re}${ae}`,we="carousel",Ee="active",Le=".active",Te=".carousel-item",Ce=Le+Te,Se={[le]:fe,[ce]:he},Oe={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},xe={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class ke extends F{constructor(e,t){super(e,t),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=z.findOne(".carousel-indicators",this._element),this._addEventListeners(),this._config.ride===we&&this.cycle()}static get Default(){return Oe}static get DefaultType(){return xe}static get NAME(){return"carousel"}next(){this._slide(de)}nextWhenVisible(){!document.hidden&&l(this._element)&&this.next()}prev(){this._slide(ue)}pause(){this._isSliding&&o(this._element),this._clearInterval()}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval(()=>this.nextWhenVisible(),this._config.interval)}_maybeEnableCycle(){this._config.ride&&(this._isSliding?P.one(this._element,ge,()=>this.cycle()):this.cycle())}to(e){const t=this._getItems();if(e>t.length-1||e<0)return;if(this._isSliding)return void P.one(this._element,ge,()=>this.to(e));const n=this._getItemIndex(this._getActive());if(n===e)return;const i=e>n?de:ue;this._slide(i,t[e])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(e){return e.defaultInterval=e.interval,e}_addEventListeners(){this._config.keyboard&&P.on(this._element,me,e=>this._keydown(e)),"hover"===this._config.pause&&(P.on(this._element,_e,()=>this.pause()),P.on(this._element,ve,()=>this._maybeEnableCycle())),this._config.touch&&oe.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const e of z.find(".carousel-item img",this._element))P.on(e,be,e=>e.preventDefault());const e={leftCallback:()=>this._slide(this._directionToOrder(he)),rightCallback:()=>this._slide(this._directionToOrder(fe)),endCallback:()=>{"hover"===this._config.pause&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(()=>this._maybeEnableCycle(),500+this._config.interval))}};this._swipeHelper=new oe(this._element,e)}_keydown(e){if(/input|textarea/i.test(e.target.tagName))return;const t=Se[e.key];t&&(e.preventDefault(),this._slide(this._directionToOrder(t)))}_getItemIndex(e){return this._getItems().indexOf(e)}_setActiveIndicatorElement(e){if(!this._indicatorsElement)return;const t=z.findOne(Le,this._indicatorsElement);t.classList.remove(Ee),t.removeAttribute("aria-current");const n=z.findOne(`[data-bs-slide-to="${e}"]`,this._indicatorsElement);n&&(n.classList.add(Ee),n.setAttribute("aria-current","true"))}_updateInterval(){const e=this._activeElement||this._getActive();if(!e)return;const t=Number.parseInt(e.getAttribute("data-bs-interval"),10);this._config.interval=t||this._config.defaultInterval}_slide(e,t=null){if(this._isSliding)return;const n=this._getActive(),i=e===de,s=t||b(this._getItems(),n,i,this._config.wrap);if(s===n)return;const o=this._getItemIndex(s),r=t=>P.trigger(this._element,t,{relatedTarget:s,direction:this._orderToDirection(e),from:this._getItemIndex(n),to:o});if(r(pe).defaultPrevented)return;if(!n||!s)return;const a=Boolean(this._interval);this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(o),this._activeElement=s;const l=i?"carousel-item-start":"carousel-item-end",c=i?"carousel-item-next":"carousel-item-prev";s.classList.add(c),h(s),n.classList.add(l),s.classList.add(l);this._queueCallback(()=>{s.classList.remove(l,c),s.classList.add(Ee),n.classList.remove(Ee,c,l),this._isSliding=!1,r(ge)},n,this._isAnimated()),a&&this.cycle()}_isAnimated(){return this._element.classList.contains("slide")}_getActive(){return z.findOne(Ce,this._element)}_getItems(){return z.find(Te,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(e){return g()?e===he?ue:de:e===he?de:ue}_orderToDirection(e){return g()?e===ue?he:fe:e===ue?fe:he}static jQueryInterface(e){return this.each(function(){const t=ke.getOrCreateInstance(this,e);if("number"!=typeof e){if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method named "${e}"`);t[e]()}}else t.to(e)})}}P.on(document,Ae,"[data-bs-slide], [data-bs-slide-to]",function(e){const t=z.getElementFromSelector(this);if(!t||!t.classList.contains(we))return;e.preventDefault();const n=ke.getOrCreateInstance(t),i=this.getAttribute("data-bs-slide-to");return i?(n.to(i),void n._maybeEnableCycle()):"next"===H.getDataAttribute(this,"slide")?(n.next(),void n._maybeEnableCycle()):(n.prev(),void n._maybeEnableCycle())}),P.on(window,ye,()=>{const e=z.find('[data-bs-ride="carousel"]');for(const t of e)ke.getOrCreateInstance(t)}),m(ke);const De=".bs.collapse",Ie=`show${De}`,Ne=`shown${De}`,$e=`hide${De}`,Pe=`hidden${De}`,qe=`click${De}.data-api`,Me="show",Re="collapse",He="collapsing",je=`:scope .${Re} .${Re}`,Fe='[data-bs-toggle="collapse"]',Be={parent:null,toggle:!0},ze={parent:"(null|element)",toggle:"boolean"};class We extends F{constructor(e,t){super(e,t),this._isTransitioning=!1,this._triggerArray=[];const n=z.find(Fe);for(const e of n){const t=z.getSelectorFromElement(e),n=z.find(t).filter(e=>e===this._element);null!==t&&n.length&&this._triggerArray.push(e)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return Be}static get DefaultType(){return ze}static get NAME(){return"collapse"}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let e=[];if(this._config.parent&&(e=this._getFirstLevelChildren(".collapse.show, .collapse.collapsing").filter(e=>e!==this._element).map(e=>We.getOrCreateInstance(e,{toggle:!1}))),e.length&&e[0]._isTransitioning)return;if(P.trigger(this._element,Ie).defaultPrevented)return;for(const t of e)t.hide();const t=this._getDimension();this._element.classList.remove(Re),this._element.classList.add(He),this._element.style[t]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const n=`scroll${t[0].toUpperCase()+t.slice(1)}`;this._queueCallback(()=>{this._isTransitioning=!1,this._element.classList.remove(He),this._element.classList.add(Re,Me),this._element.style[t]="",P.trigger(this._element,Ne)},this._element,!0),this._element.style[t]=`${this._element[n]}px`}hide(){if(this._isTransitioning||!this._isShown())return;if(P.trigger(this._element,$e).defaultPrevented)return;const e=this._getDimension();this._element.style[e]=`${this._element.getBoundingClientRect()[e]}px`,h(this._element),this._element.classList.add(He),this._element.classList.remove(Re,Me);for(const e of this._triggerArray){const t=z.getElementFromSelector(e);t&&!this._isShown(t)&&this._addAriaAndCollapsedClass([e],!1)}this._isTransitioning=!0;this._element.style[e]="",this._queueCallback(()=>{this._isTransitioning=!1,this._element.classList.remove(He),this._element.classList.add(Re),P.trigger(this._element,Pe)},this._element,!0)}_isShown(e=this._element){return e.classList.contains(Me)}_configAfterMerge(e){return e.toggle=Boolean(e.toggle),e.parent=a(e.parent),e}_getDimension(){return this._element.classList.contains("collapse-horizontal")?"width":"height"}_initializeChildren(){if(!this._config.parent)return;const e=this._getFirstLevelChildren(Fe);for(const t of e){const e=z.getElementFromSelector(t);e&&this._addAriaAndCollapsedClass([t],this._isShown(e))}}_getFirstLevelChildren(e){const t=z.find(je,this._config.parent);return z.find(e,this._config.parent).filter(e=>!t.includes(e))}_addAriaAndCollapsedClass(e,t){if(e.length)for(const n of e)n.classList.toggle("collapsed",!t),n.setAttribute("aria-expanded",t)}static jQueryInterface(e){const t={};return"string"==typeof e&&/show|hide/.test(e)&&(t.toggle=!1),this.each(function(){const n=We.getOrCreateInstance(this,t);if("string"==typeof e){if(void 0===n[e])throw new TypeError(`No method named "${e}"`);n[e]()}})}}P.on(document,qe,Fe,function(e){("A"===e.target.tagName||e.delegateTarget&&"A"===e.delegateTarget.tagName)&&e.preventDefault();for(const e of z.getMultipleElementsFromSelector(this))We.getOrCreateInstance(e,{toggle:!1}).toggle()}),m(We);var Ve="top",Ye="bottom",Xe="right",Ue="left",Ke="auto",Qe=[Ve,Ye,Xe,Ue],Je="start",Ge="end",Ze="clippingParents",et="viewport",tt="popper",nt="reference",it=Qe.reduce(function(e,t){return e.concat([t+"-"+Je,t+"-"+Ge])},[]),st=[].concat(Qe,[Ke]).reduce(function(e,t){return e.concat([t,t+"-"+Je,t+"-"+Ge])},[]),ot="beforeRead",rt="read",at="afterRead",lt="beforeMain",ct="main",dt="afterMain",ut="beforeWrite",ht="write",ft="afterWrite",pt=[ot,rt,at,lt,ct,dt,ut,ht,ft];function gt(e){return e?(e.nodeName||"").toLowerCase():null}function mt(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function _t(e){return e instanceof mt(e).Element||e instanceof Element}function vt(e){return e instanceof mt(e).HTMLElement||e instanceof HTMLElement}function bt(e){return"undefined"!=typeof ShadowRoot&&(e instanceof mt(e).ShadowRoot||e instanceof ShadowRoot)}const yt={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach(function(e){var n=t.styles[e]||{},i=t.attributes[e]||{},s=t.elements[e];vt(s)&>(s)&&(Object.assign(s.style,n),Object.keys(i).forEach(function(e){var t=i[e];!1===t?s.removeAttribute(e):s.setAttribute(e,!0===t?"":t)}))})},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(e){var i=t.elements[e],s=t.attributes[e]||{},o=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce(function(e,t){return e[t]="",e},{});vt(i)&>(i)&&(Object.assign(i.style,o),Object.keys(s).forEach(function(e){i.removeAttribute(e)}))})}},requires:["computeStyles"]};function At(e){return e.split("-")[0]}var wt=Math.max,Et=Math.min,Lt=Math.round;function Tt(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function Ct(){return!/^((?!chrome|android).)*safari/i.test(Tt())}function St(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var i=e.getBoundingClientRect(),s=1,o=1;t&&vt(e)&&(s=e.offsetWidth>0&&Lt(i.width)/e.offsetWidth||1,o=e.offsetHeight>0&&Lt(i.height)/e.offsetHeight||1);var r=(_t(e)?mt(e):window).visualViewport,a=!Ct()&&n,l=(i.left+(a&&r?r.offsetLeft:0))/s,c=(i.top+(a&&r?r.offsetTop:0))/o,d=i.width/s,u=i.height/o;return{width:d,height:u,top:c,right:l+d,bottom:c+u,left:l,x:l,y:c}}function Ot(e){var t=St(e),n=e.offsetWidth,i=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-i)<=1&&(i=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:i}}function xt(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&bt(n)){var i=t;do{if(i&&e.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function kt(e){return mt(e).getComputedStyle(e)}function Dt(e){return["table","td","th"].indexOf(gt(e))>=0}function It(e){return((_t(e)?e.ownerDocument:e.document)||window.document).documentElement}function Nt(e){return"html"===gt(e)?e:e.assignedSlot||e.parentNode||(bt(e)?e.host:null)||It(e)}function $t(e){return vt(e)&&"fixed"!==kt(e).position?e.offsetParent:null}function Pt(e){for(var t=mt(e),n=$t(e);n&&Dt(n)&&"static"===kt(n).position;)n=$t(n);return n&&("html"===gt(n)||"body"===gt(n)&&"static"===kt(n).position)?t:n||function(e){var t=/firefox/i.test(Tt());if(/Trident/i.test(Tt())&&vt(e)&&"fixed"===kt(e).position)return null;var n=Nt(e);for(bt(n)&&(n=n.host);vt(n)&&["html","body"].indexOf(gt(n))<0;){var i=kt(n);if("none"!==i.transform||"none"!==i.perspective||"paint"===i.contain||-1!==["transform","perspective"].indexOf(i.willChange)||t&&"filter"===i.willChange||t&&i.filter&&"none"!==i.filter)return n;n=n.parentNode}return null}(e)||t}function qt(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Mt(e,t,n){return wt(e,Et(t,n))}function Rt(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function Ht(e,t){return t.reduce(function(t,n){return t[n]=e,t},{})}const jt={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,i=e.name,s=e.options,o=n.elements.arrow,r=n.modifiersData.popperOffsets,a=At(n.placement),l=qt(a),c=[Ue,Xe].indexOf(a)>=0?"height":"width";if(o&&r){var d=function(e,t){return Rt("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:Ht(e,Qe))}(s.padding,n),u=Ot(o),h="y"===l?Ve:Ue,f="y"===l?Ye:Xe,p=n.rects.reference[c]+n.rects.reference[l]-r[l]-n.rects.popper[c],g=r[l]-n.rects.reference[l],m=Pt(o),_=m?"y"===l?m.clientHeight||0:m.clientWidth||0:0,v=p/2-g/2,b=d[h],y=_-u[c]-d[f],A=_/2-u[c]/2+v,w=Mt(b,A,y),E=l;n.modifiersData[i]=((t={})[E]=w,t.centerOffset=w-A,t)}},effect:function(e){var t=e.state,n=e.options.element,i=void 0===n?"[data-popper-arrow]":n;null!=i&&("string"!=typeof i||(i=t.elements.popper.querySelector(i)))&&xt(t.elements.popper,i)&&(t.elements.arrow=i)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Ft(e){return e.split("-")[1]}var Bt={top:"auto",right:"auto",bottom:"auto",left:"auto"};function zt(e){var t,n=e.popper,i=e.popperRect,s=e.placement,o=e.variation,r=e.offsets,a=e.position,l=e.gpuAcceleration,c=e.adaptive,d=e.roundOffsets,u=e.isFixed,h=r.x,f=void 0===h?0:h,p=r.y,g=void 0===p?0:p,m="function"==typeof d?d({x:f,y:g}):{x:f,y:g};f=m.x,g=m.y;var _=r.hasOwnProperty("x"),v=r.hasOwnProperty("y"),b=Ue,y=Ve,A=window;if(c){var w=Pt(n),E="clientHeight",L="clientWidth";if(w===mt(n)&&"static"!==kt(w=It(n)).position&&"absolute"===a&&(E="scrollHeight",L="scrollWidth"),s===Ve||(s===Ue||s===Xe)&&o===Ge)y=Ye,g-=(u&&w===A&&A.visualViewport?A.visualViewport.height:w[E])-i.height,g*=l?1:-1;if(s===Ue||(s===Ve||s===Ye)&&o===Ge)b=Xe,f-=(u&&w===A&&A.visualViewport?A.visualViewport.width:w[L])-i.width,f*=l?1:-1}var T,C=Object.assign({position:a},c&&Bt),S=!0===d?function(e,t){var n=e.x,i=e.y,s=t.devicePixelRatio||1;return{x:Lt(n*s)/s||0,y:Lt(i*s)/s||0}}({x:f,y:g},mt(n)):{x:f,y:g};return f=S.x,g=S.y,l?Object.assign({},C,((T={})[y]=v?"0":"",T[b]=_?"0":"",T.transform=(A.devicePixelRatio||1)<=1?"translate("+f+"px, "+g+"px)":"translate3d("+f+"px, "+g+"px, 0)",T)):Object.assign({},C,((t={})[y]=v?g+"px":"",t[b]=_?f+"px":"",t.transform="",t))}const Wt={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,i=n.gpuAcceleration,s=void 0===i||i,o=n.adaptive,r=void 0===o||o,a=n.roundOffsets,l=void 0===a||a,c={placement:At(t.placement),variation:Ft(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:s,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,zt(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:r,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,zt(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}};var Vt={passive:!0};const Yt={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,i=e.options,s=i.scroll,o=void 0===s||s,r=i.resize,a=void 0===r||r,l=mt(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&c.forEach(function(e){e.addEventListener("scroll",n.update,Vt)}),a&&l.addEventListener("resize",n.update,Vt),function(){o&&c.forEach(function(e){e.removeEventListener("scroll",n.update,Vt)}),a&&l.removeEventListener("resize",n.update,Vt)}},data:{}};var Xt={left:"right",right:"left",bottom:"top",top:"bottom"};function Ut(e){return e.replace(/left|right|bottom|top/g,function(e){return Xt[e]})}var Kt={start:"end",end:"start"};function Qt(e){return e.replace(/start|end/g,function(e){return Kt[e]})}function Jt(e){var t=mt(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Gt(e){return St(It(e)).left+Jt(e).scrollLeft}function Zt(e){var t=kt(e),n=t.overflow,i=t.overflowX,s=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+s+i)}function en(e){return["html","body","#document"].indexOf(gt(e))>=0?e.ownerDocument.body:vt(e)&&Zt(e)?e:en(Nt(e))}function tn(e,t){var n;void 0===t&&(t=[]);var i=en(e),s=i===(null==(n=e.ownerDocument)?void 0:n.body),o=mt(i),r=s?[o].concat(o.visualViewport||[],Zt(i)?i:[]):i,a=t.concat(r);return s?a:a.concat(tn(Nt(r)))}function nn(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function sn(e,t,n){return t===et?nn(function(e,t){var n=mt(e),i=It(e),s=n.visualViewport,o=i.clientWidth,r=i.clientHeight,a=0,l=0;if(s){o=s.width,r=s.height;var c=Ct();(c||!c&&"fixed"===t)&&(a=s.offsetLeft,l=s.offsetTop)}return{width:o,height:r,x:a+Gt(e),y:l}}(e,n)):_t(t)?function(e,t){var n=St(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):nn(function(e){var t,n=It(e),i=Jt(e),s=null==(t=e.ownerDocument)?void 0:t.body,o=wt(n.scrollWidth,n.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),r=wt(n.scrollHeight,n.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0),a=-i.scrollLeft+Gt(e),l=-i.scrollTop;return"rtl"===kt(s||n).direction&&(a+=wt(n.clientWidth,s?s.clientWidth:0)-o),{width:o,height:r,x:a,y:l}}(It(e)))}function on(e,t,n,i){var s="clippingParents"===t?function(e){var t=tn(Nt(e)),n=["absolute","fixed"].indexOf(kt(e).position)>=0&&vt(e)?Pt(e):e;return _t(n)?t.filter(function(e){return _t(e)&&xt(e,n)&&"body"!==gt(e)}):[]}(e):[].concat(t),o=[].concat(s,[n]),r=o[0],a=o.reduce(function(t,n){var s=sn(e,n,i);return t.top=wt(s.top,t.top),t.right=Et(s.right,t.right),t.bottom=Et(s.bottom,t.bottom),t.left=wt(s.left,t.left),t},sn(e,r,i));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function rn(e){var t,n=e.reference,i=e.element,s=e.placement,o=s?At(s):null,r=s?Ft(s):null,a=n.x+n.width/2-i.width/2,l=n.y+n.height/2-i.height/2;switch(o){case Ve:t={x:a,y:n.y-i.height};break;case Ye:t={x:a,y:n.y+n.height};break;case Xe:t={x:n.x+n.width,y:l};break;case Ue:t={x:n.x-i.width,y:l};break;default:t={x:n.x,y:n.y}}var c=o?qt(o):null;if(null!=c){var d="y"===c?"height":"width";switch(r){case Je:t[c]=t[c]-(n[d]/2-i[d]/2);break;case Ge:t[c]=t[c]+(n[d]/2-i[d]/2)}}return t}function an(e,t){void 0===t&&(t={});var n=t,i=n.placement,s=void 0===i?e.placement:i,o=n.strategy,r=void 0===o?e.strategy:o,a=n.boundary,l=void 0===a?Ze:a,c=n.rootBoundary,d=void 0===c?et:c,u=n.elementContext,h=void 0===u?tt:u,f=n.altBoundary,p=void 0!==f&&f,g=n.padding,m=void 0===g?0:g,_=Rt("number"!=typeof m?m:Ht(m,Qe)),v=h===tt?nt:tt,b=e.rects.popper,y=e.elements[p?v:h],A=on(_t(y)?y:y.contextElement||It(e.elements.popper),l,d,r),w=St(e.elements.reference),E=rn({reference:w,element:b,placement:s}),L=nn(Object.assign({},b,E)),T=h===tt?L:w,C={top:A.top-T.top+_.top,bottom:T.bottom-A.bottom+_.bottom,left:A.left-T.left+_.left,right:T.right-A.right+_.right},S=e.modifiersData.offset;if(h===tt&&S){var O=S[s];Object.keys(C).forEach(function(e){var t=[Xe,Ye].indexOf(e)>=0?1:-1,n=[Ve,Ye].indexOf(e)>=0?"y":"x";C[e]+=O[n]*t})}return C}function ln(e,t){void 0===t&&(t={});var n=t,i=n.placement,s=n.boundary,o=n.rootBoundary,r=n.padding,a=n.flipVariations,l=n.allowedAutoPlacements,c=void 0===l?st:l,d=Ft(i),u=d?a?it:it.filter(function(e){return Ft(e)===d}):Qe,h=u.filter(function(e){return c.indexOf(e)>=0});0===h.length&&(h=u);var f=h.reduce(function(t,n){return t[n]=an(e,{placement:n,boundary:s,rootBoundary:o,padding:r})[At(n)],t},{});return Object.keys(f).sort(function(e,t){return f[e]-f[t]})}const cn={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,i=e.name;if(!t.modifiersData[i]._skip){for(var s=n.mainAxis,o=void 0===s||s,r=n.altAxis,a=void 0===r||r,l=n.fallbackPlacements,c=n.padding,d=n.boundary,u=n.rootBoundary,h=n.altBoundary,f=n.flipVariations,p=void 0===f||f,g=n.allowedAutoPlacements,m=t.options.placement,_=At(m),v=l||(_===m||!p?[Ut(m)]:function(e){if(At(e)===Ke)return[];var t=Ut(e);return[Qt(e),t,Qt(t)]}(m)),b=[m].concat(v).reduce(function(e,n){return e.concat(At(n)===Ke?ln(t,{placement:n,boundary:d,rootBoundary:u,padding:c,flipVariations:p,allowedAutoPlacements:g}):n)},[]),y=t.rects.reference,A=t.rects.popper,w=new Map,E=!0,L=b[0],T=0;T<b.length;T++){var C=b[T],S=At(C),O=Ft(C)===Je,x=[Ve,Ye].indexOf(S)>=0,k=x?"width":"height",D=an(t,{placement:C,boundary:d,rootBoundary:u,altBoundary:h,padding:c}),I=x?O?Xe:Ue:O?Ye:Ve;y[k]>A[k]&&(I=Ut(I));var N=Ut(I),$=[];if(o&&$.push(D[S]<=0),a&&$.push(D[I]<=0,D[N]<=0),$.every(function(e){return e})){L=C,E=!1;break}w.set(C,$)}if(E)for(var P=function(e){var t=b.find(function(t){var n=w.get(t);if(n)return n.slice(0,e).every(function(e){return e})});if(t)return L=t,"break"},q=p?3:1;q>0;q--){if("break"===P(q))break}t.placement!==L&&(t.modifiersData[i]._skip=!0,t.placement=L,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function dn(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function un(e){return[Ve,Xe,Ye,Ue].some(function(t){return e[t]>=0})}const hn={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,i=t.rects.reference,s=t.rects.popper,o=t.modifiersData.preventOverflow,r=an(t,{elementContext:"reference"}),a=an(t,{altBoundary:!0}),l=dn(r,i),c=dn(a,s,o),d=un(l),u=un(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:d,hasPopperEscaped:u},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":u})}};const fn={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,i=e.name,s=n.offset,o=void 0===s?[0,0]:s,r=st.reduce(function(e,n){return e[n]=function(e,t,n){var i=At(e),s=[Ue,Ve].indexOf(i)>=0?-1:1,o="function"==typeof n?n(Object.assign({},t,{placement:e})):n,r=o[0],a=o[1];return r=r||0,a=(a||0)*s,[Ue,Xe].indexOf(i)>=0?{x:a,y:r}:{x:r,y:a}}(n,t.rects,o),e},{}),a=r[t.placement],l=a.x,c=a.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[i]=r}};const pn={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=rn({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})},data:{}};const gn={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,i=e.name,s=n.mainAxis,o=void 0===s||s,r=n.altAxis,a=void 0!==r&&r,l=n.boundary,c=n.rootBoundary,d=n.altBoundary,u=n.padding,h=n.tether,f=void 0===h||h,p=n.tetherOffset,g=void 0===p?0:p,m=an(t,{boundary:l,rootBoundary:c,padding:u,altBoundary:d}),_=At(t.placement),v=Ft(t.placement),b=!v,y=qt(_),A="x"===y?"y":"x",w=t.modifiersData.popperOffsets,E=t.rects.reference,L=t.rects.popper,T="function"==typeof g?g(Object.assign({},t.rects,{placement:t.placement})):g,C="number"==typeof T?{mainAxis:T,altAxis:T}:Object.assign({mainAxis:0,altAxis:0},T),S=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,O={x:0,y:0};if(w){if(o){var x,k="y"===y?Ve:Ue,D="y"===y?Ye:Xe,I="y"===y?"height":"width",N=w[y],$=N+m[k],P=N-m[D],q=f?-L[I]/2:0,M=v===Je?E[I]:L[I],R=v===Je?-L[I]:-E[I],H=t.elements.arrow,j=f&&H?Ot(H):{width:0,height:0},F=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},B=F[k],z=F[D],W=Mt(0,E[I],j[I]),V=b?E[I]/2-q-W-B-C.mainAxis:M-W-B-C.mainAxis,Y=b?-E[I]/2+q+W+z+C.mainAxis:R+W+z+C.mainAxis,X=t.elements.arrow&&Pt(t.elements.arrow),U=X?"y"===y?X.clientTop||0:X.clientLeft||0:0,K=null!=(x=null==S?void 0:S[y])?x:0,Q=N+Y-K,J=Mt(f?Et($,N+V-K-U):$,N,f?wt(P,Q):P);w[y]=J,O[y]=J-N}if(a){var G,Z="x"===y?Ve:Ue,ee="x"===y?Ye:Xe,te=w[A],ne="y"===A?"height":"width",ie=te+m[Z],se=te-m[ee],oe=-1!==[Ve,Ue].indexOf(_),re=null!=(G=null==S?void 0:S[A])?G:0,ae=oe?ie:te-E[ne]-L[ne]-re+C.altAxis,le=oe?te+E[ne]+L[ne]-re-C.altAxis:se,ce=f&&oe?function(e,t,n){var i=Mt(e,t,n);return i>n?n:i}(ae,te,le):Mt(f?ae:ie,te,f?le:se);w[A]=ce,O[A]=ce-te}t.modifiersData[i]=O}},requiresIfExists:["offset"]};function mn(e,t,n){void 0===n&&(n=!1);var i,s,o=vt(t),r=vt(t)&&function(e){var t=e.getBoundingClientRect(),n=Lt(t.width)/e.offsetWidth||1,i=Lt(t.height)/e.offsetHeight||1;return 1!==n||1!==i}(t),a=It(t),l=St(e,r,n),c={scrollLeft:0,scrollTop:0},d={x:0,y:0};return(o||!o&&!n)&&(("body"!==gt(t)||Zt(a))&&(c=(i=t)!==mt(i)&&vt(i)?{scrollLeft:(s=i).scrollLeft,scrollTop:s.scrollTop}:Jt(i)),vt(t)?((d=St(t,!0)).x+=t.clientLeft,d.y+=t.clientTop):a&&(d.x=Gt(a))),{x:l.left+c.scrollLeft-d.x,y:l.top+c.scrollTop-d.y,width:l.width,height:l.height}}function _n(e){var t=new Map,n=new Set,i=[];function s(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach(function(e){if(!n.has(e)){var i=t.get(e);i&&s(i)}}),i.push(e)}return e.forEach(function(e){t.set(e.name,e)}),e.forEach(function(e){n.has(e.name)||s(e)}),i}var vn={placement:"bottom",modifiers:[],strategy:"absolute"};function bn(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(e){return!(e&&"function"==typeof e.getBoundingClientRect)})}function yn(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,i=void 0===n?[]:n,s=t.defaultOptions,o=void 0===s?vn:s;return function(e,t,n){void 0===n&&(n=o);var s,r,a={placement:"bottom",orderedModifiers:[],options:Object.assign({},vn,o),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},l=[],c=!1,d={state:a,setOptions:function(n){var s="function"==typeof n?n(a.options):n;u(),a.options=Object.assign({},o,a.options,s),a.scrollParents={reference:_t(e)?tn(e):e.contextElement?tn(e.contextElement):[],popper:tn(t)};var r,c,h=function(e){var t=_n(e);return pt.reduce(function(e,n){return e.concat(t.filter(function(e){return e.phase===n}))},[])}((r=[].concat(i,a.options.modifiers),c=r.reduce(function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e},{}),Object.keys(c).map(function(e){return c[e]})));return a.orderedModifiers=h.filter(function(e){return e.enabled}),a.orderedModifiers.forEach(function(e){var t=e.name,n=e.options,i=void 0===n?{}:n,s=e.effect;if("function"==typeof s){var o=s({state:a,name:t,instance:d,options:i}),r=function(){};l.push(o||r)}}),d.update()},forceUpdate:function(){if(!c){var e=a.elements,t=e.reference,n=e.popper;if(bn(t,n)){a.rects={reference:mn(t,Pt(n),"fixed"===a.options.strategy),popper:Ot(n)},a.reset=!1,a.placement=a.options.placement,a.orderedModifiers.forEach(function(e){return a.modifiersData[e.name]=Object.assign({},e.data)});for(var i=0;i<a.orderedModifiers.length;i++)if(!0!==a.reset){var s=a.orderedModifiers[i],o=s.fn,r=s.options,l=void 0===r?{}:r,u=s.name;"function"==typeof o&&(a=o({state:a,options:l,name:u,instance:d})||a)}else a.reset=!1,i=-1}}},update:(s=function(){return new Promise(function(e){d.forceUpdate(),e(a)})},function(){return r||(r=new Promise(function(e){Promise.resolve().then(function(){r=void 0,e(s())})})),r}),destroy:function(){u(),c=!0}};if(!bn(e,t))return d;function u(){l.forEach(function(e){return e()}),l=[]}return d.setOptions(n).then(function(e){!c&&n.onFirstUpdate&&n.onFirstUpdate(e)}),d}}var An=yn(),wn=yn({defaultModifiers:[Yt,pn,Wt,yt]}),En=yn({defaultModifiers:[Yt,pn,Wt,yt,fn,cn,gn,jt,hn]});const Ln=Object.freeze(Object.defineProperty({__proto__:null,afterMain:dt,afterRead:at,afterWrite:ft,applyStyles:yt,arrow:jt,auto:Ke,basePlacements:Qe,beforeMain:lt,beforeRead:ot,beforeWrite:ut,bottom:Ye,clippingParents:Ze,computeStyles:Wt,createPopper:En,createPopperBase:An,createPopperLite:wn,detectOverflow:an,end:Ge,eventListeners:Yt,flip:cn,hide:hn,left:Ue,main:ct,modifierPhases:pt,offset:fn,placements:st,popper:tt,popperGenerator:yn,popperOffsets:pn,preventOverflow:gn,read:rt,reference:nt,right:Xe,start:Je,top:Ve,variationPlacements:it,viewport:et,write:ht},Symbol.toStringTag,{value:"Module"})),Tn="dropdown",Cn=".bs.dropdown",Sn=".data-api",On="ArrowUp",xn="ArrowDown",kn=`hide${Cn}`,Dn=`hidden${Cn}`,In=`show${Cn}`,Nn=`shown${Cn}`,$n=`click${Cn}${Sn}`,Pn=`keydown${Cn}${Sn}`,qn=`keyup${Cn}${Sn}`,Mn="show",Rn='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',Hn=`${Rn}.${Mn}`,jn=".dropdown-menu",Fn=g()?"top-end":"top-start",Bn=g()?"top-start":"top-end",zn=g()?"bottom-end":"bottom-start",Wn=g()?"bottom-start":"bottom-end",Vn=g()?"left-start":"right-start",Yn=g()?"right-start":"left-start",Xn={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},Un={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class Kn extends F{constructor(e,t){super(e,t),this._popper=null,this._parent=this._element.parentNode,this._menu=z.next(this._element,jn)[0]||z.prev(this._element,jn)[0]||z.findOne(jn,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return Xn}static get DefaultType(){return Un}static get NAME(){return Tn}toggle(){return this._isShown()?this.hide():this.show()}show(){if(c(this._element)||this._isShown())return;const e={relatedTarget:this._element};if(!P.trigger(this._element,In,e).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(".navbar-nav"))for(const e of[].concat(...document.body.children))P.on(e,"mouseover",u);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(Mn),this._element.classList.add(Mn),P.trigger(this._element,Nn,e)}}hide(){if(c(this._element)||!this._isShown())return;const e={relatedTarget:this._element};this._completeHide(e)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(e){if(!P.trigger(this._element,kn,e).defaultPrevented){if("ontouchstart"in document.documentElement)for(const e of[].concat(...document.body.children))P.off(e,"mouseover",u);this._popper&&this._popper.destroy(),this._menu.classList.remove(Mn),this._element.classList.remove(Mn),this._element.setAttribute("aria-expanded","false"),H.removeDataAttribute(this._menu,"popper"),P.trigger(this._element,Dn,e)}}_getConfig(e){if("object"==typeof(e=super._getConfig(e)).reference&&!r(e.reference)&&"function"!=typeof e.reference.getBoundingClientRect)throw new TypeError(`${Tn.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return e}_createPopper(){if(void 0===Ln)throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org/docs/v2/)");let e=this._element;"parent"===this._config.reference?e=this._parent:r(this._config.reference)?e=a(this._config.reference):"object"==typeof this._config.reference&&(e=this._config.reference);const t=this._getPopperConfig();this._popper=En(e,this._menu,t)}_isShown(){return this._menu.classList.contains(Mn)}_getPlacement(){const e=this._parent;if(e.classList.contains("dropend"))return Vn;if(e.classList.contains("dropstart"))return Yn;if(e.classList.contains("dropup-center"))return"top";if(e.classList.contains("dropdown-center"))return"bottom";const t="end"===getComputedStyle(this._menu).getPropertyValue("--bs-position").trim();return e.classList.contains("dropup")?t?Bn:Fn:t?Wn:zn}_detectNavbar(){return null!==this._element.closest(".navbar")}_getOffset(){const{offset:e}=this._config;return"string"==typeof e?e.split(",").map(e=>Number.parseInt(e,10)):"function"==typeof e?t=>e(t,this._element):e}_getPopperConfig(){const e={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return(this._inNavbar||"static"===this._config.display)&&(H.setDataAttribute(this._menu,"popper","static"),e.modifiers=[{name:"applyStyles",enabled:!1}]),{...e,..._(this._config.popperConfig,[void 0,e])}}_selectMenuItem({key:e,target:t}){const n=z.find(".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",this._menu).filter(e=>l(e));n.length&&b(n,t,e===xn,!n.includes(t)).focus()}static jQueryInterface(e){return this.each(function(){const t=Kn.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method named "${e}"`);t[e]()}})}static clearMenus(e){if(2===e.button||"keyup"===e.type&&"Tab"!==e.key)return;const t=z.find(Hn);for(const n of t){const t=Kn.getInstance(n);if(!t||!1===t._config.autoClose)continue;const i=e.composedPath(),s=i.includes(t._menu);if(i.includes(t._element)||"inside"===t._config.autoClose&&!s||"outside"===t._config.autoClose&&s)continue;if(t._menu.contains(e.target)&&("keyup"===e.type&&"Tab"===e.key||/input|select|option|textarea|form/i.test(e.target.tagName)))continue;const o={relatedTarget:t._element};"click"===e.type&&(o.clickEvent=e),t._completeHide(o)}}static dataApiKeydownHandler(e){const t=/input|textarea/i.test(e.target.tagName),n="Escape"===e.key,i=[On,xn].includes(e.key);if(!i&&!n)return;if(t&&!n)return;e.preventDefault();const s=this.matches(Rn)?this:z.prev(this,Rn)[0]||z.next(this,Rn)[0]||z.findOne(Rn,e.delegateTarget.parentNode),o=Kn.getOrCreateInstance(s);if(i)return e.stopPropagation(),o.show(),void o._selectMenuItem(e);o._isShown()&&(e.stopPropagation(),o.hide(),s.focus())}}P.on(document,Pn,Rn,Kn.dataApiKeydownHandler),P.on(document,Pn,jn,Kn.dataApiKeydownHandler),P.on(document,$n,Kn.clearMenus),P.on(document,qn,Kn.clearMenus),P.on(document,$n,Rn,function(e){e.preventDefault(),Kn.getOrCreateInstance(this).toggle()}),m(Kn);const Qn="backdrop",Jn="show",Gn=`mousedown.bs.${Qn}`,Zn={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},ei={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class ti extends j{constructor(e){super(),this._config=this._getConfig(e),this._isAppended=!1,this._element=null}static get Default(){return Zn}static get DefaultType(){return ei}static get NAME(){return Qn}show(e){if(!this._config.isVisible)return void _(e);this._append();const t=this._getElement();this._config.isAnimated&&h(t),t.classList.add(Jn),this._emulateAnimation(()=>{_(e)})}hide(e){this._config.isVisible?(this._getElement().classList.remove(Jn),this._emulateAnimation(()=>{this.dispose(),_(e)})):_(e)}dispose(){this._isAppended&&(P.off(this._element,Gn),this._element.remove(),this._isAppended=!1)}_getElement(){if(!this._element){const e=document.createElement("div");e.className=this._config.className,this._config.isAnimated&&e.classList.add("fade"),this._element=e}return this._element}_configAfterMerge(e){return e.rootElement=a(e.rootElement),e}_append(){if(this._isAppended)return;const e=this._getElement();this._config.rootElement.append(e),P.on(e,Gn,()=>{_(this._config.clickCallback)}),this._isAppended=!0}_emulateAnimation(e){v(e,this._getElement(),this._config.isAnimated)}}const ni=".bs.focustrap",ii=`focusin${ni}`,si=`keydown.tab${ni}`,oi="backward",ri={autofocus:!0,trapElement:null},ai={autofocus:"boolean",trapElement:"element"};class li extends j{constructor(e){super(),this._config=this._getConfig(e),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return ri}static get DefaultType(){return ai}static get NAME(){return"focustrap"}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),P.off(document,ni),P.on(document,ii,e=>this._handleFocusin(e)),P.on(document,si,e=>this._handleKeydown(e)),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,P.off(document,ni))}_handleFocusin(e){const{trapElement:t}=this._config;if(e.target===document||e.target===t||t.contains(e.target))return;const n=z.focusableChildren(t);0===n.length?t.focus():this._lastTabNavDirection===oi?n[n.length-1].focus():n[0].focus()}_handleKeydown(e){"Tab"===e.key&&(this._lastTabNavDirection=e.shiftKey?oi:"forward")}}const ci=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",di=".sticky-top",ui="padding-right",hi="margin-right";class fi{constructor(){this._element=document.body}getWidth(){const e=document.documentElement.clientWidth;return Math.abs(window.innerWidth-e)}hide(){const e=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,ui,t=>t+e),this._setElementAttributes(ci,ui,t=>t+e),this._setElementAttributes(di,hi,t=>t-e)}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,ui),this._resetElementAttributes(ci,ui),this._resetElementAttributes(di,hi)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(e,t,n){const i=this.getWidth();this._applyManipulationCallback(e,e=>{if(e!==this._element&&window.innerWidth>e.clientWidth+i)return;this._saveInitialAttribute(e,t);const s=window.getComputedStyle(e).getPropertyValue(t);e.style.setProperty(t,`${n(Number.parseFloat(s))}px`)})}_saveInitialAttribute(e,t){const n=e.style.getPropertyValue(t);n&&H.setDataAttribute(e,t,n)}_resetElementAttributes(e,t){this._applyManipulationCallback(e,e=>{const n=H.getDataAttribute(e,t);null!==n?(H.removeDataAttribute(e,t),e.style.setProperty(t,n)):e.style.removeProperty(t)})}_applyManipulationCallback(e,t){if(r(e))t(e);else for(const n of z.find(e,this._element))t(n)}}const pi=".bs.modal",gi=`hide${pi}`,mi=`hidePrevented${pi}`,_i=`hidden${pi}`,vi=`show${pi}`,bi=`shown${pi}`,yi=`resize${pi}`,Ai=`click.dismiss${pi}`,wi=`mousedown.dismiss${pi}`,Ei=`keydown.dismiss${pi}`,Li=`click${pi}.data-api`,Ti="modal-open",Ci="show",Si="modal-static",Oi={backdrop:!0,focus:!0,keyboard:!0},xi={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class ki extends F{constructor(e,t){super(e,t),this._dialog=z.findOne(".modal-dialog",this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new fi,this._addEventListeners()}static get Default(){return Oi}static get DefaultType(){return xi}static get NAME(){return"modal"}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){if(this._isShown||this._isTransitioning)return;P.trigger(this._element,vi,{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(Ti),this._adjustDialog(),this._backdrop.show(()=>this._showElement(e)))}hide(){if(!this._isShown||this._isTransitioning)return;P.trigger(this._element,gi).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(Ci),this._queueCallback(()=>this._hideModal(),this._element,this._isAnimated()))}dispose(){P.off(window,pi),P.off(this._dialog,pi),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new ti({isVisible:Boolean(this._config.backdrop),isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new li({trapElement:this._element})}_showElement(e){document.body.contains(this._element)||document.body.append(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.scrollTop=0;const t=z.findOne(".modal-body",this._dialog);t&&(t.scrollTop=0),h(this._element),this._element.classList.add(Ci);this._queueCallback(()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,P.trigger(this._element,bi,{relatedTarget:e})},this._dialog,this._isAnimated())}_addEventListeners(){P.on(this._element,Ei,e=>{"Escape"===e.key&&(this._config.keyboard?this.hide():this._triggerBackdropTransition())}),P.on(window,yi,()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()}),P.on(this._element,wi,e=>{P.one(this._element,Ai,t=>{this._element===e.target&&this._element===t.target&&("static"!==this._config.backdrop?this._config.backdrop&&this.hide():this._triggerBackdropTransition())})})}_hideModal(){this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._backdrop.hide(()=>{document.body.classList.remove(Ti),this._resetAdjustments(),this._scrollBar.reset(),P.trigger(this._element,_i)})}_isAnimated(){return this._element.classList.contains("fade")}_triggerBackdropTransition(){if(P.trigger(this._element,mi).defaultPrevented)return;const e=this._element.scrollHeight>document.documentElement.clientHeight,t=this._element.style.overflowY;"hidden"===t||this._element.classList.contains(Si)||(e||(this._element.style.overflowY="hidden"),this._element.classList.add(Si),this._queueCallback(()=>{this._element.classList.remove(Si),this._queueCallback(()=>{this._element.style.overflowY=t},this._dialog)},this._dialog),this._element.focus())}_adjustDialog(){const e=this._element.scrollHeight>document.documentElement.clientHeight,t=this._scrollBar.getWidth(),n=t>0;if(n&&!e){const e=g()?"paddingLeft":"paddingRight";this._element.style[e]=`${t}px`}if(!n&&e){const e=g()?"paddingRight":"paddingLeft";this._element.style[e]=`${t}px`}}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(e,t){return this.each(function(){const n=ki.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===n[e])throw new TypeError(`No method named "${e}"`);n[e](t)}})}}P.on(document,Li,'[data-bs-toggle="modal"]',function(e){const t=z.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&e.preventDefault(),P.one(t,vi,e=>{e.defaultPrevented||P.one(t,_i,()=>{l(this)&&this.focus()})});const n=z.findOne(".modal.show");n&&ki.getInstance(n).hide();ki.getOrCreateInstance(t).toggle(this)}),W(ki),m(ki);const Di=".bs.offcanvas",Ii=".data-api",Ni=`load${Di}${Ii}`,$i="show",Pi="showing",qi="hiding",Mi=".offcanvas.show",Ri=`show${Di}`,Hi=`shown${Di}`,ji=`hide${Di}`,Fi=`hidePrevented${Di}`,Bi=`hidden${Di}`,zi=`resize${Di}`,Wi=`click${Di}${Ii}`,Vi=`keydown.dismiss${Di}`,Yi={backdrop:!0,keyboard:!0,scroll:!1},Xi={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};class Ui extends F{constructor(e,t){super(e,t),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return Yi}static get DefaultType(){return Xi}static get NAME(){return"offcanvas"}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){if(this._isShown)return;if(P.trigger(this._element,Ri,{relatedTarget:e}).defaultPrevented)return;this._isShown=!0,this._backdrop.show(),this._config.scroll||(new fi).hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(Pi);this._queueCallback(()=>{this._config.scroll&&!this._config.backdrop||this._focustrap.activate(),this._element.classList.add($i),this._element.classList.remove(Pi),P.trigger(this._element,Hi,{relatedTarget:e})},this._element,!0)}hide(){if(!this._isShown)return;if(P.trigger(this._element,ji).defaultPrevented)return;this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(qi),this._backdrop.hide();this._queueCallback(()=>{this._element.classList.remove($i,qi),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||(new fi).reset(),P.trigger(this._element,Bi)},this._element,!0)}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){const e=Boolean(this._config.backdrop);return new ti({className:"offcanvas-backdrop",isVisible:e,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:e?()=>{"static"!==this._config.backdrop?this.hide():P.trigger(this._element,Fi)}:null})}_initializeFocusTrap(){return new li({trapElement:this._element})}_addEventListeners(){P.on(this._element,Vi,e=>{"Escape"===e.key&&(this._config.keyboard?this.hide():P.trigger(this._element,Fi))})}static jQueryInterface(e){return this.each(function(){const t=Ui.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method named "${e}"`);t[e](this)}})}}P.on(document,Wi,'[data-bs-toggle="offcanvas"]',function(e){const t=z.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&e.preventDefault(),c(this))return;P.one(t,Bi,()=>{l(this)&&this.focus()});const n=z.findOne(Mi);n&&n!==t&&Ui.getInstance(n).hide();Ui.getOrCreateInstance(t).toggle(this)}),P.on(window,Ni,()=>{for(const e of z.find(Mi))Ui.getOrCreateInstance(e).show()}),P.on(window,zi,()=>{for(const e of z.find("[aria-modal][class*=show][class*=offcanvas-]"))"fixed"!==getComputedStyle(e).position&&Ui.getOrCreateInstance(e).hide()}),W(Ui),m(Ui);const Ki={"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],dd:[],div:[],dl:[],dt:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},Qi=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),Ji=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,Gi=(e,t)=>{const n=e.nodeName.toLowerCase();return t.includes(n)?!Qi.has(n)||Boolean(Ji.test(e.nodeValue)):t.filter(e=>e instanceof RegExp).some(e=>e.test(n))};const Zi={allowList:Ki,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"<div></div>"},es={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},ts={entry:"(string|element|function|null)",selector:"(string|element)"};class ns extends j{constructor(e){super(),this._config=this._getConfig(e)}static get Default(){return Zi}static get DefaultType(){return es}static get NAME(){return"TemplateFactory"}getContent(){return Object.values(this._config.content).map(e=>this._resolvePossibleFunction(e)).filter(Boolean)}hasContent(){return this.getContent().length>0}changeContent(e){return this._checkContent(e),this._config.content={...this._config.content,...e},this}toHtml(){const e=document.createElement("div");e.innerHTML=this._maybeSanitize(this._config.template);for(const[t,n]of Object.entries(this._config.content))this._setContent(e,n,t);const t=e.children[0],n=this._resolvePossibleFunction(this._config.extraClass);return n&&t.classList.add(...n.split(" ")),t}_typeCheckConfig(e){super._typeCheckConfig(e),this._checkContent(e.content)}_checkContent(e){for(const[t,n]of Object.entries(e))super._typeCheckConfig({selector:t,entry:n},ts)}_setContent(e,t,n){const i=z.findOne(n,e);i&&((t=this._resolvePossibleFunction(t))?r(t)?this._putElementInTemplate(a(t),i):this._config.html?i.innerHTML=this._maybeSanitize(t):i.textContent=t:i.remove())}_maybeSanitize(e){return this._config.sanitize?function(e,t,n){if(!e.length)return e;if(n&&"function"==typeof n)return n(e);const i=(new window.DOMParser).parseFromString(e,"text/html"),s=[].concat(...i.body.querySelectorAll("*"));for(const e of s){const n=e.nodeName.toLowerCase();if(!Object.keys(t).includes(n)){e.remove();continue}const i=[].concat(...e.attributes),s=[].concat(t["*"]||[],t[n]||[]);for(const t of i)Gi(t,s)||e.removeAttribute(t.nodeName)}return i.body.innerHTML}(e,this._config.allowList,this._config.sanitizeFn):e}_resolvePossibleFunction(e){return _(e,[void 0,this])}_putElementInTemplate(e,t){if(this._config.html)return t.innerHTML="",void t.append(e);t.textContent=e.textContent}}const is=new Set(["sanitize","allowList","sanitizeFn"]),ss="fade",os="show",rs=".tooltip-inner",as=".modal",ls="hide.bs.modal",cs="hover",ds="focus",us="click",hs={AUTO:"auto",TOP:"top",RIGHT:g()?"left":"right",BOTTOM:"bottom",LEFT:g()?"right":"left"},fs={allowList:Ki,animation:!0,boundary:"clippingParents",container:!1,customClass:"",delay:0,fallbackPlacements:["top","right","bottom","left"],html:!1,offset:[0,6],placement:"top",popperConfig:null,sanitize:!0,sanitizeFn:null,selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',title:"",trigger:"hover focus"},ps={allowList:"object",animation:"boolean",boundary:"(string|element)",container:"(string|element|boolean)",customClass:"(string|function)",delay:"(number|object)",fallbackPlacements:"array",html:"boolean",offset:"(array|string|function)",placement:"(string|function)",popperConfig:"(null|object|function)",sanitize:"boolean",sanitizeFn:"(null|function)",selector:"(string|boolean)",template:"string",title:"(string|element|function)",trigger:"string"};class gs extends F{constructor(e,t){if(void 0===Ln)throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org/docs/v2/)");super(e,t),this._isEnabled=!0,this._timeout=0,this._isHovered=null,this._activeTrigger={},this._popper=null,this._templateFactory=null,this._newContent=null,this.tip=null,this._setListeners(),this._config.selector||this._fixTitle()}static get Default(){return fs}static get DefaultType(){return ps}static get NAME(){return"tooltip"}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){this._isEnabled&&(this._isShown()?this._leave():this._enter())}dispose(){clearTimeout(this._timeout),P.off(this._element.closest(as),ls,this._hideModalHandler),this._element.getAttribute("data-bs-original-title")&&this._element.setAttribute("title",this._element.getAttribute("data-bs-original-title")),this._disposePopper(),super.dispose()}show(){if("none"===this._element.style.display)throw new Error("Please use show on visible elements");if(!this._isWithContent()||!this._isEnabled)return;const e=P.trigger(this._element,this.constructor.eventName("show")),t=(d(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(e.defaultPrevented||!t)return;this._disposePopper();const n=this._getTipElement();this._element.setAttribute("aria-describedby",n.getAttribute("id"));const{container:i}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(i.append(n),P.trigger(this._element,this.constructor.eventName("inserted"))),this._popper=this._createPopper(n),n.classList.add(os),"ontouchstart"in document.documentElement)for(const e of[].concat(...document.body.children))P.on(e,"mouseover",u);this._queueCallback(()=>{P.trigger(this._element,this.constructor.eventName("shown")),!1===this._isHovered&&this._leave(),this._isHovered=!1},this.tip,this._isAnimated())}hide(){if(!this._isShown())return;if(P.trigger(this._element,this.constructor.eventName("hide")).defaultPrevented)return;if(this._getTipElement().classList.remove(os),"ontouchstart"in document.documentElement)for(const e of[].concat(...document.body.children))P.off(e,"mouseover",u);this._activeTrigger[us]=!1,this._activeTrigger[ds]=!1,this._activeTrigger[cs]=!1,this._isHovered=null;this._queueCallback(()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),P.trigger(this._element,this.constructor.eventName("hidden")))},this.tip,this._isAnimated())}update(){this._popper&&this._popper.update()}_isWithContent(){return Boolean(this._getTitle())}_getTipElement(){return this.tip||(this.tip=this._createTipElement(this._newContent||this._getContentForTemplate())),this.tip}_createTipElement(e){const t=this._getTemplateFactory(e).toHtml();if(!t)return null;t.classList.remove(ss,os),t.classList.add(`bs-${this.constructor.NAME}-auto`);const n=(e=>{do{e+=Math.floor(1e6*Math.random())}while(document.getElementById(e));return e})(this.constructor.NAME).toString();return t.setAttribute("id",n),this._isAnimated()&&t.classList.add(ss),t}setContent(e){this._newContent=e,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(e){return this._templateFactory?this._templateFactory.changeContent(e):this._templateFactory=new ns({...this._config,content:e,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{[rs]:this._getTitle()}}_getTitle(){return this._resolvePossibleFunction(this._config.title)||this._element.getAttribute("data-bs-original-title")}_initializeOnDelegatedTarget(e){return this.constructor.getOrCreateInstance(e.delegateTarget,this._getDelegateConfig())}_isAnimated(){return this._config.animation||this.tip&&this.tip.classList.contains(ss)}_isShown(){return this.tip&&this.tip.classList.contains(os)}_createPopper(e){const t=_(this._config.placement,[this,e,this._element]),n=hs[t.toUpperCase()];return En(this._element,e,this._getPopperConfig(n))}_getOffset(){const{offset:e}=this._config;return"string"==typeof e?e.split(",").map(e=>Number.parseInt(e,10)):"function"==typeof e?t=>e(t,this._element):e}_resolvePossibleFunction(e){return _(e,[this._element,this._element])}_getPopperConfig(e){const t={placement:e,modifiers:[{name:"flip",options:{fallbackPlacements:this._config.fallbackPlacements}},{name:"offset",options:{offset:this._getOffset()}},{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"arrow",options:{element:`.${this.constructor.NAME}-arrow`}},{name:"preSetPlacement",enabled:!0,phase:"beforeMain",fn:e=>{this._getTipElement().setAttribute("data-popper-placement",e.state.placement)}}]};return{...t,..._(this._config.popperConfig,[void 0,t])}}_setListeners(){const e=this._config.trigger.split(" ");for(const t of e)if("click"===t)P.on(this._element,this.constructor.eventName("click"),this._config.selector,e=>{const t=this._initializeOnDelegatedTarget(e);t._activeTrigger[us]=!(t._isShown()&&t._activeTrigger[us]),t.toggle()});else if("manual"!==t){const e=t===cs?this.constructor.eventName("mouseenter"):this.constructor.eventName("focusin"),n=t===cs?this.constructor.eventName("mouseleave"):this.constructor.eventName("focusout");P.on(this._element,e,this._config.selector,e=>{const t=this._initializeOnDelegatedTarget(e);t._activeTrigger["focusin"===e.type?ds:cs]=!0,t._enter()}),P.on(this._element,n,this._config.selector,e=>{const t=this._initializeOnDelegatedTarget(e);t._activeTrigger["focusout"===e.type?ds:cs]=t._element.contains(e.relatedTarget),t._leave()})}this._hideModalHandler=()=>{this._element&&this.hide()},P.on(this._element.closest(as),ls,this._hideModalHandler)}_fixTitle(){const e=this._element.getAttribute("title");e&&(this._element.getAttribute("aria-label")||this._element.textContent.trim()||this._element.setAttribute("aria-label",e),this._element.setAttribute("data-bs-original-title",e),this._element.removeAttribute("title"))}_enter(){this._isShown()||this._isHovered?this._isHovered=!0:(this._isHovered=!0,this._setTimeout(()=>{this._isHovered&&this.show()},this._config.delay.show))}_leave(){this._isWithActiveTrigger()||(this._isHovered=!1,this._setTimeout(()=>{this._isHovered||this.hide()},this._config.delay.hide))}_setTimeout(e,t){clearTimeout(this._timeout),this._timeout=setTimeout(e,t)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(e){const t=H.getDataAttributes(this._element);for(const e of Object.keys(t))is.has(e)&&delete t[e];return e={...t,..."object"==typeof e&&e?e:{}},e=this._mergeConfigObj(e),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}_configAfterMerge(e){return e.container=!1===e.container?document.body:a(e.container),"number"==typeof e.delay&&(e.delay={show:e.delay,hide:e.delay}),"number"==typeof e.title&&(e.title=e.title.toString()),"number"==typeof e.content&&(e.content=e.content.toString()),e}_getDelegateConfig(){const e={};for(const[t,n]of Object.entries(this._config))this.constructor.Default[t]!==n&&(e[t]=n);return e.selector=!1,e.trigger="manual",e}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null),this.tip&&(this.tip.remove(),this.tip=null)}static jQueryInterface(e){return this.each(function(){const t=gs.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method named "${e}"`);t[e]()}})}}m(gs);const ms=".popover-header",_s=".popover-body",vs={...gs.Default,content:"",offset:[0,8],placement:"right",template:'<div class="popover" role="tooltip"><div class="popover-arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>',trigger:"click"},bs={...gs.DefaultType,content:"(null|string|element|function)"};class ys extends gs{static get Default(){return vs}static get DefaultType(){return bs}static get NAME(){return"popover"}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{[ms]:this._getTitle(),[_s]:this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(e){return this.each(function(){const t=ys.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method named "${e}"`);t[e]()}})}}m(ys);const As=".bs.scrollspy",ws=`activate${As}`,Es=`click${As}`,Ls=`load${As}.data-api`,Ts="active",Cs="[href]",Ss=".nav-link",Os=`${Ss}, .nav-item > ${Ss}, .list-group-item`,xs={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},ks={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};class Ds extends F{constructor(e,t){super(e,t),this._targetLinks=new Map,this._observableSections=new Map,this._rootElement="visible"===getComputedStyle(this._element).overflowY?null:this._element,this._activeTarget=null,this._observer=null,this._previousScrollData={visibleEntryTop:0,parentScrollTop:0},this.refresh()}static get Default(){return xs}static get DefaultType(){return ks}static get NAME(){return"scrollspy"}refresh(){this._initializeTargetsAndObservables(),this._maybeEnableSmoothScroll(),this._observer?this._observer.disconnect():this._observer=this._getNewObserver();for(const e of this._observableSections.values())this._observer.observe(e)}dispose(){this._observer.disconnect(),super.dispose()}_configAfterMerge(e){return e.target=a(e.target)||document.body,e.rootMargin=e.offset?`${e.offset}px 0px -30%`:e.rootMargin,"string"==typeof e.threshold&&(e.threshold=e.threshold.split(",").map(e=>Number.parseFloat(e))),e}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(P.off(this._config.target,Es),P.on(this._config.target,Es,Cs,e=>{const t=this._observableSections.get(e.target.hash);if(t){e.preventDefault();const n=this._rootElement||window,i=t.offsetTop-this._element.offsetTop;if(n.scrollTo)return void n.scrollTo({top:i,behavior:"smooth"});n.scrollTop=i}}))}_getNewObserver(){const e={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver(e=>this._observerCallback(e),e)}_observerCallback(e){const t=e=>this._targetLinks.get(`#${e.target.id}`),n=e=>{this._previousScrollData.visibleEntryTop=e.target.offsetTop,this._process(t(e))},i=(this._rootElement||document.documentElement).scrollTop,s=i>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=i;for(const o of e){if(!o.isIntersecting){this._activeTarget=null,this._clearActiveClass(t(o));continue}const e=o.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(s&&e){if(n(o),!i)return}else s||e||n(o)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;const e=z.find(Cs,this._config.target);for(const t of e){if(!t.hash||c(t))continue;const e=z.findOne(decodeURI(t.hash),this._element);l(e)&&(this._targetLinks.set(decodeURI(t.hash),t),this._observableSections.set(t.hash,e))}}_process(e){this._activeTarget!==e&&(this._clearActiveClass(this._config.target),this._activeTarget=e,e.classList.add(Ts),this._activateParents(e),P.trigger(this._element,ws,{relatedTarget:e}))}_activateParents(e){if(e.classList.contains("dropdown-item"))z.findOne(".dropdown-toggle",e.closest(".dropdown")).classList.add(Ts);else for(const t of z.parents(e,".nav, .list-group"))for(const e of z.prev(t,Os))e.classList.add(Ts)}_clearActiveClass(e){e.classList.remove(Ts);const t=z.find(`${Cs}.${Ts}`,e);for(const e of t)e.classList.remove(Ts)}static jQueryInterface(e){return this.each(function(){const t=Ds.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method named "${e}"`);t[e]()}})}}P.on(window,Ls,()=>{for(const e of z.find('[data-bs-spy="scroll"]'))Ds.getOrCreateInstance(e)}),m(Ds);const Is=".bs.tab",Ns=`hide${Is}`,$s=`hidden${Is}`,Ps=`show${Is}`,qs=`shown${Is}`,Ms=`click${Is}`,Rs=`keydown${Is}`,Hs=`load${Is}`,js="ArrowLeft",Fs="ArrowRight",Bs="ArrowUp",zs="ArrowDown",Ws="Home",Vs="End",Ys="active",Xs="fade",Us="show",Ks=".dropdown-toggle",Qs=`:not(${Ks})`,Js='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',Gs=`${`.nav-link${Qs}, .list-group-item${Qs}, [role="tab"]${Qs}`}, ${Js}`,Zs=`.${Ys}[data-bs-toggle="tab"], .${Ys}[data-bs-toggle="pill"], .${Ys}[data-bs-toggle="list"]`;class eo extends F{constructor(e){super(e),this._parent=this._element.closest('.list-group, .nav, [role="tablist"]'),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),P.on(this._element,Rs,e=>this._keydown(e)))}static get NAME(){return"tab"}show(){const e=this._element;if(this._elemIsActive(e))return;const t=this._getActiveElem(),n=t?P.trigger(t,Ns,{relatedTarget:e}):null;P.trigger(e,Ps,{relatedTarget:t}).defaultPrevented||n&&n.defaultPrevented||(this._deactivate(t,e),this._activate(e,t))}_activate(e,t){if(!e)return;e.classList.add(Ys),this._activate(z.getElementFromSelector(e));this._queueCallback(()=>{"tab"===e.getAttribute("role")?(e.removeAttribute("tabindex"),e.setAttribute("aria-selected",!0),this._toggleDropDown(e,!0),P.trigger(e,qs,{relatedTarget:t})):e.classList.add(Us)},e,e.classList.contains(Xs))}_deactivate(e,t){if(!e)return;e.classList.remove(Ys),e.blur(),this._deactivate(z.getElementFromSelector(e));this._queueCallback(()=>{"tab"===e.getAttribute("role")?(e.setAttribute("aria-selected",!1),e.setAttribute("tabindex","-1"),this._toggleDropDown(e,!1),P.trigger(e,$s,{relatedTarget:t})):e.classList.remove(Us)},e,e.classList.contains(Xs))}_keydown(e){if(![js,Fs,Bs,zs,Ws,Vs].includes(e.key))return;e.stopPropagation(),e.preventDefault();const t=this._getChildren().filter(e=>!c(e));let n;if([Ws,Vs].includes(e.key))n=t[e.key===Ws?0:t.length-1];else{const i=[Fs,zs].includes(e.key);n=b(t,e.target,i,!0)}n&&(n.focus({preventScroll:!0}),eo.getOrCreateInstance(n).show())}_getChildren(){return z.find(Gs,this._parent)}_getActiveElem(){return this._getChildren().find(e=>this._elemIsActive(e))||null}_setInitialAttributes(e,t){this._setAttributeIfNotExists(e,"role","tablist");for(const e of t)this._setInitialAttributesOnChild(e)}_setInitialAttributesOnChild(e){e=this._getInnerElement(e);const t=this._elemIsActive(e),n=this._getOuterElement(e);e.setAttribute("aria-selected",t),n!==e&&this._setAttributeIfNotExists(n,"role","presentation"),t||e.setAttribute("tabindex","-1"),this._setAttributeIfNotExists(e,"role","tab"),this._setInitialAttributesOnTargetPanel(e)}_setInitialAttributesOnTargetPanel(e){const t=z.getElementFromSelector(e);t&&(this._setAttributeIfNotExists(t,"role","tabpanel"),e.id&&this._setAttributeIfNotExists(t,"aria-labelledby",`${e.id}`))}_toggleDropDown(e,t){const n=this._getOuterElement(e);if(!n.classList.contains("dropdown"))return;const i=(e,i)=>{const s=z.findOne(e,n);s&&s.classList.toggle(i,t)};i(Ks,Ys),i(".dropdown-menu",Us),n.setAttribute("aria-expanded",t)}_setAttributeIfNotExists(e,t,n){e.hasAttribute(t)||e.setAttribute(t,n)}_elemIsActive(e){return e.classList.contains(Ys)}_getInnerElement(e){return e.matches(Gs)?e:z.findOne(Gs,e)}_getOuterElement(e){return e.closest(".nav-item, .list-group-item")||e}static jQueryInterface(e){return this.each(function(){const t=eo.getOrCreateInstance(this);if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method named "${e}"`);t[e]()}})}}P.on(document,Ms,Js,function(e){["A","AREA"].includes(this.tagName)&&e.preventDefault(),c(this)||eo.getOrCreateInstance(this).show()}),P.on(window,Hs,()=>{for(const e of z.find(Zs))eo.getOrCreateInstance(e)}),m(eo);const to=".bs.toast",no=`mouseover${to}`,io=`mouseout${to}`,so=`focusin${to}`,oo=`focusout${to}`,ro=`hide${to}`,ao=`hidden${to}`,lo=`show${to}`,co=`shown${to}`,uo="hide",ho="show",fo="showing",po={animation:"boolean",autohide:"boolean",delay:"number"},go={animation:!0,autohide:!0,delay:5e3};class mo extends F{constructor(e,t){super(e,t),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return go}static get DefaultType(){return po}static get NAME(){return"toast"}show(){if(P.trigger(this._element,lo).defaultPrevented)return;this._clearTimeout(),this._config.animation&&this._element.classList.add("fade");this._element.classList.remove(uo),h(this._element),this._element.classList.add(ho,fo),this._queueCallback(()=>{this._element.classList.remove(fo),P.trigger(this._element,co),this._maybeScheduleHide()},this._element,this._config.animation)}hide(){if(!this.isShown())return;if(P.trigger(this._element,ro).defaultPrevented)return;this._element.classList.add(fo),this._queueCallback(()=>{this._element.classList.add(uo),this._element.classList.remove(fo,ho),P.trigger(this._element,ao)},this._element,this._config.animation)}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(ho),super.dispose()}isShown(){return this._element.classList.contains(ho)}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout(()=>{this.hide()},this._config.delay)))}_onInteraction(e,t){switch(e.type){case"mouseover":case"mouseout":this._hasMouseInteraction=t;break;case"focusin":case"focusout":this._hasKeyboardInteraction=t}if(t)return void this._clearTimeout();const n=e.relatedTarget;this._element===n||this._element.contains(n)||this._maybeScheduleHide()}_setListeners(){P.on(this._element,no,e=>this._onInteraction(e,!0)),P.on(this._element,io,e=>this._onInteraction(e,!1)),P.on(this._element,so,e=>this._onInteraction(e,!0)),P.on(this._element,oo,e=>this._onInteraction(e,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(e){return this.each(function(){const t=mo.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method named "${e}"`);t[e](this)}})}}W(mo),m(mo);return{Alert:U,Button:Q,Carousel:ke,Collapse:We,Dropdown:Kn,Modal:ki,Offcanvas:Ui,Popover:ys,ScrollSpy:Ds,Tab:eo,Toast:mo,Tooltip:gs}}),window.addEventListener("load",()=>{const e=document.documentElement,t=document.querySelectorAll("header .alert"),n=document.querySelector(".utility-header"),i=document.querySelector("header");if(!n||!i)return;let s,o,r=0,a=0,l=!1;const c=()=>{if(o=window.scrollY||e.scrollTop,o>s?r=2:o<s&&(r=1),r!==a)if(2===r&&o>40){let e=0;t.forEach(t=>{e+=t.clientHeight});const s=n.clientHeight+e;i.style.top=`-${s}px`,a=r}else 1===r&&o<40&&(i.style.removeProperty("top"),a=r);s=o,l=!1};window.addEventListener("scroll",()=>{l||(requestAnimationFrame(c),l=!0)})}),window.addEventListener("load",()=>{class e extends HTMLElement{connectedCallback(){this.summaryEl=this.querySelector("summary"),this.setHeight(),this.summaryEl.addEventListener("click",this.listen.bind(this)),this.summaryEl.insertAdjacentHTML("beforeend",'<div class="cagov-open-indicator" aria-hidden="true" />'),this.detailsEl=this.querySelector("details"),this.bodyEl=this.querySelector(".accordion-body"),window.addEventListener("resize",this.debounce(this.setHeight).bind(this))}setHeight(){window.requestAnimationFrame(()=>{this.closedHeightInt=this.summaryEl.scrollHeight+2,this.closedHeight=`${this.closedHeightInt}px`,this.detailsEl.hasAttribute("open")?this.detailsEl.style.height=`${this.bodyEl.scrollHeight+this.closedHeightInt}px`:this.detailsEl.style.height=this.closedHeight})}listen(){this.detailsEl.hasAttribute("open")?this.detailsEl.style.height=this.closedHeight:window.requestAnimationFrame(()=>{this.detailsEl.style.height=`${this.bodyEl.scrollHeight+this.closedHeightInt}px`})}debounce(e,t=300){let n;return(...i)=>{window.clearTimeout(n),n=window.setTimeout(()=>{e.apply(this,i)},t)}}}window.customElements.define("cagov-accordion",e)}),window.addEventListener("load",()=>{const e=window,t=document,n={};e.ARIAaccordion=n,n.NS="ARIAaccordion",n.AUTHOR="Scott O'Hara",n.VERSION="3.2.1",n.LICENSE="https://github.com/scottaohara/accessible_accordions/blob/master/LICENSE";const i="accordion",s=`${i}__trigger`,o=`${i}__heading`,r=`${i}__panel`,a="[data-aria-accordion-heading]",l="[data-aria-accordion-panel]";let c=0;const d=e=>t.querySelectorAll(`#${e}> li`).length?`#${e} li > `:`#${e} > `;n.create=()=>{let e="none";const o=t.querySelectorAll("[data-aria-accordion]");c+=1;for(let u=0;u<o.length;u++){const h=o[u];h.hasAttribute("id")||(h.id=`acc_${c}-${u}`),h.classList.add(i);const f=d(h.id),p=t.querySelectorAll(`${f}${l}`),g=t.querySelectorAll(`${f}${a}`);h.hasAttribute("data-default")&&(e=h.getAttribute("data-default"));const m=h.hasAttribute("data-constant");if(h.hasAttribute("data-transition")){const e=h.querySelectorAll(l);for(let t=0;t<e.length;t++)e[t].classList.add(`${r}--transition`)}n.setupPanels(h.id,p,e,m),n.setupHeadingButton(g,m);const _=t.querySelectorAll(`${f}${a} .${s}`);for(let e=0;e<_.length;e++)_[e].addEventListener("click",n.actions),_[e].addEventListener("keydown",n.keytrolls)}},n.setupPanels=function(e,t,n,i){for(let s=0;s<t.length;s++){const o=t[s],a=`${e}_panel_${s+1}`,l=n,c=i;if(o.setAttribute("id",a),u(t[0],!0),o.classList.add(r),"none"!==l&&!Number.isNaN(parseInt(l))){const e=parseInt(l);e<=1?u(t[0],!1):e-1>=t.length?u(t[t.length-1],!1):u(t[e-1],!1)}c&&("none"===l||Number.isNaN(parseInt(l)))&&u(t[0],!1)}},n.setupHeadingButton=function(e,n){for(let i=0;i<e.length;i++){const r=e[i],a=r.nextElementSibling.id,l=t.getElementById(a).getAttribute("aria-hidden"),c=t.createElement("button"),d=r.textContent;r.innerHTML="",r.classList.add(o),c.type="button",c.setAttribute("aria-controls",a),c.id=`${a}_trigger`,c.classList.add(s),"false"===l?(h(c,!0),p(c,!0),n&&c.setAttribute("aria-disabled","true")):(h(c,!1),p(c,!1)),r.appendChild(c),c.appendChild(t.createTextNode(d))}},n.actions=function(e){const i=this.id.replace(/_panel.*$/g,""),o=t.getElementById(this.getAttribute("aria-controls")),r=d(i),l=t.querySelectorAll(`${r}${a} .${s}`);e.preventDefault(),n.togglePanel(e,i,o,l)},n.togglePanel=function(e,n,i,s){const o=e.target;if("true"!==o.getAttribute("aria-disabled")&&(p(o,!0),"true"===o.getAttribute("aria-expanded")?(h(o,!1),u(i,!0)):(h(o,!0),u(i,!1),t.getElementById(n).hasAttribute("data-constant")&&f(o,!0)),t.getElementById(n).hasAttribute("data-constant")||!t.getElementById(n).hasAttribute("data-multi")))for(const e of s)if(o!==e){p(e,!1);const n=e.getAttribute("aria-controls");f(e,!1),h(e,!1),u(t.getElementById(n),!0)}},n.keytrolls=function(e){if(e.target.classList.contains(s)){const n=e.keyCode||e.which,i=36,o=35,r=this.id.replace(/_panel.*$/g,""),l=d(r),c=t.querySelectorAll(`${l}${a} .${s}`);switch(n){case o:e.preventDefault(),c[c.length-1].focus();break;case i:e.preventDefault(),c[0].focus()}}},n.init=function(){n.create()};const u=function(e,t){e.setAttribute("aria-hidden",t.toString())},h=function(e,t){e.setAttribute("aria-expanded",t.toString())},f=function(e,t){e.setAttribute("aria-disabled",t.toString())},p=function(e,t){e.setAttribute("data-current",t.toString())};n.init()}),(()=>{const e=()=>"0"===getComputedStyle(document.documentElement).getPropertyValue("--is-mobile").trim(),t=(e,t,n)=>(t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e),n="data-nav-id",i=(()=>{const e={};return{set:(t,n)=>{e[t]=n},get:t=>e[t],remove:t=>e[t]}})(),s=(e,t)=>document.querySelector(`#${e}[${n}="${t}"]`),o=(e,t)=>{Object.keys(t).forEach(n=>{e.setAttribute(n,t[n])})},r=(...s)=>{const r=s.length<=0||void 0===s[0]?{}:s[0],a="first-level-btn";document.querySelectorAll(".main-navigation .sub-nav").forEach(e=>{e.parentElement.querySelector("a").className=a});let l={ACCORDION_JS:"main-navigation",ACCORDION_JS_HEADER:a,ACCORDION_JS_PANEL:"nav-panel",ACCORDION_DATA_PREFIX_CLASS:"data-nav-prefix-classes",ACCORDION_DATA_OPENED:"data-nav-opened",ACCORDION_DATA_MULTISELECTABLE:"data-nav-multiselectable",ACCORDION_DATA_COOL_SELECTORS:!0,ACCORDION_PREFIX_IDS:"nav",ACCORDION_BUTTON_ID:"_tab",ACCORDION_PANEL_ID:"_panel",ACCORDION_STYLE:"nav",ACCORDION_TITLE_STYLE:"has-sub-btn",ACCORDION_HEADER_STYLE:"nav-header",ACCORDION_PANEL_STYLE:"sub-nav",ACCORDION_ROLE_TABLIST:"tablist",ACCORDION_ROLE_TAB:"tab",ACCORDION_ROLE_TABPANEL:"tabpanel",ATTR_ROLE:"role",ATTR_MULTISELECTABLE:"data-multiselectable",ATTR_EXPANDED:"aria-expanded",ATTR_LABELLEDBY:"aria-labelledby",ATTR_HIDDEN:"aria-hidden",ATTR_CONTROLS:"aria-controls",ATTR_SELECTED:"aria-selected"};l=Object.assign(l,r);const c=Math.random().toString(32).slice(2,12);i.set(c,l);return{attach:(...i)=>{(e=>{const t=e.length<=0?document.documentElement:e[0];return[].slice.call(t.querySelectorAll(`.${l.ACCORDION_JS}`))})(i).forEach(i=>{const s=`z${Math.random().toString(32).slice(2,12)}`,r=i.hasAttribute(l.ACCORDION_DATA_PREFIX_CLASS)?`${i.getAttribute(l.ACCORDION_DATA_PREFIX_CLASS)}-`:"",a=l.ACCORDION_DATA_COOL_SELECTORS,d="first-level-btn";i.setAttribute(l.ATTR_MULTISELECTABLE,e()?"false":"true"),i.setAttribute(n,c),i.classList.add(r+l.ACCORDION_STYLE);[].slice.call(i.querySelectorAll(`.${d}`)).forEach((e,u)=>{let h,f;if(e.parentNode!==i&&!a)return;const p=u+1,g=e.nextElementSibling;if(!g)return;const m=e.innerHTML,_=document.createElement("BUTTON"),v=e.hasAttribute(l.ACCORDION_DATA_OPENED)?e.getAttribute(l.ACCORDION_DATA_OPENED):"";_.innerHTML=m,_.classList.add(d,r+l.ACCORDION_HEADER_STYLE),o(_,(h={},t(h,"id",l.ACCORDION_PREFIX_IDS+s+l.ACCORDION_BUTTON_ID+p),t(h,l.ATTR_CONTROLS,l.ACCORDION_PREFIX_IDS+s+l.ACCORDION_PANEL_ID+p),t(h,n,c),h)),e.innerHTML="",e.appendChild(_),e.classList.add(r+l.ACCORDION_TITLE_STYLE),e.classList.remove(d),g.classList.add(r+l.ACCORDION_PANEL_STYLE),o(g,(f={},t(f,l.ATTR_ROLE,l.ACCORDION_ROLE_TABPANEL),t(f,l.ATTR_LABELLEDBY,l.ACCORDION_PREFIX_IDS+s+l.ACCORDION_BUTTON_ID+p),t(f,"id",l.ACCORDION_PREFIX_IDS+s+l.ACCORDION_PANEL_ID+p),t(f,n,c),f)),"true"===v?(_.setAttribute(l.ATTR_EXPANDED,"true"),e.removeAttribute(l.ACCORDION_DATA_OPENED),g.setAttribute(l.ATTR_HIDDEN,"false"),g.querySelectorAll(".second-level-link").forEach(e=>{e.removeAttribute("tabindex")})):(_.setAttribute(l.ATTR_EXPANDED,"false"),g.setAttribute(l.ATTR_HIDDEN,"true"),g.querySelectorAll(".second-level-link").forEach(e=>{e.tabIndex=-1}))})})}}},a=function(){return["click","keydown","focus"].forEach(t=>{document.body.addEventListener(t,o=>{const r=((e,t)=>{let n=e;for(;n;){if(n.hasAttribute(t))return n.getAttribute(t);n=n.parentElement}return""})(o.target,n);""!==r&&(()=>{const a=i.get(r);o.target.classList.contains("first-level-btn")&&"click"===t&&(()=>{const t=o.target,i=s(((e,t,i)=>{let s=e;for(;s;){if(s.classList.contains(t)&&s.getAttribute(n)===i)return s.getAttribute("id");s=s.parentElement}return""})(t,a.ACCORDION_JS,r),r),l=!0===a.ACCORDION_DATA_COOL_SELECTORS;let c=[].slice.call(i.querySelectorAll(".first-level-btn"));const d=s(t.getAttribute(a.ATTR_CONTROLS),r),u=t.getAttribute(a.ATTR_EXPANDED);l||(c=c.filter(e=>e.parentNode.parentNode===i)),"false"===u?(t.setAttribute(a.ATTR_EXPANDED,"true"),d.removeAttribute(a.ATTR_HIDDEN),d.classList.add("open"),d.querySelectorAll(".second-level-link").forEach(e=>e.removeAttribute("tabindex"))):(t.setAttribute(a.ATTR_EXPANDED,"false"),d.setAttribute(a.ATTR_HIDDEN,"true"),d.classList.remove("open"),d.querySelectorAll(".second-level-link").forEach(e=>e.tabIndex=-1)),e()&&c.forEach(e=>{const n=s(e.getAttribute(a.ATTR_CONTROLS),r);e!==t&&(e.setAttribute(a.ATTR_EXPANDED,"false"),n.classList.remove("open"),n.querySelectorAll(".second-level-link").forEach(e=>e.tabIndex=-1))}),setTimeout(()=>{t.focus()},0),o.stopPropagation(),o.preventDefault()})()})()},!0)}),r},l=()=>{document.querySelectorAll(".first-level-btn").forEach(e=>e.ariaExpanded="false"),document.querySelectorAll(".sub-nav").forEach(e=>{e.ariaHidden="true",e.classList.remove("open")}),document.querySelectorAll(".second-level-link").forEach(e=>e.tabIndex=-1),document.querySelectorAll(".rotate").forEach(t=>t.style.display=e()?"none":"block")};window.addEventListener("load",()=>{a()().attach();const t=document.querySelector(".main-navigation");if(!t)return;document.querySelectorAll(".main-navigation .nav-item a.has-sub-btn").forEach(e=>{const t=document.createElement("div");t.innerHTML=e.innerHTML,t.classList.add("has-sub-btn"),e.replaceWith(t)});const n=t.classList.contains("auto-highlight"),i=document.querySelectorAll(".main-navigation .nav-item"),s=[].slice.call(i).filter(e=>e.querySelector(".sub-nav"));i.forEach(e=>{const t=e.querySelector(".first-level-btn, .first-level-link");if(t&&n&&t.getAttribute("href")){const n=t.getAttribute("href")?.split("/"),i=location.href.split("/");n&&n.length>4&&i[3]===n[3]&&e.classList.add("active")}}),document.addEventListener("mouseup",e=>{const t=document.querySelector(".main-navigation");t===e.target||t?.contains(e.target)||l()}),s.forEach(e=>{if(e.querySelectorAll(".second-level-nav > li").length<=2){const t=e.querySelector(".sub-nav");t&&t.classList.add("with-few-items")}}),t.classList.contains("singleLevel")||document.querySelectorAll(".first-level-btn").forEach(t=>{t.classList.add("has-sub");const n=document.createElement("span");n.classList.add("carrot"),n.ariaHidden="true";const i=document.createElement("div");i.classList.add("rotate"),i.ariaHidden="true",i.style.display=e()?"none":"block",t.appendChild(i),t.appendChild(n)}),c()}),document.addEventListener("keyup",e=>{"Escape"===e.key&&l()});const c=()=>{const e=document.querySelectorAll(".second-level-link"),t=e.length,n=location.href.split("#")[0];for(let i=0;i<t;i++)e[i].href.split("#")[0]==n&&(e[i].className+=" bold")}})(),window.addEventListener("load",()=>{const e=()=>"0"===getComputedStyle(document.documentElement).getPropertyValue("--is-mobile").trim(),t=()=>{a&&(l?(a.removeAttribute("aria-hidden"),document.querySelector("[name='q']")?.removeAttribute("tabindex"),document.querySelector(".gsc-search-button")?.removeAttribute("tabindex")):a.setAttribute("aria-hidden","true"))},n=()=>{document.body.classList.remove("active-search"),i&&(i.value=""),a?.classList.remove("active"),a?.setAttribute("aria-hidden","true"),document.querySelector(".search-results-container")?.classList.remove("visible"),document.querySelectorAll(".ask-group").forEach(e=>e.classList.remove("fade-out")),l||(document.querySelector("button.first-level-link")?.setAttribute("aria-expanded","false"),g()),window.dispatchEvent(new CustomEvent("scroll")),e()||t()},i=document.querySelector(".search-textfield"),s=document.querySelector("#head-search #Search .search-textfield"),o=document.querySelector("#head-search #Search .gsc-search-button"),r=document.querySelector("#head-search #Search .close-search"),a=document.querySelector("#head-search"),l=a?.classList.contains("featured-search"),c=a?.classList.contains("active"),d=document.querySelector("#SearchInput"),u=document.querySelector(".search-container:not(.featured-search)");if(i&&a){const e=()=>{a.classList.remove("focus"),document.querySelector(".search-container")?.classList.add("focus")};i.addEventListener("blur",e,!1),i.addEventListener("focus",e,!1);const t=function(){this.value&&document.body.classList.add("active-search")};i.addEventListener("change",t,!1),i.addEventListener("keyup",t,!1),i.addEventListener("paste",t,!1)}l||document.querySelector("button.first-level-link")?.setAttribute("aria-expanded","false");const h=()=>{u&&e()&&(u.style.top=`${Math.max((()=>{const e=document.querySelector(".global-header"),t=document.querySelector(".utility-header"),n=document.querySelectorAll(".alert-banner");return(e?.offsetHeight||0)-(t?.offsetHeight||0)-Array.from(n).reduce((e,t)=>e+(t.offsetHeight||0),0)-(document.querySelector(".navigation-search")?.classList.contains("full-width-nav")?82:0)})(),55)}px`)};document.querySelector(".search-results-container .close")?.addEventListener("click",n,!1),document.querySelector("#head-search .close")?.addEventListener("click",n,!1);const f=document.querySelector("#nav-item-search");f&&i&&f.addEventListener("click",function(e){e.preventDefault(),i.focus(),!l&&u&&u.classList.toggle("active"),c?(this.querySelector("button")?.setAttribute("aria-expanded","true"),p()):(this.querySelector("button")?.setAttribute("aria-expanded","false"),g()),l&&p(),a&&(a.classList.add("play-animation"),a.addEventListener("animationend",()=>{this.classList.remove("play-animation")}))},!1),r?.addEventListener("click",n);const p=()=>{s?.removeAttribute("tabindex"),s?.removeAttribute("aria-hidden"),o?.removeAttribute("tabindex"),o?.removeAttribute("aria-hidden"),r?.removeAttribute("tabindex"),r?.removeAttribute("aria-hidden"),d?.removeAttribute("aria-hidden"),a?.removeAttribute("aria-hidden")},g=()=>{s?.setAttribute("tabindex","-1"),s?.setAttribute("aria-hidden","true"),o?.setAttribute("tabindex","-1"),o?.setAttribute("aria-hidden","true"),r?.setAttribute("tabindex","-1"),r?.setAttribute("aria-hidden","true"),d?.setAttribute("aria-hidden","true"),a?.setAttribute("aria-hidden","true")};a&&(a.classList.contains("featured-search")?p():g()),document.querySelectorAll(".alert-banner .close").forEach(e=>{e.addEventListener("click",h)}),(a||u)&&window.addEventListener("resize",()=>{h(),t()}),t()}),(()=>{const e={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"},t=t=>t.replace(/[&<>"'/]/g,t=>e[t]);function n(e){const t=e.previousElementSibling;if(t){if("pre"==t.tagName.toLowerCase()){const e=t.querySelector("code")?.innerText;e&&navigator.clipboard.writeText(e)}else navigator.clipboard.writeText(t.value);const n=document.createRange();n.selectNode(t),window.getSelection()?.removeAllRanges(),window.getSelection()?.addRange(n),e.innerHTML='<span class="ca-gov-icon-check-mark"></span> Code copied'}}window.addEventListener("load",()=>{const e=document.querySelectorAll("pre code, textarea.sourcecode");for(let i=0,s=e.length;i<s;i++){const s=e[i];if("code"==s.tagName.toLowerCase()){let e=s.innerHTML;e=t(e),s.innerHTML=e}const o=document.createElement("button");o.type="button",o.onclick=function(){n(this)},o.classList.add("btn","btn-outline-primary"),o.innerHTML="<span class='ca-gov-icon-copy'></span> Copy code","code"==s.tagName.toLowerCase()?s.parentElement?.after(o):s.after(o)}})})(),window.addEventListener("load",()=>{document.querySelectorAll(".tabs").forEach(e=>{const t=e.querySelector("ul");if(!t)return;const n=t.querySelectorAll("a"),i=e.querySelectorAll('[id^="section"]'),s=(e,t)=>{t.focus(),t.removeAttribute("tabindex"),t.setAttribute("aria-selected","true"),e.removeAttribute("aria-selected"),e.setAttribute("tabindex","-1");const s=Array.prototype.indexOf.call(n,t),o=Array.prototype.indexOf.call(n,e);i[o].hidden=!0,i[s].hidden=!1};t.setAttribute("role","tablist"),n.forEach((e,o)=>{e.setAttribute("role","tab"),e.setAttribute("tabindex","-1"),e.parentNode.setAttribute("role","presentation"),e.addEventListener("click",e=>{e.preventDefault();const n=t.querySelector("[aria-selected]");n&&e.currentTarget!==n&&s(n,e.currentTarget)}),e.addEventListener("keydown",e=>{const t=Array.prototype.indexOf.call(n,e.currentTarget),r=["ArrowLeft","Left"].includes(e.key)?t-1:["ArrowRight","Right"].includes(e.key)?t+1:["ArrowDown","Down"].includes(e.key)?"down":null;null!==r&&(e.preventDefault(),"down"===r?i[o].focus():n[r]&&s(e.currentTarget,n[r]))})}),i.forEach((e,t)=>{e.setAttribute("role","tabpanel"),e.setAttribute("tabindex","-1"),e.setAttribute("aria-label",n[t].innerText),e.hidden=!0}),n[0].removeAttribute("tabindex"),n[0].setAttribute("aria-selected","true"),i[0].hidden=!1})}),document.addEventListener("DOMContentLoaded",()=>{const e=document.querySelectorAll(".scroll-counter");e.forEach(e=>{e.counterAlreadyFired=!1;const t=Number(e.getAttribute("data-counter-time")),n=+e.textContent;e.updateCounter=()=>{const i=performance.now(),s=o=>{const r=o-i,a=Math.min(r/t,1),l=Math.ceil(a*n);e.textContent=l.toLocaleString(),a<1&&requestAnimationFrame(s)};requestAnimationFrame(s)}});const t=()=>{e.forEach(e=>{e.counterAlreadyFired||(e=>{const t=e.getBoundingClientRect();return t.top<window.innerHeight&&t.bottom>0})(e)&&(e.updateCounter(),e.counterAlreadyFired=!0)})};window.addEventListener("load",t),window.addEventListener("scroll",()=>{requestAnimationFrame(t)})}),window.addEventListener("load",()=>{document.querySelectorAll(".return-top").forEach(e=>e.addEventListener("click",()=>{document.body.scrollTop=0,document.documentElement.scrollTop=0})),document.querySelectorAll("a[href='#skip-to-content']").forEach(t=>t.addEventListener("click",e));const e=e=>{e.preventDefault(),document.body.scrollTop=0,document.documentElement.scrollTop=0};let t=0,n=0;window.addEventListener("scroll",()=>{const e=document.querySelector(".return-top");if(!e)return;const i=window.pageYOffset||document.documentElement.scrollTop;i>n?e.classList.remove("is-visible"):document.body.scrollTop>=400||document.documentElement.scrollTop>=400?(t&&window.clearTimeout(t),e.classList.add("is-visible"),t=window.setTimeout(()=>{e.classList.remove("is-visible")},2e3)):e.classList.remove("is-visible"),n=i<=0?0:i},!1),window.addEventListener("scroll",()=>{const e=document.querySelector(".return-top");e&&window.innerHeight+window.scrollY>=document.body.offsetHeight&&e.classList.add("is-visible")})}),window.addEventListener("load",()=>{const e=document.querySelector("header"),t=document.querySelector(".side-navigation");if(!t||!e)return;const n=t.querySelectorAll(".side-navigation a"),i=t.closest("div");t.id="side-navigation";const s=localStorage.getItem("sidebar-scroll"),o=document.querySelector(".global-header .mobile-controls");if(!o)return;let r=window.getComputedStyle(o).display;const a=e?e.clientHeight:0;let l=0;let c,d,u;const h=()=>{d&&d.append(t),t.ariaHidden="true",n?.forEach(e=>{e.tabIndex=-1})},f=()=>{c.classList.toggle("visible"),c.classList.contains("visible")?(t.removeAttribute("aria-hidden"),u.ariaExpanded="true",n?.forEach(e=>{e.removeAttribute("tabindex")})):(u.ariaExpanded="false",t.ariaHidden="true",n?.forEach(e=>{e.tabIndex=-1}))};const p=()=>{if("none"===getComputedStyle(o).display){const e=document.documentElement.clientHeight-a-100;e<=(document.querySelector(".side-navigation")?.clientHeight||0)?t.classList.add("overflow-auto"):(t.classList.remove("overflow-auto"),t.removeAttribute("style")),[...t.classList].includes("overflow-auto")&&t.setAttribute("style",`max-height:${e}px`)}else t.classList.remove("overflow-auto"),t.removeAttribute("style");null!==s&&(t.scrollTop=parseInt(s,10)),window.addEventListener("beforeunload",()=>{localStorage.setItem("sidebar-scroll",t.scrollTop.toString())})};!function(){const e=document.querySelectorAll("a.nav-heading"),t=e.length,n=location.href.split("#")[0];for(let i=0;i<t;i++)e[i].href.split("#")[0]==n&&(e[i].className+=" active")}(),c=document.createElement("aside"),c.className="mobile-sidenav",d=document.createElement("div"),d.className="container",c.append(d),e.after(c),(()=>{const t=document.querySelector(".side-navigation a, .sidenav");if(t){let n=t.innerText;const i=t.querySelector("span")?.innerText||"";n=n.replace(i,"").trim();const s=document.createElement("aside");s.className="sidenav-mobile-btn";const o=document.createElement("div");o.className="container",s.append(o),u=document.createElement("button"),u.type="button",u.className="sidenav-toggle",u.ariaExpanded="false",u.setAttribute("aria-controls","side-navigation"),u.innerText=n;const r=document.createElement("span");r.ariaHidden="true",r.className="ca-gov-icon-caret-down",u.append(r),o.append(u),e.after(s),u.addEventListener("click",f)}})(),"block"==r&&h(),window.addEventListener("resize",()=>{r=getComputedStyle(o).display,window.clearTimeout(l),l=window.setTimeout(p,250),"block"==r?h():t!==i&&(i?.append(t),t.removeAttribute("aria-hidden"),n?.forEach(e=>{e.removeAttribute("tabindex")}))}),p()}),window.addEventListener("load",()=>{const e=":not(code *):not(.cagov-logo)";document.querySelectorAll(`main a${e}, .agency-footer a${e}, .site-footer a${e}, footer a${e}`).forEach(e=>{const t=0===e.href.indexOf("#"),n=e.href.indexOf("localhost")>-1,i=e.href.indexOf("@")>-1,s=e;!1!==function(e){return window.location.host.indexOf(e.host)>-1}(s)||t||i||n||(s.innerHTML+='<span class="external-link-icon" aria-hidden="true"></span><span class="sr-only">(external link)</span>')})}),window.addEventListener("load",()=>{const e=document.querySelectorAll("h2"),t=document.querySelector("h2"),n=document.querySelector(".page-navigation");if(n&&0===n.childNodes.length&&t){const t=document.createElement("ul");e.forEach(n=>{const i=n.innerHTML,s=n.innerHTML.replace(/\s+/g,"-");n.setAttribute("id",s);const o=`<a href="#${s}">${i}</a>`,r=document.createElement("li");r.innerHTML=o,t.appendChild(r);const a=e.length;a>8?t.classList.add("columns-3"):a>5&&t.classList.add("columns-2")});const i='<div id="on-this-page-navigation-label" class="label" lang="en-US">On this page</div>';n.innerHTML=i,n.appendChild(t),n.setAttribute("aria-labelledby","on-this-page-navigation-label")}const i=window.location;i.hash&&setTimeout(()=>{const e=i.hash;i.hash+="_",i.hash=e},500)}),window.addEventListener("load",()=>{function e(e,t){return`<li class="cagov-pagination__item">\n <a\n href="javascript:void(0);"\n class="cagov-pagination__button"\n aria-label="${e} ${t}"\n data-page-num="${t}"\n >\n ${t}\n </a>\n </li>`}class t extends HTMLElement{constructor(){if(super(),!document.querySelector("#cagov-pagination-styles")){const e=document.createElement("style");e.id="cagov-pagination-styles",e.textContent="\ncagov-pagination {\n white-space: nowrap;\n font-size: .9rem;\n}\ncagov-pagination a {\n text-decoration: none !important;\n}\ncagov-pagination .cagov-pagination__list {\n list-style: none;\n margin: 0;\n padding: 0 !important;\n display: flex;\n overflow-x: scroll;\n}\ncagov-pagination .cagov-pagination__item {\n margin: var(--s-sm, 0.25rem);\n}\ncagov-pagination .cagov-pagination__item a {\n padding: 6px 14px;\n display: inline-block;\n color: #4a4958;\n}\ncagov-pagination .cagov-pagination__item a:hover, cagov-pagination .cagov-pagination__item a:focus {\n box-shadow: inset 0 0 0 3px #d4d4d7;\n}\ncagov-pagination .cagov-pagination__item.cagov-pagination-current {\n font-weight:700;\n}\ncagov-pagination .cagov-pagination__item.cagov-pagination-current a {\n box-shadow: inset 0 0 0 1px #d4d4d7;\n}\ncagov-pagination .cagov-pagination__item.cagov-pagination__overflow {\n border: none;\n padding: 0.875rem 0;\n}\ncagov-pagination .cagov-pagination__item:has(.cagov-pagination__link-inactive) {\n display:none;\n}\n.ca-gov-icon-arrow-prev, .ca-gov-icon-arrow-next {\n font-size: 0.86em;\n}\n",document.head.appendChild(e)}}connectedCallback(){this.currentPage=parseInt(this.dataset.currentPage?this.dataset.currentPage:"1",10),this.render()}render(){const t=this.dataset.previous?this.dataset.previous:'<span class="ca-gov-icon-arrow-prev" aria-hidden="true"></span> Previous',n=this.dataset.next?this.dataset.next:'Next <span class="ca-gov-icon-arrow-next" aria-hidden="true"></span>',i=this.dataset.page?this.dataset.page:"Page";if(this.totalPages=this.dataset.totalPages?Number(this.dataset.totalPages):1,this.totalPages<0||this.totalPages>1){const s=function(t,n,i,s,o){const r=-1==o;return`<nav aria-label="Pagination" class="cagov-pagination">\n <ul class="cagov-pagination__list">\n <li class="cagov-pagination__item">\n <a\n href="javascript:void(0);"\n class="cagov-pagination__link cagov-pagination__previous-page"\n aria-label="previous page"\n >\n <span class="cagov-pagination__link-text ${s>1?"":"cagov-pagination__link-inactive"}"> ${n} </span>\n </a>\n </li>\n ${s>2?e(i,1):""}\n\n ${4==s?e(i,2):""}\n ${s>4?'<li\n class="cagov-pagination__item cagov-pagination__overflow"\n role="presentation"\n >\n <span> … </span>\n </li>':""}\n\n ${s>1?e(i,s-1):""}\n\n <li class="cagov-pagination__item cagov-pagination-current">\n <a\n href="javascript:void(0);"\n class="cagov-pagination__button"\n aria-label="Page ${s}"\n aria-current="page"\n data-page-num="${s}"\n >\n ${s}\n </a>\n </li>\n\n ${r||s<o?e(i,s+1):""}\n\n ${!r&&s<o-2?'<li\n class="cagov-pagination__item cagov-pagination__overflow"\n role="presentation"\n >\n <span> … </span>\n </li>':""}\n ${r?e(i,s+2):""}\n\n ${s<o-1?e(i,o):""}\n ${r?'<li\n class="cagov-pagination__item cagov-pagination__overflow"\n role="presentation"\n >\n <span> … </span>\n </li>':""}\n\n <li class="cagov-pagination__item">\n <a\n href="javascript:void(0);"\n class="cagov-pagination__link cagov-pagination__next-page"\n aria-label="next page"\n >\n <span class="cagov-pagination__link-text ${!r&&s>o-1?"cagov-pagination__link-inactive":""}"> ${t} </span>\n </a>\n </li>\n </ul>\n </nav>`}(n,t,i,this.currentPage,this.totalPages);this.innerHTML=s,this.applyListeners()}else this.innerHTML=""}static get observedAttributes(){return["data-current-page","data-total-pages"]}attributeChangedCallback(e,t,n){"data-current-page"===e&&(this.currentPage=parseInt(n,10),this.render()),"data-total-pages"===e&&(this.totalPages=parseInt(n,10),this.render())}applyListeners(){this.querySelectorAll(".cagov-pagination__button").forEach(e=>{e.addEventListener("click",e=>{this.currentPage=parseInt(e.target.dataset.pageNum,10),this.dispatchEvent(new CustomEvent("paginationClick",{detail:this.currentPage})),this.dataset.currentPage=this.currentPage.toString()})}),this.querySelector(".cagov-pagination__previous-page").addEventListener("click",e=>{e.target.classList.contains("cagov-pagination__link-inactive")||(this.currentPage-=1,this.currentPage<1&&(this.currentPage=1),this.dispatchEvent(new CustomEvent("paginationClick",{detail:this.currentPage})),this.dataset.currentPage=this.currentPage.toString())}),this.querySelector(".cagov-pagination__next-page").addEventListener("click",e=>{e.target.classList.contains("cagov-pagination__link-inactive")||(this.currentPage+=1,-1!=this.totalPages&&this.currentPage>this.totalPages&&(this.currentPage=this.totalPages),this.dispatchEvent(new CustomEvent("paginationClick",{detail:this.currentPage})),this.dataset.currentPage=this.currentPage.toString())})}}window.customElements.define("cagov-pagination",t)}),window.addEventListener("load",()=>{const e=document.querySelector(".toggle-menu");if(!e)return;const t=document.querySelector(".navigation-search");if(!t)return;const n=document.querySelector(".main-navigation"),i=document.createElement("div");i.className="nav-drawer";const s=document.createElement("button");s.type="button",s.classList.add("mobile-control","toggle-menu"),s.ariaExpanded="false",s.setAttribute("aria-controls","navigation"),s.tabIndex=-1;const o=[0,1,2,3,4].map(()=>document.createElement("span"));o[4].classList.add("sr-only"),o[4].innerText="Menu",s.append(...o),i.append(s);const r=document.querySelectorAll(".main-content, footer, .site-footer, .utility-header, .branding"),a=document.querySelector("header"),l=()=>"0"===getComputedStyle(document.documentElement).getPropertyValue("--is-mobile").trim(),c=()=>{document.querySelectorAll(".first-level-btn").forEach(e=>e.ariaExpanded="false"),document.querySelectorAll(".sub-nav").forEach(e=>{e.ariaHidden="true",e.classList.remove("open")}),document.querySelectorAll(".second-level-link").forEach(e=>e.tabIndex=-1),document.querySelectorAll(".rotate").forEach(e=>e.style.display=l()?"none":"block");const e=l()?null:"true";t.ariaHidden!=e&&(t.ariaHidden=e)},d=()=>t.querySelectorAll('a.first-level-link, button.first-level-btn, input, button, [tabindex]:not([tabindex="-1"])'),u=()=>t.querySelectorAll("a.first-level-link, button.first-level-btn"),h=()=>{t.classList.contains("visible")&&(t.classList.remove("visible"),e.focus()),t.classList.add("not-visible"),"false"!==e.ariaExpanded&&(e.ariaExpanded="false"),"false"!==s.ariaExpanded&&(s.ariaExpanded="false"),n&&document.body.classList.remove("overflow-hidden"),d().forEach(e=>e.tabIndex=-1),r.forEach(e=>e.ariaHidden=null),a?.classList.remove("nav-overlay"),c()},f=()=>{const e=document.querySelector(".search-textfield");e&&(e.addEventListener("focus",()=>{e.classList.add("is-in-focus")}),e.addEventListener("blur",()=>{setTimeout(()=>{e.classList.remove("is-in-focus")},500)}),e.classList.contains("is-in-focus")||(c(),l()?u().forEach(e=>e.removeAttribute("tabindex")):(u().forEach(e=>e.tabIndex=-1),h())))};document.addEventListener("keydown",e=>{"Escape"===e.key&&t.classList.contains("visible")&&(e.stopPropagation(),h())}),t.addEventListener("focusout",e=>{if(!l()){const t=e.relatedTarget,n=e.currentTarget;t&&!n.contains(t)&&h()}}),e.addEventListener("click",()=>{t.classList.add("visible"),t.classList.remove("not-visible"),document.body.classList.add("overflow-hidden"),e.ariaExpanded="true",s.ariaExpanded="true",t.ariaHidden=null,d().forEach(e=>e.removeAttribute("tabindex")),l()&&"false"!==e.ariaExpanded&&(e.ariaExpanded="false"),r.forEach(e=>e.ariaHidden="true"),a?.classList.add("nav-overlay"),s.focus()}),s.addEventListener("click",h),a.addEventListener("mouseup",e=>{l()||t===e.target||t?.contains(e.target)||h()}),window.addEventListener("resize",f),document.querySelector(".navigation-search")?.prepend(i),f()}),window.addEventListener("DOMContentLoaded",()=>{const e=document.querySelector("link[rel='stylesheet'][href*='cagov.core.']");function t(){e&&(e.removeAttribute("integrity"),e.href=e.href.replace(/cagov\.core(\.min)?\.css/,"cagov.core.flat.css"),console.log(`POLYFILL: Using new CSS file - ${e.href}`))}CSS.supports("selector(&)")||(console.log("POLYFILL: Nested CSS is not supported"),t()),(void 0===window.matchMedia&&void 0===window.msMatchMedia||!window.matchMedia("(width >= 0px)").matches)&&(console.log("POLYFILL: Media query range notation (<, <=, >, >=) is not supported."),t())});
|