favesalon-embed 0.1.0 → 1.0.1

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.
Files changed (127) hide show
  1. package/dist/cjs/chat-button.cjs.entry.js +118 -0
  2. package/dist/cjs/favesalon-embed.cjs.js +7 -3
  3. package/dist/cjs/google-map_5.cjs.entry.js +26 -7
  4. package/dist/cjs/{index-e6bea8f5.js → index-47c2a5f6.js} +512 -208
  5. package/dist/cjs/loader.cjs.js +4 -3
  6. package/dist/cjs/relativeTime-3721080d.js +9 -0
  7. package/dist/cjs/salon-booking-modal.cjs.entry.js +3 -2
  8. package/dist/cjs/salon-booking.cjs.entry.js +3 -2
  9. package/dist/cjs/salon-gift-card-modal.cjs.entry.js +3 -2
  10. package/dist/cjs/salon-gift-card.cjs.entry.js +3 -2
  11. package/dist/cjs/salon-latest-reviews.cjs.entry.js +5 -3
  12. package/dist/cjs/salon-lookbook.cjs.entry.js +7 -3
  13. package/dist/cjs/salon-ranking.cjs.entry.js +3 -2
  14. package/dist/cjs/salon-reviews.cjs.entry.js +10 -3
  15. package/dist/cjs/salon-services.cjs.entry.js +6 -3
  16. package/dist/cjs/salon-stylists.cjs.entry.js +9 -3
  17. package/dist/cjs/services-125c82d8.js +21492 -0
  18. package/dist/cjs/style-detail.cjs.entry.js +11 -9
  19. package/dist/cjs/user-avatar.cjs.entry.js +7 -3
  20. package/dist/collection/collection-manifest.json +3 -2
  21. package/dist/collection/components/chat-button/index.css +122 -0
  22. package/dist/collection/components/chat-button/index.js +218 -0
  23. package/dist/collection/components/chat-conversation/index.js +103 -0
  24. package/dist/collection/components/google-map/index.js +72 -68
  25. package/dist/collection/components/salon-booking/index.css +5 -0
  26. package/dist/collection/components/salon-booking/index.js +85 -80
  27. package/dist/collection/components/salon-booking/salon-booking-modal.js +73 -69
  28. package/dist/collection/components/salon-gift-card/index.css +6 -1
  29. package/dist/collection/components/salon-gift-card/index.js +85 -80
  30. package/dist/collection/components/salon-gift-card/salon-gift-card-modal.js +56 -52
  31. package/dist/collection/components/salon-info/index.css +1 -0
  32. package/dist/collection/components/salon-info/index.js +60 -54
  33. package/dist/collection/components/salon-latest-reviews/index.css +3 -0
  34. package/dist/collection/components/salon-latest-reviews/index.js +131 -144
  35. package/dist/collection/components/salon-latest-styles/index.css +2 -0
  36. package/dist/collection/components/salon-latest-styles/index.js +143 -138
  37. package/dist/collection/components/salon-locations/index.css +3 -0
  38. package/dist/collection/components/salon-locations/index.js +112 -120
  39. package/dist/collection/components/salon-lookbook/index.css +3 -0
  40. package/dist/collection/components/salon-lookbook/index.js +182 -190
  41. package/dist/collection/components/salon-ranking/index.js +68 -65
  42. package/dist/collection/components/salon-reviews/index.css +3 -0
  43. package/dist/collection/components/salon-reviews/index.js +146 -183
  44. package/dist/collection/components/salon-schedules/index.css +3 -0
  45. package/dist/collection/components/salon-schedules/index.js +129 -151
  46. package/dist/collection/components/salon-services/index.css +1 -0
  47. package/dist/collection/components/salon-services/index.js +117 -127
  48. package/dist/collection/components/salon-stylists/index.css +8 -0
  49. package/dist/collection/components/salon-stylists/index.js +137 -136
  50. package/dist/collection/components/style-detail/index.css +14 -0
  51. package/dist/collection/components/style-detail/index.js +265 -340
  52. package/dist/collection/components/user-avatar/index.js +119 -112
  53. package/dist/collection/mocks/users.js +10 -0
  54. package/dist/collection/services/services.js +121 -0
  55. package/dist/collection/types/chat.js +23 -0
  56. package/dist/collection/types/user.js +1 -1
  57. package/dist/custom-elements/index.d.ts +6 -0
  58. package/dist/custom-elements/index.js +24628 -8605
  59. package/dist/esm/chat-button.entry.js +114 -0
  60. package/dist/esm/favesalon-embed.js +4 -3
  61. package/dist/esm/google-map_5.entry.js +26 -7
  62. package/dist/esm/{index-6af0a03d.js → index-3fae868e.js} +512 -209
  63. package/dist/esm/loader.js +4 -3
  64. package/dist/esm/polyfills/css-shim.js +1 -1
  65. package/dist/esm/relativeTime-cd452e6d.js +7 -0
  66. package/dist/esm/salon-booking-modal.entry.js +3 -2
  67. package/dist/esm/salon-booking.entry.js +3 -2
  68. package/dist/esm/salon-gift-card-modal.entry.js +3 -2
  69. package/dist/esm/salon-gift-card.entry.js +3 -2
  70. package/dist/esm/salon-latest-reviews.entry.js +5 -3
  71. package/dist/esm/salon-lookbook.entry.js +7 -3
  72. package/dist/esm/salon-ranking.entry.js +3 -2
  73. package/dist/esm/salon-reviews.entry.js +10 -3
  74. package/dist/esm/salon-services.entry.js +6 -3
  75. package/dist/esm/salon-stylists.entry.js +9 -3
  76. package/dist/esm/services-40a3e622.js +21485 -0
  77. package/dist/esm/style-detail.entry.js +10 -8
  78. package/dist/esm/user-avatar.entry.js +7 -3
  79. package/dist/favesalon-embed/favesalon-embed.esm.js +1 -1
  80. package/dist/favesalon-embed/p-019c5ccd.entry.js +1 -0
  81. package/dist/favesalon-embed/p-083a8821.entry.js +1 -0
  82. package/dist/favesalon-embed/p-0d0ed9ea.entry.js +1 -0
  83. package/dist/favesalon-embed/p-119db8de.entry.js +1 -0
  84. package/dist/favesalon-embed/p-1432c51b.entry.js +1 -0
  85. package/dist/favesalon-embed/p-22093506.entry.js +1 -0
  86. package/dist/favesalon-embed/p-32b314e9.js +2 -0
  87. package/dist/favesalon-embed/p-4a5eca9a.js +1 -1
  88. package/dist/favesalon-embed/p-58d2e9be.js +1 -0
  89. package/dist/favesalon-embed/p-71404b6a.entry.js +1 -0
  90. package/dist/favesalon-embed/p-857c3a61.entry.js +1 -0
  91. package/dist/favesalon-embed/p-99ec77f7.entry.js +1 -0
  92. package/dist/favesalon-embed/p-b0c3673a.entry.js +1 -0
  93. package/dist/favesalon-embed/p-b287b1ea.entry.js +1 -0
  94. package/dist/favesalon-embed/p-b3af7842.entry.js +1 -0
  95. package/dist/favesalon-embed/p-b630ae68.js +1580 -0
  96. package/dist/favesalon-embed/p-ce2c1c9a.entry.js +1 -0
  97. package/dist/favesalon-embed/p-d9b7ad58.entry.js +1 -0
  98. package/dist/favesalon-embed/p-fc9a5551.js +1 -1
  99. package/dist/types/components/chat-button/index.d.ts +24 -0
  100. package/dist/types/components.d.ts +22 -0
  101. package/dist/types/mocks/users.d.ts +10 -0
  102. package/dist/types/services/services.d.ts +15 -0
  103. package/dist/types/stencil-public-runtime.d.ts +85 -11
  104. package/dist/types/types/chat.d.ts +17 -0
  105. package/loader/index.d.ts +9 -0
  106. package/loader/package.json +1 -0
  107. package/package.json +3 -3
  108. package/readme.md +2 -2
  109. package/dist/cjs/services-eee8f251.js +0 -5634
  110. package/dist/esm/services-295247b1.js +0 -5627
  111. package/dist/favesalon-embed/p-292b97ba.entry.js +0 -1
  112. package/dist/favesalon-embed/p-4869dfed.entry.js +0 -1
  113. package/dist/favesalon-embed/p-4aee4fd9.entry.js +0 -1
  114. package/dist/favesalon-embed/p-5528c705.entry.js +0 -1
  115. package/dist/favesalon-embed/p-612ad685.entry.js +0 -1
  116. package/dist/favesalon-embed/p-75aef7e0.entry.js +0 -1
  117. package/dist/favesalon-embed/p-8c780874.entry.js +0 -1
  118. package/dist/favesalon-embed/p-8dbf04c5.js +0 -1
  119. package/dist/favesalon-embed/p-9f31061a.entry.js +0 -1
  120. package/dist/favesalon-embed/p-a60d78e9.entry.js +0 -1
  121. package/dist/favesalon-embed/p-a6debdae.entry.js +0 -1
  122. package/dist/favesalon-embed/p-bad1e9a7.entry.js +0 -1
  123. package/dist/favesalon-embed/p-c2ecb365.js +0 -1
  124. package/dist/favesalon-embed/p-c7dea70c.entry.js +0 -1
  125. package/dist/favesalon-embed/p-f0e14641.entry.js +0 -1
  126. package/dist/types/types/tmp.d.ts +0 -0
  127. /package/dist/{collection/types/tmp.js → types/components/chat-conversation/index.d.ts} +0 -0
@@ -3,4 +3,4 @@
3
3
  * Copyright 2011-2021 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
4
4
  * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
5
5
  */
6
- var t,e;t=void 0,e=function(){const t="transitionend",e=t=>{let e=t.getAttribute("data-bs-target");if(!e||"#"===e){let i=t.getAttribute("href");if(!i||!i.includes("#")&&!i.startsWith("."))return null;i.includes("#")&&!i.startsWith("#")&&(i=`#${i.split("#")[1]}`),e=i&&"#"!==i?i.trim():null}return e},i=t=>{const i=e(t);return i&&document.querySelector(i)?i:null},s=t=>{const i=e(t);return i?document.querySelector(i):null},n=e=>{e.dispatchEvent(new Event(t))},o=t=>!(!t||"object"!=typeof t)&&(void 0!==t.jquery&&(t=t[0]),void 0!==t.nodeType),r=t=>o(t)?t.jquery?t[0]:t:"string"==typeof t&&t.length>0?document.querySelector(t):null,h=(t,e,i)=>{Object.keys(i).forEach((s=>{const n=i[s],r=e[s],h=r&&o(r)?"element":null==(a=r)?`${a}`:{}.toString.call(a).match(/\s([a-z]+)/i)[1].toLowerCase();var a;if(!new RegExp(n).test(h))throw new TypeError(`${t.toUpperCase()}: Option "${s}" provided type "${h}" but expected type "${n}".`)}))},a=t=>!(!o(t)||0===t.getClientRects().length)&&"visible"===getComputedStyle(t).getPropertyValue("visibility"),c=t=>!t||t.nodeType!==Node.ELEMENT_NODE||!!t.classList.contains("disabled")||(void 0!==t.disabled?t.disabled:t.hasAttribute("disabled")&&"false"!==t.getAttribute("disabled")),u=t=>{if(!document.documentElement.attachShadow)return null;if("function"==typeof t.getRootNode){const e=t.getRootNode();return e instanceof ShadowRoot?e:null}return t instanceof ShadowRoot?t:t.parentNode?u(t.parentNode):null},l=()=>{},d=()=>{const{jQuery:t}=window;return t&&!document.body.hasAttribute("data-bs-no-jquery")?t:null},f=[],p=()=>"rtl"===document.documentElement.dir,b=t=>{var e;e=()=>{const e=d();if(e){const i=t.NAME,s=e.fn[i];e.fn[i]=t.jQueryInterface,e.fn[i].Constructor=t,e.fn[i].noConflict=()=>(e.fn[i]=s,t.jQueryInterface)}},"loading"===document.readyState?(f.length||document.addEventListener("DOMContentLoaded",(()=>{f.forEach((t=>t()))})),f.push(e)):e()},m=t=>{"function"==typeof t&&t()},g=(e,i,s=!0)=>{if(!s)return void m(e);const o=(t=>{if(!t)return 0;let{transitionDuration:e,transitionDelay:i}=window.getComputedStyle(t);const s=Number.parseFloat(e),n=Number.parseFloat(i);return s||n?(e=e.split(",")[0],i=i.split(",")[0],1e3*(Number.parseFloat(e)+Number.parseFloat(i))):0})(i)+5;let r=!1;const h=({target:s})=>{s===i&&(r=!0,i.removeEventListener(t,h),m(e))};i.addEventListener(t,h),setTimeout((()=>{r||n(i)}),o)},v=(t,e,i,s)=>{let n=t.indexOf(e);if(-1===n)return t[!i&&s?t.length-1:0];const o=t.length;return n+=i?1:-1,s&&(n=(n+o)%o),t[Math.max(0,Math.min(n,o-1))]},w=/[^.]*(?=\..*)\.|.*/,y=/\..*/,O=/::\d+$/,j={};let E=1;const _={mouseenter:"mouseover",mouseleave:"mouseout"},x=/^(mouseenter|mouseleave)/i,T=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 k(t,e){return e&&`${e}::${E++}`||t.uidEvent||E++}function A(t){const e=k(t);return t.uidEvent=e,j[e]=j[e]||{},j[e]}function C(t,e,i=null){const s=Object.keys(t);for(let n=0,o=s.length;n<o;n++){const o=t[s[n]];if(o.originalHandler===e&&o.delegationSelector===i)return o}return null}function N(t,e,i){const s="string"==typeof e,n=s?i:e;let o=S(t);return T.has(o)||(o=t),[s,n,o]}function M(t,e,i,s,n){if("string"!=typeof e||!t)return;if(i||(i=s,s=null),x.test(e)){const t=t=>function(e){if(!e.relatedTarget||e.relatedTarget!==e.delegateTarget&&!e.delegateTarget.contains(e.relatedTarget))return t.call(this,e)};s?s=t(s):i=t(i)}const[o,r,h]=N(e,i,s),a=A(t),c=a[h]||(a[h]={}),u=C(c,r,o?i:null);if(u)return void(u.oneOff=u.oneOff&&n);const l=k(r,e.replace(w,"")),d=o?function(t,e,i){return function s(n){const o=t.querySelectorAll(e);for(let{target:r}=n;r&&r!==this;r=r.parentNode)for(let h=o.length;h--;)if(o[h]===r)return n.delegateTarget=r,s.oneOff&&D.off(t,n.type,e,i),i.apply(r,[n]);return null}}(t,i,s):function(t,e){return function i(s){return s.delegateTarget=t,i.oneOff&&D.off(t,s.type,e),e.apply(t,[s])}}(t,i);d.delegationSelector=o?i:null,d.originalHandler=r,d.oneOff=n,d.uidEvent=l,c[l]=d,t.addEventListener(h,d,o)}function $(t,e,i,s,n){const o=C(e[i],s,n);o&&(t.removeEventListener(i,o,Boolean(n)),delete e[i][o.uidEvent])}function S(t){return t=t.replace(y,""),_[t]||t}const D={on(t,e,i,s){M(t,e,i,s,!1)},one(t,e,i,s){M(t,e,i,s,!0)},off(t,e,i,s){if("string"!=typeof e||!t)return;const[n,o,r]=N(e,i,s),h=r!==e,a=A(t),c=e.startsWith(".");if(void 0!==o){if(!a||!a[r])return;return void $(t,a,r,o,n?i:null)}c&&Object.keys(a).forEach((i=>{!function(t,e,i,s){const n=e[i]||{};Object.keys(n).forEach((o=>{if(o.includes(s)){const s=n[o];$(t,e,i,s.originalHandler,s.delegationSelector)}}))}(t,a,i,e.slice(1))}));const u=a[r]||{};Object.keys(u).forEach((i=>{const s=i.replace(O,"");if(!h||e.includes(s)){const e=u[i];$(t,a,r,e.originalHandler,e.delegationSelector)}}))},trigger(t,e,i){if("string"!=typeof e||!t)return null;const s=d(),n=S(e),o=e!==n,r=T.has(n);let h,a=!0,c=!0,u=!1,l=null;return o&&s&&(h=s.Event(e,i),s(t).trigger(h),a=!h.isPropagationStopped(),c=!h.isImmediatePropagationStopped(),u=h.isDefaultPrevented()),r?(l=document.createEvent("HTMLEvents"),l.initEvent(n,a,!0)):l=new CustomEvent(e,{bubbles:a,cancelable:!0}),void 0!==i&&Object.keys(i).forEach((t=>{Object.defineProperty(l,t,{get:()=>i[t]})})),u&&l.preventDefault(),c&&t.dispatchEvent(l),l.defaultPrevented&&void 0!==h&&h.preventDefault(),l}},I=new Map,P={set(t,e,i){I.has(t)||I.set(t,new Map);const s=I.get(t);s.has(e)||0===s.size?s.set(e,i):console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(s.keys())[0]}.`)},get:(t,e)=>I.has(t)&&I.get(t).get(e)||null,remove(t,e){if(!I.has(t))return;const i=I.get(t);i.delete(e),0===i.size&&I.delete(t)}};class R{constructor(t){(t=r(t))&&(this._element=t,P.set(this._element,this.constructor.DATA_KEY,this))}dispose(){P.remove(this._element,this.constructor.DATA_KEY),D.off(this._element,this.constructor.EVENT_KEY),Object.getOwnPropertyNames(this).forEach((t=>{this[t]=null}))}_queueCallback(t,e,i=!0){g(t,e,i)}static getInstance(t){return P.get(r(t),this.DATA_KEY)}static getOrCreateInstance(t,e={}){return this.getInstance(t)||new this(t,"object"==typeof e?e:null)}static get VERSION(){return"5.1.3"}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}}const B=(t,e="hide")=>{const i=t.NAME;D.on(document,`click.dismiss${t.EVENT_KEY}`,`[data-bs-dismiss="${i}"]`,(function(n){if(["A","AREA"].includes(this.tagName)&&n.preventDefault(),c(this))return;const o=s(this)||this.closest(`.${i}`);t.getOrCreateInstance(o)[e]()}))};class L extends R{static get NAME(){return"alert"}close(){if(D.trigger(this._element,"close.bs.alert").defaultPrevented)return;this._element.classList.remove("show");const t=this._element.classList.contains("fade");this._queueCallback((()=>this._destroyElement()),this._element,t)}_destroyElement(){this._element.remove(),D.trigger(this._element,"closed.bs.alert"),this.dispose()}static jQueryInterface(t){return this.each((function(){const e=L.getOrCreateInstance(this);if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method named "${t}"`);e[t](this)}}))}}B(L,"close"),b(L);const z='[data-bs-toggle="button"]';class H extends R{static get NAME(){return"button"}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle("active"))}static jQueryInterface(t){return this.each((function(){const e=H.getOrCreateInstance(this);"toggle"===t&&e[t]()}))}}function U(t){return"true"===t||"false"!==t&&(t===Number(t).toString()?Number(t):""===t||"null"===t?null:t)}function W(t){return t.replace(/[A-Z]/g,(t=>`-${t.toLowerCase()}`))}D.on(document,"click.bs.button.data-api",z,(t=>{t.preventDefault();const e=t.target.closest(z);H.getOrCreateInstance(e).toggle()})),b(H);const F={setDataAttribute(t,e,i){t.setAttribute(`data-bs-${W(e)}`,i)},removeDataAttribute(t,e){t.removeAttribute(`data-bs-${W(e)}`)},getDataAttributes(t){if(!t)return{};const e={};return Object.keys(t.dataset).filter((t=>t.startsWith("bs"))).forEach((i=>{let s=i.replace(/^bs/,"");s=s.charAt(0).toLowerCase()+s.slice(1,s.length),e[s]=U(t.dataset[i])})),e},getDataAttribute:(t,e)=>U(t.getAttribute(`data-bs-${W(e)}`)),offset(t){const e=t.getBoundingClientRect();return{top:e.top+window.pageYOffset,left:e.left+window.pageXOffset}},position:t=>({top:t.offsetTop,left:t.offsetLeft})},Q={find:(t,e=document.documentElement)=>[].concat(...Element.prototype.querySelectorAll.call(e,t)),findOne:(t,e=document.documentElement)=>Element.prototype.querySelector.call(e,t),children:(t,e)=>[].concat(...t.children).filter((t=>t.matches(e))),parents(t,e){const i=[];let s=t.parentNode;for(;s&&s.nodeType===Node.ELEMENT_NODE&&3!==s.nodeType;)s.matches(e)&&i.push(s),s=s.parentNode;return i},prev(t,e){let i=t.previousElementSibling;for(;i;){if(i.matches(e))return[i];i=i.previousElementSibling}return[]},next(t,e){let i=t.nextElementSibling;for(;i;){if(i.matches(e))return[i];i=i.nextElementSibling}return[]},focusableChildren(t){const e=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map((t=>`${t}:not([tabindex^="-"])`)).join(", ");return this.find(e,t).filter((t=>!c(t)&&a(t)))}},q="carousel",V={interval:5e3,keyboard:!0,slide:!1,pause:"hover",wrap:!0,touch:!0},K={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean",touch:"boolean"},Y="next",G="prev",Z="left",J="right",X={ArrowLeft:J,ArrowRight:Z},tt="slid.bs.carousel",et="active",it=".active.carousel-item";class st extends R{constructor(t,e){super(t),this._items=null,this._interval=null,this._activeElement=null,this._isPaused=!1,this._isSliding=!1,this.touchTimeout=null,this.touchStartX=0,this.touchDeltaX=0,this._config=this._getConfig(e),this._indicatorsElement=Q.findOne(".carousel-indicators",this._element),this._touchSupported="ontouchstart"in document.documentElement||navigator.maxTouchPoints>0,this._pointerEvent=Boolean(window.PointerEvent),this._addEventListeners()}static get Default(){return V}static get NAME(){return q}next(){this._slide(Y)}nextWhenVisible(){!document.hidden&&a(this._element)&&this.next()}prev(){this._slide(G)}pause(t){t||(this._isPaused=!0),Q.findOne(".carousel-item-next, .carousel-item-prev",this._element)&&(n(this._element),this.cycle(!0)),clearInterval(this._interval),this._interval=null}cycle(t){t||(this._isPaused=!1),this._interval&&(clearInterval(this._interval),this._interval=null),this._config&&this._config.interval&&!this._isPaused&&(this._updateInterval(),this._interval=setInterval((document.visibilityState?this.nextWhenVisible:this.next).bind(this),this._config.interval))}to(t){this._activeElement=Q.findOne(it,this._element);const e=this._getItemIndex(this._activeElement);if(!(t>this._items.length-1||t<0)){if(!this._isSliding)return e===t?(this.pause(),void this.cycle()):void this._slide(t>e?Y:G,this._items[t]);D.one(this._element,tt,(()=>this.to(t)))}}_getConfig(t){return t=Object.assign(Object.assign(Object.assign({},V),F.getDataAttributes(this._element)),"object"==typeof t?t:{}),h(q,t,K),t}_handleSwipe(){const t=Math.abs(this.touchDeltaX);if(t<=40)return;const e=t/this.touchDeltaX;this.touchDeltaX=0,e&&this._slide(e>0?J:Z)}_addEventListeners(){this._config.keyboard&&D.on(this._element,"keydown.bs.carousel",(t=>this._keydown(t))),"hover"===this._config.pause&&(D.on(this._element,"mouseenter.bs.carousel",(t=>this.pause(t))),D.on(this._element,"mouseleave.bs.carousel",(t=>this.cycle(t)))),this._config.touch&&this._touchSupported&&this._addTouchEventListeners()}_addTouchEventListeners(){const t=t=>this._pointerEvent&&("pen"===t.pointerType||"touch"===t.pointerType),e=e=>{t(e)?this.touchStartX=e.clientX:this._pointerEvent||(this.touchStartX=e.touches[0].clientX)},i=t=>{this.touchDeltaX=t.touches&&t.touches.length>1?0:t.touches[0].clientX-this.touchStartX},s=e=>{t(e)&&(this.touchDeltaX=e.clientX-this.touchStartX),this._handleSwipe(),"hover"===this._config.pause&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout((t=>this.cycle(t)),500+this._config.interval))};Q.find(".carousel-item img",this._element).forEach((t=>{D.on(t,"dragstart.bs.carousel",(t=>t.preventDefault()))})),this._pointerEvent?(D.on(this._element,"pointerdown.bs.carousel",(t=>e(t))),D.on(this._element,"pointerup.bs.carousel",(t=>s(t))),this._element.classList.add("pointer-event")):(D.on(this._element,"touchstart.bs.carousel",(t=>e(t))),D.on(this._element,"touchmove.bs.carousel",(t=>i(t))),D.on(this._element,"touchend.bs.carousel",(t=>s(t))))}_keydown(t){if(/input|textarea/i.test(t.target.tagName))return;const e=X[t.key];e&&(t.preventDefault(),this._slide(e))}_getItemIndex(t){return this._items=t&&t.parentNode?Q.find(".carousel-item",t.parentNode):[],this._items.indexOf(t)}_getItemByOrder(t,e){return v(this._items,e,t===Y,this._config.wrap)}_triggerSlideEvent(t,e){const i=this._getItemIndex(t),s=this._getItemIndex(Q.findOne(it,this._element));return D.trigger(this._element,"slide.bs.carousel",{relatedTarget:t,direction:e,from:s,to:i})}_setActiveIndicatorElement(t){if(this._indicatorsElement){const e=Q.findOne(".active",this._indicatorsElement);e.classList.remove(et),e.removeAttribute("aria-current");const i=Q.find("[data-bs-target]",this._indicatorsElement);for(let e=0;e<i.length;e++)if(Number.parseInt(i[e].getAttribute("data-bs-slide-to"),10)===this._getItemIndex(t)){i[e].classList.add(et),i[e].setAttribute("aria-current","true");break}}}_updateInterval(){const t=this._activeElement||Q.findOne(it,this._element);if(!t)return;const e=Number.parseInt(t.getAttribute("data-bs-interval"),10);e?(this._config.defaultInterval=this._config.defaultInterval||this._config.interval,this._config.interval=e):this._config.interval=this._config.defaultInterval||this._config.interval}_slide(t,e){const i=this._directionToOrder(t),s=Q.findOne(it,this._element),n=this._getItemIndex(s),o=e||this._getItemByOrder(i,s),r=this._getItemIndex(o),h=Boolean(this._interval),a=i===Y,c=a?"carousel-item-start":"carousel-item-end",u=a?"carousel-item-next":"carousel-item-prev",l=this._orderToDirection(i);if(o&&o.classList.contains(et))return void(this._isSliding=!1);if(this._isSliding)return;if(this._triggerSlideEvent(o,l).defaultPrevented)return;if(!s||!o)return;this._isSliding=!0,h&&this.pause(),this._setActiveIndicatorElement(o),this._activeElement=o;const d=()=>{D.trigger(this._element,tt,{relatedTarget:o,direction:l,from:n,to:r})};this._element.classList.contains("slide")?(o.classList.add(u),s.classList.add(c),o.classList.add(c),this._queueCallback((()=>{o.classList.remove(c,u),o.classList.add(et),s.classList.remove(et,u,c),this._isSliding=!1,setTimeout(d,0)}),s,!0)):(s.classList.remove(et),o.classList.add(et),this._isSliding=!1,d()),h&&this.cycle()}_directionToOrder(t){return[J,Z].includes(t)?p()?t===Z?G:Y:t===Z?Y:G:t}_orderToDirection(t){return[Y,G].includes(t)?p()?t===G?Z:J:t===G?J:Z:t}static carouselInterface(t,e){const i=st.getOrCreateInstance(t,e);let{_config:s}=i;"object"==typeof e&&(s=Object.assign(Object.assign({},s),e));const n="string"==typeof e?e:s.slide;if("number"==typeof e)i.to(e);else if("string"==typeof n){if(void 0===i[n])throw new TypeError(`No method named "${n}"`);i[n]()}else s.interval&&s.ride&&(i.pause(),i.cycle())}static jQueryInterface(t){return this.each((function(){st.carouselInterface(this,t)}))}static dataApiClickHandler(t){const e=s(this);if(!e||!e.classList.contains("carousel"))return;const i=Object.assign(Object.assign({},F.getDataAttributes(e)),F.getDataAttributes(this)),n=this.getAttribute("data-bs-slide-to");n&&(i.interval=!1),st.carouselInterface(e,i),n&&st.getInstance(e).to(n),t.preventDefault()}}D.on(document,"click.bs.carousel.data-api","[data-bs-slide], [data-bs-slide-to]",st.dataApiClickHandler),D.on(window,"load.bs.carousel.data-api",(()=>{const t=Q.find('[data-bs-ride="carousel"]');for(let e=0,i=t.length;e<i;e++)st.carouselInterface(t[e],st.getInstance(t[e]))})),b(st);const nt="collapse",ot={toggle:!0,parent:null},rt={toggle:"boolean",parent:"(null|element)"},ht="show",at="collapse",ct="collapsing",ut="collapsed",lt=":scope .collapse .collapse",dt='[data-bs-toggle="collapse"]';class ft extends R{constructor(t,e){super(t),this._isTransitioning=!1,this._config=this._getConfig(e),this._triggerArray=[];const s=Q.find(dt);for(let t=0,e=s.length;t<e;t++){const e=s[t],n=i(e),o=Q.find(n).filter((t=>t===this._element));null!==n&&o.length&&(this._selector=n,this._triggerArray.push(e))}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return ot}static get NAME(){return nt}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let t,e=[];if(this._config.parent){const t=Q.find(lt,this._config.parent);e=Q.find(".collapse.show, .collapse.collapsing",this._config.parent).filter((e=>!t.includes(e)))}const i=Q.findOne(this._selector);if(e.length){const s=e.find((t=>i!==t));if(t=s?ft.getInstance(s):null,t&&t._isTransitioning)return}if(D.trigger(this._element,"show.bs.collapse").defaultPrevented)return;e.forEach((e=>{i!==e&&ft.getOrCreateInstance(e,{toggle:!1}).hide(),t||P.set(e,"bs.collapse",null)}));const s=this._getDimension();this._element.classList.remove(at),this._element.classList.add(ct),this._element.style[s]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const n=`scroll${s[0].toUpperCase()+s.slice(1)}`;this._queueCallback((()=>{this._isTransitioning=!1,this._element.classList.remove(ct),this._element.classList.add(at,ht),this._element.style[s]="",D.trigger(this._element,"shown.bs.collapse")}),this._element,!0),this._element.style[s]=`${this._element[n]}px`}hide(){if(this._isTransitioning||!this._isShown())return;if(D.trigger(this._element,"hide.bs.collapse").defaultPrevented)return;const t=this._getDimension();this._element.style[t]=`${this._element.getBoundingClientRect()[t]}px`,this._element.classList.add(ct),this._element.classList.remove(at,ht);const e=this._triggerArray.length;for(let t=0;t<e;t++){const e=this._triggerArray[t],i=s(e);i&&!this._isShown(i)&&this._addAriaAndCollapsedClass([e],!1)}this._isTransitioning=!0,this._element.style[t]="",this._queueCallback((()=>{this._isTransitioning=!1,this._element.classList.remove(ct),this._element.classList.add(at),D.trigger(this._element,"hidden.bs.collapse")}),this._element,!0)}_isShown(t=this._element){return t.classList.contains(ht)}_getConfig(t){return(t=Object.assign(Object.assign(Object.assign({},ot),F.getDataAttributes(this._element)),t)).toggle=Boolean(t.toggle),t.parent=r(t.parent),h(nt,t,rt),t}_getDimension(){return this._element.classList.contains("collapse-horizontal")?"width":"height"}_initializeChildren(){if(!this._config.parent)return;const t=Q.find(lt,this._config.parent);Q.find(dt,this._config.parent).filter((e=>!t.includes(e))).forEach((t=>{const e=s(t);e&&this._addAriaAndCollapsedClass([t],this._isShown(e))}))}_addAriaAndCollapsedClass(t,e){t.length&&t.forEach((t=>{e?t.classList.remove(ut):t.classList.add(ut),t.setAttribute("aria-expanded",e)}))}static jQueryInterface(t){return this.each((function(){const e={};"string"==typeof t&&/show|hide/.test(t)&&(e.toggle=!1);const i=ft.getOrCreateInstance(this,e);if("string"==typeof t){if(void 0===i[t])throw new TypeError(`No method named "${t}"`);i[t]()}}))}}D.on(document,"click.bs.collapse.data-api",dt,(function(t){("A"===t.target.tagName||t.delegateTarget&&"A"===t.delegateTarget.tagName)&&t.preventDefault();const e=i(this);Q.find(e).forEach((t=>{ft.getOrCreateInstance(t,{toggle:!1}).toggle()}))})),b(ft);var pt="top",bt="bottom",mt="right",gt="left",vt="auto",wt=[pt,bt,mt,gt],yt="start",Ot="end",jt="clippingParents",Et="viewport",_t="popper",xt="reference",Tt=wt.reduce((function(t,e){return t.concat([e+"-"+yt,e+"-"+Ot])}),[]),kt=[].concat(wt,[vt]).reduce((function(t,e){return t.concat([e,e+"-"+yt,e+"-"+Ot])}),[]),At="beforeRead",Ct="read",Nt="afterRead",Mt="beforeMain",$t="main",St="afterMain",Dt="beforeWrite",It="write",Pt="afterWrite",Rt=[At,Ct,Nt,Mt,$t,St,Dt,It,Pt];function Bt(t){return t?(t.nodeName||"").toLowerCase():null}function Lt(t){if(null==t)return window;if("[object Window]"!==t.toString()){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function zt(t){return t instanceof Lt(t).Element||t instanceof Element}function Ht(t){return t instanceof Lt(t).HTMLElement||t instanceof HTMLElement}function Ut(t){return"undefined"!=typeof ShadowRoot&&(t instanceof Lt(t).ShadowRoot||t instanceof ShadowRoot)}const Wt={name:"applyStyles",enabled:!0,phase:"write",fn:function(t){var e=t.state;Object.keys(e.elements).forEach((function(t){var i=e.styles[t]||{},s=e.attributes[t]||{},n=e.elements[t];Ht(n)&&Bt(n)&&(Object.assign(n.style,i),Object.keys(s).forEach((function(t){var e=s[t];!1===e?n.removeAttribute(t):n.setAttribute(t,!0===e?"":e)})))}))},effect:function(t){var e=t.state,i={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,i.popper),e.styles=i,e.elements.arrow&&Object.assign(e.elements.arrow.style,i.arrow),function(){Object.keys(e.elements).forEach((function(t){var s=e.elements[t],n=e.attributes[t]||{},o=Object.keys(e.styles.hasOwnProperty(t)?e.styles[t]:i[t]).reduce((function(t,e){return t[e]="",t}),{});Ht(s)&&Bt(s)&&(Object.assign(s.style,o),Object.keys(n).forEach((function(t){s.removeAttribute(t)})))}))}},requires:["computeStyles"]};function Ft(t){return t.split("-")[0]}function Qt(t){var e=t.getBoundingClientRect();return{width:e.width/1,height:e.height/1,top:e.top/1,right:e.right/1,bottom:e.bottom/1,left:e.left/1,x:e.left/1,y:e.top/1}}function qt(t){var e=Qt(t),i=t.offsetWidth,s=t.offsetHeight;return Math.abs(e.width-i)<=1&&(i=e.width),Math.abs(e.height-s)<=1&&(s=e.height),{x:t.offsetLeft,y:t.offsetTop,width:i,height:s}}function Vt(t,e){var i=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(i&&Ut(i)){var s=e;do{if(s&&t.isSameNode(s))return!0;s=s.parentNode||s.host}while(s)}return!1}function Kt(t){return Lt(t).getComputedStyle(t)}function Yt(t){return["table","td","th"].indexOf(Bt(t))>=0}function Gt(t){return((zt(t)?t.ownerDocument:t.document)||window.document).documentElement}function Zt(t){return"html"===Bt(t)?t:t.assignedSlot||t.parentNode||(Ut(t)?t.host:null)||Gt(t)}function Jt(t){return Ht(t)&&"fixed"!==Kt(t).position?t.offsetParent:null}function Xt(t){for(var e=Lt(t),i=Jt(t);i&&Yt(i)&&"static"===Kt(i).position;)i=Jt(i);return i&&("html"===Bt(i)||"body"===Bt(i)&&"static"===Kt(i).position)?e:i||function(t){var e=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");if(-1!==navigator.userAgent.indexOf("Trident")&&Ht(t)&&"fixed"===Kt(t).position)return null;for(var i=Zt(t);Ht(i)&&["html","body"].indexOf(Bt(i))<0;){var s=Kt(i);if("none"!==s.transform||"none"!==s.perspective||"paint"===s.contain||-1!==["transform","perspective"].indexOf(s.willChange)||e&&"filter"===s.willChange||e&&s.filter&&"none"!==s.filter)return i;i=i.parentNode}return null}(t)||e}function te(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}var ee=Math.max,ie=Math.min,se=Math.round;function ne(t,e,i){return ee(t,ie(e,i))}function oe(t){return Object.assign({},{top:0,right:0,bottom:0,left:0},t)}function re(t,e){return e.reduce((function(e,i){return e[i]=t,e}),{})}const he={name:"arrow",enabled:!0,phase:"main",fn:function(t){var e,i=t.state,s=t.name,n=t.options,o=i.elements.arrow,r=i.modifiersData.popperOffsets,h=Ft(i.placement),a=te(h),c=[gt,mt].indexOf(h)>=0?"height":"width";if(o&&r){var u=function(t,e){return oe("number"!=typeof(t="function"==typeof t?t(Object.assign({},e.rects,{placement:e.placement})):t)?t:re(t,wt))}(n.padding,i),l=qt(o),d="y"===a?pt:gt,f="y"===a?bt:mt,p=i.rects.reference[c]+i.rects.reference[a]-r[a]-i.rects.popper[c],b=r[a]-i.rects.reference[a],m=Xt(o),g=m?"y"===a?m.clientHeight||0:m.clientWidth||0:0,v=g/2-l[c]/2+(p/2-b/2),w=ne(u[d],v,g-l[c]-u[f]);i.modifiersData[s]=((e={})[a]=w,e.centerOffset=w-v,e)}},effect:function(t){var e=t.state,i=t.options.element,s=void 0===i?"[data-popper-arrow]":i;null!=s&&("string"!=typeof s||(s=e.elements.popper.querySelector(s)))&&Vt(e.elements.popper,s)&&(e.elements.arrow=s)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ae(t){return t.split("-")[1]}var ce={top:"auto",right:"auto",bottom:"auto",left:"auto"};function ue(t){var e,i=t.popper,s=t.popperRect,n=t.placement,o=t.variation,r=t.offsets,h=t.position,a=t.gpuAcceleration,c=t.adaptive,u=t.roundOffsets,l=!0===u?function(t){var e=t.y,i=window.devicePixelRatio||1;return{x:se(se(t.x*i)/i)||0,y:se(se(e*i)/i)||0}}(r):"function"==typeof u?u(r):r,d=l.x,f=void 0===d?0:d,p=l.y,b=void 0===p?0:p,m=r.hasOwnProperty("x"),g=r.hasOwnProperty("y"),v=gt,w=pt,y=window;if(c){var O=Xt(i),j="clientHeight",E="clientWidth";O===Lt(i)&&"static"!==Kt(O=Gt(i)).position&&"absolute"===h&&(j="scrollHeight",E="scrollWidth"),O=O,n!==pt&&(n!==gt&&n!==mt||o!==Ot)||(w=bt,b-=O[j]-s.height,b*=a?1:-1),n!==gt&&(n!==pt&&n!==bt||o!==Ot)||(v=mt,f-=O[E]-s.width,f*=a?1:-1)}var _,x=Object.assign({position:h},c&&ce);return Object.assign({},x,a?((_={})[w]=g?"0":"",_[v]=m?"0":"",_.transform=(y.devicePixelRatio||1)<=1?"translate("+f+"px, "+b+"px)":"translate3d("+f+"px, "+b+"px, 0)",_):((e={})[w]=g?b+"px":"",e[v]=m?f+"px":"",e.transform="",e))}const le={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(t){var e=t.state,i=t.options,s=i.gpuAcceleration,n=void 0===s||s,o=i.adaptive,r=void 0===o||o,h=i.roundOffsets,a=void 0===h||h,c={placement:Ft(e.placement),variation:ae(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:n};null!=e.modifiersData.popperOffsets&&(e.styles.popper=Object.assign({},e.styles.popper,ue(Object.assign({},c,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:r,roundOffsets:a})))),null!=e.modifiersData.arrow&&(e.styles.arrow=Object.assign({},e.styles.arrow,ue(Object.assign({},c,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:a})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})},data:{}};var de={passive:!0};const fe={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(t){var e=t.state,i=t.instance,s=t.options,n=s.scroll,o=void 0===n||n,r=s.resize,h=void 0===r||r,a=Lt(e.elements.popper),c=[].concat(e.scrollParents.reference,e.scrollParents.popper);return o&&c.forEach((function(t){t.addEventListener("scroll",i.update,de)})),h&&a.addEventListener("resize",i.update,de),function(){o&&c.forEach((function(t){t.removeEventListener("scroll",i.update,de)})),h&&a.removeEventListener("resize",i.update,de)}},data:{}};var pe={left:"right",right:"left",bottom:"top",top:"bottom"};function be(t){return t.replace(/left|right|bottom|top/g,(function(t){return pe[t]}))}var me={start:"end",end:"start"};function ge(t){return t.replace(/start|end/g,(function(t){return me[t]}))}function ve(t){var e=Lt(t);return{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function we(t){return Qt(Gt(t)).left+ve(t).scrollLeft}function ye(t){var e=Kt(t);return/auto|scroll|overlay|hidden/.test(e.overflow+e.overflowY+e.overflowX)}function Oe(t){return["html","body","#document"].indexOf(Bt(t))>=0?t.ownerDocument.body:Ht(t)&&ye(t)?t:Oe(Zt(t))}function je(t,e){var i;void 0===e&&(e=[]);var s=Oe(t),n=s===(null==(i=t.ownerDocument)?void 0:i.body),o=Lt(s),r=n?[o].concat(o.visualViewport||[],ye(s)?s:[]):s,h=e.concat(r);return n?h:h.concat(je(Zt(r)))}function Ee(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function _e(t,e){return e===Et?Ee(function(t){var e=Lt(t),i=Gt(t),s=e.visualViewport,n=i.clientWidth,o=i.clientHeight,r=0,h=0;return s&&(n=s.width,o=s.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(r=s.offsetLeft,h=s.offsetTop)),{width:n,height:o,x:r+we(t),y:h}}(t)):Ht(e)?function(t){var e=Qt(t);return e.top=e.top+t.clientTop,e.left=e.left+t.clientLeft,e.bottom=e.top+t.clientHeight,e.right=e.left+t.clientWidth,e.width=t.clientWidth,e.height=t.clientHeight,e.x=e.left,e.y=e.top,e}(e):Ee(function(t){var e,i=Gt(t),s=ve(t),n=null==(e=t.ownerDocument)?void 0:e.body,o=ee(i.scrollWidth,i.clientWidth,n?n.scrollWidth:0,n?n.clientWidth:0),r=ee(i.scrollHeight,i.clientHeight,n?n.scrollHeight:0,n?n.clientHeight:0),h=-s.scrollLeft+we(t),a=-s.scrollTop;return"rtl"===Kt(n||i).direction&&(h+=ee(i.clientWidth,n?n.clientWidth:0)-o),{width:o,height:r,x:h,y:a}}(Gt(t)))}function xe(t){var e,i=t.reference,s=t.element,n=t.placement,o=n?Ft(n):null,r=n?ae(n):null,h=i.x+i.width/2-s.width/2,a=i.y+i.height/2-s.height/2;switch(o){case pt:e={x:h,y:i.y-s.height};break;case bt:e={x:h,y:i.y+i.height};break;case mt:e={x:i.x+i.width,y:a};break;case gt:e={x:i.x-s.width,y:a};break;default:e={x:i.x,y:i.y}}var c=o?te(o):null;if(null!=c){var u="y"===c?"height":"width";switch(r){case yt:e[c]=e[c]-(i[u]/2-s[u]/2);break;case Ot:e[c]=e[c]+(i[u]/2-s[u]/2)}}return e}function Te(t,e){void 0===e&&(e={});var i=e.placement,s=void 0===i?t.placement:i,n=e.boundary,o=void 0===n?jt:n,r=e.rootBoundary,h=void 0===r?Et:r,a=e.elementContext,c=void 0===a?_t:a,u=e.altBoundary,l=void 0!==u&&u,d=e.padding,f=void 0===d?0:d,p=oe("number"!=typeof f?f:re(f,wt)),b=t.rects.popper,m=t.elements[l?c===_t?xt:_t:c],g=function(t,e,i){var s="clippingParents"===e?function(t){var e=je(Zt(t)),i=["absolute","fixed"].indexOf(Kt(t).position)>=0&&Ht(t)?Xt(t):t;return zt(i)?e.filter((function(t){return zt(t)&&Vt(t,i)&&"body"!==Bt(t)})):[]}(t):[].concat(e),n=[].concat(s,[i]),o=n.reduce((function(e,i){var s=_e(t,i);return e.top=ee(s.top,e.top),e.right=ie(s.right,e.right),e.bottom=ie(s.bottom,e.bottom),e.left=ee(s.left,e.left),e}),_e(t,n[0]));return o.width=o.right-o.left,o.height=o.bottom-o.top,o.x=o.left,o.y=o.top,o}(zt(m)?m:m.contextElement||Gt(t.elements.popper),o,h),v=Qt(t.elements.reference),w=xe({reference:v,element:b,strategy:"absolute",placement:s}),y=Ee(Object.assign({},b,w)),O=c===_t?y:v,j={top:g.top-O.top+p.top,bottom:O.bottom-g.bottom+p.bottom,left:g.left-O.left+p.left,right:O.right-g.right+p.right},E=t.modifiersData.offset;if(c===_t&&E){var _=E[s];Object.keys(j).forEach((function(t){var e=[mt,bt].indexOf(t)>=0?1:-1,i=[pt,bt].indexOf(t)>=0?"y":"x";j[t]+=_[i]*e}))}return j}const ke={name:"flip",enabled:!0,phase:"main",fn:function(t){var e=t.state,i=t.options,s=t.name;if(!e.modifiersData[s]._skip){for(var n=i.mainAxis,o=void 0===n||n,r=i.altAxis,h=void 0===r||r,a=i.fallbackPlacements,c=i.padding,u=i.boundary,l=i.rootBoundary,d=i.altBoundary,f=i.flipVariations,p=void 0===f||f,b=i.allowedAutoPlacements,m=e.options.placement,g=Ft(m),v=a||(g!==m&&p?function(t){if(Ft(t)===vt)return[];var e=be(t);return[ge(t),e,ge(e)]}(m):[be(m)]),w=[m].concat(v).reduce((function(t,i){return t.concat(Ft(i)===vt?function(t,e){void 0===e&&(e={});var i=e.boundary,s=e.rootBoundary,n=e.padding,o=e.flipVariations,r=e.allowedAutoPlacements,h=void 0===r?kt:r,a=ae(e.placement),c=a?o?Tt:Tt.filter((function(t){return ae(t)===a})):wt,u=c.filter((function(t){return h.indexOf(t)>=0}));0===u.length&&(u=c);var l=u.reduce((function(e,o){return e[o]=Te(t,{placement:o,boundary:i,rootBoundary:s,padding:n})[Ft(o)],e}),{});return Object.keys(l).sort((function(t,e){return l[t]-l[e]}))}(e,{placement:i,boundary:u,rootBoundary:l,padding:c,flipVariations:p,allowedAutoPlacements:b}):i)}),[]),y=e.rects.reference,O=e.rects.popper,j=new Map,E=!0,_=w[0],x=0;x<w.length;x++){var T=w[x],k=Ft(T),A=ae(T)===yt,C=[pt,bt].indexOf(k)>=0,N=C?"width":"height",M=Te(e,{placement:T,boundary:u,rootBoundary:l,altBoundary:d,padding:c}),$=C?A?mt:gt:A?bt:pt;y[N]>O[N]&&($=be($));var S=be($),D=[];if(o&&D.push(M[k]<=0),h&&D.push(M[$]<=0,M[S]<=0),D.every((function(t){return t}))){_=T,E=!1;break}j.set(T,D)}if(E)for(var I=function(t){var e=w.find((function(e){var i=j.get(e);if(i)return i.slice(0,t).every((function(t){return t}))}));if(e)return _=e,"break"},P=p?3:1;P>0&&"break"!==I(P);P--);e.placement!==_&&(e.modifiersData[s]._skip=!0,e.placement=_,e.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function Ae(t,e,i){return void 0===i&&(i={x:0,y:0}),{top:t.top-e.height-i.y,right:t.right-e.width+i.x,bottom:t.bottom-e.height+i.y,left:t.left-e.width-i.x}}function Ce(t){return[pt,mt,bt,gt].some((function(e){return t[e]>=0}))}const Ne={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(t){var e=t.state,i=t.name,s=e.rects.reference,n=e.rects.popper,o=e.modifiersData.preventOverflow,r=Te(e,{elementContext:"reference"}),h=Te(e,{altBoundary:!0}),a=Ae(r,s),c=Ae(h,n,o),u=Ce(a),l=Ce(c);e.modifiersData[i]={referenceClippingOffsets:a,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:l},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":l})}},Me={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(t){var e=t.state,i=t.name,s=t.options.offset,n=void 0===s?[0,0]:s,o=kt.reduce((function(t,i){return t[i]=function(t,e,i){var s=Ft(t),n=[gt,pt].indexOf(s)>=0?-1:1,o="function"==typeof i?i(Object.assign({},e,{placement:t})):i,r=o[0],h=o[1];return r=r||0,h=(h||0)*n,[gt,mt].indexOf(s)>=0?{x:h,y:r}:{x:r,y:h}}(i,e.rects,n),t}),{}),r=o[e.placement],h=r.y;null!=e.modifiersData.popperOffsets&&(e.modifiersData.popperOffsets.x+=r.x,e.modifiersData.popperOffsets.y+=h),e.modifiersData[i]=o}},$e={name:"popperOffsets",enabled:!0,phase:"read",fn:function(t){var e=t.state;e.modifiersData[t.name]=xe({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})},data:{}},Se={name:"preventOverflow",enabled:!0,phase:"main",fn:function(t){var e=t.state,i=t.options,s=t.name,n=i.mainAxis,o=void 0===n||n,r=i.altAxis,h=void 0!==r&&r,a=i.tether,c=void 0===a||a,u=i.tetherOffset,l=void 0===u?0:u,d=Te(e,{boundary:i.boundary,rootBoundary:i.rootBoundary,padding:i.padding,altBoundary:i.altBoundary}),f=Ft(e.placement),p=ae(e.placement),b=!p,m=te(f),g="x"===m?"y":"x",v=e.modifiersData.popperOffsets,w=e.rects.reference,y=e.rects.popper,O="function"==typeof l?l(Object.assign({},e.rects,{placement:e.placement})):l,j={x:0,y:0};if(v){if(o||h){var E="y"===m?pt:gt,_="y"===m?bt:mt,x="y"===m?"height":"width",T=v[m],k=v[m]+d[E],A=v[m]-d[_],C=c?-y[x]/2:0,N=p===yt?w[x]:y[x],M=p===yt?-y[x]:-w[x],$=e.elements.arrow,S=c&&$?qt($):{width:0,height:0},D=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},I=D[E],P=D[_],R=ne(0,w[x],S[x]),B=b?w[x]/2-C-R-I-O:N-R-I-O,L=b?-w[x]/2+C+R+P+O:M+R+P+O,z=e.elements.arrow&&Xt(e.elements.arrow),H=e.modifiersData.offset?e.modifiersData.offset[e.placement][m]:0,U=v[m]+B-H-(z?"y"===m?z.clientTop||0:z.clientLeft||0:0),W=v[m]+L-H;if(o){var F=ne(c?ie(k,U):k,T,c?ee(A,W):A);v[m]=F,j[m]=F-T}if(h){var Q=v[g],q=Q+d["x"===m?pt:gt],V=Q-d["x"===m?bt:mt],K=ne(c?ie(q,U):q,Q,c?ee(V,W):V);v[g]=K,j[g]=K-Q}}e.modifiersData[s]=j}},requiresIfExists:["offset"]};function De(t,e,i){void 0===i&&(i=!1);var s=Ht(e);Ht(e)&&function(t){t.getBoundingClientRect()}(e);var n,o,r=Gt(e),h=Qt(t),a={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(s||!s&&!i)&&(("body"!==Bt(e)||ye(r))&&(a=(n=e)!==Lt(n)&&Ht(n)?{scrollLeft:(o=n).scrollLeft,scrollTop:o.scrollTop}:ve(n)),Ht(e)?((c=Qt(e)).x+=e.clientLeft,c.y+=e.clientTop):r&&(c.x=we(r))),{x:h.left+a.scrollLeft-c.x,y:h.top+a.scrollTop-c.y,width:h.width,height:h.height}}function Ie(t){var e=new Map,i=new Set,s=[];function n(t){i.add(t.name),[].concat(t.requires||[],t.requiresIfExists||[]).forEach((function(t){if(!i.has(t)){var s=e.get(t);s&&n(s)}})),s.push(t)}return t.forEach((function(t){e.set(t.name,t)})),t.forEach((function(t){i.has(t.name)||n(t)})),s}var Pe={placement:"bottom",modifiers:[],strategy:"absolute"};function Re(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return!e.some((function(t){return!(t&&"function"==typeof t.getBoundingClientRect)}))}function Be(t){void 0===t&&(t={});var e=t.defaultModifiers,i=void 0===e?[]:e,s=t.defaultOptions,n=void 0===s?Pe:s;return function(t,e,s){void 0===s&&(s=n);var o,r,h={placement:"bottom",orderedModifiers:[],options:Object.assign({},Pe,n),modifiersData:{},elements:{reference:t,popper:e},attributes:{},styles:{}},a=[],c=!1,u={state:h,setOptions:function(s){var o="function"==typeof s?s(h.options):s;l(),h.options=Object.assign({},n,h.options,o),h.scrollParents={reference:zt(t)?je(t):t.contextElement?je(t.contextElement):[],popper:je(e)};var r,c,d=function(t){var e=Ie(t);return Rt.reduce((function(t,i){return t.concat(e.filter((function(t){return t.phase===i})))}),[])}((r=[].concat(i,h.options.modifiers),c=r.reduce((function(t,e){var i=t[e.name];return t[e.name]=i?Object.assign({},i,e,{options:Object.assign({},i.options,e.options),data:Object.assign({},i.data,e.data)}):e,t}),{}),Object.keys(c).map((function(t){return c[t]}))));return h.orderedModifiers=d.filter((function(t){return t.enabled})),h.orderedModifiers.forEach((function(t){var e=t.options,i=t.effect;if("function"==typeof i){var s=i({state:h,name:t.name,instance:u,options:void 0===e?{}:e});a.push(s||function(){})}})),u.update()},forceUpdate:function(){if(!c){var t=h.elements,e=t.reference,i=t.popper;if(Re(e,i)){h.rects={reference:De(e,Xt(i),"fixed"===h.options.strategy),popper:qt(i)},h.reset=!1,h.placement=h.options.placement,h.orderedModifiers.forEach((function(t){return h.modifiersData[t.name]=Object.assign({},t.data)}));for(var s=0;s<h.orderedModifiers.length;s++)if(!0!==h.reset){var n=h.orderedModifiers[s],o=n.fn,r=n.options;"function"==typeof o&&(h=o({state:h,options:void 0===r?{}:r,name:n.name,instance:u})||h)}else h.reset=!1,s=-1}}},update:(o=function(){return new Promise((function(t){u.forceUpdate(),t(h)}))},function(){return r||(r=new Promise((function(t){Promise.resolve().then((function(){r=void 0,t(o())}))}))),r}),destroy:function(){l(),c=!0}};if(!Re(t,e))return u;function l(){a.forEach((function(t){return t()})),a=[]}return u.setOptions(s).then((function(t){!c&&s.onFirstUpdate&&s.onFirstUpdate(t)})),u}}var Le=Be(),ze=Be({defaultModifiers:[fe,$e,le,Wt]}),He=Be({defaultModifiers:[fe,$e,le,Wt,Me,ke,Se,he,Ne]});const Ue=Object.freeze({__proto__:null,popperGenerator:Be,detectOverflow:Te,createPopperBase:Le,createPopper:He,createPopperLite:ze,top:pt,bottom:bt,right:mt,left:gt,auto:vt,basePlacements:wt,start:yt,end:Ot,clippingParents:jt,viewport:Et,popper:_t,reference:xt,variationPlacements:Tt,placements:kt,beforeRead:At,read:Ct,afterRead:Nt,beforeMain:Mt,main:$t,afterMain:St,beforeWrite:Dt,write:It,afterWrite:Pt,modifierPhases:Rt,applyStyles:Wt,arrow:he,computeStyles:le,eventListeners:fe,flip:ke,hide:Ne,offset:Me,popperOffsets:$e,preventOverflow:Se}),We="dropdown",Fe="Escape",Qe="Space",qe="ArrowUp",Ve="ArrowDown",Ke=new RegExp("ArrowUp|ArrowDown|Escape"),Ye="click.bs.dropdown.data-api",Ge="keydown.bs.dropdown.data-api",Ze="show",Je='[data-bs-toggle="dropdown"]',Xe=".dropdown-menu",ti=p()?"top-end":"top-start",ei=p()?"top-start":"top-end",ii=p()?"bottom-end":"bottom-start",si=p()?"bottom-start":"bottom-end",ni=p()?"left-start":"right-start",oi=p()?"right-start":"left-start",ri={offset:[0,2],boundary:"clippingParents",reference:"toggle",display:"dynamic",popperConfig:null,autoClose:!0},hi={offset:"(array|string|function)",boundary:"(string|element)",reference:"(string|element|object)",display:"string",popperConfig:"(null|object|function)",autoClose:"(boolean|string)"};class ai extends R{constructor(t,e){super(t),this._popper=null,this._config=this._getConfig(e),this._menu=this._getMenuElement(),this._inNavbar=this._detectNavbar()}static get Default(){return ri}static get DefaultType(){return hi}static get NAME(){return We}toggle(){return this._isShown()?this.hide():this.show()}show(){if(c(this._element)||this._isShown(this._menu))return;const t={relatedTarget:this._element};if(D.trigger(this._element,"show.bs.dropdown",t).defaultPrevented)return;const e=ai.getParentFromElement(this._element);this._inNavbar?F.setDataAttribute(this._menu,"popper","none"):this._createPopper(e),"ontouchstart"in document.documentElement&&!e.closest(".navbar-nav")&&[].concat(...document.body.children).forEach((t=>D.on(t,"mouseover",l))),this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(Ze),this._element.classList.add(Ze),D.trigger(this._element,"shown.bs.dropdown",t)}hide(){!c(this._element)&&this._isShown(this._menu)&&this._completeHide({relatedTarget:this._element})}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(t){D.trigger(this._element,"hide.bs.dropdown",t).defaultPrevented||("ontouchstart"in document.documentElement&&[].concat(...document.body.children).forEach((t=>D.off(t,"mouseover",l))),this._popper&&this._popper.destroy(),this._menu.classList.remove(Ze),this._element.classList.remove(Ze),this._element.setAttribute("aria-expanded","false"),F.removeDataAttribute(this._menu,"popper"),D.trigger(this._element,"hidden.bs.dropdown",t))}_getConfig(t){if(t=Object.assign(Object.assign(Object.assign({},this.constructor.Default),F.getDataAttributes(this._element)),t),h(We,t,this.constructor.DefaultType),"object"==typeof t.reference&&!o(t.reference)&&"function"!=typeof t.reference.getBoundingClientRect)throw new TypeError(`${We.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return t}_createPopper(t){if(void 0===Ue)throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");let e=this._element;"parent"===this._config.reference?e=t:o(this._config.reference)?e=r(this._config.reference):"object"==typeof this._config.reference&&(e=this._config.reference);const i=this._getPopperConfig(),s=i.modifiers.find((t=>"applyStyles"===t.name&&!1===t.enabled));this._popper=He(e,this._menu,i),s&&F.setDataAttribute(this._menu,"popper","static")}_isShown(t=this._element){return t.classList.contains(Ze)}_getMenuElement(){return Q.next(this._element,Xe)[0]}_getPlacement(){const t=this._element.parentNode;if(t.classList.contains("dropend"))return ni;if(t.classList.contains("dropstart"))return oi;const e="end"===getComputedStyle(this._menu).getPropertyValue("--bs-position").trim();return t.classList.contains("dropup")?e?ei:ti:e?si:ii}_detectNavbar(){return null!==this._element.closest(".navbar")}_getOffset(){const{offset:t}=this._config;return"string"==typeof t?t.split(",").map((t=>Number.parseInt(t,10))):"function"==typeof t?e=>t(e,this._element):t}_getPopperConfig(){const t={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return"static"===this._config.display&&(t.modifiers=[{name:"applyStyles",enabled:!1}]),Object.assign(Object.assign({},t),"function"==typeof this._config.popperConfig?this._config.popperConfig(t):this._config.popperConfig)}_selectMenuItem({key:t,target:e}){const i=Q.find(".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",this._menu).filter(a);i.length&&v(i,e,t===Ve,!i.includes(e)).focus()}static jQueryInterface(t){return this.each((function(){const e=ai.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}}))}static clearMenus(t){if(t&&(2===t.button||"keyup"===t.type&&"Tab"!==t.key))return;const e=Q.find(Je);for(let i=0,s=e.length;i<s;i++){const s=ai.getInstance(e[i]);if(!s||!1===s._config.autoClose)continue;if(!s._isShown())continue;const n={relatedTarget:s._element};if(t){const e=t.composedPath(),i=e.includes(s._menu);if(e.includes(s._element)||"inside"===s._config.autoClose&&!i||"outside"===s._config.autoClose&&i)continue;if(s._menu.contains(t.target)&&("keyup"===t.type&&"Tab"===t.key||/input|select|option|textarea|form/i.test(t.target.tagName)))continue;"click"===t.type&&(n.clickEvent=t)}s._completeHide(n)}}static getParentFromElement(t){return s(t)||t.parentNode}static dataApiKeydownHandler(t){if(/input|textarea/i.test(t.target.tagName)?t.key===Qe||t.key!==Fe&&(t.key!==Ve&&t.key!==qe||t.target.closest(Xe)):!Ke.test(t.key))return;const e=this.classList.contains(Ze);if(!e&&t.key===Fe)return;if(t.preventDefault(),t.stopPropagation(),c(this))return;const i=this.matches(Je)?this:Q.prev(this,Je)[0],s=ai.getOrCreateInstance(i);if(t.key!==Fe)return t.key===qe||t.key===Ve?(e||s.show(),void s._selectMenuItem(t)):void(e&&t.key!==Qe||ai.clearMenus());s.hide()}}D.on(document,Ge,Je,ai.dataApiKeydownHandler),D.on(document,Ge,Xe,ai.dataApiKeydownHandler),D.on(document,Ye,ai.clearMenus),D.on(document,"keyup.bs.dropdown.data-api",ai.clearMenus),D.on(document,Ye,Je,(function(t){t.preventDefault(),ai.getOrCreateInstance(this).toggle()})),b(ai);const ci=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",ui=".sticky-top";class li{constructor(){this._element=document.body}getWidth(){const t=document.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}hide(){const t=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,"paddingRight",(e=>e+t)),this._setElementAttributes(ci,"paddingRight",(e=>e+t)),this._setElementAttributes(ui,"marginRight",(e=>e-t))}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(t,e,i){const s=this.getWidth();this._applyManipulationCallback(t,(t=>{if(t!==this._element&&window.innerWidth>t.clientWidth+s)return;this._saveInitialAttribute(t,e);const n=window.getComputedStyle(t)[e];t.style[e]=`${i(Number.parseFloat(n))}px`}))}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,"paddingRight"),this._resetElementAttributes(ci,"paddingRight"),this._resetElementAttributes(ui,"marginRight")}_saveInitialAttribute(t,e){const i=t.style[e];i&&F.setDataAttribute(t,e,i)}_resetElementAttributes(t,e){this._applyManipulationCallback(t,(t=>{const i=F.getDataAttribute(t,e);void 0===i?t.style.removeProperty(e):(F.removeDataAttribute(t,e),t.style[e]=i)}))}_applyManipulationCallback(t,e){o(t)?e(t):Q.find(t,this._element).forEach(e)}isOverflowing(){return this.getWidth()>0}}const di={className:"modal-backdrop",isVisible:!0,isAnimated:!1,rootElement:"body",clickCallback:null},fi={className:"string",isVisible:"boolean",isAnimated:"boolean",rootElement:"(element|string)",clickCallback:"(function|null)"},pi="show",bi="mousedown.bs.backdrop";class mi{constructor(t){this._config=this._getConfig(t),this._isAppended=!1,this._element=null}show(t){this._config.isVisible?(this._append(),this._config.isAnimated&&this._getElement(),this._getElement().classList.add(pi),this._emulateAnimation((()=>{m(t)}))):m(t)}hide(t){this._config.isVisible?(this._getElement().classList.remove(pi),this._emulateAnimation((()=>{this.dispose(),m(t)}))):m(t)}_getElement(){if(!this._element){const t=document.createElement("div");t.className=this._config.className,this._config.isAnimated&&t.classList.add("fade"),this._element=t}return this._element}_getConfig(t){return(t=Object.assign(Object.assign({},di),"object"==typeof t?t:{})).rootElement=r(t.rootElement),h("backdrop",t,fi),t}_append(){this._isAppended||(this._config.rootElement.append(this._getElement()),D.on(this._getElement(),bi,(()=>{m(this._config.clickCallback)})),this._isAppended=!0)}dispose(){this._isAppended&&(D.off(this._element,bi),this._element.remove(),this._isAppended=!1)}_emulateAnimation(t){g(t,this._getElement(),this._config.isAnimated)}}const gi={trapElement:null,autofocus:!0},vi={trapElement:"element",autofocus:"boolean"},wi=".bs.focustrap",yi="backward";class Oi{constructor(t){this._config=this._getConfig(t),this._isActive=!1,this._lastTabNavDirection=null}activate(){const{trapElement:t,autofocus:e}=this._config;this._isActive||(e&&t.focus(),D.off(document,wi),D.on(document,"focusin.bs.focustrap",(t=>this._handleFocusin(t))),D.on(document,"keydown.tab.bs.focustrap",(t=>this._handleKeydown(t))),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,D.off(document,wi))}_handleFocusin(t){const{target:e}=t,{trapElement:i}=this._config;if(e===document||e===i||i.contains(e))return;const s=Q.focusableChildren(i);0===s.length?i.focus():this._lastTabNavDirection===yi?s[s.length-1].focus():s[0].focus()}_handleKeydown(t){"Tab"===t.key&&(this._lastTabNavDirection=t.shiftKey?yi:"forward")}_getConfig(t){return t=Object.assign(Object.assign({},gi),"object"==typeof t?t:{}),h("focustrap",t,vi),t}}const ji="modal",Ei="Escape",_i={backdrop:!0,keyboard:!0,focus:!0},xi={backdrop:"(boolean|string)",keyboard:"boolean",focus:"boolean"},Ti="hidden.bs.modal",ki="show.bs.modal",Ai="resize.bs.modal",Ci="click.dismiss.bs.modal",Ni="keydown.dismiss.bs.modal",Mi="mousedown.dismiss.bs.modal",$i="modal-open",Si="show",Di="modal-static";class Ii extends R{constructor(t,e){super(t),this._config=this._getConfig(e),this._dialog=Q.findOne(".modal-dialog",this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._ignoreBackdropClick=!1,this._isTransitioning=!1,this._scrollBar=new li}static get Default(){return _i}static get NAME(){return ji}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){this._isShown||this._isTransitioning||D.trigger(this._element,ki,{relatedTarget:t}).defaultPrevented||(this._isShown=!0,this._isAnimated()&&(this._isTransitioning=!0),this._scrollBar.hide(),document.body.classList.add($i),this._adjustDialog(),this._setEscapeEvent(),this._setResizeEvent(),D.on(this._dialog,Mi,(()=>{D.one(this._element,"mouseup.dismiss.bs.modal",(t=>{t.target===this._element&&(this._ignoreBackdropClick=!0)}))})),this._showBackdrop((()=>this._showElement(t))))}hide(){if(!this._isShown||this._isTransitioning)return;if(D.trigger(this._element,"hide.bs.modal").defaultPrevented)return;this._isShown=!1;const t=this._isAnimated();t&&(this._isTransitioning=!0),this._setEscapeEvent(),this._setResizeEvent(),this._focustrap.deactivate(),this._element.classList.remove(Si),D.off(this._element,Ci),D.off(this._dialog,Mi),this._queueCallback((()=>this._hideModal()),this._element,t)}dispose(){[window,this._dialog].forEach((t=>D.off(t,".bs.modal"))),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new mi({isVisible:Boolean(this._config.backdrop),isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new Oi({trapElement:this._element})}_getConfig(t){return t=Object.assign(Object.assign(Object.assign({},_i),F.getDataAttributes(this._element)),"object"==typeof t?t:{}),h(ji,t,xi),t}_showElement(t){const e=this._isAnimated(),i=Q.findOne(".modal-body",this._dialog);this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE||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,i&&(i.scrollTop=0),this._element.classList.add(Si),this._queueCallback((()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,D.trigger(this._element,"shown.bs.modal",{relatedTarget:t})}),this._dialog,e)}_setEscapeEvent(){this._isShown?D.on(this._element,Ni,(t=>{this._config.keyboard&&t.key===Ei?(t.preventDefault(),this.hide()):this._config.keyboard||t.key!==Ei||this._triggerBackdropTransition()})):D.off(this._element,Ni)}_setResizeEvent(){this._isShown?D.on(window,Ai,(()=>this._adjustDialog())):D.off(window,Ai)}_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($i),this._resetAdjustments(),this._scrollBar.reset(),D.trigger(this._element,Ti)}))}_showBackdrop(t){D.on(this._element,Ci,(t=>{this._ignoreBackdropClick?this._ignoreBackdropClick=!1:t.target===t.currentTarget&&(!0===this._config.backdrop?this.hide():"static"===this._config.backdrop&&this._triggerBackdropTransition())})),this._backdrop.show(t)}_isAnimated(){return this._element.classList.contains("fade")}_triggerBackdropTransition(){if(D.trigger(this._element,"hidePrevented.bs.modal").defaultPrevented)return;const{classList:t,scrollHeight:e,style:i}=this._element,s=e>document.documentElement.clientHeight;!s&&"hidden"===i.overflowY||t.contains(Di)||(s||(i.overflowY="hidden"),t.add(Di),this._queueCallback((()=>{t.remove(Di),s||this._queueCallback((()=>{i.overflowY=""}),this._dialog)}),this._dialog),this._element.focus())}_adjustDialog(){const t=this._element.scrollHeight>document.documentElement.clientHeight,e=this._scrollBar.getWidth(),i=e>0;(!i&&t&&!p()||i&&!t&&p())&&(this._element.style.paddingLeft=`${e}px`),(i&&!t&&!p()||!i&&t&&p())&&(this._element.style.paddingRight=`${e}px`)}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(t,e){return this.each((function(){const i=Ii.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===i[t])throw new TypeError(`No method named "${t}"`);i[t](e)}}))}}D.on(document,"click.bs.modal.data-api",'[data-bs-toggle="modal"]',(function(t){const e=s(this);["A","AREA"].includes(this.tagName)&&t.preventDefault(),D.one(e,ki,(t=>{t.defaultPrevented||D.one(e,Ti,(()=>{a(this)&&this.focus()}))}));const i=Q.findOne(".modal.show");i&&Ii.getInstance(i).hide(),Ii.getOrCreateInstance(e).toggle(this)})),B(Ii),b(Ii);const Pi="offcanvas",Ri={backdrop:!0,keyboard:!0,scroll:!1},Bi={backdrop:"boolean",keyboard:"boolean",scroll:"boolean"},Li="show",zi=".offcanvas.show",Hi="hidden.bs.offcanvas";class Ui extends R{constructor(t,e){super(t),this._config=this._getConfig(e),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get NAME(){return Pi}static get Default(){return Ri}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){this._isShown||D.trigger(this._element,"show.bs.offcanvas",{relatedTarget:t}).defaultPrevented||(this._isShown=!0,this._element.style.visibility="visible",this._backdrop.show(),this._config.scroll||(new li).hide(),this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(Li),this._queueCallback((()=>{this._config.scroll||this._focustrap.activate(),D.trigger(this._element,"shown.bs.offcanvas",{relatedTarget:t})}),this._element,!0))}hide(){this._isShown&&(D.trigger(this._element,"hide.bs.offcanvas").defaultPrevented||(this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.remove(Li),this._backdrop.hide(),this._queueCallback((()=>{this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._element.style.visibility="hidden",this._config.scroll||(new li).reset(),D.trigger(this._element,Hi)}),this._element,!0)))}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_getConfig(t){return t=Object.assign(Object.assign(Object.assign({},Ri),F.getDataAttributes(this._element)),"object"==typeof t?t:{}),h(Pi,t,Bi),t}_initializeBackDrop(){return new mi({className:"offcanvas-backdrop",isVisible:this._config.backdrop,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:()=>this.hide()})}_initializeFocusTrap(){return new Oi({trapElement:this._element})}_addEventListeners(){D.on(this._element,"keydown.dismiss.bs.offcanvas",(t=>{this._config.keyboard&&"Escape"===t.key&&this.hide()}))}static jQueryInterface(t){return this.each((function(){const e=Ui.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method named "${t}"`);e[t](this)}}))}}D.on(document,"click.bs.offcanvas.data-api",'[data-bs-toggle="offcanvas"]',(function(t){const e=s(this);if(["A","AREA"].includes(this.tagName)&&t.preventDefault(),c(this))return;D.one(e,Hi,(()=>{a(this)&&this.focus()}));const i=Q.findOne(zi);i&&i!==e&&Ui.getInstance(i).hide(),Ui.getOrCreateInstance(e).toggle(this)})),D.on(window,"load.bs.offcanvas.data-api",(()=>Q.find(zi).forEach((t=>Ui.getOrCreateInstance(t).show())))),B(Ui),b(Ui);const Wi=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),Fi=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^#&/:?]*(?:[#/?]|$))/i,Qi=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[\d+/a-z]+=*$/i,qi=(t,e)=>{const i=t.nodeName.toLowerCase();if(e.includes(i))return!Wi.has(i)||Boolean(Fi.test(t.nodeValue)||Qi.test(t.nodeValue));const s=e.filter((t=>t instanceof RegExp));for(let t=0,e=s.length;t<e;t++)if(s[t].test(i))return!0;return!1};function Vi(t,e,i){if(!t.length)return t;if(i&&"function"==typeof i)return i(t);const s=(new window.DOMParser).parseFromString(t,"text/html"),n=[].concat(...s.body.querySelectorAll("*"));for(let t=0,i=n.length;t<i;t++){const i=n[t],s=i.nodeName.toLowerCase();if(!Object.keys(e).includes(s)){i.remove();continue}const o=[].concat(...i.attributes),r=[].concat(e["*"]||[],e[s]||[]);o.forEach((t=>{qi(t,r)||i.removeAttribute(t.nodeName)}))}return s.body.innerHTML}const Ki="tooltip",Yi=new Set(["sanitize","allowList","sanitizeFn"]),Gi={animation:"boolean",template:"string",title:"(string|element|function)",trigger:"string",delay:"(number|object)",html:"boolean",selector:"(string|boolean)",placement:"(string|function)",offset:"(array|string|function)",container:"(string|element|boolean)",fallbackPlacements:"array",boundary:"(string|element)",customClass:"(string|function)",sanitize:"boolean",sanitizeFn:"(null|function)",allowList:"object",popperConfig:"(null|object|function)"},Zi={AUTO:"auto",TOP:"top",RIGHT:p()?"left":"right",BOTTOM:"bottom",LEFT:p()?"right":"left"},Ji={animation:!0,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,selector:!1,placement:"top",offset:[0,0],container:!1,fallbackPlacements:["top","right","bottom","left"],boundary:"clippingParents",customClass:"",sanitize:!0,sanitizeFn:null,allowList:{"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],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:[]},popperConfig:null},Xi={HIDE:"hide.bs.tooltip",HIDDEN:"hidden.bs.tooltip",SHOW:"show.bs.tooltip",SHOWN:"shown.bs.tooltip",INSERTED:"inserted.bs.tooltip",CLICK:"click.bs.tooltip",FOCUSIN:"focusin.bs.tooltip",FOCUSOUT:"focusout.bs.tooltip",MOUSEENTER:"mouseenter.bs.tooltip",MOUSELEAVE:"mouseleave.bs.tooltip"},ts="fade",es="show",is="show",ss="out",ns=".tooltip-inner",os=".modal",rs="hide.bs.modal",hs="hover",as="focus";class cs extends R{constructor(t,e){if(void 0===Ue)throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");super(t),this._isEnabled=!0,this._timeout=0,this._hoverState="",this._activeTrigger={},this._popper=null,this._config=this._getConfig(e),this.tip=null,this._setListeners()}static get Default(){return Ji}static get NAME(){return Ki}static get Event(){return Xi}static get DefaultType(){return Gi}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(t){if(this._isEnabled)if(t){const e=this._initializeOnDelegatedTarget(t);e._activeTrigger.click=!e._activeTrigger.click,e._isWithActiveTrigger()?e._enter(null,e):e._leave(null,e)}else{if(this.getTipElement().classList.contains(es))return void this._leave(null,this);this._enter(null,this)}}dispose(){clearTimeout(this._timeout),D.off(this._element.closest(os),rs,this._hideModalHandler),this.tip&&this.tip.remove(),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 t=D.trigger(this._element,this.constructor.Event.SHOW),e=u(this._element),i=null===e?this._element.ownerDocument.documentElement.contains(this._element):e.contains(this._element);if(t.defaultPrevented||!i)return;"tooltip"===this.constructor.NAME&&this.tip&&this.getTitle()!==this.tip.querySelector(ns).innerHTML&&(this._disposePopper(),this.tip.remove(),this.tip=null);const s=this.getTipElement(),n=(t=>{do{t+=Math.floor(1e6*Math.random())}while(document.getElementById(t));return t})(this.constructor.NAME);s.setAttribute("id",n),this._element.setAttribute("aria-describedby",n),this._config.animation&&s.classList.add(ts);const o="function"==typeof this._config.placement?this._config.placement.call(this,s,this._element):this._config.placement,r=this._getAttachment(o);this._addAttachmentClass(r);const{container:h}=this._config;P.set(s,this.constructor.DATA_KEY,this),this._element.ownerDocument.documentElement.contains(this.tip)||(h.append(s),D.trigger(this._element,this.constructor.Event.INSERTED)),this._popper?this._popper.update():this._popper=He(this._element,s,this._getPopperConfig(r)),s.classList.add(es);const a=this._resolvePossibleFunction(this._config.customClass);a&&s.classList.add(...a.split(" ")),"ontouchstart"in document.documentElement&&[].concat(...document.body.children).forEach((t=>{D.on(t,"mouseover",l)}));const c=this.tip.classList.contains(ts);this._queueCallback((()=>{const t=this._hoverState;this._hoverState=null,D.trigger(this._element,this.constructor.Event.SHOWN),t===ss&&this._leave(null,this)}),this.tip,c)}hide(){if(!this._popper)return;const t=this.getTipElement();if(D.trigger(this._element,this.constructor.Event.HIDE).defaultPrevented)return;t.classList.remove(es),"ontouchstart"in document.documentElement&&[].concat(...document.body.children).forEach((t=>D.off(t,"mouseover",l))),this._activeTrigger.click=!1,this._activeTrigger.focus=!1,this._activeTrigger.hover=!1;const e=this.tip.classList.contains(ts);this._queueCallback((()=>{this._isWithActiveTrigger()||(this._hoverState!==is&&t.remove(),this._cleanTipClass(),this._element.removeAttribute("aria-describedby"),D.trigger(this._element,this.constructor.Event.HIDDEN),this._disposePopper())}),this.tip,e),this._hoverState=""}update(){null!==this._popper&&this._popper.update()}isWithContent(){return Boolean(this.getTitle())}getTipElement(){if(this.tip)return this.tip;const t=document.createElement("div");t.innerHTML=this._config.template;const e=t.children[0];return this.setContent(e),e.classList.remove(ts,es),this.tip=e,this.tip}setContent(t){this._sanitizeAndSetContent(t,this.getTitle(),ns)}_sanitizeAndSetContent(t,e,i){const s=Q.findOne(i,t);e||!s?this.setElementContent(s,e):s.remove()}setElementContent(t,e){if(null!==t)return o(e)?(e=r(e),void(this._config.html?e.parentNode!==t&&(t.innerHTML="",t.append(e)):t.textContent=e.textContent)):void(this._config.html?(this._config.sanitize&&(e=Vi(e,this._config.allowList,this._config.sanitizeFn)),t.innerHTML=e):t.textContent=e)}getTitle(){const t=this._element.getAttribute("data-bs-original-title")||this._config.title;return this._resolvePossibleFunction(t)}updateAttachment(t){return"right"===t?"end":"left"===t?"start":t}_initializeOnDelegatedTarget(t,e){return e||this.constructor.getOrCreateInstance(t.delegateTarget,this._getDelegateConfig())}_getOffset(){const{offset:t}=this._config;return"string"==typeof t?t.split(",").map((t=>Number.parseInt(t,10))):"function"==typeof t?e=>t(e,this._element):t}_resolvePossibleFunction(t){return"function"==typeof t?t.call(this._element):t}_getPopperConfig(t){const e={placement:t,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:"onChange",enabled:!0,phase:"afterWrite",fn:t=>this._handlePopperPlacementChange(t)}],onFirstUpdate:t=>{t.options.placement!==t.placement&&this._handlePopperPlacementChange(t)}};return Object.assign(Object.assign({},e),"function"==typeof this._config.popperConfig?this._config.popperConfig(e):this._config.popperConfig)}_addAttachmentClass(t){this.getTipElement().classList.add(`${this._getBasicClassPrefix()}-${this.updateAttachment(t)}`)}_getAttachment(t){return Zi[t.toUpperCase()]}_setListeners(){this._config.trigger.split(" ").forEach((t=>{if("click"===t)D.on(this._element,this.constructor.Event.CLICK,this._config.selector,(t=>this.toggle(t)));else if("manual"!==t){const e=t===hs?this.constructor.Event.MOUSELEAVE:this.constructor.Event.FOCUSOUT;D.on(this._element,t===hs?this.constructor.Event.MOUSEENTER:this.constructor.Event.FOCUSIN,this._config.selector,(t=>this._enter(t))),D.on(this._element,e,this._config.selector,(t=>this._leave(t)))}})),this._hideModalHandler=()=>{this._element&&this.hide()},D.on(this._element.closest(os),rs,this._hideModalHandler),this._config.selector?this._config=Object.assign(Object.assign({},this._config),{trigger:"manual",selector:""}):this._fixTitle()}_fixTitle(){const t=this._element.getAttribute("title"),e=typeof this._element.getAttribute("data-bs-original-title");(t||"string"!==e)&&(this._element.setAttribute("data-bs-original-title",t||""),!t||this._element.getAttribute("aria-label")||this._element.textContent||this._element.setAttribute("aria-label",t),this._element.setAttribute("title",""))}_enter(t,e){e=this._initializeOnDelegatedTarget(t,e),t&&(e._activeTrigger["focusin"===t.type?as:hs]=!0),e.getTipElement().classList.contains(es)||e._hoverState===is?e._hoverState=is:(clearTimeout(e._timeout),e._hoverState=is,e._config.delay&&e._config.delay.show?e._timeout=setTimeout((()=>{e._hoverState===is&&e.show()}),e._config.delay.show):e.show())}_leave(t,e){e=this._initializeOnDelegatedTarget(t,e),t&&(e._activeTrigger["focusout"===t.type?as:hs]=e._element.contains(t.relatedTarget)),e._isWithActiveTrigger()||(clearTimeout(e._timeout),e._hoverState=ss,e._config.delay&&e._config.delay.hide?e._timeout=setTimeout((()=>{e._hoverState===ss&&e.hide()}),e._config.delay.hide):e.hide())}_isWithActiveTrigger(){for(const t in this._activeTrigger)if(this._activeTrigger[t])return!0;return!1}_getConfig(t){const e=F.getDataAttributes(this._element);return Object.keys(e).forEach((t=>{Yi.has(t)&&delete e[t]})),(t=Object.assign(Object.assign(Object.assign({},this.constructor.Default),e),"object"==typeof t&&t?t:{})).container=!1===t.container?document.body:r(t.container),"number"==typeof t.delay&&(t.delay={show:t.delay,hide:t.delay}),"number"==typeof t.title&&(t.title=t.title.toString()),"number"==typeof t.content&&(t.content=t.content.toString()),h(Ki,t,this.constructor.DefaultType),t.sanitize&&(t.template=Vi(t.template,t.allowList,t.sanitizeFn)),t}_getDelegateConfig(){const t={};for(const e in this._config)this.constructor.Default[e]!==this._config[e]&&(t[e]=this._config[e]);return t}_cleanTipClass(){const t=this.getTipElement(),e=new RegExp(`(^|\\s)${this._getBasicClassPrefix()}\\S+`,"g"),i=t.getAttribute("class").match(e);null!==i&&i.length>0&&i.map((t=>t.trim())).forEach((e=>t.classList.remove(e)))}_getBasicClassPrefix(){return"bs-tooltip"}_handlePopperPlacementChange(t){const{state:e}=t;e&&(this.tip=e.elements.popper,this._cleanTipClass(),this._addAttachmentClass(this._getAttachment(e.placement)))}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null)}static jQueryInterface(t){return this.each((function(){const e=cs.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}}))}}b(cs);const us=Object.assign(Object.assign({},cs.Default),{placement:"right",offset:[0,8],trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="popover-arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>'}),ls=Object.assign(Object.assign({},cs.DefaultType),{content:"(string|element|function)"}),ds={HIDE:"hide.bs.popover",HIDDEN:"hidden.bs.popover",SHOW:"show.bs.popover",SHOWN:"shown.bs.popover",INSERTED:"inserted.bs.popover",CLICK:"click.bs.popover",FOCUSIN:"focusin.bs.popover",FOCUSOUT:"focusout.bs.popover",MOUSEENTER:"mouseenter.bs.popover",MOUSELEAVE:"mouseleave.bs.popover"};class fs extends cs{static get Default(){return us}static get NAME(){return"popover"}static get Event(){return ds}static get DefaultType(){return ls}isWithContent(){return this.getTitle()||this._getContent()}setContent(t){this._sanitizeAndSetContent(t,this.getTitle(),".popover-header"),this._sanitizeAndSetContent(t,this._getContent(),".popover-body")}_getContent(){return this._resolvePossibleFunction(this._config.content)}_getBasicClassPrefix(){return"bs-popover"}static jQueryInterface(t){return this.each((function(){const e=fs.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}}))}}b(fs);const ps="scrollspy",bs={offset:10,method:"auto",target:""},ms={offset:"number",method:"string",target:"(string|element)"},gs="active",vs=".nav-link, .list-group-item, .dropdown-item",ws="position";class ys extends R{constructor(t,e){super(t),this._scrollElement="BODY"===this._element.tagName?window:this._element,this._config=this._getConfig(e),this._offsets=[],this._targets=[],this._activeTarget=null,this._scrollHeight=0,D.on(this._scrollElement,"scroll.bs.scrollspy",(()=>this._process())),this.refresh(),this._process()}static get Default(){return bs}static get NAME(){return ps}refresh(){const t="auto"===this._config.method?this._scrollElement===this._scrollElement.window?"offset":ws:this._config.method,e=t===ws?this._getScrollTop():0;this._offsets=[],this._targets=[],this._scrollHeight=this._getScrollHeight(),Q.find(vs,this._config.target).map((s=>{const n=i(s),o=n?Q.findOne(n):null;if(o){const i=o.getBoundingClientRect();if(i.width||i.height)return[F[t](o).top+e,n]}return null})).filter((t=>t)).sort(((t,e)=>t[0]-e[0])).forEach((t=>{this._offsets.push(t[0]),this._targets.push(t[1])}))}dispose(){D.off(this._scrollElement,".bs.scrollspy"),super.dispose()}_getConfig(t){return(t=Object.assign(Object.assign(Object.assign({},bs),F.getDataAttributes(this._element)),"object"==typeof t&&t?t:{})).target=r(t.target)||document.documentElement,h(ps,t,ms),t}_getScrollTop(){return this._scrollElement===window?this._scrollElement.pageYOffset:this._scrollElement.scrollTop}_getScrollHeight(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)}_getOffsetHeight(){return this._scrollElement===window?window.innerHeight:this._scrollElement.getBoundingClientRect().height}_process(){const t=this._getScrollTop()+this._config.offset,e=this._getScrollHeight(),i=this._config.offset+e-this._getOffsetHeight();if(this._scrollHeight!==e&&this.refresh(),t>=i){const t=this._targets[this._targets.length-1];this._activeTarget!==t&&this._activate(t)}else{if(this._activeTarget&&t<this._offsets[0]&&this._offsets[0]>0)return this._activeTarget=null,void this._clear();for(let e=this._offsets.length;e--;)this._activeTarget!==this._targets[e]&&t>=this._offsets[e]&&(void 0===this._offsets[e+1]||t<this._offsets[e+1])&&this._activate(this._targets[e])}}_activate(t){this._activeTarget=t,this._clear();const e=vs.split(",").map((e=>`${e}[data-bs-target="${t}"],${e}[href="${t}"]`)),i=Q.findOne(e.join(","),this._config.target);i.classList.add(gs),i.classList.contains("dropdown-item")?Q.findOne(".dropdown-toggle",i.closest(".dropdown")).classList.add(gs):Q.parents(i,".nav, .list-group").forEach((t=>{Q.prev(t,".nav-link, .list-group-item").forEach((t=>t.classList.add(gs))),Q.prev(t,".nav-item").forEach((t=>{Q.children(t,".nav-link").forEach((t=>t.classList.add(gs)))}))})),D.trigger(this._scrollElement,"activate.bs.scrollspy",{relatedTarget:t})}_clear(){Q.find(vs,this._config.target).filter((t=>t.classList.contains(gs))).forEach((t=>t.classList.remove(gs)))}static jQueryInterface(t){return this.each((function(){const e=ys.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}}))}}D.on(window,"load.bs.scrollspy.data-api",(()=>{Q.find('[data-bs-spy="scroll"]').forEach((t=>new ys(t)))})),b(ys);const Os="active",js="fade",Es="show",_s=".active",xs=":scope > li > .active";class Ts extends R{static get NAME(){return"tab"}show(){if(this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE&&this._element.classList.contains(Os))return;let t;const e=s(this._element),i=this._element.closest(".nav, .list-group");i&&(t=Q.find("UL"===i.nodeName||"OL"===i.nodeName?xs:_s,i),t=t[t.length-1]);const n=t?D.trigger(t,"hide.bs.tab",{relatedTarget:this._element}):null;if(D.trigger(this._element,"show.bs.tab",{relatedTarget:t}).defaultPrevented||null!==n&&n.defaultPrevented)return;this._activate(this._element,i);const o=()=>{D.trigger(t,"hidden.bs.tab",{relatedTarget:this._element}),D.trigger(this._element,"shown.bs.tab",{relatedTarget:t})};e?this._activate(e,e.parentNode,o):o()}_activate(t,e,i){const s=(!e||"UL"!==e.nodeName&&"OL"!==e.nodeName?Q.children(e,_s):Q.find(xs,e))[0],n=i&&s&&s.classList.contains(js),o=()=>this._transitionComplete(t,s,i);s&&n?(s.classList.remove(Es),this._queueCallback(o,t,!0)):o()}_transitionComplete(t,e,i){if(e){e.classList.remove(Os);const t=Q.findOne(":scope > .dropdown-menu .active",e.parentNode);t&&t.classList.remove(Os),"tab"===e.getAttribute("role")&&e.setAttribute("aria-selected",!1)}t.classList.add(Os),"tab"===t.getAttribute("role")&&t.setAttribute("aria-selected",!0),t.classList.contains(js)&&t.classList.add(Es);let s=t.parentNode;if(s&&"LI"===s.nodeName&&(s=s.parentNode),s&&s.classList.contains("dropdown-menu")){const e=t.closest(".dropdown");e&&Q.find(".dropdown-toggle",e).forEach((t=>t.classList.add(Os))),t.setAttribute("aria-expanded",!0)}i&&i()}static jQueryInterface(t){return this.each((function(){const e=Ts.getOrCreateInstance(this);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}}))}}D.on(document,"click.bs.tab.data-api",'[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',(function(t){["A","AREA"].includes(this.tagName)&&t.preventDefault(),c(this)||Ts.getOrCreateInstance(this).show()})),b(Ts);const ks="toast",As="hide",Cs="show",Ns="showing",Ms={animation:"boolean",autohide:"boolean",delay:"number"},$s={animation:!0,autohide:!0,delay:5e3};class Ss extends R{constructor(t,e){super(t),this._config=this._getConfig(e),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get DefaultType(){return Ms}static get Default(){return $s}static get NAME(){return ks}show(){D.trigger(this._element,"show.bs.toast").defaultPrevented||(this._clearTimeout(),this._config.animation&&this._element.classList.add("fade"),this._element.classList.remove(As),this._element.classList.add(Cs),this._element.classList.add(Ns),this._queueCallback((()=>{this._element.classList.remove(Ns),D.trigger(this._element,"shown.bs.toast"),this._maybeScheduleHide()}),this._element,this._config.animation))}hide(){this._element.classList.contains(Cs)&&(D.trigger(this._element,"hide.bs.toast").defaultPrevented||(this._element.classList.add(Ns),this._queueCallback((()=>{this._element.classList.add(As),this._element.classList.remove(Ns),this._element.classList.remove(Cs),D.trigger(this._element,"hidden.bs.toast")}),this._element,this._config.animation)))}dispose(){this._clearTimeout(),this._element.classList.contains(Cs)&&this._element.classList.remove(Cs),super.dispose()}_getConfig(t){return t=Object.assign(Object.assign(Object.assign({},$s),F.getDataAttributes(this._element)),"object"==typeof t&&t?t:{}),h(ks,t,this.constructor.DefaultType),t}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout((()=>{this.hide()}),this._config.delay)))}_onInteraction(t,e){switch(t.type){case"mouseover":case"mouseout":this._hasMouseInteraction=e;break;case"focusin":case"focusout":this._hasKeyboardInteraction=e}if(e)return void this._clearTimeout();const i=t.relatedTarget;this._element===i||this._element.contains(i)||this._maybeScheduleHide()}_setListeners(){D.on(this._element,"mouseover.bs.toast",(t=>this._onInteraction(t,!0))),D.on(this._element,"mouseout.bs.toast",(t=>this._onInteraction(t,!1))),D.on(this._element,"focusin.bs.toast",(t=>this._onInteraction(t,!0))),D.on(this._element,"focusout.bs.toast",(t=>this._onInteraction(t,!1)))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(t){return this.each((function(){const e=Ss.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t](this)}}))}}return B(Ss),b(Ss),{Alert:L,Button:H,Carousel:st,Collapse:ft,Dropdown:ai,Modal:Ii,Offcanvas:Ui,Popover:fs,ScrollSpy:ys,Tab:Ts,Toast:Ss,Tooltip:cs}},"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).bootstrap=e();
6
+ var t,e;t=void 0,e=function(){const t="transitionend",e=t=>{let e=t.getAttribute("data-bs-target");if(!e||"#"===e){let i=t.getAttribute("href");if(!i||!i.includes("#")&&!i.startsWith("."))return null;i.includes("#")&&!i.startsWith("#")&&(i=`#${i.split("#")[1]}`),e=i&&"#"!==i?i.trim():null}return e},i=t=>{const i=e(t);return i&&document.querySelector(i)?i:null},s=t=>{const i=e(t);return i?document.querySelector(i):null},n=e=>{e.dispatchEvent(new Event(t))},o=t=>!(!t||"object"!=typeof t)&&(void 0!==t.jquery&&(t=t[0]),void 0!==t.nodeType),r=t=>o(t)?t.jquery?t[0]:t:"string"==typeof t&&t.length>0?document.querySelector(t):null,h=(t,e,i)=>{Object.keys(i).forEach((s=>{const n=i[s],r=e[s],h=r&&o(r)?"element":null==(a=r)?`${a}`:{}.toString.call(a).match(/\s([a-z]+)/i)[1].toLowerCase();var a;if(!new RegExp(n).test(h))throw new TypeError(`${t.toUpperCase()}: Option "${s}" provided type "${h}" but expected type "${n}".`)}))},a=t=>!(!o(t)||0===t.getClientRects().length)&&"visible"===getComputedStyle(t).getPropertyValue("visibility"),c=t=>!t||t.nodeType!==Node.ELEMENT_NODE||!!t.classList.contains("disabled")||(void 0!==t.disabled?t.disabled:t.hasAttribute("disabled")&&"false"!==t.getAttribute("disabled")),u=t=>{if(!document.documentElement.attachShadow)return null;if("function"==typeof t.getRootNode){const e=t.getRootNode();return e instanceof ShadowRoot?e:null}return t instanceof ShadowRoot?t:t.parentNode?u(t.parentNode):null},l=()=>{},d=()=>{const{jQuery:t}=window;return t&&!document.body.hasAttribute("data-bs-no-jquery")?t:null},f=[],p=()=>"rtl"===document.documentElement.dir,b=t=>{var e;e=()=>{const e=d();if(e){const i=t.NAME,s=e.fn[i];e.fn[i]=t.jQueryInterface,e.fn[i].Constructor=t,e.fn[i].noConflict=()=>(e.fn[i]=s,t.jQueryInterface)}},"loading"===document.readyState?(f.length||document.addEventListener("DOMContentLoaded",(()=>{f.forEach((t=>t()))})),f.push(e)):e()},m=t=>{"function"==typeof t&&t()},g=(e,i,s=!0)=>{if(!s)return void m(e);const o=(t=>{if(!t)return 0;let{transitionDuration:e,transitionDelay:i}=window.getComputedStyle(t);const s=Number.parseFloat(e),n=Number.parseFloat(i);return s||n?(e=e.split(",")[0],i=i.split(",")[0],1e3*(Number.parseFloat(e)+Number.parseFloat(i))):0})(i)+5;let r=!1;const h=({target:s})=>{s===i&&(r=!0,i.removeEventListener(t,h),m(e))};i.addEventListener(t,h),setTimeout((()=>{r||n(i)}),o)},v=(t,e,i,s)=>{let n=t.indexOf(e);if(-1===n)return t[!i&&s?t.length-1:0];const o=t.length;return n+=i?1:-1,s&&(n=(n+o)%o),t[Math.max(0,Math.min(n,o-1))]},w=/[^.]*(?=\..*)\.|.*/,y=/\..*/,O=/::\d+$/,j={};let E=1;const _={mouseenter:"mouseover",mouseleave:"mouseout"},x=/^(mouseenter|mouseleave)/i,T=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 k(t,e){return e&&`${e}::${E++}`||t.uidEvent||E++}function A(t){const e=k(t);return t.uidEvent=e,j[e]=j[e]||{},j[e]}function C(t,e,i=null){const s=Object.keys(t);for(let n=0,o=s.length;n<o;n++){const o=t[s[n]];if(o.originalHandler===e&&o.delegationSelector===i)return o}return null}function N(t,e,i){const s="string"==typeof e,n=s?i:e;let o=S(t);return T.has(o)||(o=t),[s,n,o]}function M(t,e,i,s,n){if("string"!=typeof e||!t)return;if(i||(i=s,s=null),x.test(e)){const t=t=>function(e){if(!e.relatedTarget||e.relatedTarget!==e.delegateTarget&&!e.delegateTarget.contains(e.relatedTarget))return t.call(this,e)};s?s=t(s):i=t(i)}const[o,r,h]=N(e,i,s),a=A(t),c=a[h]||(a[h]={}),u=C(c,r,o?i:null);if(u)return void(u.oneOff=u.oneOff&&n);const l=k(r,e.replace(w,"")),d=o?function(t,e,i){return function s(n){const o=t.querySelectorAll(e);for(let{target:r}=n;r&&r!==this;r=r.parentNode)for(let h=o.length;h--;)if(o[h]===r)return n.delegateTarget=r,s.oneOff&&D.off(t,n.type,e,i),i.apply(r,[n]);return null}}(t,i,s):function(t,e){return function i(s){return s.delegateTarget=t,i.oneOff&&D.off(t,s.type,e),e.apply(t,[s])}}(t,i);d.delegationSelector=o?i:null,d.originalHandler=r,d.oneOff=n,d.uidEvent=l,c[l]=d,t.addEventListener(h,d,o)}function $(t,e,i,s,n){const o=C(e[i],s,n);o&&(t.removeEventListener(i,o,Boolean(n)),delete e[i][o.uidEvent])}function S(t){return t=t.replace(y,""),_[t]||t}const D={on(t,e,i,s){M(t,e,i,s,!1)},one(t,e,i,s){M(t,e,i,s,!0)},off(t,e,i,s){if("string"!=typeof e||!t)return;const[n,o,r]=N(e,i,s),h=r!==e,a=A(t),c=e.startsWith(".");if(void 0!==o){if(!a||!a[r])return;return void $(t,a,r,o,n?i:null)}c&&Object.keys(a).forEach((i=>{!function(t,e,i,s){const n=e[i]||{};Object.keys(n).forEach((o=>{if(o.includes(s)){const s=n[o];$(t,e,i,s.originalHandler,s.delegationSelector)}}))}(t,a,i,e.slice(1))}));const u=a[r]||{};Object.keys(u).forEach((i=>{const s=i.replace(O,"");if(!h||e.includes(s)){const e=u[i];$(t,a,r,e.originalHandler,e.delegationSelector)}}))},trigger(t,e,i){if("string"!=typeof e||!t)return null;const s=d(),n=S(e),o=e!==n,r=T.has(n);let h,a=!0,c=!0,u=!1,l=null;return o&&s&&(h=s.Event(e,i),s(t).trigger(h),a=!h.isPropagationStopped(),c=!h.isImmediatePropagationStopped(),u=h.isDefaultPrevented()),r?(l=document.createEvent("HTMLEvents"),l.initEvent(n,a,!0)):l=new CustomEvent(e,{bubbles:a,cancelable:!0}),void 0!==i&&Object.keys(i).forEach((t=>{Object.defineProperty(l,t,{get:()=>i[t]})})),u&&l.preventDefault(),c&&t.dispatchEvent(l),l.defaultPrevented&&void 0!==h&&h.preventDefault(),l}},I=new Map,P={set(t,e,i){I.has(t)||I.set(t,new Map);const s=I.get(t);s.has(e)||0===s.size?s.set(e,i):console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(s.keys())[0]}.`)},get:(t,e)=>I.has(t)&&I.get(t).get(e)||null,remove(t,e){if(!I.has(t))return;const i=I.get(t);i.delete(e),0===i.size&&I.delete(t)}};class R{constructor(t){(t=r(t))&&(this._element=t,P.set(this._element,this.constructor.DATA_KEY,this))}dispose(){P.remove(this._element,this.constructor.DATA_KEY),D.off(this._element,this.constructor.EVENT_KEY),Object.getOwnPropertyNames(this).forEach((t=>{this[t]=null}))}_queueCallback(t,e,i=!0){g(t,e,i)}static getInstance(t){return P.get(r(t),this.DATA_KEY)}static getOrCreateInstance(t,e={}){return this.getInstance(t)||new this(t,"object"==typeof e?e:null)}static get VERSION(){return"5.1.3"}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}}const B=(t,e="hide")=>{const i=t.NAME;D.on(document,`click.dismiss${t.EVENT_KEY}`,`[data-bs-dismiss="${i}"]`,(function(n){if(["A","AREA"].includes(this.tagName)&&n.preventDefault(),c(this))return;const o=s(this)||this.closest(`.${i}`);t.getOrCreateInstance(o)[e]()}))};class L extends R{static get NAME(){return"alert"}close(){if(D.trigger(this._element,"close.bs.alert").defaultPrevented)return;this._element.classList.remove("show");const t=this._element.classList.contains("fade");this._queueCallback((()=>this._destroyElement()),this._element,t)}_destroyElement(){this._element.remove(),D.trigger(this._element,"closed.bs.alert"),this.dispose()}static jQueryInterface(t){return this.each((function(){const e=L.getOrCreateInstance(this);if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method named "${t}"`);e[t](this)}}))}}B(L,"close"),b(L);const z='[data-bs-toggle="button"]';class H extends R{static get NAME(){return"button"}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle("active"))}static jQueryInterface(t){return this.each((function(){const e=H.getOrCreateInstance(this);"toggle"===t&&e[t]()}))}}function U(t){return"true"===t||"false"!==t&&(t===Number(t).toString()?Number(t):""===t||"null"===t?null:t)}function W(t){return t.replace(/[A-Z]/g,(t=>`-${t.toLowerCase()}`))}D.on(document,"click.bs.button.data-api",z,(t=>{t.preventDefault();const e=t.target.closest(z);H.getOrCreateInstance(e).toggle()})),b(H);const F={setDataAttribute(t,e,i){t.setAttribute(`data-bs-${W(e)}`,i)},removeDataAttribute(t,e){t.removeAttribute(`data-bs-${W(e)}`)},getDataAttributes(t){if(!t)return{};const e={};return Object.keys(t.dataset).filter((t=>t.startsWith("bs"))).forEach((i=>{let s=i.replace(/^bs/,"");s=s.charAt(0).toLowerCase()+s.slice(1,s.length),e[s]=U(t.dataset[i])})),e},getDataAttribute:(t,e)=>U(t.getAttribute(`data-bs-${W(e)}`)),offset(t){const e=t.getBoundingClientRect();return{top:e.top+window.pageYOffset,left:e.left+window.pageXOffset}},position:t=>({top:t.offsetTop,left:t.offsetLeft})},Q={find:(t,e=document.documentElement)=>[].concat(...Element.prototype.querySelectorAll.call(e,t)),findOne:(t,e=document.documentElement)=>Element.prototype.querySelector.call(e,t),children:(t,e)=>[].concat(...t.children).filter((t=>t.matches(e))),parents(t,e){const i=[];let s=t.parentNode;for(;s&&s.nodeType===Node.ELEMENT_NODE&&3!==s.nodeType;)s.matches(e)&&i.push(s),s=s.parentNode;return i},prev(t,e){let i=t.previousElementSibling;for(;i;){if(i.matches(e))return[i];i=i.previousElementSibling}return[]},next(t,e){let i=t.nextElementSibling;for(;i;){if(i.matches(e))return[i];i=i.nextElementSibling}return[]},focusableChildren(t){const e=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map((t=>`${t}:not([tabindex^="-"])`)).join(", ");return this.find(e,t).filter((t=>!c(t)&&a(t)))}},q="carousel",V={interval:5e3,keyboard:!0,slide:!1,pause:"hover",wrap:!0,touch:!0},K={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean",touch:"boolean"},Y="next",G="prev",Z="left",J="right",X={ArrowLeft:J,ArrowRight:Z},tt="slid.bs.carousel",et="active",it=".active.carousel-item";class st extends R{constructor(t,e){super(t),this._items=null,this._interval=null,this._activeElement=null,this._isPaused=!1,this._isSliding=!1,this.touchTimeout=null,this.touchStartX=0,this.touchDeltaX=0,this._config=this._getConfig(e),this._indicatorsElement=Q.findOne(".carousel-indicators",this._element),this._touchSupported="ontouchstart"in document.documentElement||navigator.maxTouchPoints>0,this._pointerEvent=Boolean(window.PointerEvent),this._addEventListeners()}static get Default(){return V}static get NAME(){return q}next(){this._slide(Y)}nextWhenVisible(){!document.hidden&&a(this._element)&&this.next()}prev(){this._slide(G)}pause(t){t||(this._isPaused=!0),Q.findOne(".carousel-item-next, .carousel-item-prev",this._element)&&(n(this._element),this.cycle(!0)),clearInterval(this._interval),this._interval=null}cycle(t){t||(this._isPaused=!1),this._interval&&(clearInterval(this._interval),this._interval=null),this._config&&this._config.interval&&!this._isPaused&&(this._updateInterval(),this._interval=setInterval((document.visibilityState?this.nextWhenVisible:this.next).bind(this),this._config.interval))}to(t){this._activeElement=Q.findOne(it,this._element);const e=this._getItemIndex(this._activeElement);if(!(t>this._items.length-1||t<0)){if(!this._isSliding)return e===t?(this.pause(),void this.cycle()):void this._slide(t>e?Y:G,this._items[t]);D.one(this._element,tt,(()=>this.to(t)))}}_getConfig(t){return t=Object.assign(Object.assign(Object.assign({},V),F.getDataAttributes(this._element)),"object"==typeof t?t:{}),h(q,t,K),t}_handleSwipe(){const t=Math.abs(this.touchDeltaX);if(t<=40)return;const e=t/this.touchDeltaX;this.touchDeltaX=0,e&&this._slide(e>0?J:Z)}_addEventListeners(){this._config.keyboard&&D.on(this._element,"keydown.bs.carousel",(t=>this._keydown(t))),"hover"===this._config.pause&&(D.on(this._element,"mouseenter.bs.carousel",(t=>this.pause(t))),D.on(this._element,"mouseleave.bs.carousel",(t=>this.cycle(t)))),this._config.touch&&this._touchSupported&&this._addTouchEventListeners()}_addTouchEventListeners(){const t=t=>this._pointerEvent&&("pen"===t.pointerType||"touch"===t.pointerType),e=e=>{t(e)?this.touchStartX=e.clientX:this._pointerEvent||(this.touchStartX=e.touches[0].clientX)},i=t=>{this.touchDeltaX=t.touches&&t.touches.length>1?0:t.touches[0].clientX-this.touchStartX},s=e=>{t(e)&&(this.touchDeltaX=e.clientX-this.touchStartX),this._handleSwipe(),"hover"===this._config.pause&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout((t=>this.cycle(t)),500+this._config.interval))};Q.find(".carousel-item img",this._element).forEach((t=>{D.on(t,"dragstart.bs.carousel",(t=>t.preventDefault()))})),this._pointerEvent?(D.on(this._element,"pointerdown.bs.carousel",(t=>e(t))),D.on(this._element,"pointerup.bs.carousel",(t=>s(t))),this._element.classList.add("pointer-event")):(D.on(this._element,"touchstart.bs.carousel",(t=>e(t))),D.on(this._element,"touchmove.bs.carousel",(t=>i(t))),D.on(this._element,"touchend.bs.carousel",(t=>s(t))))}_keydown(t){if(/input|textarea/i.test(t.target.tagName))return;const e=X[t.key];e&&(t.preventDefault(),this._slide(e))}_getItemIndex(t){return this._items=t&&t.parentNode?Q.find(".carousel-item",t.parentNode):[],this._items.indexOf(t)}_getItemByOrder(t,e){return v(this._items,e,t===Y,this._config.wrap)}_triggerSlideEvent(t,e){const i=this._getItemIndex(t),s=this._getItemIndex(Q.findOne(it,this._element));return D.trigger(this._element,"slide.bs.carousel",{relatedTarget:t,direction:e,from:s,to:i})}_setActiveIndicatorElement(t){if(this._indicatorsElement){const e=Q.findOne(".active",this._indicatorsElement);e.classList.remove(et),e.removeAttribute("aria-current");const i=Q.find("[data-bs-target]",this._indicatorsElement);for(let e=0;e<i.length;e++)if(Number.parseInt(i[e].getAttribute("data-bs-slide-to"),10)===this._getItemIndex(t)){i[e].classList.add(et),i[e].setAttribute("aria-current","true");break}}}_updateInterval(){const t=this._activeElement||Q.findOne(it,this._element);if(!t)return;const e=Number.parseInt(t.getAttribute("data-bs-interval"),10);e?(this._config.defaultInterval=this._config.defaultInterval||this._config.interval,this._config.interval=e):this._config.interval=this._config.defaultInterval||this._config.interval}_slide(t,e){const i=this._directionToOrder(t),s=Q.findOne(it,this._element),n=this._getItemIndex(s),o=e||this._getItemByOrder(i,s),r=this._getItemIndex(o),h=Boolean(this._interval),a=i===Y,c=a?"carousel-item-start":"carousel-item-end",u=a?"carousel-item-next":"carousel-item-prev",l=this._orderToDirection(i);if(o&&o.classList.contains(et))return void(this._isSliding=!1);if(this._isSliding)return;if(this._triggerSlideEvent(o,l).defaultPrevented)return;if(!s||!o)return;this._isSliding=!0,h&&this.pause(),this._setActiveIndicatorElement(o),this._activeElement=o;const d=()=>{D.trigger(this._element,tt,{relatedTarget:o,direction:l,from:n,to:r})};this._element.classList.contains("slide")?(o.classList.add(u),s.classList.add(c),o.classList.add(c),this._queueCallback((()=>{o.classList.remove(c,u),o.classList.add(et),s.classList.remove(et,u,c),this._isSliding=!1,setTimeout(d,0)}),s,!0)):(s.classList.remove(et),o.classList.add(et),this._isSliding=!1,d()),h&&this.cycle()}_directionToOrder(t){return[J,Z].includes(t)?p()?t===Z?G:Y:t===Z?Y:G:t}_orderToDirection(t){return[Y,G].includes(t)?p()?t===G?Z:J:t===G?J:Z:t}static carouselInterface(t,e){const i=st.getOrCreateInstance(t,e);let{_config:s}=i;"object"==typeof e&&(s=Object.assign(Object.assign({},s),e));const n="string"==typeof e?e:s.slide;if("number"==typeof e)i.to(e);else if("string"==typeof n){if(void 0===i[n])throw new TypeError(`No method named "${n}"`);i[n]()}else s.interval&&s.ride&&(i.pause(),i.cycle())}static jQueryInterface(t){return this.each((function(){st.carouselInterface(this,t)}))}static dataApiClickHandler(t){const e=s(this);if(!e||!e.classList.contains("carousel"))return;const i=Object.assign(Object.assign({},F.getDataAttributes(e)),F.getDataAttributes(this)),n=this.getAttribute("data-bs-slide-to");n&&(i.interval=!1),st.carouselInterface(e,i),n&&st.getInstance(e).to(n),t.preventDefault()}}D.on(document,"click.bs.carousel.data-api","[data-bs-slide], [data-bs-slide-to]",st.dataApiClickHandler),D.on(window,"load.bs.carousel.data-api",(()=>{const t=Q.find('[data-bs-ride="carousel"]');for(let e=0,i=t.length;e<i;e++)st.carouselInterface(t[e],st.getInstance(t[e]))})),b(st);const nt="collapse",ot={toggle:!0,parent:null},rt={toggle:"boolean",parent:"(null|element)"},ht="show",at="collapse",ct="collapsing",ut="collapsed",lt=":scope .collapse .collapse",dt='[data-bs-toggle="collapse"]';class ft extends R{constructor(t,e){super(t),this._isTransitioning=!1,this._config=this._getConfig(e),this._triggerArray=[];const s=Q.find(dt);for(let t=0,e=s.length;t<e;t++){const e=s[t],n=i(e),o=Q.find(n).filter((t=>t===this._element));null!==n&&o.length&&(this._selector=n,this._triggerArray.push(e))}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return ot}static get NAME(){return nt}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let t,e=[];if(this._config.parent){const t=Q.find(lt,this._config.parent);e=Q.find(".collapse.show, .collapse.collapsing",this._config.parent).filter((e=>!t.includes(e)))}const i=Q.findOne(this._selector);if(e.length){const s=e.find((t=>i!==t));if(t=s?ft.getInstance(s):null,t&&t._isTransitioning)return}if(D.trigger(this._element,"show.bs.collapse").defaultPrevented)return;e.forEach((e=>{i!==e&&ft.getOrCreateInstance(e,{toggle:!1}).hide(),t||P.set(e,"bs.collapse",null)}));const s=this._getDimension();this._element.classList.remove(at),this._element.classList.add(ct),this._element.style[s]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const n=`scroll${s[0].toUpperCase()+s.slice(1)}`;this._queueCallback((()=>{this._isTransitioning=!1,this._element.classList.remove(ct),this._element.classList.add(at,ht),this._element.style[s]="",D.trigger(this._element,"shown.bs.collapse")}),this._element,!0),this._element.style[s]=`${this._element[n]}px`}hide(){if(this._isTransitioning||!this._isShown())return;if(D.trigger(this._element,"hide.bs.collapse").defaultPrevented)return;const t=this._getDimension();this._element.style[t]=`${this._element.getBoundingClientRect()[t]}px`,this._element.classList.add(ct),this._element.classList.remove(at,ht);const e=this._triggerArray.length;for(let t=0;t<e;t++){const e=this._triggerArray[t],i=s(e);i&&!this._isShown(i)&&this._addAriaAndCollapsedClass([e],!1)}this._isTransitioning=!0,this._element.style[t]="",this._queueCallback((()=>{this._isTransitioning=!1,this._element.classList.remove(ct),this._element.classList.add(at),D.trigger(this._element,"hidden.bs.collapse")}),this._element,!0)}_isShown(t=this._element){return t.classList.contains(ht)}_getConfig(t){return(t=Object.assign(Object.assign(Object.assign({},ot),F.getDataAttributes(this._element)),t)).toggle=Boolean(t.toggle),t.parent=r(t.parent),h(nt,t,rt),t}_getDimension(){return this._element.classList.contains("collapse-horizontal")?"width":"height"}_initializeChildren(){if(!this._config.parent)return;const t=Q.find(lt,this._config.parent);Q.find(dt,this._config.parent).filter((e=>!t.includes(e))).forEach((t=>{const e=s(t);e&&this._addAriaAndCollapsedClass([t],this._isShown(e))}))}_addAriaAndCollapsedClass(t,e){t.length&&t.forEach((t=>{e?t.classList.remove(ut):t.classList.add(ut),t.setAttribute("aria-expanded",e)}))}static jQueryInterface(t){return this.each((function(){const e={};"string"==typeof t&&/show|hide/.test(t)&&(e.toggle=!1);const i=ft.getOrCreateInstance(this,e);if("string"==typeof t){if(void 0===i[t])throw new TypeError(`No method named "${t}"`);i[t]()}}))}}D.on(document,"click.bs.collapse.data-api",dt,(function(t){("A"===t.target.tagName||t.delegateTarget&&"A"===t.delegateTarget.tagName)&&t.preventDefault();const e=i(this);Q.find(e).forEach((t=>{ft.getOrCreateInstance(t,{toggle:!1}).toggle()}))})),b(ft);var pt="top",bt="bottom",mt="right",gt="left",vt="auto",wt=[pt,bt,mt,gt],yt="start",Ot="end",jt="clippingParents",Et="viewport",_t="popper",xt="reference",Tt=wt.reduce((function(t,e){return t.concat([e+"-"+yt,e+"-"+Ot])}),[]),kt=[].concat(wt,[vt]).reduce((function(t,e){return t.concat([e,e+"-"+yt,e+"-"+Ot])}),[]),At="beforeRead",Ct="read",Nt="afterRead",Mt="beforeMain",$t="main",St="afterMain",Dt="beforeWrite",It="write",Pt="afterWrite",Rt=[At,Ct,Nt,Mt,$t,St,Dt,It,Pt];function Bt(t){return t?(t.nodeName||"").toLowerCase():null}function Lt(t){if(null==t)return window;if("[object Window]"!==t.toString()){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function zt(t){return t instanceof Lt(t).Element||t instanceof Element}function Ht(t){return t instanceof Lt(t).HTMLElement||t instanceof HTMLElement}function Ut(t){return"undefined"!=typeof ShadowRoot&&(t instanceof Lt(t).ShadowRoot||t instanceof ShadowRoot)}const Wt={name:"applyStyles",enabled:!0,phase:"write",fn:function(t){var e=t.state;Object.keys(e.elements).forEach((function(t){var i=e.styles[t]||{},s=e.attributes[t]||{},n=e.elements[t];Ht(n)&&Bt(n)&&(Object.assign(n.style,i),Object.keys(s).forEach((function(t){var e=s[t];!1===e?n.removeAttribute(t):n.setAttribute(t,!0===e?"":e)})))}))},effect:function(t){var e=t.state,i={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,i.popper),e.styles=i,e.elements.arrow&&Object.assign(e.elements.arrow.style,i.arrow),function(){Object.keys(e.elements).forEach((function(t){var s=e.elements[t],n=e.attributes[t]||{},o=Object.keys(e.styles.hasOwnProperty(t)?e.styles[t]:i[t]).reduce((function(t,e){return t[e]="",t}),{});Ht(s)&&Bt(s)&&(Object.assign(s.style,o),Object.keys(n).forEach((function(t){s.removeAttribute(t)})))}))}},requires:["computeStyles"]};function Ft(t){return t.split("-")[0]}function Qt(t){var e=t.getBoundingClientRect();return{width:e.width/1,height:e.height/1,top:e.top/1,right:e.right/1,bottom:e.bottom/1,left:e.left/1,x:e.left/1,y:e.top/1}}function qt(t){var e=Qt(t),i=t.offsetWidth,s=t.offsetHeight;return Math.abs(e.width-i)<=1&&(i=e.width),Math.abs(e.height-s)<=1&&(s=e.height),{x:t.offsetLeft,y:t.offsetTop,width:i,height:s}}function Vt(t,e){var i=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(i&&Ut(i)){var s=e;do{if(s&&t.isSameNode(s))return!0;s=s.parentNode||s.host}while(s)}return!1}function Kt(t){return Lt(t).getComputedStyle(t)}function Yt(t){return["table","td","th"].indexOf(Bt(t))>=0}function Gt(t){return((zt(t)?t.ownerDocument:t.document)||window.document).documentElement}function Zt(t){return"html"===Bt(t)?t:t.assignedSlot||t.parentNode||(Ut(t)?t.host:null)||Gt(t)}function Jt(t){return Ht(t)&&"fixed"!==Kt(t).position?t.offsetParent:null}function Xt(t){for(var e=Lt(t),i=Jt(t);i&&Yt(i)&&"static"===Kt(i).position;)i=Jt(i);return i&&("html"===Bt(i)||"body"===Bt(i)&&"static"===Kt(i).position)?e:i||function(t){var e=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");if(-1!==navigator.userAgent.indexOf("Trident")&&Ht(t)&&"fixed"===Kt(t).position)return null;for(var i=Zt(t);Ht(i)&&["html","body"].indexOf(Bt(i))<0;){var s=Kt(i);if("none"!==s.transform||"none"!==s.perspective||"paint"===s.contain||-1!==["transform","perspective"].indexOf(s.willChange)||e&&"filter"===s.willChange||e&&s.filter&&"none"!==s.filter)return i;i=i.parentNode}return null}(t)||e}function te(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}var ee=Math.max,ie=Math.min,se=Math.round;function ne(t,e,i){return ee(t,ie(e,i))}function oe(t){return Object.assign({},{top:0,right:0,bottom:0,left:0},t)}function re(t,e){return e.reduce((function(e,i){return e[i]=t,e}),{})}const he={name:"arrow",enabled:!0,phase:"main",fn:function(t){var e,i=t.state,s=t.name,n=t.options,o=i.elements.arrow,r=i.modifiersData.popperOffsets,h=Ft(i.placement),a=te(h),c=[gt,mt].indexOf(h)>=0?"height":"width";if(o&&r){var u=function(t,e){return oe("number"!=typeof(t="function"==typeof t?t(Object.assign({},e.rects,{placement:e.placement})):t)?t:re(t,wt))}(n.padding,i),l=qt(o),d="y"===a?pt:gt,f="y"===a?bt:mt,p=i.rects.reference[c]+i.rects.reference[a]-r[a]-i.rects.popper[c],b=r[a]-i.rects.reference[a],m=Xt(o),g=m?"y"===a?m.clientHeight||0:m.clientWidth||0:0,v=g/2-l[c]/2+(p/2-b/2),w=ne(u[d],v,g-l[c]-u[f]);i.modifiersData[s]=((e={})[a]=w,e.centerOffset=w-v,e)}},effect:function(t){var e=t.state,i=t.options.element,s=void 0===i?"[data-popper-arrow]":i;null!=s&&("string"!=typeof s||(s=e.elements.popper.querySelector(s)))&&Vt(e.elements.popper,s)&&(e.elements.arrow=s)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ae(t){return t.split("-")[1]}var ce={top:"auto",right:"auto",bottom:"auto",left:"auto"};function ue(t){var e,i=t.popper,s=t.popperRect,n=t.placement,o=t.variation,r=t.offsets,h=t.position,a=t.gpuAcceleration,c=t.adaptive,u=t.roundOffsets,l=!0===u?function(t){var e=t.y,i=window.devicePixelRatio||1;return{x:se(se(t.x*i)/i)||0,y:se(se(e*i)/i)||0}}(r):"function"==typeof u?u(r):r,d=l.x,f=void 0===d?0:d,p=l.y,b=void 0===p?0:p,m=r.hasOwnProperty("x"),g=r.hasOwnProperty("y"),v=gt,w=pt,y=window;if(c){var O=Xt(i),j="clientHeight",E="clientWidth";O===Lt(i)&&"static"!==Kt(O=Gt(i)).position&&"absolute"===h&&(j="scrollHeight",E="scrollWidth"),n!==pt&&(n!==gt&&n!==mt||o!==Ot)||(w=bt,b-=O[j]-s.height,b*=a?1:-1),n!==gt&&(n!==pt&&n!==bt||o!==Ot)||(v=mt,f-=O[E]-s.width,f*=a?1:-1)}var _,x=Object.assign({position:h},c&&ce);return Object.assign({},x,a?((_={})[w]=g?"0":"",_[v]=m?"0":"",_.transform=(y.devicePixelRatio||1)<=1?"translate("+f+"px, "+b+"px)":"translate3d("+f+"px, "+b+"px, 0)",_):((e={})[w]=g?b+"px":"",e[v]=m?f+"px":"",e.transform="",e))}const le={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(t){var e=t.state,i=t.options,s=i.gpuAcceleration,n=void 0===s||s,o=i.adaptive,r=void 0===o||o,h=i.roundOffsets,a=void 0===h||h,c={placement:Ft(e.placement),variation:ae(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:n};null!=e.modifiersData.popperOffsets&&(e.styles.popper=Object.assign({},e.styles.popper,ue(Object.assign({},c,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:r,roundOffsets:a})))),null!=e.modifiersData.arrow&&(e.styles.arrow=Object.assign({},e.styles.arrow,ue(Object.assign({},c,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:a})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})},data:{}};var de={passive:!0};const fe={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(t){var e=t.state,i=t.instance,s=t.options,n=s.scroll,o=void 0===n||n,r=s.resize,h=void 0===r||r,a=Lt(e.elements.popper),c=[].concat(e.scrollParents.reference,e.scrollParents.popper);return o&&c.forEach((function(t){t.addEventListener("scroll",i.update,de)})),h&&a.addEventListener("resize",i.update,de),function(){o&&c.forEach((function(t){t.removeEventListener("scroll",i.update,de)})),h&&a.removeEventListener("resize",i.update,de)}},data:{}};var pe={left:"right",right:"left",bottom:"top",top:"bottom"};function be(t){return t.replace(/left|right|bottom|top/g,(function(t){return pe[t]}))}var me={start:"end",end:"start"};function ge(t){return t.replace(/start|end/g,(function(t){return me[t]}))}function ve(t){var e=Lt(t);return{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function we(t){return Qt(Gt(t)).left+ve(t).scrollLeft}function ye(t){var e=Kt(t);return/auto|scroll|overlay|hidden/.test(e.overflow+e.overflowY+e.overflowX)}function Oe(t){return["html","body","#document"].indexOf(Bt(t))>=0?t.ownerDocument.body:Ht(t)&&ye(t)?t:Oe(Zt(t))}function je(t,e){var i;void 0===e&&(e=[]);var s=Oe(t),n=s===(null==(i=t.ownerDocument)?void 0:i.body),o=Lt(s),r=n?[o].concat(o.visualViewport||[],ye(s)?s:[]):s,h=e.concat(r);return n?h:h.concat(je(Zt(r)))}function Ee(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function _e(t,e){return e===Et?Ee(function(t){var e=Lt(t),i=Gt(t),s=e.visualViewport,n=i.clientWidth,o=i.clientHeight,r=0,h=0;return s&&(n=s.width,o=s.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(r=s.offsetLeft,h=s.offsetTop)),{width:n,height:o,x:r+we(t),y:h}}(t)):Ht(e)?function(t){var e=Qt(t);return e.top=e.top+t.clientTop,e.left=e.left+t.clientLeft,e.bottom=e.top+t.clientHeight,e.right=e.left+t.clientWidth,e.width=t.clientWidth,e.height=t.clientHeight,e.x=e.left,e.y=e.top,e}(e):Ee(function(t){var e,i=Gt(t),s=ve(t),n=null==(e=t.ownerDocument)?void 0:e.body,o=ee(i.scrollWidth,i.clientWidth,n?n.scrollWidth:0,n?n.clientWidth:0),r=ee(i.scrollHeight,i.clientHeight,n?n.scrollHeight:0,n?n.clientHeight:0),h=-s.scrollLeft+we(t),a=-s.scrollTop;return"rtl"===Kt(n||i).direction&&(h+=ee(i.clientWidth,n?n.clientWidth:0)-o),{width:o,height:r,x:h,y:a}}(Gt(t)))}function xe(t){var e,i=t.reference,s=t.element,n=t.placement,o=n?Ft(n):null,r=n?ae(n):null,h=i.x+i.width/2-s.width/2,a=i.y+i.height/2-s.height/2;switch(o){case pt:e={x:h,y:i.y-s.height};break;case bt:e={x:h,y:i.y+i.height};break;case mt:e={x:i.x+i.width,y:a};break;case gt:e={x:i.x-s.width,y:a};break;default:e={x:i.x,y:i.y}}var c=o?te(o):null;if(null!=c){var u="y"===c?"height":"width";switch(r){case yt:e[c]=e[c]-(i[u]/2-s[u]/2);break;case Ot:e[c]=e[c]+(i[u]/2-s[u]/2)}}return e}function Te(t,e){void 0===e&&(e={});var i=e.placement,s=void 0===i?t.placement:i,n=e.boundary,o=void 0===n?jt:n,r=e.rootBoundary,h=void 0===r?Et:r,a=e.elementContext,c=void 0===a?_t:a,u=e.altBoundary,l=void 0!==u&&u,d=e.padding,f=void 0===d?0:d,p=oe("number"!=typeof f?f:re(f,wt)),b=t.rects.popper,m=t.elements[l?c===_t?xt:_t:c],g=function(t,e,i){var s="clippingParents"===e?function(t){var e=je(Zt(t)),i=["absolute","fixed"].indexOf(Kt(t).position)>=0&&Ht(t)?Xt(t):t;return zt(i)?e.filter((function(t){return zt(t)&&Vt(t,i)&&"body"!==Bt(t)})):[]}(t):[].concat(e),n=[].concat(s,[i]),o=n.reduce((function(e,i){var s=_e(t,i);return e.top=ee(s.top,e.top),e.right=ie(s.right,e.right),e.bottom=ie(s.bottom,e.bottom),e.left=ee(s.left,e.left),e}),_e(t,n[0]));return o.width=o.right-o.left,o.height=o.bottom-o.top,o.x=o.left,o.y=o.top,o}(zt(m)?m:m.contextElement||Gt(t.elements.popper),o,h),v=Qt(t.elements.reference),w=xe({reference:v,element:b,strategy:"absolute",placement:s}),y=Ee(Object.assign({},b,w)),O=c===_t?y:v,j={top:g.top-O.top+p.top,bottom:O.bottom-g.bottom+p.bottom,left:g.left-O.left+p.left,right:O.right-g.right+p.right},E=t.modifiersData.offset;if(c===_t&&E){var _=E[s];Object.keys(j).forEach((function(t){var e=[mt,bt].indexOf(t)>=0?1:-1,i=[pt,bt].indexOf(t)>=0?"y":"x";j[t]+=_[i]*e}))}return j}const ke={name:"flip",enabled:!0,phase:"main",fn:function(t){var e=t.state,i=t.options,s=t.name;if(!e.modifiersData[s]._skip){for(var n=i.mainAxis,o=void 0===n||n,r=i.altAxis,h=void 0===r||r,a=i.fallbackPlacements,c=i.padding,u=i.boundary,l=i.rootBoundary,d=i.altBoundary,f=i.flipVariations,p=void 0===f||f,b=i.allowedAutoPlacements,m=e.options.placement,g=Ft(m),v=a||(g!==m&&p?function(t){if(Ft(t)===vt)return[];var e=be(t);return[ge(t),e,ge(e)]}(m):[be(m)]),w=[m].concat(v).reduce((function(t,i){return t.concat(Ft(i)===vt?function(t,e){void 0===e&&(e={});var i=e.boundary,s=e.rootBoundary,n=e.padding,o=e.flipVariations,r=e.allowedAutoPlacements,h=void 0===r?kt:r,a=ae(e.placement),c=a?o?Tt:Tt.filter((function(t){return ae(t)===a})):wt,u=c.filter((function(t){return h.indexOf(t)>=0}));0===u.length&&(u=c);var l=u.reduce((function(e,o){return e[o]=Te(t,{placement:o,boundary:i,rootBoundary:s,padding:n})[Ft(o)],e}),{});return Object.keys(l).sort((function(t,e){return l[t]-l[e]}))}(e,{placement:i,boundary:u,rootBoundary:l,padding:c,flipVariations:p,allowedAutoPlacements:b}):i)}),[]),y=e.rects.reference,O=e.rects.popper,j=new Map,E=!0,_=w[0],x=0;x<w.length;x++){var T=w[x],k=Ft(T),A=ae(T)===yt,C=[pt,bt].indexOf(k)>=0,N=C?"width":"height",M=Te(e,{placement:T,boundary:u,rootBoundary:l,altBoundary:d,padding:c}),$=C?A?mt:gt:A?bt:pt;y[N]>O[N]&&($=be($));var S=be($),D=[];if(o&&D.push(M[k]<=0),h&&D.push(M[$]<=0,M[S]<=0),D.every((function(t){return t}))){_=T,E=!1;break}j.set(T,D)}if(E)for(var I=function(t){var e=w.find((function(e){var i=j.get(e);if(i)return i.slice(0,t).every((function(t){return t}))}));if(e)return _=e,"break"},P=p?3:1;P>0&&"break"!==I(P);P--);e.placement!==_&&(e.modifiersData[s]._skip=!0,e.placement=_,e.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function Ae(t,e,i){return void 0===i&&(i={x:0,y:0}),{top:t.top-e.height-i.y,right:t.right-e.width+i.x,bottom:t.bottom-e.height+i.y,left:t.left-e.width-i.x}}function Ce(t){return[pt,mt,bt,gt].some((function(e){return t[e]>=0}))}const Ne={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(t){var e=t.state,i=t.name,s=e.rects.reference,n=e.rects.popper,o=e.modifiersData.preventOverflow,r=Te(e,{elementContext:"reference"}),h=Te(e,{altBoundary:!0}),a=Ae(r,s),c=Ae(h,n,o),u=Ce(a),l=Ce(c);e.modifiersData[i]={referenceClippingOffsets:a,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:l},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":l})}},Me={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(t){var e=t.state,i=t.name,s=t.options.offset,n=void 0===s?[0,0]:s,o=kt.reduce((function(t,i){return t[i]=function(t,e,i){var s=Ft(t),n=[gt,pt].indexOf(s)>=0?-1:1,o="function"==typeof i?i(Object.assign({},e,{placement:t})):i,r=o[0],h=o[1];return r=r||0,h=(h||0)*n,[gt,mt].indexOf(s)>=0?{x:h,y:r}:{x:r,y:h}}(i,e.rects,n),t}),{}),r=o[e.placement],h=r.y;null!=e.modifiersData.popperOffsets&&(e.modifiersData.popperOffsets.x+=r.x,e.modifiersData.popperOffsets.y+=h),e.modifiersData[i]=o}},$e={name:"popperOffsets",enabled:!0,phase:"read",fn:function(t){var e=t.state;e.modifiersData[t.name]=xe({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})},data:{}},Se={name:"preventOverflow",enabled:!0,phase:"main",fn:function(t){var e=t.state,i=t.options,s=t.name,n=i.mainAxis,o=void 0===n||n,r=i.altAxis,h=void 0!==r&&r,a=i.tether,c=void 0===a||a,u=i.tetherOffset,l=void 0===u?0:u,d=Te(e,{boundary:i.boundary,rootBoundary:i.rootBoundary,padding:i.padding,altBoundary:i.altBoundary}),f=Ft(e.placement),p=ae(e.placement),b=!p,m=te(f),g="x"===m?"y":"x",v=e.modifiersData.popperOffsets,w=e.rects.reference,y=e.rects.popper,O="function"==typeof l?l(Object.assign({},e.rects,{placement:e.placement})):l,j={x:0,y:0};if(v){if(o||h){var E="y"===m?pt:gt,_="y"===m?bt:mt,x="y"===m?"height":"width",T=v[m],k=v[m]+d[E],A=v[m]-d[_],C=c?-y[x]/2:0,N=p===yt?w[x]:y[x],M=p===yt?-y[x]:-w[x],$=e.elements.arrow,S=c&&$?qt($):{width:0,height:0},D=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},I=D[E],P=D[_],R=ne(0,w[x],S[x]),B=b?w[x]/2-C-R-I-O:N-R-I-O,L=b?-w[x]/2+C+R+P+O:M+R+P+O,z=e.elements.arrow&&Xt(e.elements.arrow),H=e.modifiersData.offset?e.modifiersData.offset[e.placement][m]:0,U=v[m]+B-H-(z?"y"===m?z.clientTop||0:z.clientLeft||0:0),W=v[m]+L-H;if(o){var F=ne(c?ie(k,U):k,T,c?ee(A,W):A);v[m]=F,j[m]=F-T}if(h){var Q=v[g],q=Q+d["x"===m?pt:gt],V=Q-d["x"===m?bt:mt],K=ne(c?ie(q,U):q,Q,c?ee(V,W):V);v[g]=K,j[g]=K-Q}}e.modifiersData[s]=j}},requiresIfExists:["offset"]};function De(t,e,i){void 0===i&&(i=!1);var s=Ht(e);Ht(e)&&function(t){t.getBoundingClientRect()}(e);var n,o,r=Gt(e),h=Qt(t),a={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(s||!s&&!i)&&(("body"!==Bt(e)||ye(r))&&(a=(n=e)!==Lt(n)&&Ht(n)?{scrollLeft:(o=n).scrollLeft,scrollTop:o.scrollTop}:ve(n)),Ht(e)?((c=Qt(e)).x+=e.clientLeft,c.y+=e.clientTop):r&&(c.x=we(r))),{x:h.left+a.scrollLeft-c.x,y:h.top+a.scrollTop-c.y,width:h.width,height:h.height}}function Ie(t){var e=new Map,i=new Set,s=[];function n(t){i.add(t.name),[].concat(t.requires||[],t.requiresIfExists||[]).forEach((function(t){if(!i.has(t)){var s=e.get(t);s&&n(s)}})),s.push(t)}return t.forEach((function(t){e.set(t.name,t)})),t.forEach((function(t){i.has(t.name)||n(t)})),s}var Pe={placement:"bottom",modifiers:[],strategy:"absolute"};function Re(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return!e.some((function(t){return!(t&&"function"==typeof t.getBoundingClientRect)}))}function Be(t){void 0===t&&(t={});var e=t.defaultModifiers,i=void 0===e?[]:e,s=t.defaultOptions,n=void 0===s?Pe:s;return function(t,e,s){void 0===s&&(s=n);var o,r,h={placement:"bottom",orderedModifiers:[],options:Object.assign({},Pe,n),modifiersData:{},elements:{reference:t,popper:e},attributes:{},styles:{}},a=[],c=!1,u={state:h,setOptions:function(s){var o="function"==typeof s?s(h.options):s;l(),h.options=Object.assign({},n,h.options,o),h.scrollParents={reference:zt(t)?je(t):t.contextElement?je(t.contextElement):[],popper:je(e)};var r,c,d=function(t){var e=Ie(t);return Rt.reduce((function(t,i){return t.concat(e.filter((function(t){return t.phase===i})))}),[])}((r=[].concat(i,h.options.modifiers),c=r.reduce((function(t,e){var i=t[e.name];return t[e.name]=i?Object.assign({},i,e,{options:Object.assign({},i.options,e.options),data:Object.assign({},i.data,e.data)}):e,t}),{}),Object.keys(c).map((function(t){return c[t]}))));return h.orderedModifiers=d.filter((function(t){return t.enabled})),h.orderedModifiers.forEach((function(t){var e=t.options,i=t.effect;if("function"==typeof i){var s=i({state:h,name:t.name,instance:u,options:void 0===e?{}:e});a.push(s||function(){})}})),u.update()},forceUpdate:function(){if(!c){var t=h.elements,e=t.reference,i=t.popper;if(Re(e,i)){h.rects={reference:De(e,Xt(i),"fixed"===h.options.strategy),popper:qt(i)},h.reset=!1,h.placement=h.options.placement,h.orderedModifiers.forEach((function(t){return h.modifiersData[t.name]=Object.assign({},t.data)}));for(var s=0;s<h.orderedModifiers.length;s++)if(!0!==h.reset){var n=h.orderedModifiers[s],o=n.fn,r=n.options;"function"==typeof o&&(h=o({state:h,options:void 0===r?{}:r,name:n.name,instance:u})||h)}else h.reset=!1,s=-1}}},update:(o=function(){return new Promise((function(t){u.forceUpdate(),t(h)}))},function(){return r||(r=new Promise((function(t){Promise.resolve().then((function(){r=void 0,t(o())}))}))),r}),destroy:function(){l(),c=!0}};if(!Re(t,e))return u;function l(){a.forEach((function(t){return t()})),a=[]}return u.setOptions(s).then((function(t){!c&&s.onFirstUpdate&&s.onFirstUpdate(t)})),u}}var Le=Be(),ze=Be({defaultModifiers:[fe,$e,le,Wt]}),He=Be({defaultModifiers:[fe,$e,le,Wt,Me,ke,Se,he,Ne]});const Ue=Object.freeze({__proto__:null,popperGenerator:Be,detectOverflow:Te,createPopperBase:Le,createPopper:He,createPopperLite:ze,top:pt,bottom:bt,right:mt,left:gt,auto:vt,basePlacements:wt,start:yt,end:Ot,clippingParents:jt,viewport:Et,popper:_t,reference:xt,variationPlacements:Tt,placements:kt,beforeRead:At,read:Ct,afterRead:Nt,beforeMain:Mt,main:$t,afterMain:St,beforeWrite:Dt,write:It,afterWrite:Pt,modifierPhases:Rt,applyStyles:Wt,arrow:he,computeStyles:le,eventListeners:fe,flip:ke,hide:Ne,offset:Me,popperOffsets:$e,preventOverflow:Se}),We="dropdown",Fe="Escape",Qe="Space",qe="ArrowUp",Ve="ArrowDown",Ke=new RegExp("ArrowUp|ArrowDown|Escape"),Ye="click.bs.dropdown.data-api",Ge="keydown.bs.dropdown.data-api",Ze="show",Je='[data-bs-toggle="dropdown"]',Xe=".dropdown-menu",ti=p()?"top-end":"top-start",ei=p()?"top-start":"top-end",ii=p()?"bottom-end":"bottom-start",si=p()?"bottom-start":"bottom-end",ni=p()?"left-start":"right-start",oi=p()?"right-start":"left-start",ri={offset:[0,2],boundary:"clippingParents",reference:"toggle",display:"dynamic",popperConfig:null,autoClose:!0},hi={offset:"(array|string|function)",boundary:"(string|element)",reference:"(string|element|object)",display:"string",popperConfig:"(null|object|function)",autoClose:"(boolean|string)"};class ai extends R{constructor(t,e){super(t),this._popper=null,this._config=this._getConfig(e),this._menu=this._getMenuElement(),this._inNavbar=this._detectNavbar()}static get Default(){return ri}static get DefaultType(){return hi}static get NAME(){return We}toggle(){return this._isShown()?this.hide():this.show()}show(){if(c(this._element)||this._isShown(this._menu))return;const t={relatedTarget:this._element};if(D.trigger(this._element,"show.bs.dropdown",t).defaultPrevented)return;const e=ai.getParentFromElement(this._element);this._inNavbar?F.setDataAttribute(this._menu,"popper","none"):this._createPopper(e),"ontouchstart"in document.documentElement&&!e.closest(".navbar-nav")&&[].concat(...document.body.children).forEach((t=>D.on(t,"mouseover",l))),this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(Ze),this._element.classList.add(Ze),D.trigger(this._element,"shown.bs.dropdown",t)}hide(){!c(this._element)&&this._isShown(this._menu)&&this._completeHide({relatedTarget:this._element})}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(t){D.trigger(this._element,"hide.bs.dropdown",t).defaultPrevented||("ontouchstart"in document.documentElement&&[].concat(...document.body.children).forEach((t=>D.off(t,"mouseover",l))),this._popper&&this._popper.destroy(),this._menu.classList.remove(Ze),this._element.classList.remove(Ze),this._element.setAttribute("aria-expanded","false"),F.removeDataAttribute(this._menu,"popper"),D.trigger(this._element,"hidden.bs.dropdown",t))}_getConfig(t){if(t=Object.assign(Object.assign(Object.assign({},this.constructor.Default),F.getDataAttributes(this._element)),t),h(We,t,this.constructor.DefaultType),"object"==typeof t.reference&&!o(t.reference)&&"function"!=typeof t.reference.getBoundingClientRect)throw new TypeError(`${We.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return t}_createPopper(t){if(void 0===Ue)throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");let e=this._element;"parent"===this._config.reference?e=t:o(this._config.reference)?e=r(this._config.reference):"object"==typeof this._config.reference&&(e=this._config.reference);const i=this._getPopperConfig(),s=i.modifiers.find((t=>"applyStyles"===t.name&&!1===t.enabled));this._popper=He(e,this._menu,i),s&&F.setDataAttribute(this._menu,"popper","static")}_isShown(t=this._element){return t.classList.contains(Ze)}_getMenuElement(){return Q.next(this._element,Xe)[0]}_getPlacement(){const t=this._element.parentNode;if(t.classList.contains("dropend"))return ni;if(t.classList.contains("dropstart"))return oi;const e="end"===getComputedStyle(this._menu).getPropertyValue("--bs-position").trim();return t.classList.contains("dropup")?e?ei:ti:e?si:ii}_detectNavbar(){return null!==this._element.closest(".navbar")}_getOffset(){const{offset:t}=this._config;return"string"==typeof t?t.split(",").map((t=>Number.parseInt(t,10))):"function"==typeof t?e=>t(e,this._element):t}_getPopperConfig(){const t={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return"static"===this._config.display&&(t.modifiers=[{name:"applyStyles",enabled:!1}]),Object.assign(Object.assign({},t),"function"==typeof this._config.popperConfig?this._config.popperConfig(t):this._config.popperConfig)}_selectMenuItem({key:t,target:e}){const i=Q.find(".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",this._menu).filter(a);i.length&&v(i,e,t===Ve,!i.includes(e)).focus()}static jQueryInterface(t){return this.each((function(){const e=ai.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}}))}static clearMenus(t){if(t&&(2===t.button||"keyup"===t.type&&"Tab"!==t.key))return;const e=Q.find(Je);for(let i=0,s=e.length;i<s;i++){const s=ai.getInstance(e[i]);if(!s||!1===s._config.autoClose)continue;if(!s._isShown())continue;const n={relatedTarget:s._element};if(t){const e=t.composedPath(),i=e.includes(s._menu);if(e.includes(s._element)||"inside"===s._config.autoClose&&!i||"outside"===s._config.autoClose&&i)continue;if(s._menu.contains(t.target)&&("keyup"===t.type&&"Tab"===t.key||/input|select|option|textarea|form/i.test(t.target.tagName)))continue;"click"===t.type&&(n.clickEvent=t)}s._completeHide(n)}}static getParentFromElement(t){return s(t)||t.parentNode}static dataApiKeydownHandler(t){if(/input|textarea/i.test(t.target.tagName)?t.key===Qe||t.key!==Fe&&(t.key!==Ve&&t.key!==qe||t.target.closest(Xe)):!Ke.test(t.key))return;const e=this.classList.contains(Ze);if(!e&&t.key===Fe)return;if(t.preventDefault(),t.stopPropagation(),c(this))return;const i=this.matches(Je)?this:Q.prev(this,Je)[0],s=ai.getOrCreateInstance(i);if(t.key!==Fe)return t.key===qe||t.key===Ve?(e||s.show(),void s._selectMenuItem(t)):void(e&&t.key!==Qe||ai.clearMenus());s.hide()}}D.on(document,Ge,Je,ai.dataApiKeydownHandler),D.on(document,Ge,Xe,ai.dataApiKeydownHandler),D.on(document,Ye,ai.clearMenus),D.on(document,"keyup.bs.dropdown.data-api",ai.clearMenus),D.on(document,Ye,Je,(function(t){t.preventDefault(),ai.getOrCreateInstance(this).toggle()})),b(ai);const ci=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",ui=".sticky-top";class li{constructor(){this._element=document.body}getWidth(){const t=document.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}hide(){const t=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,"paddingRight",(e=>e+t)),this._setElementAttributes(ci,"paddingRight",(e=>e+t)),this._setElementAttributes(ui,"marginRight",(e=>e-t))}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(t,e,i){const s=this.getWidth();this._applyManipulationCallback(t,(t=>{if(t!==this._element&&window.innerWidth>t.clientWidth+s)return;this._saveInitialAttribute(t,e);const n=window.getComputedStyle(t)[e];t.style[e]=`${i(Number.parseFloat(n))}px`}))}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,"paddingRight"),this._resetElementAttributes(ci,"paddingRight"),this._resetElementAttributes(ui,"marginRight")}_saveInitialAttribute(t,e){const i=t.style[e];i&&F.setDataAttribute(t,e,i)}_resetElementAttributes(t,e){this._applyManipulationCallback(t,(t=>{const i=F.getDataAttribute(t,e);void 0===i?t.style.removeProperty(e):(F.removeDataAttribute(t,e),t.style[e]=i)}))}_applyManipulationCallback(t,e){o(t)?e(t):Q.find(t,this._element).forEach(e)}isOverflowing(){return this.getWidth()>0}}const di={className:"modal-backdrop",isVisible:!0,isAnimated:!1,rootElement:"body",clickCallback:null},fi={className:"string",isVisible:"boolean",isAnimated:"boolean",rootElement:"(element|string)",clickCallback:"(function|null)"},pi="show",bi="mousedown.bs.backdrop";class mi{constructor(t){this._config=this._getConfig(t),this._isAppended=!1,this._element=null}show(t){this._config.isVisible?(this._append(),this._config.isAnimated&&this._getElement(),this._getElement().classList.add(pi),this._emulateAnimation((()=>{m(t)}))):m(t)}hide(t){this._config.isVisible?(this._getElement().classList.remove(pi),this._emulateAnimation((()=>{this.dispose(),m(t)}))):m(t)}_getElement(){if(!this._element){const t=document.createElement("div");t.className=this._config.className,this._config.isAnimated&&t.classList.add("fade"),this._element=t}return this._element}_getConfig(t){return(t=Object.assign(Object.assign({},di),"object"==typeof t?t:{})).rootElement=r(t.rootElement),h("backdrop",t,fi),t}_append(){this._isAppended||(this._config.rootElement.append(this._getElement()),D.on(this._getElement(),bi,(()=>{m(this._config.clickCallback)})),this._isAppended=!0)}dispose(){this._isAppended&&(D.off(this._element,bi),this._element.remove(),this._isAppended=!1)}_emulateAnimation(t){g(t,this._getElement(),this._config.isAnimated)}}const gi={trapElement:null,autofocus:!0},vi={trapElement:"element",autofocus:"boolean"},wi=".bs.focustrap",yi="backward";class Oi{constructor(t){this._config=this._getConfig(t),this._isActive=!1,this._lastTabNavDirection=null}activate(){const{trapElement:t,autofocus:e}=this._config;this._isActive||(e&&t.focus(),D.off(document,wi),D.on(document,"focusin.bs.focustrap",(t=>this._handleFocusin(t))),D.on(document,"keydown.tab.bs.focustrap",(t=>this._handleKeydown(t))),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,D.off(document,wi))}_handleFocusin(t){const{target:e}=t,{trapElement:i}=this._config;if(e===document||e===i||i.contains(e))return;const s=Q.focusableChildren(i);0===s.length?i.focus():this._lastTabNavDirection===yi?s[s.length-1].focus():s[0].focus()}_handleKeydown(t){"Tab"===t.key&&(this._lastTabNavDirection=t.shiftKey?yi:"forward")}_getConfig(t){return t=Object.assign(Object.assign({},gi),"object"==typeof t?t:{}),h("focustrap",t,vi),t}}const ji="modal",Ei="Escape",_i={backdrop:!0,keyboard:!0,focus:!0},xi={backdrop:"(boolean|string)",keyboard:"boolean",focus:"boolean"},Ti="hidden.bs.modal",ki="show.bs.modal",Ai="resize.bs.modal",Ci="click.dismiss.bs.modal",Ni="keydown.dismiss.bs.modal",Mi="mousedown.dismiss.bs.modal",$i="modal-open",Si="show",Di="modal-static";class Ii extends R{constructor(t,e){super(t),this._config=this._getConfig(e),this._dialog=Q.findOne(".modal-dialog",this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._ignoreBackdropClick=!1,this._isTransitioning=!1,this._scrollBar=new li}static get Default(){return _i}static get NAME(){return ji}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){this._isShown||this._isTransitioning||D.trigger(this._element,ki,{relatedTarget:t}).defaultPrevented||(this._isShown=!0,this._isAnimated()&&(this._isTransitioning=!0),this._scrollBar.hide(),document.body.classList.add($i),this._adjustDialog(),this._setEscapeEvent(),this._setResizeEvent(),D.on(this._dialog,Mi,(()=>{D.one(this._element,"mouseup.dismiss.bs.modal",(t=>{t.target===this._element&&(this._ignoreBackdropClick=!0)}))})),this._showBackdrop((()=>this._showElement(t))))}hide(){if(!this._isShown||this._isTransitioning)return;if(D.trigger(this._element,"hide.bs.modal").defaultPrevented)return;this._isShown=!1;const t=this._isAnimated();t&&(this._isTransitioning=!0),this._setEscapeEvent(),this._setResizeEvent(),this._focustrap.deactivate(),this._element.classList.remove(Si),D.off(this._element,Ci),D.off(this._dialog,Mi),this._queueCallback((()=>this._hideModal()),this._element,t)}dispose(){[window,this._dialog].forEach((t=>D.off(t,".bs.modal"))),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new mi({isVisible:Boolean(this._config.backdrop),isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new Oi({trapElement:this._element})}_getConfig(t){return t=Object.assign(Object.assign(Object.assign({},_i),F.getDataAttributes(this._element)),"object"==typeof t?t:{}),h(ji,t,xi),t}_showElement(t){const e=this._isAnimated(),i=Q.findOne(".modal-body",this._dialog);this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE||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,i&&(i.scrollTop=0),this._element.classList.add(Si),this._queueCallback((()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,D.trigger(this._element,"shown.bs.modal",{relatedTarget:t})}),this._dialog,e)}_setEscapeEvent(){this._isShown?D.on(this._element,Ni,(t=>{this._config.keyboard&&t.key===Ei?(t.preventDefault(),this.hide()):this._config.keyboard||t.key!==Ei||this._triggerBackdropTransition()})):D.off(this._element,Ni)}_setResizeEvent(){this._isShown?D.on(window,Ai,(()=>this._adjustDialog())):D.off(window,Ai)}_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($i),this._resetAdjustments(),this._scrollBar.reset(),D.trigger(this._element,Ti)}))}_showBackdrop(t){D.on(this._element,Ci,(t=>{this._ignoreBackdropClick?this._ignoreBackdropClick=!1:t.target===t.currentTarget&&(!0===this._config.backdrop?this.hide():"static"===this._config.backdrop&&this._triggerBackdropTransition())})),this._backdrop.show(t)}_isAnimated(){return this._element.classList.contains("fade")}_triggerBackdropTransition(){if(D.trigger(this._element,"hidePrevented.bs.modal").defaultPrevented)return;const{classList:t,scrollHeight:e,style:i}=this._element,s=e>document.documentElement.clientHeight;!s&&"hidden"===i.overflowY||t.contains(Di)||(s||(i.overflowY="hidden"),t.add(Di),this._queueCallback((()=>{t.remove(Di),s||this._queueCallback((()=>{i.overflowY=""}),this._dialog)}),this._dialog),this._element.focus())}_adjustDialog(){const t=this._element.scrollHeight>document.documentElement.clientHeight,e=this._scrollBar.getWidth(),i=e>0;(!i&&t&&!p()||i&&!t&&p())&&(this._element.style.paddingLeft=`${e}px`),(i&&!t&&!p()||!i&&t&&p())&&(this._element.style.paddingRight=`${e}px`)}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(t,e){return this.each((function(){const i=Ii.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===i[t])throw new TypeError(`No method named "${t}"`);i[t](e)}}))}}D.on(document,"click.bs.modal.data-api",'[data-bs-toggle="modal"]',(function(t){const e=s(this);["A","AREA"].includes(this.tagName)&&t.preventDefault(),D.one(e,ki,(t=>{t.defaultPrevented||D.one(e,Ti,(()=>{a(this)&&this.focus()}))}));const i=Q.findOne(".modal.show");i&&Ii.getInstance(i).hide(),Ii.getOrCreateInstance(e).toggle(this)})),B(Ii),b(Ii);const Pi="offcanvas",Ri={backdrop:!0,keyboard:!0,scroll:!1},Bi={backdrop:"boolean",keyboard:"boolean",scroll:"boolean"},Li="show",zi=".offcanvas.show",Hi="hidden.bs.offcanvas";class Ui extends R{constructor(t,e){super(t),this._config=this._getConfig(e),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get NAME(){return Pi}static get Default(){return Ri}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){this._isShown||D.trigger(this._element,"show.bs.offcanvas",{relatedTarget:t}).defaultPrevented||(this._isShown=!0,this._element.style.visibility="visible",this._backdrop.show(),this._config.scroll||(new li).hide(),this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(Li),this._queueCallback((()=>{this._config.scroll||this._focustrap.activate(),D.trigger(this._element,"shown.bs.offcanvas",{relatedTarget:t})}),this._element,!0))}hide(){this._isShown&&(D.trigger(this._element,"hide.bs.offcanvas").defaultPrevented||(this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.remove(Li),this._backdrop.hide(),this._queueCallback((()=>{this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._element.style.visibility="hidden",this._config.scroll||(new li).reset(),D.trigger(this._element,Hi)}),this._element,!0)))}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_getConfig(t){return t=Object.assign(Object.assign(Object.assign({},Ri),F.getDataAttributes(this._element)),"object"==typeof t?t:{}),h(Pi,t,Bi),t}_initializeBackDrop(){return new mi({className:"offcanvas-backdrop",isVisible:this._config.backdrop,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:()=>this.hide()})}_initializeFocusTrap(){return new Oi({trapElement:this._element})}_addEventListeners(){D.on(this._element,"keydown.dismiss.bs.offcanvas",(t=>{this._config.keyboard&&"Escape"===t.key&&this.hide()}))}static jQueryInterface(t){return this.each((function(){const e=Ui.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method named "${t}"`);e[t](this)}}))}}D.on(document,"click.bs.offcanvas.data-api",'[data-bs-toggle="offcanvas"]',(function(t){const e=s(this);if(["A","AREA"].includes(this.tagName)&&t.preventDefault(),c(this))return;D.one(e,Hi,(()=>{a(this)&&this.focus()}));const i=Q.findOne(zi);i&&i!==e&&Ui.getInstance(i).hide(),Ui.getOrCreateInstance(e).toggle(this)})),D.on(window,"load.bs.offcanvas.data-api",(()=>Q.find(zi).forEach((t=>Ui.getOrCreateInstance(t).show())))),B(Ui),b(Ui);const Wi=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),Fi=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^#&/:?]*(?:[#/?]|$))/i,Qi=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[\d+/a-z]+=*$/i,qi=(t,e)=>{const i=t.nodeName.toLowerCase();if(e.includes(i))return!Wi.has(i)||Boolean(Fi.test(t.nodeValue)||Qi.test(t.nodeValue));const s=e.filter((t=>t instanceof RegExp));for(let t=0,e=s.length;t<e;t++)if(s[t].test(i))return!0;return!1};function Vi(t,e,i){if(!t.length)return t;if(i&&"function"==typeof i)return i(t);const s=(new window.DOMParser).parseFromString(t,"text/html"),n=[].concat(...s.body.querySelectorAll("*"));for(let t=0,i=n.length;t<i;t++){const i=n[t],s=i.nodeName.toLowerCase();if(!Object.keys(e).includes(s)){i.remove();continue}const o=[].concat(...i.attributes),r=[].concat(e["*"]||[],e[s]||[]);o.forEach((t=>{qi(t,r)||i.removeAttribute(t.nodeName)}))}return s.body.innerHTML}const Ki="tooltip",Yi=new Set(["sanitize","allowList","sanitizeFn"]),Gi={animation:"boolean",template:"string",title:"(string|element|function)",trigger:"string",delay:"(number|object)",html:"boolean",selector:"(string|boolean)",placement:"(string|function)",offset:"(array|string|function)",container:"(string|element|boolean)",fallbackPlacements:"array",boundary:"(string|element)",customClass:"(string|function)",sanitize:"boolean",sanitizeFn:"(null|function)",allowList:"object",popperConfig:"(null|object|function)"},Zi={AUTO:"auto",TOP:"top",RIGHT:p()?"left":"right",BOTTOM:"bottom",LEFT:p()?"right":"left"},Ji={animation:!0,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,selector:!1,placement:"top",offset:[0,0],container:!1,fallbackPlacements:["top","right","bottom","left"],boundary:"clippingParents",customClass:"",sanitize:!0,sanitizeFn:null,allowList:{"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],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:[]},popperConfig:null},Xi={HIDE:"hide.bs.tooltip",HIDDEN:"hidden.bs.tooltip",SHOW:"show.bs.tooltip",SHOWN:"shown.bs.tooltip",INSERTED:"inserted.bs.tooltip",CLICK:"click.bs.tooltip",FOCUSIN:"focusin.bs.tooltip",FOCUSOUT:"focusout.bs.tooltip",MOUSEENTER:"mouseenter.bs.tooltip",MOUSELEAVE:"mouseleave.bs.tooltip"},ts="fade",es="show",is="show",ss="out",ns=".tooltip-inner",os=".modal",rs="hide.bs.modal",hs="hover",as="focus";class cs extends R{constructor(t,e){if(void 0===Ue)throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");super(t),this._isEnabled=!0,this._timeout=0,this._hoverState="",this._activeTrigger={},this._popper=null,this._config=this._getConfig(e),this.tip=null,this._setListeners()}static get Default(){return Ji}static get NAME(){return Ki}static get Event(){return Xi}static get DefaultType(){return Gi}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(t){if(this._isEnabled)if(t){const e=this._initializeOnDelegatedTarget(t);e._activeTrigger.click=!e._activeTrigger.click,e._isWithActiveTrigger()?e._enter(null,e):e._leave(null,e)}else{if(this.getTipElement().classList.contains(es))return void this._leave(null,this);this._enter(null,this)}}dispose(){clearTimeout(this._timeout),D.off(this._element.closest(os),rs,this._hideModalHandler),this.tip&&this.tip.remove(),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 t=D.trigger(this._element,this.constructor.Event.SHOW),e=u(this._element),i=null===e?this._element.ownerDocument.documentElement.contains(this._element):e.contains(this._element);if(t.defaultPrevented||!i)return;"tooltip"===this.constructor.NAME&&this.tip&&this.getTitle()!==this.tip.querySelector(ns).innerHTML&&(this._disposePopper(),this.tip.remove(),this.tip=null);const s=this.getTipElement(),n=(t=>{do{t+=Math.floor(1e6*Math.random())}while(document.getElementById(t));return t})(this.constructor.NAME);s.setAttribute("id",n),this._element.setAttribute("aria-describedby",n),this._config.animation&&s.classList.add(ts);const o="function"==typeof this._config.placement?this._config.placement.call(this,s,this._element):this._config.placement,r=this._getAttachment(o);this._addAttachmentClass(r);const{container:h}=this._config;P.set(s,this.constructor.DATA_KEY,this),this._element.ownerDocument.documentElement.contains(this.tip)||(h.append(s),D.trigger(this._element,this.constructor.Event.INSERTED)),this._popper?this._popper.update():this._popper=He(this._element,s,this._getPopperConfig(r)),s.classList.add(es);const a=this._resolvePossibleFunction(this._config.customClass);a&&s.classList.add(...a.split(" ")),"ontouchstart"in document.documentElement&&[].concat(...document.body.children).forEach((t=>{D.on(t,"mouseover",l)}));const c=this.tip.classList.contains(ts);this._queueCallback((()=>{const t=this._hoverState;this._hoverState=null,D.trigger(this._element,this.constructor.Event.SHOWN),t===ss&&this._leave(null,this)}),this.tip,c)}hide(){if(!this._popper)return;const t=this.getTipElement();if(D.trigger(this._element,this.constructor.Event.HIDE).defaultPrevented)return;t.classList.remove(es),"ontouchstart"in document.documentElement&&[].concat(...document.body.children).forEach((t=>D.off(t,"mouseover",l))),this._activeTrigger.click=!1,this._activeTrigger.focus=!1,this._activeTrigger.hover=!1;const e=this.tip.classList.contains(ts);this._queueCallback((()=>{this._isWithActiveTrigger()||(this._hoverState!==is&&t.remove(),this._cleanTipClass(),this._element.removeAttribute("aria-describedby"),D.trigger(this._element,this.constructor.Event.HIDDEN),this._disposePopper())}),this.tip,e),this._hoverState=""}update(){null!==this._popper&&this._popper.update()}isWithContent(){return Boolean(this.getTitle())}getTipElement(){if(this.tip)return this.tip;const t=document.createElement("div");t.innerHTML=this._config.template;const e=t.children[0];return this.setContent(e),e.classList.remove(ts,es),this.tip=e,this.tip}setContent(t){this._sanitizeAndSetContent(t,this.getTitle(),ns)}_sanitizeAndSetContent(t,e,i){const s=Q.findOne(i,t);e||!s?this.setElementContent(s,e):s.remove()}setElementContent(t,e){if(null!==t)return o(e)?(e=r(e),void(this._config.html?e.parentNode!==t&&(t.innerHTML="",t.append(e)):t.textContent=e.textContent)):void(this._config.html?(this._config.sanitize&&(e=Vi(e,this._config.allowList,this._config.sanitizeFn)),t.innerHTML=e):t.textContent=e)}getTitle(){const t=this._element.getAttribute("data-bs-original-title")||this._config.title;return this._resolvePossibleFunction(t)}updateAttachment(t){return"right"===t?"end":"left"===t?"start":t}_initializeOnDelegatedTarget(t,e){return e||this.constructor.getOrCreateInstance(t.delegateTarget,this._getDelegateConfig())}_getOffset(){const{offset:t}=this._config;return"string"==typeof t?t.split(",").map((t=>Number.parseInt(t,10))):"function"==typeof t?e=>t(e,this._element):t}_resolvePossibleFunction(t){return"function"==typeof t?t.call(this._element):t}_getPopperConfig(t){const e={placement:t,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:"onChange",enabled:!0,phase:"afterWrite",fn:t=>this._handlePopperPlacementChange(t)}],onFirstUpdate:t=>{t.options.placement!==t.placement&&this._handlePopperPlacementChange(t)}};return Object.assign(Object.assign({},e),"function"==typeof this._config.popperConfig?this._config.popperConfig(e):this._config.popperConfig)}_addAttachmentClass(t){this.getTipElement().classList.add(`${this._getBasicClassPrefix()}-${this.updateAttachment(t)}`)}_getAttachment(t){return Zi[t.toUpperCase()]}_setListeners(){this._config.trigger.split(" ").forEach((t=>{if("click"===t)D.on(this._element,this.constructor.Event.CLICK,this._config.selector,(t=>this.toggle(t)));else if("manual"!==t){const e=t===hs?this.constructor.Event.MOUSELEAVE:this.constructor.Event.FOCUSOUT;D.on(this._element,t===hs?this.constructor.Event.MOUSEENTER:this.constructor.Event.FOCUSIN,this._config.selector,(t=>this._enter(t))),D.on(this._element,e,this._config.selector,(t=>this._leave(t)))}})),this._hideModalHandler=()=>{this._element&&this.hide()},D.on(this._element.closest(os),rs,this._hideModalHandler),this._config.selector?this._config=Object.assign(Object.assign({},this._config),{trigger:"manual",selector:""}):this._fixTitle()}_fixTitle(){const t=this._element.getAttribute("title"),e=typeof this._element.getAttribute("data-bs-original-title");(t||"string"!==e)&&(this._element.setAttribute("data-bs-original-title",t||""),!t||this._element.getAttribute("aria-label")||this._element.textContent||this._element.setAttribute("aria-label",t),this._element.setAttribute("title",""))}_enter(t,e){e=this._initializeOnDelegatedTarget(t,e),t&&(e._activeTrigger["focusin"===t.type?as:hs]=!0),e.getTipElement().classList.contains(es)||e._hoverState===is?e._hoverState=is:(clearTimeout(e._timeout),e._hoverState=is,e._config.delay&&e._config.delay.show?e._timeout=setTimeout((()=>{e._hoverState===is&&e.show()}),e._config.delay.show):e.show())}_leave(t,e){e=this._initializeOnDelegatedTarget(t,e),t&&(e._activeTrigger["focusout"===t.type?as:hs]=e._element.contains(t.relatedTarget)),e._isWithActiveTrigger()||(clearTimeout(e._timeout),e._hoverState=ss,e._config.delay&&e._config.delay.hide?e._timeout=setTimeout((()=>{e._hoverState===ss&&e.hide()}),e._config.delay.hide):e.hide())}_isWithActiveTrigger(){for(const t in this._activeTrigger)if(this._activeTrigger[t])return!0;return!1}_getConfig(t){const e=F.getDataAttributes(this._element);return Object.keys(e).forEach((t=>{Yi.has(t)&&delete e[t]})),(t=Object.assign(Object.assign(Object.assign({},this.constructor.Default),e),"object"==typeof t&&t?t:{})).container=!1===t.container?document.body:r(t.container),"number"==typeof t.delay&&(t.delay={show:t.delay,hide:t.delay}),"number"==typeof t.title&&(t.title=t.title.toString()),"number"==typeof t.content&&(t.content=t.content.toString()),h(Ki,t,this.constructor.DefaultType),t.sanitize&&(t.template=Vi(t.template,t.allowList,t.sanitizeFn)),t}_getDelegateConfig(){const t={};for(const e in this._config)this.constructor.Default[e]!==this._config[e]&&(t[e]=this._config[e]);return t}_cleanTipClass(){const t=this.getTipElement(),e=new RegExp(`(^|\\s)${this._getBasicClassPrefix()}\\S+`,"g"),i=t.getAttribute("class").match(e);null!==i&&i.length>0&&i.map((t=>t.trim())).forEach((e=>t.classList.remove(e)))}_getBasicClassPrefix(){return"bs-tooltip"}_handlePopperPlacementChange(t){const{state:e}=t;e&&(this.tip=e.elements.popper,this._cleanTipClass(),this._addAttachmentClass(this._getAttachment(e.placement)))}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null)}static jQueryInterface(t){return this.each((function(){const e=cs.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}}))}}b(cs);const us=Object.assign(Object.assign({},cs.Default),{placement:"right",offset:[0,8],trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="popover-arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>'}),ls=Object.assign(Object.assign({},cs.DefaultType),{content:"(string|element|function)"}),ds={HIDE:"hide.bs.popover",HIDDEN:"hidden.bs.popover",SHOW:"show.bs.popover",SHOWN:"shown.bs.popover",INSERTED:"inserted.bs.popover",CLICK:"click.bs.popover",FOCUSIN:"focusin.bs.popover",FOCUSOUT:"focusout.bs.popover",MOUSEENTER:"mouseenter.bs.popover",MOUSELEAVE:"mouseleave.bs.popover"};class fs extends cs{static get Default(){return us}static get NAME(){return"popover"}static get Event(){return ds}static get DefaultType(){return ls}isWithContent(){return this.getTitle()||this._getContent()}setContent(t){this._sanitizeAndSetContent(t,this.getTitle(),".popover-header"),this._sanitizeAndSetContent(t,this._getContent(),".popover-body")}_getContent(){return this._resolvePossibleFunction(this._config.content)}_getBasicClassPrefix(){return"bs-popover"}static jQueryInterface(t){return this.each((function(){const e=fs.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}}))}}b(fs);const ps="scrollspy",bs={offset:10,method:"auto",target:""},ms={offset:"number",method:"string",target:"(string|element)"},gs="active",vs=".nav-link, .list-group-item, .dropdown-item",ws="position";class ys extends R{constructor(t,e){super(t),this._scrollElement="BODY"===this._element.tagName?window:this._element,this._config=this._getConfig(e),this._offsets=[],this._targets=[],this._activeTarget=null,this._scrollHeight=0,D.on(this._scrollElement,"scroll.bs.scrollspy",(()=>this._process())),this.refresh(),this._process()}static get Default(){return bs}static get NAME(){return ps}refresh(){const t="auto"===this._config.method?this._scrollElement===this._scrollElement.window?"offset":ws:this._config.method,e=t===ws?this._getScrollTop():0;this._offsets=[],this._targets=[],this._scrollHeight=this._getScrollHeight(),Q.find(vs,this._config.target).map((s=>{const n=i(s),o=n?Q.findOne(n):null;if(o){const i=o.getBoundingClientRect();if(i.width||i.height)return[F[t](o).top+e,n]}return null})).filter((t=>t)).sort(((t,e)=>t[0]-e[0])).forEach((t=>{this._offsets.push(t[0]),this._targets.push(t[1])}))}dispose(){D.off(this._scrollElement,".bs.scrollspy"),super.dispose()}_getConfig(t){return(t=Object.assign(Object.assign(Object.assign({},bs),F.getDataAttributes(this._element)),"object"==typeof t&&t?t:{})).target=r(t.target)||document.documentElement,h(ps,t,ms),t}_getScrollTop(){return this._scrollElement===window?this._scrollElement.pageYOffset:this._scrollElement.scrollTop}_getScrollHeight(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)}_getOffsetHeight(){return this._scrollElement===window?window.innerHeight:this._scrollElement.getBoundingClientRect().height}_process(){const t=this._getScrollTop()+this._config.offset,e=this._getScrollHeight(),i=this._config.offset+e-this._getOffsetHeight();if(this._scrollHeight!==e&&this.refresh(),t>=i){const t=this._targets[this._targets.length-1];this._activeTarget!==t&&this._activate(t)}else{if(this._activeTarget&&t<this._offsets[0]&&this._offsets[0]>0)return this._activeTarget=null,void this._clear();for(let e=this._offsets.length;e--;)this._activeTarget!==this._targets[e]&&t>=this._offsets[e]&&(void 0===this._offsets[e+1]||t<this._offsets[e+1])&&this._activate(this._targets[e])}}_activate(t){this._activeTarget=t,this._clear();const e=vs.split(",").map((e=>`${e}[data-bs-target="${t}"],${e}[href="${t}"]`)),i=Q.findOne(e.join(","),this._config.target);i.classList.add(gs),i.classList.contains("dropdown-item")?Q.findOne(".dropdown-toggle",i.closest(".dropdown")).classList.add(gs):Q.parents(i,".nav, .list-group").forEach((t=>{Q.prev(t,".nav-link, .list-group-item").forEach((t=>t.classList.add(gs))),Q.prev(t,".nav-item").forEach((t=>{Q.children(t,".nav-link").forEach((t=>t.classList.add(gs)))}))})),D.trigger(this._scrollElement,"activate.bs.scrollspy",{relatedTarget:t})}_clear(){Q.find(vs,this._config.target).filter((t=>t.classList.contains(gs))).forEach((t=>t.classList.remove(gs)))}static jQueryInterface(t){return this.each((function(){const e=ys.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}}))}}D.on(window,"load.bs.scrollspy.data-api",(()=>{Q.find('[data-bs-spy="scroll"]').forEach((t=>new ys(t)))})),b(ys);const Os="active",js="fade",Es="show",_s=".active",xs=":scope > li > .active";class Ts extends R{static get NAME(){return"tab"}show(){if(this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE&&this._element.classList.contains(Os))return;let t;const e=s(this._element),i=this._element.closest(".nav, .list-group");i&&(t=Q.find("UL"===i.nodeName||"OL"===i.nodeName?xs:_s,i),t=t[t.length-1]);const n=t?D.trigger(t,"hide.bs.tab",{relatedTarget:this._element}):null;if(D.trigger(this._element,"show.bs.tab",{relatedTarget:t}).defaultPrevented||null!==n&&n.defaultPrevented)return;this._activate(this._element,i);const o=()=>{D.trigger(t,"hidden.bs.tab",{relatedTarget:this._element}),D.trigger(this._element,"shown.bs.tab",{relatedTarget:t})};e?this._activate(e,e.parentNode,o):o()}_activate(t,e,i){const s=(!e||"UL"!==e.nodeName&&"OL"!==e.nodeName?Q.children(e,_s):Q.find(xs,e))[0],n=i&&s&&s.classList.contains(js),o=()=>this._transitionComplete(t,s,i);s&&n?(s.classList.remove(Es),this._queueCallback(o,t,!0)):o()}_transitionComplete(t,e,i){if(e){e.classList.remove(Os);const t=Q.findOne(":scope > .dropdown-menu .active",e.parentNode);t&&t.classList.remove(Os),"tab"===e.getAttribute("role")&&e.setAttribute("aria-selected",!1)}t.classList.add(Os),"tab"===t.getAttribute("role")&&t.setAttribute("aria-selected",!0),t.classList.contains(js)&&t.classList.add(Es);let s=t.parentNode;if(s&&"LI"===s.nodeName&&(s=s.parentNode),s&&s.classList.contains("dropdown-menu")){const e=t.closest(".dropdown");e&&Q.find(".dropdown-toggle",e).forEach((t=>t.classList.add(Os))),t.setAttribute("aria-expanded",!0)}i&&i()}static jQueryInterface(t){return this.each((function(){const e=Ts.getOrCreateInstance(this);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}}))}}D.on(document,"click.bs.tab.data-api",'[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',(function(t){["A","AREA"].includes(this.tagName)&&t.preventDefault(),c(this)||Ts.getOrCreateInstance(this).show()})),b(Ts);const ks="toast",As="hide",Cs="show",Ns="showing",Ms={animation:"boolean",autohide:"boolean",delay:"number"},$s={animation:!0,autohide:!0,delay:5e3};class Ss extends R{constructor(t,e){super(t),this._config=this._getConfig(e),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get DefaultType(){return Ms}static get Default(){return $s}static get NAME(){return ks}show(){D.trigger(this._element,"show.bs.toast").defaultPrevented||(this._clearTimeout(),this._config.animation&&this._element.classList.add("fade"),this._element.classList.remove(As),this._element.classList.add(Cs),this._element.classList.add(Ns),this._queueCallback((()=>{this._element.classList.remove(Ns),D.trigger(this._element,"shown.bs.toast"),this._maybeScheduleHide()}),this._element,this._config.animation))}hide(){this._element.classList.contains(Cs)&&(D.trigger(this._element,"hide.bs.toast").defaultPrevented||(this._element.classList.add(Ns),this._queueCallback((()=>{this._element.classList.add(As),this._element.classList.remove(Ns),this._element.classList.remove(Cs),D.trigger(this._element,"hidden.bs.toast")}),this._element,this._config.animation)))}dispose(){this._clearTimeout(),this._element.classList.contains(Cs)&&this._element.classList.remove(Cs),super.dispose()}_getConfig(t){return t=Object.assign(Object.assign(Object.assign({},$s),F.getDataAttributes(this._element)),"object"==typeof t&&t?t:{}),h(ks,t,this.constructor.DefaultType),t}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout((()=>{this.hide()}),this._config.delay)))}_onInteraction(t,e){switch(t.type){case"mouseover":case"mouseout":this._hasMouseInteraction=e;break;case"focusin":case"focusout":this._hasKeyboardInteraction=e}if(e)return void this._clearTimeout();const i=t.relatedTarget;this._element===i||this._element.contains(i)||this._maybeScheduleHide()}_setListeners(){D.on(this._element,"mouseover.bs.toast",(t=>this._onInteraction(t,!0))),D.on(this._element,"mouseout.bs.toast",(t=>this._onInteraction(t,!1))),D.on(this._element,"focusin.bs.toast",(t=>this._onInteraction(t,!0))),D.on(this._element,"focusout.bs.toast",(t=>this._onInteraction(t,!1)))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(t){return this.each((function(){const e=Ss.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t](this)}}))}}return B(Ss),b(Ss),{Alert:L,Button:H,Carousel:st,Collapse:ft,Dropdown:ai,Modal:Ii,Offcanvas:Ui,Popover:fs,ScrollSpy:ys,Tab:Ts,Toast:Ss,Tooltip:cs}},"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).bootstrap=e();
@@ -0,0 +1 @@
1
+ import{a as r,c as n}from"./p-d6083940.js";var t=r((function(r){r.exports=function(r,n,t){r=r||{};var a=n.prototype,u={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function o(r,n,t,u){return a.fromToBase(r,n,t,u)}t.en.relativeTime=u,a.fromToBase=function(n,a,o,s,d){for(var i,e,h,f=o.$locale().relativeTime||u,m=r.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],y=m.length,c=0;c<y;c+=1){var l=m[c];l.d&&(i=s?t(n).diff(o,l.d,!0):o.diff(n,l.d,!0));var v=(r.rounding||Math.round)(Math.abs(i));if(h=i>0,v<=l.r||!l.r){v<=1&&c>0&&(l=m[c-1]);var M=f[l.l];d&&(v=d(""+v)),e="string"==typeof M?M.replace("%d",v):M(v,a,l.l,h);break}}if(a)return e;var p=h?f.future:f.past;return"function"==typeof p?p(e):p.replace("%s",e)},a.to=function(r,n){return o(r,n,this,!0)},a.from=function(r,n){return o(r,n,this)};var s=function(r){return r.$u?t.utc():t()};a.toNow=function(r){return this.to(s(this),r)},a.fromNow=function(r){return this.from(s(this),r)}}}));export{t as r}
@@ -0,0 +1 @@
1
+ import{r as o,h as a}from"./p-32b314e9.js";import{C as s}from"./p-a33331cc.js";const l=class{constructor(a){o(this,a),this.salonId=void 0,this.primaryColor=s.Primary,this.redirectUrl=window.btoa(window.location.href),this.isModalOpen=!0}closeModal(){this.isModalOpen=!1,document.querySelector("salon-booking-modal").remove()}render(){const o=this.primaryColor.split("#")[1]||"d47b99";return a("div",{class:"salon-booking--modal"},this.isModalOpen&&a("div",{class:"salon-modal salon-modal--booking"},a("div",{class:"salon-modal--backdrop",onClick:()=>this.closeModal()}),a("div",{class:"salon-modal--close",onClick:()=>this.closeModal()}),a("div",{class:"salon-modal--inner"},a("div",{class:"salon-modal--content"},a("iframe",{height:"100%",width:"100%",style:{border:"none",display:"block",height:"100%"},src:`https://www.favesalon.com/r/booking?salonId=${this.salonId}&primaryColor=${o}&closeAble=false`})))))}};l.style=".salon-modal.salon-modal--booking:before{display:none}.salon-modal.salon-modal--booking .salon-modal--inner,.salon-modal.salon-modal--booking .salon-modal--content{max-width:none;width:100%;height:100%}.salon-modal.salon-modal--booking .salon-modal--close{background-color:#EFEFEF;width:40px;height:40px;right:16px;top:16px;-moz-border-radius:50px;-webkit-border-radius:50px;border-radius:50px}@media (min-width: 768px){.salon-modal.salon-modal--booking .salon-modal--close{right:20px;top:20px}}";export{l as salon_booking_modal}
@@ -0,0 +1 @@
1
+ import{r as s,g as i,h as t}from"./p-32b314e9.js";import{C as o}from"./p-a33331cc.js";import{H as e,i as l,B as a}from"./p-b630ae68.js";import{f as n,a as d}from"./p-47e646f8.js";import"./p-d6083940.js";const r=class{constructor(i){s(this,i),this.locationName=void 0,this.locationAddress=void 0}render(){const s=i("./assets/map--placeholder.jpeg");return t("div",{style:{backgroundImage:`url("${s}")`,backgroundColor:o.Gray01,backgroundPosition:"center center",backgroundRepeat:"no-repeat",backgroundSize:"cover",borderRadius:"8px",position:"relative",height:"296px"}},t("div",{style:{position:"absolute",left:"50%",top:"50%",transform:"translate(-50%, -50%)"}},t("a",{target:"_blank",rel:"noopener noreferrer",href:`https://www.google.com/maps/search/?api=1&query=${this.locationAddress}`,style:{backgroundColor:o.Red01,border:`1px solid ${o.Red02}`,borderRadius:"4px",color:o.TextColor,padding:"12px",display:"flex",flexWrap:"wrap",height:"auto",width:"auto",whiteSpace:"normal",textAlign:"left",maxWidth:"320px",textDecoration:"none"}},this.locationName&&t("span",{style:{fontSize:"16px",marginBottom:"4px"}},this.locationName),this.locationAddress&&t("span",{style:{fontSize:"12px"}},this.locationAddress)),t("div",{style:{marginTop:"8px",textAlign:"center"}},t("i",{class:"ri-map-pin-fill",style:{fontSize:"24px"}}))))}static get assetsDirs(){return["assets"]}};r.style="google-map{display:block;width:100%;height:100%}";const c=class{constructor(i){s(this,i),this.salonId=void 0,this.salonInfo=void 0}componentWillLoad(){this.fetchData()}async fetchData(){try{this.salonInfo=await e().fetchSalonInfo(this.salonId)}catch(s){}}render(){return t("div",{class:"salon-info"},t("div",{class:"container"},t("div",{class:"salon-info--schedules",style:{marginBottom:"24px"}},t("salon-schedules",{"with-border":!0,"is-loading":!this.salonInfo,"salon-id":49989,"salon-info":JSON.stringify(this.salonInfo)})),t("div",{class:"row"},t("div",{class:"col-md-5",style:{marginBottom:"24px"}},t("salon-locations",{"with-border":!0,"is-loading":!this.salonInfo,"salon-id":49989,"salon-info":JSON.stringify(this.salonInfo)})),t("div",{class:"col-md-7",style:{marginBottom:"24px"}},t("salon-latest-styles",{"with-border":!0,"is-loading":!this.salonInfo,"salon-id":49989,"salon-info":JSON.stringify(this.salonInfo)})))))}};c.style="";const h=class{constructor(i){s(this,i),this.salonId=void 0,this.isLoading=void 0,this.withBorder=void 0,this.isLoadingState=void 0,this.latestStyles=void 0}componentDidLoad(){this.fetchData()}async fetchData(){this.isLoadingState=!0;try{const s=[e().fetchSalonLatestStyles(this.salonId,{limit:6}).then((s=>this.latestStyles=s))];return Promise.all(s).then((()=>this.isLoadingState=!1)).catch((()=>this.isLoadingState=!1))}catch(s){}}onClickLookbook(s){const i=document.createElement("div");i.innerHTML=`\n <style-detail\n salon-id=${this.salonId}\n salon-lookbook='${JSON.stringify(s)}'\n ></style-detail>\n `,document.body.appendChild(i)}render(){return t("div",{class:"view view--salon-styles"},this.isLoading||this.isLoadingState?t("div",{class:"view-content",style:this.withBorder?{border:`1px solid ${o.Gray02}`,borderRadius:"4px"}:{padding:"0px"}},t("div",{style:{backgroundColor:o.Gray02,height:"20px",width:"120px"}}),t("div",{style:{marginTop:"24px"}},t("div",{style:{overflow:"hidden",marginLeft:"-16px",marginBottom:"-16px"}},[1,2,3,4,5,6,7,8,9,10].map(((s,i)=>t("div",{key:`style-listing--item-${s}-${i}`,style:{float:"left",paddingLeft:"16px",marginBottom:"16px"}},t("div",{style:{backgroundColor:o.Gray01,borderRadius:"8px",width:"120px",height:"120px",overflow:"hidden",position:"relative",cursor:"pointer"}}))))))):t("div",{class:"view-content",style:this.withBorder?{border:`1px solid ${o.Gray02}`,borderRadius:"4px"}:{padding:"0px"}},t("div",{style:{fontSize:"18px",fontWeight:"bold"}},"Photos"),t("div",{style:{overflow:"hidden",marginLeft:"-16px",marginBottom:"-16px",marginTop:"16px"}},(this.latestStyles||[]).map(((s,i)=>{const{imageThumb:e,albumMedias:a}=s,n=a.length>0?a[0]:null,d=!!n&&l(n);return t("div",{key:`style-listing--item-${s.id}-${i}`,style:{float:"left",paddingLeft:"16px",marginBottom:"16px"}},t("div",{class:"view--salon-styles--item",style:Object.assign({backgroundColor:o.Gray01,borderRadius:"8px",overflow:"hidden",position:"relative",cursor:"pointer"},!d&&n?{backgroundImage:`url("${n.imageThumb||n.imageThumbMedium}")`,backgroundRepeat:"no-repeat",backgroundPosition:"center center",backgroundSize:"cover"}:{}),onClick:()=>this.onClickLookbook(s)},d&&n&&t("div",null,t("video",{muted:!0,width:"100%",height:"100%",poster:e},t("source",{src:n.mediaUrl,type:"video/mp4"})),t("i",{class:"ri-play-circle-fill",style:{fontSize:"48px",color:o.TextColor,position:"absolute",left:"50%",top:"50%",transform:"translate(-50%, -50%)"}}))))})))))}};h.style="salon-latest-styles .view--salon-styles--item{width:120px;height:120px}@media (min-width: 1024px){salon-latest-styles .view--salon-styles--item{width:200px;height:200px}}";const p=class{constructor(i){s(this,i),this.salonId=void 0,this.salonInfo=void 0,this.isLoading=void 0,this.withBorder=void 0,this.salonInfoState=void 0}componentWillLoad(){this.salonInfo?this.salonInfoState=JSON.parse(this.salonInfo):this.fetchData()}fetchData(){try{e().fetchSalonInfo(this.salonId).then((s=>this.salonInfoState=s))}catch(s){}}render(){if(this.isLoading)return t("div",{class:"view view--salon-locations"},t("div",{class:"view-content",style:this.withBorder?{border:`1px solid ${o.Gray02}`,borderRadius:"4px"}:{padding:"0px"}},t("div",{style:{backgroundColor:o.Gray02,height:"20px",width:"120px"}}),t("div",{style:{marginTop:"24px"}},t("div",{style:{backgroundColor:o.Gray01,height:"16px",width:"50%"}}),t("div",{style:{backgroundColor:o.Gray01,height:"16px",width:"50%",marginTop:"8px"}}),t("div",{style:{backgroundColor:o.Gray01,height:"192px",width:"100%",marginTop:"24px"}}))));const{businessPhone:s,businessName:i,website:e,email:l}=this.salonInfoState||{},a=n(e),r=d(this.salonInfoState);return t("div",{class:"view view--salon-locations"},t("div",{class:"view-content",style:this.withBorder?{border:`1px solid ${o.Gray02}`,borderRadius:"4px"}:{padding:"0px"}},t("div",{style:{fontSize:"18px",fontWeight:"bold"}},"Contact"),t("div",{class:"salon-contact--links",style:{marginTop:"16px"}},s&&t("div",{class:"salon-contact--links-item"},t("i",{class:"ri-phone-line",style:{color:o.Gray04,fontSize:"18px",marginRight:"6px"}})," ",t("a",{href:`tel:${s}`,style:{color:o.TextColor,textDecoration:"none"}},s)),a&&t("div",{class:"salon-contact--links-item"},t("i",{class:"ri-links-line",style:{color:o.Gray04,fontSize:"18px",marginRight:"6px"}})," ",t("a",{target:a&&-1===a.indexOf(window.location.hostname)?"_blank":void 0,href:a,style:{color:o.TextColor,textDecoration:"none"}},a)),l&&t("div",{class:"salon-contact--links-item"},t("i",{class:"ri-mail-line",style:{color:o.Gray04,fontSize:"18px",marginRight:"6px"}})," ",t("a",{href:`mailto:${l}`,style:{color:o.TextColor,textDecoration:"none"}},l))),t("div",{class:"view--salon-info--map",style:{marginTop:"24px"}},t("google-map",{"location-name":i,"location-address":r}))))}};p.style="@media (min-width: 768px){salon-locations .salon-contact--links{overflow:hidden;margin-left:-32px}salon-locations .salon-contact--links-item{float:left;display:flex;flex-direction:row;align-items:center;font-size:16px;min-width:300px;padding-left:32px}salon-locations .salon-contact--links-item:nth-child(2n+1){clear:left}salon-locations .salon-contact--links-item+.salon-contact--links-item{margin-top:8px}}";const m=class{constructor(i){s(this,i),this.salonId=void 0,this.salonInfo=void 0,this.isLoading=void 0,this.withBorder=void 0,this.salonInfoState=void 0}componentWillLoad(){this.salonInfo?this.salonInfoState=JSON.parse(this.salonInfo):this.fetchData()}fetchData(){try{e().fetchSalonInfo(this.salonId).then((s=>this.salonInfoState=s))}catch(s){}}renderBusinessHour(s){return s.status===a.ByAppointment?"By Appointment":s.status===a.Close?"Close":`${s.openTime} - ${s.closeTime}`}render(){if(this.isLoading)return t("div",{class:"view view--salon-contact"},t("div",{class:"view-content",style:this.withBorder?{border:`1px solid ${o.Gray02}`,borderRadius:"4px"}:{padding:"0px"}},t("div",{style:{backgroundColor:o.Gray02,height:"20px",width:"120px"}}),t("div",{style:{marginTop:"24px"}},t("div",{style:{backgroundColor:o.Gray01,height:"16px",width:"30%"}}),t("div",{style:{backgroundColor:o.Gray01,height:"16px",width:"40%",marginTop:"8px"}}),t("div",{style:{backgroundColor:o.Gray01,height:"16px",width:"75%",marginTop:"12px"}}),t("div",{style:{backgroundColor:o.Gray01,height:"16px",width:"75%",marginTop:"8px"}})),t("div",{style:{marginTop:"24px"}},t("div",{style:{overflow:"hidden",marginLeft:"-16px",marginBottom:"-16px"}},[1,2,3,4,5,6,7].map(((s,i)=>t("div",{key:`style-listing--item-${s}-${i}`,style:{float:"left",paddingLeft:"16px",marginBottom:"16px"}},t("div",{style:{backgroundColor:o.Gray01,width:"120px",height:"20px"}}))))))));const{about:s,businessHours:i}=this.salonInfoState||{};return t("div",{class:"view view--salon-contact"},t("div",{class:"view-content",style:this.withBorder?{border:`1px solid ${o.Gray02}`,borderRadius:"4px"}:{padding:"0px"}},t("div",{style:{fontSize:"18px",fontWeight:"bold"}},"About"),s&&t("div",{class:"salon-contact--info--desc",style:{fontSize:"16px",marginTop:"16px"},innerHTML:s}),i&&i.length>0&&t("div",{class:"salon-schedules",style:{marginTop:"24px"}},t("div",{class:"salon-schedules--title",style:{fontSize:"16px",fontWeight:"bold"}},"Working hours"),t("div",{class:"salon-schedules--dates"},t("div",{class:"salon-schedules--day",style:{marginTop:"8px"}},t("div",{class:"salon-schedules--day-name",style:{fontWeight:"bold",minWidth:"40px"}},"Mon"),t("div",{class:"salon-schedules--day-time"},this.renderBusinessHour(i[0]))),t("div",{class:"salon-schedules--day",style:{marginTop:"8px"}},t("div",{class:"salon-schedules--day-name",style:{fontWeight:"bold",minWidth:"40px"}},"Tue"),t("div",{class:"salon-schedules--day-time"},this.renderBusinessHour(i[1]))),t("div",{class:"salon-schedules--day",style:{marginTop:"8px"}},t("div",{class:"salon-schedules--day-name",style:{fontWeight:"bold",minWidth:"40px"}},"Wed"),t("div",{class:"salon-schedules--day-time"},this.renderBusinessHour(i[2]))),t("div",{class:"salon-schedules--day",style:{marginTop:"8px"}},t("div",{class:"salon-schedules--day-name",style:{fontWeight:"bold",minWidth:"40px"}},"Thur"),t("div",{class:"salon-schedules--day-time"},this.renderBusinessHour(i[3]))),t("div",{class:"salon-schedules--day",style:{marginTop:"8px"}},t("div",{class:"salon-schedules--day-name",style:{fontWeight:"bold",minWidth:"40px"}},"Fri"),t("div",{class:"salon-schedules--day-time"},this.renderBusinessHour(i[4]))),t("div",{class:"salon-schedules--day",style:{marginTop:"8px"}},t("div",{class:"salon-schedules--day-name",style:{fontWeight:"bold",minWidth:"40px"}},"Sat"),t("div",{class:"salon-schedules--day-time"},this.renderBusinessHour(i[5]))),t("div",{class:"salon-schedules--day",style:{marginTop:"8px"}},t("div",{class:"salon-schedules--day-name",style:{fontWeight:"bold",minWidth:"40px"}},"Sun"),t("div",{class:"salon-schedules--day-time"},this.renderBusinessHour(i[6])))))))}};m.style="salon-schedules .salon-schedules--day{display:flex;flex-direction:row;min-width:240px}@media (min-width: 768px){salon-schedules .salon-schedules--dates{overflow:hidden;margin-left:-32px}salon-schedules .salon-schedules--day{float:left;padding-left:32px}}";export{r as google_map,c as salon_info,h as salon_latest_styles,p as salon_locations,m as salon_schedules}
@@ -0,0 +1 @@
1
+ import{r as o,h as n}from"./p-32b314e9.js";import{c as s,l as a}from"./p-fc9a5551.js";import{C as l}from"./p-a33331cc.js";import"./p-d6083940.js";const i=class{constructor(n){o(this,n),this.salonId=void 0,this.buttonClass="",this.buttonText="Book now",this.primaryColor=l.Primary}openModal(){const o=document.createElement("div");o.innerHTML=`\n <salon-booking-modal\n salon-id=${this.salonId}\n primary-color=${this.primaryColor}\n ></salon-booking-modal>\n `,document.body.appendChild(o)}render(){const o=this.buttonClass||"btn btn-primary";let i={};if(!this.buttonClass){const o=s(this.primaryColor),n=o.darken(.05);i=a.css({backgroundColor:this.primaryColor,borderColor:this.primaryColor,color:o.isLight()?l.Black01:l.White,":hover":{backgroundColor:n,borderColor:n}})}return n("div",{class:"salon-booking"},n("div",{class:"salon-booking--button"},n("button",Object.assign({type:"button",class:o,onClick:()=>this.openModal()},i),this.buttonText)))}};i.style=".salon-modal.salon-modal--booking:before{display:none}.salon-modal.salon-modal--booking .salon-modal--inner,.salon-modal.salon-modal--booking .salon-modal--content{max-width:none;width:100%;height:100%}.salon-modal.salon-modal--booking .salon-modal--close{background-color:#EFEFEF;width:40px;height:40px;right:16px;top:16px;-moz-border-radius:50px;-webkit-border-radius:50px;border-radius:50px}@media (min-width: 768px){.salon-modal.salon-modal--booking .salon-modal--close{right:20px;top:20px}}";export{i as salon_booking}
@@ -0,0 +1 @@
1
+ import{r as i,h as t}from"./p-32b314e9.js";import{C as e}from"./p-a33331cc.js";const s=class{constructor(t){i(this,t),this.size=24,this.name=void 0,this.nameStyle=void 0,this.shortName=void 0,this.avatar=void 0}render(){return t("div",{style:{display:"flex",alignItems:"center"}},this.avatar&&t("div",{style:{backgroundImage:`url("${this.avatar}")`,backgroundColor:e.Gray01,backgroundPosition:"center center",backgroundSize:"cover",borderRadius:"50%",height:`${this.size}px`,width:`${this.size}px`,minWidth:`${this.size}px`}}),!this.avatar&&t("div",{style:{backgroundColor:e.Gray01,backgroundPosition:"center center",backgroundSize:"cover",borderRadius:"50%",display:"flex",alignItems:"center",justifyContent:"center",height:`${this.size}px`,width:`${this.size}px`,minWidth:`${this.size}px`}},this.shortName),this.name&&t("div",{style:Object.assign({flexShrink:"1",flexGrow:"1",marginLeft:"12px",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},this.nameStyle)},this.name))}};s.style="";export{s as user_avatar}
@@ -0,0 +1 @@
1
+ import{r as o,h as a}from"./p-32b314e9.js";import{C as l}from"./p-a33331cc.js";const s=class{constructor(a){o(this,a),this.salonId=void 0,this.primaryColor=l.Primary,this.isModalOpen=!0}closeModal(){this.isModalOpen=!1,document.querySelector("salon-gift-card-modal").remove()}render(){const o=this.primaryColor.split("#")[1]||"d47b99";return a("div",{class:"salon-gift-card--modal"},this.isModalOpen&&a("div",{class:"salon-modal salon-modal--gift-card"},a("div",{class:"salon-modal--backdrop",onClick:()=>this.closeModal()}),a("div",{class:"salon-modal--close",onClick:()=>this.closeModal()}),a("div",{class:"salon-modal--inner"},a("div",{class:"salon-modal--content"},a("iframe",{height:"100%",width:"100%",style:{border:"none",display:"block",height:"100%"},src:`https://www.favesalon.com/r/buy-gift-card?salonId=${this.salonId}&primaryColor=${o}&closeAble=false`})))))}};s.style=".salon-modal.salon-modal--gift-card:before{display:none}.salon-modal.salon-modal--gift-card .salon-modal--inner,.salon-modal.salon-modal--gift-card .salon-modal--content{max-width:none;width:100%;height:100%}.salon-modal.salon-modal--gift-card .salon-modal--close{background-color:#EFEFEF;width:40px;height:40px;right:16px;top:16px;-moz-border-radius:50px;-webkit-border-radius:50px;border-radius:50px}@media (min-width: 768px){.salon-modal.salon-modal--gift-card .salon-modal--close{right:20px;top:20px}}";export{s as salon_gift_card_modal}
@@ -0,0 +1 @@
1
+ import{r as o,h as a}from"./p-32b314e9.js";import{c as t,l as s}from"./p-fc9a5551.js";import{C as r}from"./p-a33331cc.js";import"./p-d6083940.js";const d=class{constructor(a){o(this,a),this.salonId=void 0,this.buttonClass="",this.buttonText="Buy Gift card",this.primaryColor=r.Primary}openModal(){const o=document.createElement("div");o.innerHTML=`\n <salon-gift-card-modal\n salon-id=${this.salonId}\n primary-color=${this.primaryColor}\n ></salon-gift-card-modal>\n `,document.body.appendChild(o)}render(){const o=this.buttonClass||"btn btn-primary";let d={};if(!this.buttonClass){const o=t(this.primaryColor),a=o.darken(.05);d=s.css({backgroundColor:this.primaryColor,borderColor:this.primaryColor,color:o.isLight()?r.Black01:r.White,":hover":{backgroundColor:a,borderColor:a}})}return a("div",{class:"salon-gift-card"},a("div",{class:"salon-gift-card--button"},a("button",Object.assign({type:"button",class:o,onClick:()=>this.openModal()},d),this.buttonText)))}};d.style=".salon-modal.salon-modal--gift-card:before{display:none}.salon-modal.salon-modal--gift-card .salon-modal--inner,.salon-modal.salon-modal--gift-card .salon-modal--content{max-width:none;width:100%;height:100%}.salon-modal.salon-modal--gift-card .salon-modal--close{background-color:#EFEFEF;width:40px;height:40px;right:16px;top:16px;-moz-border-radius:50px;-webkit-border-radius:50px;border-radius:50px}@media (min-width: 768px){.salon-modal.salon-modal--gift-card .salon-modal--close{right:20px;top:20px}}";export{d as salon_gift_card}