From 9c530d7e9be9853f0d4192139ebc007082126cb1 Mon Sep 17 00:00:00 2001 From: Dino Date: Sat, 23 Nov 2024 12:35:48 +0200 Subject: [PATCH] update dependencies, bump --- dist/bootstrap-native.cjs | 2 +- dist/bootstrap-native.cjs.map | 2 +- dist/bootstrap-native.js | 2 +- dist/bootstrap-native.js.map | 2 +- dist/bootstrap-native.mjs | 4 +- dist/bootstrap-native.mjs.map | 2 +- dist/components/alert.cjs | 2 +- dist/components/alert.mjs | 4 +- ...JIjMhh.mjs => base-component--xj9oMJ8.mjs} | 4 +- ...js.map => base-component--xj9oMJ8.mjs.map} | 2 +- ...4K-5H-MO.js => base-component-DMuoZh8G.js} | 4 +- ....js.map => base-component-DMuoZh8G.js.map} | 2 +- dist/components/button.cjs | 2 +- dist/components/button.mjs | 4 +- dist/components/carousel.cjs | 2 +- dist/components/carousel.mjs | 6 +- dist/components/collapse.cjs | 2 +- dist/components/collapse.mjs | 6 +- dist/components/dropdown.cjs | 2 +- dist/components/dropdown.mjs | 6 +- ...SKV7.mjs => getTargetElement-B-Gw6dom.mjs} | 4 +- ....map => getTargetElement-B-Gw6dom.mjs.map} | 2 +- ...3rpCRn.js => getTargetElement-DananmHP.js} | 4 +- ...s.map => getTargetElement-DananmHP.js.map} | 2 +- ...{index-DXF8ibvt.mjs => index-ClQArkrm.mjs} | 4 +- ...XF8ibvt.mjs.map => index-ClQArkrm.mjs.map} | 2 +- .../{index-CxumdV5N.js => index-DZ0WJZhO.js} | 4 +- ...-CxumdV5N.js.map => index-DZ0WJZhO.js.map} | 2 +- dist/components/isDisabled-BFPGF6I2.js | 2 - dist/components/isDisabled-BhBg0EpT.js | 2 + ...F6I2.js.map => isDisabled-BhBg0EpT.js.map} | 2 +- dist/components/isDisabled-Dh1obUSx.mjs | 6 + ...eZ.mjs.map => isDisabled-Dh1obUSx.mjs.map} | 2 +- dist/components/isDisabled-DmmaKYeZ.mjs | 6 - ...ible-D4b1Olzq.js => isVisible-D0QRTb09.js} | 4 +- ...1Olzq.js.map => isVisible-D0QRTb09.js.map} | 2 +- ...le-BXnw5gXc.mjs => isVisible-D50RKO3x.mjs} | 6 +- ...gXc.mjs.map => isVisible-D50RKO3x.mjs.map} | 2 +- dist/components/modal.cjs | 2 +- dist/components/modal.mjs | 10 +- dist/components/offcanvas.cjs | 2 +- dist/components/offcanvas.mjs | 10 +- dist/components/popover.cjs | 2 +- dist/components/popover.mjs | 4 +- ...BF5JudHD.js => popupContainer-DsalI_IH.js} | 4 +- ....js.map => popupContainer-DsalI_IH.js.map} | 2 +- ...AMs3kR.mjs => popupContainer-T6ricSTx.mjs} | 4 +- ...js.map => popupContainer-T6ricSTx.mjs.map} | 2 +- dist/components/scrollspy.cjs | 2 +- dist/components/scrollspy.mjs | 6 +- dist/components/tab.cjs | 2 +- dist/components/tab.mjs | 4 +- dist/components/toast.cjs | 2 +- dist/components/toast.mjs | 6 +- ...ltip-CflbER55.mjs => tooltip-33b5qaZo.mjs} | 8 +- ...bER55.mjs.map => tooltip-33b5qaZo.mjs.map} | 2 +- ...ooltip-fMXgseyT.js => tooltip-DwQSdbgB.js} | 4 +- ...MXgseyT.js.map => tooltip-DwQSdbgB.js.map} | 2 +- dist/components/tooltip.cjs | 2 +- dist/components/tooltip.mjs | 8 +- docs/assets/js/bootstrap-native.js | 2 +- docs/assets/js/bootstrap-native.js.map | 2 +- package.json | 12 +- pnpm-lock.yaml | 351 +++++++++--------- 64 files changed, 285 insertions(+), 292 deletions(-) rename dist/components/{base-component-LaJIjMhh.mjs => base-component--xj9oMJ8.mjs} (99%) rename dist/components/{base-component-LaJIjMhh.mjs.map => base-component--xj9oMJ8.mjs.map} (99%) rename dist/components/{base-component-4K-5H-MO.js => base-component-DMuoZh8G.js} (98%) rename dist/components/{base-component-4K-5H-MO.js.map => base-component-DMuoZh8G.js.map} (99%) rename dist/components/{getTargetElement-D4ALSKV7.mjs => getTargetElement-B-Gw6dom.mjs} (83%) rename dist/components/{getTargetElement-D4ALSKV7.mjs.map => getTargetElement-B-Gw6dom.mjs.map} (97%) rename dist/components/{getTargetElement-gM3rpCRn.js => getTargetElement-DananmHP.js} (66%) rename dist/components/{getTargetElement-gM3rpCRn.js.map => getTargetElement-DananmHP.js.map} (97%) rename dist/components/{index-DXF8ibvt.mjs => index-ClQArkrm.mjs} (96%) rename dist/components/{index-DXF8ibvt.mjs.map => index-ClQArkrm.mjs.map} (96%) rename dist/components/{index-CxumdV5N.js => index-DZ0WJZhO.js} (93%) rename dist/components/{index-CxumdV5N.js.map => index-DZ0WJZhO.js.map} (96%) delete mode 100644 dist/components/isDisabled-BFPGF6I2.js create mode 100644 dist/components/isDisabled-BhBg0EpT.js rename dist/components/{isDisabled-BFPGF6I2.js.map => isDisabled-BhBg0EpT.js.map} (90%) create mode 100644 dist/components/isDisabled-Dh1obUSx.mjs rename dist/components/{isDisabled-DmmaKYeZ.mjs.map => isDisabled-Dh1obUSx.mjs.map} (90%) delete mode 100644 dist/components/isDisabled-DmmaKYeZ.mjs rename dist/components/{isVisible-D4b1Olzq.js => isVisible-D0QRTb09.js} (90%) rename dist/components/{isVisible-D4b1Olzq.js.map => isVisible-D0QRTb09.js.map} (99%) rename dist/components/{isVisible-BXnw5gXc.mjs => isVisible-D50RKO3x.mjs} (95%) rename dist/components/{isVisible-BXnw5gXc.mjs.map => isVisible-D50RKO3x.mjs.map} (99%) rename dist/components/{popupContainer-BF5JudHD.js => popupContainer-DsalI_IH.js} (81%) rename dist/components/{popupContainer-BF5JudHD.js.map => popupContainer-DsalI_IH.js.map} (97%) rename dist/components/{popupContainer-DSAMs3kR.mjs => popupContainer-T6ricSTx.mjs} (81%) rename dist/components/{popupContainer-DSAMs3kR.mjs.map => popupContainer-T6ricSTx.mjs.map} (97%) rename dist/components/{tooltip-CflbER55.mjs => tooltip-33b5qaZo.mjs} (98%) rename dist/components/{tooltip-CflbER55.mjs.map => tooltip-33b5qaZo.mjs.map} (99%) rename dist/components/{tooltip-fMXgseyT.js => tooltip-DwQSdbgB.js} (97%) rename dist/components/{tooltip-fMXgseyT.js.map => tooltip-DwQSdbgB.js.map} (99%) diff --git a/dist/bootstrap-native.cjs b/dist/bootstrap-native.cjs index 4ef44003..35251a5a 100644 --- a/dist/bootstrap-native.cjs +++ b/dist/bootstrap-native.cjs @@ -1,2 +1,2 @@ -"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const On="aria-describedby",Ee="aria-expanded",re="aria-hidden",$e="aria-modal",Os="aria-pressed",Oe="aria-selected",as="focus",ls="focusin",Nn="focusout",ye="keydown",Mo="keyup",H="click",Mn="mousedown",Bo="hover",Ce="mouseenter",ds="mouseleave",Ro="pointerdown",Wo="pointermove",Fo="pointerup",hs="touchstart",jo="dragstart",zo='a[href], button, input, textarea, select, details, [tabindex]:not([tabindex="-1"]',Xe="ArrowDown",Ye="ArrowUp",Ns="ArrowLeft",Ms="ArrowRight",fs="Escape",Ko="transitionDuration",qo="transitionDelay",Ne="transitionend",Bn="transitionProperty",Vo=()=>{const e=/(iPhone|iPod|iPad)/;return navigator?.userAgentData?.brands.some(t=>e.test(t.brand))||e.test(navigator?.userAgent)||!1},Te=()=>{},Xo=(e,t,s,n)=>{const o=n||!1;e.addEventListener(t,s,o)},Yo=(e,t,s,n)=>{const o=n||!1;e.removeEventListener(t,s,o)},U=(e,t)=>e.getAttribute(t),Jt=(e,t)=>e.hasAttribute(t),I=(e,t,s)=>e.setAttribute(t,s),Ht=(e,t)=>e.removeAttribute(t),d=(e,...t)=>{e.classList.add(...t)},v=(e,...t)=>{e.classList.remove(...t)},h=(e,t)=>e.classList.contains(t),ce=e=>e!=null&&typeof e=="object"||!1,D=e=>ce(e)&&typeof e.nodeType=="number"&&[1,2,3,4,5,6,7,8,9,10,11].some(t=>e.nodeType===t)||!1,Y=e=>D(e)&&e.nodeType===1||!1,jt=new Map,_t={data:jt,set:(e,t,s)=>{Y(e)&&(jt.has(t)||jt.set(t,new Map),jt.get(t).set(e,s))},getAllFor:e=>jt.get(e)||null,get:(e,t)=>{if(!Y(e)||!t)return null;const s=_t.getAllFor(t);return e&&s&&s.get(e)||null},remove:(e,t)=>{const s=_t.getAllFor(t);!s||!Y(e)||(s.delete(e),s.size===0&&jt.delete(t))}},W=(e,t)=>_t.get(e,t),Bs=e=>e?.trim().replace(/(?:^\w|[A-Z]|\b\w)/g,(t,s)=>s===0?t.toLowerCase():t.toUpperCase()).replace(/\s+/g,""),ae=e=>typeof e=="string"||!1,Rn=e=>ce(e)&&e.constructor.name==="Window"||!1,Wn=e=>D(e)&&e.nodeType===9||!1,w=e=>Wn(e)?e:D(e)?e.ownerDocument:Rn(e)?e.document:globalThis.document,at=(e,...t)=>Object.assign(e,...t),bt=e=>{if(!e)return;if(ae(e))return w().createElement(e);const{tagName:t}=e,s=bt(t);if(!s)return;const n={...e};return delete n.tagName,at(s,n)},b=(e,t)=>e.dispatchEvent(t),R=(e,t,s)=>{const n=getComputedStyle(e,s),o=t.replace("webkit","Webkit").replace(/([A-Z])/g,"-$1").toLowerCase();return n.getPropertyValue(o)},Uo=e=>{const t=R(e,Bn),s=R(e,qo),n=s.includes("ms")?1:1e3,o=t&&t!=="none"?parseFloat(s)*n:0;return Number.isNaN(o)?0:o},le=e=>{const t=R(e,Bn),s=R(e,Ko),n=s.includes("ms")?1:1e3,o=t&&t!=="none"?parseFloat(s)*n:0;return Number.isNaN(o)?0:o},x=(e,t)=>{let s=0;const n=new Event(Ne),o=le(e),i=Uo(e);if(o){const r=c=>{c.target===e&&(t.apply(e,[c]),e.removeEventListener(Ne,r),s=1)};e.addEventListener(Ne,r),setTimeout(()=>{s||b(e,n)},o+i+17)}else t.apply(e,[n])},lt=(e,t)=>e.focus(t),Rs=e=>["true",!0].includes(e)?!0:["false",!1].includes(e)?!1:["null","",null,void 0].includes(e)?null:e!==""&&!Number.isNaN(+e)?+e:e,pe=e=>Object.entries(e),Go=(e,t,s,n)=>{if(!Y(e))return t;const o={...s},i={...e.dataset},r={...t},c={},a="title";return pe(i).forEach(([l,f])=>{const u=typeof l=="string"&&l.includes(n)?Bs(l.replace(n,"")):Bs(l);c[u]=Rs(f)}),pe(o).forEach(([l,f])=>{o[l]=Rs(f)}),pe(t).forEach(([l,f])=>{l in o?r[l]=o[l]:l in c?r[l]=c[l]:r[l]=l===a?U(e,a):f}),r},Ws=e=>Object.keys(e),E=(e,t)=>{const s=new CustomEvent(e,{cancelable:!0,bubbles:!0});return ce(t)&&at(s,t),s},te={passive:!0},Ot=e=>e.offsetHeight,P=(e,t)=>{pe(t).forEach(([s,n])=>{if(n&&ae(s)&&s.includes("--"))e.style.setProperty(s,n);else{const o={};o[s]=n,at(e.style,o)}})},Ue=e=>ce(e)&&e.constructor.name==="Map"||!1,Qo=e=>typeof e=="number"||!1,pt=new Map,g={set:(e,t,s,n)=>{Y(e)&&(n&&n.length?(pt.has(e)||pt.set(e,new Map),pt.get(e).set(n,setTimeout(t,s))):pt.set(e,setTimeout(t,s)))},get:(e,t)=>{if(!Y(e))return null;const s=pt.get(e);return t&&s&&Ue(s)?s.get(t)||null:Qo(s)?s:null},clear:(e,t)=>{if(!Y(e))return;const s=pt.get(e);t&&t.length&&Ue(s)?(clearTimeout(s.get(t)),s.delete(t),s.size===0&&pt.delete(e)):(clearTimeout(s),pt.delete(e))}},ee=e=>e.toLowerCase(),X=(e,t)=>(D(t)?t:w()).querySelectorAll(e),Ge=new Map;function Zo(e){const{shiftKey:t,code:s}=e,n=w(this),o=[...X(zo,this)].filter(c=>!Jt(c,"disabled")&&!U(c,re));if(!o.length)return;const i=o[0],r=o[o.length-1];s==="Tab"&&(t&&n.activeElement===i?(r.focus(),e.preventDefault()):!t&&n.activeElement===r&&(i.focus(),e.preventDefault()))}const Jo=e=>Ge.has(e)===!0,Se=e=>{const t=Jo(e);(t?Yo:Xo)(e,"keydown",Zo),t?Ge.delete(e):Ge.set(e,!0)},_=e=>Y(e)&&"offsetWidth"in e||!1,It=(e,t)=>{const{width:s,height:n,top:o,right:i,bottom:r,left:c}=e.getBoundingClientRect();let a=1,l=1;if(t&&_(e)){const{offsetWidth:f,offsetHeight:u}=e;a=f>0?Math.round(s)/f:1,l=u>0?Math.round(n)/u:1}return{width:s/a,height:n/l,top:o/l,right:i/a,bottom:r/l,left:c/a,x:c/a,y:o/l}},Nt=e=>w(e).body,dt=e=>w(e).documentElement,ti=e=>{const t=Rn(e),s=t?e.scrollX:e.scrollLeft,n=t?e.scrollY:e.scrollTop;return{x:s,y:n}},Fn=e=>D(e)&&e.constructor.name==="ShadowRoot"||!1,ei=e=>e.nodeName==="HTML"?e:Y(e)&&e.assignedSlot||D(e)&&e.parentNode||Fn(e)&&e.host||dt(e),jn=e=>e?Wn(e)?e.defaultView:D(e)?e?.ownerDocument?.defaultView:e:window,si=e=>D(e)&&["TABLE","TD","TH"].includes(e.nodeName)||!1,zn=(e,t)=>e.matches(t),ni=e=>{if(!_(e))return!1;const{width:t,height:s}=It(e),{offsetWidth:n,offsetHeight:o}=e;return Math.round(t)!==n||Math.round(s)!==o},oi=(e,t,s)=>{const n=_(t),o=It(e,n&&ni(t)),i={x:0,y:0};if(n){const r=It(t,!0);i.x=r.x+t.clientLeft,i.y=r.y+t.clientTop}return{x:o.left+s.x-i.x,y:o.top+s.y-i.y,width:o.width,height:o.height}};let Fs=0,js=0;const zt=new Map,Kn=(e,t)=>{let s=t?Fs:js;if(t){const n=Kn(e),o=zt.get(n)||new Map;zt.has(n)||zt.set(n,o),Ue(o)&&!o.has(t)?(o.set(t,s),Fs+=1):s=o.get(t)}else{const n=e.id||e;zt.has(n)?s=zt.get(n):(zt.set(n,s),js+=1)}return s},ii=e=>Array.isArray(e)||!1,qn=e=>{if(!D(e))return!1;const{top:t,bottom:s}=It(e),{clientHeight:n}=dt(e);return t<=n&&s>=0},ri=e=>typeof e=="function"||!1,ci=e=>ce(e)&&e.constructor.name==="NodeList"||!1,Tt=e=>dt(e).dir==="rtl",M=(e,t)=>!e||!t?null:e.closest(t)||M(e.getRootNode().host,t)||null,S=(e,t)=>Y(e)?e:(Y(t)?t:w()).querySelector(e),us=(e,t)=>(D(t)?t:w()).getElementsByTagName(e),ai=(e,t)=>w(t).getElementById(e),rt=(e,t)=>(t&&D(t)?t:w()).getElementsByClassName(e),Kt={},Vn=e=>{const{type:t,currentTarget:s}=e;Kt[t].forEach((n,o)=>{s===o&&n.forEach((i,r)=>{r.apply(o,[e]),typeof i=="object"&&i.once&&L(o,t,r,i)})})},k=(e,t,s,n)=>{Kt[t]||(Kt[t]=new Map);const o=Kt[t];o.has(e)||o.set(e,new Map);const i=o.get(e),{size:r}=i;i.set(s,n),r||e.addEventListener(t,Vn,n)},L=(e,t,s,n)=>{const o=Kt[t],i=o&&o.get(e),r=i&&i.get(s),c=r!==void 0?r:n;i&&i.has(s)&&i.delete(s),o&&(!i||!i.size)&&o.delete(e),(!o||!o.size)&&delete Kt[t],(!i||!i.size)&&e.removeEventListener(t,Vn,c)},O="fade",p="show",xe="data-bs-dismiss",Pe="alert",Xn="Alert",nt=e=>h(e,"disabled")||U(e,"disabled")==="true",li="5.1.0",di=li;class st{constructor(t,s){let n;try{if(Y(t))n=t;else if(ae(t)){if(n=S(t),!n)throw Error(`"${t}" is not a valid selector.`)}else throw Error("your target is not an instance of HTMLElement.")}catch(i){throw Error(`${this.name} Error: ${i.message}`)}const o=_t.get(n,this.name);o&&o._toggleEventListeners(),this.element=n,this.options=this.defaults&&Ws(this.defaults).length?Go(n,this.defaults,s||{},"bs"):{},_t.set(n,this.name,this)}get version(){return di}get name(){return"BaseComponent"}get defaults(){return{}}_toggleEventListeners=()=>{};dispose(){_t.remove(this.element,this.name),Ws(this).forEach(t=>{delete this[t]})}}const hi=`.${Pe}`,fi=`[${xe}="${Pe}"]`,ui=e=>W(e,Xn),gi=e=>new gs(e),zs=E(`close.bs.${Pe}`),pi=E(`closed.bs.${Pe}`),Ks=e=>{const{element:t}=e;b(t,pi),e._toggleEventListeners(),e.dispose(),t.remove()};class gs extends st{static selector=hi;static init=gi;static getInstance=ui;dismiss;constructor(t){super(t),this.dismiss=S(fi,this.element),this._toggleEventListeners(!0)}get name(){return Xn}close=t=>{const{element:s,dismiss:n}=this;!s||!h(s,p)||t&&n&&nt(n)||(b(s,zs),!zs.defaultPrevented&&(v(s,p),h(s,O)?x(s,()=>Ks(this)):Ks(this)))};_toggleEventListeners=t=>{const s=t?k:L,{dismiss:n,close:o}=this;n&&s(n,H,o)};dispose(){this._toggleEventListeners(),super.dispose()}}const T="active",ot="data-bs-toggle",mi="button",Yn="Button",vi=`[${ot}="${mi}"]`,bi=e=>W(e,Yn),wi=e=>new ps(e);class ps extends st{static selector=vi;static init=wi;static getInstance=bi;constructor(t){super(t);const{element:s}=this;this.isActive=h(s,T),I(s,Os,String(!!this.isActive)),this._toggleEventListeners(!0)}get name(){return Yn}toggle=t=>{t&&t.preventDefault();const{element:s,isActive:n}=this;if(nt(s))return;(n?v:d)(s,T),I(s,Os,n?"false":"true"),this.isActive=h(s,T)};_toggleEventListeners=t=>{(t?k:L)(this.element,H,this.toggle)};dispose(){this._toggleEventListeners(),super.dispose()}}const Qe="data-bs-target",Dt="carousel",Un="Carousel",qs="data-bs-parent",Ei="data-bs-container",z=e=>{const t=[Qe,qs,Ei,"href"],s=w(e);return t.map(n=>{const o=U(e,n);return o?n===qs?M(e,o):S(o,s):null}).filter(n=>n)[0]},de=`[data-bs-ride="${Dt}"]`,tt=`${Dt}-item`,Ze="data-bs-slide-to",vt="data-bs-slide",wt="paused",Vs={pause:"hover",keyboard:!1,touch:!0,interval:5e3},ht=e=>W(e,Un),Ti=e=>new ms(e);let Zt=0,me=0,Me=0;const Be=E(`slide.bs.${Dt}`),Je=E(`slid.bs.${Dt}`),Xs=e=>{const{index:t,direction:s,element:n,slides:o,options:i}=e;if(e.isAnimating){const r=ts(e),c=s==="left"?"next":"prev",a=s==="left"?"start":"end";d(o[t],T),v(o[t],`${tt}-${c}`),v(o[t],`${tt}-${a}`),v(o[r],T),v(o[r],`${tt}-${a}`),b(n,Je),g.clear(n,vt),e.cycle&&!w(n).hidden&&i.interval&&!e.isPaused&&e.cycle()}};function $i(){const e=ht(this);e&&!e.isPaused&&!g.get(this,wt)&&d(this,wt)}function yi(){const e=ht(this);e&&e.isPaused&&!g.get(this,wt)&&e.cycle()}function Ci(e){e.preventDefault();const t=M(this,de)||z(this),s=t&&ht(t);if(nt(this)||!s||s.isAnimating)return;const n=+(U(this,Ze)||0);this&&!h(this,T)&&!Number.isNaN(n)&&s.to(n)}function Si(e){e.preventDefault();const t=M(this,de)||z(this),s=t&&ht(t);if(nt(this)||!s||s.isAnimating)return;const n=U(this,vt);n==="next"?s.next():n==="prev"&&s.prev()}const xi=({code:e,target:t})=>{const s=w(t),[n]=[...X(de,s)].filter(a=>qn(a)),o=ht(n);if(!o||o.isAnimating||/textarea|input|select/i.test(t.nodeName))return;const i=Tt(n);e===(i?Ms:Ns)?o.prev():e===(i?Ns:Ms)&&o.next()};function Ys(e){const{target:t}=e,s=ht(this);s&&s.isTouch&&(s.indicator&&!s.indicator.contains(t)||!s.controls.includes(t))&&(e.stopImmediatePropagation(),e.stopPropagation(),e.preventDefault())}function Pi(e){const{target:t}=e,s=ht(this);if(!s||s.isAnimating||s.isTouch)return;const{controls:n,indicators:o}=s;[...n,...o].every(i=>i===t||i.contains(t))||(Zt=e.pageX,this.contains(t)&&(s.isTouch=!0,Gn(s,!0)))}const _i=e=>{me=e.pageX},Di=e=>{const{target:t}=e,s=w(t),n=[...X(de,s)].map(c=>ht(c)).find(c=>c.isTouch);if(!n)return;const{element:o,index:i}=n,r=Tt(o);Me=e.pageX,n.isTouch=!1,Gn(n),!s.getSelection()?.toString().length&&o.contains(t)&&Math.abs(Zt-Me)>120&&(meZt&&n.to(i+(r?1:-1))),Zt=0,me=0,Me=0},Re=(e,t)=>{const{indicators:s}=e;[...s].forEach(n=>v(n,T)),e.indicators[t]&&d(s[t],T)},Gn=(e,t)=>{const{element:s}=e,n=t?k:L;n(w(s),Wo,_i,te),n(w(s),Fo,Di,te)},ts=e=>{const{slides:t,element:s}=e,n=S(`.${tt}.${T}`,s);return n?[...t].indexOf(n):-1};class ms extends st{static selector=de;static init=Ti;static getInstance=ht;constructor(t,s){super(t,s);const{element:n}=this;this.direction=Tt(n)?"right":"left",this.isTouch=!1,this.slides=rt(tt,n);const{slides:o}=this;if(o.length<2)return;const i=ts(this),r=[...o].find(l=>zn(l,`.${tt}-next`));this.index=i;const c=w(n);this.controls=[...X(`[${vt}]`,n),...X(`[${vt}][${Qe}="#${n.id}"]`,c)].filter((l,f,u)=>f===u.indexOf(l)),this.indicator=S(`.${Dt}-indicators`,n),this.indicators=[...this.indicator?X(`[${Ze}]`,this.indicator):[],...X(`[${Ze}][${Qe}="#${n.id}"]`,c)].filter((l,f,u)=>f===u.indexOf(l));const{options:a}=this;this.options.interval=a.interval===!0?Vs.interval:a.interval,r?this.index=[...o].indexOf(r):i<0&&(this.index=0,d(o[0],T),this.indicators.length&&Re(this,0)),this.indicators.length&&Re(this,this.index),this._toggleEventListeners(!0),a.interval&&this.cycle()}get name(){return Un}get defaults(){return Vs}get isPaused(){return h(this.element,wt)}get isAnimating(){return S(`.${tt}-next,.${tt}-prev`,this.element)!==null}cycle(){const{element:t,options:s,isPaused:n,index:o}=this;g.clear(t,Dt),n&&(g.clear(t,wt),v(t,wt)),g.set(t,()=>{this.element&&!this.isPaused&&!this.isTouch&&qn(t)&&this.to(o+1)},s.interval,Dt)}pause(){const{element:t,options:s}=this;this.isPaused||!s.interval||(d(t,wt),g.set(t,()=>{},1,wt))}next(){this.isAnimating||this.to(this.index+1)}prev(){this.isAnimating||this.to(this.index-1)}to(t){const{element:s,slides:n,options:o}=this,i=ts(this),r=Tt(s);let c=t;if(this.isAnimating||i===c||g.get(s,vt))return;ic||i===n.length-1&&c===0)&&(this.direction=r?"left":"right");const{direction:a}=this;c<0?c=n.length-1:c>=n.length&&(c=0);const l=a==="left"?"next":"prev",f=a==="left"?"start":"end",u={relatedTarget:n[c],from:i,to:c,direction:a};at(Be,u),at(Je,u),b(s,Be),!Be.defaultPrevented&&(this.index=c,Re(this,c),le(n[c])&&h(s,"slide")?g.set(s,()=>{d(n[c],`${tt}-${l}`),Ot(n[c]),d(n[c],`${tt}-${f}`),d(n[i],`${tt}-${f}`),x(n[c],()=>this.slides&&this.slides.length&&Xs(this))},0,vt):(d(n[c],T),v(n[i],T),g.set(s,()=>{g.clear(s,vt),s&&o.interval&&!this.isPaused&&this.cycle(),b(s,Je)},0,vt)))}_toggleEventListeners=t=>{const{element:s,options:n,slides:o,controls:i,indicators:r}=this,{touch:c,pause:a,interval:l,keyboard:f}=n,u=t?k:L;a&&l&&(u(s,Ce,$i),u(s,ds,yi)),c&&o.length>2&&(u(s,Ro,Pi,te),u(s,hs,Ys,{passive:!1}),u(s,jo,Ys,{passive:!1})),i.length&&i.forEach($=>{u($,H,Si)}),r.length&&r.forEach($=>{u($,H,Ci)}),f&&u(w(s),ye,xi)};dispose(){const{isAnimating:t}=this,s={...this,isAnimating:t};this._toggleEventListeners(),super.dispose(),s.isAnimating&&x(s.slides[s.index],()=>{Xs(s)})}}const kt="collapsing",j="collapse",Qn="Collapse",Ai=`.${j}`,Zn=`[${ot}="${j}"]`,Hi={parent:null},ve=e=>W(e,Qn),Ii=e=>new vs(e),Us=E(`show.bs.${j}`),ki=E(`shown.bs.${j}`),Gs=E(`hide.bs.${j}`),Li=E(`hidden.bs.${j}`),Oi=e=>{const{element:t,parent:s,triggers:n}=e;b(t,Us),Us.defaultPrevented||(g.set(t,Te,17),s&&g.set(s,Te,17),d(t,kt),v(t,j),P(t,{height:`${t.scrollHeight}px`}),x(t,()=>{g.clear(t),s&&g.clear(s),n.forEach(o=>I(o,Ee,"true")),v(t,kt),d(t,j),d(t,p),P(t,{height:""}),b(t,ki)}))},Qs=e=>{const{element:t,parent:s,triggers:n}=e;b(t,Gs),Gs.defaultPrevented||(g.set(t,Te,17),s&&g.set(s,Te,17),P(t,{height:`${t.scrollHeight}px`}),v(t,j),v(t,p),d(t,kt),Ot(t),P(t,{height:"0px"}),x(t,()=>{g.clear(t),s&&g.clear(s),n.forEach(o=>I(o,Ee,"false")),v(t,kt),d(t,j),P(t,{height:""}),b(t,Li)}))},Ni=e=>{const{target:t}=e,s=t&&M(t,Zn),n=s&&z(s),o=n&&ve(n);s&&nt(s)||o&&(o.toggle(),s?.tagName==="A"&&e.preventDefault())};class vs extends st{static selector=Ai;static init=Ii;static getInstance=ve;constructor(t,s){super(t,s);const{element:n,options:o}=this,i=w(n);this.triggers=[...X(Zn,i)].filter(r=>z(r)===n),this.parent=_(o.parent)?o.parent:ae(o.parent)?z(n)||S(o.parent,i):null,this._toggleEventListeners(!0)}get name(){return Qn}get defaults(){return Hi}hide(){const{triggers:t,element:s}=this;g.get(s)||(Qs(this),t.length&&t.forEach(n=>d(n,`${j}d`)))}show(){const{element:t,parent:s,triggers:n}=this;let o,i;s&&(o=[...X(`.${j}.${p}`,s)].find(r=>ve(r)),i=o&&ve(o)),(!s||!g.get(s))&&!g.get(t)&&(i&&o!==t&&(Qs(i),i.triggers.forEach(r=>{d(r,`${j}d`)})),Oi(this),n.length&&n.forEach(r=>v(r,`${j}d`)))}toggle(){h(this.element,p)?this.hide():this.show()}_toggleEventListeners=t=>{const s=t?k:L,{triggers:n}=this;n.length&&n.forEach(o=>{s(o,H,Ni)})};dispose(){this._toggleEventListeners(),super.dispose()}}const Mi=e=>e!=null&&typeof e=="object"||!1,Bi=e=>Mi(e)&&typeof e.nodeType=="number"&&[1,2,3,4,5,6,7,8,9,10,11].some(t=>e.nodeType===t)||!1,Zs=e=>Bi(e)&&e.nodeType===1||!1,Ri=e=>typeof e=="function"||!1,Wi="1.0.2",Js="PositionObserver Error";class bs{entries;static version=Wi;_tick;_root;_callback;constructor(t,s){if(!Ri(t))throw new Error(`${Js}: ${t} is not a function.`);this.entries=new Map,this._callback=t,this._root=Zs(s?.root)?s.root:document?.documentElement,this._tick=0}observe=t=>{if(!Zs(t))throw new Error(`${Js}: ${t} is not an instance of Element.`);this._root.contains(t)&&this._new(t).then(s=>{s&&!this.getEntry(t)&&this.entries.set(t,s),this._tick||(this._tick=requestAnimationFrame(this._runCallback))})};unobserve=t=>{this.entries.has(t)&&this.entries.delete(t)};_runCallback=()=>{if(!this.entries.size)return;const t=new Promise(s=>{const n=[];this.entries.forEach(({target:o,boundingClientRect:i})=>{this._root.contains(o)&&this._new(o).then(({boundingClientRect:r,isIntersecting:c})=>{if(!c)return;const{left:a,top:l,bottom:f,right:u}=r;if(i.top!==l||i.left!==a||i.right!==u||i.bottom!==f){const $={target:o,boundingClientRect:r};this.entries.set(o,$),n.push($)}})}),s(n)});this._tick=requestAnimationFrame(async()=>{const s=await t;s.length&&this._callback(s,this),this._runCallback()})};_new=t=>new Promise(s=>{new IntersectionObserver(([n],o)=>{o.disconnect(),s(n)}).observe(t)});getEntry=t=>this.entries.get(t);disconnect=()=>{cancelAnimationFrame(this._tick),this.entries.clear(),this._tick=0}}const Lt=["dropdown","dropup","dropstart","dropend"],Jn="Dropdown",to="dropdown-menu",eo=e=>{const t=M(e,"A");return e.tagName==="A"&&Jt(e,"href")&&U(e,"href")?.slice(-1)==="#"||t&&Jt(t,"href")&&U(t,"href")?.slice(-1)==="#"},[et,es,ss,ns]=Lt,Fi=`[${ot}="${et}"]`,se=e=>W(e,Jn),ji=e=>new Es(e),zi=`${to}-end`,tn=[et,es],en=[ss,ns],sn=["A","BUTTON"],Ki={offset:5,display:"dynamic"},We=E(`show.bs.${et}`),nn=E(`shown.bs.${et}`),Fe=E(`hide.bs.${et}`),on=E(`hidden.bs.${et}`),so=E(`updated.bs.${et}`),rn=e=>{const{element:t,menu:s,parentElement:n,options:o}=e,{offset:i}=o;if(R(s,"position")==="static")return;const r=Tt(t),c=h(s,zi);["margin","top","bottom","left","right"].forEach(B=>{const Ct={};Ct[B]="",P(s,Ct)});let l=Lt.find(B=>h(n,B))||et;const f={dropdown:[i,0,0],dropup:[0,0,i],dropstart:r?[-1,0,0,i]:[-1,i,0],dropend:r?[-1,i,0]:[-1,0,0,i]},u={dropdown:{top:"100%"},dropup:{top:"auto",bottom:"100%"},dropstart:r?{left:"100%",right:"auto"}:{left:"auto",right:"100%"},dropend:r?{left:"auto",right:"100%"}:{left:"100%",right:"auto"},menuStart:r?{right:"0",left:"auto"}:{right:"auto",left:"0"},menuEnd:r?{right:"auto",left:"0"}:{right:"0",left:"auto"}},{offsetWidth:$,offsetHeight:N}=s,{clientWidth:V,clientHeight:Z}=dt(t),{left:m,top:K,width:$t,height:yt}=It(t),C=m-$-i<0,ft=m+$+$t+i>=V,it=K+N+i>=Z,J=K+N+yt+i>=Z,Bt=K-N-i<0,y=(!r&&c||r&&!c)&&m+$t-$<0,F=(r&&c||!r&&!c)&&m+$>=V;if(en.includes(l)&&C&&ft&&(l=et),l===ss&&(r?ft:C)&&(l=ns),l===ns&&(r?C:ft)&&(l=ss),l===es&&Bt&&!J&&(l=et),l===et&&J&&!Bt&&(l=es),en.includes(l)&&it&&at(u[l],{top:"auto",bottom:0}),tn.includes(l)&&(y||F)){let B={left:"auto",right:"auto"};!y&&F&&!r&&(B={left:"auto",right:0}),y&&!F&&r&&(B={left:0,right:"auto"}),B&&at(u[l],B)}const Rt=f[l];P(s,{...u[l],margin:`${Rt.map(B=>B&&`${B}px`).join(" ")}`}),tn.includes(l)&&c&&c&&P(s,u[!r&&y||r&&F?"menuStart":"menuEnd"]),b(n,so)},qi=e=>Array.from(e.children).map(t=>{if(t&&sn.includes(t.tagName))return t;const{firstElementChild:s}=t;return s&&sn.includes(s.tagName)?s:null}).filter(t=>t),cn=e=>{const{element:t,options:s,menu:n}=e,o=e.open?k:L,i=w(t);o(i,H,an),o(i,as,an),o(i,ye,Xi),o(i,Mo,Yi),s.display==="dynamic"&&(e.open?e._observer.observe(n):e._observer.disconnect())},ws=e=>{const t=[...Lt,"btn-group","input-group"].map(s=>rt(`${s} ${p}`,w(e))).find(s=>s.length);if(t&&t.length)return[...t[0].children].find(s=>Lt.some(n=>n===U(s,ot)))},an=e=>{const{target:t,type:s}=e;if(!_(t))return;const n=ws(t),o=n&&se(n);if(!o)return;const{parentElement:i,menu:r}=o,c=i&&i.contains(t)&&(t.tagName==="form"||M(t,"form")!==null);[H,Mn].includes(s)&&eo(t)&&e.preventDefault(),!c&&s!==as&&t!==n&&t!==r&&o.hide()};function Vi(e){const t=se(this);nt(this)||t&&(e.stopPropagation(),t.toggle(),eo(this)&&e.preventDefault())}const Xi=e=>{[Xe,Ye].includes(e.code)&&e.preventDefault()};function Yi(e){const{code:t}=e,s=ws(this);if(!s)return;const n=se(s),{activeElement:o}=w(s);if(!n||!o)return;const{menu:i,open:r}=n,c=qi(i);if(c&&c.length&&[Xe,Ye].includes(t)){let a=c.indexOf(o);o===s?a=0:t===Ye?a=a>1?a-1:0:t===Xe&&(a=arn(this)),this._toggleEventListeners(!0))}get name(){return Jn}get defaults(){return Ki}toggle(){this.open?this.hide():this.show()}show(){const{element:t,open:s,menu:n,parentElement:o}=this;if(s)return;const i=ws(t),r=i&&se(i);r&&r.hide(),[We,nn,so].forEach(c=>{c.relatedTarget=t}),b(o,We),!We.defaultPrevented&&(d(n,p),d(o,p),I(t,Ee,"true"),rn(this),this.open=!s,lt(t),cn(this),b(o,nn))}hide(){const{element:t,open:s,menu:n,parentElement:o}=this;s&&([Fe,on].forEach(i=>{i.relatedTarget=t}),b(o,Fe),!Fe.defaultPrevented&&(v(n,p),v(o,p),I(t,Ee,"false"),this.open=!s,cn(this),b(o,on)))}_toggleEventListeners=t=>{(t?k:L)(this.element,H,Vi)};dispose(){this.open&&this.hide(),this._toggleEventListeners(),super.dispose()}}const q="modal",Ts="Modal",$s="Offcanvas",Ui="fixed-top",Gi="fixed-bottom",no="sticky-top",oo="position-sticky",io=e=>[...rt(Ui,e),...rt(Gi,e),...rt(no,e),...rt(oo,e),...rt("is-fixed",e)],Qi=e=>{const t=Nt(e);P(t,{paddingRight:"",overflow:""});const s=io(t);s.length&&s.forEach(n=>{P(n,{paddingRight:"",marginRight:""})})},ro=e=>{const{clientWidth:t}=dt(e),{innerWidth:s}=jn(e);return Math.abs(s-t)},co=(e,t)=>{const s=Nt(e),n=parseInt(R(s,"paddingRight"),10),i=R(s,"overflow")==="hidden"&&n?0:ro(e),r=io(s);t&&(P(s,{overflow:"hidden",paddingRight:`${n+i}px`}),r.length&&r.forEach(c=>{const a=R(c,"paddingRight");if(c.style.paddingRight=`${parseInt(a,10)+i}px`,[no,oo].some(l=>h(c,l))){const l=R(c,"marginRight");c.style.marginRight=`${parseInt(l,10)-i}px`}}))},G="offcanvas",Et=bt({tagName:"div",className:"popup-container"}),ao=(e,t)=>{const s=D(t)&&t.nodeName==="BODY",n=D(t)&&!s?t:Et,o=s?t:Nt(e);D(e)&&(n===Et&&o.append(Et),n.append(e))},lo=(e,t)=>{const s=D(t)&&t.nodeName==="BODY",n=D(t)&&!s?t:Et;D(e)&&(e.remove(),n===Et&&!Et.children.length&&Et.remove())},ys=(e,t)=>{const s=D(t)&&t.nodeName!=="BODY"?t:Et;return D(e)&&s.contains(e)},ho="backdrop",ln=`${q}-${ho}`,dn=`${G}-${ho}`,fo=`.${q}.${p}`,Cs=`.${G}.${p}`,A=bt("div"),Mt=e=>S(`${fo},${Cs}`,w(e)),Ss=e=>{const t=e?ln:dn;[ln,dn].forEach(s=>{v(A,s)}),d(A,t)},uo=(e,t,s)=>{Ss(s),ao(A,Nt(e)),t&&d(A,O)},go=()=>{h(A,p)||(d(A,p),Ot(A))},_e=()=>{v(A,p)},po=e=>{Mt(e)||(v(A,O),lo(A,Nt(e)),Qi(e))},mo=e=>_(e)&&R(e,"visibility")!=="hidden"&&e.offsetParent!==null,Zi=`.${q}`,Ji=`[${ot}="${q}"]`,tr=`[${xe}="${q}"]`,vo=`${q}-static`,er={backdrop:!0,keyboard:!0},ne=e=>W(e,Ts),sr=e=>new xs(e),be=E(`show.bs.${q}`),hn=E(`shown.bs.${q}`),je=E(`hide.bs.${q}`),fn=E(`hidden.bs.${q}`),bo=e=>{const{element:t}=e,s=ro(t),{clientHeight:n,scrollHeight:o}=dt(t),{clientHeight:i,scrollHeight:r}=t,c=i!==r;if(!c&&s){const l={[Tt(t)?"paddingLeft":"paddingRight"]:`${s}px`};P(t,l)}co(t,c||n!==o)},wo=(e,t)=>{const s=t?k:L,{element:n}=e;s(n,H,ir),s(w(n),ye,or),t?e._observer.observe(n):e._observer.disconnect()},un=e=>{const{triggers:t,element:s,relatedTarget:n}=e;po(s),P(s,{paddingRight:"",display:""}),wo(e);const o=be.relatedTarget||t.find(mo);o&<(o),fn.relatedTarget=n||void 0,b(s,fn),Se(s)},gn=e=>{const{element:t,relatedTarget:s}=e;lt(t),wo(e,!0),hn.relatedTarget=s||void 0,b(t,hn),Se(t)},pn=e=>{const{element:t,hasFade:s}=e;P(t,{display:"block"}),bo(e),Mt(t)||P(Nt(t),{overflow:"hidden"}),d(t,p),Ht(t,re),I(t,$e,"true"),s?x(t,()=>gn(e)):gn(e)},mn=e=>{const{element:t,options:s,hasFade:n}=e;s.backdrop&&n&&h(A,p)&&!Mt(t)?(_e(),x(A,()=>un(e))):un(e)};function nr(e){const t=z(this),s=t&&ne(t);nt(this)||s&&(this.tagName==="A"&&e.preventDefault(),s.relatedTarget=this,s.toggle())}const or=({code:e,target:t})=>{const s=S(fo,w(t)),n=s&&ne(s);if(!n)return;const{options:o}=n;o.keyboard&&e===fs&&h(s,p)&&(n.relatedTarget=null,n.hide())},ir=e=>{const{currentTarget:t}=e,s=t&&ne(t);if(!s||!t||g.get(t))return;const{options:n,isStatic:o,modalDialog:i}=s,{backdrop:r}=n,{target:c}=e,a=w(t)?.getSelection()?.toString().length,l=i.contains(c),f=c&&M(c,tr);o&&!l?g.set(t,()=>{d(t,vo),x(i,()=>rr(s))},17):(f||!a&&!o&&!l&&r)&&(s.relatedTarget=f||null,s.hide(),e.preventDefault())},rr=e=>{const{element:t,modalDialog:s}=e,n=(le(s)||0)+17;v(t,vo),g.set(t,()=>g.clear(t),n)};class xs extends st{static selector=Zi;static init=sr;static getInstance=ne;constructor(t,s){super(t,s);const{element:n}=this,o=S(`.${q}-dialog`,n);o&&(this.modalDialog=o,this.triggers=[...X(Ji,w(n))].filter(i=>z(i)===n),this.isStatic=this.options.backdrop==="static",this.hasFade=h(n,O),this.relatedTarget=null,this._observer=new ResizeObserver(()=>this.update()),this._toggleEventListeners(!0))}get name(){return Ts}get defaults(){return er}toggle(){h(this.element,p)?this.hide():this.show()}show(){const{element:t,options:s,hasFade:n,relatedTarget:o}=this,{backdrop:i}=s;let r=0;if(h(t,p)||(be.relatedTarget=o||void 0,b(t,be),be.defaultPrevented))return;const c=Mt(t);if(c&&c!==t){const a=ne(c)||W(c,$s);a&&a.hide()}i?(ys(A)?Ss(!0):uo(t,n,!0),r=le(A),go(),setTimeout(()=>pn(this),r)):(pn(this),c&&h(A,p)&&_e())}hide(){const{element:t,hasFade:s,relatedTarget:n}=this;h(t,p)&&(je.relatedTarget=n||void 0,b(t,je),!je.defaultPrevented&&(v(t,p),I(t,re,"true"),Ht(t,$e),s?x(t,()=>mn(this)):mn(this)))}update=()=>{h(this.element,p)&&bo(this)};_toggleEventListeners=t=>{const s=t?k:L,{triggers:n}=this;n.length&&n.forEach(o=>{s(o,H,nr)})};dispose(){const t={...this},{modalDialog:s,hasFade:n}=t,o=()=>setTimeout(()=>super.dispose(),17);this.hide(),this._toggleEventListeners(),n?x(s,o):o()}}const cr=`.${G}`,Eo=`[${ot}="${G}"]`,ar=`[${xe}="${G}"]`,De=`${G}-toggling`,lr={backdrop:!0,keyboard:!0,scroll:!1},oe=e=>W(e,$s),dr=e=>new Ps(e),we=E(`show.bs.${G}`),To=E(`shown.bs.${G}`),ze=E(`hide.bs.${G}`),$o=E(`hidden.bs.${G}`),hr=e=>{const{element:t}=e,{clientHeight:s,scrollHeight:n}=dt(t);co(t,s!==n)},yo=(e,t)=>{const s=t?k:L,n=w(e.element);s(n,ye,pr),s(n,H,gr)},vn=e=>{const{element:t,options:s}=e;s.scroll||(hr(e),P(Nt(t),{overflow:"hidden"})),d(t,De),d(t,p),P(t,{visibility:"visible"}),x(t,()=>mr(e))},fr=e=>{const{element:t,options:s}=e,n=Mt(t);t.blur(),!n&&s.backdrop&&h(A,p)&&_e(),x(t,()=>vr(e))};function ur(e){const t=z(this),s=t&&oe(t);nt(this)||s&&(s.relatedTarget=this,s.toggle(),this.tagName==="A"&&e.preventDefault())}const gr=e=>{const{target:t}=e,s=S(Cs,w(t));if(!s)return;const n=S(ar,s),o=oe(s);if(!o)return;const{options:i,triggers:r}=o,{backdrop:c}=i,a=M(t,Eo),l=w(s).getSelection();A.contains(t)&&c==="static"||(!(l&&l.toString().length)&&(!s.contains(t)&&c&&(!a||r.includes(t))||n&&n.contains(t))&&(o.relatedTarget=n&&n.contains(t)?n:void 0,o.hide()),a&&a.tagName==="A"&&e.preventDefault())},pr=({code:e,target:t})=>{const s=S(Cs,w(t)),n=s&&oe(s);n&&n.options.keyboard&&e===fs&&(n.relatedTarget=void 0,n.hide())},mr=e=>{const{element:t}=e;v(t,De),Ht(t,re),I(t,$e,"true"),I(t,"role","dialog"),b(t,To),yo(e,!0),lt(t),Se(t)},vr=e=>{const{element:t,triggers:s}=e;I(t,re,"true"),Ht(t,$e),Ht(t,"role"),P(t,{visibility:""});const n=we.relatedTarget||s.find(mo);n&<(n),po(t),b(t,$o),v(t,De),Se(t),Mt(t)||yo(e)};class Ps extends st{static selector=cr;static init=dr;static getInstance=oe;constructor(t,s){super(t,s);const{element:n}=this;this.triggers=[...X(Eo,w(n))].filter(o=>z(o)===n),this.relatedTarget=void 0,this._toggleEventListeners(!0)}get name(){return $s}get defaults(){return lr}toggle(){h(this.element,p)?this.hide():this.show()}show(){const{element:t,options:s,relatedTarget:n}=this;let o=0;if(h(t,p)||(we.relatedTarget=n||void 0,To.relatedTarget=n||void 0,b(t,we),we.defaultPrevented))return;const i=Mt(t);if(i&&i!==t){const r=oe(i)||W(i,Ts);r&&r.hide()}s.backdrop?(ys(A)?Ss():uo(t,!0),o=le(A),go(),setTimeout(()=>vn(this),o)):(vn(this),i&&h(A,p)&&_e())}hide(){const{element:t,relatedTarget:s}=this;h(t,p)&&(ze.relatedTarget=s||void 0,$o.relatedTarget=s||void 0,b(t,ze),!ze.defaultPrevented&&(d(t,De),v(t,p),fr(this)))}_toggleEventListeners=t=>{const s=t?k:L;this.triggers.forEach(n=>{s(n,H,ur)})};dispose(){const{element:t}=this,s=h(t,p),n=()=>setTimeout(()=>super.dispose(),1);this.hide(),this._toggleEventListeners(),s?x(t,n):n()}}const At="popover",_s="Popover",ct="tooltip",Co=e=>{const t=e===ct,s=t?`${e}-inner`:`${e}-body`,n=t?"":`

`,o=`
`,i=`
`;return`
${n+o+i}
`},So={top:"top",bottom:"bottom",left:"start",right:"end"},os=e=>{requestAnimationFrame(()=>{const t=/\b(top|bottom|start|end)+/,{element:s,tooltip:n,container:o,offsetParent:i,options:r,arrow:c}=e;if(!n)return;const a=Tt(s),{x:l,y:f}=ti(i);P(n,{top:"",left:"",right:"",bottom:""});const{offsetWidth:u,offsetHeight:$}=n,{clientWidth:N,clientHeight:V,offsetWidth:Z}=dt(s);let{placement:m}=r;const{clientWidth:K,offsetWidth:$t}=o,C=R(o,"position")==="fixed",ft=Math.abs(C?K-$t:N-Z),it=a&&C?ft:0,J=N-(a?0:ft)-1,Bt=e._observer.getEntry(s),{width:y,height:F,left:Rt,right:B,top:Ct}=Bt?.boundingClientRect||It(s,!0),{x:fe,y:Wt}=oi(s,i,{x:l,y:f});P(c,{top:"",left:"",right:"",bottom:""});let St=0,Vt="",ut=0,He="",Ft="",ue="",Ie="";const xt=c.offsetWidth||0,gt=c.offsetHeight||0,ke=xt/2;let Xt=Ct-$-gt<0,Yt=Ct+$+F+gt>=V,Ut=Rt-u-xt=J;const ge=["left","right"],Le=["top","bottom"];Xt=ge.includes(m)?Ct+F/2-$/2-gt<0:Xt,Yt=ge.includes(m)?Ct+$/2+F/2+gt>=V:Yt,Ut=Le.includes(m)?Rt+y/2-u/2=J:Gt,m=ge.includes(m)&&Ut&&Gt?"top":m,m=m==="top"&&Xt?"bottom":m,m=m==="bottom"&&Yt?"top":m,m=m==="left"&&Ut?"right":m,m=m==="right"&&Gt?"left":m,n.className.includes(m)||(n.className=n.className.replace(t,So[m])),ge.includes(m)?(m==="left"?ut=fe-u-xt:ut=fe+y+xt,Xt&&Yt?(St=0,Vt=0,Ft=Wt+F/2-gt/2):Xt?(St=Wt,Vt="",Ft=F/2-xt):Yt?(St=Wt-$+F,Vt="",Ft=$-F/2-xt):(St=Wt-$/2+F/2,Ft=$/2-gt/2)):Le.includes(m)&&(m==="top"?St=Wt-$-gt:St=Wt+F+gt,Ut?(ut=0,ue=fe+y/2-ke):Gt?(ut="auto",He=0,Ie=y/2+J-B-ke):(ut=fe-u/2+y/2,ue=u/2-ke)),P(n,{top:`${St}px`,bottom:Vt===""?"":`${Vt}px`,left:ut==="auto"?ut:`${ut}px`,right:He!==""?`${He}px`:""}),_(c)&&(Ft!==""&&(c.style.top=`${Ft}px`),ue!==""?c.style.left=`${ue}px`:Ie!==""&&(c.style.right=`${Ie}px`));const No=E(`updated.bs.${ee(e.name)}`);b(s,No)})},is={template:Co(ct),title:"",customClass:"",trigger:"hover focus",placement:"top",sanitizeFn:void 0,animation:!0,delay:200,container:document.body,content:"",dismissible:!1,btnClose:""},xo="data-original-title",Pt="Tooltip",mt=(e,t,s)=>{if(ae(t)&&t.length){let n=t.trim();ri(s)&&(n=s(n));const i=new DOMParser().parseFromString(n,"text/html");e.append(...i.body.childNodes)}else _(t)?e.append(t):(ci(t)||ii(t)&&t.every(D))&&e.append(...t)},br=e=>{const t=e.name===Pt,{id:s,element:n,options:o}=e,{title:i,placement:r,template:c,animation:a,customClass:l,sanitizeFn:f,dismissible:u,content:$,btnClose:N}=o,V=t?ct:At,Z={...So};let m=[],K=[];Tt(n)&&(Z.left="end",Z.right="start");const $t=`bs-${V}-${Z[r]}`;let yt;if(_(c))yt=c;else{const y=bt("div");mt(y,c,f),yt=y.firstChild}if(!_(yt))return;e.tooltip=yt.cloneNode(!0);const{tooltip:C}=e;I(C,"id",s),I(C,"role",ct);const ft=t?`${ct}-inner`:`${At}-body`,it=t?null:S(`.${At}-header`,C),J=S(`.${ft}`,C);e.arrow=S(`.${V}-arrow`,C);const{arrow:Bt}=e;if(_(i))m=[i.cloneNode(!0)];else{const y=bt("div");mt(y,i,f),m=[...y.childNodes]}if(_($))K=[$.cloneNode(!0)];else{const y=bt("div");mt(y,$,f),K=[...y.childNodes]}if(u)if(i)if(_(N))m=[...m,N.cloneNode(!0)];else{const y=bt("div");mt(y,N,f),m=[...m,y.firstChild]}else if(it&&it.remove(),_(N))K=[...K,N.cloneNode(!0)];else{const y=bt("div");mt(y,N,f),K=[...K,y.firstChild]}t?i&&J&&mt(J,i,f):(i&&it&&mt(it,m,f),$&&J&&mt(J,K,f),e.btn=S(".btn-close",C)||void 0),d(C,"position-absolute"),d(Bt,"position-absolute"),h(C,V)||d(C,V),a&&!h(C,O)&&d(C,O),l&&!h(C,l)&&d(C,l),h(C,$t)||d(C,$t)},wr=e=>{const t=["HTML","BODY"],s=[];let{parentNode:n}=e;for(;n&&!t.includes(n.nodeName);)n=ei(n),Fn(n)||si(n)||s.push(n);return s.find((o,i)=>(R(o,"position")!=="relative"||R(o,"position")==="relative"&&o.offsetHeight!==o.scrollHeight)&&s.slice(i+1).every(r=>R(r,"position")==="static")?o:null)||w(e).body},Er=`[${ot}="${ct}"],[data-tip="${ct}"]`,Po="title";let bn=e=>W(e,Pt);const Tr=e=>new Ae(e),$r=e=>{const{element:t,tooltip:s,container:n}=e;Ht(t,On),lo(s,n)},Qt=e=>{const{tooltip:t,container:s}=e;return t&&ys(t,s)},yr=(e,t)=>{const{element:s}=e;e._toggleEventListeners(),Jt(s,xo)&&e.name===Pt&&Do(e),t&&t()},_o=(e,t)=>{const s=t?k:L,{element:n}=e;s(w(n),hs,e.handleTouch,te)},wn=e=>{const{element:t}=e,s=E(`shown.bs.${ee(e.name)}`);_o(e,!0),b(t,s),g.clear(t,"in")},En=e=>{const{element:t}=e,s=E(`hidden.bs.${ee(e.name)}`);_o(e),$r(e),b(t,s),g.clear(t,"out")},Tn=(e,t)=>{const s=t?k:L,{element:n,tooltip:o}=e,i=M(n,`.${q}`),r=M(n,`.${G}`);t?[n,o].forEach(c=>e._observer.observe(c)):e._observer.disconnect(),i&&s(i,`hide.bs.${q}`,e.handleHide),r&&s(r,`hide.bs.${G}`,e.handleHide)},Do=(e,t)=>{const s=[xo,Po],{element:n}=e;I(n,s[t?0:1],t||U(n,s[0])||""),Ht(n,s[t?1:0])};class Ae extends st{static selector=Er;static init=Tr;static getInstance=bn;static styleTip=os;constructor(t,s){super(t,s);const{element:n}=this,o=this.name===Pt,i=o?ct:At,r=o?Pt:_s;bn=f=>W(f,r),this.enabled=!0,this.id=`${i}-${Kn(n,i)}`;const{options:c}=this;if(!c.title&&o||!o&&!c.content)return;at(is,{titleAttr:""}),Jt(n,Po)&&o&&typeof c.title=="string"&&Do(this,c.title);const a=wr(n),l=["sticky","fixed","relative"].some(f=>R(a,"position")===f)?a:jn(n);this.container=a,this.offsetParent=l,br(this),this.tooltip&&(this._observer=new bs(()=>this.update()),this._toggleEventListeners(!0))}get name(){return Pt}get defaults(){return is}handleFocus=()=>lt(this.element);handleShow=()=>this.show();show(){const{options:t,tooltip:s,element:n,container:o,id:i}=this,{animation:r}=t,c=g.get(n,"out");g.clear(n,"out"),s&&!c&&!Qt(this)&&g.set(n,()=>{const a=E(`show.bs.${ee(this.name)}`);b(n,a),a.defaultPrevented||(ao(s,o),I(n,On,`#${i}`),this.update(),Tn(this,!0),h(s,p)||d(s,p),r?x(s,()=>wn(this)):wn(this))},17,"in")}handleHide=()=>this.hide();hide(){const{options:t,tooltip:s,element:n}=this,{animation:o,delay:i}=t;g.clear(n,"in"),s&&Qt(this)&&g.set(n,()=>{const r=E(`hide.bs.${ee(this.name)}`);b(n,r),r.defaultPrevented||(this.update(),v(s,p),Tn(this),o?x(s,()=>En(this)):En(this))},i+17,"out")}update=()=>{os(this)};toggle=()=>{const{tooltip:t}=this;t&&!Qt(this)?this.show():this.hide()};enable(){const{enabled:t}=this;t||(this._toggleEventListeners(!0),this.enabled=!t)}disable(){const{tooltip:t,enabled:s}=this;s&&(t&&Qt(this)&&this.hide(),this._toggleEventListeners(),this.enabled=!s)}toggleEnabled(){this.enabled?this.disable():this.enable()}handleTouch=({target:t})=>{const{tooltip:s,element:n}=this;s&&s.contains(t)||t===n||t&&n.contains(t)||this.hide()};_toggleEventListeners=t=>{const s=t?k:L,{element:n,options:o,btn:i}=this,{trigger:r}=o,a=!!(this.name!==Pt&&o.dismissible);r.includes("manual")||(this.enabled=!!t,r.split(" ").forEach(f=>{f===Bo?(s(n,Mn,this.handleShow),s(n,Ce,this.handleShow),a||(s(n,ds,this.handleHide),s(w(n),hs,this.handleTouch,te))):f===H?s(n,f,a?this.handleShow:this.toggle):f===as&&(s(n,ls,this.handleShow),a||s(n,Nn,this.handleHide),Vo()&&s(n,H,this.handleFocus)),a&&i&&s(i,H,this.handleHide)}))};dispose(){const{tooltip:t,options:s}=this,n={...this,name:this.name},o=()=>setTimeout(()=>yr(n,()=>super.dispose()),17);s.animation&&Qt(n)?(this.options.delay=0,this.hide(),x(t,o)):o()}}const Cr=`[${ot}="${At}"],[data-tip="${At}"]`,Sr=at({},is,{template:Co(At),content:"",dismissible:!1,btnClose:''}),xr=e=>W(e,_s),Pr=e=>new Ds(e);class Ds extends Ae{static selector=Cr;static init=Pr;static getInstance=xr;static styleTip=os;constructor(t,s){super(t,s)}get name(){return _s}get defaults(){return Sr}show=()=>{super.show();const{options:t,btn:s}=this;t.dismissible&&s&&setTimeout(()=>lt(s),17)}}const _r="scrollspy",Ao="ScrollSpy",Dr='[data-bs-spy="scroll"]',Ar="[href]",Hr={offset:10,target:void 0},Ir=e=>W(e,Ao),kr=e=>new As(e),$n=E(`activate.bs.${_r}`),Lr=e=>{const{target:t,_itemsLength:s,_observables:n}=e,o=us("A",t),i=w(t);!o.length||s===n.size||(n.clear(),Array.from(o).forEach(r=>{const c=U(r,"href")?.slice(1),a=c?.length?i.getElementById(c):null;a&&!nt(r)&&e._observables.set(a,r)}),e._itemsLength=e._observables.size)},Ho=e=>{Array.from(us("A",e)).forEach(t=>{h(t,T)&&v(t,T)})},yn=(e,t)=>{const{target:s,element:n}=e;Ho(s),e._activeItem=t,d(t,T);let o=t;for(;o!==s;)if(o=o.parentElement,["nav","dropdown-menu","list-group"].some(i=>h(o,i))){const i=o.previousElementSibling;i&&!h(i,T)&&d(i,T)}$n.relatedTarget=t,b(n,$n)},Ke=(e,t)=>{const{scrollTarget:s,element:n,options:o}=e;return(s!==n?It(t).top+s.scrollTop:t.offsetTop)-(o.offset||10)};class As extends st{static selector=Dr;static init=kr;static getInstance=Ir;constructor(t,s){super(t,s);const{element:n,options:o}=this,i=S(o.target,w(n));i&&(this.target=i,this.scrollTarget=n.clientHeight{requestAnimationFrame(()=>this.refresh())},{root:this.scrollTarget}),this._toggleEventListeners(!0))}get name(){return Ao}get defaults(){return Hr}refresh=()=>{const{target:t,scrollTarget:s}=this;if(!t||t.offsetHeight===0)return;Lr(this);const{_itemsLength:n,_observables:o,_activeItem:i}=this;if(!n)return;const r=o.entries().toArray(),{scrollTop:c,scrollHeight:a,clientHeight:l}=s;if(c>=a-l){const u=r[n-1]?.[1];i!==u&&yn(this,u);return}const f=r[0]?.[0]?Ke(this,r[0][0]):null;if(f!==null&&c0){this._activeItem=null,Ho(t);return}for(let u=0;u=V&&(m===null||c{const s=M(t.target,Ar),n=s&&U(s,"href")?.slice(1),o=n&&ai(n,this.target);o&&(this.scrollTarget.scrollTo({top:o.offsetTop,behavior:"smooth"}),t.preventDefault())};_toggleEventListeners=t=>{const{target:s,_observables:n,_observer:o,_scrollTo:i}=this;(t?k:L)(s,H,i),t?n?.forEach((c,a)=>o.observe(a)):o.disconnect()};dispose(){this._toggleEventListeners(),super.dispose()}}const he="tab",Io="Tab",rs=`[${ot}="${he}"]`,ko=e=>W(e,Io),Or=e=>new Hs(e),qe=E(`show.bs.${he}`),Cn=E(`shown.bs.${he}`),Ve=E(`hide.bs.${he}`),Sn=E(`hidden.bs.${he}`),ie=new Map,xn=e=>{const{tabContent:t,nav:s}=e;t&&h(t,kt)&&(t.style.height="",v(t,kt)),s&&g.clear(s)},Pn=e=>{const{element:t,tabContent:s,content:n,nav:o}=e,{tab:i}=_(o)&&ie.get(o)||{tab:null};if(s&&n&&h(n,O)){const{currentHeight:r,nextHeight:c}=ie.get(t)||{currentHeight:0,nextHeight:0};r!==c?setTimeout(()=>{s.style.height=`${c}px`,Ot(s),x(s,()=>xn(e))},50):xn(e)}else o&&g.clear(o);Cn.relatedTarget=i,b(t,Cn)},_n=e=>{const{element:t,content:s,tabContent:n,nav:o}=e,{tab:i,content:r}=o&&ie.get(o)||{tab:null,content:null};let c=0;if(n&&s&&h(s,O)&&([r,s].forEach(a=>{a&&d(a,"overflow-hidden")}),c=r?r.scrollHeight:0),qe.relatedTarget=i,Sn.relatedTarget=t,b(t,qe),!qe.defaultPrevented){if(s&&d(s,T),r&&v(r,T),n&&s&&h(s,O)){const a=s.scrollHeight;ie.set(t,{currentHeight:c,nextHeight:a,tab:null,content:null}),d(n,kt),n.style.height=`${c}px`,Ot(n),[r,s].forEach(l=>{l&&v(l,"overflow-hidden")})}s&&s&&h(s,O)?setTimeout(()=>{d(s,p),x(s,()=>{Pn(e)})},1):(s&&d(s,p),Pn(e)),i&&b(i,Sn)}},Dn=e=>{const{nav:t}=e;if(!_(t))return{tab:null,content:null};const s=rt(T,t);let n=null;s.length===1&&!Lt.some(i=>h(s[0].parentElement,i))?[n]=s:s.length>1&&(n=s[s.length-1]);const o=_(n)?z(n):null;return{tab:n,content:o}},An=e=>{if(!_(e))return null;const t=M(e,`.${Lt.join(",.")}`);return t?S(`.${Lt[0]}-toggle`,t):null},Nr=e=>{const t=M(e.target,rs),s=t&&ko(t);s&&(e.preventDefault(),s.show())};class Hs extends st{static selector=rs;static init=Or;static getInstance=ko;constructor(t){super(t);const{element:s}=this,n=z(s);if(!n)return;const o=M(s,".nav"),i=M(n,".tab-content");this.nav=o,this.content=n,this.tabContent=i,this.dropdown=An(s);const{tab:r}=Dn(this);if(o&&!r){const c=S(rs,o),a=c&&z(c);a&&(d(c,T),d(a,p),d(a,T),I(s,Oe,"true"))}this._toggleEventListeners(!0)}get name(){return Io}show(){const{element:t,content:s,nav:n,dropdown:o}=this;if(n&&g.get(n)||h(t,T))return;const{tab:i,content:r}=Dn(this);if(n&&i&&ie.set(n,{tab:i,content:r,currentHeight:0,nextHeight:0}),Ve.relatedTarget=t,!_(i)||(b(i,Ve),Ve.defaultPrevented))return;d(t,T),I(t,Oe,"true");const c=_(i)&&An(i);if(c&&h(c,T)&&v(c,T),n){const a=()=>{i&&(v(i,T),I(i,Oe,"false")),o&&!h(o,T)&&d(o,T)};r&&(h(r,O)||s&&h(s,O))?g.set(n,a,1):a()}r&&(v(r,p),h(r,O)?x(r,()=>_n(this)):_n(this))}_toggleEventListeners=t=>{(t?k:L)(this.element,H,Nr)};dispose(){this._toggleEventListeners(),super.dispose()}}const Q="toast",Lo="Toast",Mr=`.${Q}`,Br=`[${xe}="${Q}"]`,Rr=`[${ot}="${Q}"]`,qt="showing",Oo="hide",Wr={animation:!0,autohide:!0,delay:5e3},Is=e=>W(e,Lo),Fr=e=>new ks(e),Hn=E(`show.bs.${Q}`),jr=E(`shown.bs.${Q}`),In=E(`hide.bs.${Q}`),zr=E(`hidden.bs.${Q}`),kn=e=>{const{element:t,options:s}=e;v(t,qt),g.clear(t,qt),b(t,jr),s.autohide&&g.set(t,()=>e.hide(),s.delay,Q)},Ln=e=>{const{element:t}=e;v(t,qt),v(t,p),d(t,Oo),g.clear(t,Q),b(t,zr)},Kr=e=>{const{element:t,options:s}=e;d(t,qt),s.animation?(Ot(t),x(t,()=>Ln(e))):Ln(e)},qr=e=>{const{element:t,options:s}=e;g.set(t,()=>{v(t,Oo),Ot(t),d(t,p),d(t,qt),s.animation?x(t,()=>kn(e)):kn(e)},17,qt)};function Vr(e){const t=z(this),s=t&&Is(t);nt(this)||s&&(this.tagName==="A"&&e.preventDefault(),s.relatedTarget=this,s.show())}const Xr=e=>{const t=e.target,s=Is(t),{type:n,relatedTarget:o}=e;!s||t===o||t.contains(o)||([Ce,ls].includes(n)?g.clear(t,Q):g.set(t,()=>s.hide(),s.options.delay,Q))};class ks extends st{static selector=Mr;static init=Fr;static getInstance=Is;constructor(t,s){super(t,s);const{element:n,options:o}=this;o.animation&&!h(n,O)?d(n,O):!o.animation&&h(n,O)&&v(n,O),this.dismiss=S(Br,n),this.triggers=[...X(Rr,w(n))].filter(i=>z(i)===n),this._toggleEventListeners(!0)}get name(){return Lo}get defaults(){return Wr}get isShown(){return h(this.element,p)}show=()=>{const{element:t,isShown:s}=this;!t||s||(b(t,Hn),Hn.defaultPrevented||qr(this))};hide=()=>{const{element:t,isShown:s}=this;!t||!s||(b(t,In),In.defaultPrevented||Kr(this))};_toggleEventListeners=t=>{const s=t?k:L,{element:n,triggers:o,dismiss:i,options:r,hide:c}=this;i&&s(i,H,c),r.autohide&&[ls,Nn,Ce,ds].forEach(a=>s(n,a,Xr)),o.length&&o.forEach(a=>{s(a,H,Vr)})};dispose(){const{element:t,isShown:s}=this;this._toggleEventListeners(),g.clear(t,Q),s&&v(t,p),super.dispose()}}const Ls=new Map;[gs,ps,ms,vs,Es,xs,Ps,Ds,As,Hs,ks,Ae].forEach(e=>Ls.set(e.prototype.name,e));const Yr=(e,t)=>{[...t].forEach(s=>e(s))},Ur=(e,t)=>{const s=_t.getAllFor(e);s&&[...s].forEach(([n,o])=>{t.contains(n)&&o.dispose()})},cs=e=>{const t=e&&e.nodeName?e:document,s=[...us("*",t)];Ls.forEach(n=>{const{init:o,selector:i}=n;Yr(o,s.filter(r=>zn(r,i)))})},Gr=e=>{const t=e&&e.nodeName?e:document;Ls.forEach(s=>{Ur(s.prototype.name,t)})};document.body?cs():k(document,"DOMContentLoaded",()=>cs(),{once:!0});exports.Alert=gs;exports.Button=ps;exports.Carousel=ms;exports.Collapse=vs;exports.Dropdown=Es;exports.Modal=xs;exports.Offcanvas=Ps;exports.Popover=Ds;exports.ScrollSpy=As;exports.Tab=Hs;exports.Toast=ks;exports.Tooltip=Ae;exports.initCallback=cs;exports.removeDataAPI=Gr; +"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const On="aria-describedby",Ee="aria-expanded",re="aria-hidden",$e="aria-modal",Os="aria-pressed",Oe="aria-selected",as="focus",ls="focusin",Nn="focusout",ye="keydown",Mo="keyup",H="click",Mn="mousedown",Bo="hover",Ce="mouseenter",ds="mouseleave",Ro="pointerdown",Wo="pointermove",Fo="pointerup",hs="touchstart",jo="dragstart",zo='a[href], button, input, textarea, select, details, [tabindex]:not([tabindex="-1"]',Xe="ArrowDown",Ye="ArrowUp",Ns="ArrowLeft",Ms="ArrowRight",fs="Escape",Ko="transitionDuration",qo="transitionDelay",Ne="transitionend",Bn="transitionProperty",Vo=()=>{const e=/(iPhone|iPod|iPad)/;return navigator?.userAgentData?.brands.some(t=>e.test(t.brand))||e.test(navigator?.userAgent)||!1},Te=()=>{},Xo=(e,t,s,n)=>{const o=n||!1;e.addEventListener(t,s,o)},Yo=(e,t,s,n)=>{const o=n||!1;e.removeEventListener(t,s,o)},U=(e,t)=>e.getAttribute(t),Jt=(e,t)=>e.hasAttribute(t),I=(e,t,s)=>e.setAttribute(t,s),Ht=(e,t)=>e.removeAttribute(t),d=(e,...t)=>{e.classList.add(...t)},v=(e,...t)=>{e.classList.remove(...t)},h=(e,t)=>e.classList.contains(t),ce=e=>e!=null&&typeof e=="object"||!1,D=e=>ce(e)&&typeof e.nodeType=="number"&&[1,2,3,4,5,6,7,8,9,10,11].some(t=>e.nodeType===t)||!1,Y=e=>D(e)&&e.nodeType===1||!1,jt=new Map,_t={data:jt,set:(e,t,s)=>{Y(e)&&(jt.has(t)||jt.set(t,new Map),jt.get(t).set(e,s))},getAllFor:e=>jt.get(e)||null,get:(e,t)=>{if(!Y(e)||!t)return null;const s=_t.getAllFor(t);return e&&s&&s.get(e)||null},remove:(e,t)=>{const s=_t.getAllFor(t);!s||!Y(e)||(s.delete(e),s.size===0&&jt.delete(t))}},W=(e,t)=>_t.get(e,t),Bs=e=>e?.trim().replace(/(?:^\w|[A-Z]|\b\w)/g,(t,s)=>s===0?t.toLowerCase():t.toUpperCase()).replace(/\s+/g,""),ae=e=>typeof e=="string"||!1,Rn=e=>ce(e)&&e.constructor.name==="Window"||!1,Wn=e=>D(e)&&e.nodeType===9||!1,w=e=>Wn(e)?e:D(e)?e.ownerDocument:Rn(e)?e.document:globalThis.document,at=(e,...t)=>Object.assign(e,...t),bt=e=>{if(!e)return;if(ae(e))return w().createElement(e);const{tagName:t}=e,s=bt(t);if(!s)return;const n={...e};return delete n.tagName,at(s,n)},b=(e,t)=>e.dispatchEvent(t),R=(e,t,s)=>{const n=getComputedStyle(e,s),o=t.replace("webkit","Webkit").replace(/([A-Z])/g,"-$1").toLowerCase();return n.getPropertyValue(o)},Uo=e=>{const t=R(e,Bn),s=R(e,qo),n=s.includes("ms")?1:1e3,o=t&&t!=="none"?parseFloat(s)*n:0;return Number.isNaN(o)?0:o},le=e=>{const t=R(e,Bn),s=R(e,Ko),n=s.includes("ms")?1:1e3,o=t&&t!=="none"?parseFloat(s)*n:0;return Number.isNaN(o)?0:o},x=(e,t)=>{let s=0;const n=new Event(Ne),o=le(e),i=Uo(e);if(o){const r=c=>{c.target===e&&(t.apply(e,[c]),e.removeEventListener(Ne,r),s=1)};e.addEventListener(Ne,r),setTimeout(()=>{s||b(e,n)},o+i+17)}else t.apply(e,[n])},lt=(e,t)=>e.focus(t),Rs=e=>["true",!0].includes(e)?!0:["false",!1].includes(e)?!1:["null","",null,void 0].includes(e)?null:e!==""&&!Number.isNaN(+e)?+e:e,pe=e=>Object.entries(e),Go=(e,t,s,n)=>{if(!Y(e))return t;const o={...s},i={...e.dataset},r={...t},c={},a="title";return pe(i).forEach(([l,f])=>{const u=typeof l=="string"&&l.includes(n)?Bs(l.replace(n,"")):Bs(l);c[u]=Rs(f)}),pe(o).forEach(([l,f])=>{o[l]=Rs(f)}),pe(t).forEach(([l,f])=>{l in o?r[l]=o[l]:l in c?r[l]=c[l]:r[l]=l===a?U(e,a):f}),r},Ws=e=>Object.keys(e),E=(e,t)=>{const s=new CustomEvent(e,{cancelable:!0,bubbles:!0});return ce(t)&&at(s,t),s},te={passive:!0},Ot=e=>e.offsetHeight,P=(e,t)=>{pe(t).forEach(([s,n])=>{if(n&&ae(s)&&s.includes("--"))e.style.setProperty(s,n);else{const o={};o[s]=n,at(e.style,o)}})},Ue=e=>ce(e)&&e.constructor.name==="Map"||!1,Qo=e=>typeof e=="number"||!1,pt=new Map,g={set:(e,t,s,n)=>{Y(e)&&(n&&n.length?(pt.has(e)||pt.set(e,new Map),pt.get(e).set(n,setTimeout(t,s))):pt.set(e,setTimeout(t,s)))},get:(e,t)=>{if(!Y(e))return null;const s=pt.get(e);return t&&s&&Ue(s)?s.get(t)||null:Qo(s)?s:null},clear:(e,t)=>{if(!Y(e))return;const s=pt.get(e);t&&t.length&&Ue(s)?(clearTimeout(s.get(t)),s.delete(t),s.size===0&&pt.delete(e)):(clearTimeout(s),pt.delete(e))}},ee=e=>e.toLowerCase(),X=(e,t)=>(D(t)?t:w()).querySelectorAll(e),Ge=new Map;function Zo(e){const{shiftKey:t,code:s}=e,n=w(this),o=[...X(zo,this)].filter(c=>!Jt(c,"disabled")&&!U(c,re));if(!o.length)return;const i=o[0],r=o[o.length-1];s==="Tab"&&(t&&n.activeElement===i?(r.focus(),e.preventDefault()):!t&&n.activeElement===r&&(i.focus(),e.preventDefault()))}const Jo=e=>Ge.has(e)===!0,Se=e=>{const t=Jo(e);(t?Yo:Xo)(e,"keydown",Zo),t?Ge.delete(e):Ge.set(e,!0)},_=e=>Y(e)&&"offsetWidth"in e||!1,It=(e,t)=>{const{width:s,height:n,top:o,right:i,bottom:r,left:c}=e.getBoundingClientRect();let a=1,l=1;if(t&&_(e)){const{offsetWidth:f,offsetHeight:u}=e;a=f>0?Math.round(s)/f:1,l=u>0?Math.round(n)/u:1}return{width:s/a,height:n/l,top:o/l,right:i/a,bottom:r/l,left:c/a,x:c/a,y:o/l}},Nt=e=>w(e).body,dt=e=>w(e).documentElement,ti=e=>{const t=Rn(e),s=t?e.scrollX:e.scrollLeft,n=t?e.scrollY:e.scrollTop;return{x:s,y:n}},Fn=e=>D(e)&&e.constructor.name==="ShadowRoot"||!1,ei=e=>e.nodeName==="HTML"?e:Y(e)&&e.assignedSlot||D(e)&&e.parentNode||Fn(e)&&e.host||dt(e),jn=e=>e?Wn(e)?e.defaultView:D(e)?e?.ownerDocument?.defaultView:e:window,si=e=>D(e)&&["TABLE","TD","TH"].includes(e.nodeName)||!1,zn=(e,t)=>e.matches(t),ni=e=>{if(!_(e))return!1;const{width:t,height:s}=It(e),{offsetWidth:n,offsetHeight:o}=e;return Math.round(t)!==n||Math.round(s)!==o},oi=(e,t,s)=>{const n=_(t),o=It(e,n&&ni(t)),i={x:0,y:0};if(n){const r=It(t,!0);i.x=r.x+t.clientLeft,i.y=r.y+t.clientTop}return{x:o.left+s.x-i.x,y:o.top+s.y-i.y,width:o.width,height:o.height}};let Fs=0,js=0;const zt=new Map,Kn=(e,t)=>{let s=t?Fs:js;if(t){const n=Kn(e),o=zt.get(n)||new Map;zt.has(n)||zt.set(n,o),Ue(o)&&!o.has(t)?(o.set(t,s),Fs+=1):s=o.get(t)}else{const n=e.id||e;zt.has(n)?s=zt.get(n):(zt.set(n,s),js+=1)}return s},ii=e=>Array.isArray(e)||!1,qn=e=>{if(!D(e))return!1;const{top:t,bottom:s}=It(e),{clientHeight:n}=dt(e);return t<=n&&s>=0},ri=e=>typeof e=="function"||!1,ci=e=>ce(e)&&e.constructor.name==="NodeList"||!1,Tt=e=>dt(e).dir==="rtl",M=(e,t)=>!e||!t?null:e.closest(t)||M(e.getRootNode().host,t)||null,S=(e,t)=>Y(e)?e:(Y(t)?t:w()).querySelector(e),us=(e,t)=>(D(t)?t:w()).getElementsByTagName(e),ai=(e,t)=>w(t).getElementById(e),rt=(e,t)=>(t&&D(t)?t:w()).getElementsByClassName(e),Kt={},Vn=e=>{const{type:t,currentTarget:s}=e;Kt[t].forEach((n,o)=>{s===o&&n.forEach((i,r)=>{r.apply(o,[e]),typeof i=="object"&&i.once&&L(o,t,r,i)})})},k=(e,t,s,n)=>{Kt[t]||(Kt[t]=new Map);const o=Kt[t];o.has(e)||o.set(e,new Map);const i=o.get(e),{size:r}=i;i.set(s,n),r||e.addEventListener(t,Vn,n)},L=(e,t,s,n)=>{const o=Kt[t],i=o&&o.get(e),r=i&&i.get(s),c=r!==void 0?r:n;i&&i.has(s)&&i.delete(s),o&&(!i||!i.size)&&o.delete(e),(!o||!o.size)&&delete Kt[t],(!i||!i.size)&&e.removeEventListener(t,Vn,c)},O="fade",p="show",xe="data-bs-dismiss",Pe="alert",Xn="Alert",nt=e=>h(e,"disabled")||U(e,"disabled")==="true",li="5.1.1",di=li;class st{constructor(t,s){let n;try{if(Y(t))n=t;else if(ae(t)){if(n=S(t),!n)throw Error(`"${t}" is not a valid selector.`)}else throw Error("your target is not an instance of HTMLElement.")}catch(i){throw Error(`${this.name} Error: ${i.message}`)}const o=_t.get(n,this.name);o&&o._toggleEventListeners(),this.element=n,this.options=this.defaults&&Ws(this.defaults).length?Go(n,this.defaults,s||{},"bs"):{},_t.set(n,this.name,this)}get version(){return di}get name(){return"BaseComponent"}get defaults(){return{}}_toggleEventListeners=()=>{};dispose(){_t.remove(this.element,this.name),Ws(this).forEach(t=>{delete this[t]})}}const hi=`.${Pe}`,fi=`[${xe}="${Pe}"]`,ui=e=>W(e,Xn),gi=e=>new gs(e),zs=E(`close.bs.${Pe}`),pi=E(`closed.bs.${Pe}`),Ks=e=>{const{element:t}=e;b(t,pi),e._toggleEventListeners(),e.dispose(),t.remove()};class gs extends st{static selector=hi;static init=gi;static getInstance=ui;dismiss;constructor(t){super(t),this.dismiss=S(fi,this.element),this._toggleEventListeners(!0)}get name(){return Xn}close=t=>{const{element:s,dismiss:n}=this;!s||!h(s,p)||t&&n&&nt(n)||(b(s,zs),!zs.defaultPrevented&&(v(s,p),h(s,O)?x(s,()=>Ks(this)):Ks(this)))};_toggleEventListeners=t=>{const s=t?k:L,{dismiss:n,close:o}=this;n&&s(n,H,o)};dispose(){this._toggleEventListeners(),super.dispose()}}const T="active",ot="data-bs-toggle",mi="button",Yn="Button",vi=`[${ot}="${mi}"]`,bi=e=>W(e,Yn),wi=e=>new ps(e);class ps extends st{static selector=vi;static init=wi;static getInstance=bi;constructor(t){super(t);const{element:s}=this;this.isActive=h(s,T),I(s,Os,String(!!this.isActive)),this._toggleEventListeners(!0)}get name(){return Yn}toggle=t=>{t&&t.preventDefault();const{element:s,isActive:n}=this;if(nt(s))return;(n?v:d)(s,T),I(s,Os,n?"false":"true"),this.isActive=h(s,T)};_toggleEventListeners=t=>{(t?k:L)(this.element,H,this.toggle)};dispose(){this._toggleEventListeners(),super.dispose()}}const Qe="data-bs-target",Dt="carousel",Un="Carousel",qs="data-bs-parent",Ei="data-bs-container",z=e=>{const t=[Qe,qs,Ei,"href"],s=w(e);return t.map(n=>{const o=U(e,n);return o?n===qs?M(e,o):S(o,s):null}).filter(n=>n)[0]},de=`[data-bs-ride="${Dt}"]`,tt=`${Dt}-item`,Ze="data-bs-slide-to",vt="data-bs-slide",wt="paused",Vs={pause:"hover",keyboard:!1,touch:!0,interval:5e3},ht=e=>W(e,Un),Ti=e=>new ms(e);let Zt=0,me=0,Me=0;const Be=E(`slide.bs.${Dt}`),Je=E(`slid.bs.${Dt}`),Xs=e=>{const{index:t,direction:s,element:n,slides:o,options:i}=e;if(e.isAnimating){const r=ts(e),c=s==="left"?"next":"prev",a=s==="left"?"start":"end";d(o[t],T),v(o[t],`${tt}-${c}`),v(o[t],`${tt}-${a}`),v(o[r],T),v(o[r],`${tt}-${a}`),b(n,Je),g.clear(n,vt),e.cycle&&!w(n).hidden&&i.interval&&!e.isPaused&&e.cycle()}};function $i(){const e=ht(this);e&&!e.isPaused&&!g.get(this,wt)&&d(this,wt)}function yi(){const e=ht(this);e&&e.isPaused&&!g.get(this,wt)&&e.cycle()}function Ci(e){e.preventDefault();const t=M(this,de)||z(this),s=t&&ht(t);if(nt(this)||!s||s.isAnimating)return;const n=+(U(this,Ze)||0);this&&!h(this,T)&&!Number.isNaN(n)&&s.to(n)}function Si(e){e.preventDefault();const t=M(this,de)||z(this),s=t&&ht(t);if(nt(this)||!s||s.isAnimating)return;const n=U(this,vt);n==="next"?s.next():n==="prev"&&s.prev()}const xi=({code:e,target:t})=>{const s=w(t),[n]=[...X(de,s)].filter(a=>qn(a)),o=ht(n);if(!o||o.isAnimating||/textarea|input|select/i.test(t.nodeName))return;const i=Tt(n);e===(i?Ms:Ns)?o.prev():e===(i?Ns:Ms)&&o.next()};function Ys(e){const{target:t}=e,s=ht(this);s&&s.isTouch&&(s.indicator&&!s.indicator.contains(t)||!s.controls.includes(t))&&(e.stopImmediatePropagation(),e.stopPropagation(),e.preventDefault())}function Pi(e){const{target:t}=e,s=ht(this);if(!s||s.isAnimating||s.isTouch)return;const{controls:n,indicators:o}=s;[...n,...o].every(i=>i===t||i.contains(t))||(Zt=e.pageX,this.contains(t)&&(s.isTouch=!0,Gn(s,!0)))}const _i=e=>{me=e.pageX},Di=e=>{const{target:t}=e,s=w(t),n=[...X(de,s)].map(c=>ht(c)).find(c=>c.isTouch);if(!n)return;const{element:o,index:i}=n,r=Tt(o);Me=e.pageX,n.isTouch=!1,Gn(n),!s.getSelection()?.toString().length&&o.contains(t)&&Math.abs(Zt-Me)>120&&(meZt&&n.to(i+(r?1:-1))),Zt=0,me=0,Me=0},Re=(e,t)=>{const{indicators:s}=e;[...s].forEach(n=>v(n,T)),e.indicators[t]&&d(s[t],T)},Gn=(e,t)=>{const{element:s}=e,n=t?k:L;n(w(s),Wo,_i,te),n(w(s),Fo,Di,te)},ts=e=>{const{slides:t,element:s}=e,n=S(`.${tt}.${T}`,s);return n?[...t].indexOf(n):-1};class ms extends st{static selector=de;static init=Ti;static getInstance=ht;constructor(t,s){super(t,s);const{element:n}=this;this.direction=Tt(n)?"right":"left",this.isTouch=!1,this.slides=rt(tt,n);const{slides:o}=this;if(o.length<2)return;const i=ts(this),r=[...o].find(l=>zn(l,`.${tt}-next`));this.index=i;const c=w(n);this.controls=[...X(`[${vt}]`,n),...X(`[${vt}][${Qe}="#${n.id}"]`,c)].filter((l,f,u)=>f===u.indexOf(l)),this.indicator=S(`.${Dt}-indicators`,n),this.indicators=[...this.indicator?X(`[${Ze}]`,this.indicator):[],...X(`[${Ze}][${Qe}="#${n.id}"]`,c)].filter((l,f,u)=>f===u.indexOf(l));const{options:a}=this;this.options.interval=a.interval===!0?Vs.interval:a.interval,r?this.index=[...o].indexOf(r):i<0&&(this.index=0,d(o[0],T),this.indicators.length&&Re(this,0)),this.indicators.length&&Re(this,this.index),this._toggleEventListeners(!0),a.interval&&this.cycle()}get name(){return Un}get defaults(){return Vs}get isPaused(){return h(this.element,wt)}get isAnimating(){return S(`.${tt}-next,.${tt}-prev`,this.element)!==null}cycle(){const{element:t,options:s,isPaused:n,index:o}=this;g.clear(t,Dt),n&&(g.clear(t,wt),v(t,wt)),g.set(t,()=>{this.element&&!this.isPaused&&!this.isTouch&&qn(t)&&this.to(o+1)},s.interval,Dt)}pause(){const{element:t,options:s}=this;this.isPaused||!s.interval||(d(t,wt),g.set(t,()=>{},1,wt))}next(){this.isAnimating||this.to(this.index+1)}prev(){this.isAnimating||this.to(this.index-1)}to(t){const{element:s,slides:n,options:o}=this,i=ts(this),r=Tt(s);let c=t;if(this.isAnimating||i===c||g.get(s,vt))return;ic||i===n.length-1&&c===0)&&(this.direction=r?"left":"right");const{direction:a}=this;c<0?c=n.length-1:c>=n.length&&(c=0);const l=a==="left"?"next":"prev",f=a==="left"?"start":"end",u={relatedTarget:n[c],from:i,to:c,direction:a};at(Be,u),at(Je,u),b(s,Be),!Be.defaultPrevented&&(this.index=c,Re(this,c),le(n[c])&&h(s,"slide")?g.set(s,()=>{d(n[c],`${tt}-${l}`),Ot(n[c]),d(n[c],`${tt}-${f}`),d(n[i],`${tt}-${f}`),x(n[c],()=>this.slides&&this.slides.length&&Xs(this))},0,vt):(d(n[c],T),v(n[i],T),g.set(s,()=>{g.clear(s,vt),s&&o.interval&&!this.isPaused&&this.cycle(),b(s,Je)},0,vt)))}_toggleEventListeners=t=>{const{element:s,options:n,slides:o,controls:i,indicators:r}=this,{touch:c,pause:a,interval:l,keyboard:f}=n,u=t?k:L;a&&l&&(u(s,Ce,$i),u(s,ds,yi)),c&&o.length>2&&(u(s,Ro,Pi,te),u(s,hs,Ys,{passive:!1}),u(s,jo,Ys,{passive:!1})),i.length&&i.forEach($=>{u($,H,Si)}),r.length&&r.forEach($=>{u($,H,Ci)}),f&&u(w(s),ye,xi)};dispose(){const{isAnimating:t}=this,s={...this,isAnimating:t};this._toggleEventListeners(),super.dispose(),s.isAnimating&&x(s.slides[s.index],()=>{Xs(s)})}}const kt="collapsing",j="collapse",Qn="Collapse",Ai=`.${j}`,Zn=`[${ot}="${j}"]`,Hi={parent:null},ve=e=>W(e,Qn),Ii=e=>new vs(e),Us=E(`show.bs.${j}`),ki=E(`shown.bs.${j}`),Gs=E(`hide.bs.${j}`),Li=E(`hidden.bs.${j}`),Oi=e=>{const{element:t,parent:s,triggers:n}=e;b(t,Us),Us.defaultPrevented||(g.set(t,Te,17),s&&g.set(s,Te,17),d(t,kt),v(t,j),P(t,{height:`${t.scrollHeight}px`}),x(t,()=>{g.clear(t),s&&g.clear(s),n.forEach(o=>I(o,Ee,"true")),v(t,kt),d(t,j),d(t,p),P(t,{height:""}),b(t,ki)}))},Qs=e=>{const{element:t,parent:s,triggers:n}=e;b(t,Gs),Gs.defaultPrevented||(g.set(t,Te,17),s&&g.set(s,Te,17),P(t,{height:`${t.scrollHeight}px`}),v(t,j),v(t,p),d(t,kt),Ot(t),P(t,{height:"0px"}),x(t,()=>{g.clear(t),s&&g.clear(s),n.forEach(o=>I(o,Ee,"false")),v(t,kt),d(t,j),P(t,{height:""}),b(t,Li)}))},Ni=e=>{const{target:t}=e,s=t&&M(t,Zn),n=s&&z(s),o=n&&ve(n);s&&nt(s)||o&&(o.toggle(),s?.tagName==="A"&&e.preventDefault())};class vs extends st{static selector=Ai;static init=Ii;static getInstance=ve;constructor(t,s){super(t,s);const{element:n,options:o}=this,i=w(n);this.triggers=[...X(Zn,i)].filter(r=>z(r)===n),this.parent=_(o.parent)?o.parent:ae(o.parent)?z(n)||S(o.parent,i):null,this._toggleEventListeners(!0)}get name(){return Qn}get defaults(){return Hi}hide(){const{triggers:t,element:s}=this;g.get(s)||(Qs(this),t.length&&t.forEach(n=>d(n,`${j}d`)))}show(){const{element:t,parent:s,triggers:n}=this;let o,i;s&&(o=[...X(`.${j}.${p}`,s)].find(r=>ve(r)),i=o&&ve(o)),(!s||!g.get(s))&&!g.get(t)&&(i&&o!==t&&(Qs(i),i.triggers.forEach(r=>{d(r,`${j}d`)})),Oi(this),n.length&&n.forEach(r=>v(r,`${j}d`)))}toggle(){h(this.element,p)?this.hide():this.show()}_toggleEventListeners=t=>{const s=t?k:L,{triggers:n}=this;n.length&&n.forEach(o=>{s(o,H,Ni)})};dispose(){this._toggleEventListeners(),super.dispose()}}const Mi=e=>e!=null&&typeof e=="object"||!1,Bi=e=>Mi(e)&&typeof e.nodeType=="number"&&[1,2,3,4,5,6,7,8,9,10,11].some(t=>e.nodeType===t)||!1,Zs=e=>Bi(e)&&e.nodeType===1||!1,Ri=e=>typeof e=="function"||!1,Wi="1.0.4",Js="PositionObserver Error";class bs{entries;static version=Wi;_tick;_root;_callback;constructor(t,s){if(!Ri(t))throw new Error(`${Js}: ${t} is not a function.`);this.entries=new Map,this._callback=t,this._root=Zs(s?.root)?s.root:document?.documentElement,this._tick=0}observe=t=>{if(!Zs(t))throw new Error(`${Js}: ${t} is not an instance of Element.`);this._root.contains(t)&&this._new(t).then(s=>{s&&!this.getEntry(t)&&this.entries.set(t,s),this._tick||(this._tick=requestAnimationFrame(this._runCallback))})};unobserve=t=>{this.entries.has(t)&&this.entries.delete(t)};_runCallback=()=>{if(!this.entries.size)return;const t=new Promise(s=>{const n=[];this.entries.forEach(({target:o,boundingClientRect:i})=>{this._root.contains(o)&&this._new(o).then(({boundingClientRect:r,isIntersecting:c})=>{if(!c)return;const{left:a,top:l,bottom:f,right:u}=r;if(i.top!==l||i.left!==a||i.right!==u||i.bottom!==f){const $={target:o,boundingClientRect:r};this.entries.set(o,$),n.push($)}})}),s(n)});this._tick=requestAnimationFrame(async()=>{const s=await t;s.length&&this._callback(s,this),this._runCallback()})};_new=t=>new Promise(s=>{new IntersectionObserver(([n],o)=>{o.disconnect(),s(n)}).observe(t)});getEntry=t=>this.entries.get(t);disconnect=()=>{cancelAnimationFrame(this._tick),this.entries.clear(),this._tick=0}}const Lt=["dropdown","dropup","dropstart","dropend"],Jn="Dropdown",to="dropdown-menu",eo=e=>{const t=M(e,"A");return e.tagName==="A"&&Jt(e,"href")&&U(e,"href")?.slice(-1)==="#"||t&&Jt(t,"href")&&U(t,"href")?.slice(-1)==="#"},[et,es,ss,ns]=Lt,Fi=`[${ot}="${et}"]`,se=e=>W(e,Jn),ji=e=>new Es(e),zi=`${to}-end`,tn=[et,es],en=[ss,ns],sn=["A","BUTTON"],Ki={offset:5,display:"dynamic"},We=E(`show.bs.${et}`),nn=E(`shown.bs.${et}`),Fe=E(`hide.bs.${et}`),on=E(`hidden.bs.${et}`),so=E(`updated.bs.${et}`),rn=e=>{const{element:t,menu:s,parentElement:n,options:o}=e,{offset:i}=o;if(R(s,"position")==="static")return;const r=Tt(t),c=h(s,zi);["margin","top","bottom","left","right"].forEach(B=>{const Ct={};Ct[B]="",P(s,Ct)});let l=Lt.find(B=>h(n,B))||et;const f={dropdown:[i,0,0],dropup:[0,0,i],dropstart:r?[-1,0,0,i]:[-1,i,0],dropend:r?[-1,i,0]:[-1,0,0,i]},u={dropdown:{top:"100%"},dropup:{top:"auto",bottom:"100%"},dropstart:r?{left:"100%",right:"auto"}:{left:"auto",right:"100%"},dropend:r?{left:"auto",right:"100%"}:{left:"100%",right:"auto"},menuStart:r?{right:"0",left:"auto"}:{right:"auto",left:"0"},menuEnd:r?{right:"auto",left:"0"}:{right:"0",left:"auto"}},{offsetWidth:$,offsetHeight:N}=s,{clientWidth:V,clientHeight:Z}=dt(t),{left:m,top:K,width:$t,height:yt}=It(t),C=m-$-i<0,ft=m+$+$t+i>=V,it=K+N+i>=Z,J=K+N+yt+i>=Z,Bt=K-N-i<0,y=(!r&&c||r&&!c)&&m+$t-$<0,F=(r&&c||!r&&!c)&&m+$>=V;if(en.includes(l)&&C&&ft&&(l=et),l===ss&&(r?ft:C)&&(l=ns),l===ns&&(r?C:ft)&&(l=ss),l===es&&Bt&&!J&&(l=et),l===et&&J&&!Bt&&(l=es),en.includes(l)&&it&&at(u[l],{top:"auto",bottom:0}),tn.includes(l)&&(y||F)){let B={left:"auto",right:"auto"};!y&&F&&!r&&(B={left:"auto",right:0}),y&&!F&&r&&(B={left:0,right:"auto"}),B&&at(u[l],B)}const Rt=f[l];P(s,{...u[l],margin:`${Rt.map(B=>B&&`${B}px`).join(" ")}`}),tn.includes(l)&&c&&c&&P(s,u[!r&&y||r&&F?"menuStart":"menuEnd"]),b(n,so)},qi=e=>Array.from(e.children).map(t=>{if(t&&sn.includes(t.tagName))return t;const{firstElementChild:s}=t;return s&&sn.includes(s.tagName)?s:null}).filter(t=>t),cn=e=>{const{element:t,options:s,menu:n}=e,o=e.open?k:L,i=w(t);o(i,H,an),o(i,as,an),o(i,ye,Xi),o(i,Mo,Yi),s.display==="dynamic"&&(e.open?e._observer.observe(n):e._observer.disconnect())},ws=e=>{const t=[...Lt,"btn-group","input-group"].map(s=>rt(`${s} ${p}`,w(e))).find(s=>s.length);if(t&&t.length)return[...t[0].children].find(s=>Lt.some(n=>n===U(s,ot)))},an=e=>{const{target:t,type:s}=e;if(!_(t))return;const n=ws(t),o=n&&se(n);if(!o)return;const{parentElement:i,menu:r}=o,c=i&&i.contains(t)&&(t.tagName==="form"||M(t,"form")!==null);[H,Mn].includes(s)&&eo(t)&&e.preventDefault(),!c&&s!==as&&t!==n&&t!==r&&o.hide()};function Vi(e){const t=se(this);nt(this)||t&&(e.stopPropagation(),t.toggle(),eo(this)&&e.preventDefault())}const Xi=e=>{[Xe,Ye].includes(e.code)&&e.preventDefault()};function Yi(e){const{code:t}=e,s=ws(this);if(!s)return;const n=se(s),{activeElement:o}=w(s);if(!n||!o)return;const{menu:i,open:r}=n,c=qi(i);if(c&&c.length&&[Xe,Ye].includes(t)){let a=c.indexOf(o);o===s?a=0:t===Ye?a=a>1?a-1:0:t===Xe&&(a=arn(this)),this._toggleEventListeners(!0))}get name(){return Jn}get defaults(){return Ki}toggle(){this.open?this.hide():this.show()}show(){const{element:t,open:s,menu:n,parentElement:o}=this;if(s)return;const i=ws(t),r=i&&se(i);r&&r.hide(),[We,nn,so].forEach(c=>{c.relatedTarget=t}),b(o,We),!We.defaultPrevented&&(d(n,p),d(o,p),I(t,Ee,"true"),rn(this),this.open=!s,lt(t),cn(this),b(o,nn))}hide(){const{element:t,open:s,menu:n,parentElement:o}=this;s&&([Fe,on].forEach(i=>{i.relatedTarget=t}),b(o,Fe),!Fe.defaultPrevented&&(v(n,p),v(o,p),I(t,Ee,"false"),this.open=!s,cn(this),b(o,on)))}_toggleEventListeners=t=>{(t?k:L)(this.element,H,Vi)};dispose(){this.open&&this.hide(),this._toggleEventListeners(),super.dispose()}}const q="modal",Ts="Modal",$s="Offcanvas",Ui="fixed-top",Gi="fixed-bottom",no="sticky-top",oo="position-sticky",io=e=>[...rt(Ui,e),...rt(Gi,e),...rt(no,e),...rt(oo,e),...rt("is-fixed",e)],Qi=e=>{const t=Nt(e);P(t,{paddingRight:"",overflow:""});const s=io(t);s.length&&s.forEach(n=>{P(n,{paddingRight:"",marginRight:""})})},ro=e=>{const{clientWidth:t}=dt(e),{innerWidth:s}=jn(e);return Math.abs(s-t)},co=(e,t)=>{const s=Nt(e),n=parseInt(R(s,"paddingRight"),10),i=R(s,"overflow")==="hidden"&&n?0:ro(e),r=io(s);t&&(P(s,{overflow:"hidden",paddingRight:`${n+i}px`}),r.length&&r.forEach(c=>{const a=R(c,"paddingRight");if(c.style.paddingRight=`${parseInt(a,10)+i}px`,[no,oo].some(l=>h(c,l))){const l=R(c,"marginRight");c.style.marginRight=`${parseInt(l,10)-i}px`}}))},G="offcanvas",Et=bt({tagName:"div",className:"popup-container"}),ao=(e,t)=>{const s=D(t)&&t.nodeName==="BODY",n=D(t)&&!s?t:Et,o=s?t:Nt(e);D(e)&&(n===Et&&o.append(Et),n.append(e))},lo=(e,t)=>{const s=D(t)&&t.nodeName==="BODY",n=D(t)&&!s?t:Et;D(e)&&(e.remove(),n===Et&&!Et.children.length&&Et.remove())},ys=(e,t)=>{const s=D(t)&&t.nodeName!=="BODY"?t:Et;return D(e)&&s.contains(e)},ho="backdrop",ln=`${q}-${ho}`,dn=`${G}-${ho}`,fo=`.${q}.${p}`,Cs=`.${G}.${p}`,A=bt("div"),Mt=e=>S(`${fo},${Cs}`,w(e)),Ss=e=>{const t=e?ln:dn;[ln,dn].forEach(s=>{v(A,s)}),d(A,t)},uo=(e,t,s)=>{Ss(s),ao(A,Nt(e)),t&&d(A,O)},go=()=>{h(A,p)||(d(A,p),Ot(A))},_e=()=>{v(A,p)},po=e=>{Mt(e)||(v(A,O),lo(A,Nt(e)),Qi(e))},mo=e=>_(e)&&R(e,"visibility")!=="hidden"&&e.offsetParent!==null,Zi=`.${q}`,Ji=`[${ot}="${q}"]`,tr=`[${xe}="${q}"]`,vo=`${q}-static`,er={backdrop:!0,keyboard:!0},ne=e=>W(e,Ts),sr=e=>new xs(e),be=E(`show.bs.${q}`),hn=E(`shown.bs.${q}`),je=E(`hide.bs.${q}`),fn=E(`hidden.bs.${q}`),bo=e=>{const{element:t}=e,s=ro(t),{clientHeight:n,scrollHeight:o}=dt(t),{clientHeight:i,scrollHeight:r}=t,c=i!==r;if(!c&&s){const l={[Tt(t)?"paddingLeft":"paddingRight"]:`${s}px`};P(t,l)}co(t,c||n!==o)},wo=(e,t)=>{const s=t?k:L,{element:n}=e;s(n,H,ir),s(w(n),ye,or),t?e._observer.observe(n):e._observer.disconnect()},un=e=>{const{triggers:t,element:s,relatedTarget:n}=e;po(s),P(s,{paddingRight:"",display:""}),wo(e);const o=be.relatedTarget||t.find(mo);o&<(o),fn.relatedTarget=n||void 0,b(s,fn),Se(s)},gn=e=>{const{element:t,relatedTarget:s}=e;lt(t),wo(e,!0),hn.relatedTarget=s||void 0,b(t,hn),Se(t)},pn=e=>{const{element:t,hasFade:s}=e;P(t,{display:"block"}),bo(e),Mt(t)||P(Nt(t),{overflow:"hidden"}),d(t,p),Ht(t,re),I(t,$e,"true"),s?x(t,()=>gn(e)):gn(e)},mn=e=>{const{element:t,options:s,hasFade:n}=e;s.backdrop&&n&&h(A,p)&&!Mt(t)?(_e(),x(A,()=>un(e))):un(e)};function nr(e){const t=z(this),s=t&&ne(t);nt(this)||s&&(this.tagName==="A"&&e.preventDefault(),s.relatedTarget=this,s.toggle())}const or=({code:e,target:t})=>{const s=S(fo,w(t)),n=s&&ne(s);if(!n)return;const{options:o}=n;o.keyboard&&e===fs&&h(s,p)&&(n.relatedTarget=null,n.hide())},ir=e=>{const{currentTarget:t}=e,s=t&&ne(t);if(!s||!t||g.get(t))return;const{options:n,isStatic:o,modalDialog:i}=s,{backdrop:r}=n,{target:c}=e,a=w(t)?.getSelection()?.toString().length,l=i.contains(c),f=c&&M(c,tr);o&&!l?g.set(t,()=>{d(t,vo),x(i,()=>rr(s))},17):(f||!a&&!o&&!l&&r)&&(s.relatedTarget=f||null,s.hide(),e.preventDefault())},rr=e=>{const{element:t,modalDialog:s}=e,n=(le(s)||0)+17;v(t,vo),g.set(t,()=>g.clear(t),n)};class xs extends st{static selector=Zi;static init=sr;static getInstance=ne;constructor(t,s){super(t,s);const{element:n}=this,o=S(`.${q}-dialog`,n);o&&(this.modalDialog=o,this.triggers=[...X(Ji,w(n))].filter(i=>z(i)===n),this.isStatic=this.options.backdrop==="static",this.hasFade=h(n,O),this.relatedTarget=null,this._observer=new ResizeObserver(()=>this.update()),this._toggleEventListeners(!0))}get name(){return Ts}get defaults(){return er}toggle(){h(this.element,p)?this.hide():this.show()}show(){const{element:t,options:s,hasFade:n,relatedTarget:o}=this,{backdrop:i}=s;let r=0;if(h(t,p)||(be.relatedTarget=o||void 0,b(t,be),be.defaultPrevented))return;const c=Mt(t);if(c&&c!==t){const a=ne(c)||W(c,$s);a&&a.hide()}i?(ys(A)?Ss(!0):uo(t,n,!0),r=le(A),go(),setTimeout(()=>pn(this),r)):(pn(this),c&&h(A,p)&&_e())}hide(){const{element:t,hasFade:s,relatedTarget:n}=this;h(t,p)&&(je.relatedTarget=n||void 0,b(t,je),!je.defaultPrevented&&(v(t,p),I(t,re,"true"),Ht(t,$e),s?x(t,()=>mn(this)):mn(this)))}update=()=>{h(this.element,p)&&bo(this)};_toggleEventListeners=t=>{const s=t?k:L,{triggers:n}=this;n.length&&n.forEach(o=>{s(o,H,nr)})};dispose(){const t={...this},{modalDialog:s,hasFade:n}=t,o=()=>setTimeout(()=>super.dispose(),17);this.hide(),this._toggleEventListeners(),n?x(s,o):o()}}const cr=`.${G}`,Eo=`[${ot}="${G}"]`,ar=`[${xe}="${G}"]`,De=`${G}-toggling`,lr={backdrop:!0,keyboard:!0,scroll:!1},oe=e=>W(e,$s),dr=e=>new Ps(e),we=E(`show.bs.${G}`),To=E(`shown.bs.${G}`),ze=E(`hide.bs.${G}`),$o=E(`hidden.bs.${G}`),hr=e=>{const{element:t}=e,{clientHeight:s,scrollHeight:n}=dt(t);co(t,s!==n)},yo=(e,t)=>{const s=t?k:L,n=w(e.element);s(n,ye,pr),s(n,H,gr)},vn=e=>{const{element:t,options:s}=e;s.scroll||(hr(e),P(Nt(t),{overflow:"hidden"})),d(t,De),d(t,p),P(t,{visibility:"visible"}),x(t,()=>mr(e))},fr=e=>{const{element:t,options:s}=e,n=Mt(t);t.blur(),!n&&s.backdrop&&h(A,p)&&_e(),x(t,()=>vr(e))};function ur(e){const t=z(this),s=t&&oe(t);nt(this)||s&&(s.relatedTarget=this,s.toggle(),this.tagName==="A"&&e.preventDefault())}const gr=e=>{const{target:t}=e,s=S(Cs,w(t));if(!s)return;const n=S(ar,s),o=oe(s);if(!o)return;const{options:i,triggers:r}=o,{backdrop:c}=i,a=M(t,Eo),l=w(s).getSelection();A.contains(t)&&c==="static"||(!(l&&l.toString().length)&&(!s.contains(t)&&c&&(!a||r.includes(t))||n&&n.contains(t))&&(o.relatedTarget=n&&n.contains(t)?n:void 0,o.hide()),a&&a.tagName==="A"&&e.preventDefault())},pr=({code:e,target:t})=>{const s=S(Cs,w(t)),n=s&&oe(s);n&&n.options.keyboard&&e===fs&&(n.relatedTarget=void 0,n.hide())},mr=e=>{const{element:t}=e;v(t,De),Ht(t,re),I(t,$e,"true"),I(t,"role","dialog"),b(t,To),yo(e,!0),lt(t),Se(t)},vr=e=>{const{element:t,triggers:s}=e;I(t,re,"true"),Ht(t,$e),Ht(t,"role"),P(t,{visibility:""});const n=we.relatedTarget||s.find(mo);n&<(n),po(t),b(t,$o),v(t,De),Se(t),Mt(t)||yo(e)};class Ps extends st{static selector=cr;static init=dr;static getInstance=oe;constructor(t,s){super(t,s);const{element:n}=this;this.triggers=[...X(Eo,w(n))].filter(o=>z(o)===n),this.relatedTarget=void 0,this._toggleEventListeners(!0)}get name(){return $s}get defaults(){return lr}toggle(){h(this.element,p)?this.hide():this.show()}show(){const{element:t,options:s,relatedTarget:n}=this;let o=0;if(h(t,p)||(we.relatedTarget=n||void 0,To.relatedTarget=n||void 0,b(t,we),we.defaultPrevented))return;const i=Mt(t);if(i&&i!==t){const r=oe(i)||W(i,Ts);r&&r.hide()}s.backdrop?(ys(A)?Ss():uo(t,!0),o=le(A),go(),setTimeout(()=>vn(this),o)):(vn(this),i&&h(A,p)&&_e())}hide(){const{element:t,relatedTarget:s}=this;h(t,p)&&(ze.relatedTarget=s||void 0,$o.relatedTarget=s||void 0,b(t,ze),!ze.defaultPrevented&&(d(t,De),v(t,p),fr(this)))}_toggleEventListeners=t=>{const s=t?k:L;this.triggers.forEach(n=>{s(n,H,ur)})};dispose(){const{element:t}=this,s=h(t,p),n=()=>setTimeout(()=>super.dispose(),1);this.hide(),this._toggleEventListeners(),s?x(t,n):n()}}const At="popover",_s="Popover",ct="tooltip",Co=e=>{const t=e===ct,s=t?`${e}-inner`:`${e}-body`,n=t?"":`

`,o=`
`,i=`
`;return`
${n+o+i}
`},So={top:"top",bottom:"bottom",left:"start",right:"end"},os=e=>{requestAnimationFrame(()=>{const t=/\b(top|bottom|start|end)+/,{element:s,tooltip:n,container:o,offsetParent:i,options:r,arrow:c}=e;if(!n)return;const a=Tt(s),{x:l,y:f}=ti(i);P(n,{top:"",left:"",right:"",bottom:""});const{offsetWidth:u,offsetHeight:$}=n,{clientWidth:N,clientHeight:V,offsetWidth:Z}=dt(s);let{placement:m}=r;const{clientWidth:K,offsetWidth:$t}=o,C=R(o,"position")==="fixed",ft=Math.abs(C?K-$t:N-Z),it=a&&C?ft:0,J=N-(a?0:ft)-1,Bt=e._observer.getEntry(s),{width:y,height:F,left:Rt,right:B,top:Ct}=Bt?.boundingClientRect||It(s,!0),{x:fe,y:Wt}=oi(s,i,{x:l,y:f});P(c,{top:"",left:"",right:"",bottom:""});let St=0,Vt="",ut=0,He="",Ft="",ue="",Ie="";const xt=c.offsetWidth||0,gt=c.offsetHeight||0,ke=xt/2;let Xt=Ct-$-gt<0,Yt=Ct+$+F+gt>=V,Ut=Rt-u-xt=J;const ge=["left","right"],Le=["top","bottom"];Xt=ge.includes(m)?Ct+F/2-$/2-gt<0:Xt,Yt=ge.includes(m)?Ct+$/2+F/2+gt>=V:Yt,Ut=Le.includes(m)?Rt+y/2-u/2=J:Gt,m=ge.includes(m)&&Ut&&Gt?"top":m,m=m==="top"&&Xt?"bottom":m,m=m==="bottom"&&Yt?"top":m,m=m==="left"&&Ut?"right":m,m=m==="right"&&Gt?"left":m,n.className.includes(m)||(n.className=n.className.replace(t,So[m])),ge.includes(m)?(m==="left"?ut=fe-u-xt:ut=fe+y+xt,Xt&&Yt?(St=0,Vt=0,Ft=Wt+F/2-gt/2):Xt?(St=Wt,Vt="",Ft=F/2-xt):Yt?(St=Wt-$+F,Vt="",Ft=$-F/2-xt):(St=Wt-$/2+F/2,Ft=$/2-gt/2)):Le.includes(m)&&(m==="top"?St=Wt-$-gt:St=Wt+F+gt,Ut?(ut=0,ue=fe+y/2-ke):Gt?(ut="auto",He=0,Ie=y/2+J-B-ke):(ut=fe-u/2+y/2,ue=u/2-ke)),P(n,{top:`${St}px`,bottom:Vt===""?"":`${Vt}px`,left:ut==="auto"?ut:`${ut}px`,right:He!==""?`${He}px`:""}),_(c)&&(Ft!==""&&(c.style.top=`${Ft}px`),ue!==""?c.style.left=`${ue}px`:Ie!==""&&(c.style.right=`${Ie}px`));const No=E(`updated.bs.${ee(e.name)}`);b(s,No)})},is={template:Co(ct),title:"",customClass:"",trigger:"hover focus",placement:"top",sanitizeFn:void 0,animation:!0,delay:200,container:document.body,content:"",dismissible:!1,btnClose:""},xo="data-original-title",Pt="Tooltip",mt=(e,t,s)=>{if(ae(t)&&t.length){let n=t.trim();ri(s)&&(n=s(n));const i=new DOMParser().parseFromString(n,"text/html");e.append(...i.body.childNodes)}else _(t)?e.append(t):(ci(t)||ii(t)&&t.every(D))&&e.append(...t)},br=e=>{const t=e.name===Pt,{id:s,element:n,options:o}=e,{title:i,placement:r,template:c,animation:a,customClass:l,sanitizeFn:f,dismissible:u,content:$,btnClose:N}=o,V=t?ct:At,Z={...So};let m=[],K=[];Tt(n)&&(Z.left="end",Z.right="start");const $t=`bs-${V}-${Z[r]}`;let yt;if(_(c))yt=c;else{const y=bt("div");mt(y,c,f),yt=y.firstChild}if(!_(yt))return;e.tooltip=yt.cloneNode(!0);const{tooltip:C}=e;I(C,"id",s),I(C,"role",ct);const ft=t?`${ct}-inner`:`${At}-body`,it=t?null:S(`.${At}-header`,C),J=S(`.${ft}`,C);e.arrow=S(`.${V}-arrow`,C);const{arrow:Bt}=e;if(_(i))m=[i.cloneNode(!0)];else{const y=bt("div");mt(y,i,f),m=[...y.childNodes]}if(_($))K=[$.cloneNode(!0)];else{const y=bt("div");mt(y,$,f),K=[...y.childNodes]}if(u)if(i)if(_(N))m=[...m,N.cloneNode(!0)];else{const y=bt("div");mt(y,N,f),m=[...m,y.firstChild]}else if(it&&it.remove(),_(N))K=[...K,N.cloneNode(!0)];else{const y=bt("div");mt(y,N,f),K=[...K,y.firstChild]}t?i&&J&&mt(J,i,f):(i&&it&&mt(it,m,f),$&&J&&mt(J,K,f),e.btn=S(".btn-close",C)||void 0),d(C,"position-absolute"),d(Bt,"position-absolute"),h(C,V)||d(C,V),a&&!h(C,O)&&d(C,O),l&&!h(C,l)&&d(C,l),h(C,$t)||d(C,$t)},wr=e=>{const t=["HTML","BODY"],s=[];let{parentNode:n}=e;for(;n&&!t.includes(n.nodeName);)n=ei(n),Fn(n)||si(n)||s.push(n);return s.find((o,i)=>(R(o,"position")!=="relative"||R(o,"position")==="relative"&&o.offsetHeight!==o.scrollHeight)&&s.slice(i+1).every(r=>R(r,"position")==="static")?o:null)||w(e).body},Er=`[${ot}="${ct}"],[data-tip="${ct}"]`,Po="title";let bn=e=>W(e,Pt);const Tr=e=>new Ae(e),$r=e=>{const{element:t,tooltip:s,container:n}=e;Ht(t,On),lo(s,n)},Qt=e=>{const{tooltip:t,container:s}=e;return t&&ys(t,s)},yr=(e,t)=>{const{element:s}=e;e._toggleEventListeners(),Jt(s,xo)&&e.name===Pt&&Do(e),t&&t()},_o=(e,t)=>{const s=t?k:L,{element:n}=e;s(w(n),hs,e.handleTouch,te)},wn=e=>{const{element:t}=e,s=E(`shown.bs.${ee(e.name)}`);_o(e,!0),b(t,s),g.clear(t,"in")},En=e=>{const{element:t}=e,s=E(`hidden.bs.${ee(e.name)}`);_o(e),$r(e),b(t,s),g.clear(t,"out")},Tn=(e,t)=>{const s=t?k:L,{element:n,tooltip:o}=e,i=M(n,`.${q}`),r=M(n,`.${G}`);t?[n,o].forEach(c=>e._observer.observe(c)):e._observer.disconnect(),i&&s(i,`hide.bs.${q}`,e.handleHide),r&&s(r,`hide.bs.${G}`,e.handleHide)},Do=(e,t)=>{const s=[xo,Po],{element:n}=e;I(n,s[t?0:1],t||U(n,s[0])||""),Ht(n,s[t?1:0])};class Ae extends st{static selector=Er;static init=Tr;static getInstance=bn;static styleTip=os;constructor(t,s){super(t,s);const{element:n}=this,o=this.name===Pt,i=o?ct:At,r=o?Pt:_s;bn=f=>W(f,r),this.enabled=!0,this.id=`${i}-${Kn(n,i)}`;const{options:c}=this;if(!c.title&&o||!o&&!c.content)return;at(is,{titleAttr:""}),Jt(n,Po)&&o&&typeof c.title=="string"&&Do(this,c.title);const a=wr(n),l=["sticky","fixed","relative"].some(f=>R(a,"position")===f)?a:jn(n);this.container=a,this.offsetParent=l,br(this),this.tooltip&&(this._observer=new bs(()=>this.update()),this._toggleEventListeners(!0))}get name(){return Pt}get defaults(){return is}handleFocus=()=>lt(this.element);handleShow=()=>this.show();show(){const{options:t,tooltip:s,element:n,container:o,id:i}=this,{animation:r}=t,c=g.get(n,"out");g.clear(n,"out"),s&&!c&&!Qt(this)&&g.set(n,()=>{const a=E(`show.bs.${ee(this.name)}`);b(n,a),a.defaultPrevented||(ao(s,o),I(n,On,`#${i}`),this.update(),Tn(this,!0),h(s,p)||d(s,p),r?x(s,()=>wn(this)):wn(this))},17,"in")}handleHide=()=>this.hide();hide(){const{options:t,tooltip:s,element:n}=this,{animation:o,delay:i}=t;g.clear(n,"in"),s&&Qt(this)&&g.set(n,()=>{const r=E(`hide.bs.${ee(this.name)}`);b(n,r),r.defaultPrevented||(this.update(),v(s,p),Tn(this),o?x(s,()=>En(this)):En(this))},i+17,"out")}update=()=>{os(this)};toggle=()=>{const{tooltip:t}=this;t&&!Qt(this)?this.show():this.hide()};enable(){const{enabled:t}=this;t||(this._toggleEventListeners(!0),this.enabled=!t)}disable(){const{tooltip:t,enabled:s}=this;s&&(t&&Qt(this)&&this.hide(),this._toggleEventListeners(),this.enabled=!s)}toggleEnabled(){this.enabled?this.disable():this.enable()}handleTouch=({target:t})=>{const{tooltip:s,element:n}=this;s&&s.contains(t)||t===n||t&&n.contains(t)||this.hide()};_toggleEventListeners=t=>{const s=t?k:L,{element:n,options:o,btn:i}=this,{trigger:r}=o,a=!!(this.name!==Pt&&o.dismissible);r.includes("manual")||(this.enabled=!!t,r.split(" ").forEach(f=>{f===Bo?(s(n,Mn,this.handleShow),s(n,Ce,this.handleShow),a||(s(n,ds,this.handleHide),s(w(n),hs,this.handleTouch,te))):f===H?s(n,f,a?this.handleShow:this.toggle):f===as&&(s(n,ls,this.handleShow),a||s(n,Nn,this.handleHide),Vo()&&s(n,H,this.handleFocus)),a&&i&&s(i,H,this.handleHide)}))};dispose(){const{tooltip:t,options:s}=this,n={...this,name:this.name},o=()=>setTimeout(()=>yr(n,()=>super.dispose()),17);s.animation&&Qt(n)?(this.options.delay=0,this.hide(),x(t,o)):o()}}const Cr=`[${ot}="${At}"],[data-tip="${At}"]`,Sr=at({},is,{template:Co(At),content:"",dismissible:!1,btnClose:''}),xr=e=>W(e,_s),Pr=e=>new Ds(e);class Ds extends Ae{static selector=Cr;static init=Pr;static getInstance=xr;static styleTip=os;constructor(t,s){super(t,s)}get name(){return _s}get defaults(){return Sr}show=()=>{super.show();const{options:t,btn:s}=this;t.dismissible&&s&&setTimeout(()=>lt(s),17)}}const _r="scrollspy",Ao="ScrollSpy",Dr='[data-bs-spy="scroll"]',Ar="[href]",Hr={offset:10,target:void 0},Ir=e=>W(e,Ao),kr=e=>new As(e),$n=E(`activate.bs.${_r}`),Lr=e=>{const{target:t,_itemsLength:s,_observables:n}=e,o=us("A",t),i=w(t);!o.length||s===n.size||(n.clear(),Array.from(o).forEach(r=>{const c=U(r,"href")?.slice(1),a=c?.length?i.getElementById(c):null;a&&!nt(r)&&e._observables.set(a,r)}),e._itemsLength=e._observables.size)},Ho=e=>{Array.from(us("A",e)).forEach(t=>{h(t,T)&&v(t,T)})},yn=(e,t)=>{const{target:s,element:n}=e;Ho(s),e._activeItem=t,d(t,T);let o=t;for(;o!==s;)if(o=o.parentElement,["nav","dropdown-menu","list-group"].some(i=>h(o,i))){const i=o.previousElementSibling;i&&!h(i,T)&&d(i,T)}$n.relatedTarget=t,b(n,$n)},Ke=(e,t)=>{const{scrollTarget:s,element:n,options:o}=e;return(s!==n?It(t).top+s.scrollTop:t.offsetTop)-(o.offset||10)};class As extends st{static selector=Dr;static init=kr;static getInstance=Ir;constructor(t,s){super(t,s);const{element:n,options:o}=this,i=S(o.target,w(n));i&&(this.target=i,this.scrollTarget=n.clientHeight{requestAnimationFrame(()=>this.refresh())},{root:this.scrollTarget}),this._toggleEventListeners(!0))}get name(){return Ao}get defaults(){return Hr}refresh=()=>{const{target:t,scrollTarget:s}=this;if(!t||t.offsetHeight===0)return;Lr(this);const{_itemsLength:n,_observables:o,_activeItem:i}=this;if(!n)return;const r=o.entries().toArray(),{scrollTop:c,scrollHeight:a,clientHeight:l}=s;if(c>=a-l){const u=r[n-1]?.[1];i!==u&&yn(this,u);return}const f=r[0]?.[0]?Ke(this,r[0][0]):null;if(f!==null&&c0){this._activeItem=null,Ho(t);return}for(let u=0;u=V&&(m===null||c{const s=M(t.target,Ar),n=s&&U(s,"href")?.slice(1),o=n&&ai(n,this.target);o&&(this.scrollTarget.scrollTo({top:o.offsetTop,behavior:"smooth"}),t.preventDefault())};_toggleEventListeners=t=>{const{target:s,_observables:n,_observer:o,_scrollTo:i}=this;(t?k:L)(s,H,i),t?n?.forEach((c,a)=>o.observe(a)):o.disconnect()};dispose(){this._toggleEventListeners(),super.dispose()}}const he="tab",Io="Tab",rs=`[${ot}="${he}"]`,ko=e=>W(e,Io),Or=e=>new Hs(e),qe=E(`show.bs.${he}`),Cn=E(`shown.bs.${he}`),Ve=E(`hide.bs.${he}`),Sn=E(`hidden.bs.${he}`),ie=new Map,xn=e=>{const{tabContent:t,nav:s}=e;t&&h(t,kt)&&(t.style.height="",v(t,kt)),s&&g.clear(s)},Pn=e=>{const{element:t,tabContent:s,content:n,nav:o}=e,{tab:i}=_(o)&&ie.get(o)||{tab:null};if(s&&n&&h(n,O)){const{currentHeight:r,nextHeight:c}=ie.get(t)||{currentHeight:0,nextHeight:0};r!==c?setTimeout(()=>{s.style.height=`${c}px`,Ot(s),x(s,()=>xn(e))},50):xn(e)}else o&&g.clear(o);Cn.relatedTarget=i,b(t,Cn)},_n=e=>{const{element:t,content:s,tabContent:n,nav:o}=e,{tab:i,content:r}=o&&ie.get(o)||{tab:null,content:null};let c=0;if(n&&s&&h(s,O)&&([r,s].forEach(a=>{a&&d(a,"overflow-hidden")}),c=r?r.scrollHeight:0),qe.relatedTarget=i,Sn.relatedTarget=t,b(t,qe),!qe.defaultPrevented){if(s&&d(s,T),r&&v(r,T),n&&s&&h(s,O)){const a=s.scrollHeight;ie.set(t,{currentHeight:c,nextHeight:a,tab:null,content:null}),d(n,kt),n.style.height=`${c}px`,Ot(n),[r,s].forEach(l=>{l&&v(l,"overflow-hidden")})}s&&s&&h(s,O)?setTimeout(()=>{d(s,p),x(s,()=>{Pn(e)})},1):(s&&d(s,p),Pn(e)),i&&b(i,Sn)}},Dn=e=>{const{nav:t}=e;if(!_(t))return{tab:null,content:null};const s=rt(T,t);let n=null;s.length===1&&!Lt.some(i=>h(s[0].parentElement,i))?[n]=s:s.length>1&&(n=s[s.length-1]);const o=_(n)?z(n):null;return{tab:n,content:o}},An=e=>{if(!_(e))return null;const t=M(e,`.${Lt.join(",.")}`);return t?S(`.${Lt[0]}-toggle`,t):null},Nr=e=>{const t=M(e.target,rs),s=t&&ko(t);s&&(e.preventDefault(),s.show())};class Hs extends st{static selector=rs;static init=Or;static getInstance=ko;constructor(t){super(t);const{element:s}=this,n=z(s);if(!n)return;const o=M(s,".nav"),i=M(n,".tab-content");this.nav=o,this.content=n,this.tabContent=i,this.dropdown=An(s);const{tab:r}=Dn(this);if(o&&!r){const c=S(rs,o),a=c&&z(c);a&&(d(c,T),d(a,p),d(a,T),I(s,Oe,"true"))}this._toggleEventListeners(!0)}get name(){return Io}show(){const{element:t,content:s,nav:n,dropdown:o}=this;if(n&&g.get(n)||h(t,T))return;const{tab:i,content:r}=Dn(this);if(n&&i&&ie.set(n,{tab:i,content:r,currentHeight:0,nextHeight:0}),Ve.relatedTarget=t,!_(i)||(b(i,Ve),Ve.defaultPrevented))return;d(t,T),I(t,Oe,"true");const c=_(i)&&An(i);if(c&&h(c,T)&&v(c,T),n){const a=()=>{i&&(v(i,T),I(i,Oe,"false")),o&&!h(o,T)&&d(o,T)};r&&(h(r,O)||s&&h(s,O))?g.set(n,a,1):a()}r&&(v(r,p),h(r,O)?x(r,()=>_n(this)):_n(this))}_toggleEventListeners=t=>{(t?k:L)(this.element,H,Nr)};dispose(){this._toggleEventListeners(),super.dispose()}}const Q="toast",Lo="Toast",Mr=`.${Q}`,Br=`[${xe}="${Q}"]`,Rr=`[${ot}="${Q}"]`,qt="showing",Oo="hide",Wr={animation:!0,autohide:!0,delay:5e3},Is=e=>W(e,Lo),Fr=e=>new ks(e),Hn=E(`show.bs.${Q}`),jr=E(`shown.bs.${Q}`),In=E(`hide.bs.${Q}`),zr=E(`hidden.bs.${Q}`),kn=e=>{const{element:t,options:s}=e;v(t,qt),g.clear(t,qt),b(t,jr),s.autohide&&g.set(t,()=>e.hide(),s.delay,Q)},Ln=e=>{const{element:t}=e;v(t,qt),v(t,p),d(t,Oo),g.clear(t,Q),b(t,zr)},Kr=e=>{const{element:t,options:s}=e;d(t,qt),s.animation?(Ot(t),x(t,()=>Ln(e))):Ln(e)},qr=e=>{const{element:t,options:s}=e;g.set(t,()=>{v(t,Oo),Ot(t),d(t,p),d(t,qt),s.animation?x(t,()=>kn(e)):kn(e)},17,qt)};function Vr(e){const t=z(this),s=t&&Is(t);nt(this)||s&&(this.tagName==="A"&&e.preventDefault(),s.relatedTarget=this,s.show())}const Xr=e=>{const t=e.target,s=Is(t),{type:n,relatedTarget:o}=e;!s||t===o||t.contains(o)||([Ce,ls].includes(n)?g.clear(t,Q):g.set(t,()=>s.hide(),s.options.delay,Q))};class ks extends st{static selector=Mr;static init=Fr;static getInstance=Is;constructor(t,s){super(t,s);const{element:n,options:o}=this;o.animation&&!h(n,O)?d(n,O):!o.animation&&h(n,O)&&v(n,O),this.dismiss=S(Br,n),this.triggers=[...X(Rr,w(n))].filter(i=>z(i)===n),this._toggleEventListeners(!0)}get name(){return Lo}get defaults(){return Wr}get isShown(){return h(this.element,p)}show=()=>{const{element:t,isShown:s}=this;!t||s||(b(t,Hn),Hn.defaultPrevented||qr(this))};hide=()=>{const{element:t,isShown:s}=this;!t||!s||(b(t,In),In.defaultPrevented||Kr(this))};_toggleEventListeners=t=>{const s=t?k:L,{element:n,triggers:o,dismiss:i,options:r,hide:c}=this;i&&s(i,H,c),r.autohide&&[ls,Nn,Ce,ds].forEach(a=>s(n,a,Xr)),o.length&&o.forEach(a=>{s(a,H,Vr)})};dispose(){const{element:t,isShown:s}=this;this._toggleEventListeners(),g.clear(t,Q),s&&v(t,p),super.dispose()}}const Ls=new Map;[gs,ps,ms,vs,Es,xs,Ps,Ds,As,Hs,ks,Ae].forEach(e=>Ls.set(e.prototype.name,e));const Yr=(e,t)=>{[...t].forEach(s=>e(s))},Ur=(e,t)=>{const s=_t.getAllFor(e);s&&[...s].forEach(([n,o])=>{t.contains(n)&&o.dispose()})},cs=e=>{const t=e&&e.nodeName?e:document,s=[...us("*",t)];Ls.forEach(n=>{const{init:o,selector:i}=n;Yr(o,s.filter(r=>zn(r,i)))})},Gr=e=>{const t=e&&e.nodeName?e:document;Ls.forEach(s=>{Ur(s.prototype.name,t)})};document.body?cs():k(document,"DOMContentLoaded",()=>cs(),{once:!0});exports.Alert=gs;exports.Button=ps;exports.Carousel=ms;exports.Collapse=vs;exports.Dropdown=Es;exports.Modal=xs;exports.Offcanvas=Ps;exports.Popover=Ds;exports.ScrollSpy=As;exports.Tab=Hs;exports.Toast=ks;exports.Tooltip=Ae;exports.initCallback=cs;exports.removeDataAPI=Gr; //# sourceMappingURL=bootstrap-native.cjs.map diff --git a/dist/bootstrap-native.cjs.map b/dist/bootstrap-native.cjs.map index 0780177c..77a84bf5 100644 --- a/dist/bootstrap-native.cjs.map +++ b/dist/bootstrap-native.cjs.map @@ -1 +1 @@ -{"version":3,"file":"bootstrap-native.cjs","sources":["../node_modules/.pnpm/@thednp+shorty@2.0.8/node_modules/@thednp/shorty/dist/shorty.mjs","../node_modules/.pnpm/@thednp+event-listener@2.0.8/node_modules/@thednp/event-listener/dist/event-listener.mjs","../src/strings/fadeClass.ts","../src/strings/showClass.ts","../src/strings/dataBsDismiss.ts","../src/strings/alertString.ts","../src/strings/alertComponent.ts","../src/util/isDisabled.ts","../src/version.ts","../src/components/base-component.ts","../src/components/alert.ts","../src/strings/activeClass.ts","../src/strings/dataBsToggle.ts","../src/strings/buttonString.ts","../src/strings/buttonComponent.ts","../src/components/button.ts","../src/strings/dataBsTarget.ts","../src/strings/carouselString.ts","../src/strings/carouselComponent.ts","../src/strings/dataBsParent.ts","../src/strings/dataBsContainer.ts","../src/util/getTargetElement.ts","../src/components/carousel.ts","../src/strings/collapsingClass.ts","../src/strings/collapseString.ts","../src/strings/collapseComponent.ts","../src/components/collapse.ts","../node_modules/.pnpm/@thednp+position-observer@1.0.2/node_modules/@thednp/position-observer/dist/index.mjs","../src/strings/dropdownClasses.ts","../src/strings/dropdownComponent.ts","../src/strings/dropdownMenuClass.ts","../src/util/isEmptyAnchor.ts","../src/components/dropdown.ts","../src/strings/modalString.ts","../src/strings/modalComponent.ts","../src/strings/offcanvasComponent.ts","../src/strings/fixedTopClass.ts","../src/strings/fixedBottomClass.ts","../src/strings/stickyTopClass.ts","../src/strings/positionStickyClass.ts","../src/util/scrollbar.ts","../src/strings/offcanvasString.ts","../src/util/popupContainer.ts","../src/util/backdrop.ts","../src/util/isVisible.ts","../src/components/modal.ts","../src/components/offcanvas.ts","../src/strings/popoverString.ts","../src/strings/popoverComponent.ts","../src/strings/tooltipString.ts","../src/util/getTipTemplate.ts","../src/util/tipClassPositions.ts","../src/util/styleTip.ts","../src/util/tooltipDefaults.ts","../src/strings/dataOriginalTitle.ts","../src/strings/tooltipComponent.ts","../src/util/setHtml.ts","../src/util/createTip.ts","../src/util/getElementContainer.ts","../src/components/tooltip.ts","../src/components/popover.ts","../src/strings/scrollspyString.ts","../src/strings/scrollspyComponent.ts","../src/components/scrollspy.ts","../src/strings/tabString.ts","../src/strings/tabComponent.ts","../src/components/tab.ts","../src/strings/toastString.ts","../src/strings/toastComponent.ts","../src/components/toast.ts","../src/util/init.ts"],"sourcesContent":["const Ne = \"2.0.8\", Ce = \"aria-checked\", Te = \"aria-description\", Me = \"aria-describedby\", De = \"aria-expanded\", Le = \"aria-haspopup\", $ = \"aria-hidden\", Oe = \"aria-label\", xe = \"aria-labelledby\", ze = \"aria-modal\", Ie = \"aria-pressed\", Pe = \"aria-selected\", Fe = \"aria-valuemin\", Be = \"aria-valuemax\", Ve = \"aria-valuenow\", He = \"aria-valuetext\", J = \"abort\", X = \"beforeunload\", Y = \"blur\", tt = \"change\", et = \"contextmenu\", H = \"DOMContentLoaded\", nt = \"DOMMouseScroll\", ot = \"error\", st = \"focus\", rt = \"focusin\", ct = \"focusout\", at = \"gesturechange\", it = \"gestureend\", ut = \"gesturestart\", lt = \"keydown\", dt = \"keypress\", ft = \"keyup\", pt = \"load\", gt = \"click\", mt = \"dblclick\", vt = \"mousedown\", bt = \"mouseup\", Et = \"hover\", ht = \"mouseenter\", yt = \"mouseleave\", wt = \"mousein\", At = \"mouseout\", St = \"mouseover\", kt = \"mousemove\", Nt = \"mousewheel\", Ct = \"move\", Tt = \"orientationchange\", Mt = \"pointercancel\", Dt = \"pointerdown\", Lt = \"pointerleave\", Ot = \"pointermove\", xt = \"pointerup\", zt = \"readystatechange\", It = \"reset\", Pt = \"resize\", Ft = \"select\", Bt = \"selectend\", Vt = \"selectstart\", Ht = \"scroll\", Ut = \"submit\", Wt = \"touchstart\", Rt = \"touchmove\", Qt = \"touchcancel\", jt = \"touchend\", Kt = \"unload\", Ue = {\n DOMContentLoaded: H,\n DOMMouseScroll: nt,\n abort: J,\n beforeunload: X,\n blur: Y,\n change: tt,\n click: gt,\n contextmenu: et,\n dblclick: mt,\n error: ot,\n focus: st,\n focusin: rt,\n focusout: ct,\n gesturechange: at,\n gestureend: it,\n gesturestart: ut,\n hover: Et,\n keydown: lt,\n keypress: dt,\n keyup: ft,\n load: pt,\n mousedown: vt,\n mousemove: kt,\n mousein: wt,\n mouseout: At,\n mouseenter: ht,\n mouseleave: yt,\n mouseover: St,\n mouseup: bt,\n mousewheel: Nt,\n move: Ct,\n orientationchange: Tt,\n pointercancel: Mt,\n pointerdown: Dt,\n pointerleave: Lt,\n pointermove: Ot,\n pointerup: xt,\n readystatechange: zt,\n reset: It,\n resize: Pt,\n scroll: Ht,\n select: Ft,\n selectend: Bt,\n selectstart: Vt,\n submit: Ut,\n touchcancel: Qt,\n touchend: jt,\n touchmove: Rt,\n touchstart: Wt,\n unload: Kt\n}, We = \"drag\", Re = \"dragstart\", Qe = \"dragenter\", je = \"dragleave\", Ke = \"dragover\", qe = \"dragend\", Ge = \"loadstart\", Ze = {\n start: \"mousedown\",\n end: \"mouseup\",\n move: \"mousemove\",\n cancel: \"mouseleave\"\n}, _e = { down: \"mousedown\", up: \"mouseup\" }, $e = \"onmouseleave\" in document ? [\"mouseenter\", \"mouseleave\"] : [\"mouseover\", \"mouseout\"], Je = {\n start: \"touchstart\",\n end: \"touchend\",\n move: \"touchmove\",\n cancel: \"touchcancel\"\n}, Xe = { in: \"focusin\", out: \"focusout\" }, qt = 'a[href], button, input, textarea, select, details, [tabindex]:not([tabindex=\"-1\"]', Ye = {\n Backspace: \"Backspace\",\n Tab: \"Tab\",\n Enter: \"Enter\",\n Shift: \"Shift\",\n Control: \"Control\",\n Alt: \"Alt\",\n Pause: \"Pause\",\n CapsLock: \"CapsLock\",\n Escape: \"Escape\",\n Scape: \"Space\",\n ArrowLeft: \"ArrowLeft\",\n ArrowUp: \"ArrowUp\",\n ArrowRight: \"ArrowRight\",\n ArrowDown: \"ArrowDown\",\n Insert: \"Insert\",\n Delete: \"Delete\",\n Meta: \"Meta\",\n ContextMenu: \"ContextMenu\",\n ScrollLock: \"ScrollLock\"\n}, tn = \"Alt\", en = \"ArrowDown\", nn = \"ArrowUp\", on = \"ArrowLeft\", sn = \"ArrowRight\", rn = \"Backspace\", cn = \"CapsLock\", an = \"Control\", un = \"Delete\", ln = \"Enter\", dn = \"NumpadEnter\", fn = \"Escape\", pn = \"Insert\", gn = \"Meta\", mn = \"Pause\", vn = \"ScrollLock\", bn = \"Shift\", En = \"Space\", hn = \"Tab\", Gt = \"animationDuration\", Zt = \"animationDelay\", U = \"animationName\", T = \"animationend\", _t = \"transitionDuration\", $t = \"transitionDelay\", M = \"transitionend\", W = \"transitionProperty\", yn = \"addEventListener\", wn = \"removeEventListener\", An = {\n linear: \"linear\",\n easingSinusoidalIn: \"cubic-bezier(0.47,0,0.745,0.715)\",\n easingSinusoidalOut: \"cubic-bezier(0.39,0.575,0.565,1)\",\n easingSinusoidalInOut: \"cubic-bezier(0.445,0.05,0.55,0.95)\",\n easingQuadraticIn: \"cubic-bezier(0.550,0.085,0.680,0.530)\",\n easingQuadraticOut: \"cubic-bezier(0.250,0.460,0.450,0.940)\",\n easingQuadraticInOut: \"cubic-bezier(0.455,0.030,0.515,0.955)\",\n easingCubicIn: \"cubic-bezier(0.55,0.055,0.675,0.19)\",\n easingCubicOut: \"cubic-bezier(0.215,0.61,0.355,1)\",\n easingCubicInOut: \"cubic-bezier(0.645,0.045,0.355,1)\",\n easingQuarticIn: \"cubic-bezier(0.895,0.03,0.685,0.22)\",\n easingQuarticOut: \"cubic-bezier(0.165,0.84,0.44,1)\",\n easingQuarticInOut: \"cubic-bezier(0.77,0,0.175,1)\",\n easingQuinticIn: \"cubic-bezier(0.755,0.05,0.855,0.06)\",\n easingQuinticOut: \"cubic-bezier(0.23,1,0.32,1)\",\n easingQuinticInOut: \"cubic-bezier(0.86,0,0.07,1)\",\n easingExponentialIn: \"cubic-bezier(0.95,0.05,0.795,0.035)\",\n easingExponentialOut: \"cubic-bezier(0.19,1,0.22,1)\",\n easingExponentialInOut: \"cubic-bezier(1,0,0,1)\",\n easingCircularIn: \"cubic-bezier(0.6,0.04,0.98,0.335)\",\n easingCircularOut: \"cubic-bezier(0.075,0.82,0.165,1)\",\n easingCircularInOut: \"cubic-bezier(0.785,0.135,0.15,0.86)\",\n easingBackIn: \"cubic-bezier(0.6,-0.28,0.735,0.045)\",\n easingBackOut: \"cubic-bezier(0.175,0.885,0.32,1.275)\",\n easingBackInOut: \"cubic-bezier(0.68,-0.55,0.265,1.55)\"\n}, Sn = \"offsetHeight\", kn = \"offsetWidth\", Nn = \"scrollHeight\", Cn = \"scrollWidth\", Tn = \"tabindex\", Mn = navigator.userAgentData, { userAgent: Jt } = navigator, Dn = Jt, Ln = () => {\n const t = /iPhone|iPad|iPod|Android/i;\n return navigator?.userAgentData?.brands.some(\n (e) => t.test(e.brand)\n ) || t.test(navigator?.userAgent) || !1;\n}, On = () => {\n const t = /(iPhone|iPod|iPad)/;\n return navigator?.userAgentData?.brands.some(\n (e) => t.test(e.brand)\n ) || t.test(\n navigator?.userAgent\n ) || !1;\n}, xn = () => navigator?.userAgent?.includes(\"Firefox\") || !1, Xt = () => typeof CSS > \"u\" || !CSS.supports ? !1 : CSS.supports(\"-webkit-backdrop-filter\", \"none\"), zn = () => [\"webkitPerspective\", \"perspective\"].some((t) => t in document.head.style), Yt = () => {\n}, R = (t, e, n, o) => {\n const s = o || !1;\n t.addEventListener(\n e,\n n,\n s\n );\n}, Q = (t, e, n, o) => {\n const s = o || !1;\n t.removeEventListener(\n e,\n n,\n s\n );\n}, te = (t, e, n, o) => {\n const s = (r) => {\n (r.target === t || r.currentTarget === t) && (n.apply(t, [r]), Q(t, e, s, o));\n };\n R(t, e, s, o);\n}, In = () => {\n let t = !1;\n try {\n const e = Object.defineProperty({}, \"passive\", {\n get: () => (t = !0, t)\n });\n te(document, H, Yt, e);\n } catch {\n }\n return t;\n}, Pn = () => [\"webkitTransform\", \"transform\"].some((t) => t in document.head.style), Fn = () => \"ontouchstart\" in window || \"msMaxTouchPoints\" in navigator, Bn = () => [\"webkitAnimation\", \"animation\"].some((t) => t in document.head.style), Vn = () => [\"webkitTransition\", \"transition\"].some((t) => t in document.head.style), j = (t, e) => t.getAttribute(e), Hn = (t, e, n) => e.getAttributeNS(t, n), ee = (t, e) => t.hasAttribute(e), Un = (t, e, n) => e.hasAttributeNS(t, n), Wn = (t, e, n) => t.setAttribute(e, n), Rn = (t, e, n, o) => e.setAttributeNS(t, n, o), Qn = (t, e) => t.removeAttribute(e), jn = (t, e, n) => e.removeAttributeNS(t, n), Kn = (t, ...e) => {\n t.classList.add(...e);\n}, qn = (t, ...e) => {\n t.classList.remove(...e);\n}, Gn = (t, e) => t.classList.contains(e), { body: Zn } = document, { documentElement: _n } = document, { head: $n } = document, Jn = (t) => Array.from(t), v = (t) => t != null && typeof t == \"object\" || !1, u = (t) => v(t) && typeof t.nodeType == \"number\" && [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11].some(\n (e) => t.nodeType === e\n) || !1, i = (t) => u(t) && t.nodeType === 1 || !1, E = /* @__PURE__ */ new Map(), L = {\n data: E,\n set: (t, e, n) => {\n if (!i(t)) return;\n E.has(e) || E.set(e, /* @__PURE__ */ new Map()), E.get(e).set(t, n);\n },\n getAllFor: (t) => E.get(t) || null,\n get: (t, e) => {\n if (!i(t) || !e) return null;\n const n = L.getAllFor(e);\n return t && n && n.get(t) || null;\n },\n remove: (t, e) => {\n const n = L.getAllFor(e);\n !n || !i(t) || (n.delete(t), n.size === 0 && E.delete(e));\n }\n}, Xn = (t, e) => L.get(t, e), Yn = (t) => t?.charAt(0).toUpperCase() + t?.slice(1), I = (t) => t?.trim().replace(\n /(?:^\\w|[A-Z]|\\b\\w)/g,\n (e, n) => n === 0 ? e.toLowerCase() : e.toUpperCase()\n).replace(/\\s+/g, \"\"), N = (t) => typeof t == \"string\" || !1, K = (t) => v(t) && t.constructor.name === \"Window\" || !1, q = (t) => u(t) && t.nodeType === 9 || !1, d = (t) => q(t) ? t : u(t) ? t.ownerDocument : K(t) ? t.document : globalThis.document, C = (t, ...e) => Object.assign(t, ...e), ne = (t) => {\n if (!t) return;\n if (N(t))\n return d().createElement(t);\n const { tagName: e } = t, n = ne(e);\n if (!n) return;\n const o = { ...t };\n return delete o.tagName, C(n, o);\n}, oe = (t, e) => {\n if (!t || !e) return;\n if (N(e))\n return d().createElementNS(t, e);\n const { tagName: n } = e, o = oe(t, n);\n if (!o) return;\n const s = { ...e };\n return delete s.tagName, C(o, s);\n}, G = (t, e) => t.dispatchEvent(e), to = (t, e, n) => n.indexOf(t) === e, f = (t, e, n) => {\n const o = getComputedStyle(t, n), s = e.replace(\"webkit\", \"Webkit\").replace(/([A-Z])/g, \"-$1\").toLowerCase();\n return o.getPropertyValue(s);\n}, se = (t) => {\n const e = f(t, U), n = f(t, Zt), o = n.includes(\"ms\") ? 1 : 1e3, s = e && e !== \"none\" ? parseFloat(n) * o : 0;\n return Number.isNaN(s) ? 0 : s;\n}, re = (t) => {\n const e = f(t, U), n = f(t, Gt), o = n.includes(\"ms\") ? 1 : 1e3, s = e && e !== \"none\" ? parseFloat(n) * o : 0;\n return Number.isNaN(s) ? 0 : s;\n}, eo = (t, e) => {\n let n = 0;\n const o = new Event(T), s = re(t), r = se(t);\n if (s) {\n const a = (l) => {\n l.target === t && (e.apply(t, [l]), t.removeEventListener(T, a), n = 1);\n };\n t.addEventListener(T, a), setTimeout(() => {\n n || G(t, o);\n }, s + r + 17);\n } else\n e.apply(t, [o]);\n}, ce = (t) => {\n const e = f(t, W), n = f(t, $t), o = n.includes(\"ms\") ? 1 : 1e3, s = e && e !== \"none\" ? parseFloat(n) * o : 0;\n return Number.isNaN(s) ? 0 : s;\n}, ae = (t) => {\n const e = f(t, W), n = f(t, _t), o = n.includes(\"ms\") ? 1 : 1e3, s = e && e !== \"none\" ? parseFloat(n) * o : 0;\n return Number.isNaN(s) ? 0 : s;\n}, no = (t, e) => {\n let n = 0;\n const o = new Event(M), s = ae(t), r = ce(t);\n if (s) {\n const a = (l) => {\n l.target === t && (e.apply(t, [l]), t.removeEventListener(M, a), n = 1);\n };\n t.addEventListener(M, a), setTimeout(() => {\n n || G(t, o);\n }, s + r + 17);\n } else\n e.apply(t, [o]);\n}, oo = (t) => Float32Array.from(Array.from(t)), so = (t) => Float64Array.from(Array.from(t)), ro = (t, e) => t.focus(e), co = (t) => t?.trim().replace(/([a-z])([A-Z])/g, \"$1-$2\").replace(/\\s+/g, \"-\").toLowerCase(), P = (t) => [\"true\", !0].includes(t) ? !0 : [\"false\", !1].includes(t) ? !1 : [\"null\", \"\", null, void 0].includes(t) ? null : t !== \"\" && !Number.isNaN(+t) ? +t : t, S = (t) => Object.entries(t), ao = (t, e, n, o) => {\n if (!i(t)) return e;\n const s = { ...n }, r = { ...t.dataset }, a = { ...e }, l = {}, p = \"title\";\n return S(r).forEach(([c, g]) => {\n const A = o && typeof c == \"string\" && c.includes(o) ? I(c.replace(o, \"\")) : I(c);\n l[A] = P(g);\n }), S(s).forEach(([c, g]) => {\n s[c] = P(g);\n }), S(e).forEach(([c, g]) => {\n c in s ? a[c] = s[c] : c in l ? a[c] = l[c] : a[c] = c === p ? j(t, p) : g;\n }), a;\n}, io = (t, e) => v(t) && (Object.hasOwn(t, e) || e in t), uo = (t) => Object.keys(t), lo = (t) => Object.values(t), fo = (t) => Object.fromEntries(t), po = (t, e) => {\n const n = new CustomEvent(t, {\n cancelable: !0,\n bubbles: !0\n });\n return v(e) && C(n, e), n;\n}, go = { passive: !0 }, mo = (t) => t.offsetHeight, vo = (t, e) => {\n S(e).forEach(([n, o]) => {\n if (o && N(n) && n.includes(\"--\"))\n t.style.setProperty(n, o);\n else {\n const s = {};\n s[n] = o, C(t.style, s);\n }\n });\n}, O = (t) => v(t) && t.constructor.name === \"Map\" || !1, ie = (t) => typeof t == \"number\" || !1, m = /* @__PURE__ */ new Map(), bo = {\n set: (t, e, n, o) => {\n i(t) && (o && o.length ? (m.has(t) || m.set(t, /* @__PURE__ */ new Map()), m.get(t).set(o, setTimeout(e, n))) : m.set(t, setTimeout(e, n)));\n },\n get: (t, e) => {\n if (!i(t)) return null;\n const n = m.get(t);\n return e && n && O(n) ? n.get(e) || null : ie(n) ? n : null;\n },\n clear: (t, e) => {\n if (!i(t)) return;\n const n = m.get(t);\n e && e.length && O(n) ? (clearTimeout(n.get(e)), n.delete(e), n.size === 0 && m.delete(t)) : (clearTimeout(n), m.delete(t));\n }\n}, Eo = (t) => t.toLowerCase(), ho = (t) => t.toUpperCase(), ue = (t, e) => (u(e) ? e : d()).querySelectorAll(t), x = /* @__PURE__ */ new Map();\nfunction le(t) {\n const { shiftKey: e, code: n } = t, o = d(this), s = [\n ...ue(qt, this)\n ].filter(\n (l) => !ee(l, \"disabled\") && !j(l, $)\n );\n if (!s.length) return;\n const r = s[0], a = s[s.length - 1];\n n === \"Tab\" && (e && o.activeElement === r ? (a.focus(), t.preventDefault()) : !e && o.activeElement === a && (r.focus(), t.preventDefault()));\n}\nconst de = (t) => x.has(t) === !0, yo = (t) => {\n const e = de(t);\n (e ? Q : R)(t, \"keydown\", le), e ? x.delete(t) : x.set(t, !0);\n}, b = (t) => i(t) && \"offsetWidth\" in t || !1, y = (t, e) => {\n const { width: n, height: o, top: s, right: r, bottom: a, left: l } = t.getBoundingClientRect();\n let p = 1, c = 1;\n if (e && b(t)) {\n const { offsetWidth: g, offsetHeight: A } = t;\n p = g > 0 ? Math.round(n) / g : 1, c = A > 0 ? Math.round(o) / A : 1;\n }\n return {\n width: n / p,\n height: o / c,\n top: s / c,\n right: r / p,\n bottom: a / c,\n left: l / p,\n x: l / p,\n y: s / c\n };\n}, wo = (t) => d(t).body, w = (t) => d(t).documentElement, Ao = (t) => d(t).head, fe = (t) => u(t) ? (t.nodeName || \"\").toLowerCase() : \"#document\", So = (t) => {\n const e = K(t), n = e ? t.scrollX : t.scrollLeft, o = e ? t.scrollY : t.scrollTop;\n return { x: n, y: o };\n}, pe = (t) => u(t) && t.constructor.name === \"ShadowRoot\" || !1, k = (t) => t.nodeName === \"HTML\" ? t : i(t) && t.assignedSlot || u(t) && t.parentNode || pe(t) && t.host || w(t), ge = (t) => t ? q(t) ? t.defaultView : u(t) ? t?.ownerDocument?.defaultView : t : window, me = (t) => u(t) && [\"TABLE\", \"TD\", \"TH\"].includes(t.nodeName) || !1, ve = (t, e) => t.matches(e), D = (t) => f(t, \"position\") === \"static\", be = (t) => f(t, \"position\") === \"fixed\", Z = (t) => [\":popover-open\", \":modal\"].some((e) => {\n try {\n return ve(t, e);\n } catch {\n return !1;\n }\n}), _ = (t) => {\n const e = Xt(), n = i(t) ? getComputedStyle(t) : t;\n return n.transform !== \"none\" || n.perspective !== \"none\" || (n.containerType ? n.containerType !== \"normal\" : !1) || !e && (n.backdropFilter ? n.backdropFilter !== \"none\" : !1) || !e && (n.filter ? n.filter !== \"none\" : !1) || [\"transform\", \"perspective\", \"filter\"].some(\n (o) => (n.willChange || \"\").includes(o)\n ) || [\"paint\", \"layout\", \"strict\", \"content\"].some(\n (o) => (n.contain || \"\").includes(o)\n );\n}, Ee = (t) => {\n let e = k(t);\n for (; i(e) && !z(e); ) {\n if (_(e))\n return e;\n if (Z(e))\n return null;\n e = k(e);\n }\n return null;\n}, z = (t) => [\"html\", \"body\", \"#document\"].includes(fe(t)), F = (t) => {\n if (!b(t) || be(t))\n return null;\n let e = t.offsetParent;\n return w(t) === e && (e = e.ownerDocument.body), e;\n}, ko = (t) => {\n const e = ge(t);\n if (!u(t) || Z(t))\n return e;\n if (!b(t)) {\n let o = k(t);\n for (; o && !z(o); ) {\n if (i(o) && !D(o))\n return o;\n o = k(o);\n }\n return e;\n }\n let n = F(t);\n for (; n && me(n) && D(n); )\n n = F(n);\n return n && z(n) && D(n) && !_(n) ? e : n || Ee(t) || e;\n}, he = (t) => {\n if (!b(t)) return !1;\n const { width: e, height: n } = y(t), { offsetWidth: o, offsetHeight: s } = t;\n return Math.round(e) !== o || Math.round(n) !== s;\n}, No = (t, e, n) => {\n const o = b(e), s = y(\n t,\n o && he(e)\n ), r = { x: 0, y: 0 };\n if (o) {\n const a = y(e, !0);\n r.x = a.x + e.clientLeft, r.y = a.y + e.clientTop;\n }\n return {\n x: s.left + n.x - r.x,\n y: s.top + n.y - r.y,\n width: s.width,\n height: s.height\n };\n};\nlet B = 0, V = 0;\nconst h = /* @__PURE__ */ new Map(), ye = (t, e) => {\n let n = e ? B : V;\n if (e) {\n const o = ye(t), s = h.get(o) || /* @__PURE__ */ new Map();\n h.has(o) || h.set(o, s), O(s) && !s.has(e) ? (s.set(e, n), B += 1) : n = s.get(e);\n } else {\n const o = t.id || t;\n h.has(o) ? n = h.get(o) : (h.set(o, n), V += 1);\n }\n return n;\n}, we = (t) => Array.isArray(t) || !1, Co = (t) => u(t) && t.nodeName === \"CANVAS\" || !1, Ae = (t) => b(t) && !!t.shadowRoot || !1, To = (t) => {\n if (!u(t)) return !1;\n const { top: e, bottom: n } = y(t), { clientHeight: o } = w(t);\n return e <= o && n >= 0;\n}, Mo = (t) => {\n if (!i(t)) return !1;\n const { clientWidth: e, clientHeight: n } = w(t), { top: o, left: s, bottom: r, right: a } = y(t, !0);\n return o >= 0 && s >= 0 && r <= n && a <= e;\n}, Do = (t) => we(t) && t.every(i) || !1, Lo = (t) => typeof t == \"function\" || !1, Oo = (t) => v(t) && t.constructor.name === \"HTMLCollection\" || !1, xo = (t) => b(t) && t.tagName === \"IMG\" || !1, zo = (t) => {\n if (!N(t)) return !1;\n try {\n JSON.parse(t);\n } catch {\n return !1;\n }\n return !0;\n}, Io = (t) => v(t) && t.constructor.name === \"WeakMap\" || !1, Po = (t) => u(t) && [\"SVG\", \"Image\", \"Video\", \"Canvas\"].some(\n (e) => t.constructor.name.includes(e)\n) || !1, Fo = (t) => v(t) && t.constructor.name === \"NodeList\" || !1, Bo = (t) => w(t).dir === \"rtl\", Vo = (t) => u(t) && t.constructor.name.includes(\"SVG\") || !1, Se = (t, e) => !t || !e ? null : t.closest(e) || Se(t.getRootNode().host, e) || null, Ho = (t, e) => i(t) ? t : (i(e) ? e : d()).querySelector(t), ke = (t, e) => (u(e) ? e : d()).getElementsByTagName(\n t\n), Uo = (t) => [...ke(\"*\", t)].filter(Ae), Wo = (t, e) => d(e).getElementById(t), Ro = (t, e) => (e && u(e) ? e : d()).getElementsByClassName(\n t\n);\nexport {\n Jn as ArrayFrom,\n H as DOMContentLoadedEvent,\n nt as DOMMouseScrollEvent,\n L as Data,\n oo as Float32ArrayFrom,\n so as Float64ArrayFrom,\n C as ObjectAssign,\n S as ObjectEntries,\n fo as ObjectFromEntries,\n io as ObjectHasOwn,\n uo as ObjectKeys,\n lo as ObjectValues,\n bo as Timer,\n J as abortEvent,\n Kn as addClass,\n yn as addEventListener,\n Zt as animationDelay,\n Gt as animationDuration,\n T as animationEndEvent,\n U as animationName,\n Ce as ariaChecked,\n Me as ariaDescribedBy,\n Te as ariaDescription,\n De as ariaExpanded,\n Le as ariaHasPopup,\n $ as ariaHidden,\n Oe as ariaLabel,\n xe as ariaLabelledBy,\n ze as ariaModal,\n Ie as ariaPressed,\n Pe as ariaSelected,\n Be as ariaValueMax,\n Fe as ariaValueMin,\n Ve as ariaValueNow,\n He as ariaValueText,\n X as beforeunloadEvent,\n An as bezierEasings,\n Y as blurEvent,\n I as camelCase,\n Yn as capitalize,\n tt as changeEvent,\n Se as closest,\n et as contextmenuEvent,\n po as createCustomEvent,\n ne as createElement,\n oe as createElementNS,\n G as dispatchEvent,\n to as distinct,\n Zn as documentBody,\n _n as documentElement,\n $n as documentHead,\n We as dragEvent,\n qe as dragendEvent,\n Qe as dragenterEvent,\n je as dragleaveEvent,\n Ke as dragoverEvent,\n Re as dragstartEvent,\n eo as emulateAnimationEnd,\n no as emulateTransitionEnd,\n ot as errorEvent,\n ro as focus,\n st as focusEvent,\n Xe as focusEvents,\n qt as focusableSelector,\n rt as focusinEvent,\n ct as focusoutEvent,\n at as gesturechangeEvent,\n it as gestureendEvent,\n ut as gesturestartEvent,\n j as getAttribute,\n Hn as getAttributeNS,\n y as getBoundingClientRect,\n Uo as getCustomElements,\n d as getDocument,\n wo as getDocumentBody,\n w as getDocumentElement,\n Ao as getDocumentHead,\n se as getElementAnimationDelay,\n re as getElementAnimationDuration,\n Wo as getElementById,\n f as getElementStyle,\n ce as getElementTransitionDelay,\n ae as getElementTransitionDuration,\n Ro as getElementsByClassName,\n ke as getElementsByTagName,\n Xn as getInstance,\n fe as getNodeName,\n So as getNodeScroll,\n ko as getOffsetParent,\n k as getParentNode,\n No as getRectRelativeToOffsetParent,\n ye as getUID,\n ge as getWindow,\n ee as hasAttribute,\n Un as hasAttributeNS,\n Gn as hasClass,\n de as hasFocusTrap,\n On as isApple,\n we as isArray,\n Co as isCanvas,\n Ae as isCustomElement,\n q as isDocument,\n i as isElement,\n To as isElementInScrollRange,\n Mo as isElementInViewport,\n Do as isElementsArray,\n xn as isFirefox,\n Lo as isFunction,\n Oo as isHTMLCollection,\n b as isHTMLElement,\n xo as isHTMLImageElement,\n zo as isJSON,\n O as isMap,\n Po as isMedia,\n Ln as isMobile,\n u as isNode,\n Fo as isNodeList,\n ie as isNumber,\n v as isObject,\n Bo as isRTL,\n Vo as isSVGElement,\n he as isScaledElement,\n pe as isShadowRoot,\n N as isString,\n me as isTableElement,\n Io as isWeakMap,\n Xt as isWebKit,\n K as isWindow,\n co as kebabCase,\n tn as keyAlt,\n en as keyArrowDown,\n on as keyArrowLeft,\n sn as keyArrowRight,\n nn as keyArrowUp,\n rn as keyBackspace,\n cn as keyCapsLock,\n an as keyControl,\n un as keyDelete,\n ln as keyEnter,\n fn as keyEscape,\n pn as keyInsert,\n gn as keyMeta,\n dn as keyNumpadEnter,\n mn as keyPause,\n vn as keyScrollLock,\n bn as keyShift,\n En as keySpace,\n hn as keyTab,\n Ye as keyboardEventKeys,\n lt as keydownEvent,\n dt as keypressEvent,\n ft as keyupEvent,\n pt as loadEvent,\n Ge as loadstartEvent,\n ve as matches,\n _e as mouseClickEvents,\n $e as mouseHoverEvents,\n Ze as mouseSwipeEvents,\n gt as mouseclickEvent,\n mt as mousedblclickEvent,\n vt as mousedownEvent,\n ht as mouseenterEvent,\n Et as mousehoverEvent,\n wt as mouseinEvent,\n yt as mouseleaveEvent,\n kt as mousemoveEvent,\n At as mouseoutEvent,\n St as mouseoverEvent,\n bt as mouseupEvent,\n Nt as mousewheelEvent,\n Ct as moveEvent,\n Ue as nativeEvents,\n Yt as noop,\n ao as normalizeOptions,\n P as normalizeValue,\n Q as off,\n Sn as offsetHeight,\n kn as offsetWidth,\n R as on,\n te as one,\n Tt as orientationchangeEvent,\n go as passiveHandler,\n Mt as pointercancelEvent,\n Dt as pointerdownEvent,\n Lt as pointerleaveEvent,\n Ot as pointermoveEvent,\n xt as pointerupEvent,\n Ho as querySelector,\n ue as querySelectorAll,\n zt as readystatechangeEvent,\n mo as reflow,\n Qn as removeAttribute,\n jn as removeAttributeNS,\n qn as removeClass,\n wn as removeEventListener,\n It as resetEvent,\n Pt as resizeEvent,\n Ht as scrollEvent,\n Nn as scrollHeight,\n Cn as scrollWidth,\n Ft as selectEvent,\n Bt as selectendEvent,\n Vt as selectstartEvent,\n Wn as setAttribute,\n Rn as setAttributeNS,\n vo as setElementStyle,\n Ut as submitEvent,\n zn as support3DTransform,\n Bn as supportAnimation,\n In as supportPassive,\n Fn as supportTouch,\n Pn as supportTransform,\n Vn as supportTransition,\n Tn as tabindex,\n Eo as toLowerCase,\n ho as toUpperCase,\n yo as toggleFocusTrap,\n Je as touchEvents,\n Qt as touchcancelEvent,\n jt as touchendEvent,\n Rt as touchmoveEvent,\n Wt as touchstartEvent,\n $t as transitionDelay,\n _t as transitionDuration,\n M as transitionEndEvent,\n W as transitionProperty,\n Kt as unloadEvent,\n Dn as userAgent,\n Mn as userAgentData,\n Ne as version\n};\n//# sourceMappingURL=shorty.mjs.map\n","const g = \"2.0.8\", e = {}, f = (t) => {\n const { type: n, currentTarget: c } = t;\n e[n].forEach((a, s) => {\n c === s && a.forEach((o, i) => {\n i.apply(s, [t]), typeof o == \"object\" && o.once && r(s, n, i, o);\n });\n });\n}, E = (t, n, c, a) => {\n e[n] || (e[n] = /* @__PURE__ */ new Map());\n const s = e[n];\n s.has(t) || s.set(t, /* @__PURE__ */ new Map());\n const o = s.get(\n t\n ), { size: i } = o;\n o.set(c, a), i || t.addEventListener(\n n,\n f,\n a\n );\n}, r = (t, n, c, a) => {\n const s = e[n], o = s && s.get(t), i = o && o.get(c), d = i !== void 0 ? i : a;\n o && o.has(c) && o.delete(c), s && (!o || !o.size) && s.delete(t), (!s || !s.size) && delete e[n], (!o || !o.size) && t.removeEventListener(\n n,\n f,\n d\n );\n}, M = E, p = r;\nexport {\n E as addListener,\n f as globalListener,\n p as off,\n M as on,\n e as registry,\n r as removeListener,\n g as version\n};\n//# sourceMappingURL=event-listener.mjs.map\n","/**\n * Global namespace for most components `fade` class.\n */\nconst fadeClass = \"fade\";\nexport default fadeClass;\n","/**\n * Global namespace for most components `show` class.\n */\nconst showClass = \"show\";\nexport default showClass;\n","/**\n * Global namespace for most components `dismiss` option.\n */\nconst dataBsDismiss = \"data-bs-dismiss\";\nexport default dataBsDismiss;\n","/** @type {string} */\nconst alertString = \"alert\";\nexport default alertString;\n","/** @type {string} */\nconst alertComponent = \"Alert\";\nexport default alertComponent;\n","import { getAttribute, hasClass } from \"@thednp/shorty\";\n\n/**\n * Check if interactive element is disabled.\n * @param target either a `',\n});\n\n/**\n * Static method which returns an existing `Popover` instance associated\n * to a target `Element`.\n */\nconst getPopoverInstance = (element: Element) =>\n getInstance(element, popoverComponent);\n\n/**\n * A `Popover` initialization callback.\n */\nconst popoverInitCallback = (element: Element) => new Popover(element);\n\n// POPOVER DEFINITION\n// ==================\n/** Returns a new `Popover` instance. */\nexport default class Popover extends Tooltip {\n static selector = popoverSelector;\n static init = popoverInitCallback;\n static getInstance = getPopoverInstance;\n static styleTip = styleTip;\n declare options: PopoverOptions;\n\n /**\n * @param target the target element\n * @param config the instance options\n */\n constructor(target: Element | string, config?: Partial) {\n super(target, config);\n }\n /**\n * Returns component name string.\n */\n get name() {\n return popoverComponent;\n }\n /**\n * Returns component default options.\n */\n get defaults() {\n return popoverDefaults;\n }\n\n /* extend original `show()` */\n show = () => {\n super.show();\n // btn only exists within dismissible popover\n const { options, btn } = this;\n // istanbul ignore else @preserve\n if (options.dismissible && btn) setTimeout(() => focus(btn), 17);\n };\n}\n","/** @type {string} */\nconst scrollspyString = \"scrollspy\";\nexport default scrollspyString;\n","/** @type {string} */\nconst scrollspyComponent = \"ScrollSpy\";\nexport default scrollspyComponent;\n","/* Native JavaScript for Bootstrap 5 | ScrollSpy\n------------------------------------------------ */\nimport {\n addClass,\n closest,\n createCustomEvent,\n dispatchEvent,\n getAttribute,\n getBoundingClientRect,\n getDocument,\n getDocumentElement,\n getElementById,\n getElementsByTagName,\n getInstance,\n hasClass,\n mouseclickEvent,\n MouseEvent,\n querySelector,\n removeClass,\n} from \"@thednp/shorty\";\n\nimport PositionObserver from \"@thednp/position-observer\";\nimport { addListener, removeListener } from \"@thednp/event-listener\";\n\nimport activeClass from \"~/strings/activeClass\";\nimport scrollspyString from \"~/strings/scrollspyString\";\nimport scrollspyComponent from \"~/strings/scrollspyComponent\";\nimport isDisabled from \"~/util/isDisabled\";\nimport BaseComponent from \"./base-component\";\nimport { ScrollSpyEvent, ScrollSpyOptions } from \"~/interface/scrollspy\";\n\n// SCROLLSPY PRIVATE GC\n// ====================\nconst scrollspySelector = '[data-bs-spy=\"scroll\"]';\nconst scrollSpyAnchorSelector = \"[href]\";\n\nconst scrollspyDefaults: Partial = {\n offset: 10,\n target: undefined,\n};\n\ntype ScrollSpyEventProps = {\n relatedTarget: HTMLElement;\n};\n\n/**\n * Static method which returns an existing `ScrollSpy` instance associated\n * to a target `Element`.\n */\nconst getScrollSpyInstance = (element: Element) =>\n getInstance(element, scrollspyComponent);\n\n/**\n * A `ScrollSpy` initialization callback.\n */\nconst scrollspyInitCallback = (element: Element) => new ScrollSpy(element);\n\n// SCROLLSPY CUSTOM EVENT\n// ======================\nconst activateScrollSpy = createCustomEvent<\n ScrollSpyEventProps,\n ScrollSpyEvent\n>(`activate.bs.${scrollspyString}`);\n\n// SCROLLSPY PRIVATE METHODS\n// =========================\n/**\n * Update the state of all items.\n *\n * @param self the `ScrollSpy` instance\n */\nconst updateSpyTargets = (self: ScrollSpy) => {\n const {\n target,\n _itemsLength,\n _observables,\n } = self;\n\n const links = getElementsByTagName(\"A\", target);\n const doc = getDocument(target);\n\n // only update items once or with each mutation\n // istanbul ignore else @preserve\n if (!links.length || _itemsLength === _observables.size) return;\n // reset arrays & update\n _observables.clear();\n\n Array.from(links).forEach((link) => {\n const hash = getAttribute(link, \"href\")?.slice(1);\n const targetItem = hash?.length ? doc.getElementById(hash) : null;\n\n if (targetItem && !isDisabled(link)) {\n self._observables.set(targetItem, link);\n }\n });\n self._itemsLength = self._observables.size;\n};\n\n/**\n * Clear all items of the target.\n *\n * @param target a single item\n */\nconst clear = (target: Element) => {\n Array.from(getElementsByTagName(\"A\", target)).forEach(\n (item) => {\n if (hasClass(item, activeClass)) removeClass(item, activeClass);\n },\n );\n};\n\n/**\n * Activates a new item.\n *\n * @param self the `ScrollSpy` instance\n * @param item a single item\n */\nconst activate = (self: ScrollSpy, item: HTMLElement) => {\n const { target, element } = self;\n\n // istanbul ignore else @preserve\n clear(target);\n\n self._activeItem = item;\n addClass(item, activeClass);\n\n // activate all parents\n let parentItem = item;\n while (parentItem !== target) {\n parentItem = parentItem.parentElement as HTMLElement;\n if (\n [\"nav\", \"dropdown-menu\", \"list-group\"].some((c) =>\n hasClass(parentItem, c)\n )\n ) {\n const parentLink = parentItem.previousElementSibling as\n | HTMLElement\n | null;\n\n // istanbul ignore else @preserve\n if (parentLink && !hasClass(parentLink, activeClass)) {\n addClass(parentLink, activeClass);\n }\n }\n }\n\n // dispatch\n activateScrollSpy.relatedTarget = item;\n dispatchEvent(element, activateScrollSpy);\n};\n\nconst getOffset = (self: ScrollSpy, target: HTMLElement) => {\n const { scrollTarget, element, options } = self;\n\n return (scrollTarget !== element\n ? getBoundingClientRect(target).top + scrollTarget.scrollTop\n : target.offsetTop) - (options.offset as number || 10);\n};\n\n// SCROLLSPY DEFINITION\n// ====================\n/** Returns a new `ScrollSpy` instance. */\nexport default class ScrollSpy extends BaseComponent {\n static selector = scrollspySelector;\n static init = scrollspyInitCallback;\n static getInstance = getScrollSpyInstance;\n declare element: HTMLElement;\n declare options: ScrollSpyOptions;\n declare target: HTMLElement;\n declare scrollTarget: HTMLElement;\n declare _itemsLength: number;\n declare _activeItem: HTMLElement | null;\n declare _observables: Map;\n declare _observer: PositionObserver; //| IntersectionObserver;\n\n /**\n * @param target the target element\n * @param config the instance options\n */\n constructor(\n target: Element | string,\n config?: Partial,\n ) {\n super(target, config);\n\n // initialization element & options\n const { element, options } = this;\n\n // get target\n const spyTarget = querySelector(\n options.target,\n getDocument(element),\n );\n\n // invalidate\n if (!spyTarget) return;\n this.target = spyTarget;\n\n // set initial state\n this.scrollTarget = element.clientHeight < element.scrollHeight\n ? element\n : getDocumentElement(element);\n this._observables = new Map();\n\n // run an initial burst, we need to know the targets\n this.refresh();\n // updateSpyTargets(this);\n\n // create observer\n this._observer = new PositionObserver(() => {\n requestAnimationFrame(() => this.refresh());\n }, {\n root: this.scrollTarget,\n });\n\n // add event handlers\n this._toggleEventListeners(true);\n }\n\n /* eslint-disable */\n /**\n * Returns component name string.\n */\n get name() {\n return scrollspyComponent;\n }\n /**\n * Returns component default options.\n */\n get defaults() {\n return scrollspyDefaults;\n }\n /* eslint-enable */\n\n // SCROLLSPY PUBLIC METHODS\n // ========================\n /** Updates all items. */\n refresh = () => {\n const { target, scrollTarget } = this;\n // check if target is visible and invalidate\n // istanbul ignore if @preserve\n if (!target || target.offsetHeight === 0) return;\n\n updateSpyTargets(this);\n const { _itemsLength, _observables, _activeItem } = this;\n\n // istanbul ignore if @preserve\n if (!_itemsLength) return;\n const entries = _observables.entries().toArray();\n\n const { scrollTop, scrollHeight, clientHeight } = scrollTarget;\n\n if (scrollTop >= scrollHeight - clientHeight) {\n const newActiveItem = entries[_itemsLength - 1]?.[1];\n\n // istanbul ignore else @preserve\n if (_activeItem !== newActiveItem) activate(this, newActiveItem);\n return;\n }\n\n const firstOffset = entries[0]?.[0]\n ? getOffset(this, entries[0][0])\n : /* istanbul ignore next */ null;\n if (\n firstOffset !== null && scrollTop < firstOffset &&\n firstOffset > 0\n ) {\n this._activeItem = null;\n clear(target);\n return;\n }\n\n for (let i = 0; i < _itemsLength; i += 1) {\n const [targetItem, item] = entries[i];\n const offsetTop = getOffset(this, targetItem);\n const nextTarget = entries[i + 1]?.[0];\n const nextOffsetTop = nextTarget\n ? getOffset(this, nextTarget)\n : /* istanbul ignore next */ null;\n\n // istanbul ignore else @preserve\n if (\n _activeItem !== item &&\n scrollTop >= offsetTop &&\n (nextOffsetTop === null || scrollTop < nextOffsetTop)\n ) {\n activate(this, item);\n break;\n }\n }\n };\n\n /**\n * This method provides an event handle\n * for scrollspy\n * @param e the event listener object\n */\n _scrollTo = (e: MouseEvent) => {\n const item = closest(e.target, scrollSpyAnchorSelector);\n const hash = item && getAttribute(item, \"href\")?.slice(1);\n const targetItem = hash && getElementById(hash, this.target);\n\n // istanbul ignore else @preserve\n if (targetItem) {\n this.scrollTarget.scrollTo({\n top: targetItem.offsetTop,\n behavior: \"smooth\",\n });\n e.preventDefault();\n }\n };\n\n /**\n * Toggles on/off the component observer.\n *\n * @param self the ScrollSpy instance\n * @param add when `true`, listener is added\n */\n _toggleEventListeners = (\n add?: boolean,\n ) => {\n const { target, _observables, _observer, _scrollTo } = this;\n const action = add ? addListener : removeListener;\n action(target, mouseclickEvent, _scrollTo);\n\n if (add) {\n _observables?.forEach((_, targetItem) => _observer.observe(targetItem));\n } else _observer.disconnect();\n };\n\n /** Removes `ScrollSpy` from the target element. */\n dispose() {\n this._toggleEventListeners();\n super.dispose();\n }\n}\n","/** @type {string} */\nconst tabString = \"tab\";\nexport default tabString;\n","/** @type {string} */\nconst tabComponent = \"Tab\";\nexport default tabComponent;\n","/* Native JavaScript for Bootstrap 5 | Tab\n------------------------------------------ */\nimport {\n addClass,\n ariaSelected,\n closest,\n createCustomEvent,\n dispatchEvent,\n emulateTransitionEnd,\n getElementsByClassName,\n getInstance,\n hasClass,\n isHTMLElement,\n mouseclickEvent,\n MouseEvent,\n querySelector,\n reflow,\n removeClass,\n setAttribute,\n Timer,\n} from \"@thednp/shorty\";\n\nimport { addListener, removeListener } from \"@thednp/event-listener\";\n\nimport collapsingClass from \"~/strings/collapsingClass\";\nimport activeClass from \"~/strings/activeClass\";\nimport fadeClass from \"~/strings/fadeClass\";\nimport showClass from \"~/strings/showClass\";\nimport dropdownClasses from \"~/strings/dropdownClasses\";\nimport dataBsToggle from \"~/strings/dataBsToggle\";\nimport tabString from \"~/strings/tabString\";\nimport tabComponent from \"~/strings/tabComponent\";\nimport getTargetElement from \"~/util/getTargetElement\";\nimport BaseComponent from \"./base-component\";\nimport type { /* TabOptions, */ TabEvent } from \"~/interface/tab\";\n\n// TAB PRIVATE GC\n// ================\nconst tabSelector = `[${dataBsToggle}=\"${tabString}\"]`;\n\n/**\n * Static method which returns an existing `Tab` instance associated\n * to a target `Element`.\n */\nconst getTabInstance = (element: Element) =>\n getInstance(element, tabComponent);\n\n/** A `Tab` initialization callback. */\nconst tabInitCallback = (element: Element) => new Tab(element);\n\ntype TabEventProps = {\n relatedTarget: Element & EventTarget | undefined;\n};\n\n// TAB CUSTOM EVENTS\n// =================\nconst showTabEvent = createCustomEvent(\n `show.bs.${tabString}`,\n);\nconst shownTabEvent = createCustomEvent(\n `shown.bs.${tabString}`,\n);\nconst hideTabEvent = createCustomEvent(\n `hide.bs.${tabString}`,\n);\nconst hiddenTabEvent = createCustomEvent(\n `hidden.bs.${tabString}`,\n);\n\ninterface TabPrivate {\n tab: HTMLElement | null;\n content: HTMLElement | null;\n currentHeight: number;\n nextHeight: number;\n}\n\n/**\n * Stores the current active tab and its content\n * for a given `.nav` element.\n */\nconst tabPrivate: Map = new Map();\n\n// TAB PRIVATE METHODS\n// ===================\n/**\n * Executes after tab transition has finished.\n *\n * @param self the `Tab` instance\n */\nconst triggerTabEnd = (self: Tab) => {\n const { tabContent, nav } = self;\n\n // istanbul ignore else @preserve\n if (tabContent && hasClass(tabContent, collapsingClass)) {\n tabContent.style.height = \"\";\n removeClass(tabContent, collapsingClass);\n }\n\n // istanbul ignore else @preserve\n if (nav) Timer.clear(nav);\n};\n\n/**\n * Executes before showing the tab content.\n *\n * @param self the `Tab` instance\n */\nconst triggerTabShow = (self: Tab) => {\n const { element, tabContent, content: nextContent, nav } = self;\n const { tab } = (isHTMLElement(nav) && tabPrivate.get(nav)) ||\n // istanbul ignore next @preserve\n { tab: null };\n\n // istanbul ignore else @preserve\n if (tabContent && nextContent && hasClass(nextContent, fadeClass)) {\n const { currentHeight, nextHeight } = tabPrivate.get(element) ||\n // istanbul ignore next @preserve\n { currentHeight: 0, nextHeight: 0 };\n // istanbul ignore else @preserve: vitest won't validate this branch\n if (currentHeight !== nextHeight) {\n // enables height animation\n setTimeout(() => {\n tabContent.style.height = `${nextHeight}px`;\n reflow(tabContent);\n emulateTransitionEnd(tabContent, () => triggerTabEnd(self));\n }, 50);\n } else {\n triggerTabEnd(self);\n }\n } else if (nav) Timer.clear(nav);\n\n shownTabEvent.relatedTarget = tab as HTMLElement | undefined;\n\n dispatchEvent(element, shownTabEvent);\n};\n\n/**\n * Executes before hiding the tab.\n *\n * @param self the `Tab` instance\n */\nconst triggerTabHide = (self: Tab) => {\n const { element, content: nextContent, tabContent, nav } = self;\n const { tab, content } = (nav && tabPrivate.get(nav)) ||\n // istanbul ignore next @preserve\n { tab: null, content: null };\n let currentHeight = 0;\n\n // istanbul ignore else @preserve\n if (tabContent && nextContent && hasClass(nextContent, fadeClass)) {\n [content, nextContent].forEach((c) => {\n // istanbul ignore else @preserve\n if (c) addClass(c, \"overflow-hidden\");\n });\n currentHeight = content\n ? content.scrollHeight\n : /* istanbul ignore next @preserve */ 0;\n }\n\n // update relatedTarget and dispatch event\n showTabEvent.relatedTarget = tab as HTMLElement | undefined;\n hiddenTabEvent.relatedTarget = element as HTMLElement;\n dispatchEvent(element, showTabEvent);\n\n // istanbul ignore if @preserve\n if (showTabEvent.defaultPrevented) return;\n // istanbul ignore else @preserve\n if (nextContent) addClass(nextContent, activeClass);\n // istanbul ignore else @preserve\n if (content) removeClass(content, activeClass);\n\n // istanbul ignore else @preserve\n if (tabContent && nextContent && hasClass(nextContent, fadeClass)) {\n const nextHeight = nextContent.scrollHeight;\n tabPrivate.set(element, {\n currentHeight,\n nextHeight,\n tab: null,\n content: null,\n });\n\n addClass(tabContent, collapsingClass);\n tabContent.style.height = `${currentHeight}px`;\n reflow(tabContent);\n [content, nextContent].forEach((c) => {\n // istanbul ignore else @preserve\n if (c) removeClass(c, \"overflow-hidden\");\n });\n }\n\n if (nextContent && nextContent && hasClass(nextContent, fadeClass)) {\n setTimeout(() => {\n addClass(nextContent, showClass);\n emulateTransitionEnd(nextContent, () => {\n triggerTabShow(self);\n });\n }, 1);\n } else {\n // istanbul ignore else @preserve\n if (nextContent) addClass(nextContent, showClass);\n triggerTabShow(self);\n }\n\n // istanbul ignore else @preserve\n if (tab) dispatchEvent(tab, hiddenTabEvent);\n};\n\n/**\n * Returns the current active tab and its target content.\n *\n * @param self the `Tab` instance\n * @returns the query result\n */\nconst getActiveTab = (\n self: Tab,\n): { tab: HTMLElement | null; content: HTMLElement | null } => {\n const { nav } = self;\n // istanbul ignore next @preserve\n if (!isHTMLElement(nav)) {\n return { tab: null, content: null };\n }\n\n const activeTabs = getElementsByClassName(\n activeClass,\n nav,\n );\n let tab: HTMLElement | null = null;\n // istanbul ignore else @preserve\n if (\n activeTabs.length === 1 &&\n !dropdownClasses.some((c) =>\n hasClass(activeTabs[0].parentElement as HTMLElement, c)\n )\n ) {\n [tab] = activeTabs;\n } else if (activeTabs.length > 1) {\n tab = activeTabs[activeTabs.length - 1];\n }\n const content = isHTMLElement(tab) ? getTargetElement(tab) : null;\n return { tab, content };\n};\n\n/**\n * Returns a parent dropdown.\n *\n * @param element the `Tab` element\n * @returns the parent dropdown\n */\nconst getParentDropdown = (element?: HTMLElement) => {\n // istanbul ignore next @preserve\n if (!isHTMLElement(element)) return null;\n const dropdown = closest(element, `.${dropdownClasses.join(\",.\")}`);\n return dropdown\n ? querySelector(`.${dropdownClasses[0]}-toggle`, dropdown)\n : null;\n};\n\n// TAB EVENT HANDLER\n// =================\n/**\n * Handles the `click` event listener.\n *\n * @param e the `Event` object\n */\nconst tabClickHandler = (e: MouseEvent) => {\n const element = closest(e.target, tabSelector);\n const self = element && getTabInstance(element);\n\n // istanbul ignore if @preserve\n if (!self) return;\n e.preventDefault();\n self.show();\n};\n\n// TAB DEFINITION\n// ==============\n/** Creates a new `Tab` instance. */\nexport default class Tab extends BaseComponent {\n static selector = tabSelector;\n static init = tabInitCallback;\n static getInstance = getTabInstance;\n declare element: HTMLElement;\n declare nav: HTMLElement | null;\n declare content: HTMLElement | null;\n declare tabContent: HTMLElement | null;\n declare nextContent: HTMLElement | null;\n declare dropdown: HTMLElement | null;\n\n /** @param target the target element */\n constructor(target: Element | string) {\n super(target);\n\n // initialization element\n const { element } = this;\n const content = getTargetElement(element);\n\n // no point initializing a tab without a corresponding content\n // istanbul ignore else @preserve\n if (!content) return;\n\n const nav = closest(element, \".nav\");\n const container = closest(\n content as HTMLElement,\n \".tab-content\",\n );\n\n this.nav = nav;\n this.content = content;\n this.tabContent = container;\n\n // event targets\n this.dropdown = getParentDropdown(element);\n\n // show first Tab instance of none is shown\n // suggested on #432\n const { tab } = getActiveTab(this);\n if (nav && !tab) {\n const firstTab = querySelector(tabSelector, nav);\n const firstTabContent = firstTab && getTargetElement(firstTab);\n\n // istanbul ignore else @preserve\n if (firstTabContent) {\n addClass(firstTab, activeClass);\n addClass(firstTabContent, showClass);\n addClass(firstTabContent, activeClass);\n setAttribute(element, ariaSelected, \"true\");\n }\n }\n\n // add event listener\n this._toggleEventListeners(true);\n }\n\n /**\n * Returns component name string.\n */\n get name() {\n return tabComponent;\n }\n\n // TAB PUBLIC METHODS\n // ==================\n /** Shows the tab to the user. */\n show() {\n const { element, content: nextContent, nav, dropdown } = this;\n\n // istanbul ignore else @preserve\n if ((nav && Timer.get(nav)) || hasClass(element, activeClass)) return;\n const { tab, content } = getActiveTab(this);\n\n // istanbul ignore else @preserve\n if (nav && tab) {\n tabPrivate.set(nav, { tab, content, currentHeight: 0, nextHeight: 0 });\n }\n\n // update relatedTarget and dispatch\n hideTabEvent.relatedTarget = element as HTMLElement;\n\n // istanbul ignore if @preserve\n if (!isHTMLElement(tab)) return;\n\n dispatchEvent(tab, hideTabEvent);\n\n // istanbul ignore else @preserve\n if (hideTabEvent.defaultPrevented) return;\n\n addClass(element, activeClass);\n setAttribute(element, ariaSelected, \"true\");\n\n const activeDropdown = isHTMLElement(tab) && getParentDropdown(tab);\n if (activeDropdown && hasClass(activeDropdown, activeClass)) {\n removeClass(activeDropdown, activeClass);\n }\n\n // istanbul ignore else @preserve\n if (nav) {\n const toggleTab = () => {\n // istanbul ignore else @preserve\n if (tab) {\n removeClass(tab, activeClass);\n setAttribute(tab, ariaSelected, \"false\");\n }\n if (dropdown && !hasClass(dropdown, activeClass)) {\n addClass(dropdown, activeClass);\n }\n };\n\n if (\n content &&\n (hasClass(content, fadeClass) ||\n (nextContent && hasClass(nextContent, fadeClass)))\n ) {\n Timer.set(nav, toggleTab, 1);\n } else toggleTab();\n }\n\n // istanbul ignore else @preserve\n if (content) {\n removeClass(content, showClass);\n if (hasClass(content, fadeClass)) {\n emulateTransitionEnd(content, () => triggerTabHide(this));\n } else {\n triggerTabHide(this);\n }\n }\n }\n\n /**\n * Toggles on/off the `click` event listener.\n *\n * @param add when `true`, event listener is added\n */\n _toggleEventListeners = (add?: boolean) => {\n const action = add ? addListener : removeListener;\n action(this.element, mouseclickEvent, tabClickHandler);\n };\n\n /** Removes the `Tab` component from the target element. */\n dispose() {\n this._toggleEventListeners();\n super.dispose();\n }\n}\n","/** @type {string} */\nconst toastString = \"toast\";\nexport default toastString;\n","/** @type {string} */\nconst toastComponent = \"Toast\";\nexport default toastComponent;\n","/* Native JavaScript for Bootstrap 5 | Toast\n-------------------------------------------- */\nimport {\n addClass,\n createCustomEvent,\n dispatchEvent,\n emulateTransitionEnd,\n focusinEvent,\n focusoutEvent,\n getDocument,\n getInstance,\n hasClass,\n mouseclickEvent,\n mouseenterEvent,\n MouseEvent,\n mouseleaveEvent,\n querySelector,\n querySelectorAll,\n reflow,\n removeClass,\n Timer,\n} from \"@thednp/shorty\";\n\nimport { addListener, removeListener } from \"@thednp/event-listener\";\n\nimport fadeClass from \"~/strings/fadeClass\";\nimport showClass from \"~/strings/showClass\";\nimport dataBsDismiss from \"~/strings/dataBsDismiss\";\nimport dataBsToggle from \"~/strings/dataBsToggle\";\nimport toastString from \"~/strings/toastString\";\nimport toastComponent from \"~/strings/toastComponent\";\nimport getTargetElement from \"~/util/getTargetElement\";\nimport isDisabled from \"~/util/isDisabled\";\nimport BaseComponent from \"./base-component\";\nimport { ToastEvent, ToastOptions } from \"~/interface/toast\";\n\n// TOAST PRIVATE GC\n// ================\nconst toastSelector = `.${toastString}`;\nconst toastDismissSelector = `[${dataBsDismiss}=\"${toastString}\"]`;\nconst toastToggleSelector = `[${dataBsToggle}=\"${toastString}\"]`;\nconst showingClass = \"showing\";\n/** @deprecated */\nconst hideClass = \"hide\";\n\nconst toastDefaults = {\n animation: true,\n autohide: true,\n delay: 5000,\n};\n\n/**\n * Static method which returns an existing `Toast` instance associated\n * to a target `Element`.\n */\nconst getToastInstance = (element: Element) =>\n getInstance(element, toastComponent);\n\n/**\n * A `Toast` initialization callback.\n */\nconst toastInitCallback = (element: Element) => new Toast(element);\n\n// TOAST CUSTOM EVENTS\n// ===================\nconst showToastEvent = createCustomEvent, ToastEvent>(\n `show.bs.${toastString}`,\n);\nconst shownToastEvent = createCustomEvent, ToastEvent>(\n `shown.bs.${toastString}`,\n);\nconst hideToastEvent = createCustomEvent, ToastEvent>(\n `hide.bs.${toastString}`,\n);\nconst hiddenToastEvent = createCustomEvent, ToastEvent>(\n `hidden.bs.${toastString}`,\n);\n\n// TOAST PRIVATE METHODS\n// =====================\n/**\n * Executes after the toast is shown to the user.\n *\n * @param self the `Toast` instance\n */\nconst showToastComplete = (self: Toast) => {\n const { element, options } = self;\n removeClass(element, showingClass);\n Timer.clear(element, showingClass);\n\n dispatchEvent(element, shownToastEvent);\n // istanbul ignore else @preserve\n if (options.autohide) {\n Timer.set(element, () => self.hide(), options.delay, toastString);\n }\n};\n\n/**\n * Executes after the toast is hidden to the user.\n *\n * @param self the `Toast` instance\n */\nconst hideToastComplete = (self: Toast) => {\n const { element } = self;\n removeClass(element, showingClass);\n removeClass(element, showClass);\n addClass(element, hideClass); // B/C\n Timer.clear(element, toastString);\n dispatchEvent(element, hiddenToastEvent);\n};\n\n/**\n * Executes before hiding the toast.\n *\n * @param self the `Toast` instance\n */\nconst hideToast = (self: Toast) => {\n const { element, options } = self;\n addClass(element, showingClass);\n\n if (options.animation) {\n reflow(element as HTMLElement);\n emulateTransitionEnd(element, () => hideToastComplete(self));\n } else {\n hideToastComplete(self);\n }\n};\n\n/**\n * Executes before showing the toast.\n *\n * @param self the `Toast` instance\n */\nconst showToast = (self: Toast) => {\n const { element, options } = self;\n Timer.set(\n element,\n () => {\n removeClass(element, hideClass); // B/C\n reflow(element as HTMLElement);\n addClass(element, showClass);\n addClass(element, showingClass);\n\n if (options.animation) {\n emulateTransitionEnd(element, () => showToastComplete(self));\n } else {\n showToastComplete(self);\n }\n },\n 17,\n showingClass,\n );\n};\n\n// TOAST EVENT HANDLERS\n// ====================\n/**\n * Handles the `click` event listener for toast.\n *\n * @param e the `Event` object\n */\nfunction toastClickHandler(this: HTMLElement, e: Event) {\n const element = getTargetElement(this);\n const self = element && getToastInstance(element);\n\n // istanbul ignore if @preserve\n if (isDisabled(this)) return;\n // istanbul ignore if @preserve\n if (!self) return;\n // istanbul ignore else @preserve\n if (this.tagName === \"A\") e.preventDefault();\n self.relatedTarget = this;\n self.show();\n}\n\n/**\n * Executes when user interacts with the toast without closing it,\n * usually by hovering or focusing it.\n *\n * @param e the `Toast` instance\n */\nconst interactiveToastHandler = (e: MouseEvent) => {\n const element = e.target;\n const self = getToastInstance(element);\n const { type, relatedTarget } = e;\n\n // istanbul ignore if @preserve: a solid filter is required\n if (\n !self || element === relatedTarget ||\n element.contains(relatedTarget as Node)\n ) return;\n\n if ([mouseenterEvent, focusinEvent].includes(type)) {\n Timer.clear(element, toastString);\n } else {\n Timer.set(element, () => self.hide(), self.options.delay, toastString);\n }\n};\n\n// TOAST DEFINITION\n// ================\n/** Creates a new `Toast` instance. */\nexport default class Toast extends BaseComponent {\n static selector = toastSelector;\n static init = toastInitCallback;\n static getInstance = getToastInstance;\n declare element: HTMLElement;\n declare options: ToastOptions;\n declare dismiss: HTMLElement | null;\n declare triggers: HTMLElement[];\n declare relatedTarget: HTMLElement | null;\n\n /**\n * @param target the target `.toast` element\n * @param config the instance options\n */\n constructor(target: Element | string, config?: Partial) {\n super(target, config);\n const { element, options } = this;\n\n // set fadeClass, the options.animation will override the markup\n if (options.animation && !hasClass(element, fadeClass)) {\n addClass(element, fadeClass);\n } else if (!options.animation && hasClass(element, fadeClass)) {\n removeClass(element, fadeClass);\n }\n\n // dismiss button\n this.dismiss = querySelector(toastDismissSelector, element);\n\n // toast can have multiple triggering elements\n this.triggers = [\n ...querySelectorAll(\n toastToggleSelector,\n getDocument(element),\n ),\n ].filter(\n (btn) => getTargetElement(btn) === element,\n );\n\n // add event listener\n this._toggleEventListeners(true);\n }\n /**\n * Returns component name string.\n */\n get name() {\n return toastComponent;\n }\n /**\n * Returns component default options.\n */\n get defaults() {\n return toastDefaults;\n }\n /**\n * Returns *true* when toast is visible.\n */\n get isShown() {\n return hasClass(this.element, showClass);\n }\n\n // TOAST PUBLIC METHODS\n // ====================\n /** Shows the toast. */\n show = () => {\n const { element, isShown } = this;\n\n // istanbul ignore if @preserve\n if (!element || isShown) return;\n\n dispatchEvent(element, showToastEvent);\n if (!showToastEvent.defaultPrevented) showToast(this);\n };\n\n /** Hides the toast. */\n hide = () => {\n const { element, isShown } = this;\n\n // istanbul ignore if @preserve\n if (!element || !isShown) return;\n\n dispatchEvent(element, hideToastEvent);\n if (!hideToastEvent.defaultPrevented) hideToast(this);\n };\n\n /**\n * Toggles on/off the `click` event listener.\n *\n * @param add when `true`, it will add the listener\n */\n _toggleEventListeners = (add?: boolean) => {\n const action = add ? addListener : removeListener;\n const { element, triggers, dismiss, options, hide } = this;\n\n // istanbul ignore else @preserve\n if (dismiss) {\n action(dismiss, mouseclickEvent, hide);\n }\n\n // istanbul ignore else @preserve\n if (options.autohide) {\n [focusinEvent, focusoutEvent, mouseenterEvent, mouseleaveEvent].forEach(\n (e) => action(element, e, interactiveToastHandler),\n );\n }\n // istanbul ignore else @preserve\n if (triggers.length) {\n triggers.forEach((btn) => {\n action(btn, mouseclickEvent, toastClickHandler);\n });\n }\n };\n\n /** Removes the `Toast` component from the target element. */\n dispose() {\n const { element, isShown } = this;\n this._toggleEventListeners();\n Timer.clear(element, toastString);\n\n if (isShown) removeClass(element, showClass);\n\n super.dispose();\n }\n}\n","import { Data, getElementsByTagName, matches } from \"@thednp/shorty\";\n\nimport { addListener } from \"@thednp/event-listener\";\n\nimport Alert from \"../components/alert\";\nimport Button from \"../components/button\";\nimport Carousel from \"../components/carousel\";\nimport Collapse from \"../components/collapse\";\nimport Dropdown from \"../components/dropdown\";\nimport Modal from \"../components/modal\";\nimport Offcanvas from \"../components/offcanvas\";\nimport Popover from \"../components/popover\";\nimport ScrollSpy from \"../components/scrollspy\";\nimport Tab from \"../components/tab\";\nimport Toast from \"../components/toast\";\nimport Tooltip from \"../components/tooltip\";\n\nconst componentsList = new Map<\n string,\n | typeof Alert\n | typeof Button\n | typeof Carousel\n | typeof Collapse\n | typeof Dropdown\n | typeof Modal\n | typeof Offcanvas\n | typeof Popover\n | typeof ScrollSpy\n | typeof Tab\n | typeof Toast\n | typeof Tooltip\n>();\n\ntype Component =\n | Alert\n | Button\n | Carousel\n | Collapse\n | Dropdown\n | Modal\n | Offcanvas\n | Popover\n | ScrollSpy\n | Tab\n | Toast\n | Tooltip;\n\n[\n Alert,\n Button,\n Carousel,\n Collapse,\n Dropdown,\n Modal,\n Offcanvas,\n Popover,\n ScrollSpy,\n Tab,\n Toast,\n Tooltip,\n].forEach((c) => componentsList.set(c.prototype.name, c));\n\n/**\n * Initialize all matched `Element`s for one component.\n *\n * @param callback\n * @param collection\n */\nconst initComponentDataAPI = (\n callback: (el: Element) => Component,\n collection: HTMLCollectionOf | Element[],\n) => {\n [...collection].forEach((x) => callback(x));\n};\n\n/**\n * Remove one component from a target container element or all in the page.\n *\n * @param component the component name\n * @param context parent `Node`\n */\nconst removeComponentDataAPI = (component: string, context: ParentNode) => {\n const compData = Data.getAllFor(component) as Map;\n\n if (compData) {\n [...compData].forEach(([element, instance]) => {\n if (context.contains(element)) {\n (instance as T & { dispose: () => void }).dispose();\n }\n });\n }\n};\n\n/**\n * Initialize all BSN components for a target container.\n *\n * @param context parent `Node`\n */\nexport const initCallback = (context?: ParentNode) => {\n const lookUp = context && context.nodeName ? context : document;\n const elemCollection = [...getElementsByTagName(\"*\", lookUp)];\n\n componentsList.forEach((cs) => {\n const { init, selector } = cs;\n initComponentDataAPI(\n init,\n elemCollection.filter((item) => matches(item, selector)),\n );\n });\n};\n\n/**\n * Remove all BSN components for a target container.\n *\n * @param context parent `Node`\n */\nexport const removeDataAPI = (context?: ParentNode) => {\n const lookUp = context && context.nodeName ? context : document;\n\n componentsList.forEach((comp) => {\n removeComponentDataAPI(comp.prototype.name, lookUp);\n });\n};\n\n// Bulk initialize all components\nif (document.body) initCallback();\nelse {\n addListener(document, \"DOMContentLoaded\", () => initCallback(), {\n once: true,\n });\n}\n"],"names":["Me","De","$","ze","Ie","Pe","st","rt","ct","lt","ft","gt","vt","Et","ht","yt","Dt","Ot","xt","Wt","Re","qt","en","nn","on","sn","fn","_t","$t","M","W","On","t","e","Yt","R","n","o","s","Q","j","ee","Wn","Qn","Kn","qn","Gn","v","u","i","E","L","Xn","I","N","K","q","d","C","ne","G","f","ce","ae","no","r","a","l","ro","P","S","ao","p","c","g","A","uo","po","go","mo","vo","O","ie","m","bo","Eo","ue","x","le","de","yo","b","y","wo","w","So","pe","k","ge","me","ve","he","No","B","V","h","ye","we","To","Lo","Fo","Bo","Se","Ho","ke","Wo","Ro","fadeClass","showClass","dataBsDismiss","alertString","alertComponent","isDisabled","target","hasClass","getAttribute","Version","version","BaseComponent","config","element","isElement","isString","querySelector","prevInstance","Data","ObjectKeys","normalizeOptions","prop","alertSelector","alertDismissSelector","getAlertInstance","getInstance","alertInitCallback","Alert","closeAlertEvent","createCustomEvent","closedAlertEvent","alertTransitionEnd","self","dispatchEvent","dismiss","removeClass","emulateTransitionEnd","add","action","addListener","removeListener","close","mouseclickEvent","activeClass","dataBsToggle","buttonString","buttonComponent","buttonSelector","getButtonInstance","buttonInitCallback","Button","setAttribute","ariaPressed","isActive","addClass","dataBsTarget","carouselString","carouselComponent","dataBsParent","dataBsContainer","getTargetElement","targetAttr","doc","getDocument","att","attValue","closest","carouselSelector","carouselItem","dataBsSlideTo","dataBsSlide","pausedClass","carouselDefaults","getCarouselInstance","carouselInitCallback","Carousel","startX","currentX","endX","carouselSlideEvent","carouselSlidEvent","carouselTransitionEndHandler","index","direction","slides","options","activeItem","getActiveIndex","orientation","directionClass","Timer","carouselPauseHandler","carouselResumeHandler","carouselIndicatorHandler","newIndex","carouselControlsHandler","carouselKeyHandler","code","querySelectorAll","isElementInScrollRange","RTL","isRTL","keyArrowRight","keyArrowLeft","carouselDragHandler","carouselPointerDownHandler","controls","indicators","el","toggleCarouselTouchHandlers","carouselPointerMoveHandler","carouselPointerUpHandler","activateCarouselIndicator","pointermoveEvent","passiveHandler","pointerupEvent","getElementsByClassName","activeIndex","transitionItem","matches","ar","isPaused","idx","next","eventProperties","ObjectAssign","getElementTransitionDuration","reflow","touch","pause","interval","keyboard","mouseenterEvent","mouseleaveEvent","pointerdownEvent","touchstartEvent","dragstartEvent","arrow","indicator","keydownEvent","isAnimating","clone","collapsingClass","collapseString","collapseComponent","collapseSelector","collapseToggleSelector","collapseDefaults","getCollapseInstance","collapseInitCallback","Collapse","showCollapseEvent","shownCollapseEvent","hideCollapseEvent","hiddenCollapseEvent","expandCollapse","parent","triggers","noop","setElementStyle","btn","ariaExpanded","collapseContent","collapseClickHandler","trigger","isHTMLElement","activeCollapse","activeCollapseInstance","_","dropdownMenuClasses","dropdownComponent","dropdownMenuClass","isEmptyAnchor","parentAnchor","hasAttribute","dropdownString","dropupString","dropstartString","dropendString","dropdownClasses","dropdownSelector","getDropdownInstance","dropdownInitCallback","Dropdown","dropdownMenuEndClass","verticalClass","horizontalClass","menuFocusTags","dropdownDefaults","showDropdownEvent","shownDropdownEvent","hideDropdownEvent","hiddenDropdownEvent","updatedDropdownEvent","styleDropdown","menu","parentElement","offset","getElementStyle","menuEnd","style","positionClass","dropdownMargin","dropdownPosition","menuWidth","menuHeight","clientWidth","clientHeight","getDocumentElement","targetLeft","targetTop","targetWidth","targetHeight","getBoundingClientRect","leftFullExceed","rightFullExceed","bottomExceed","bottomFullExceed","topExceed","leftExceed","rightExceed","posAjust","margins","getMenuItems","firstElementChild","toggleDropdownDismiss","dropdownDismissHandler","focusEvent","dropdownPreventScroll","keyupEvent","dropdownKeyHandler","getCurrentOpenDropdown","currentParent","type","isForm","mousedownEvent","dropdownClickHandler","keyArrowDown","keyArrowUp","activeElement","open","menuItems","focus","keyEscape","PositionObserver","currentElement","currentInstance","modalString","modalComponent","offcanvasComponent","fixedTopClass","fixedBottomClass","stickyTopClass","positionStickyClass","getFixedItems","resetScrollbar","bd","getDocumentBody","fixedItems","fixed","measureScrollbar","innerWidth","getWindow","setScrollbar","overflow","bodyPad","sbWidth","itemPadValue","itemMValue","offcanvasString","popupContainer","createElement","appendPopup","customContainer","containerIsBody","isNode","lookup","BODY","removePopup","hasPopup","backdropString","modalBackdropClass","offcanvasBackdropClass","modalActiveSelector","offcanvasActiveSelector","overlay","getCurrentOpen","toggleOverlayType","isModal","targetClass","appendOverlay","hasFade","showOverlay","hideOverlay","removeOverlay","isVisible","modalSelector","modalToggleSelector","modalDismissSelector","modalStaticClass","modalDefaults","getModalInstance","modalInitCallback","Modal","showModalEvent","shownModalEvent","hideModalEvent","hiddenModalEvent","setModalScrollbar","scrollbarWidth","scrollHeight","modalHeight","modalScrollHeight","modalOverflow","padStyle","toggleModalDismiss","modalDismissHandler","modalKeyHandler","afterModalHide","relatedTarget","focusElement","toggleFocusTrap","afterModalShow","beforeModalShow","removeAttribute","ariaHidden","ariaModal","beforeModalHide","modalClickHandler","currentTarget","isStatic","modalDialog","backdrop","selectedText","targetInsideDialog","staticTransitionEnd","duration","overlayDelay","currentOpen","that","callback","offcanvasSelector","offcanvasToggleSelector","offcanvasDismissSelector","offcanvasTogglingClass","offcanvasDefaults","getOffcanvasInstance","offcanvasInitCallback","Offcanvas","showOffcanvasEvent","shownOffcanvasEvent","hideOffcanvasEvent","hiddenOffcanvasEvent","setOffCanvasScrollbar","toggleOffCanvasDismiss","offcanvasKeyDismissHandler","offcanvasDismissHandler","beforeOffcanvasShow","showOffcanvasComplete","beforeOffcanvasHide","hideOffcanvasComplete","offcanvasTriggerHandler","offCanvasDismiss","selection","visibleTrigger","isOpen","popoverString","popoverComponent","tooltipString","getTipTemplate","tipType","isTooltip","bodyClass","header","body","tipClassPositions","styleTip","tipClasses","tooltip","container","offsetParent","scrollLeft","scrollTop","getNodeScroll","tipWidth","tipHeight","htmlcw","htmlch","htmlow","placement","parentCWidth","parentOWidth","fixedParent","leftBoundry","rightBoundry","observerEntry","elemWidth","elemHeight","elemRectLeft","elemRectRight","elemRectTop","elemOffsetLeft","elemOffsetTop","getRectRelativeToOffsetParent","topPosition","bottomPosition","leftPosition","rightPosition","arrowTop","arrowLeft","arrowRight","arrowWidth","arrowHeight","arrowAdjust","horizontals","verticals","updatedTooltipEvent","toLowerCase","tooltipDefaults","dataOriginalTitle","tooltipComponent","setHtml","content","sanitizeFn","dirty","isFunction","tempDocument","isNodeList","isArray","createTip","id","title","template","animation","customClass","dismissible","btnClose","tipString","tipPositions","titleParts","contentParts","placementClass","tooltipTemplate","htmlMarkup","tooltipHeader","tooltipBody","tempTitle","tempContent","tempBtn","getElementContainer","majorBlockTags","containers","parentNode","getParentNode","isShadowRoot","isTableElement","tooltipSelector","titleAttr","getTooltipInstance","tooltipInitCallback","Tooltip","removeTooltip","ariaDescribedBy","hasTip","disposeTooltipComplete","toggleTooltipTitle","toggleTooltipAction","tooltipShownAction","shownTooltipEvent","tooltipHiddenAction","hiddenTooltipEvent","toggleTooltipOpenHandlers","parentModal","parentOffcanvas","titleAtt","tipComponent","elem","getUID","position","outTimer","showTooltipEvent","delay","hideTooltipEvent","enabled","tr","mousehoverEvent","focusinEvent","focusoutEvent","isApple","popoverSelector","popoverDefaults","getPopoverInstance","popoverInitCallback","Popover","scrollspyString","scrollspyComponent","scrollspySelector","scrollSpyAnchorSelector","scrollspyDefaults","getScrollSpyInstance","scrollspyInitCallback","ScrollSpy","activateScrollSpy","updateSpyTargets","_itemsLength","_observables","links","getElementsByTagName","link","hash","targetItem","clear","item","activate","parentItem","parentLink","getOffset","scrollTarget","spyTarget","_activeItem","entries","newActiveItem","firstOffset","offsetTop","nextTarget","nextOffsetTop","getElementById","_observer","_scrollTo","tabString","tabComponent","tabSelector","getTabInstance","tabInitCallback","Tab","showTabEvent","shownTabEvent","hideTabEvent","hiddenTabEvent","tabPrivate","triggerTabEnd","tabContent","nav","triggerTabShow","nextContent","tab","currentHeight","nextHeight","triggerTabHide","getActiveTab","activeTabs","getParentDropdown","dropdown","tabClickHandler","firstTab","firstTabContent","ariaSelected","activeDropdown","toggleTab","toastString","toastComponent","toastSelector","toastDismissSelector","toastToggleSelector","showingClass","hideClass","toastDefaults","getToastInstance","toastInitCallback","Toast","showToastEvent","shownToastEvent","hideToastEvent","hiddenToastEvent","showToastComplete","hideToastComplete","hideToast","showToast","toastClickHandler","interactiveToastHandler","isShown","hide","componentsList","initComponentDataAPI","collection","removeComponentDataAPI","component","context","compData","instance","initCallback","lookUp","elemCollection","cs","init","selector","removeDataAPI","comp"],"mappings":"gFAAK,MAA6DA,GAAK,mBAAoBC,GAAK,gBAAuCC,GAAI,cAA0DC,GAAK,aAAcC,GAAK,eAAgBC,GAAK,gBAAuPC,GAAK,QAASC,GAAK,UAAWC,GAAK,WAA0EC,GAAK,UAA4BC,GAAK,QAAsBC,EAAK,QAA0BC,GAAK,YAA6BC,GAAK,QAASC,GAAK,aAAcC,GAAK,aAAmKC,GAAK,cAAoCC,GAAK,cAAeC,GAAK,YAAsJC,GAAK,aAmDzmCC,GAAK,YAUuBC,GAAK,oFAoBlCC,GAAK,YAAaC,GAAK,UAAWC,GAAK,YAAaC,GAAK,aAAkHC,GAAK,SAAyMC,GAAK,qBAAsBC,GAAK,kBAAmBC,GAAI,gBAAiBC,GAAI,qBA+BjdC,GAAK,IAAM,CACZ,MAAMC,EAAI,qBACV,OAAO,WAAW,eAAe,OAAO,KACrCC,GAAMD,EAAE,KAAKC,EAAE,KAAK,CACtB,GAAID,EAAE,KACL,WAAW,SACZ,GAAI,EACP,EAA2PE,GAAK,IAAM,CACtQ,EAAGC,GAAI,CAACH,EAAGC,EAAGG,EAAGC,IAAM,CACrB,MAAMC,EAAID,GAAK,GACfL,EAAE,iBACAC,EACAG,EACAE,CACD,CACH,EAAGC,GAAI,CAACP,EAAGC,EAAGG,EAA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,IAAwB,CACtE,MAAAC,EAAW1jB,GAAK,UAAUwjB,CAAS,EAErCE,GACD,CAAA,GAAGA,CAAQ,EAAE,QAAQ,CAAC,CAAC/jB,EAASgkB,CAAQ,IAAM,CACzCF,EAAQ,SAAS9jB,CAAO,GACzBgkB,EAAyC,QAAQ,CACpD,CACD,CAEL,EAGaC,GAAgBH,GAAyB,CACpD,MAAMI,EAASJ,GAAWA,EAAQ,SAAWA,EAAU,SACjDK,EAAiB,CAAC,GAAGrF,GAA8B,IAAKoF,CAAM,CAAC,EAEtDT,GAAA,QAASW,GAAO,CACvB,KAAA,CAAE,KAAAC,EAAM,SAAAC,CAAA,EAAaF,EAC3BV,GACEW,EACAF,EAAe,OAAQhF,GAASzY,GAAQyY,EAAMmF,CAAQ,CAAC,CACzD,CAAA,CACD,CACH,EAGaC,GAAiBT,GAAyB,CACrD,MAAMI,EAASJ,GAAWA,EAAQ,SAAWA,EAAU,SAExCL,GAAA,QAASe,GAAS,CACRZ,GAAAY,EAAK,UAAU,KAAMN,CAAM,CAAA,CACnD,CACH,EAGI,SAAS,KAAmBD,GAAA,EAE9BviB,EAAY,SAAU,mBAAoB,IAAMuiB,GAAA,EAAgB,CAC9D,KAAM,EAAA,CACP","x_google_ignoreList":[0,1,27]} \ No newline at end of file +{"version":3,"file":"bootstrap-native.cjs","sources":["../node_modules/.pnpm/@thednp+shorty@2.0.9/node_modules/@thednp/shorty/dist/shorty.mjs","../node_modules/.pnpm/@thednp+event-listener@2.0.8/node_modules/@thednp/event-listener/dist/event-listener.mjs","../src/strings/fadeClass.ts","../src/strings/showClass.ts","../src/strings/dataBsDismiss.ts","../src/strings/alertString.ts","../src/strings/alertComponent.ts","../src/util/isDisabled.ts","../src/version.ts","../src/components/base-component.ts","../src/components/alert.ts","../src/strings/activeClass.ts","../src/strings/dataBsToggle.ts","../src/strings/buttonString.ts","../src/strings/buttonComponent.ts","../src/components/button.ts","../src/strings/dataBsTarget.ts","../src/strings/carouselString.ts","../src/strings/carouselComponent.ts","../src/strings/dataBsParent.ts","../src/strings/dataBsContainer.ts","../src/util/getTargetElement.ts","../src/components/carousel.ts","../src/strings/collapsingClass.ts","../src/strings/collapseString.ts","../src/strings/collapseComponent.ts","../src/components/collapse.ts","../node_modules/.pnpm/@thednp+position-observer@1.0.4/node_modules/@thednp/position-observer/dist/index.mjs","../src/strings/dropdownClasses.ts","../src/strings/dropdownComponent.ts","../src/strings/dropdownMenuClass.ts","../src/util/isEmptyAnchor.ts","../src/components/dropdown.ts","../src/strings/modalString.ts","../src/strings/modalComponent.ts","../src/strings/offcanvasComponent.ts","../src/strings/fixedTopClass.ts","../src/strings/fixedBottomClass.ts","../src/strings/stickyTopClass.ts","../src/strings/positionStickyClass.ts","../src/util/scrollbar.ts","../src/strings/offcanvasString.ts","../src/util/popupContainer.ts","../src/util/backdrop.ts","../src/util/isVisible.ts","../src/components/modal.ts","../src/components/offcanvas.ts","../src/strings/popoverString.ts","../src/strings/popoverComponent.ts","../src/strings/tooltipString.ts","../src/util/getTipTemplate.ts","../src/util/tipClassPositions.ts","../src/util/styleTip.ts","../src/util/tooltipDefaults.ts","../src/strings/dataOriginalTitle.ts","../src/strings/tooltipComponent.ts","../src/util/setHtml.ts","../src/util/createTip.ts","../src/util/getElementContainer.ts","../src/components/tooltip.ts","../src/components/popover.ts","../src/strings/scrollspyString.ts","../src/strings/scrollspyComponent.ts","../src/components/scrollspy.ts","../src/strings/tabString.ts","../src/strings/tabComponent.ts","../src/components/tab.ts","../src/strings/toastString.ts","../src/strings/toastComponent.ts","../src/components/toast.ts","../src/util/init.ts"],"sourcesContent":["const Ne = \"2.0.9\", Ce = \"aria-checked\", Te = \"aria-description\", Me = \"aria-describedby\", De = \"aria-expanded\", Le = \"aria-haspopup\", $ = \"aria-hidden\", Oe = \"aria-label\", xe = \"aria-labelledby\", ze = \"aria-modal\", Ie = \"aria-pressed\", Pe = \"aria-selected\", Fe = \"aria-valuemin\", Be = \"aria-valuemax\", Ve = \"aria-valuenow\", He = \"aria-valuetext\", J = \"abort\", X = \"beforeunload\", Y = \"blur\", tt = \"change\", et = \"contextmenu\", H = \"DOMContentLoaded\", nt = \"DOMMouseScroll\", ot = \"error\", st = \"focus\", rt = \"focusin\", ct = \"focusout\", at = \"gesturechange\", it = \"gestureend\", ut = \"gesturestart\", lt = \"keydown\", dt = \"keypress\", ft = \"keyup\", pt = \"load\", gt = \"click\", mt = \"dblclick\", vt = \"mousedown\", bt = \"mouseup\", Et = \"hover\", ht = \"mouseenter\", yt = \"mouseleave\", wt = \"mousein\", At = \"mouseout\", St = \"mouseover\", kt = \"mousemove\", Nt = \"mousewheel\", Ct = \"move\", Tt = \"orientationchange\", Mt = \"pointercancel\", Dt = \"pointerdown\", Lt = \"pointerleave\", Ot = \"pointermove\", xt = \"pointerup\", zt = \"readystatechange\", It = \"reset\", Pt = \"resize\", Ft = \"select\", Bt = \"selectend\", Vt = \"selectstart\", Ht = \"scroll\", Ut = \"submit\", Wt = \"touchstart\", Rt = \"touchmove\", Qt = \"touchcancel\", jt = \"touchend\", Kt = \"unload\", Ue = {\n DOMContentLoaded: H,\n DOMMouseScroll: nt,\n abort: J,\n beforeunload: X,\n blur: Y,\n change: tt,\n click: gt,\n contextmenu: et,\n dblclick: mt,\n error: ot,\n focus: st,\n focusin: rt,\n focusout: ct,\n gesturechange: at,\n gestureend: it,\n gesturestart: ut,\n hover: Et,\n keydown: lt,\n keypress: dt,\n keyup: ft,\n load: pt,\n mousedown: vt,\n mousemove: kt,\n mousein: wt,\n mouseout: At,\n mouseenter: ht,\n mouseleave: yt,\n mouseover: St,\n mouseup: bt,\n mousewheel: Nt,\n move: Ct,\n orientationchange: Tt,\n pointercancel: Mt,\n pointerdown: Dt,\n pointerleave: Lt,\n pointermove: Ot,\n pointerup: xt,\n readystatechange: zt,\n reset: It,\n resize: Pt,\n scroll: Ht,\n select: Ft,\n selectend: Bt,\n selectstart: Vt,\n submit: Ut,\n touchcancel: Qt,\n touchend: jt,\n touchmove: Rt,\n touchstart: Wt,\n unload: Kt\n}, We = \"drag\", Re = \"dragstart\", Qe = \"dragenter\", je = \"dragleave\", Ke = \"dragover\", qe = \"dragend\", Ge = \"loadstart\", Ze = {\n start: \"mousedown\",\n end: \"mouseup\",\n move: \"mousemove\",\n cancel: \"mouseleave\"\n}, _e = { down: \"mousedown\", up: \"mouseup\" }, $e = \"onmouseleave\" in document ? [\"mouseenter\", \"mouseleave\"] : [\"mouseover\", \"mouseout\"], Je = {\n start: \"touchstart\",\n end: \"touchend\",\n move: \"touchmove\",\n cancel: \"touchcancel\"\n}, Xe = { in: \"focusin\", out: \"focusout\" }, qt = 'a[href], button, input, textarea, select, details, [tabindex]:not([tabindex=\"-1\"]', Ye = {\n Backspace: \"Backspace\",\n Tab: \"Tab\",\n Enter: \"Enter\",\n Shift: \"Shift\",\n Control: \"Control\",\n Alt: \"Alt\",\n Pause: \"Pause\",\n CapsLock: \"CapsLock\",\n Escape: \"Escape\",\n Scape: \"Space\",\n ArrowLeft: \"ArrowLeft\",\n ArrowUp: \"ArrowUp\",\n ArrowRight: \"ArrowRight\",\n ArrowDown: \"ArrowDown\",\n Insert: \"Insert\",\n Delete: \"Delete\",\n Meta: \"Meta\",\n ContextMenu: \"ContextMenu\",\n ScrollLock: \"ScrollLock\"\n}, tn = \"Alt\", en = \"ArrowDown\", nn = \"ArrowUp\", on = \"ArrowLeft\", sn = \"ArrowRight\", rn = \"Backspace\", cn = \"CapsLock\", an = \"Control\", un = \"Delete\", ln = \"Enter\", dn = \"NumpadEnter\", fn = \"Escape\", pn = \"Insert\", gn = \"Meta\", mn = \"Pause\", vn = \"ScrollLock\", bn = \"Shift\", En = \"Space\", hn = \"Tab\", Gt = \"animationDuration\", Zt = \"animationDelay\", U = \"animationName\", T = \"animationend\", _t = \"transitionDuration\", $t = \"transitionDelay\", M = \"transitionend\", W = \"transitionProperty\", yn = \"addEventListener\", wn = \"removeEventListener\", An = {\n linear: \"linear\",\n easingSinusoidalIn: \"cubic-bezier(0.47,0,0.745,0.715)\",\n easingSinusoidalOut: \"cubic-bezier(0.39,0.575,0.565,1)\",\n easingSinusoidalInOut: \"cubic-bezier(0.445,0.05,0.55,0.95)\",\n easingQuadraticIn: \"cubic-bezier(0.550,0.085,0.680,0.530)\",\n easingQuadraticOut: \"cubic-bezier(0.250,0.460,0.450,0.940)\",\n easingQuadraticInOut: \"cubic-bezier(0.455,0.030,0.515,0.955)\",\n easingCubicIn: \"cubic-bezier(0.55,0.055,0.675,0.19)\",\n easingCubicOut: \"cubic-bezier(0.215,0.61,0.355,1)\",\n easingCubicInOut: \"cubic-bezier(0.645,0.045,0.355,1)\",\n easingQuarticIn: \"cubic-bezier(0.895,0.03,0.685,0.22)\",\n easingQuarticOut: \"cubic-bezier(0.165,0.84,0.44,1)\",\n easingQuarticInOut: \"cubic-bezier(0.77,0,0.175,1)\",\n easingQuinticIn: \"cubic-bezier(0.755,0.05,0.855,0.06)\",\n easingQuinticOut: \"cubic-bezier(0.23,1,0.32,1)\",\n easingQuinticInOut: \"cubic-bezier(0.86,0,0.07,1)\",\n easingExponentialIn: \"cubic-bezier(0.95,0.05,0.795,0.035)\",\n easingExponentialOut: \"cubic-bezier(0.19,1,0.22,1)\",\n easingExponentialInOut: \"cubic-bezier(1,0,0,1)\",\n easingCircularIn: \"cubic-bezier(0.6,0.04,0.98,0.335)\",\n easingCircularOut: \"cubic-bezier(0.075,0.82,0.165,1)\",\n easingCircularInOut: \"cubic-bezier(0.785,0.135,0.15,0.86)\",\n easingBackIn: \"cubic-bezier(0.6,-0.28,0.735,0.045)\",\n easingBackOut: \"cubic-bezier(0.175,0.885,0.32,1.275)\",\n easingBackInOut: \"cubic-bezier(0.68,-0.55,0.265,1.55)\"\n}, Sn = \"offsetHeight\", kn = \"offsetWidth\", Nn = \"scrollHeight\", Cn = \"scrollWidth\", Tn = \"tabindex\", Mn = navigator.userAgentData, { userAgent: Jt } = navigator, Dn = Jt, Ln = () => {\n const t = /iPhone|iPad|iPod|Android/i;\n return navigator?.userAgentData?.brands.some(\n (e) => t.test(e.brand)\n ) || t.test(navigator?.userAgent) || !1;\n}, On = () => {\n const t = /(iPhone|iPod|iPad)/;\n return navigator?.userAgentData?.brands.some(\n (e) => t.test(e.brand)\n ) || t.test(\n navigator?.userAgent\n ) || !1;\n}, xn = () => navigator?.userAgent?.includes(\"Firefox\") || !1, Xt = () => typeof CSS > \"u\" || !CSS.supports ? !1 : CSS.supports(\"-webkit-backdrop-filter\", \"none\"), zn = () => [\"webkitPerspective\", \"perspective\"].some((t) => t in document.head.style), Yt = () => {\n}, R = (t, e, n, o) => {\n const s = o || !1;\n t.addEventListener(\n e,\n n,\n s\n );\n}, Q = (t, e, n, o) => {\n const s = o || !1;\n t.removeEventListener(\n e,\n n,\n s\n );\n}, te = (t, e, n, o) => {\n const s = (r) => {\n (r.target === t || r.currentTarget === t) && (n.apply(t, [r]), Q(t, e, s, o));\n };\n R(t, e, s, o);\n}, In = () => {\n let t = !1;\n try {\n const e = Object.defineProperty({}, \"passive\", {\n get: () => (t = !0, t)\n });\n te(document, H, Yt, e);\n } catch {\n }\n return t;\n}, Pn = () => [\"webkitTransform\", \"transform\"].some((t) => t in document.head.style), Fn = () => \"ontouchstart\" in window || \"msMaxTouchPoints\" in navigator, Bn = () => [\"webkitAnimation\", \"animation\"].some((t) => t in document.head.style), Vn = () => [\"webkitTransition\", \"transition\"].some((t) => t in document.head.style), j = (t, e) => t.getAttribute(e), Hn = (t, e, n) => e.getAttributeNS(t, n), ee = (t, e) => t.hasAttribute(e), Un = (t, e, n) => e.hasAttributeNS(t, n), Wn = (t, e, n) => t.setAttribute(e, n), Rn = (t, e, n, o) => e.setAttributeNS(t, n, o), Qn = (t, e) => t.removeAttribute(e), jn = (t, e, n) => e.removeAttributeNS(t, n), Kn = (t, ...e) => {\n t.classList.add(...e);\n}, qn = (t, ...e) => {\n t.classList.remove(...e);\n}, Gn = (t, e) => t.classList.contains(e), { body: Zn } = document, { documentElement: _n } = document, { head: $n } = document, Jn = (t) => Array.from(t), v = (t) => t != null && typeof t == \"object\" || !1, u = (t) => v(t) && typeof t.nodeType == \"number\" && [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11].some(\n (e) => t.nodeType === e\n) || !1, i = (t) => u(t) && t.nodeType === 1 || !1, E = /* @__PURE__ */ new Map(), L = {\n data: E,\n set: (t, e, n) => {\n if (!i(t)) return;\n E.has(e) || E.set(e, /* @__PURE__ */ new Map()), E.get(e).set(t, n);\n },\n getAllFor: (t) => E.get(t) || null,\n get: (t, e) => {\n if (!i(t) || !e) return null;\n const n = L.getAllFor(e);\n return t && n && n.get(t) || null;\n },\n remove: (t, e) => {\n const n = L.getAllFor(e);\n !n || !i(t) || (n.delete(t), n.size === 0 && E.delete(e));\n }\n}, Xn = (t, e) => L.get(t, e), Yn = (t) => t?.charAt(0).toUpperCase() + t?.slice(1), I = (t) => t?.trim().replace(\n /(?:^\\w|[A-Z]|\\b\\w)/g,\n (e, n) => n === 0 ? e.toLowerCase() : e.toUpperCase()\n).replace(/\\s+/g, \"\"), N = (t) => typeof t == \"string\" || !1, K = (t) => v(t) && t.constructor.name === \"Window\" || !1, q = (t) => u(t) && t.nodeType === 9 || !1, d = (t) => q(t) ? t : u(t) ? t.ownerDocument : K(t) ? t.document : globalThis.document, C = (t, ...e) => Object.assign(t, ...e), ne = (t) => {\n if (!t) return;\n if (N(t))\n return d().createElement(t);\n const { tagName: e } = t, n = ne(e);\n if (!n) return;\n const o = { ...t };\n return delete o.tagName, C(n, o);\n}, oe = (t, e) => {\n if (!t || !e) return;\n if (N(e))\n return d().createElementNS(t, e);\n const { tagName: n } = e, o = oe(t, n);\n if (!o) return;\n const s = { ...e };\n return delete s.tagName, C(o, s);\n}, G = (t, e) => t.dispatchEvent(e), to = (t, e, n) => n.indexOf(t) === e, f = (t, e, n) => {\n const o = getComputedStyle(t, n), s = e.replace(\"webkit\", \"Webkit\").replace(/([A-Z])/g, \"-$1\").toLowerCase();\n return o.getPropertyValue(s);\n}, se = (t) => {\n const e = f(t, U), n = f(t, Zt), o = n.includes(\"ms\") ? 1 : 1e3, s = e && e !== \"none\" ? parseFloat(n) * o : 0;\n return Number.isNaN(s) ? 0 : s;\n}, re = (t) => {\n const e = f(t, U), n = f(t, Gt), o = n.includes(\"ms\") ? 1 : 1e3, s = e && e !== \"none\" ? parseFloat(n) * o : 0;\n return Number.isNaN(s) ? 0 : s;\n}, eo = (t, e) => {\n let n = 0;\n const o = new Event(T), s = re(t), r = se(t);\n if (s) {\n const a = (l) => {\n l.target === t && (e.apply(t, [l]), t.removeEventListener(T, a), n = 1);\n };\n t.addEventListener(T, a), setTimeout(() => {\n n || G(t, o);\n }, s + r + 17);\n } else\n e.apply(t, [o]);\n}, ce = (t) => {\n const e = f(t, W), n = f(t, $t), o = n.includes(\"ms\") ? 1 : 1e3, s = e && e !== \"none\" ? parseFloat(n) * o : 0;\n return Number.isNaN(s) ? 0 : s;\n}, ae = (t) => {\n const e = f(t, W), n = f(t, _t), o = n.includes(\"ms\") ? 1 : 1e3, s = e && e !== \"none\" ? parseFloat(n) * o : 0;\n return Number.isNaN(s) ? 0 : s;\n}, no = (t, e) => {\n let n = 0;\n const o = new Event(M), s = ae(t), r = ce(t);\n if (s) {\n const a = (l) => {\n l.target === t && (e.apply(t, [l]), t.removeEventListener(M, a), n = 1);\n };\n t.addEventListener(M, a), setTimeout(() => {\n n || G(t, o);\n }, s + r + 17);\n } else\n e.apply(t, [o]);\n}, oo = (t) => Float32Array.from(Array.from(t)), so = (t) => Float64Array.from(Array.from(t)), ro = (t, e) => t.focus(e), co = (t) => t?.trim().replace(/([a-z])([A-Z])/g, \"$1-$2\").replace(/\\s+/g, \"-\").toLowerCase(), P = (t) => [\"true\", !0].includes(t) ? !0 : [\"false\", !1].includes(t) ? !1 : [\"null\", \"\", null, void 0].includes(t) ? null : t !== \"\" && !Number.isNaN(+t) ? +t : t, S = (t) => Object.entries(t), ao = (t, e, n, o) => {\n if (!i(t)) return e;\n const s = { ...n }, r = { ...t.dataset }, a = { ...e }, l = {}, p = \"title\";\n return S(r).forEach(([c, g]) => {\n const A = o && typeof c == \"string\" && c.includes(o) ? I(c.replace(o, \"\")) : I(c);\n l[A] = P(g);\n }), S(s).forEach(([c, g]) => {\n s[c] = P(g);\n }), S(e).forEach(([c, g]) => {\n c in s ? a[c] = s[c] : c in l ? a[c] = l[c] : a[c] = c === p ? j(t, p) : g;\n }), a;\n}, io = (t, e) => v(t) && (Object.hasOwn(t, e) || e in t), uo = (t) => Object.keys(t), lo = (t) => Object.values(t), fo = (t) => Object.fromEntries(t), po = (t, e) => {\n const n = new CustomEvent(t, {\n cancelable: !0,\n bubbles: !0\n });\n return v(e) && C(n, e), n;\n}, go = { passive: !0 }, mo = (t) => t.offsetHeight, vo = (t, e) => {\n S(e).forEach(([n, o]) => {\n if (o && N(n) && n.includes(\"--\"))\n t.style.setProperty(n, o);\n else {\n const s = {};\n s[n] = o, C(t.style, s);\n }\n });\n}, O = (t) => v(t) && t.constructor.name === \"Map\" || !1, ie = (t) => typeof t == \"number\" || !1, m = /* @__PURE__ */ new Map(), bo = {\n set: (t, e, n, o) => {\n i(t) && (o && o.length ? (m.has(t) || m.set(t, /* @__PURE__ */ new Map()), m.get(t).set(o, setTimeout(e, n))) : m.set(t, setTimeout(e, n)));\n },\n get: (t, e) => {\n if (!i(t)) return null;\n const n = m.get(t);\n return e && n && O(n) ? n.get(e) || null : ie(n) ? n : null;\n },\n clear: (t, e) => {\n if (!i(t)) return;\n const n = m.get(t);\n e && e.length && O(n) ? (clearTimeout(n.get(e)), n.delete(e), n.size === 0 && m.delete(t)) : (clearTimeout(n), m.delete(t));\n }\n}, Eo = (t) => t.toLowerCase(), ho = (t) => t.toUpperCase(), ue = (t, e) => (u(e) ? e : d()).querySelectorAll(t), x = /* @__PURE__ */ new Map();\nfunction le(t) {\n const { shiftKey: e, code: n } = t, o = d(this), s = [\n ...ue(qt, this)\n ].filter(\n (l) => !ee(l, \"disabled\") && !j(l, $)\n );\n if (!s.length) return;\n const r = s[0], a = s[s.length - 1];\n n === \"Tab\" && (e && o.activeElement === r ? (a.focus(), t.preventDefault()) : !e && o.activeElement === a && (r.focus(), t.preventDefault()));\n}\nconst de = (t) => x.has(t) === !0, yo = (t) => {\n const e = de(t);\n (e ? Q : R)(t, \"keydown\", le), e ? x.delete(t) : x.set(t, !0);\n}, b = (t) => i(t) && \"offsetWidth\" in t || !1, y = (t, e) => {\n const { width: n, height: o, top: s, right: r, bottom: a, left: l } = t.getBoundingClientRect();\n let p = 1, c = 1;\n if (e && b(t)) {\n const { offsetWidth: g, offsetHeight: A } = t;\n p = g > 0 ? Math.round(n) / g : 1, c = A > 0 ? Math.round(o) / A : 1;\n }\n return {\n width: n / p,\n height: o / c,\n top: s / c,\n right: r / p,\n bottom: a / c,\n left: l / p,\n x: l / p,\n y: s / c\n };\n}, wo = (t) => d(t).body, w = (t) => d(t).documentElement, Ao = (t) => d(t).head, fe = (t) => u(t) ? (t.nodeName || \"\").toLowerCase() : \"#document\", So = (t) => {\n const e = K(t), n = e ? t.scrollX : t.scrollLeft, o = e ? t.scrollY : t.scrollTop;\n return { x: n, y: o };\n}, pe = (t) => u(t) && t.constructor.name === \"ShadowRoot\" || !1, k = (t) => t.nodeName === \"HTML\" ? t : i(t) && t.assignedSlot || u(t) && t.parentNode || pe(t) && t.host || w(t), ge = (t) => t ? q(t) ? t.defaultView : u(t) ? t?.ownerDocument?.defaultView : t : window, me = (t) => u(t) && [\"TABLE\", \"TD\", \"TH\"].includes(t.nodeName) || !1, ve = (t, e) => t.matches(e), D = (t) => f(t, \"position\") === \"static\", be = (t) => f(t, \"position\") === \"fixed\", Z = (t) => [\":popover-open\", \":modal\"].some((e) => {\n try {\n return ve(t, e);\n } catch {\n return !1;\n }\n}), _ = (t) => {\n const e = Xt(), n = i(t) ? getComputedStyle(t) : t;\n return n.transform !== \"none\" || n.perspective !== \"none\" || (n.containerType ? n.containerType !== \"normal\" : !1) || !e && (n.backdropFilter ? n.backdropFilter !== \"none\" : !1) || !e && (n.filter ? n.filter !== \"none\" : !1) || [\"transform\", \"perspective\", \"filter\"].some(\n (o) => (n.willChange || \"\").includes(o)\n ) || [\"paint\", \"layout\", \"strict\", \"content\"].some(\n (o) => (n.contain || \"\").includes(o)\n );\n}, Ee = (t) => {\n let e = k(t);\n for (; i(e) && !z(e); ) {\n if (_(e))\n return e;\n if (Z(e))\n return null;\n e = k(e);\n }\n return null;\n}, z = (t) => [\"html\", \"body\", \"#document\"].includes(fe(t)), F = (t) => {\n if (!b(t) || be(t))\n return null;\n let e = t.offsetParent;\n return w(t) === e && (e = e.ownerDocument.body), e;\n}, ko = (t) => {\n const e = ge(t);\n if (!u(t) || Z(t))\n return e;\n if (!b(t)) {\n let o = k(t);\n for (; o && !z(o); ) {\n if (i(o) && !D(o))\n return o;\n o = k(o);\n }\n return e;\n }\n let n = F(t);\n for (; n && me(n) && D(n); )\n n = F(n);\n return n && z(n) && D(n) && !_(n) ? e : n || Ee(t) || e;\n}, he = (t) => {\n if (!b(t)) return !1;\n const { width: e, height: n } = y(t), { offsetWidth: o, offsetHeight: s } = t;\n return Math.round(e) !== o || Math.round(n) !== s;\n}, No = (t, e, n) => {\n const o = b(e), s = y(\n t,\n o && he(e)\n ), r = { x: 0, y: 0 };\n if (o) {\n const a = y(e, !0);\n r.x = a.x + e.clientLeft, r.y = a.y + e.clientTop;\n }\n return {\n x: s.left + n.x - r.x,\n y: s.top + n.y - r.y,\n width: s.width,\n height: s.height\n };\n};\nlet B = 0, V = 0;\nconst h = /* @__PURE__ */ new Map(), ye = (t, e) => {\n let n = e ? B : V;\n if (e) {\n const o = ye(t), s = h.get(o) || /* @__PURE__ */ new Map();\n h.has(o) || h.set(o, s), O(s) && !s.has(e) ? (s.set(e, n), B += 1) : n = s.get(e);\n } else {\n const o = t.id || t;\n h.has(o) ? n = h.get(o) : (h.set(o, n), V += 1);\n }\n return n;\n}, we = (t) => Array.isArray(t) || !1, Co = (t) => u(t) && t.nodeName === \"CANVAS\" || !1, Ae = (t) => b(t) && !!t.shadowRoot || !1, To = (t) => {\n if (!u(t)) return !1;\n const { top: e, bottom: n } = y(t), { clientHeight: o } = w(t);\n return e <= o && n >= 0;\n}, Mo = (t) => {\n if (!i(t)) return !1;\n const { clientWidth: e, clientHeight: n } = w(t), { top: o, left: s, bottom: r, right: a } = y(t, !0);\n return o >= 0 && s >= 0 && r <= n && a <= e;\n}, Do = (t) => we(t) && t.every(i) || !1, Lo = (t) => typeof t == \"function\" || !1, Oo = (t) => v(t) && t.constructor.name === \"HTMLCollection\" || !1, xo = (t) => b(t) && t.tagName === \"IMG\" || !1, zo = (t) => {\n if (!N(t)) return !1;\n try {\n JSON.parse(t);\n } catch {\n return !1;\n }\n return !0;\n}, Io = (t) => v(t) && t.constructor.name === \"WeakMap\" || !1, Po = (t) => u(t) && [\"SVG\", \"Image\", \"Video\", \"Canvas\"].some(\n (e) => t.constructor.name.includes(e)\n) || !1, Fo = (t) => v(t) && t.constructor.name === \"NodeList\" || !1, Bo = (t) => w(t).dir === \"rtl\", Vo = (t) => u(t) && t.constructor.name.includes(\"SVG\") || !1, Se = (t, e) => !t || !e ? null : t.closest(e) || Se(t.getRootNode().host, e) || null, Ho = (t, e) => i(t) ? t : (i(e) ? e : d()).querySelector(t), ke = (t, e) => (u(e) ? e : d()).getElementsByTagName(\n t\n), Uo = (t) => [...ke(\"*\", t)].filter(Ae), Wo = (t, e) => d(e).getElementById(t), Ro = (t, e) => (e && u(e) ? e : d()).getElementsByClassName(\n t\n);\nexport {\n Jn as ArrayFrom,\n H as DOMContentLoadedEvent,\n nt as DOMMouseScrollEvent,\n L as Data,\n oo as Float32ArrayFrom,\n so as Float64ArrayFrom,\n C as ObjectAssign,\n S as ObjectEntries,\n fo as ObjectFromEntries,\n io as ObjectHasOwn,\n uo as ObjectKeys,\n lo as ObjectValues,\n bo as Timer,\n J as abortEvent,\n Kn as addClass,\n yn as addEventListener,\n Zt as animationDelay,\n Gt as animationDuration,\n T as animationEndEvent,\n U as animationName,\n Ce as ariaChecked,\n Me as ariaDescribedBy,\n Te as ariaDescription,\n De as ariaExpanded,\n Le as ariaHasPopup,\n $ as ariaHidden,\n Oe as ariaLabel,\n xe as ariaLabelledBy,\n ze as ariaModal,\n Ie as ariaPressed,\n Pe as ariaSelected,\n Be as ariaValueMax,\n Fe as ariaValueMin,\n Ve as ariaValueNow,\n He as ariaValueText,\n X as beforeunloadEvent,\n An as bezierEasings,\n Y as blurEvent,\n I as camelCase,\n Yn as capitalize,\n tt as changeEvent,\n Se as closest,\n et as contextmenuEvent,\n po as createCustomEvent,\n ne as createElement,\n oe as createElementNS,\n G as dispatchEvent,\n to as distinct,\n Zn as documentBody,\n _n as documentElement,\n $n as documentHead,\n We as dragEvent,\n qe as dragendEvent,\n Qe as dragenterEvent,\n je as dragleaveEvent,\n Ke as dragoverEvent,\n Re as dragstartEvent,\n eo as emulateAnimationEnd,\n no as emulateTransitionEnd,\n ot as errorEvent,\n ro as focus,\n st as focusEvent,\n Xe as focusEvents,\n qt as focusableSelector,\n rt as focusinEvent,\n ct as focusoutEvent,\n at as gesturechangeEvent,\n it as gestureendEvent,\n ut as gesturestartEvent,\n j as getAttribute,\n Hn as getAttributeNS,\n y as getBoundingClientRect,\n Uo as getCustomElements,\n d as getDocument,\n wo as getDocumentBody,\n w as getDocumentElement,\n Ao as getDocumentHead,\n se as getElementAnimationDelay,\n re as getElementAnimationDuration,\n Wo as getElementById,\n f as getElementStyle,\n ce as getElementTransitionDelay,\n ae as getElementTransitionDuration,\n Ro as getElementsByClassName,\n ke as getElementsByTagName,\n Xn as getInstance,\n fe as getNodeName,\n So as getNodeScroll,\n ko as getOffsetParent,\n k as getParentNode,\n No as getRectRelativeToOffsetParent,\n ye as getUID,\n ge as getWindow,\n ee as hasAttribute,\n Un as hasAttributeNS,\n Gn as hasClass,\n de as hasFocusTrap,\n On as isApple,\n we as isArray,\n Co as isCanvas,\n Ae as isCustomElement,\n q as isDocument,\n i as isElement,\n To as isElementInScrollRange,\n Mo as isElementInViewport,\n Do as isElementsArray,\n xn as isFirefox,\n Lo as isFunction,\n Oo as isHTMLCollection,\n b as isHTMLElement,\n xo as isHTMLImageElement,\n zo as isJSON,\n O as isMap,\n Po as isMedia,\n Ln as isMobile,\n u as isNode,\n Fo as isNodeList,\n ie as isNumber,\n v as isObject,\n Bo as isRTL,\n Vo as isSVGElement,\n he as isScaledElement,\n pe as isShadowRoot,\n N as isString,\n me as isTableElement,\n Io as isWeakMap,\n Xt as isWebKit,\n K as isWindow,\n co as kebabCase,\n tn as keyAlt,\n en as keyArrowDown,\n on as keyArrowLeft,\n sn as keyArrowRight,\n nn as keyArrowUp,\n rn as keyBackspace,\n cn as keyCapsLock,\n an as keyControl,\n un as keyDelete,\n ln as keyEnter,\n fn as keyEscape,\n pn as keyInsert,\n gn as keyMeta,\n dn as keyNumpadEnter,\n mn as keyPause,\n vn as keyScrollLock,\n bn as keyShift,\n En as keySpace,\n hn as keyTab,\n Ye as keyboardEventKeys,\n lt as keydownEvent,\n dt as keypressEvent,\n ft as keyupEvent,\n pt as loadEvent,\n Ge as loadstartEvent,\n ve as matches,\n _e as mouseClickEvents,\n $e as mouseHoverEvents,\n Ze as mouseSwipeEvents,\n gt as mouseclickEvent,\n mt as mousedblclickEvent,\n vt as mousedownEvent,\n ht as mouseenterEvent,\n Et as mousehoverEvent,\n wt as mouseinEvent,\n yt as mouseleaveEvent,\n kt as mousemoveEvent,\n At as mouseoutEvent,\n St as mouseoverEvent,\n bt as mouseupEvent,\n Nt as mousewheelEvent,\n Ct as moveEvent,\n Ue as nativeEvents,\n Yt as noop,\n ao as normalizeOptions,\n P as normalizeValue,\n Q as off,\n Sn as offsetHeight,\n kn as offsetWidth,\n R as on,\n te as one,\n Tt as orientationchangeEvent,\n go as passiveHandler,\n Mt as pointercancelEvent,\n Dt as pointerdownEvent,\n Lt as pointerleaveEvent,\n Ot as pointermoveEvent,\n xt as pointerupEvent,\n Ho as querySelector,\n ue as querySelectorAll,\n zt as readystatechangeEvent,\n mo as reflow,\n Qn as removeAttribute,\n jn as removeAttributeNS,\n qn as removeClass,\n wn as removeEventListener,\n It as resetEvent,\n Pt as resizeEvent,\n Ht as scrollEvent,\n Nn as scrollHeight,\n Cn as scrollWidth,\n Ft as selectEvent,\n Bt as selectendEvent,\n Vt as selectstartEvent,\n Wn as setAttribute,\n Rn as setAttributeNS,\n vo as setElementStyle,\n Ut as submitEvent,\n zn as support3DTransform,\n Bn as supportAnimation,\n In as supportPassive,\n Fn as supportTouch,\n Pn as supportTransform,\n Vn as supportTransition,\n Tn as tabindex,\n Eo as toLowerCase,\n ho as toUpperCase,\n yo as toggleFocusTrap,\n Je as touchEvents,\n Qt as touchcancelEvent,\n jt as touchendEvent,\n Rt as touchmoveEvent,\n Wt as touchstartEvent,\n $t as transitionDelay,\n _t as transitionDuration,\n M as transitionEndEvent,\n W as transitionProperty,\n Kt as unloadEvent,\n Dn as userAgent,\n Mn as userAgentData,\n Ne as version\n};\n//# sourceMappingURL=shorty.mjs.map\n","const g = \"2.0.8\", e = {}, f = (t) => {\n const { type: n, currentTarget: c } = t;\n e[n].forEach((a, s) => {\n c === s && a.forEach((o, i) => {\n i.apply(s, [t]), typeof o == \"object\" && o.once && r(s, n, i, o);\n });\n });\n}, E = (t, n, c, a) => {\n e[n] || (e[n] = /* @__PURE__ */ new Map());\n const s = e[n];\n s.has(t) || s.set(t, /* @__PURE__ */ new Map());\n const o = s.get(\n t\n ), { size: i } = o;\n o.set(c, a), i || t.addEventListener(\n n,\n f,\n a\n );\n}, r = (t, n, c, a) => {\n const s = e[n], o = s && s.get(t), i = o && o.get(c), d = i !== void 0 ? i : a;\n o && o.has(c) && o.delete(c), s && (!o || !o.size) && s.delete(t), (!s || !s.size) && delete e[n], (!o || !o.size) && t.removeEventListener(\n n,\n f,\n d\n );\n}, M = E, p = r;\nexport {\n E as addListener,\n f as globalListener,\n p as off,\n M as on,\n e as registry,\n r as removeListener,\n g as version\n};\n//# sourceMappingURL=event-listener.mjs.map\n","/**\n * Global namespace for most components `fade` class.\n */\nconst fadeClass = \"fade\";\nexport default fadeClass;\n","/**\n * Global namespace for most components `show` class.\n */\nconst showClass = \"show\";\nexport default showClass;\n","/**\n * Global namespace for most components `dismiss` option.\n */\nconst dataBsDismiss = \"data-bs-dismiss\";\nexport default dataBsDismiss;\n","/** @type {string} */\nconst alertString = \"alert\";\nexport default alertString;\n","/** @type {string} */\nconst alertComponent = \"Alert\";\nexport default alertComponent;\n","import { getAttribute, hasClass } from \"@thednp/shorty\";\n\n/**\n * Check if interactive element is disabled.\n * @param target either a `',\n});\n\n/**\n * Static method which returns an existing `Popover` instance associated\n * to a target `Element`.\n */\nconst getPopoverInstance = (element: Element) =>\n getInstance(element, popoverComponent);\n\n/**\n * A `Popover` initialization callback.\n */\nconst popoverInitCallback = (element: Element) => new Popover(element);\n\n// POPOVER DEFINITION\n// ==================\n/** Returns a new `Popover` instance. */\nexport default class Popover extends Tooltip {\n static selector = popoverSelector;\n static init = popoverInitCallback;\n static getInstance = getPopoverInstance;\n static styleTip = styleTip;\n declare options: PopoverOptions;\n\n /**\n * @param target the target element\n * @param config the instance options\n */\n constructor(target: Element | string, config?: Partial) {\n super(target, config);\n }\n /**\n * Returns component name string.\n */\n get name() {\n return popoverComponent;\n }\n /**\n * Returns component default options.\n */\n get defaults() {\n return popoverDefaults;\n }\n\n /* extend original `show()` */\n show = () => {\n super.show();\n // btn only exists within dismissible popover\n const { options, btn } = this;\n // istanbul ignore else @preserve\n if (options.dismissible && btn) setTimeout(() => focus(btn), 17);\n };\n}\n","/** @type {string} */\nconst scrollspyString = \"scrollspy\";\nexport default scrollspyString;\n","/** @type {string} */\nconst scrollspyComponent = \"ScrollSpy\";\nexport default scrollspyComponent;\n","/* Native JavaScript for Bootstrap 5 | ScrollSpy\n------------------------------------------------ */\nimport {\n addClass,\n closest,\n createCustomEvent,\n dispatchEvent,\n getAttribute,\n getBoundingClientRect,\n getDocument,\n getDocumentElement,\n getElementById,\n getElementsByTagName,\n getInstance,\n hasClass,\n mouseclickEvent,\n MouseEvent,\n querySelector,\n removeClass,\n} from \"@thednp/shorty\";\n\nimport PositionObserver from \"@thednp/position-observer\";\nimport { addListener, removeListener } from \"@thednp/event-listener\";\n\nimport activeClass from \"~/strings/activeClass\";\nimport scrollspyString from \"~/strings/scrollspyString\";\nimport scrollspyComponent from \"~/strings/scrollspyComponent\";\nimport isDisabled from \"~/util/isDisabled\";\nimport BaseComponent from \"./base-component\";\nimport { ScrollSpyEvent, ScrollSpyOptions } from \"~/interface/scrollspy\";\n\n// SCROLLSPY PRIVATE GC\n// ====================\nconst scrollspySelector = '[data-bs-spy=\"scroll\"]';\nconst scrollSpyAnchorSelector = \"[href]\";\n\nconst scrollspyDefaults: Partial = {\n offset: 10,\n target: undefined,\n};\n\ntype ScrollSpyEventProps = {\n relatedTarget: HTMLElement;\n};\n\n/**\n * Static method which returns an existing `ScrollSpy` instance associated\n * to a target `Element`.\n */\nconst getScrollSpyInstance = (element: Element) =>\n getInstance(element, scrollspyComponent);\n\n/**\n * A `ScrollSpy` initialization callback.\n */\nconst scrollspyInitCallback = (element: Element) => new ScrollSpy(element);\n\n// SCROLLSPY CUSTOM EVENT\n// ======================\nconst activateScrollSpy = createCustomEvent<\n ScrollSpyEventProps,\n ScrollSpyEvent\n>(`activate.bs.${scrollspyString}`);\n\n// SCROLLSPY PRIVATE METHODS\n// =========================\n/**\n * Update the state of all items.\n *\n * @param self the `ScrollSpy` instance\n */\nconst updateSpyTargets = (self: ScrollSpy) => {\n const {\n target,\n _itemsLength,\n _observables,\n } = self;\n\n const links = getElementsByTagName(\"A\", target);\n const doc = getDocument(target);\n\n // only update items once or with each mutation\n // istanbul ignore else @preserve\n if (!links.length || _itemsLength === _observables.size) return;\n // reset arrays & update\n _observables.clear();\n\n Array.from(links).forEach((link) => {\n const hash = getAttribute(link, \"href\")?.slice(1);\n const targetItem = hash?.length ? doc.getElementById(hash) : null;\n\n if (targetItem && !isDisabled(link)) {\n self._observables.set(targetItem, link);\n }\n });\n self._itemsLength = self._observables.size;\n};\n\n/**\n * Clear all items of the target.\n *\n * @param target a single item\n */\nconst clear = (target: Element) => {\n Array.from(getElementsByTagName(\"A\", target)).forEach(\n (item) => {\n if (hasClass(item, activeClass)) removeClass(item, activeClass);\n },\n );\n};\n\n/**\n * Activates a new item.\n *\n * @param self the `ScrollSpy` instance\n * @param item a single item\n */\nconst activate = (self: ScrollSpy, item: HTMLElement) => {\n const { target, element } = self;\n\n // istanbul ignore else @preserve\n clear(target);\n\n self._activeItem = item;\n addClass(item, activeClass);\n\n // activate all parents\n let parentItem = item;\n while (parentItem !== target) {\n parentItem = parentItem.parentElement as HTMLElement;\n if (\n [\"nav\", \"dropdown-menu\", \"list-group\"].some((c) =>\n hasClass(parentItem, c)\n )\n ) {\n const parentLink = parentItem.previousElementSibling as\n | HTMLElement\n | null;\n\n // istanbul ignore else @preserve\n if (parentLink && !hasClass(parentLink, activeClass)) {\n addClass(parentLink, activeClass);\n }\n }\n }\n\n // dispatch\n activateScrollSpy.relatedTarget = item;\n dispatchEvent(element, activateScrollSpy);\n};\n\nconst getOffset = (self: ScrollSpy, target: HTMLElement) => {\n const { scrollTarget, element, options } = self;\n\n return (scrollTarget !== element\n ? getBoundingClientRect(target).top + scrollTarget.scrollTop\n : target.offsetTop) - (options.offset as number || 10);\n};\n\n// SCROLLSPY DEFINITION\n// ====================\n/** Returns a new `ScrollSpy` instance. */\nexport default class ScrollSpy extends BaseComponent {\n static selector = scrollspySelector;\n static init = scrollspyInitCallback;\n static getInstance = getScrollSpyInstance;\n declare element: HTMLElement;\n declare options: ScrollSpyOptions;\n declare target: HTMLElement;\n declare scrollTarget: HTMLElement;\n declare _itemsLength: number;\n declare _activeItem: HTMLElement | null;\n declare _observables: Map;\n declare _observer: PositionObserver; //| IntersectionObserver;\n\n /**\n * @param target the target element\n * @param config the instance options\n */\n constructor(\n target: Element | string,\n config?: Partial,\n ) {\n super(target, config);\n\n // initialization element & options\n const { element, options } = this;\n\n // get target\n const spyTarget = querySelector(\n options.target,\n getDocument(element),\n );\n\n // invalidate\n if (!spyTarget) return;\n this.target = spyTarget;\n\n // set initial state\n this.scrollTarget = element.clientHeight < element.scrollHeight\n ? element\n : getDocumentElement(element);\n this._observables = new Map();\n\n // run an initial burst, we need to know the targets\n this.refresh();\n // updateSpyTargets(this);\n\n // create observer\n this._observer = new PositionObserver(() => {\n requestAnimationFrame(() => this.refresh());\n }, {\n root: this.scrollTarget,\n });\n\n // add event handlers\n this._toggleEventListeners(true);\n }\n\n /* eslint-disable */\n /**\n * Returns component name string.\n */\n get name() {\n return scrollspyComponent;\n }\n /**\n * Returns component default options.\n */\n get defaults() {\n return scrollspyDefaults;\n }\n /* eslint-enable */\n\n // SCROLLSPY PUBLIC METHODS\n // ========================\n /** Updates all items. */\n refresh = () => {\n const { target, scrollTarget } = this;\n // check if target is visible and invalidate\n // istanbul ignore if @preserve\n if (!target || target.offsetHeight === 0) return;\n\n updateSpyTargets(this);\n const { _itemsLength, _observables, _activeItem } = this;\n\n // istanbul ignore if @preserve\n if (!_itemsLength) return;\n const entries = _observables.entries().toArray();\n\n const { scrollTop, scrollHeight, clientHeight } = scrollTarget;\n\n if (scrollTop >= scrollHeight - clientHeight) {\n const newActiveItem = entries[_itemsLength - 1]?.[1];\n\n // istanbul ignore else @preserve\n if (_activeItem !== newActiveItem) activate(this, newActiveItem);\n return;\n }\n\n const firstOffset = entries[0]?.[0]\n ? getOffset(this, entries[0][0])\n : /* istanbul ignore next */ null;\n if (\n firstOffset !== null && scrollTop < firstOffset &&\n firstOffset > 0\n ) {\n this._activeItem = null;\n clear(target);\n return;\n }\n\n for (let i = 0; i < _itemsLength; i += 1) {\n const [targetItem, item] = entries[i];\n const offsetTop = getOffset(this, targetItem);\n const nextTarget = entries[i + 1]?.[0];\n const nextOffsetTop = nextTarget\n ? getOffset(this, nextTarget)\n : /* istanbul ignore next */ null;\n\n // istanbul ignore else @preserve\n if (\n _activeItem !== item &&\n scrollTop >= offsetTop &&\n (nextOffsetTop === null || scrollTop < nextOffsetTop)\n ) {\n activate(this, item);\n break;\n }\n }\n };\n\n /**\n * This method provides an event handle\n * for scrollspy\n * @param e the event listener object\n */\n _scrollTo = (e: MouseEvent) => {\n const item = closest(e.target, scrollSpyAnchorSelector);\n const hash = item && getAttribute(item, \"href\")?.slice(1);\n const targetItem = hash && getElementById(hash, this.target);\n\n // istanbul ignore else @preserve\n if (targetItem) {\n this.scrollTarget.scrollTo({\n top: targetItem.offsetTop,\n behavior: \"smooth\",\n });\n e.preventDefault();\n }\n };\n\n /**\n * Toggles on/off the component observer.\n *\n * @param self the ScrollSpy instance\n * @param add when `true`, listener is added\n */\n _toggleEventListeners = (\n add?: boolean,\n ) => {\n const { target, _observables, _observer, _scrollTo } = this;\n const action = add ? addListener : removeListener;\n action(target, mouseclickEvent, _scrollTo);\n\n if (add) {\n _observables?.forEach((_, targetItem) => _observer.observe(targetItem));\n } else _observer.disconnect();\n };\n\n /** Removes `ScrollSpy` from the target element. */\n dispose() {\n this._toggleEventListeners();\n super.dispose();\n }\n}\n","/** @type {string} */\nconst tabString = \"tab\";\nexport default tabString;\n","/** @type {string} */\nconst tabComponent = \"Tab\";\nexport default tabComponent;\n","/* Native JavaScript for Bootstrap 5 | Tab\n------------------------------------------ */\nimport {\n addClass,\n ariaSelected,\n closest,\n createCustomEvent,\n dispatchEvent,\n emulateTransitionEnd,\n getElementsByClassName,\n getInstance,\n hasClass,\n isHTMLElement,\n mouseclickEvent,\n MouseEvent,\n querySelector,\n reflow,\n removeClass,\n setAttribute,\n Timer,\n} from \"@thednp/shorty\";\n\nimport { addListener, removeListener } from \"@thednp/event-listener\";\n\nimport collapsingClass from \"~/strings/collapsingClass\";\nimport activeClass from \"~/strings/activeClass\";\nimport fadeClass from \"~/strings/fadeClass\";\nimport showClass from \"~/strings/showClass\";\nimport dropdownClasses from \"~/strings/dropdownClasses\";\nimport dataBsToggle from \"~/strings/dataBsToggle\";\nimport tabString from \"~/strings/tabString\";\nimport tabComponent from \"~/strings/tabComponent\";\nimport getTargetElement from \"~/util/getTargetElement\";\nimport BaseComponent from \"./base-component\";\nimport type { /* TabOptions, */ TabEvent } from \"~/interface/tab\";\n\n// TAB PRIVATE GC\n// ================\nconst tabSelector = `[${dataBsToggle}=\"${tabString}\"]`;\n\n/**\n * Static method which returns an existing `Tab` instance associated\n * to a target `Element`.\n */\nconst getTabInstance = (element: Element) =>\n getInstance(element, tabComponent);\n\n/** A `Tab` initialization callback. */\nconst tabInitCallback = (element: Element) => new Tab(element);\n\ntype TabEventProps = {\n relatedTarget: Element & EventTarget | undefined;\n};\n\n// TAB CUSTOM EVENTS\n// =================\nconst showTabEvent = createCustomEvent(\n `show.bs.${tabString}`,\n);\nconst shownTabEvent = createCustomEvent(\n `shown.bs.${tabString}`,\n);\nconst hideTabEvent = createCustomEvent(\n `hide.bs.${tabString}`,\n);\nconst hiddenTabEvent = createCustomEvent(\n `hidden.bs.${tabString}`,\n);\n\ninterface TabPrivate {\n tab: HTMLElement | null;\n content: HTMLElement | null;\n currentHeight: number;\n nextHeight: number;\n}\n\n/**\n * Stores the current active tab and its content\n * for a given `.nav` element.\n */\nconst tabPrivate: Map = new Map();\n\n// TAB PRIVATE METHODS\n// ===================\n/**\n * Executes after tab transition has finished.\n *\n * @param self the `Tab` instance\n */\nconst triggerTabEnd = (self: Tab) => {\n const { tabContent, nav } = self;\n\n // istanbul ignore else @preserve\n if (tabContent && hasClass(tabContent, collapsingClass)) {\n tabContent.style.height = \"\";\n removeClass(tabContent, collapsingClass);\n }\n\n // istanbul ignore else @preserve\n if (nav) Timer.clear(nav);\n};\n\n/**\n * Executes before showing the tab content.\n *\n * @param self the `Tab` instance\n */\nconst triggerTabShow = (self: Tab) => {\n const { element, tabContent, content: nextContent, nav } = self;\n const { tab } = (isHTMLElement(nav) && tabPrivate.get(nav)) ||\n // istanbul ignore next @preserve\n { tab: null };\n\n // istanbul ignore else @preserve\n if (tabContent && nextContent && hasClass(nextContent, fadeClass)) {\n const { currentHeight, nextHeight } = tabPrivate.get(element) ||\n // istanbul ignore next @preserve\n { currentHeight: 0, nextHeight: 0 };\n // istanbul ignore else @preserve: vitest won't validate this branch\n if (currentHeight !== nextHeight) {\n // enables height animation\n setTimeout(() => {\n tabContent.style.height = `${nextHeight}px`;\n reflow(tabContent);\n emulateTransitionEnd(tabContent, () => triggerTabEnd(self));\n }, 50);\n } else {\n triggerTabEnd(self);\n }\n } else if (nav) Timer.clear(nav);\n\n shownTabEvent.relatedTarget = tab as HTMLElement | undefined;\n\n dispatchEvent(element, shownTabEvent);\n};\n\n/**\n * Executes before hiding the tab.\n *\n * @param self the `Tab` instance\n */\nconst triggerTabHide = (self: Tab) => {\n const { element, content: nextContent, tabContent, nav } = self;\n const { tab, content } = (nav && tabPrivate.get(nav)) ||\n // istanbul ignore next @preserve\n { tab: null, content: null };\n let currentHeight = 0;\n\n // istanbul ignore else @preserve\n if (tabContent && nextContent && hasClass(nextContent, fadeClass)) {\n [content, nextContent].forEach((c) => {\n // istanbul ignore else @preserve\n if (c) addClass(c, \"overflow-hidden\");\n });\n currentHeight = content\n ? content.scrollHeight\n : /* istanbul ignore next @preserve */ 0;\n }\n\n // update relatedTarget and dispatch event\n showTabEvent.relatedTarget = tab as HTMLElement | undefined;\n hiddenTabEvent.relatedTarget = element as HTMLElement;\n dispatchEvent(element, showTabEvent);\n\n // istanbul ignore if @preserve\n if (showTabEvent.defaultPrevented) return;\n // istanbul ignore else @preserve\n if (nextContent) addClass(nextContent, activeClass);\n // istanbul ignore else @preserve\n if (content) removeClass(content, activeClass);\n\n // istanbul ignore else @preserve\n if (tabContent && nextContent && hasClass(nextContent, fadeClass)) {\n const nextHeight = nextContent.scrollHeight;\n tabPrivate.set(element, {\n currentHeight,\n nextHeight,\n tab: null,\n content: null,\n });\n\n addClass(tabContent, collapsingClass);\n tabContent.style.height = `${currentHeight}px`;\n reflow(tabContent);\n [content, nextContent].forEach((c) => {\n // istanbul ignore else @preserve\n if (c) removeClass(c, \"overflow-hidden\");\n });\n }\n\n if (nextContent && nextContent && hasClass(nextContent, fadeClass)) {\n setTimeout(() => {\n addClass(nextContent, showClass);\n emulateTransitionEnd(nextContent, () => {\n triggerTabShow(self);\n });\n }, 1);\n } else {\n // istanbul ignore else @preserve\n if (nextContent) addClass(nextContent, showClass);\n triggerTabShow(self);\n }\n\n // istanbul ignore else @preserve\n if (tab) dispatchEvent(tab, hiddenTabEvent);\n};\n\n/**\n * Returns the current active tab and its target content.\n *\n * @param self the `Tab` instance\n * @returns the query result\n */\nconst getActiveTab = (\n self: Tab,\n): { tab: HTMLElement | null; content: HTMLElement | null } => {\n const { nav } = self;\n // istanbul ignore next @preserve\n if (!isHTMLElement(nav)) {\n return { tab: null, content: null };\n }\n\n const activeTabs = getElementsByClassName(\n activeClass,\n nav,\n );\n let tab: HTMLElement | null = null;\n // istanbul ignore else @preserve\n if (\n activeTabs.length === 1 &&\n !dropdownClasses.some((c) =>\n hasClass(activeTabs[0].parentElement as HTMLElement, c)\n )\n ) {\n [tab] = activeTabs;\n } else if (activeTabs.length > 1) {\n tab = activeTabs[activeTabs.length - 1];\n }\n const content = isHTMLElement(tab) ? getTargetElement(tab) : null;\n return { tab, content };\n};\n\n/**\n * Returns a parent dropdown.\n *\n * @param element the `Tab` element\n * @returns the parent dropdown\n */\nconst getParentDropdown = (element?: HTMLElement) => {\n // istanbul ignore next @preserve\n if (!isHTMLElement(element)) return null;\n const dropdown = closest(element, `.${dropdownClasses.join(\",.\")}`);\n return dropdown\n ? querySelector(`.${dropdownClasses[0]}-toggle`, dropdown)\n : null;\n};\n\n// TAB EVENT HANDLER\n// =================\n/**\n * Handles the `click` event listener.\n *\n * @param e the `Event` object\n */\nconst tabClickHandler = (e: MouseEvent) => {\n const element = closest(e.target, tabSelector);\n const self = element && getTabInstance(element);\n\n // istanbul ignore if @preserve\n if (!self) return;\n e.preventDefault();\n self.show();\n};\n\n// TAB DEFINITION\n// ==============\n/** Creates a new `Tab` instance. */\nexport default class Tab extends BaseComponent {\n static selector = tabSelector;\n static init = tabInitCallback;\n static getInstance = getTabInstance;\n declare element: HTMLElement;\n declare nav: HTMLElement | null;\n declare content: HTMLElement | null;\n declare tabContent: HTMLElement | null;\n declare nextContent: HTMLElement | null;\n declare dropdown: HTMLElement | null;\n\n /** @param target the target element */\n constructor(target: Element | string) {\n super(target);\n\n // initialization element\n const { element } = this;\n const content = getTargetElement(element);\n\n // no point initializing a tab without a corresponding content\n // istanbul ignore else @preserve\n if (!content) return;\n\n const nav = closest(element, \".nav\");\n const container = closest(\n content as HTMLElement,\n \".tab-content\",\n );\n\n this.nav = nav;\n this.content = content;\n this.tabContent = container;\n\n // event targets\n this.dropdown = getParentDropdown(element);\n\n // show first Tab instance of none is shown\n // suggested on #432\n const { tab } = getActiveTab(this);\n if (nav && !tab) {\n const firstTab = querySelector(tabSelector, nav);\n const firstTabContent = firstTab && getTargetElement(firstTab);\n\n // istanbul ignore else @preserve\n if (firstTabContent) {\n addClass(firstTab, activeClass);\n addClass(firstTabContent, showClass);\n addClass(firstTabContent, activeClass);\n setAttribute(element, ariaSelected, \"true\");\n }\n }\n\n // add event listener\n this._toggleEventListeners(true);\n }\n\n /**\n * Returns component name string.\n */\n get name() {\n return tabComponent;\n }\n\n // TAB PUBLIC METHODS\n // ==================\n /** Shows the tab to the user. */\n show() {\n const { element, content: nextContent, nav, dropdown } = this;\n\n // istanbul ignore else @preserve\n if ((nav && Timer.get(nav)) || hasClass(element, activeClass)) return;\n const { tab, content } = getActiveTab(this);\n\n // istanbul ignore else @preserve\n if (nav && tab) {\n tabPrivate.set(nav, { tab, content, currentHeight: 0, nextHeight: 0 });\n }\n\n // update relatedTarget and dispatch\n hideTabEvent.relatedTarget = element as HTMLElement;\n\n // istanbul ignore if @preserve\n if (!isHTMLElement(tab)) return;\n\n dispatchEvent(tab, hideTabEvent);\n\n // istanbul ignore else @preserve\n if (hideTabEvent.defaultPrevented) return;\n\n addClass(element, activeClass);\n setAttribute(element, ariaSelected, \"true\");\n\n const activeDropdown = isHTMLElement(tab) && getParentDropdown(tab);\n if (activeDropdown && hasClass(activeDropdown, activeClass)) {\n removeClass(activeDropdown, activeClass);\n }\n\n // istanbul ignore else @preserve\n if (nav) {\n const toggleTab = () => {\n // istanbul ignore else @preserve\n if (tab) {\n removeClass(tab, activeClass);\n setAttribute(tab, ariaSelected, \"false\");\n }\n if (dropdown && !hasClass(dropdown, activeClass)) {\n addClass(dropdown, activeClass);\n }\n };\n\n if (\n content &&\n (hasClass(content, fadeClass) ||\n (nextContent && hasClass(nextContent, fadeClass)))\n ) {\n Timer.set(nav, toggleTab, 1);\n } else toggleTab();\n }\n\n // istanbul ignore else @preserve\n if (content) {\n removeClass(content, showClass);\n if (hasClass(content, fadeClass)) {\n emulateTransitionEnd(content, () => triggerTabHide(this));\n } else {\n triggerTabHide(this);\n }\n }\n }\n\n /**\n * Toggles on/off the `click` event listener.\n *\n * @param add when `true`, event listener is added\n */\n _toggleEventListeners = (add?: boolean) => {\n const action = add ? addListener : removeListener;\n action(this.element, mouseclickEvent, tabClickHandler);\n };\n\n /** Removes the `Tab` component from the target element. */\n dispose() {\n this._toggleEventListeners();\n super.dispose();\n }\n}\n","/** @type {string} */\nconst toastString = \"toast\";\nexport default toastString;\n","/** @type {string} */\nconst toastComponent = \"Toast\";\nexport default toastComponent;\n","/* Native JavaScript for Bootstrap 5 | Toast\n-------------------------------------------- */\nimport {\n addClass,\n createCustomEvent,\n dispatchEvent,\n emulateTransitionEnd,\n focusinEvent,\n focusoutEvent,\n getDocument,\n getInstance,\n hasClass,\n mouseclickEvent,\n mouseenterEvent,\n MouseEvent,\n mouseleaveEvent,\n querySelector,\n querySelectorAll,\n reflow,\n removeClass,\n Timer,\n} from \"@thednp/shorty\";\n\nimport { addListener, removeListener } from \"@thednp/event-listener\";\n\nimport fadeClass from \"~/strings/fadeClass\";\nimport showClass from \"~/strings/showClass\";\nimport dataBsDismiss from \"~/strings/dataBsDismiss\";\nimport dataBsToggle from \"~/strings/dataBsToggle\";\nimport toastString from \"~/strings/toastString\";\nimport toastComponent from \"~/strings/toastComponent\";\nimport getTargetElement from \"~/util/getTargetElement\";\nimport isDisabled from \"~/util/isDisabled\";\nimport BaseComponent from \"./base-component\";\nimport { ToastEvent, ToastOptions } from \"~/interface/toast\";\n\n// TOAST PRIVATE GC\n// ================\nconst toastSelector = `.${toastString}`;\nconst toastDismissSelector = `[${dataBsDismiss}=\"${toastString}\"]`;\nconst toastToggleSelector = `[${dataBsToggle}=\"${toastString}\"]`;\nconst showingClass = \"showing\";\n/** @deprecated */\nconst hideClass = \"hide\";\n\nconst toastDefaults = {\n animation: true,\n autohide: true,\n delay: 5000,\n};\n\n/**\n * Static method which returns an existing `Toast` instance associated\n * to a target `Element`.\n */\nconst getToastInstance = (element: Element) =>\n getInstance(element, toastComponent);\n\n/**\n * A `Toast` initialization callback.\n */\nconst toastInitCallback = (element: Element) => new Toast(element);\n\n// TOAST CUSTOM EVENTS\n// ===================\nconst showToastEvent = createCustomEvent, ToastEvent>(\n `show.bs.${toastString}`,\n);\nconst shownToastEvent = createCustomEvent, ToastEvent>(\n `shown.bs.${toastString}`,\n);\nconst hideToastEvent = createCustomEvent, ToastEvent>(\n `hide.bs.${toastString}`,\n);\nconst hiddenToastEvent = createCustomEvent, ToastEvent>(\n `hidden.bs.${toastString}`,\n);\n\n// TOAST PRIVATE METHODS\n// =====================\n/**\n * Executes after the toast is shown to the user.\n *\n * @param self the `Toast` instance\n */\nconst showToastComplete = (self: Toast) => {\n const { element, options } = self;\n removeClass(element, showingClass);\n Timer.clear(element, showingClass);\n\n dispatchEvent(element, shownToastEvent);\n // istanbul ignore else @preserve\n if (options.autohide) {\n Timer.set(element, () => self.hide(), options.delay, toastString);\n }\n};\n\n/**\n * Executes after the toast is hidden to the user.\n *\n * @param self the `Toast` instance\n */\nconst hideToastComplete = (self: Toast) => {\n const { element } = self;\n removeClass(element, showingClass);\n removeClass(element, showClass);\n addClass(element, hideClass); // B/C\n Timer.clear(element, toastString);\n dispatchEvent(element, hiddenToastEvent);\n};\n\n/**\n * Executes before hiding the toast.\n *\n * @param self the `Toast` instance\n */\nconst hideToast = (self: Toast) => {\n const { element, options } = self;\n addClass(element, showingClass);\n\n if (options.animation) {\n reflow(element as HTMLElement);\n emulateTransitionEnd(element, () => hideToastComplete(self));\n } else {\n hideToastComplete(self);\n }\n};\n\n/**\n * Executes before showing the toast.\n *\n * @param self the `Toast` instance\n */\nconst showToast = (self: Toast) => {\n const { element, options } = self;\n Timer.set(\n element,\n () => {\n removeClass(element, hideClass); // B/C\n reflow(element as HTMLElement);\n addClass(element, showClass);\n addClass(element, showingClass);\n\n if (options.animation) {\n emulateTransitionEnd(element, () => showToastComplete(self));\n } else {\n showToastComplete(self);\n }\n },\n 17,\n showingClass,\n );\n};\n\n// TOAST EVENT HANDLERS\n// ====================\n/**\n * Handles the `click` event listener for toast.\n *\n * @param e the `Event` object\n */\nfunction toastClickHandler(this: HTMLElement, e: Event) {\n const element = getTargetElement(this);\n const self = element && getToastInstance(element);\n\n // istanbul ignore if @preserve\n if (isDisabled(this)) return;\n // istanbul ignore if @preserve\n if (!self) return;\n // istanbul ignore else @preserve\n if (this.tagName === \"A\") e.preventDefault();\n self.relatedTarget = this;\n self.show();\n}\n\n/**\n * Executes when user interacts with the toast without closing it,\n * usually by hovering or focusing it.\n *\n * @param e the `Toast` instance\n */\nconst interactiveToastHandler = (e: MouseEvent) => {\n const element = e.target;\n const self = getToastInstance(element);\n const { type, relatedTarget } = e;\n\n // istanbul ignore if @preserve: a solid filter is required\n if (\n !self || element === relatedTarget ||\n element.contains(relatedTarget as Node)\n ) return;\n\n if ([mouseenterEvent, focusinEvent].includes(type)) {\n Timer.clear(element, toastString);\n } else {\n Timer.set(element, () => self.hide(), self.options.delay, toastString);\n }\n};\n\n// TOAST DEFINITION\n// ================\n/** Creates a new `Toast` instance. */\nexport default class Toast extends BaseComponent {\n static selector = toastSelector;\n static init = toastInitCallback;\n static getInstance = getToastInstance;\n declare element: HTMLElement;\n declare options: ToastOptions;\n declare dismiss: HTMLElement | null;\n declare triggers: HTMLElement[];\n declare relatedTarget: HTMLElement | null;\n\n /**\n * @param target the target `.toast` element\n * @param config the instance options\n */\n constructor(target: Element | string, config?: Partial) {\n super(target, config);\n const { element, options } = this;\n\n // set fadeClass, the options.animation will override the markup\n if (options.animation && !hasClass(element, fadeClass)) {\n addClass(element, fadeClass);\n } else if (!options.animation && hasClass(element, fadeClass)) {\n removeClass(element, fadeClass);\n }\n\n // dismiss button\n this.dismiss = querySelector(toastDismissSelector, element);\n\n // toast can have multiple triggering elements\n this.triggers = [\n ...querySelectorAll(\n toastToggleSelector,\n getDocument(element),\n ),\n ].filter(\n (btn) => getTargetElement(btn) === element,\n );\n\n // add event listener\n this._toggleEventListeners(true);\n }\n /**\n * Returns component name string.\n */\n get name() {\n return toastComponent;\n }\n /**\n * Returns component default options.\n */\n get defaults() {\n return toastDefaults;\n }\n /**\n * Returns *true* when toast is visible.\n */\n get isShown() {\n return hasClass(this.element, showClass);\n }\n\n // TOAST PUBLIC METHODS\n // ====================\n /** Shows the toast. */\n show = () => {\n const { element, isShown } = this;\n\n // istanbul ignore if @preserve\n if (!element || isShown) return;\n\n dispatchEvent(element, showToastEvent);\n if (!showToastEvent.defaultPrevented) showToast(this);\n };\n\n /** Hides the toast. */\n hide = () => {\n const { element, isShown } = this;\n\n // istanbul ignore if @preserve\n if (!element || !isShown) return;\n\n dispatchEvent(element, hideToastEvent);\n if (!hideToastEvent.defaultPrevented) hideToast(this);\n };\n\n /**\n * Toggles on/off the `click` event listener.\n *\n * @param add when `true`, it will add the listener\n */\n _toggleEventListeners = (add?: boolean) => {\n const action = add ? addListener : removeListener;\n const { element, triggers, dismiss, options, hide } = this;\n\n // istanbul ignore else @preserve\n if (dismiss) {\n action(dismiss, mouseclickEvent, hide);\n }\n\n // istanbul ignore else @preserve\n if (options.autohide) {\n [focusinEvent, focusoutEvent, mouseenterEvent, mouseleaveEvent].forEach(\n (e) => action(element, e, interactiveToastHandler),\n );\n }\n // istanbul ignore else @preserve\n if (triggers.length) {\n triggers.forEach((btn) => {\n action(btn, mouseclickEvent, toastClickHandler);\n });\n }\n };\n\n /** Removes the `Toast` component from the target element. */\n dispose() {\n const { element, isShown } = this;\n this._toggleEventListeners();\n Timer.clear(element, toastString);\n\n if (isShown) removeClass(element, showClass);\n\n super.dispose();\n }\n}\n","import { Data, getElementsByTagName, matches } from \"@thednp/shorty\";\n\nimport { addListener } from \"@thednp/event-listener\";\n\nimport Alert from \"../components/alert\";\nimport Button from \"../components/button\";\nimport Carousel from \"../components/carousel\";\nimport Collapse from \"../components/collapse\";\nimport Dropdown from \"../components/dropdown\";\nimport Modal from \"../components/modal\";\nimport Offcanvas from \"../components/offcanvas\";\nimport Popover from \"../components/popover\";\nimport ScrollSpy from \"../components/scrollspy\";\nimport Tab from \"../components/tab\";\nimport Toast from \"../components/toast\";\nimport Tooltip from \"../components/tooltip\";\n\nconst componentsList = new Map<\n string,\n | typeof Alert\n | typeof Button\n | typeof Carousel\n | typeof Collapse\n | typeof Dropdown\n | typeof Modal\n | typeof Offcanvas\n | typeof Popover\n | typeof ScrollSpy\n | typeof Tab\n | typeof Toast\n | typeof Tooltip\n>();\n\ntype Component =\n | Alert\n | Button\n | Carousel\n | Collapse\n | Dropdown\n | Modal\n | Offcanvas\n | Popover\n | ScrollSpy\n | Tab\n | Toast\n | Tooltip;\n\n[\n Alert,\n Button,\n Carousel,\n Collapse,\n Dropdown,\n Modal,\n Offcanvas,\n Popover,\n ScrollSpy,\n Tab,\n Toast,\n Tooltip,\n].forEach((c) => componentsList.set(c.prototype.name, c));\n\n/**\n * Initialize all matched `Element`s for one component.\n *\n * @param callback\n * @param collection\n */\nconst initComponentDataAPI = (\n callback: (el: Element) => Component,\n collection: HTMLCollectionOf | Element[],\n) => {\n [...collection].forEach((x) => callback(x));\n};\n\n/**\n * Remove one component from a target container element or all in the page.\n *\n * @param component the component name\n * @param context parent `Node`\n */\nconst removeComponentDataAPI = (component: string, context: ParentNode) => {\n const compData = Data.getAllFor(component) as Map;\n\n if (compData) {\n [...compData].forEach(([element, instance]) => {\n if (context.contains(element)) {\n (instance as T & { dispose: () => void }).dispose();\n }\n });\n }\n};\n\n/**\n * Initialize all BSN components for a target container.\n *\n * @param context parent `Node`\n */\nexport const initCallback = (context?: ParentNode) => {\n const lookUp = context && context.nodeName ? context : document;\n const elemCollection = [...getElementsByTagName(\"*\", lookUp)];\n\n componentsList.forEach((cs) => {\n const { init, selector } = cs;\n initComponentDataAPI(\n init,\n elemCollection.filter((item) => matches(item, selector)),\n );\n });\n};\n\n/**\n * Remove all BSN components for a target container.\n *\n * @param context parent `Node`\n */\nexport const removeDataAPI = (context?: ParentNode) => {\n const lookUp = context && context.nodeName ? context : document;\n\n componentsList.forEach((comp) => {\n removeComponentDataAPI(comp.prototype.name, lookUp);\n });\n};\n\n// Bulk initialize all components\nif (document.body) initCallback();\nelse {\n addListener(document, \"DOMContentLoaded\", () => initCallback(), {\n once: true,\n });\n}\n"],"names":["Me","De","$","ze","Ie","Pe","st","rt","ct","lt","ft","gt","vt","Et","ht","yt","Dt","Ot","xt","Wt","Re","qt","en","nn","on","sn","fn","_t","$t","M","W","On","t","e","Yt","R","n","o","s","Q","j","ee","Wn","Qn","Kn","qn","Gn","v","u","i","E","L","Xn","I","N","K","q","d","C","ne","G","f","ce","ae","no","r","a","l","ro","P","S","ao","p","c","g","A","uo","po","go","mo","vo","O","ie","m","bo","Eo","ue","x","le","de","yo","b","y","wo","w","So","pe","k","ge","me","ve","he","No","B","V","h","ye","we","To","Lo","Fo","Bo","Se","Ho","ke","Wo","Ro","fadeClass","showClass","dataBsDismiss","alertString","alertComponent","isDisabled","target","hasClass","getAttribute","Version","version","BaseComponent","config","element","isElement","isString","querySelector","prevInstance","Data","ObjectKeys","normalizeOptions","prop","alertSelector","alertDismissSelector","getAlertInstance","getInstance","alertInitCallback","Alert","closeAlertEvent","createCustomEvent","closedAlertEvent","alertTransitionEnd","self","dispatchEvent","dismiss","removeClass","emulateTransitionEnd","add","action","addListener","removeListener","close","mouseclickEvent","activeClass","dataBsToggle","buttonString","buttonComponent","buttonSelector","getButtonInstance","buttonInitCallback","Button","setAttribute","ariaPressed","isActive","addClass","dataBsTarget","carouselString","carouselComponent","dataBsParent","dataBsContainer","getTargetElement","targetAttr","doc","getDocument","att","attValue","closest","carouselSelector","carouselItem","dataBsSlideTo","dataBsSlide","pausedClass","carouselDefaults","getCarouselInstance","carouselInitCallback","Carousel","startX","currentX","endX","carouselSlideEvent","carouselSlidEvent","carouselTransitionEndHandler","index","direction","slides","options","activeItem","getActiveIndex","orientation","directionClass","Timer","carouselPauseHandler","carouselResumeHandler","carouselIndicatorHandler","newIndex","carouselControlsHandler","carouselKeyHandler","code","querySelectorAll","isElementInScrollRange","RTL","isRTL","keyArrowRight","keyArrowLeft","carouselDragHandler","carouselPointerDownHandler","controls","indicators","el","toggleCarouselTouchHandlers","carouselPointerMoveHandler","carouselPointerUpHandler","activateCarouselIndicator","pointermoveEvent","passiveHandler","pointerupEvent","getElementsByClassName","activeIndex","transitionItem","matches","ar","isPaused","idx","next","eventProperties","ObjectAssign","getElementTransitionDuration","reflow","touch","pause","interval","keyboard","mouseenterEvent","mouseleaveEvent","pointerdownEvent","touchstartEvent","dragstartEvent","arrow","indicator","keydownEvent","isAnimating","clone","collapsingClass","collapseString","collapseComponent","collapseSelector","collapseToggleSelector","collapseDefaults","getCollapseInstance","collapseInitCallback","Collapse","showCollapseEvent","shownCollapseEvent","hideCollapseEvent","hiddenCollapseEvent","expandCollapse","parent","triggers","noop","setElementStyle","btn","ariaExpanded","collapseContent","collapseClickHandler","trigger","isHTMLElement","activeCollapse","activeCollapseInstance","_","dropdownMenuClasses","dropdownComponent","dropdownMenuClass","isEmptyAnchor","parentAnchor","hasAttribute","dropdownString","dropupString","dropstartString","dropendString","dropdownClasses","dropdownSelector","getDropdownInstance","dropdownInitCallback","Dropdown","dropdownMenuEndClass","verticalClass","horizontalClass","menuFocusTags","dropdownDefaults","showDropdownEvent","shownDropdownEvent","hideDropdownEvent","hiddenDropdownEvent","updatedDropdownEvent","styleDropdown","menu","parentElement","offset","getElementStyle","menuEnd","style","positionClass","dropdownMargin","dropdownPosition","menuWidth","menuHeight","clientWidth","clientHeight","getDocumentElement","targetLeft","targetTop","targetWidth","targetHeight","getBoundingClientRect","leftFullExceed","rightFullExceed","bottomExceed","bottomFullExceed","topExceed","leftExceed","rightExceed","posAjust","margins","getMenuItems","firstElementChild","toggleDropdownDismiss","dropdownDismissHandler","focusEvent","dropdownPreventScroll","keyupEvent","dropdownKeyHandler","getCurrentOpenDropdown","currentParent","type","isForm","mousedownEvent","dropdownClickHandler","keyArrowDown","keyArrowUp","activeElement","open","menuItems","focus","keyEscape","PositionObserver","currentElement","currentInstance","modalString","modalComponent","offcanvasComponent","fixedTopClass","fixedBottomClass","stickyTopClass","positionStickyClass","getFixedItems","resetScrollbar","bd","getDocumentBody","fixedItems","fixed","measureScrollbar","innerWidth","getWindow","setScrollbar","overflow","bodyPad","sbWidth","itemPadValue","itemMValue","offcanvasString","popupContainer","createElement","appendPopup","customContainer","containerIsBody","isNode","lookup","BODY","removePopup","hasPopup","backdropString","modalBackdropClass","offcanvasBackdropClass","modalActiveSelector","offcanvasActiveSelector","overlay","getCurrentOpen","toggleOverlayType","isModal","targetClass","appendOverlay","hasFade","showOverlay","hideOverlay","removeOverlay","isVisible","modalSelector","modalToggleSelector","modalDismissSelector","modalStaticClass","modalDefaults","getModalInstance","modalInitCallback","Modal","showModalEvent","shownModalEvent","hideModalEvent","hiddenModalEvent","setModalScrollbar","scrollbarWidth","scrollHeight","modalHeight","modalScrollHeight","modalOverflow","padStyle","toggleModalDismiss","modalDismissHandler","modalKeyHandler","afterModalHide","relatedTarget","focusElement","toggleFocusTrap","afterModalShow","beforeModalShow","removeAttribute","ariaHidden","ariaModal","beforeModalHide","modalClickHandler","currentTarget","isStatic","modalDialog","backdrop","selectedText","targetInsideDialog","staticTransitionEnd","duration","overlayDelay","currentOpen","that","callback","offcanvasSelector","offcanvasToggleSelector","offcanvasDismissSelector","offcanvasTogglingClass","offcanvasDefaults","getOffcanvasInstance","offcanvasInitCallback","Offcanvas","showOffcanvasEvent","shownOffcanvasEvent","hideOffcanvasEvent","hiddenOffcanvasEvent","setOffCanvasScrollbar","toggleOffCanvasDismiss","offcanvasKeyDismissHandler","offcanvasDismissHandler","beforeOffcanvasShow","showOffcanvasComplete","beforeOffcanvasHide","hideOffcanvasComplete","offcanvasTriggerHandler","offCanvasDismiss","selection","visibleTrigger","isOpen","popoverString","popoverComponent","tooltipString","getTipTemplate","tipType","isTooltip","bodyClass","header","body","tipClassPositions","styleTip","tipClasses","tooltip","container","offsetParent","scrollLeft","scrollTop","getNodeScroll","tipWidth","tipHeight","htmlcw","htmlch","htmlow","placement","parentCWidth","parentOWidth","fixedParent","leftBoundry","rightBoundry","observerEntry","elemWidth","elemHeight","elemRectLeft","elemRectRight","elemRectTop","elemOffsetLeft","elemOffsetTop","getRectRelativeToOffsetParent","topPosition","bottomPosition","leftPosition","rightPosition","arrowTop","arrowLeft","arrowRight","arrowWidth","arrowHeight","arrowAdjust","horizontals","verticals","updatedTooltipEvent","toLowerCase","tooltipDefaults","dataOriginalTitle","tooltipComponent","setHtml","content","sanitizeFn","dirty","isFunction","tempDocument","isNodeList","isArray","createTip","id","title","template","animation","customClass","dismissible","btnClose","tipString","tipPositions","titleParts","contentParts","placementClass","tooltipTemplate","htmlMarkup","tooltipHeader","tooltipBody","tempTitle","tempContent","tempBtn","getElementContainer","majorBlockTags","containers","parentNode","getParentNode","isShadowRoot","isTableElement","tooltipSelector","titleAttr","getTooltipInstance","tooltipInitCallback","Tooltip","removeTooltip","ariaDescribedBy","hasTip","disposeTooltipComplete","toggleTooltipTitle","toggleTooltipAction","tooltipShownAction","shownTooltipEvent","tooltipHiddenAction","hiddenTooltipEvent","toggleTooltipOpenHandlers","parentModal","parentOffcanvas","titleAtt","tipComponent","elem","getUID","position","outTimer","showTooltipEvent","delay","hideTooltipEvent","enabled","tr","mousehoverEvent","focusinEvent","focusoutEvent","isApple","popoverSelector","popoverDefaults","getPopoverInstance","popoverInitCallback","Popover","scrollspyString","scrollspyComponent","scrollspySelector","scrollSpyAnchorSelector","scrollspyDefaults","getScrollSpyInstance","scrollspyInitCallback","ScrollSpy","activateScrollSpy","updateSpyTargets","_itemsLength","_observables","links","getElementsByTagName","link","hash","targetItem","clear","item","activate","parentItem","parentLink","getOffset","scrollTarget","spyTarget","_activeItem","entries","newActiveItem","firstOffset","offsetTop","nextTarget","nextOffsetTop","getElementById","_observer","_scrollTo","tabString","tabComponent","tabSelector","getTabInstance","tabInitCallback","Tab","showTabEvent","shownTabEvent","hideTabEvent","hiddenTabEvent","tabPrivate","triggerTabEnd","tabContent","nav","triggerTabShow","nextContent","tab","currentHeight","nextHeight","triggerTabHide","getActiveTab","activeTabs","getParentDropdown","dropdown","tabClickHandler","firstTab","firstTabContent","ariaSelected","activeDropdown","toggleTab","toastString","toastComponent","toastSelector","toastDismissSelector","toastToggleSelector","showingClass","hideClass","toastDefaults","getToastInstance","toastInitCallback","Toast","showToastEvent","shownToastEvent","hideToastEvent","hiddenToastEvent","showToastComplete","hideToastComplete","hideToast","showToast","toastClickHandler","interactiveToastHandler","isShown","hide","componentsList","initComponentDataAPI","collection","removeComponentDataAPI","component","context","compData","instance","initCallback","lookUp","elemCollection","cs","init","selector","removeDataAPI","comp"],"mappings":"gFAAK,MAA6DA,GAAK,mBAAoBC,GAAK,gBAAuCC,GAAI,cAA0DC,GAAK,aAAcC,GAAK,eAAgBC,GAAK,gBAAuPC,GAAK,QAASC,GAAK,UAAWC,GAAK,WAA0EC,GAAK,UAA4BC,GAAK,QAAsBC,EAAK,QAA0BC,GAAK,YAA6BC,GAAK,QAASC,GAAK,aAAcC,GAAK,aAAmKC,GAAK,cAAoCC,GAAK,cAAeC,GAAK,YAAsJC,GAAK,aAmDzmCC,GA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KAAM,EAAA,CACP","x_google_ignoreList":[0,1,27]} \ No newline at end of file diff --git a/dist/bootstrap-native.js b/dist/bootstrap-native.js index b947531c..a4b3c9bf 100644 --- a/dist/bootstrap-native.js +++ b/dist/bootstrap-native.js @@ -1,2 +1,2 @@ -var BSN=function(N){"use strict";const Ns="aria-describedby",ue="aria-expanded",Xt="aria-hidden",ge="aria-modal",Ms="aria-pressed",Ie="aria-selected",ke="focus",Le="focusin",Bs="focusout",pe="keydown",Mo="keyup",H="click",Rs="mousedown",Bo="hover",me="mouseenter",Oe="mouseleave",Ro="pointerdown",Wo="pointermove",Fo="pointerup",Ne="touchstart",jo="dragstart",zo='a[href], button, input, textarea, select, details, [tabindex]:not([tabindex="-1"]',Me="ArrowDown",Be="ArrowUp",Ws="ArrowLeft",Fs="ArrowRight",Re="Escape",Ko="transitionDuration",qo="transitionDelay",We="transitionend",js="transitionProperty",Vo=()=>{const e=/(iPhone|iPod|iPad)/;return navigator?.userAgentData?.brands.some(t=>e.test(t.brand))||e.test(navigator?.userAgent)||!1},ve=()=>{},Xo=(e,t,s,n)=>{const o=n||!1;e.addEventListener(t,s,o)},Yo=(e,t,s,n)=>{const o=n||!1;e.removeEventListener(t,s,o)},X=(e,t)=>e.getAttribute(t),Yt=(e,t)=>e.hasAttribute(t),I=(e,t,s)=>e.setAttribute(t,s),yt=(e,t)=>e.removeAttribute(t),d=(e,...t)=>{e.classList.add(...t)},v=(e,...t)=>{e.classList.remove(...t)},h=(e,t)=>e.classList.contains(t),Ut=e=>e!=null&&typeof e=="object"||!1,x=e=>Ut(e)&&typeof e.nodeType=="number"&&[1,2,3,4,5,6,7,8,9,10,11].some(t=>e.nodeType===t)||!1,Y=e=>x(e)&&e.nodeType===1||!1,Rt=new Map,Ct={data:Rt,set:(e,t,s)=>{Y(e)&&(Rt.has(t)||Rt.set(t,new Map),Rt.get(t).set(e,s))},getAllFor:e=>Rt.get(e)||null,get:(e,t)=>{if(!Y(e)||!t)return null;const s=Ct.getAllFor(t);return e&&s&&s.get(e)||null},remove:(e,t)=>{const s=Ct.getAllFor(t);!s||!Y(e)||(s.delete(e),s.size===0&&Rt.delete(t))}},R=(e,t)=>Ct.get(e,t),zs=e=>e?.trim().replace(/(?:^\w|[A-Z]|\b\w)/g,(t,s)=>s===0?t.toLowerCase():t.toUpperCase()).replace(/\s+/g,""),Gt=e=>typeof e=="string"||!1,Ks=e=>Ut(e)&&e.constructor.name==="Window"||!1,qs=e=>x(e)&&e.nodeType===9||!1,b=e=>qs(e)?e:x(e)?e.ownerDocument:Ks(e)?e.document:globalThis.document,rt=(e,...t)=>Object.assign(e,...t),ut=e=>{if(!e)return;if(Gt(e))return b().createElement(e);const{tagName:t}=e,s=ut(t);if(!s)return;const n={...e};return delete n.tagName,rt(s,n)},w=(e,t)=>e.dispatchEvent(t),W=(e,t,s)=>{const n=getComputedStyle(e,s),o=t.replace("webkit","Webkit").replace(/([A-Z])/g,"-$1").toLowerCase();return n.getPropertyValue(o)},Uo=e=>{const t=W(e,js),s=W(e,qo),n=s.includes("ms")?1:1e3,o=t&&t!=="none"?parseFloat(s)*n:0;return Number.isNaN(o)?0:o},Qt=e=>{const t=W(e,js),s=W(e,Ko),n=s.includes("ms")?1:1e3,o=t&&t!=="none"?parseFloat(s)*n:0;return Number.isNaN(o)?0:o},S=(e,t)=>{let s=0;const n=new Event(We),o=Qt(e),i=Uo(e);if(o){const r=c=>{c.target===e&&(t.apply(e,[c]),e.removeEventListener(We,r),s=1)};e.addEventListener(We,r),setTimeout(()=>{s||w(e,n)},o+i+17)}else t.apply(e,[n])},ct=(e,t)=>e.focus(t),Vs=e=>["true",!0].includes(e)?!0:["false",!1].includes(e)?!1:["null","",null,void 0].includes(e)?null:e!==""&&!Number.isNaN(+e)?+e:e,be=e=>Object.entries(e),Go=(e,t,s,n)=>{if(!Y(e))return t;const o={...s},i={...e.dataset},r={...t},c={},a="title";return be(i).forEach(([l,f])=>{const u=typeof l=="string"&&l.includes(n)?zs(l.replace(n,"")):zs(l);c[u]=Vs(f)}),be(o).forEach(([l,f])=>{o[l]=Vs(f)}),be(t).forEach(([l,f])=>{l in o?r[l]=o[l]:l in c?r[l]=c[l]:r[l]=l===a?X(e,a):f}),r},Xs=e=>Object.keys(e),E=(e,t)=>{const s=new CustomEvent(e,{cancelable:!0,bubbles:!0});return Ut(t)&&rt(s,t),s},Zt={passive:!0},St=e=>e.offsetHeight,P=(e,t)=>{be(t).forEach(([s,n])=>{if(n&&Gt(s)&&s.includes("--"))e.style.setProperty(s,n);else{const o={};o[s]=n,rt(e.style,o)}})},Fe=e=>Ut(e)&&e.constructor.name==="Map"||!1,Qo=e=>typeof e=="number"||!1,gt=new Map,g={set:(e,t,s,n)=>{Y(e)&&(n&&n.length?(gt.has(e)||gt.set(e,new Map),gt.get(e).set(n,setTimeout(t,s))):gt.set(e,setTimeout(t,s)))},get:(e,t)=>{if(!Y(e))return null;const s=gt.get(e);return t&&s&&Fe(s)?s.get(t)||null:Qo(s)?s:null},clear:(e,t)=>{if(!Y(e))return;const s=gt.get(e);t&&t.length&&Fe(s)?(clearTimeout(s.get(t)),s.delete(t),s.size===0&>.delete(e)):(clearTimeout(s),gt.delete(e))}},Jt=e=>e.toLowerCase(),U=(e,t)=>(x(t)?t:b()).querySelectorAll(e),je=new Map;function Zo(e){const{shiftKey:t,code:s}=e,n=b(this),o=[...U(zo,this)].filter(c=>!Yt(c,"disabled")&&!X(c,Xt));if(!o.length)return;const i=o[0],r=o[o.length-1];s==="Tab"&&(t&&n.activeElement===i?(r.focus(),e.preventDefault()):!t&&n.activeElement===r&&(i.focus(),e.preventDefault()))}const Jo=e=>je.has(e)===!0,we=e=>{const t=Jo(e);(t?Yo:Xo)(e,"keydown",Zo),t?je.delete(e):je.set(e,!0)},D=e=>Y(e)&&"offsetWidth"in e||!1,Pt=(e,t)=>{const{width:s,height:n,top:o,right:i,bottom:r,left:c}=e.getBoundingClientRect();let a=1,l=1;if(t&&D(e)){const{offsetWidth:f,offsetHeight:u}=e;a=f>0?Math.round(s)/f:1,l=u>0?Math.round(n)/u:1}return{width:s/a,height:n/l,top:o/l,right:i/a,bottom:r/l,left:c/a,x:c/a,y:o/l}},_t=e=>b(e).body,at=e=>b(e).documentElement,ti=e=>{const t=Ks(e),s=t?e.scrollX:e.scrollLeft,n=t?e.scrollY:e.scrollTop;return{x:s,y:n}},Ys=e=>x(e)&&e.constructor.name==="ShadowRoot"||!1,ei=e=>e.nodeName==="HTML"?e:Y(e)&&e.assignedSlot||x(e)&&e.parentNode||Ys(e)&&e.host||at(e),Us=e=>e?qs(e)?e.defaultView:x(e)?e?.ownerDocument?.defaultView:e:window,si=e=>x(e)&&["TABLE","TD","TH"].includes(e.nodeName)||!1,Gs=(e,t)=>e.matches(t),ni=e=>{if(!D(e))return!1;const{width:t,height:s}=Pt(e),{offsetWidth:n,offsetHeight:o}=e;return Math.round(t)!==n||Math.round(s)!==o},oi=(e,t,s)=>{const n=D(t),o=Pt(e,n&&ni(t)),i={x:0,y:0};if(n){const r=Pt(t,!0);i.x=r.x+t.clientLeft,i.y=r.y+t.clientTop}return{x:o.left+s.x-i.x,y:o.top+s.y-i.y,width:o.width,height:o.height}};let Qs=0,Zs=0;const Wt=new Map,Js=(e,t)=>{let s=t?Qs:Zs;if(t){const n=Js(e),o=Wt.get(n)||new Map;Wt.has(n)||Wt.set(n,o),Fe(o)&&!o.has(t)?(o.set(t,s),Qs+=1):s=o.get(t)}else{const n=e.id||e;Wt.has(n)?s=Wt.get(n):(Wt.set(n,s),Zs+=1)}return s},ii=e=>Array.isArray(e)||!1,tn=e=>{if(!x(e))return!1;const{top:t,bottom:s}=Pt(e),{clientHeight:n}=at(e);return t<=n&&s>=0},ri=e=>typeof e=="function"||!1,ci=e=>Ut(e)&&e.constructor.name==="NodeList"||!1,pt=e=>at(e).dir==="rtl",M=(e,t)=>!e||!t?null:e.closest(t)||M(e.getRootNode().host,t)||null,_=(e,t)=>Y(e)?e:(Y(t)?t:b()).querySelector(e),ze=(e,t)=>(x(t)?t:b()).getElementsByTagName(e),ai=(e,t)=>b(t).getElementById(e),lt=(e,t)=>(t&&x(t)?t:b()).getElementsByClassName(e),Ft={},en=e=>{const{type:t,currentTarget:s}=e;Ft[t].forEach((n,o)=>{s===o&&n.forEach((i,r)=>{r.apply(o,[e]),typeof i=="object"&&i.once&&L(o,t,r,i)})})},k=(e,t,s,n)=>{Ft[t]||(Ft[t]=new Map);const o=Ft[t];o.has(e)||o.set(e,new Map);const i=o.get(e),{size:r}=i;i.set(s,n),r||e.addEventListener(t,en,n)},L=(e,t,s,n)=>{const o=Ft[t],i=o&&o.get(e),r=i&&i.get(s),c=r!==void 0?r:n;i&&i.has(s)&&i.delete(s),o&&(!i||!i.size)&&o.delete(e),(!o||!o.size)&&delete Ft[t],(!i||!i.size)&&e.removeEventListener(t,en,c)},O="fade",p="show",Ee="data-bs-dismiss",Te="alert",sn="Alert",ot=e=>h(e,"disabled")||X(e,"disabled")==="true",li="5.1.0";class J{constructor(t,s){let n;try{if(Y(t))n=t;else if(Gt(t)){if(n=_(t),!n)throw Error(`"${t}" is not a valid selector.`)}else throw Error("your target is not an instance of HTMLElement.")}catch(i){throw Error(`${this.name} Error: ${i.message}`)}const o=Ct.get(n,this.name);o&&o._toggleEventListeners(),this.element=n,this.options=this.defaults&&Xs(this.defaults).length?Go(n,this.defaults,s||{},"bs"):{},Ct.set(n,this.name,this)}get version(){return li}get name(){return"BaseComponent"}get defaults(){return{}}_toggleEventListeners=()=>{};dispose(){Ct.remove(this.element,this.name),Xs(this).forEach(t=>{delete this[t]})}}const di=`.${Te}`,hi=`[${Ee}="${Te}"]`,fi=e=>R(e,sn),ui=e=>new Ke(e),nn=E(`close.bs.${Te}`),gi=E(`closed.bs.${Te}`),on=e=>{const{element:t}=e;w(t,gi),e._toggleEventListeners(),e.dispose(),t.remove()};class Ke extends J{static selector=di;static init=ui;static getInstance=fi;dismiss;constructor(t){super(t),this.dismiss=_(hi,this.element),this._toggleEventListeners(!0)}get name(){return sn}close=t=>{const{element:s,dismiss:n}=this;!s||!h(s,p)||t&&n&&ot(n)||(w(s,nn),!nn.defaultPrevented&&(v(s,p),h(s,O)?S(s,()=>on(this)):on(this)))};_toggleEventListeners=t=>{const s=t?k:L,{dismiss:n,close:o}=this;n&&s(n,H,o)};dispose(){this._toggleEventListeners(),super.dispose()}}const T="active",it="data-bs-toggle",pi="button",rn="Button",mi=`[${it}="${pi}"]`,vi=e=>R(e,rn),bi=e=>new qe(e);class qe extends J{static selector=mi;static init=bi;static getInstance=vi;constructor(t){super(t);const{element:s}=this;this.isActive=h(s,T),I(s,Ms,String(!!this.isActive)),this._toggleEventListeners(!0)}get name(){return rn}toggle=t=>{t&&t.preventDefault();const{element:s,isActive:n}=this;if(ot(s))return;(n?v:d)(s,T),I(s,Ms,n?"false":"true"),this.isActive=h(s,T)};_toggleEventListeners=t=>{(t?k:L)(this.element,H,this.toggle)};dispose(){this._toggleEventListeners(),super.dispose()}}const Ve="data-bs-target",xt="carousel",cn="Carousel",an="data-bs-parent",wi="data-bs-container",j=e=>{const t=[Ve,an,wi,"href"],s=b(e);return t.map(n=>{const o=X(e,n);return o?n===an?M(e,o):_(o,s):null}).filter(n=>n)[0]},te=`[data-bs-ride="${xt}"]`,tt=`${xt}-item`,Xe="data-bs-slide-to",mt="data-bs-slide",vt="paused",ln={pause:"hover",keyboard:!1,touch:!0,interval:5e3},dt=e=>R(e,cn),Ei=e=>new Je(e);let ee=0,$e=0,Ye=0;const Ue=E(`slide.bs.${xt}`),Ge=E(`slid.bs.${xt}`),dn=e=>{const{index:t,direction:s,element:n,slides:o,options:i}=e;if(e.isAnimating){const r=Ze(e),c=s==="left"?"next":"prev",a=s==="left"?"start":"end";d(o[t],T),v(o[t],`${tt}-${c}`),v(o[t],`${tt}-${a}`),v(o[r],T),v(o[r],`${tt}-${a}`),w(n,Ge),g.clear(n,mt),e.cycle&&!b(n).hidden&&i.interval&&!e.isPaused&&e.cycle()}};function Ti(){const e=dt(this);e&&!e.isPaused&&!g.get(this,vt)&&d(this,vt)}function $i(){const e=dt(this);e&&e.isPaused&&!g.get(this,vt)&&e.cycle()}function yi(e){e.preventDefault();const t=M(this,te)||j(this),s=t&&dt(t);if(ot(this)||!s||s.isAnimating)return;const n=+(X(this,Xe)||0);this&&!h(this,T)&&!Number.isNaN(n)&&s.to(n)}function Ci(e){e.preventDefault();const t=M(this,te)||j(this),s=t&&dt(t);if(ot(this)||!s||s.isAnimating)return;const n=X(this,mt);n==="next"?s.next():n==="prev"&&s.prev()}const Si=({code:e,target:t})=>{const s=b(t),[n]=[...U(te,s)].filter(a=>tn(a)),o=dt(n);if(!o||o.isAnimating||/textarea|input|select/i.test(t.nodeName))return;const i=pt(n);e===(i?Fs:Ws)?o.prev():e===(i?Ws:Fs)&&o.next()};function hn(e){const{target:t}=e,s=dt(this);s&&s.isTouch&&(s.indicator&&!s.indicator.contains(t)||!s.controls.includes(t))&&(e.stopImmediatePropagation(),e.stopPropagation(),e.preventDefault())}function Pi(e){const{target:t}=e,s=dt(this);if(!s||s.isAnimating||s.isTouch)return;const{controls:n,indicators:o}=s;[...n,...o].every(i=>i===t||i.contains(t))||(ee=e.pageX,this.contains(t)&&(s.isTouch=!0,fn(s,!0)))}const _i=e=>{$e=e.pageX},xi=e=>{const{target:t}=e,s=b(t),n=[...U(te,s)].map(c=>dt(c)).find(c=>c.isTouch);if(!n)return;const{element:o,index:i}=n,r=pt(o);Ye=e.pageX,n.isTouch=!1,fn(n),!s.getSelection()?.toString().length&&o.contains(t)&&Math.abs(ee-Ye)>120&&($eee&&n.to(i+(r?1:-1))),ee=0,$e=0,Ye=0},Qe=(e,t)=>{const{indicators:s}=e;[...s].forEach(n=>v(n,T)),e.indicators[t]&&d(s[t],T)},fn=(e,t)=>{const{element:s}=e,n=t?k:L;n(b(s),Wo,_i,Zt),n(b(s),Fo,xi,Zt)},Ze=e=>{const{slides:t,element:s}=e,n=_(`.${tt}.${T}`,s);return n?[...t].indexOf(n):-1};class Je extends J{static selector=te;static init=Ei;static getInstance=dt;constructor(t,s){super(t,s);const{element:n}=this;this.direction=pt(n)?"right":"left",this.isTouch=!1,this.slides=lt(tt,n);const{slides:o}=this;if(o.length<2)return;const i=Ze(this),r=[...o].find(l=>Gs(l,`.${tt}-next`));this.index=i;const c=b(n);this.controls=[...U(`[${mt}]`,n),...U(`[${mt}][${Ve}="#${n.id}"]`,c)].filter((l,f,u)=>f===u.indexOf(l)),this.indicator=_(`.${xt}-indicators`,n),this.indicators=[...this.indicator?U(`[${Xe}]`,this.indicator):[],...U(`[${Xe}][${Ve}="#${n.id}"]`,c)].filter((l,f,u)=>f===u.indexOf(l));const{options:a}=this;this.options.interval=a.interval===!0?ln.interval:a.interval,r?this.index=[...o].indexOf(r):i<0&&(this.index=0,d(o[0],T),this.indicators.length&&Qe(this,0)),this.indicators.length&&Qe(this,this.index),this._toggleEventListeners(!0),a.interval&&this.cycle()}get name(){return cn}get defaults(){return ln}get isPaused(){return h(this.element,vt)}get isAnimating(){return _(`.${tt}-next,.${tt}-prev`,this.element)!==null}cycle(){const{element:t,options:s,isPaused:n,index:o}=this;g.clear(t,xt),n&&(g.clear(t,vt),v(t,vt)),g.set(t,()=>{this.element&&!this.isPaused&&!this.isTouch&&tn(t)&&this.to(o+1)},s.interval,xt)}pause(){const{element:t,options:s}=this;this.isPaused||!s.interval||(d(t,vt),g.set(t,()=>{},1,vt))}next(){this.isAnimating||this.to(this.index+1)}prev(){this.isAnimating||this.to(this.index-1)}to(t){const{element:s,slides:n,options:o}=this,i=Ze(this),r=pt(s);let c=t;if(this.isAnimating||i===c||g.get(s,mt))return;ic||i===n.length-1&&c===0)&&(this.direction=r?"left":"right");const{direction:a}=this;c<0?c=n.length-1:c>=n.length&&(c=0);const l=a==="left"?"next":"prev",f=a==="left"?"start":"end",u={relatedTarget:n[c],from:i,to:c,direction:a};rt(Ue,u),rt(Ge,u),w(s,Ue),!Ue.defaultPrevented&&(this.index=c,Qe(this,c),Qt(n[c])&&h(s,"slide")?g.set(s,()=>{d(n[c],`${tt}-${l}`),St(n[c]),d(n[c],`${tt}-${f}`),d(n[i],`${tt}-${f}`),S(n[c],()=>this.slides&&this.slides.length&&dn(this))},0,mt):(d(n[c],T),v(n[i],T),g.set(s,()=>{g.clear(s,mt),s&&o.interval&&!this.isPaused&&this.cycle(),w(s,Ge)},0,mt)))}_toggleEventListeners=t=>{const{element:s,options:n,slides:o,controls:i,indicators:r}=this,{touch:c,pause:a,interval:l,keyboard:f}=n,u=t?k:L;a&&l&&(u(s,me,Ti),u(s,Oe,$i)),c&&o.length>2&&(u(s,Ro,Pi,Zt),u(s,Ne,hn,{passive:!1}),u(s,jo,hn,{passive:!1})),i.length&&i.forEach($=>{u($,H,Ci)}),r.length&&r.forEach($=>{u($,H,yi)}),f&&u(b(s),pe,Si)};dispose(){const{isAnimating:t}=this,s={...this,isAnimating:t};this._toggleEventListeners(),super.dispose(),s.isAnimating&&S(s.slides[s.index],()=>{dn(s)})}}const Dt="collapsing",z="collapse",un="Collapse",Di=`.${z}`,gn=`[${it}="${z}"]`,Ai={parent:null},ye=e=>R(e,un),Hi=e=>new ts(e),pn=E(`show.bs.${z}`),Ii=E(`shown.bs.${z}`),mn=E(`hide.bs.${z}`),ki=E(`hidden.bs.${z}`),Li=e=>{const{element:t,parent:s,triggers:n}=e;w(t,pn),pn.defaultPrevented||(g.set(t,ve,17),s&&g.set(s,ve,17),d(t,Dt),v(t,z),P(t,{height:`${t.scrollHeight}px`}),S(t,()=>{g.clear(t),s&&g.clear(s),n.forEach(o=>I(o,ue,"true")),v(t,Dt),d(t,z),d(t,p),P(t,{height:""}),w(t,Ii)}))},vn=e=>{const{element:t,parent:s,triggers:n}=e;w(t,mn),mn.defaultPrevented||(g.set(t,ve,17),s&&g.set(s,ve,17),P(t,{height:`${t.scrollHeight}px`}),v(t,z),v(t,p),d(t,Dt),St(t),P(t,{height:"0px"}),S(t,()=>{g.clear(t),s&&g.clear(s),n.forEach(o=>I(o,ue,"false")),v(t,Dt),d(t,z),P(t,{height:""}),w(t,ki)}))},Oi=e=>{const{target:t}=e,s=t&&M(t,gn),n=s&&j(s),o=n&&ye(n);s&&ot(s)||o&&(o.toggle(),s?.tagName==="A"&&e.preventDefault())};class ts extends J{static selector=Di;static init=Hi;static getInstance=ye;constructor(t,s){super(t,s);const{element:n,options:o}=this,i=b(n);this.triggers=[...U(gn,i)].filter(r=>j(r)===n),this.parent=D(o.parent)?o.parent:Gt(o.parent)?j(n)||_(o.parent,i):null,this._toggleEventListeners(!0)}get name(){return un}get defaults(){return Ai}hide(){const{triggers:t,element:s}=this;g.get(s)||(vn(this),t.length&&t.forEach(n=>d(n,`${z}d`)))}show(){const{element:t,parent:s,triggers:n}=this;let o,i;s&&(o=[...U(`.${z}.${p}`,s)].find(r=>ye(r)),i=o&&ye(o)),(!s||!g.get(s))&&!g.get(t)&&(i&&o!==t&&(vn(i),i.triggers.forEach(r=>{d(r,`${z}d`)})),Li(this),n.length&&n.forEach(r=>v(r,`${z}d`)))}toggle(){h(this.element,p)?this.hide():this.show()}_toggleEventListeners=t=>{const s=t?k:L,{triggers:n}=this;n.length&&n.forEach(o=>{s(o,H,Oi)})};dispose(){this._toggleEventListeners(),super.dispose()}}const Ni=e=>e!=null&&typeof e=="object"||!1,Mi=e=>Ni(e)&&typeof e.nodeType=="number"&&[1,2,3,4,5,6,7,8,9,10,11].some(t=>e.nodeType===t)||!1,bn=e=>Mi(e)&&e.nodeType===1||!1,Bi=e=>typeof e=="function"||!1,Ri="1.0.2",wn="PositionObserver Error";class es{entries;static version=Ri;_tick;_root;_callback;constructor(t,s){if(!Bi(t))throw new Error(`${wn}: ${t} is not a function.`);this.entries=new Map,this._callback=t,this._root=bn(s?.root)?s.root:document?.documentElement,this._tick=0}observe=t=>{if(!bn(t))throw new Error(`${wn}: ${t} is not an instance of Element.`);this._root.contains(t)&&this._new(t).then(s=>{s&&!this.getEntry(t)&&this.entries.set(t,s),this._tick||(this._tick=requestAnimationFrame(this._runCallback))})};unobserve=t=>{this.entries.has(t)&&this.entries.delete(t)};_runCallback=()=>{if(!this.entries.size)return;const t=new Promise(s=>{const n=[];this.entries.forEach(({target:o,boundingClientRect:i})=>{this._root.contains(o)&&this._new(o).then(({boundingClientRect:r,isIntersecting:c})=>{if(!c)return;const{left:a,top:l,bottom:f,right:u}=r;if(i.top!==l||i.left!==a||i.right!==u||i.bottom!==f){const $={target:o,boundingClientRect:r};this.entries.set(o,$),n.push($)}})}),s(n)});this._tick=requestAnimationFrame(async()=>{const s=await t;s.length&&this._callback(s,this),this._runCallback()})};_new=t=>new Promise(s=>{new IntersectionObserver(([n],o)=>{o.disconnect(),s(n)}).observe(t)});getEntry=t=>this.entries.get(t);disconnect=()=>{cancelAnimationFrame(this._tick),this.entries.clear(),this._tick=0}}const At=["dropdown","dropup","dropstart","dropend"],En="Dropdown",Tn="dropdown-menu",$n=e=>{const t=M(e,"A");return e.tagName==="A"&&Yt(e,"href")&&X(e,"href")?.slice(-1)==="#"||t&&Yt(t,"href")&&X(t,"href")?.slice(-1)==="#"},[et,ss,ns,os]=At,Wi=`[${it}="${et}"]`,se=e=>R(e,En),Fi=e=>new as(e),ji=`${Tn}-end`,yn=[et,ss],Cn=[ns,os],Sn=["A","BUTTON"],zi={offset:5,display:"dynamic"},is=E(`show.bs.${et}`),Pn=E(`shown.bs.${et}`),rs=E(`hide.bs.${et}`),_n=E(`hidden.bs.${et}`),xn=E(`updated.bs.${et}`),Dn=e=>{const{element:t,menu:s,parentElement:n,options:o}=e,{offset:i}=o;if(W(s,"position")==="static")return;const r=pt(t),c=h(s,ji);["margin","top","bottom","left","right"].forEach(F=>{const Nt={};Nt[F]="",P(s,Nt)});let l=At.find(F=>h(n,F))||et;const f={dropdown:[i,0,0],dropup:[0,0,i],dropstart:r?[-1,0,0,i]:[-1,i,0],dropend:r?[-1,i,0]:[-1,0,0,i]},u={dropdown:{top:"100%"},dropup:{top:"auto",bottom:"100%"},dropstart:r?{left:"100%",right:"auto"}:{left:"auto",right:"100%"},dropend:r?{left:"auto",right:"100%"}:{left:"100%",right:"auto"},menuStart:r?{right:"0",left:"auto"}:{right:"auto",left:"0"},menuEnd:r?{right:"auto",left:"0"}:{right:"0",left:"auto"}},{offsetWidth:$,offsetHeight:B}=s,{clientWidth:Z,clientHeight:st}=at(t),{left:m,top:V,width:Lt,height:Ot}=Pt(t),C=m-$-i<0,Et=m+$+Lt+i>=Z,ft=V+B+i>=st,nt=V+B+Ot+i>=st,zt=V-B-i<0,y=(!r&&c||r&&!c)&&m+Lt-$<0,K=(r&&c||!r&&!c)&&m+$>=Z;if(Cn.includes(l)&&C&&Et&&(l=et),l===ns&&(r?Et:C)&&(l=os),l===os&&(r?C:Et)&&(l=ns),l===ss&&zt&&!nt&&(l=et),l===et&&nt&&!zt&&(l=ss),Cn.includes(l)&&ft&&rt(u[l],{top:"auto",bottom:0}),yn.includes(l)&&(y||K)){let F={left:"auto",right:"auto"};!y&&K&&!r&&(F={left:"auto",right:0}),y&&!K&&r&&(F={left:0,right:"auto"}),F&&rt(u[l],F)}const Kt=f[l];P(s,{...u[l],margin:`${Kt.map(F=>F&&`${F}px`).join(" ")}`}),yn.includes(l)&&c&&c&&P(s,u[!r&&y||r&&K?"menuStart":"menuEnd"]),w(n,xn)},Ki=e=>Array.from(e.children).map(t=>{if(t&&Sn.includes(t.tagName))return t;const{firstElementChild:s}=t;return s&&Sn.includes(s.tagName)?s:null}).filter(t=>t),An=e=>{const{element:t,options:s,menu:n}=e,o=e.open?k:L,i=b(t);o(i,H,Hn),o(i,ke,Hn),o(i,pe,Vi),o(i,Mo,Xi),s.display==="dynamic"&&(e.open?e._observer.observe(n):e._observer.disconnect())},cs=e=>{const t=[...At,"btn-group","input-group"].map(s=>lt(`${s} ${p}`,b(e))).find(s=>s.length);if(t&&t.length)return[...t[0].children].find(s=>At.some(n=>n===X(s,it)))},Hn=e=>{const{target:t,type:s}=e;if(!D(t))return;const n=cs(t),o=n&&se(n);if(!o)return;const{parentElement:i,menu:r}=o,c=i&&i.contains(t)&&(t.tagName==="form"||M(t,"form")!==null);[H,Rs].includes(s)&&$n(t)&&e.preventDefault(),!c&&s!==ke&&t!==n&&t!==r&&o.hide()};function qi(e){const t=se(this);ot(this)||t&&(e.stopPropagation(),t.toggle(),$n(this)&&e.preventDefault())}const Vi=e=>{[Me,Be].includes(e.code)&&e.preventDefault()};function Xi(e){const{code:t}=e,s=cs(this);if(!s)return;const n=se(s),{activeElement:o}=b(s);if(!n||!o)return;const{menu:i,open:r}=n,c=Ki(i);if(c&&c.length&&[Me,Be].includes(t)){let a=c.indexOf(o);o===s?a=0:t===Be?a=a>1?a-1:0:t===Me&&(a=aDn(this)),this._toggleEventListeners(!0))}get name(){return En}get defaults(){return zi}toggle(){this.open?this.hide():this.show()}show(){const{element:t,open:s,menu:n,parentElement:o}=this;if(s)return;const i=cs(t),r=i&&se(i);r&&r.hide(),[is,Pn,xn].forEach(c=>{c.relatedTarget=t}),w(o,is),!is.defaultPrevented&&(d(n,p),d(o,p),I(t,ue,"true"),Dn(this),this.open=!s,ct(t),An(this),w(o,Pn))}hide(){const{element:t,open:s,menu:n,parentElement:o}=this;s&&([rs,_n].forEach(i=>{i.relatedTarget=t}),w(o,rs),!rs.defaultPrevented&&(v(n,p),v(o,p),I(t,ue,"false"),this.open=!s,An(this),w(o,_n)))}_toggleEventListeners=t=>{(t?k:L)(this.element,H,qi)};dispose(){this.open&&this.hide(),this._toggleEventListeners(),super.dispose()}}const q="modal",ls="Modal",ds="Offcanvas",Yi="fixed-top",Ui="fixed-bottom",In="sticky-top",kn="position-sticky",Ln=e=>[...lt(Yi,e),...lt(Ui,e),...lt(In,e),...lt(kn,e),...lt("is-fixed",e)],Gi=e=>{const t=_t(e);P(t,{paddingRight:"",overflow:""});const s=Ln(t);s.length&&s.forEach(n=>{P(n,{paddingRight:"",marginRight:""})})},On=e=>{const{clientWidth:t}=at(e),{innerWidth:s}=Us(e);return Math.abs(s-t)},Nn=(e,t)=>{const s=_t(e),n=parseInt(W(s,"paddingRight"),10),i=W(s,"overflow")==="hidden"&&n?0:On(e),r=Ln(s);t&&(P(s,{overflow:"hidden",paddingRight:`${n+i}px`}),r.length&&r.forEach(c=>{const a=W(c,"paddingRight");if(c.style.paddingRight=`${parseInt(a,10)+i}px`,[In,kn].some(l=>h(c,l))){const l=W(c,"marginRight");c.style.marginRight=`${parseInt(l,10)-i}px`}}))},G="offcanvas",bt=ut({tagName:"div",className:"popup-container"}),Mn=(e,t)=>{const s=x(t)&&t.nodeName==="BODY",n=x(t)&&!s?t:bt,o=s?t:_t(e);x(e)&&(n===bt&&o.append(bt),n.append(e))},Bn=(e,t)=>{const s=x(t)&&t.nodeName==="BODY",n=x(t)&&!s?t:bt;x(e)&&(e.remove(),n===bt&&!bt.children.length&&bt.remove())},hs=(e,t)=>{const s=x(t)&&t.nodeName!=="BODY"?t:bt;return x(e)&&s.contains(e)},Rn="backdrop",Wn=`${q}-${Rn}`,Fn=`${G}-${Rn}`,jn=`.${q}.${p}`,fs=`.${G}.${p}`,A=ut("div"),Ht=e=>_(`${jn},${fs}`,b(e)),us=e=>{const t=e?Wn:Fn;[Wn,Fn].forEach(s=>{v(A,s)}),d(A,t)},zn=(e,t,s)=>{us(s),Mn(A,_t(e)),t&&d(A,O)},Kn=()=>{h(A,p)||(d(A,p),St(A))},Ce=()=>{v(A,p)},qn=e=>{Ht(e)||(v(A,O),Bn(A,_t(e)),Gi(e))},Vn=e=>D(e)&&W(e,"visibility")!=="hidden"&&e.offsetParent!==null,Qi=`.${q}`,Zi=`[${it}="${q}"]`,Ji=`[${Ee}="${q}"]`,Xn=`${q}-static`,tr={backdrop:!0,keyboard:!0},ne=e=>R(e,ls),er=e=>new ps(e),Se=E(`show.bs.${q}`),Yn=E(`shown.bs.${q}`),gs=E(`hide.bs.${q}`),Un=E(`hidden.bs.${q}`),Gn=e=>{const{element:t}=e,s=On(t),{clientHeight:n,scrollHeight:o}=at(t),{clientHeight:i,scrollHeight:r}=t,c=i!==r;if(!c&&s){const l={[pt(t)?"paddingLeft":"paddingRight"]:`${s}px`};P(t,l)}Nn(t,c||n!==o)},Qn=(e,t)=>{const s=t?k:L,{element:n}=e;s(n,H,or),s(b(n),pe,nr),t?e._observer.observe(n):e._observer.disconnect()},Zn=e=>{const{triggers:t,element:s,relatedTarget:n}=e;qn(s),P(s,{paddingRight:"",display:""}),Qn(e);const o=Se.relatedTarget||t.find(Vn);o&&ct(o),Un.relatedTarget=n||void 0,w(s,Un),we(s)},Jn=e=>{const{element:t,relatedTarget:s}=e;ct(t),Qn(e,!0),Yn.relatedTarget=s||void 0,w(t,Yn),we(t)},to=e=>{const{element:t,hasFade:s}=e;P(t,{display:"block"}),Gn(e),Ht(t)||P(_t(t),{overflow:"hidden"}),d(t,p),yt(t,Xt),I(t,ge,"true"),s?S(t,()=>Jn(e)):Jn(e)},eo=e=>{const{element:t,options:s,hasFade:n}=e;s.backdrop&&n&&h(A,p)&&!Ht(t)?(Ce(),S(A,()=>Zn(e))):Zn(e)};function sr(e){const t=j(this),s=t&&ne(t);ot(this)||s&&(this.tagName==="A"&&e.preventDefault(),s.relatedTarget=this,s.toggle())}const nr=({code:e,target:t})=>{const s=_(jn,b(t)),n=s&&ne(s);if(!n)return;const{options:o}=n;o.keyboard&&e===Re&&h(s,p)&&(n.relatedTarget=null,n.hide())},or=e=>{const{currentTarget:t}=e,s=t&&ne(t);if(!s||!t||g.get(t))return;const{options:n,isStatic:o,modalDialog:i}=s,{backdrop:r}=n,{target:c}=e,a=b(t)?.getSelection()?.toString().length,l=i.contains(c),f=c&&M(c,Ji);o&&!l?g.set(t,()=>{d(t,Xn),S(i,()=>ir(s))},17):(f||!a&&!o&&!l&&r)&&(s.relatedTarget=f||null,s.hide(),e.preventDefault())},ir=e=>{const{element:t,modalDialog:s}=e,n=(Qt(s)||0)+17;v(t,Xn),g.set(t,()=>g.clear(t),n)};class ps extends J{static selector=Qi;static init=er;static getInstance=ne;constructor(t,s){super(t,s);const{element:n}=this,o=_(`.${q}-dialog`,n);o&&(this.modalDialog=o,this.triggers=[...U(Zi,b(n))].filter(i=>j(i)===n),this.isStatic=this.options.backdrop==="static",this.hasFade=h(n,O),this.relatedTarget=null,this._observer=new ResizeObserver(()=>this.update()),this._toggleEventListeners(!0))}get name(){return ls}get defaults(){return tr}toggle(){h(this.element,p)?this.hide():this.show()}show(){const{element:t,options:s,hasFade:n,relatedTarget:o}=this,{backdrop:i}=s;let r=0;if(h(t,p)||(Se.relatedTarget=o||void 0,w(t,Se),Se.defaultPrevented))return;const c=Ht(t);if(c&&c!==t){const a=ne(c)||R(c,ds);a&&a.hide()}i?(hs(A)?us(!0):zn(t,n,!0),r=Qt(A),Kn(),setTimeout(()=>to(this),r)):(to(this),c&&h(A,p)&&Ce())}hide(){const{element:t,hasFade:s,relatedTarget:n}=this;h(t,p)&&(gs.relatedTarget=n||void 0,w(t,gs),!gs.defaultPrevented&&(v(t,p),I(t,Xt,"true"),yt(t,ge),s?S(t,()=>eo(this)):eo(this)))}update=()=>{h(this.element,p)&&Gn(this)};_toggleEventListeners=t=>{const s=t?k:L,{triggers:n}=this;n.length&&n.forEach(o=>{s(o,H,sr)})};dispose(){const t={...this},{modalDialog:s,hasFade:n}=t,o=()=>setTimeout(()=>super.dispose(),17);this.hide(),this._toggleEventListeners(),n?S(s,o):o()}}const rr=`.${G}`,so=`[${it}="${G}"]`,cr=`[${Ee}="${G}"]`,Pe=`${G}-toggling`,ar={backdrop:!0,keyboard:!0,scroll:!1},oe=e=>R(e,ds),lr=e=>new vs(e),_e=E(`show.bs.${G}`),no=E(`shown.bs.${G}`),ms=E(`hide.bs.${G}`),oo=E(`hidden.bs.${G}`),dr=e=>{const{element:t}=e,{clientHeight:s,scrollHeight:n}=at(t);Nn(t,s!==n)},io=(e,t)=>{const s=t?k:L,n=b(e.element);s(n,pe,gr),s(n,H,ur)},ro=e=>{const{element:t,options:s}=e;s.scroll||(dr(e),P(_t(t),{overflow:"hidden"})),d(t,Pe),d(t,p),P(t,{visibility:"visible"}),S(t,()=>pr(e))},hr=e=>{const{element:t,options:s}=e,n=Ht(t);t.blur(),!n&&s.backdrop&&h(A,p)&&Ce(),S(t,()=>mr(e))};function fr(e){const t=j(this),s=t&&oe(t);ot(this)||s&&(s.relatedTarget=this,s.toggle(),this.tagName==="A"&&e.preventDefault())}const ur=e=>{const{target:t}=e,s=_(fs,b(t));if(!s)return;const n=_(cr,s),o=oe(s);if(!o)return;const{options:i,triggers:r}=o,{backdrop:c}=i,a=M(t,so),l=b(s).getSelection();A.contains(t)&&c==="static"||(!(l&&l.toString().length)&&(!s.contains(t)&&c&&(!a||r.includes(t))||n&&n.contains(t))&&(o.relatedTarget=n&&n.contains(t)?n:void 0,o.hide()),a&&a.tagName==="A"&&e.preventDefault())},gr=({code:e,target:t})=>{const s=_(fs,b(t)),n=s&&oe(s);n&&n.options.keyboard&&e===Re&&(n.relatedTarget=void 0,n.hide())},pr=e=>{const{element:t}=e;v(t,Pe),yt(t,Xt),I(t,ge,"true"),I(t,"role","dialog"),w(t,no),io(e,!0),ct(t),we(t)},mr=e=>{const{element:t,triggers:s}=e;I(t,Xt,"true"),yt(t,ge),yt(t,"role"),P(t,{visibility:""});const n=_e.relatedTarget||s.find(Vn);n&&ct(n),qn(t),w(t,oo),v(t,Pe),we(t),Ht(t)||io(e)};class vs extends J{static selector=rr;static init=lr;static getInstance=oe;constructor(t,s){super(t,s);const{element:n}=this;this.triggers=[...U(so,b(n))].filter(o=>j(o)===n),this.relatedTarget=void 0,this._toggleEventListeners(!0)}get name(){return ds}get defaults(){return ar}toggle(){h(this.element,p)?this.hide():this.show()}show(){const{element:t,options:s,relatedTarget:n}=this;let o=0;if(h(t,p)||(_e.relatedTarget=n||void 0,no.relatedTarget=n||void 0,w(t,_e),_e.defaultPrevented))return;const i=Ht(t);if(i&&i!==t){const r=oe(i)||R(i,ls);r&&r.hide()}s.backdrop?(hs(A)?us():zn(t,!0),o=Qt(A),Kn(),setTimeout(()=>ro(this),o)):(ro(this),i&&h(A,p)&&Ce())}hide(){const{element:t,relatedTarget:s}=this;h(t,p)&&(ms.relatedTarget=s||void 0,oo.relatedTarget=s||void 0,w(t,ms),!ms.defaultPrevented&&(d(t,Pe),v(t,p),hr(this)))}_toggleEventListeners=t=>{const s=t?k:L;this.triggers.forEach(n=>{s(n,H,fr)})};dispose(){const{element:t}=this,s=h(t,p),n=()=>setTimeout(()=>super.dispose(),1);this.hide(),this._toggleEventListeners(),s?S(t,n):n()}}const It="popover",bs="Popover",ht="tooltip",co=e=>{const t=e===ht,s=t?`${e}-inner`:`${e}-body`,n=t?"":`

`,o=`
`,i=`
`;return`
${n+o+i}
`},ao={top:"top",bottom:"bottom",left:"start",right:"end"},ws=e=>{requestAnimationFrame(()=>{const t=/\b(top|bottom|start|end)+/,{element:s,tooltip:n,container:o,offsetParent:i,options:r,arrow:c}=e;if(!n)return;const a=pt(s),{x:l,y:f}=ti(i);P(n,{top:"",left:"",right:"",bottom:""});const{offsetWidth:u,offsetHeight:$}=n,{clientWidth:B,clientHeight:Z,offsetWidth:st}=at(s);let{placement:m}=r;const{clientWidth:V,offsetWidth:Lt}=o,C=W(o,"position")==="fixed",Et=Math.abs(C?V-Lt:B-st),ft=a&&C?Et:0,nt=B-(a?0:Et)-1,zt=e._observer.getEntry(s),{width:y,height:K,left:Kt,right:F,top:Nt}=zt?.boundingClientRect||Pt(s,!0),{x:De,y:qt}=oi(s,i,{x:l,y:f});P(c,{top:"",left:"",right:"",bottom:""});let Mt=0,ae="",Tt=0,Is="",Vt="",Ae="",ks="";const Bt=c.offsetWidth||0,$t=c.offsetHeight||0,Ls=Bt/2;let le=Nt-$-$t<0,de=Nt+$+K+$t>=Z,he=Kt-u-Bt=nt;const He=["left","right"],Os=["top","bottom"];le=He.includes(m)?Nt+K/2-$/2-$t<0:le,de=He.includes(m)?Nt+$/2+K/2+$t>=Z:de,he=Os.includes(m)?Kt+y/2-u/2=nt:fe,m=He.includes(m)&&he&&fe?"top":m,m=m==="top"&&le?"bottom":m,m=m==="bottom"&&de?"top":m,m=m==="left"&&he?"right":m,m=m==="right"&&fe?"left":m,n.className.includes(m)||(n.className=n.className.replace(t,ao[m])),He.includes(m)?(m==="left"?Tt=De-u-Bt:Tt=De+y+Bt,le&&de?(Mt=0,ae=0,Vt=qt+K/2-$t/2):le?(Mt=qt,ae="",Vt=K/2-Bt):de?(Mt=qt-$+K,ae="",Vt=$-K/2-Bt):(Mt=qt-$/2+K/2,Vt=$/2-$t/2)):Os.includes(m)&&(m==="top"?Mt=qt-$-$t:Mt=qt+K+$t,he?(Tt=0,Ae=De+y/2-Ls):fe?(Tt="auto",Is=0,ks=y/2+nt-F-Ls):(Tt=De-u/2+y/2,Ae=u/2-Ls)),P(n,{top:`${Mt}px`,bottom:ae===""?"":`${ae}px`,left:Tt==="auto"?Tt:`${Tt}px`,right:Is!==""?`${Is}px`:""}),D(c)&&(Vt!==""&&(c.style.top=`${Vt}px`),Ae!==""?c.style.left=`${Ae}px`:ks!==""&&(c.style.right=`${ks}px`));const Gr=E(`updated.bs.${Jt(e.name)}`);w(s,Gr)})},Es={template:co(ht),title:"",customClass:"",trigger:"hover focus",placement:"top",sanitizeFn:void 0,animation:!0,delay:200,container:document.body,content:"",dismissible:!1,btnClose:""},lo="data-original-title",kt="Tooltip",wt=(e,t,s)=>{if(Gt(t)&&t.length){let n=t.trim();ri(s)&&(n=s(n));const i=new DOMParser().parseFromString(n,"text/html");e.append(...i.body.childNodes)}else D(t)?e.append(t):(ci(t)||ii(t)&&t.every(x))&&e.append(...t)},vr=e=>{const t=e.name===kt,{id:s,element:n,options:o}=e,{title:i,placement:r,template:c,animation:a,customClass:l,sanitizeFn:f,dismissible:u,content:$,btnClose:B}=o,Z=t?ht:It,st={...ao};let m=[],V=[];pt(n)&&(st.left="end",st.right="start");const Lt=`bs-${Z}-${st[r]}`;let Ot;if(D(c))Ot=c;else{const y=ut("div");wt(y,c,f),Ot=y.firstChild}if(!D(Ot))return;e.tooltip=Ot.cloneNode(!0);const{tooltip:C}=e;I(C,"id",s),I(C,"role",ht);const Et=t?`${ht}-inner`:`${It}-body`,ft=t?null:_(`.${It}-header`,C),nt=_(`.${Et}`,C);e.arrow=_(`.${Z}-arrow`,C);const{arrow:zt}=e;if(D(i))m=[i.cloneNode(!0)];else{const y=ut("div");wt(y,i,f),m=[...y.childNodes]}if(D($))V=[$.cloneNode(!0)];else{const y=ut("div");wt(y,$,f),V=[...y.childNodes]}if(u)if(i)if(D(B))m=[...m,B.cloneNode(!0)];else{const y=ut("div");wt(y,B,f),m=[...m,y.firstChild]}else if(ft&&ft.remove(),D(B))V=[...V,B.cloneNode(!0)];else{const y=ut("div");wt(y,B,f),V=[...V,y.firstChild]}t?i&&nt&&wt(nt,i,f):(i&&ft&&wt(ft,m,f),$&&nt&&wt(nt,V,f),e.btn=_(".btn-close",C)||void 0),d(C,"position-absolute"),d(zt,"position-absolute"),h(C,Z)||d(C,Z),a&&!h(C,O)&&d(C,O),l&&!h(C,l)&&d(C,l),h(C,Lt)||d(C,Lt)},br=e=>{const t=["HTML","BODY"],s=[];let{parentNode:n}=e;for(;n&&!t.includes(n.nodeName);)n=ei(n),Ys(n)||si(n)||s.push(n);return s.find((o,i)=>(W(o,"position")!=="relative"||W(o,"position")==="relative"&&o.offsetHeight!==o.scrollHeight)&&s.slice(i+1).every(r=>W(r,"position")==="static")?o:null)||b(e).body},wr=`[${it}="${ht}"],[data-tip="${ht}"]`,ho="title";let fo=e=>R(e,kt);const Er=e=>new xe(e),Tr=e=>{const{element:t,tooltip:s,container:n}=e;yt(t,Ns),Bn(s,n)},ie=e=>{const{tooltip:t,container:s}=e;return t&&hs(t,s)},$r=(e,t)=>{const{element:s}=e;e._toggleEventListeners(),Yt(s,lo)&&e.name===kt&&vo(e),t&&t()},uo=(e,t)=>{const s=t?k:L,{element:n}=e;s(b(n),Ne,e.handleTouch,Zt)},go=e=>{const{element:t}=e,s=E(`shown.bs.${Jt(e.name)}`);uo(e,!0),w(t,s),g.clear(t,"in")},po=e=>{const{element:t}=e,s=E(`hidden.bs.${Jt(e.name)}`);uo(e),Tr(e),w(t,s),g.clear(t,"out")},mo=(e,t)=>{const s=t?k:L,{element:n,tooltip:o}=e,i=M(n,`.${q}`),r=M(n,`.${G}`);t?[n,o].forEach(c=>e._observer.observe(c)):e._observer.disconnect(),i&&s(i,`hide.bs.${q}`,e.handleHide),r&&s(r,`hide.bs.${G}`,e.handleHide)},vo=(e,t)=>{const s=[lo,ho],{element:n}=e;I(n,s[t?0:1],t||X(n,s[0])||""),yt(n,s[t?1:0])};class xe extends J{static selector=wr;static init=Er;static getInstance=fo;static styleTip=ws;constructor(t,s){super(t,s);const{element:n}=this,o=this.name===kt,i=o?ht:It,r=o?kt:bs;fo=f=>R(f,r),this.enabled=!0,this.id=`${i}-${Js(n,i)}`;const{options:c}=this;if(!c.title&&o||!o&&!c.content)return;rt(Es,{titleAttr:""}),Yt(n,ho)&&o&&typeof c.title=="string"&&vo(this,c.title);const a=br(n),l=["sticky","fixed","relative"].some(f=>W(a,"position")===f)?a:Us(n);this.container=a,this.offsetParent=l,vr(this),this.tooltip&&(this._observer=new es(()=>this.update()),this._toggleEventListeners(!0))}get name(){return kt}get defaults(){return Es}handleFocus=()=>ct(this.element);handleShow=()=>this.show();show(){const{options:t,tooltip:s,element:n,container:o,id:i}=this,{animation:r}=t,c=g.get(n,"out");g.clear(n,"out"),s&&!c&&!ie(this)&&g.set(n,()=>{const a=E(`show.bs.${Jt(this.name)}`);w(n,a),a.defaultPrevented||(Mn(s,o),I(n,Ns,`#${i}`),this.update(),mo(this,!0),h(s,p)||d(s,p),r?S(s,()=>go(this)):go(this))},17,"in")}handleHide=()=>this.hide();hide(){const{options:t,tooltip:s,element:n}=this,{animation:o,delay:i}=t;g.clear(n,"in"),s&&ie(this)&&g.set(n,()=>{const r=E(`hide.bs.${Jt(this.name)}`);w(n,r),r.defaultPrevented||(this.update(),v(s,p),mo(this),o?S(s,()=>po(this)):po(this))},i+17,"out")}update=()=>{ws(this)};toggle=()=>{const{tooltip:t}=this;t&&!ie(this)?this.show():this.hide()};enable(){const{enabled:t}=this;t||(this._toggleEventListeners(!0),this.enabled=!t)}disable(){const{tooltip:t,enabled:s}=this;s&&(t&&ie(this)&&this.hide(),this._toggleEventListeners(),this.enabled=!s)}toggleEnabled(){this.enabled?this.disable():this.enable()}handleTouch=({target:t})=>{const{tooltip:s,element:n}=this;s&&s.contains(t)||t===n||t&&n.contains(t)||this.hide()};_toggleEventListeners=t=>{const s=t?k:L,{element:n,options:o,btn:i}=this,{trigger:r}=o,a=!!(this.name!==kt&&o.dismissible);r.includes("manual")||(this.enabled=!!t,r.split(" ").forEach(f=>{f===Bo?(s(n,Rs,this.handleShow),s(n,me,this.handleShow),a||(s(n,Oe,this.handleHide),s(b(n),Ne,this.handleTouch,Zt))):f===H?s(n,f,a?this.handleShow:this.toggle):f===ke&&(s(n,Le,this.handleShow),a||s(n,Bs,this.handleHide),Vo()&&s(n,H,this.handleFocus)),a&&i&&s(i,H,this.handleHide)}))};dispose(){const{tooltip:t,options:s}=this,n={...this,name:this.name},o=()=>setTimeout(()=>$r(n,()=>super.dispose()),17);s.animation&&ie(n)?(this.options.delay=0,this.hide(),S(t,o)):o()}}const yr=`[${it}="${It}"],[data-tip="${It}"]`,Cr=rt({},Es,{template:co(It),content:"",dismissible:!1,btnClose:''}),Sr=e=>R(e,bs),Pr=e=>new Ts(e);class Ts extends xe{static selector=yr;static init=Pr;static getInstance=Sr;static styleTip=ws;constructor(t,s){super(t,s)}get name(){return bs}get defaults(){return Cr}show=()=>{super.show();const{options:t,btn:s}=this;t.dismissible&&s&&setTimeout(()=>ct(s),17)}}const _r="scrollspy",bo="ScrollSpy",xr='[data-bs-spy="scroll"]',Dr="[href]",Ar={offset:10,target:void 0},Hr=e=>R(e,bo),Ir=e=>new ys(e),wo=E(`activate.bs.${_r}`),kr=e=>{const{target:t,_itemsLength:s,_observables:n}=e,o=ze("A",t),i=b(t);!o.length||s===n.size||(n.clear(),Array.from(o).forEach(r=>{const c=X(r,"href")?.slice(1),a=c?.length?i.getElementById(c):null;a&&!ot(r)&&e._observables.set(a,r)}),e._itemsLength=e._observables.size)},Eo=e=>{Array.from(ze("A",e)).forEach(t=>{h(t,T)&&v(t,T)})},To=(e,t)=>{const{target:s,element:n}=e;Eo(s),e._activeItem=t,d(t,T);let o=t;for(;o!==s;)if(o=o.parentElement,["nav","dropdown-menu","list-group"].some(i=>h(o,i))){const i=o.previousElementSibling;i&&!h(i,T)&&d(i,T)}wo.relatedTarget=t,w(n,wo)},$s=(e,t)=>{const{scrollTarget:s,element:n,options:o}=e;return(s!==n?Pt(t).top+s.scrollTop:t.offsetTop)-(o.offset||10)};class ys extends J{static selector=xr;static init=Ir;static getInstance=Hr;constructor(t,s){super(t,s);const{element:n,options:o}=this,i=_(o.target,b(n));i&&(this.target=i,this.scrollTarget=n.clientHeight{requestAnimationFrame(()=>this.refresh())},{root:this.scrollTarget}),this._toggleEventListeners(!0))}get name(){return bo}get defaults(){return Ar}refresh=()=>{const{target:t,scrollTarget:s}=this;if(!t||t.offsetHeight===0)return;kr(this);const{_itemsLength:n,_observables:o,_activeItem:i}=this;if(!n)return;const r=o.entries().toArray(),{scrollTop:c,scrollHeight:a,clientHeight:l}=s;if(c>=a-l){const u=r[n-1]?.[1];i!==u&&To(this,u);return}const f=r[0]?.[0]?$s(this,r[0][0]):null;if(f!==null&&c0){this._activeItem=null,Eo(t);return}for(let u=0;u=Z&&(m===null||c{const s=M(t.target,Dr),n=s&&X(s,"href")?.slice(1),o=n&&ai(n,this.target);o&&(this.scrollTarget.scrollTo({top:o.offsetTop,behavior:"smooth"}),t.preventDefault())};_toggleEventListeners=t=>{const{target:s,_observables:n,_observer:o,_scrollTo:i}=this;(t?k:L)(s,H,i),t?n?.forEach((c,a)=>o.observe(a)):o.disconnect()};dispose(){this._toggleEventListeners(),super.dispose()}}const re="tab",$o="Tab",Cs=`[${it}="${re}"]`,yo=e=>R(e,$o),Lr=e=>new _s(e),Ss=E(`show.bs.${re}`),Co=E(`shown.bs.${re}`),Ps=E(`hide.bs.${re}`),So=E(`hidden.bs.${re}`),ce=new Map,Po=e=>{const{tabContent:t,nav:s}=e;t&&h(t,Dt)&&(t.style.height="",v(t,Dt)),s&&g.clear(s)},_o=e=>{const{element:t,tabContent:s,content:n,nav:o}=e,{tab:i}=D(o)&&ce.get(o)||{tab:null};if(s&&n&&h(n,O)){const{currentHeight:r,nextHeight:c}=ce.get(t)||{currentHeight:0,nextHeight:0};r!==c?setTimeout(()=>{s.style.height=`${c}px`,St(s),S(s,()=>Po(e))},50):Po(e)}else o&&g.clear(o);Co.relatedTarget=i,w(t,Co)},xo=e=>{const{element:t,content:s,tabContent:n,nav:o}=e,{tab:i,content:r}=o&&ce.get(o)||{tab:null,content:null};let c=0;if(n&&s&&h(s,O)&&([r,s].forEach(a=>{a&&d(a,"overflow-hidden")}),c=r?r.scrollHeight:0),Ss.relatedTarget=i,So.relatedTarget=t,w(t,Ss),!Ss.defaultPrevented){if(s&&d(s,T),r&&v(r,T),n&&s&&h(s,O)){const a=s.scrollHeight;ce.set(t,{currentHeight:c,nextHeight:a,tab:null,content:null}),d(n,Dt),n.style.height=`${c}px`,St(n),[r,s].forEach(l=>{l&&v(l,"overflow-hidden")})}s&&s&&h(s,O)?setTimeout(()=>{d(s,p),S(s,()=>{_o(e)})},1):(s&&d(s,p),_o(e)),i&&w(i,So)}},Do=e=>{const{nav:t}=e;if(!D(t))return{tab:null,content:null};const s=lt(T,t);let n=null;s.length===1&&!At.some(i=>h(s[0].parentElement,i))?[n]=s:s.length>1&&(n=s[s.length-1]);const o=D(n)?j(n):null;return{tab:n,content:o}},Ao=e=>{if(!D(e))return null;const t=M(e,`.${At.join(",.")}`);return t?_(`.${At[0]}-toggle`,t):null},Or=e=>{const t=M(e.target,Cs),s=t&&yo(t);s&&(e.preventDefault(),s.show())};class _s extends J{static selector=Cs;static init=Lr;static getInstance=yo;constructor(t){super(t);const{element:s}=this,n=j(s);if(!n)return;const o=M(s,".nav"),i=M(n,".tab-content");this.nav=o,this.content=n,this.tabContent=i,this.dropdown=Ao(s);const{tab:r}=Do(this);if(o&&!r){const c=_(Cs,o),a=c&&j(c);a&&(d(c,T),d(a,p),d(a,T),I(s,Ie,"true"))}this._toggleEventListeners(!0)}get name(){return $o}show(){const{element:t,content:s,nav:n,dropdown:o}=this;if(n&&g.get(n)||h(t,T))return;const{tab:i,content:r}=Do(this);if(n&&i&&ce.set(n,{tab:i,content:r,currentHeight:0,nextHeight:0}),Ps.relatedTarget=t,!D(i)||(w(i,Ps),Ps.defaultPrevented))return;d(t,T),I(t,Ie,"true");const c=D(i)&&Ao(i);if(c&&h(c,T)&&v(c,T),n){const a=()=>{i&&(v(i,T),I(i,Ie,"false")),o&&!h(o,T)&&d(o,T)};r&&(h(r,O)||s&&h(s,O))?g.set(n,a,1):a()}r&&(v(r,p),h(r,O)?S(r,()=>xo(this)):xo(this))}_toggleEventListeners=t=>{(t?k:L)(this.element,H,Or)};dispose(){this._toggleEventListeners(),super.dispose()}}const Q="toast",Ho="Toast",Nr=`.${Q}`,Mr=`[${Ee}="${Q}"]`,Br=`[${it}="${Q}"]`,jt="showing",Io="hide",Rr={animation:!0,autohide:!0,delay:5e3},xs=e=>R(e,Ho),Wr=e=>new Ds(e),ko=E(`show.bs.${Q}`),Fr=E(`shown.bs.${Q}`),Lo=E(`hide.bs.${Q}`),jr=E(`hidden.bs.${Q}`),Oo=e=>{const{element:t,options:s}=e;v(t,jt),g.clear(t,jt),w(t,Fr),s.autohide&&g.set(t,()=>e.hide(),s.delay,Q)},No=e=>{const{element:t}=e;v(t,jt),v(t,p),d(t,Io),g.clear(t,Q),w(t,jr)},zr=e=>{const{element:t,options:s}=e;d(t,jt),s.animation?(St(t),S(t,()=>No(e))):No(e)},Kr=e=>{const{element:t,options:s}=e;g.set(t,()=>{v(t,Io),St(t),d(t,p),d(t,jt),s.animation?S(t,()=>Oo(e)):Oo(e)},17,jt)};function qr(e){const t=j(this),s=t&&xs(t);ot(this)||s&&(this.tagName==="A"&&e.preventDefault(),s.relatedTarget=this,s.show())}const Vr=e=>{const t=e.target,s=xs(t),{type:n,relatedTarget:o}=e;!s||t===o||t.contains(o)||([me,Le].includes(n)?g.clear(t,Q):g.set(t,()=>s.hide(),s.options.delay,Q))};class Ds extends J{static selector=Nr;static init=Wr;static getInstance=xs;constructor(t,s){super(t,s);const{element:n,options:o}=this;o.animation&&!h(n,O)?d(n,O):!o.animation&&h(n,O)&&v(n,O),this.dismiss=_(Mr,n),this.triggers=[...U(Br,b(n))].filter(i=>j(i)===n),this._toggleEventListeners(!0)}get name(){return Ho}get defaults(){return Rr}get isShown(){return h(this.element,p)}show=()=>{const{element:t,isShown:s}=this;!t||s||(w(t,ko),ko.defaultPrevented||Kr(this))};hide=()=>{const{element:t,isShown:s}=this;!t||!s||(w(t,Lo),Lo.defaultPrevented||zr(this))};_toggleEventListeners=t=>{const s=t?k:L,{element:n,triggers:o,dismiss:i,options:r,hide:c}=this;i&&s(i,H,c),r.autohide&&[Le,Bs,me,Oe].forEach(a=>s(n,a,Vr)),o.length&&o.forEach(a=>{s(a,H,qr)})};dispose(){const{element:t,isShown:s}=this;this._toggleEventListeners(),g.clear(t,Q),s&&v(t,p),super.dispose()}}const As=new Map;[Ke,qe,Je,ts,as,ps,vs,Ts,ys,_s,Ds,xe].forEach(e=>As.set(e.prototype.name,e));const Xr=(e,t)=>{[...t].forEach(s=>e(s))},Yr=(e,t)=>{const s=Ct.getAllFor(e);s&&[...s].forEach(([n,o])=>{t.contains(n)&&o.dispose()})},Hs=e=>{const t=e&&e.nodeName?e:document,s=[...ze("*",t)];As.forEach(n=>{const{init:o,selector:i}=n;Xr(o,s.filter(r=>Gs(r,i)))})},Ur=e=>{const t=e&&e.nodeName?e:document;As.forEach(s=>{Yr(s.prototype.name,t)})};return document.body?Hs():k(document,"DOMContentLoaded",()=>Hs(),{once:!0}),N.Alert=Ke,N.Button=qe,N.Carousel=Je,N.Collapse=ts,N.Dropdown=as,N.Modal=ps,N.Offcanvas=vs,N.Popover=Ts,N.ScrollSpy=ys,N.Tab=_s,N.Toast=Ds,N.Tooltip=xe,N.initCallback=Hs,N.removeDataAPI=Ur,Object.defineProperty(N,Symbol.toStringTag,{value:"Module"}),N}({}); +var BSN=function(N){"use strict";const Ns="aria-describedby",ue="aria-expanded",Xt="aria-hidden",ge="aria-modal",Ms="aria-pressed",Ie="aria-selected",ke="focus",Le="focusin",Bs="focusout",pe="keydown",Mo="keyup",H="click",Rs="mousedown",Bo="hover",me="mouseenter",Oe="mouseleave",Ro="pointerdown",Wo="pointermove",Fo="pointerup",Ne="touchstart",jo="dragstart",zo='a[href], button, input, textarea, select, details, [tabindex]:not([tabindex="-1"]',Me="ArrowDown",Be="ArrowUp",Ws="ArrowLeft",Fs="ArrowRight",Re="Escape",Ko="transitionDuration",qo="transitionDelay",We="transitionend",js="transitionProperty",Vo=()=>{const e=/(iPhone|iPod|iPad)/;return navigator?.userAgentData?.brands.some(t=>e.test(t.brand))||e.test(navigator?.userAgent)||!1},ve=()=>{},Xo=(e,t,s,n)=>{const o=n||!1;e.addEventListener(t,s,o)},Yo=(e,t,s,n)=>{const o=n||!1;e.removeEventListener(t,s,o)},X=(e,t)=>e.getAttribute(t),Yt=(e,t)=>e.hasAttribute(t),I=(e,t,s)=>e.setAttribute(t,s),yt=(e,t)=>e.removeAttribute(t),d=(e,...t)=>{e.classList.add(...t)},v=(e,...t)=>{e.classList.remove(...t)},h=(e,t)=>e.classList.contains(t),Ut=e=>e!=null&&typeof e=="object"||!1,x=e=>Ut(e)&&typeof e.nodeType=="number"&&[1,2,3,4,5,6,7,8,9,10,11].some(t=>e.nodeType===t)||!1,Y=e=>x(e)&&e.nodeType===1||!1,Rt=new Map,Ct={data:Rt,set:(e,t,s)=>{Y(e)&&(Rt.has(t)||Rt.set(t,new Map),Rt.get(t).set(e,s))},getAllFor:e=>Rt.get(e)||null,get:(e,t)=>{if(!Y(e)||!t)return null;const s=Ct.getAllFor(t);return e&&s&&s.get(e)||null},remove:(e,t)=>{const s=Ct.getAllFor(t);!s||!Y(e)||(s.delete(e),s.size===0&&Rt.delete(t))}},R=(e,t)=>Ct.get(e,t),zs=e=>e?.trim().replace(/(?:^\w|[A-Z]|\b\w)/g,(t,s)=>s===0?t.toLowerCase():t.toUpperCase()).replace(/\s+/g,""),Gt=e=>typeof e=="string"||!1,Ks=e=>Ut(e)&&e.constructor.name==="Window"||!1,qs=e=>x(e)&&e.nodeType===9||!1,b=e=>qs(e)?e:x(e)?e.ownerDocument:Ks(e)?e.document:globalThis.document,rt=(e,...t)=>Object.assign(e,...t),ut=e=>{if(!e)return;if(Gt(e))return b().createElement(e);const{tagName:t}=e,s=ut(t);if(!s)return;const n={...e};return delete n.tagName,rt(s,n)},w=(e,t)=>e.dispatchEvent(t),W=(e,t,s)=>{const n=getComputedStyle(e,s),o=t.replace("webkit","Webkit").replace(/([A-Z])/g,"-$1").toLowerCase();return n.getPropertyValue(o)},Uo=e=>{const t=W(e,js),s=W(e,qo),n=s.includes("ms")?1:1e3,o=t&&t!=="none"?parseFloat(s)*n:0;return Number.isNaN(o)?0:o},Qt=e=>{const t=W(e,js),s=W(e,Ko),n=s.includes("ms")?1:1e3,o=t&&t!=="none"?parseFloat(s)*n:0;return Number.isNaN(o)?0:o},S=(e,t)=>{let s=0;const n=new Event(We),o=Qt(e),i=Uo(e);if(o){const r=c=>{c.target===e&&(t.apply(e,[c]),e.removeEventListener(We,r),s=1)};e.addEventListener(We,r),setTimeout(()=>{s||w(e,n)},o+i+17)}else t.apply(e,[n])},ct=(e,t)=>e.focus(t),Vs=e=>["true",!0].includes(e)?!0:["false",!1].includes(e)?!1:["null","",null,void 0].includes(e)?null:e!==""&&!Number.isNaN(+e)?+e:e,be=e=>Object.entries(e),Go=(e,t,s,n)=>{if(!Y(e))return t;const o={...s},i={...e.dataset},r={...t},c={},a="title";return be(i).forEach(([l,f])=>{const u=typeof l=="string"&&l.includes(n)?zs(l.replace(n,"")):zs(l);c[u]=Vs(f)}),be(o).forEach(([l,f])=>{o[l]=Vs(f)}),be(t).forEach(([l,f])=>{l in o?r[l]=o[l]:l in c?r[l]=c[l]:r[l]=l===a?X(e,a):f}),r},Xs=e=>Object.keys(e),E=(e,t)=>{const s=new CustomEvent(e,{cancelable:!0,bubbles:!0});return Ut(t)&&rt(s,t),s},Zt={passive:!0},St=e=>e.offsetHeight,P=(e,t)=>{be(t).forEach(([s,n])=>{if(n&&Gt(s)&&s.includes("--"))e.style.setProperty(s,n);else{const o={};o[s]=n,rt(e.style,o)}})},Fe=e=>Ut(e)&&e.constructor.name==="Map"||!1,Qo=e=>typeof e=="number"||!1,gt=new Map,g={set:(e,t,s,n)=>{Y(e)&&(n&&n.length?(gt.has(e)||gt.set(e,new Map),gt.get(e).set(n,setTimeout(t,s))):gt.set(e,setTimeout(t,s)))},get:(e,t)=>{if(!Y(e))return null;const s=gt.get(e);return t&&s&&Fe(s)?s.get(t)||null:Qo(s)?s:null},clear:(e,t)=>{if(!Y(e))return;const s=gt.get(e);t&&t.length&&Fe(s)?(clearTimeout(s.get(t)),s.delete(t),s.size===0&>.delete(e)):(clearTimeout(s),gt.delete(e))}},Jt=e=>e.toLowerCase(),U=(e,t)=>(x(t)?t:b()).querySelectorAll(e),je=new Map;function Zo(e){const{shiftKey:t,code:s}=e,n=b(this),o=[...U(zo,this)].filter(c=>!Yt(c,"disabled")&&!X(c,Xt));if(!o.length)return;const i=o[0],r=o[o.length-1];s==="Tab"&&(t&&n.activeElement===i?(r.focus(),e.preventDefault()):!t&&n.activeElement===r&&(i.focus(),e.preventDefault()))}const Jo=e=>je.has(e)===!0,we=e=>{const t=Jo(e);(t?Yo:Xo)(e,"keydown",Zo),t?je.delete(e):je.set(e,!0)},D=e=>Y(e)&&"offsetWidth"in e||!1,Pt=(e,t)=>{const{width:s,height:n,top:o,right:i,bottom:r,left:c}=e.getBoundingClientRect();let a=1,l=1;if(t&&D(e)){const{offsetWidth:f,offsetHeight:u}=e;a=f>0?Math.round(s)/f:1,l=u>0?Math.round(n)/u:1}return{width:s/a,height:n/l,top:o/l,right:i/a,bottom:r/l,left:c/a,x:c/a,y:o/l}},_t=e=>b(e).body,at=e=>b(e).documentElement,ti=e=>{const t=Ks(e),s=t?e.scrollX:e.scrollLeft,n=t?e.scrollY:e.scrollTop;return{x:s,y:n}},Ys=e=>x(e)&&e.constructor.name==="ShadowRoot"||!1,ei=e=>e.nodeName==="HTML"?e:Y(e)&&e.assignedSlot||x(e)&&e.parentNode||Ys(e)&&e.host||at(e),Us=e=>e?qs(e)?e.defaultView:x(e)?e?.ownerDocument?.defaultView:e:window,si=e=>x(e)&&["TABLE","TD","TH"].includes(e.nodeName)||!1,Gs=(e,t)=>e.matches(t),ni=e=>{if(!D(e))return!1;const{width:t,height:s}=Pt(e),{offsetWidth:n,offsetHeight:o}=e;return Math.round(t)!==n||Math.round(s)!==o},oi=(e,t,s)=>{const n=D(t),o=Pt(e,n&&ni(t)),i={x:0,y:0};if(n){const r=Pt(t,!0);i.x=r.x+t.clientLeft,i.y=r.y+t.clientTop}return{x:o.left+s.x-i.x,y:o.top+s.y-i.y,width:o.width,height:o.height}};let Qs=0,Zs=0;const Wt=new Map,Js=(e,t)=>{let s=t?Qs:Zs;if(t){const n=Js(e),o=Wt.get(n)||new Map;Wt.has(n)||Wt.set(n,o),Fe(o)&&!o.has(t)?(o.set(t,s),Qs+=1):s=o.get(t)}else{const n=e.id||e;Wt.has(n)?s=Wt.get(n):(Wt.set(n,s),Zs+=1)}return s},ii=e=>Array.isArray(e)||!1,tn=e=>{if(!x(e))return!1;const{top:t,bottom:s}=Pt(e),{clientHeight:n}=at(e);return t<=n&&s>=0},ri=e=>typeof e=="function"||!1,ci=e=>Ut(e)&&e.constructor.name==="NodeList"||!1,pt=e=>at(e).dir==="rtl",M=(e,t)=>!e||!t?null:e.closest(t)||M(e.getRootNode().host,t)||null,_=(e,t)=>Y(e)?e:(Y(t)?t:b()).querySelector(e),ze=(e,t)=>(x(t)?t:b()).getElementsByTagName(e),ai=(e,t)=>b(t).getElementById(e),lt=(e,t)=>(t&&x(t)?t:b()).getElementsByClassName(e),Ft={},en=e=>{const{type:t,currentTarget:s}=e;Ft[t].forEach((n,o)=>{s===o&&n.forEach((i,r)=>{r.apply(o,[e]),typeof i=="object"&&i.once&&L(o,t,r,i)})})},k=(e,t,s,n)=>{Ft[t]||(Ft[t]=new Map);const o=Ft[t];o.has(e)||o.set(e,new Map);const i=o.get(e),{size:r}=i;i.set(s,n),r||e.addEventListener(t,en,n)},L=(e,t,s,n)=>{const o=Ft[t],i=o&&o.get(e),r=i&&i.get(s),c=r!==void 0?r:n;i&&i.has(s)&&i.delete(s),o&&(!i||!i.size)&&o.delete(e),(!o||!o.size)&&delete Ft[t],(!i||!i.size)&&e.removeEventListener(t,en,c)},O="fade",p="show",Ee="data-bs-dismiss",Te="alert",sn="Alert",ot=e=>h(e,"disabled")||X(e,"disabled")==="true",li="5.1.1";class J{constructor(t,s){let n;try{if(Y(t))n=t;else if(Gt(t)){if(n=_(t),!n)throw Error(`"${t}" is not a valid selector.`)}else throw Error("your target is not an instance of HTMLElement.")}catch(i){throw Error(`${this.name} Error: ${i.message}`)}const o=Ct.get(n,this.name);o&&o._toggleEventListeners(),this.element=n,this.options=this.defaults&&Xs(this.defaults).length?Go(n,this.defaults,s||{},"bs"):{},Ct.set(n,this.name,this)}get version(){return li}get name(){return"BaseComponent"}get defaults(){return{}}_toggleEventListeners=()=>{};dispose(){Ct.remove(this.element,this.name),Xs(this).forEach(t=>{delete this[t]})}}const di=`.${Te}`,hi=`[${Ee}="${Te}"]`,fi=e=>R(e,sn),ui=e=>new Ke(e),nn=E(`close.bs.${Te}`),gi=E(`closed.bs.${Te}`),on=e=>{const{element:t}=e;w(t,gi),e._toggleEventListeners(),e.dispose(),t.remove()};class Ke extends J{static selector=di;static init=ui;static getInstance=fi;dismiss;constructor(t){super(t),this.dismiss=_(hi,this.element),this._toggleEventListeners(!0)}get name(){return sn}close=t=>{const{element:s,dismiss:n}=this;!s||!h(s,p)||t&&n&&ot(n)||(w(s,nn),!nn.defaultPrevented&&(v(s,p),h(s,O)?S(s,()=>on(this)):on(this)))};_toggleEventListeners=t=>{const s=t?k:L,{dismiss:n,close:o}=this;n&&s(n,H,o)};dispose(){this._toggleEventListeners(),super.dispose()}}const T="active",it="data-bs-toggle",pi="button",rn="Button",mi=`[${it}="${pi}"]`,vi=e=>R(e,rn),bi=e=>new qe(e);class qe extends J{static selector=mi;static init=bi;static getInstance=vi;constructor(t){super(t);const{element:s}=this;this.isActive=h(s,T),I(s,Ms,String(!!this.isActive)),this._toggleEventListeners(!0)}get name(){return rn}toggle=t=>{t&&t.preventDefault();const{element:s,isActive:n}=this;if(ot(s))return;(n?v:d)(s,T),I(s,Ms,n?"false":"true"),this.isActive=h(s,T)};_toggleEventListeners=t=>{(t?k:L)(this.element,H,this.toggle)};dispose(){this._toggleEventListeners(),super.dispose()}}const Ve="data-bs-target",xt="carousel",cn="Carousel",an="data-bs-parent",wi="data-bs-container",j=e=>{const t=[Ve,an,wi,"href"],s=b(e);return t.map(n=>{const o=X(e,n);return o?n===an?M(e,o):_(o,s):null}).filter(n=>n)[0]},te=`[data-bs-ride="${xt}"]`,tt=`${xt}-item`,Xe="data-bs-slide-to",mt="data-bs-slide",vt="paused",ln={pause:"hover",keyboard:!1,touch:!0,interval:5e3},dt=e=>R(e,cn),Ei=e=>new Je(e);let ee=0,$e=0,Ye=0;const Ue=E(`slide.bs.${xt}`),Ge=E(`slid.bs.${xt}`),dn=e=>{const{index:t,direction:s,element:n,slides:o,options:i}=e;if(e.isAnimating){const r=Ze(e),c=s==="left"?"next":"prev",a=s==="left"?"start":"end";d(o[t],T),v(o[t],`${tt}-${c}`),v(o[t],`${tt}-${a}`),v(o[r],T),v(o[r],`${tt}-${a}`),w(n,Ge),g.clear(n,mt),e.cycle&&!b(n).hidden&&i.interval&&!e.isPaused&&e.cycle()}};function Ti(){const e=dt(this);e&&!e.isPaused&&!g.get(this,vt)&&d(this,vt)}function $i(){const e=dt(this);e&&e.isPaused&&!g.get(this,vt)&&e.cycle()}function yi(e){e.preventDefault();const t=M(this,te)||j(this),s=t&&dt(t);if(ot(this)||!s||s.isAnimating)return;const n=+(X(this,Xe)||0);this&&!h(this,T)&&!Number.isNaN(n)&&s.to(n)}function Ci(e){e.preventDefault();const t=M(this,te)||j(this),s=t&&dt(t);if(ot(this)||!s||s.isAnimating)return;const n=X(this,mt);n==="next"?s.next():n==="prev"&&s.prev()}const Si=({code:e,target:t})=>{const s=b(t),[n]=[...U(te,s)].filter(a=>tn(a)),o=dt(n);if(!o||o.isAnimating||/textarea|input|select/i.test(t.nodeName))return;const i=pt(n);e===(i?Fs:Ws)?o.prev():e===(i?Ws:Fs)&&o.next()};function hn(e){const{target:t}=e,s=dt(this);s&&s.isTouch&&(s.indicator&&!s.indicator.contains(t)||!s.controls.includes(t))&&(e.stopImmediatePropagation(),e.stopPropagation(),e.preventDefault())}function Pi(e){const{target:t}=e,s=dt(this);if(!s||s.isAnimating||s.isTouch)return;const{controls:n,indicators:o}=s;[...n,...o].every(i=>i===t||i.contains(t))||(ee=e.pageX,this.contains(t)&&(s.isTouch=!0,fn(s,!0)))}const _i=e=>{$e=e.pageX},xi=e=>{const{target:t}=e,s=b(t),n=[...U(te,s)].map(c=>dt(c)).find(c=>c.isTouch);if(!n)return;const{element:o,index:i}=n,r=pt(o);Ye=e.pageX,n.isTouch=!1,fn(n),!s.getSelection()?.toString().length&&o.contains(t)&&Math.abs(ee-Ye)>120&&($eee&&n.to(i+(r?1:-1))),ee=0,$e=0,Ye=0},Qe=(e,t)=>{const{indicators:s}=e;[...s].forEach(n=>v(n,T)),e.indicators[t]&&d(s[t],T)},fn=(e,t)=>{const{element:s}=e,n=t?k:L;n(b(s),Wo,_i,Zt),n(b(s),Fo,xi,Zt)},Ze=e=>{const{slides:t,element:s}=e,n=_(`.${tt}.${T}`,s);return n?[...t].indexOf(n):-1};class Je extends J{static selector=te;static init=Ei;static getInstance=dt;constructor(t,s){super(t,s);const{element:n}=this;this.direction=pt(n)?"right":"left",this.isTouch=!1,this.slides=lt(tt,n);const{slides:o}=this;if(o.length<2)return;const i=Ze(this),r=[...o].find(l=>Gs(l,`.${tt}-next`));this.index=i;const c=b(n);this.controls=[...U(`[${mt}]`,n),...U(`[${mt}][${Ve}="#${n.id}"]`,c)].filter((l,f,u)=>f===u.indexOf(l)),this.indicator=_(`.${xt}-indicators`,n),this.indicators=[...this.indicator?U(`[${Xe}]`,this.indicator):[],...U(`[${Xe}][${Ve}="#${n.id}"]`,c)].filter((l,f,u)=>f===u.indexOf(l));const{options:a}=this;this.options.interval=a.interval===!0?ln.interval:a.interval,r?this.index=[...o].indexOf(r):i<0&&(this.index=0,d(o[0],T),this.indicators.length&&Qe(this,0)),this.indicators.length&&Qe(this,this.index),this._toggleEventListeners(!0),a.interval&&this.cycle()}get name(){return cn}get defaults(){return ln}get isPaused(){return h(this.element,vt)}get isAnimating(){return _(`.${tt}-next,.${tt}-prev`,this.element)!==null}cycle(){const{element:t,options:s,isPaused:n,index:o}=this;g.clear(t,xt),n&&(g.clear(t,vt),v(t,vt)),g.set(t,()=>{this.element&&!this.isPaused&&!this.isTouch&&tn(t)&&this.to(o+1)},s.interval,xt)}pause(){const{element:t,options:s}=this;this.isPaused||!s.interval||(d(t,vt),g.set(t,()=>{},1,vt))}next(){this.isAnimating||this.to(this.index+1)}prev(){this.isAnimating||this.to(this.index-1)}to(t){const{element:s,slides:n,options:o}=this,i=Ze(this),r=pt(s);let c=t;if(this.isAnimating||i===c||g.get(s,mt))return;ic||i===n.length-1&&c===0)&&(this.direction=r?"left":"right");const{direction:a}=this;c<0?c=n.length-1:c>=n.length&&(c=0);const l=a==="left"?"next":"prev",f=a==="left"?"start":"end",u={relatedTarget:n[c],from:i,to:c,direction:a};rt(Ue,u),rt(Ge,u),w(s,Ue),!Ue.defaultPrevented&&(this.index=c,Qe(this,c),Qt(n[c])&&h(s,"slide")?g.set(s,()=>{d(n[c],`${tt}-${l}`),St(n[c]),d(n[c],`${tt}-${f}`),d(n[i],`${tt}-${f}`),S(n[c],()=>this.slides&&this.slides.length&&dn(this))},0,mt):(d(n[c],T),v(n[i],T),g.set(s,()=>{g.clear(s,mt),s&&o.interval&&!this.isPaused&&this.cycle(),w(s,Ge)},0,mt)))}_toggleEventListeners=t=>{const{element:s,options:n,slides:o,controls:i,indicators:r}=this,{touch:c,pause:a,interval:l,keyboard:f}=n,u=t?k:L;a&&l&&(u(s,me,Ti),u(s,Oe,$i)),c&&o.length>2&&(u(s,Ro,Pi,Zt),u(s,Ne,hn,{passive:!1}),u(s,jo,hn,{passive:!1})),i.length&&i.forEach($=>{u($,H,Ci)}),r.length&&r.forEach($=>{u($,H,yi)}),f&&u(b(s),pe,Si)};dispose(){const{isAnimating:t}=this,s={...this,isAnimating:t};this._toggleEventListeners(),super.dispose(),s.isAnimating&&S(s.slides[s.index],()=>{dn(s)})}}const Dt="collapsing",z="collapse",un="Collapse",Di=`.${z}`,gn=`[${it}="${z}"]`,Ai={parent:null},ye=e=>R(e,un),Hi=e=>new ts(e),pn=E(`show.bs.${z}`),Ii=E(`shown.bs.${z}`),mn=E(`hide.bs.${z}`),ki=E(`hidden.bs.${z}`),Li=e=>{const{element:t,parent:s,triggers:n}=e;w(t,pn),pn.defaultPrevented||(g.set(t,ve,17),s&&g.set(s,ve,17),d(t,Dt),v(t,z),P(t,{height:`${t.scrollHeight}px`}),S(t,()=>{g.clear(t),s&&g.clear(s),n.forEach(o=>I(o,ue,"true")),v(t,Dt),d(t,z),d(t,p),P(t,{height:""}),w(t,Ii)}))},vn=e=>{const{element:t,parent:s,triggers:n}=e;w(t,mn),mn.defaultPrevented||(g.set(t,ve,17),s&&g.set(s,ve,17),P(t,{height:`${t.scrollHeight}px`}),v(t,z),v(t,p),d(t,Dt),St(t),P(t,{height:"0px"}),S(t,()=>{g.clear(t),s&&g.clear(s),n.forEach(o=>I(o,ue,"false")),v(t,Dt),d(t,z),P(t,{height:""}),w(t,ki)}))},Oi=e=>{const{target:t}=e,s=t&&M(t,gn),n=s&&j(s),o=n&&ye(n);s&&ot(s)||o&&(o.toggle(),s?.tagName==="A"&&e.preventDefault())};class ts extends J{static selector=Di;static init=Hi;static getInstance=ye;constructor(t,s){super(t,s);const{element:n,options:o}=this,i=b(n);this.triggers=[...U(gn,i)].filter(r=>j(r)===n),this.parent=D(o.parent)?o.parent:Gt(o.parent)?j(n)||_(o.parent,i):null,this._toggleEventListeners(!0)}get name(){return un}get defaults(){return Ai}hide(){const{triggers:t,element:s}=this;g.get(s)||(vn(this),t.length&&t.forEach(n=>d(n,`${z}d`)))}show(){const{element:t,parent:s,triggers:n}=this;let o,i;s&&(o=[...U(`.${z}.${p}`,s)].find(r=>ye(r)),i=o&&ye(o)),(!s||!g.get(s))&&!g.get(t)&&(i&&o!==t&&(vn(i),i.triggers.forEach(r=>{d(r,`${z}d`)})),Li(this),n.length&&n.forEach(r=>v(r,`${z}d`)))}toggle(){h(this.element,p)?this.hide():this.show()}_toggleEventListeners=t=>{const s=t?k:L,{triggers:n}=this;n.length&&n.forEach(o=>{s(o,H,Oi)})};dispose(){this._toggleEventListeners(),super.dispose()}}const Ni=e=>e!=null&&typeof e=="object"||!1,Mi=e=>Ni(e)&&typeof e.nodeType=="number"&&[1,2,3,4,5,6,7,8,9,10,11].some(t=>e.nodeType===t)||!1,bn=e=>Mi(e)&&e.nodeType===1||!1,Bi=e=>typeof e=="function"||!1,Ri="1.0.4",wn="PositionObserver Error";class es{entries;static version=Ri;_tick;_root;_callback;constructor(t,s){if(!Bi(t))throw new Error(`${wn}: ${t} is not a function.`);this.entries=new Map,this._callback=t,this._root=bn(s?.root)?s.root:document?.documentElement,this._tick=0}observe=t=>{if(!bn(t))throw new Error(`${wn}: ${t} is not an instance of Element.`);this._root.contains(t)&&this._new(t).then(s=>{s&&!this.getEntry(t)&&this.entries.set(t,s),this._tick||(this._tick=requestAnimationFrame(this._runCallback))})};unobserve=t=>{this.entries.has(t)&&this.entries.delete(t)};_runCallback=()=>{if(!this.entries.size)return;const t=new Promise(s=>{const n=[];this.entries.forEach(({target:o,boundingClientRect:i})=>{this._root.contains(o)&&this._new(o).then(({boundingClientRect:r,isIntersecting:c})=>{if(!c)return;const{left:a,top:l,bottom:f,right:u}=r;if(i.top!==l||i.left!==a||i.right!==u||i.bottom!==f){const $={target:o,boundingClientRect:r};this.entries.set(o,$),n.push($)}})}),s(n)});this._tick=requestAnimationFrame(async()=>{const s=await t;s.length&&this._callback(s,this),this._runCallback()})};_new=t=>new Promise(s=>{new IntersectionObserver(([n],o)=>{o.disconnect(),s(n)}).observe(t)});getEntry=t=>this.entries.get(t);disconnect=()=>{cancelAnimationFrame(this._tick),this.entries.clear(),this._tick=0}}const At=["dropdown","dropup","dropstart","dropend"],En="Dropdown",Tn="dropdown-menu",$n=e=>{const t=M(e,"A");return e.tagName==="A"&&Yt(e,"href")&&X(e,"href")?.slice(-1)==="#"||t&&Yt(t,"href")&&X(t,"href")?.slice(-1)==="#"},[et,ss,ns,os]=At,Wi=`[${it}="${et}"]`,se=e=>R(e,En),Fi=e=>new as(e),ji=`${Tn}-end`,yn=[et,ss],Cn=[ns,os],Sn=["A","BUTTON"],zi={offset:5,display:"dynamic"},is=E(`show.bs.${et}`),Pn=E(`shown.bs.${et}`),rs=E(`hide.bs.${et}`),_n=E(`hidden.bs.${et}`),xn=E(`updated.bs.${et}`),Dn=e=>{const{element:t,menu:s,parentElement:n,options:o}=e,{offset:i}=o;if(W(s,"position")==="static")return;const r=pt(t),c=h(s,ji);["margin","top","bottom","left","right"].forEach(F=>{const Nt={};Nt[F]="",P(s,Nt)});let l=At.find(F=>h(n,F))||et;const f={dropdown:[i,0,0],dropup:[0,0,i],dropstart:r?[-1,0,0,i]:[-1,i,0],dropend:r?[-1,i,0]:[-1,0,0,i]},u={dropdown:{top:"100%"},dropup:{top:"auto",bottom:"100%"},dropstart:r?{left:"100%",right:"auto"}:{left:"auto",right:"100%"},dropend:r?{left:"auto",right:"100%"}:{left:"100%",right:"auto"},menuStart:r?{right:"0",left:"auto"}:{right:"auto",left:"0"},menuEnd:r?{right:"auto",left:"0"}:{right:"0",left:"auto"}},{offsetWidth:$,offsetHeight:B}=s,{clientWidth:Z,clientHeight:st}=at(t),{left:m,top:V,width:Lt,height:Ot}=Pt(t),C=m-$-i<0,Et=m+$+Lt+i>=Z,ft=V+B+i>=st,nt=V+B+Ot+i>=st,zt=V-B-i<0,y=(!r&&c||r&&!c)&&m+Lt-$<0,K=(r&&c||!r&&!c)&&m+$>=Z;if(Cn.includes(l)&&C&&Et&&(l=et),l===ns&&(r?Et:C)&&(l=os),l===os&&(r?C:Et)&&(l=ns),l===ss&&zt&&!nt&&(l=et),l===et&&nt&&!zt&&(l=ss),Cn.includes(l)&&ft&&rt(u[l],{top:"auto",bottom:0}),yn.includes(l)&&(y||K)){let F={left:"auto",right:"auto"};!y&&K&&!r&&(F={left:"auto",right:0}),y&&!K&&r&&(F={left:0,right:"auto"}),F&&rt(u[l],F)}const Kt=f[l];P(s,{...u[l],margin:`${Kt.map(F=>F&&`${F}px`).join(" ")}`}),yn.includes(l)&&c&&c&&P(s,u[!r&&y||r&&K?"menuStart":"menuEnd"]),w(n,xn)},Ki=e=>Array.from(e.children).map(t=>{if(t&&Sn.includes(t.tagName))return t;const{firstElementChild:s}=t;return s&&Sn.includes(s.tagName)?s:null}).filter(t=>t),An=e=>{const{element:t,options:s,menu:n}=e,o=e.open?k:L,i=b(t);o(i,H,Hn),o(i,ke,Hn),o(i,pe,Vi),o(i,Mo,Xi),s.display==="dynamic"&&(e.open?e._observer.observe(n):e._observer.disconnect())},cs=e=>{const t=[...At,"btn-group","input-group"].map(s=>lt(`${s} ${p}`,b(e))).find(s=>s.length);if(t&&t.length)return[...t[0].children].find(s=>At.some(n=>n===X(s,it)))},Hn=e=>{const{target:t,type:s}=e;if(!D(t))return;const n=cs(t),o=n&&se(n);if(!o)return;const{parentElement:i,menu:r}=o,c=i&&i.contains(t)&&(t.tagName==="form"||M(t,"form")!==null);[H,Rs].includes(s)&&$n(t)&&e.preventDefault(),!c&&s!==ke&&t!==n&&t!==r&&o.hide()};function qi(e){const t=se(this);ot(this)||t&&(e.stopPropagation(),t.toggle(),$n(this)&&e.preventDefault())}const Vi=e=>{[Me,Be].includes(e.code)&&e.preventDefault()};function Xi(e){const{code:t}=e,s=cs(this);if(!s)return;const n=se(s),{activeElement:o}=b(s);if(!n||!o)return;const{menu:i,open:r}=n,c=Ki(i);if(c&&c.length&&[Me,Be].includes(t)){let a=c.indexOf(o);o===s?a=0:t===Be?a=a>1?a-1:0:t===Me&&(a=aDn(this)),this._toggleEventListeners(!0))}get name(){return En}get defaults(){return zi}toggle(){this.open?this.hide():this.show()}show(){const{element:t,open:s,menu:n,parentElement:o}=this;if(s)return;const i=cs(t),r=i&&se(i);r&&r.hide(),[is,Pn,xn].forEach(c=>{c.relatedTarget=t}),w(o,is),!is.defaultPrevented&&(d(n,p),d(o,p),I(t,ue,"true"),Dn(this),this.open=!s,ct(t),An(this),w(o,Pn))}hide(){const{element:t,open:s,menu:n,parentElement:o}=this;s&&([rs,_n].forEach(i=>{i.relatedTarget=t}),w(o,rs),!rs.defaultPrevented&&(v(n,p),v(o,p),I(t,ue,"false"),this.open=!s,An(this),w(o,_n)))}_toggleEventListeners=t=>{(t?k:L)(this.element,H,qi)};dispose(){this.open&&this.hide(),this._toggleEventListeners(),super.dispose()}}const q="modal",ls="Modal",ds="Offcanvas",Yi="fixed-top",Ui="fixed-bottom",In="sticky-top",kn="position-sticky",Ln=e=>[...lt(Yi,e),...lt(Ui,e),...lt(In,e),...lt(kn,e),...lt("is-fixed",e)],Gi=e=>{const t=_t(e);P(t,{paddingRight:"",overflow:""});const s=Ln(t);s.length&&s.forEach(n=>{P(n,{paddingRight:"",marginRight:""})})},On=e=>{const{clientWidth:t}=at(e),{innerWidth:s}=Us(e);return Math.abs(s-t)},Nn=(e,t)=>{const s=_t(e),n=parseInt(W(s,"paddingRight"),10),i=W(s,"overflow")==="hidden"&&n?0:On(e),r=Ln(s);t&&(P(s,{overflow:"hidden",paddingRight:`${n+i}px`}),r.length&&r.forEach(c=>{const a=W(c,"paddingRight");if(c.style.paddingRight=`${parseInt(a,10)+i}px`,[In,kn].some(l=>h(c,l))){const l=W(c,"marginRight");c.style.marginRight=`${parseInt(l,10)-i}px`}}))},G="offcanvas",bt=ut({tagName:"div",className:"popup-container"}),Mn=(e,t)=>{const s=x(t)&&t.nodeName==="BODY",n=x(t)&&!s?t:bt,o=s?t:_t(e);x(e)&&(n===bt&&o.append(bt),n.append(e))},Bn=(e,t)=>{const s=x(t)&&t.nodeName==="BODY",n=x(t)&&!s?t:bt;x(e)&&(e.remove(),n===bt&&!bt.children.length&&bt.remove())},hs=(e,t)=>{const s=x(t)&&t.nodeName!=="BODY"?t:bt;return x(e)&&s.contains(e)},Rn="backdrop",Wn=`${q}-${Rn}`,Fn=`${G}-${Rn}`,jn=`.${q}.${p}`,fs=`.${G}.${p}`,A=ut("div"),Ht=e=>_(`${jn},${fs}`,b(e)),us=e=>{const t=e?Wn:Fn;[Wn,Fn].forEach(s=>{v(A,s)}),d(A,t)},zn=(e,t,s)=>{us(s),Mn(A,_t(e)),t&&d(A,O)},Kn=()=>{h(A,p)||(d(A,p),St(A))},Ce=()=>{v(A,p)},qn=e=>{Ht(e)||(v(A,O),Bn(A,_t(e)),Gi(e))},Vn=e=>D(e)&&W(e,"visibility")!=="hidden"&&e.offsetParent!==null,Qi=`.${q}`,Zi=`[${it}="${q}"]`,Ji=`[${Ee}="${q}"]`,Xn=`${q}-static`,tr={backdrop:!0,keyboard:!0},ne=e=>R(e,ls),er=e=>new ps(e),Se=E(`show.bs.${q}`),Yn=E(`shown.bs.${q}`),gs=E(`hide.bs.${q}`),Un=E(`hidden.bs.${q}`),Gn=e=>{const{element:t}=e,s=On(t),{clientHeight:n,scrollHeight:o}=at(t),{clientHeight:i,scrollHeight:r}=t,c=i!==r;if(!c&&s){const l={[pt(t)?"paddingLeft":"paddingRight"]:`${s}px`};P(t,l)}Nn(t,c||n!==o)},Qn=(e,t)=>{const s=t?k:L,{element:n}=e;s(n,H,or),s(b(n),pe,nr),t?e._observer.observe(n):e._observer.disconnect()},Zn=e=>{const{triggers:t,element:s,relatedTarget:n}=e;qn(s),P(s,{paddingRight:"",display:""}),Qn(e);const o=Se.relatedTarget||t.find(Vn);o&&ct(o),Un.relatedTarget=n||void 0,w(s,Un),we(s)},Jn=e=>{const{element:t,relatedTarget:s}=e;ct(t),Qn(e,!0),Yn.relatedTarget=s||void 0,w(t,Yn),we(t)},to=e=>{const{element:t,hasFade:s}=e;P(t,{display:"block"}),Gn(e),Ht(t)||P(_t(t),{overflow:"hidden"}),d(t,p),yt(t,Xt),I(t,ge,"true"),s?S(t,()=>Jn(e)):Jn(e)},eo=e=>{const{element:t,options:s,hasFade:n}=e;s.backdrop&&n&&h(A,p)&&!Ht(t)?(Ce(),S(A,()=>Zn(e))):Zn(e)};function sr(e){const t=j(this),s=t&&ne(t);ot(this)||s&&(this.tagName==="A"&&e.preventDefault(),s.relatedTarget=this,s.toggle())}const nr=({code:e,target:t})=>{const s=_(jn,b(t)),n=s&&ne(s);if(!n)return;const{options:o}=n;o.keyboard&&e===Re&&h(s,p)&&(n.relatedTarget=null,n.hide())},or=e=>{const{currentTarget:t}=e,s=t&&ne(t);if(!s||!t||g.get(t))return;const{options:n,isStatic:o,modalDialog:i}=s,{backdrop:r}=n,{target:c}=e,a=b(t)?.getSelection()?.toString().length,l=i.contains(c),f=c&&M(c,Ji);o&&!l?g.set(t,()=>{d(t,Xn),S(i,()=>ir(s))},17):(f||!a&&!o&&!l&&r)&&(s.relatedTarget=f||null,s.hide(),e.preventDefault())},ir=e=>{const{element:t,modalDialog:s}=e,n=(Qt(s)||0)+17;v(t,Xn),g.set(t,()=>g.clear(t),n)};class ps extends J{static selector=Qi;static init=er;static getInstance=ne;constructor(t,s){super(t,s);const{element:n}=this,o=_(`.${q}-dialog`,n);o&&(this.modalDialog=o,this.triggers=[...U(Zi,b(n))].filter(i=>j(i)===n),this.isStatic=this.options.backdrop==="static",this.hasFade=h(n,O),this.relatedTarget=null,this._observer=new ResizeObserver(()=>this.update()),this._toggleEventListeners(!0))}get name(){return ls}get defaults(){return tr}toggle(){h(this.element,p)?this.hide():this.show()}show(){const{element:t,options:s,hasFade:n,relatedTarget:o}=this,{backdrop:i}=s;let r=0;if(h(t,p)||(Se.relatedTarget=o||void 0,w(t,Se),Se.defaultPrevented))return;const c=Ht(t);if(c&&c!==t){const a=ne(c)||R(c,ds);a&&a.hide()}i?(hs(A)?us(!0):zn(t,n,!0),r=Qt(A),Kn(),setTimeout(()=>to(this),r)):(to(this),c&&h(A,p)&&Ce())}hide(){const{element:t,hasFade:s,relatedTarget:n}=this;h(t,p)&&(gs.relatedTarget=n||void 0,w(t,gs),!gs.defaultPrevented&&(v(t,p),I(t,Xt,"true"),yt(t,ge),s?S(t,()=>eo(this)):eo(this)))}update=()=>{h(this.element,p)&&Gn(this)};_toggleEventListeners=t=>{const s=t?k:L,{triggers:n}=this;n.length&&n.forEach(o=>{s(o,H,sr)})};dispose(){const t={...this},{modalDialog:s,hasFade:n}=t,o=()=>setTimeout(()=>super.dispose(),17);this.hide(),this._toggleEventListeners(),n?S(s,o):o()}}const rr=`.${G}`,so=`[${it}="${G}"]`,cr=`[${Ee}="${G}"]`,Pe=`${G}-toggling`,ar={backdrop:!0,keyboard:!0,scroll:!1},oe=e=>R(e,ds),lr=e=>new vs(e),_e=E(`show.bs.${G}`),no=E(`shown.bs.${G}`),ms=E(`hide.bs.${G}`),oo=E(`hidden.bs.${G}`),dr=e=>{const{element:t}=e,{clientHeight:s,scrollHeight:n}=at(t);Nn(t,s!==n)},io=(e,t)=>{const s=t?k:L,n=b(e.element);s(n,pe,gr),s(n,H,ur)},ro=e=>{const{element:t,options:s}=e;s.scroll||(dr(e),P(_t(t),{overflow:"hidden"})),d(t,Pe),d(t,p),P(t,{visibility:"visible"}),S(t,()=>pr(e))},hr=e=>{const{element:t,options:s}=e,n=Ht(t);t.blur(),!n&&s.backdrop&&h(A,p)&&Ce(),S(t,()=>mr(e))};function fr(e){const t=j(this),s=t&&oe(t);ot(this)||s&&(s.relatedTarget=this,s.toggle(),this.tagName==="A"&&e.preventDefault())}const ur=e=>{const{target:t}=e,s=_(fs,b(t));if(!s)return;const n=_(cr,s),o=oe(s);if(!o)return;const{options:i,triggers:r}=o,{backdrop:c}=i,a=M(t,so),l=b(s).getSelection();A.contains(t)&&c==="static"||(!(l&&l.toString().length)&&(!s.contains(t)&&c&&(!a||r.includes(t))||n&&n.contains(t))&&(o.relatedTarget=n&&n.contains(t)?n:void 0,o.hide()),a&&a.tagName==="A"&&e.preventDefault())},gr=({code:e,target:t})=>{const s=_(fs,b(t)),n=s&&oe(s);n&&n.options.keyboard&&e===Re&&(n.relatedTarget=void 0,n.hide())},pr=e=>{const{element:t}=e;v(t,Pe),yt(t,Xt),I(t,ge,"true"),I(t,"role","dialog"),w(t,no),io(e,!0),ct(t),we(t)},mr=e=>{const{element:t,triggers:s}=e;I(t,Xt,"true"),yt(t,ge),yt(t,"role"),P(t,{visibility:""});const n=_e.relatedTarget||s.find(Vn);n&&ct(n),qn(t),w(t,oo),v(t,Pe),we(t),Ht(t)||io(e)};class vs extends J{static selector=rr;static init=lr;static getInstance=oe;constructor(t,s){super(t,s);const{element:n}=this;this.triggers=[...U(so,b(n))].filter(o=>j(o)===n),this.relatedTarget=void 0,this._toggleEventListeners(!0)}get name(){return ds}get defaults(){return ar}toggle(){h(this.element,p)?this.hide():this.show()}show(){const{element:t,options:s,relatedTarget:n}=this;let o=0;if(h(t,p)||(_e.relatedTarget=n||void 0,no.relatedTarget=n||void 0,w(t,_e),_e.defaultPrevented))return;const i=Ht(t);if(i&&i!==t){const r=oe(i)||R(i,ls);r&&r.hide()}s.backdrop?(hs(A)?us():zn(t,!0),o=Qt(A),Kn(),setTimeout(()=>ro(this),o)):(ro(this),i&&h(A,p)&&Ce())}hide(){const{element:t,relatedTarget:s}=this;h(t,p)&&(ms.relatedTarget=s||void 0,oo.relatedTarget=s||void 0,w(t,ms),!ms.defaultPrevented&&(d(t,Pe),v(t,p),hr(this)))}_toggleEventListeners=t=>{const s=t?k:L;this.triggers.forEach(n=>{s(n,H,fr)})};dispose(){const{element:t}=this,s=h(t,p),n=()=>setTimeout(()=>super.dispose(),1);this.hide(),this._toggleEventListeners(),s?S(t,n):n()}}const It="popover",bs="Popover",ht="tooltip",co=e=>{const t=e===ht,s=t?`${e}-inner`:`${e}-body`,n=t?"":`

`,o=`
`,i=`
`;return`
${n+o+i}
`},ao={top:"top",bottom:"bottom",left:"start",right:"end"},ws=e=>{requestAnimationFrame(()=>{const t=/\b(top|bottom|start|end)+/,{element:s,tooltip:n,container:o,offsetParent:i,options:r,arrow:c}=e;if(!n)return;const a=pt(s),{x:l,y:f}=ti(i);P(n,{top:"",left:"",right:"",bottom:""});const{offsetWidth:u,offsetHeight:$}=n,{clientWidth:B,clientHeight:Z,offsetWidth:st}=at(s);let{placement:m}=r;const{clientWidth:V,offsetWidth:Lt}=o,C=W(o,"position")==="fixed",Et=Math.abs(C?V-Lt:B-st),ft=a&&C?Et:0,nt=B-(a?0:Et)-1,zt=e._observer.getEntry(s),{width:y,height:K,left:Kt,right:F,top:Nt}=zt?.boundingClientRect||Pt(s,!0),{x:De,y:qt}=oi(s,i,{x:l,y:f});P(c,{top:"",left:"",right:"",bottom:""});let Mt=0,ae="",Tt=0,Is="",Vt="",Ae="",ks="";const Bt=c.offsetWidth||0,$t=c.offsetHeight||0,Ls=Bt/2;let le=Nt-$-$t<0,de=Nt+$+K+$t>=Z,he=Kt-u-Bt=nt;const He=["left","right"],Os=["top","bottom"];le=He.includes(m)?Nt+K/2-$/2-$t<0:le,de=He.includes(m)?Nt+$/2+K/2+$t>=Z:de,he=Os.includes(m)?Kt+y/2-u/2=nt:fe,m=He.includes(m)&&he&&fe?"top":m,m=m==="top"&&le?"bottom":m,m=m==="bottom"&&de?"top":m,m=m==="left"&&he?"right":m,m=m==="right"&&fe?"left":m,n.className.includes(m)||(n.className=n.className.replace(t,ao[m])),He.includes(m)?(m==="left"?Tt=De-u-Bt:Tt=De+y+Bt,le&&de?(Mt=0,ae=0,Vt=qt+K/2-$t/2):le?(Mt=qt,ae="",Vt=K/2-Bt):de?(Mt=qt-$+K,ae="",Vt=$-K/2-Bt):(Mt=qt-$/2+K/2,Vt=$/2-$t/2)):Os.includes(m)&&(m==="top"?Mt=qt-$-$t:Mt=qt+K+$t,he?(Tt=0,Ae=De+y/2-Ls):fe?(Tt="auto",Is=0,ks=y/2+nt-F-Ls):(Tt=De-u/2+y/2,Ae=u/2-Ls)),P(n,{top:`${Mt}px`,bottom:ae===""?"":`${ae}px`,left:Tt==="auto"?Tt:`${Tt}px`,right:Is!==""?`${Is}px`:""}),D(c)&&(Vt!==""&&(c.style.top=`${Vt}px`),Ae!==""?c.style.left=`${Ae}px`:ks!==""&&(c.style.right=`${ks}px`));const Gr=E(`updated.bs.${Jt(e.name)}`);w(s,Gr)})},Es={template:co(ht),title:"",customClass:"",trigger:"hover focus",placement:"top",sanitizeFn:void 0,animation:!0,delay:200,container:document.body,content:"",dismissible:!1,btnClose:""},lo="data-original-title",kt="Tooltip",wt=(e,t,s)=>{if(Gt(t)&&t.length){let n=t.trim();ri(s)&&(n=s(n));const i=new DOMParser().parseFromString(n,"text/html");e.append(...i.body.childNodes)}else D(t)?e.append(t):(ci(t)||ii(t)&&t.every(x))&&e.append(...t)},vr=e=>{const t=e.name===kt,{id:s,element:n,options:o}=e,{title:i,placement:r,template:c,animation:a,customClass:l,sanitizeFn:f,dismissible:u,content:$,btnClose:B}=o,Z=t?ht:It,st={...ao};let m=[],V=[];pt(n)&&(st.left="end",st.right="start");const Lt=`bs-${Z}-${st[r]}`;let Ot;if(D(c))Ot=c;else{const y=ut("div");wt(y,c,f),Ot=y.firstChild}if(!D(Ot))return;e.tooltip=Ot.cloneNode(!0);const{tooltip:C}=e;I(C,"id",s),I(C,"role",ht);const Et=t?`${ht}-inner`:`${It}-body`,ft=t?null:_(`.${It}-header`,C),nt=_(`.${Et}`,C);e.arrow=_(`.${Z}-arrow`,C);const{arrow:zt}=e;if(D(i))m=[i.cloneNode(!0)];else{const y=ut("div");wt(y,i,f),m=[...y.childNodes]}if(D($))V=[$.cloneNode(!0)];else{const y=ut("div");wt(y,$,f),V=[...y.childNodes]}if(u)if(i)if(D(B))m=[...m,B.cloneNode(!0)];else{const y=ut("div");wt(y,B,f),m=[...m,y.firstChild]}else if(ft&&ft.remove(),D(B))V=[...V,B.cloneNode(!0)];else{const y=ut("div");wt(y,B,f),V=[...V,y.firstChild]}t?i&&nt&&wt(nt,i,f):(i&&ft&&wt(ft,m,f),$&&nt&&wt(nt,V,f),e.btn=_(".btn-close",C)||void 0),d(C,"position-absolute"),d(zt,"position-absolute"),h(C,Z)||d(C,Z),a&&!h(C,O)&&d(C,O),l&&!h(C,l)&&d(C,l),h(C,Lt)||d(C,Lt)},br=e=>{const t=["HTML","BODY"],s=[];let{parentNode:n}=e;for(;n&&!t.includes(n.nodeName);)n=ei(n),Ys(n)||si(n)||s.push(n);return s.find((o,i)=>(W(o,"position")!=="relative"||W(o,"position")==="relative"&&o.offsetHeight!==o.scrollHeight)&&s.slice(i+1).every(r=>W(r,"position")==="static")?o:null)||b(e).body},wr=`[${it}="${ht}"],[data-tip="${ht}"]`,ho="title";let fo=e=>R(e,kt);const Er=e=>new xe(e),Tr=e=>{const{element:t,tooltip:s,container:n}=e;yt(t,Ns),Bn(s,n)},ie=e=>{const{tooltip:t,container:s}=e;return t&&hs(t,s)},$r=(e,t)=>{const{element:s}=e;e._toggleEventListeners(),Yt(s,lo)&&e.name===kt&&vo(e),t&&t()},uo=(e,t)=>{const s=t?k:L,{element:n}=e;s(b(n),Ne,e.handleTouch,Zt)},go=e=>{const{element:t}=e,s=E(`shown.bs.${Jt(e.name)}`);uo(e,!0),w(t,s),g.clear(t,"in")},po=e=>{const{element:t}=e,s=E(`hidden.bs.${Jt(e.name)}`);uo(e),Tr(e),w(t,s),g.clear(t,"out")},mo=(e,t)=>{const s=t?k:L,{element:n,tooltip:o}=e,i=M(n,`.${q}`),r=M(n,`.${G}`);t?[n,o].forEach(c=>e._observer.observe(c)):e._observer.disconnect(),i&&s(i,`hide.bs.${q}`,e.handleHide),r&&s(r,`hide.bs.${G}`,e.handleHide)},vo=(e,t)=>{const s=[lo,ho],{element:n}=e;I(n,s[t?0:1],t||X(n,s[0])||""),yt(n,s[t?1:0])};class xe extends J{static selector=wr;static init=Er;static getInstance=fo;static styleTip=ws;constructor(t,s){super(t,s);const{element:n}=this,o=this.name===kt,i=o?ht:It,r=o?kt:bs;fo=f=>R(f,r),this.enabled=!0,this.id=`${i}-${Js(n,i)}`;const{options:c}=this;if(!c.title&&o||!o&&!c.content)return;rt(Es,{titleAttr:""}),Yt(n,ho)&&o&&typeof c.title=="string"&&vo(this,c.title);const a=br(n),l=["sticky","fixed","relative"].some(f=>W(a,"position")===f)?a:Us(n);this.container=a,this.offsetParent=l,vr(this),this.tooltip&&(this._observer=new es(()=>this.update()),this._toggleEventListeners(!0))}get name(){return kt}get defaults(){return Es}handleFocus=()=>ct(this.element);handleShow=()=>this.show();show(){const{options:t,tooltip:s,element:n,container:o,id:i}=this,{animation:r}=t,c=g.get(n,"out");g.clear(n,"out"),s&&!c&&!ie(this)&&g.set(n,()=>{const a=E(`show.bs.${Jt(this.name)}`);w(n,a),a.defaultPrevented||(Mn(s,o),I(n,Ns,`#${i}`),this.update(),mo(this,!0),h(s,p)||d(s,p),r?S(s,()=>go(this)):go(this))},17,"in")}handleHide=()=>this.hide();hide(){const{options:t,tooltip:s,element:n}=this,{animation:o,delay:i}=t;g.clear(n,"in"),s&&ie(this)&&g.set(n,()=>{const r=E(`hide.bs.${Jt(this.name)}`);w(n,r),r.defaultPrevented||(this.update(),v(s,p),mo(this),o?S(s,()=>po(this)):po(this))},i+17,"out")}update=()=>{ws(this)};toggle=()=>{const{tooltip:t}=this;t&&!ie(this)?this.show():this.hide()};enable(){const{enabled:t}=this;t||(this._toggleEventListeners(!0),this.enabled=!t)}disable(){const{tooltip:t,enabled:s}=this;s&&(t&&ie(this)&&this.hide(),this._toggleEventListeners(),this.enabled=!s)}toggleEnabled(){this.enabled?this.disable():this.enable()}handleTouch=({target:t})=>{const{tooltip:s,element:n}=this;s&&s.contains(t)||t===n||t&&n.contains(t)||this.hide()};_toggleEventListeners=t=>{const s=t?k:L,{element:n,options:o,btn:i}=this,{trigger:r}=o,a=!!(this.name!==kt&&o.dismissible);r.includes("manual")||(this.enabled=!!t,r.split(" ").forEach(f=>{f===Bo?(s(n,Rs,this.handleShow),s(n,me,this.handleShow),a||(s(n,Oe,this.handleHide),s(b(n),Ne,this.handleTouch,Zt))):f===H?s(n,f,a?this.handleShow:this.toggle):f===ke&&(s(n,Le,this.handleShow),a||s(n,Bs,this.handleHide),Vo()&&s(n,H,this.handleFocus)),a&&i&&s(i,H,this.handleHide)}))};dispose(){const{tooltip:t,options:s}=this,n={...this,name:this.name},o=()=>setTimeout(()=>$r(n,()=>super.dispose()),17);s.animation&&ie(n)?(this.options.delay=0,this.hide(),S(t,o)):o()}}const yr=`[${it}="${It}"],[data-tip="${It}"]`,Cr=rt({},Es,{template:co(It),content:"",dismissible:!1,btnClose:''}),Sr=e=>R(e,bs),Pr=e=>new Ts(e);class Ts extends xe{static selector=yr;static init=Pr;static getInstance=Sr;static styleTip=ws;constructor(t,s){super(t,s)}get name(){return bs}get defaults(){return Cr}show=()=>{super.show();const{options:t,btn:s}=this;t.dismissible&&s&&setTimeout(()=>ct(s),17)}}const _r="scrollspy",bo="ScrollSpy",xr='[data-bs-spy="scroll"]',Dr="[href]",Ar={offset:10,target:void 0},Hr=e=>R(e,bo),Ir=e=>new ys(e),wo=E(`activate.bs.${_r}`),kr=e=>{const{target:t,_itemsLength:s,_observables:n}=e,o=ze("A",t),i=b(t);!o.length||s===n.size||(n.clear(),Array.from(o).forEach(r=>{const c=X(r,"href")?.slice(1),a=c?.length?i.getElementById(c):null;a&&!ot(r)&&e._observables.set(a,r)}),e._itemsLength=e._observables.size)},Eo=e=>{Array.from(ze("A",e)).forEach(t=>{h(t,T)&&v(t,T)})},To=(e,t)=>{const{target:s,element:n}=e;Eo(s),e._activeItem=t,d(t,T);let o=t;for(;o!==s;)if(o=o.parentElement,["nav","dropdown-menu","list-group"].some(i=>h(o,i))){const i=o.previousElementSibling;i&&!h(i,T)&&d(i,T)}wo.relatedTarget=t,w(n,wo)},$s=(e,t)=>{const{scrollTarget:s,element:n,options:o}=e;return(s!==n?Pt(t).top+s.scrollTop:t.offsetTop)-(o.offset||10)};class ys extends J{static selector=xr;static init=Ir;static getInstance=Hr;constructor(t,s){super(t,s);const{element:n,options:o}=this,i=_(o.target,b(n));i&&(this.target=i,this.scrollTarget=n.clientHeight{requestAnimationFrame(()=>this.refresh())},{root:this.scrollTarget}),this._toggleEventListeners(!0))}get name(){return bo}get defaults(){return Ar}refresh=()=>{const{target:t,scrollTarget:s}=this;if(!t||t.offsetHeight===0)return;kr(this);const{_itemsLength:n,_observables:o,_activeItem:i}=this;if(!n)return;const r=o.entries().toArray(),{scrollTop:c,scrollHeight:a,clientHeight:l}=s;if(c>=a-l){const u=r[n-1]?.[1];i!==u&&To(this,u);return}const f=r[0]?.[0]?$s(this,r[0][0]):null;if(f!==null&&c0){this._activeItem=null,Eo(t);return}for(let u=0;u=Z&&(m===null||c{const s=M(t.target,Dr),n=s&&X(s,"href")?.slice(1),o=n&&ai(n,this.target);o&&(this.scrollTarget.scrollTo({top:o.offsetTop,behavior:"smooth"}),t.preventDefault())};_toggleEventListeners=t=>{const{target:s,_observables:n,_observer:o,_scrollTo:i}=this;(t?k:L)(s,H,i),t?n?.forEach((c,a)=>o.observe(a)):o.disconnect()};dispose(){this._toggleEventListeners(),super.dispose()}}const re="tab",$o="Tab",Cs=`[${it}="${re}"]`,yo=e=>R(e,$o),Lr=e=>new _s(e),Ss=E(`show.bs.${re}`),Co=E(`shown.bs.${re}`),Ps=E(`hide.bs.${re}`),So=E(`hidden.bs.${re}`),ce=new Map,Po=e=>{const{tabContent:t,nav:s}=e;t&&h(t,Dt)&&(t.style.height="",v(t,Dt)),s&&g.clear(s)},_o=e=>{const{element:t,tabContent:s,content:n,nav:o}=e,{tab:i}=D(o)&&ce.get(o)||{tab:null};if(s&&n&&h(n,O)){const{currentHeight:r,nextHeight:c}=ce.get(t)||{currentHeight:0,nextHeight:0};r!==c?setTimeout(()=>{s.style.height=`${c}px`,St(s),S(s,()=>Po(e))},50):Po(e)}else o&&g.clear(o);Co.relatedTarget=i,w(t,Co)},xo=e=>{const{element:t,content:s,tabContent:n,nav:o}=e,{tab:i,content:r}=o&&ce.get(o)||{tab:null,content:null};let c=0;if(n&&s&&h(s,O)&&([r,s].forEach(a=>{a&&d(a,"overflow-hidden")}),c=r?r.scrollHeight:0),Ss.relatedTarget=i,So.relatedTarget=t,w(t,Ss),!Ss.defaultPrevented){if(s&&d(s,T),r&&v(r,T),n&&s&&h(s,O)){const a=s.scrollHeight;ce.set(t,{currentHeight:c,nextHeight:a,tab:null,content:null}),d(n,Dt),n.style.height=`${c}px`,St(n),[r,s].forEach(l=>{l&&v(l,"overflow-hidden")})}s&&s&&h(s,O)?setTimeout(()=>{d(s,p),S(s,()=>{_o(e)})},1):(s&&d(s,p),_o(e)),i&&w(i,So)}},Do=e=>{const{nav:t}=e;if(!D(t))return{tab:null,content:null};const s=lt(T,t);let n=null;s.length===1&&!At.some(i=>h(s[0].parentElement,i))?[n]=s:s.length>1&&(n=s[s.length-1]);const o=D(n)?j(n):null;return{tab:n,content:o}},Ao=e=>{if(!D(e))return null;const t=M(e,`.${At.join(",.")}`);return t?_(`.${At[0]}-toggle`,t):null},Or=e=>{const t=M(e.target,Cs),s=t&&yo(t);s&&(e.preventDefault(),s.show())};class _s extends J{static selector=Cs;static init=Lr;static getInstance=yo;constructor(t){super(t);const{element:s}=this,n=j(s);if(!n)return;const o=M(s,".nav"),i=M(n,".tab-content");this.nav=o,this.content=n,this.tabContent=i,this.dropdown=Ao(s);const{tab:r}=Do(this);if(o&&!r){const c=_(Cs,o),a=c&&j(c);a&&(d(c,T),d(a,p),d(a,T),I(s,Ie,"true"))}this._toggleEventListeners(!0)}get name(){return $o}show(){const{element:t,content:s,nav:n,dropdown:o}=this;if(n&&g.get(n)||h(t,T))return;const{tab:i,content:r}=Do(this);if(n&&i&&ce.set(n,{tab:i,content:r,currentHeight:0,nextHeight:0}),Ps.relatedTarget=t,!D(i)||(w(i,Ps),Ps.defaultPrevented))return;d(t,T),I(t,Ie,"true");const c=D(i)&&Ao(i);if(c&&h(c,T)&&v(c,T),n){const a=()=>{i&&(v(i,T),I(i,Ie,"false")),o&&!h(o,T)&&d(o,T)};r&&(h(r,O)||s&&h(s,O))?g.set(n,a,1):a()}r&&(v(r,p),h(r,O)?S(r,()=>xo(this)):xo(this))}_toggleEventListeners=t=>{(t?k:L)(this.element,H,Or)};dispose(){this._toggleEventListeners(),super.dispose()}}const Q="toast",Ho="Toast",Nr=`.${Q}`,Mr=`[${Ee}="${Q}"]`,Br=`[${it}="${Q}"]`,jt="showing",Io="hide",Rr={animation:!0,autohide:!0,delay:5e3},xs=e=>R(e,Ho),Wr=e=>new Ds(e),ko=E(`show.bs.${Q}`),Fr=E(`shown.bs.${Q}`),Lo=E(`hide.bs.${Q}`),jr=E(`hidden.bs.${Q}`),Oo=e=>{const{element:t,options:s}=e;v(t,jt),g.clear(t,jt),w(t,Fr),s.autohide&&g.set(t,()=>e.hide(),s.delay,Q)},No=e=>{const{element:t}=e;v(t,jt),v(t,p),d(t,Io),g.clear(t,Q),w(t,jr)},zr=e=>{const{element:t,options:s}=e;d(t,jt),s.animation?(St(t),S(t,()=>No(e))):No(e)},Kr=e=>{const{element:t,options:s}=e;g.set(t,()=>{v(t,Io),St(t),d(t,p),d(t,jt),s.animation?S(t,()=>Oo(e)):Oo(e)},17,jt)};function qr(e){const t=j(this),s=t&&xs(t);ot(this)||s&&(this.tagName==="A"&&e.preventDefault(),s.relatedTarget=this,s.show())}const Vr=e=>{const t=e.target,s=xs(t),{type:n,relatedTarget:o}=e;!s||t===o||t.contains(o)||([me,Le].includes(n)?g.clear(t,Q):g.set(t,()=>s.hide(),s.options.delay,Q))};class Ds extends J{static selector=Nr;static init=Wr;static getInstance=xs;constructor(t,s){super(t,s);const{element:n,options:o}=this;o.animation&&!h(n,O)?d(n,O):!o.animation&&h(n,O)&&v(n,O),this.dismiss=_(Mr,n),this.triggers=[...U(Br,b(n))].filter(i=>j(i)===n),this._toggleEventListeners(!0)}get name(){return Ho}get defaults(){return Rr}get isShown(){return h(this.element,p)}show=()=>{const{element:t,isShown:s}=this;!t||s||(w(t,ko),ko.defaultPrevented||Kr(this))};hide=()=>{const{element:t,isShown:s}=this;!t||!s||(w(t,Lo),Lo.defaultPrevented||zr(this))};_toggleEventListeners=t=>{const s=t?k:L,{element:n,triggers:o,dismiss:i,options:r,hide:c}=this;i&&s(i,H,c),r.autohide&&[Le,Bs,me,Oe].forEach(a=>s(n,a,Vr)),o.length&&o.forEach(a=>{s(a,H,qr)})};dispose(){const{element:t,isShown:s}=this;this._toggleEventListeners(),g.clear(t,Q),s&&v(t,p),super.dispose()}}const As=new Map;[Ke,qe,Je,ts,as,ps,vs,Ts,ys,_s,Ds,xe].forEach(e=>As.set(e.prototype.name,e));const Xr=(e,t)=>{[...t].forEach(s=>e(s))},Yr=(e,t)=>{const s=Ct.getAllFor(e);s&&[...s].forEach(([n,o])=>{t.contains(n)&&o.dispose()})},Hs=e=>{const t=e&&e.nodeName?e:document,s=[...ze("*",t)];As.forEach(n=>{const{init:o,selector:i}=n;Xr(o,s.filter(r=>Gs(r,i)))})},Ur=e=>{const t=e&&e.nodeName?e:document;As.forEach(s=>{Yr(s.prototype.name,t)})};return document.body?Hs():k(document,"DOMContentLoaded",()=>Hs(),{once:!0}),N.Alert=Ke,N.Button=qe,N.Carousel=Je,N.Collapse=ts,N.Dropdown=as,N.Modal=ps,N.Offcanvas=vs,N.Popover=Ts,N.ScrollSpy=ys,N.Tab=_s,N.Toast=Ds,N.Tooltip=xe,N.initCallback=Hs,N.removeDataAPI=Ur,Object.defineProperty(N,Symbol.toStringTag,{value:"Module"}),N}({}); //# sourceMappingURL=bootstrap-native.js.map diff --git a/dist/bootstrap-native.js.map b/dist/bootstrap-native.js.map index c6d3abb5..367d5f55 100644 --- a/dist/bootstrap-native.js.map +++ b/dist/bootstrap-native.js.map @@ -1 +1 @@ -{"version":3,"file":"bootstrap-native.js","sources":["../node_modules/.pnpm/@thednp+shorty@2.0.8/node_modules/@thednp/shorty/dist/shorty.mjs","../node_modules/.pnpm/@thednp+event-listener@2.0.8/node_modules/@thednp/event-listener/dist/event-listener.mjs","../src/strings/fadeClass.ts","../src/strings/showClass.ts","../src/strings/dataBsDismiss.ts","../src/strings/alertString.ts","../src/strings/alertComponent.ts","../src/util/isDisabled.ts","../src/version.ts","../src/components/base-component.ts","../src/components/alert.ts","../src/strings/activeClass.ts","../src/strings/dataBsToggle.ts","../src/strings/buttonString.ts","../src/strings/buttonComponent.ts","../src/components/button.ts","../src/strings/dataBsTarget.ts","../src/strings/carouselString.ts","../src/strings/carouselComponent.ts","../src/strings/dataBsParent.ts","../src/strings/dataBsContainer.ts","../src/util/getTargetElement.ts","../src/components/carousel.ts","../src/strings/collapsingClass.ts","../src/strings/collapseString.ts","../src/strings/collapseComponent.ts","../src/components/collapse.ts","../node_modules/.pnpm/@thednp+position-observer@1.0.2/node_modules/@thednp/position-observer/dist/index.mjs","../src/strings/dropdownClasses.ts","../src/strings/dropdownComponent.ts","../src/strings/dropdownMenuClass.ts","../src/util/isEmptyAnchor.ts","../src/components/dropdown.ts","../src/strings/modalString.ts","../src/strings/modalComponent.ts","../src/strings/offcanvasComponent.ts","../src/strings/fixedTopClass.ts","../src/strings/fixedBottomClass.ts","../src/strings/stickyTopClass.ts","../src/strings/positionStickyClass.ts","../src/util/scrollbar.ts","../src/strings/offcanvasString.ts","../src/util/popupContainer.ts","../src/util/backdrop.ts","../src/util/isVisible.ts","../src/components/modal.ts","../src/components/offcanvas.ts","../src/strings/popoverString.ts","../src/strings/popoverComponent.ts","../src/strings/tooltipString.ts","../src/util/getTipTemplate.ts","../src/util/tipClassPositions.ts","../src/util/styleTip.ts","../src/util/tooltipDefaults.ts","../src/strings/dataOriginalTitle.ts","../src/strings/tooltipComponent.ts","../src/util/setHtml.ts","../src/util/createTip.ts","../src/util/getElementContainer.ts","../src/components/tooltip.ts","../src/components/popover.ts","../src/strings/scrollspyString.ts","../src/strings/scrollspyComponent.ts","../src/components/scrollspy.ts","../src/strings/tabString.ts","../src/strings/tabComponent.ts","../src/components/tab.ts","../src/strings/toastString.ts","../src/strings/toastComponent.ts","../src/components/toast.ts","../src/util/init.ts"],"sourcesContent":["const Ne = \"2.0.8\", Ce = \"aria-checked\", Te = \"aria-description\", Me = \"aria-describedby\", De = \"aria-expanded\", Le = \"aria-haspopup\", $ = \"aria-hidden\", Oe = \"aria-label\", xe = \"aria-labelledby\", ze = \"aria-modal\", Ie = \"aria-pressed\", Pe = \"aria-selected\", Fe = \"aria-valuemin\", Be = \"aria-valuemax\", Ve = \"aria-valuenow\", He = \"aria-valuetext\", J = \"abort\", X = \"beforeunload\", Y = \"blur\", tt = \"change\", et = \"contextmenu\", H = \"DOMContentLoaded\", nt = \"DOMMouseScroll\", ot = \"error\", st = \"focus\", rt = \"focusin\", ct = \"focusout\", at = \"gesturechange\", it = \"gestureend\", ut = \"gesturestart\", lt = \"keydown\", dt = \"keypress\", ft = \"keyup\", pt = \"load\", gt = \"click\", mt = \"dblclick\", vt = \"mousedown\", bt = \"mouseup\", Et = \"hover\", ht = \"mouseenter\", yt = \"mouseleave\", wt = \"mousein\", At = \"mouseout\", St = \"mouseover\", kt = \"mousemove\", Nt = \"mousewheel\", Ct = \"move\", Tt = \"orientationchange\", Mt = \"pointercancel\", Dt = \"pointerdown\", Lt = \"pointerleave\", Ot = \"pointermove\", xt = \"pointerup\", zt = \"readystatechange\", It = \"reset\", Pt = \"resize\", Ft = \"select\", Bt = \"selectend\", Vt = \"selectstart\", Ht = \"scroll\", Ut = \"submit\", Wt = \"touchstart\", Rt = \"touchmove\", Qt = \"touchcancel\", jt = \"touchend\", Kt = \"unload\", Ue = {\n DOMContentLoaded: H,\n DOMMouseScroll: nt,\n abort: J,\n beforeunload: X,\n blur: Y,\n change: tt,\n click: gt,\n contextmenu: et,\n dblclick: mt,\n error: ot,\n focus: st,\n focusin: rt,\n focusout: ct,\n gesturechange: at,\n gestureend: it,\n gesturestart: ut,\n hover: Et,\n keydown: lt,\n keypress: dt,\n keyup: ft,\n load: pt,\n mousedown: vt,\n mousemove: kt,\n mousein: wt,\n mouseout: At,\n mouseenter: ht,\n mouseleave: yt,\n mouseover: St,\n mouseup: bt,\n mousewheel: Nt,\n move: Ct,\n orientationchange: Tt,\n pointercancel: Mt,\n pointerdown: Dt,\n pointerleave: Lt,\n pointermove: Ot,\n pointerup: xt,\n readystatechange: zt,\n reset: It,\n resize: Pt,\n scroll: Ht,\n select: Ft,\n selectend: Bt,\n selectstart: Vt,\n submit: Ut,\n touchcancel: Qt,\n touchend: jt,\n touchmove: Rt,\n touchstart: Wt,\n unload: Kt\n}, We = \"drag\", Re = \"dragstart\", Qe = \"dragenter\", je = \"dragleave\", Ke = \"dragover\", qe = \"dragend\", Ge = \"loadstart\", Ze = {\n start: \"mousedown\",\n end: \"mouseup\",\n move: \"mousemove\",\n cancel: \"mouseleave\"\n}, _e = { down: \"mousedown\", up: \"mouseup\" }, $e = \"onmouseleave\" in document ? [\"mouseenter\", \"mouseleave\"] : [\"mouseover\", \"mouseout\"], Je = {\n start: \"touchstart\",\n end: \"touchend\",\n move: \"touchmove\",\n cancel: \"touchcancel\"\n}, Xe = { in: \"focusin\", out: \"focusout\" }, qt = 'a[href], button, input, textarea, select, details, [tabindex]:not([tabindex=\"-1\"]', Ye = {\n Backspace: \"Backspace\",\n Tab: \"Tab\",\n Enter: \"Enter\",\n Shift: \"Shift\",\n Control: \"Control\",\n Alt: \"Alt\",\n Pause: \"Pause\",\n CapsLock: \"CapsLock\",\n Escape: \"Escape\",\n Scape: \"Space\",\n ArrowLeft: \"ArrowLeft\",\n ArrowUp: \"ArrowUp\",\n ArrowRight: \"ArrowRight\",\n ArrowDown: \"ArrowDown\",\n Insert: \"Insert\",\n Delete: \"Delete\",\n Meta: \"Meta\",\n ContextMenu: \"ContextMenu\",\n ScrollLock: \"ScrollLock\"\n}, tn = \"Alt\", en = \"ArrowDown\", nn = \"ArrowUp\", on = \"ArrowLeft\", sn = \"ArrowRight\", rn = \"Backspace\", cn = \"CapsLock\", an = \"Control\", un = \"Delete\", ln = \"Enter\", dn = \"NumpadEnter\", fn = \"Escape\", pn = \"Insert\", gn = \"Meta\", mn = \"Pause\", vn = \"ScrollLock\", bn = \"Shift\", En = \"Space\", hn = \"Tab\", Gt = \"animationDuration\", Zt = \"animationDelay\", U = \"animationName\", T = \"animationend\", _t = \"transitionDuration\", $t = \"transitionDelay\", M = \"transitionend\", W = \"transitionProperty\", yn = \"addEventListener\", wn = \"removeEventListener\", An = {\n linear: \"linear\",\n easingSinusoidalIn: \"cubic-bezier(0.47,0,0.745,0.715)\",\n easingSinusoidalOut: \"cubic-bezier(0.39,0.575,0.565,1)\",\n easingSinusoidalInOut: \"cubic-bezier(0.445,0.05,0.55,0.95)\",\n easingQuadraticIn: \"cubic-bezier(0.550,0.085,0.680,0.530)\",\n easingQuadraticOut: \"cubic-bezier(0.250,0.460,0.450,0.940)\",\n easingQuadraticInOut: \"cubic-bezier(0.455,0.030,0.515,0.955)\",\n easingCubicIn: \"cubic-bezier(0.55,0.055,0.675,0.19)\",\n easingCubicOut: \"cubic-bezier(0.215,0.61,0.355,1)\",\n easingCubicInOut: \"cubic-bezier(0.645,0.045,0.355,1)\",\n easingQuarticIn: \"cubic-bezier(0.895,0.03,0.685,0.22)\",\n easingQuarticOut: \"cubic-bezier(0.165,0.84,0.44,1)\",\n easingQuarticInOut: \"cubic-bezier(0.77,0,0.175,1)\",\n easingQuinticIn: \"cubic-bezier(0.755,0.05,0.855,0.06)\",\n easingQuinticOut: \"cubic-bezier(0.23,1,0.32,1)\",\n easingQuinticInOut: \"cubic-bezier(0.86,0,0.07,1)\",\n easingExponentialIn: \"cubic-bezier(0.95,0.05,0.795,0.035)\",\n easingExponentialOut: \"cubic-bezier(0.19,1,0.22,1)\",\n easingExponentialInOut: \"cubic-bezier(1,0,0,1)\",\n easingCircularIn: \"cubic-bezier(0.6,0.04,0.98,0.335)\",\n easingCircularOut: \"cubic-bezier(0.075,0.82,0.165,1)\",\n easingCircularInOut: \"cubic-bezier(0.785,0.135,0.15,0.86)\",\n easingBackIn: \"cubic-bezier(0.6,-0.28,0.735,0.045)\",\n easingBackOut: \"cubic-bezier(0.175,0.885,0.32,1.275)\",\n easingBackInOut: \"cubic-bezier(0.68,-0.55,0.265,1.55)\"\n}, Sn = \"offsetHeight\", kn = \"offsetWidth\", Nn = \"scrollHeight\", Cn = \"scrollWidth\", Tn = \"tabindex\", Mn = navigator.userAgentData, { userAgent: Jt } = navigator, Dn = Jt, Ln = () => {\n const t = /iPhone|iPad|iPod|Android/i;\n return navigator?.userAgentData?.brands.some(\n (e) => t.test(e.brand)\n ) || t.test(navigator?.userAgent) || !1;\n}, On = () => {\n const t = /(iPhone|iPod|iPad)/;\n return navigator?.userAgentData?.brands.some(\n (e) => t.test(e.brand)\n ) || t.test(\n navigator?.userAgent\n ) || !1;\n}, xn = () => navigator?.userAgent?.includes(\"Firefox\") || !1, Xt = () => typeof CSS > \"u\" || !CSS.supports ? !1 : CSS.supports(\"-webkit-backdrop-filter\", \"none\"), zn = () => [\"webkitPerspective\", \"perspective\"].some((t) => t in document.head.style), Yt = () => {\n}, R = (t, e, n, o) => {\n const s = o || !1;\n t.addEventListener(\n e,\n n,\n s\n );\n}, Q = (t, e, n, o) => {\n const s = o || !1;\n t.removeEventListener(\n e,\n n,\n s\n );\n}, te = (t, e, n, o) => {\n const s = (r) => {\n (r.target === t || r.currentTarget === t) && (n.apply(t, [r]), Q(t, e, s, o));\n };\n R(t, e, s, o);\n}, In = () => {\n let t = !1;\n try {\n const e = Object.defineProperty({}, \"passive\", {\n get: () => (t = !0, t)\n });\n te(document, H, Yt, e);\n } catch {\n }\n return t;\n}, Pn = () => [\"webkitTransform\", \"transform\"].some((t) => t in document.head.style), Fn = () => \"ontouchstart\" in window || \"msMaxTouchPoints\" in navigator, Bn = () => [\"webkitAnimation\", \"animation\"].some((t) => t in document.head.style), Vn = () => [\"webkitTransition\", \"transition\"].some((t) => t in document.head.style), j = (t, e) => t.getAttribute(e), Hn = (t, e, n) => e.getAttributeNS(t, n), ee = (t, e) => t.hasAttribute(e), Un = (t, e, n) => e.hasAttributeNS(t, n), Wn = (t, e, n) => t.setAttribute(e, n), Rn = (t, e, n, o) => e.setAttributeNS(t, n, o), Qn = (t, e) => t.removeAttribute(e), jn = (t, e, n) => e.removeAttributeNS(t, n), Kn = (t, ...e) => {\n t.classList.add(...e);\n}, qn = (t, ...e) => {\n t.classList.remove(...e);\n}, Gn = (t, e) => t.classList.contains(e), { body: Zn } = document, { documentElement: _n } = document, { head: $n } = document, Jn = (t) => Array.from(t), v = (t) => t != null && typeof t == \"object\" || !1, u = (t) => v(t) && typeof t.nodeType == \"number\" && [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11].some(\n (e) => t.nodeType === e\n) || !1, i = (t) => u(t) && t.nodeType === 1 || !1, E = /* @__PURE__ */ new Map(), L = {\n data: E,\n set: (t, e, n) => {\n if (!i(t)) return;\n E.has(e) || E.set(e, /* @__PURE__ */ new Map()), E.get(e).set(t, n);\n },\n getAllFor: (t) => E.get(t) || null,\n get: (t, e) => {\n if (!i(t) || !e) return null;\n const n = L.getAllFor(e);\n return t && n && n.get(t) || null;\n },\n remove: (t, e) => {\n const n = L.getAllFor(e);\n !n || !i(t) || (n.delete(t), n.size === 0 && E.delete(e));\n }\n}, Xn = (t, e) => L.get(t, e), Yn = (t) => t?.charAt(0).toUpperCase() + t?.slice(1), I = (t) => t?.trim().replace(\n /(?:^\\w|[A-Z]|\\b\\w)/g,\n (e, n) => n === 0 ? e.toLowerCase() : e.toUpperCase()\n).replace(/\\s+/g, \"\"), N = (t) => typeof t == \"string\" || !1, K = (t) => v(t) && t.constructor.name === \"Window\" || !1, q = (t) => u(t) && t.nodeType === 9 || !1, d = (t) => q(t) ? t : u(t) ? t.ownerDocument : K(t) ? t.document : globalThis.document, C = (t, ...e) => Object.assign(t, ...e), ne = (t) => {\n if (!t) return;\n if (N(t))\n return d().createElement(t);\n const { tagName: e } = t, n = ne(e);\n if (!n) return;\n const o = { ...t };\n return delete o.tagName, C(n, o);\n}, oe = (t, e) => {\n if (!t || !e) return;\n if (N(e))\n return d().createElementNS(t, e);\n const { tagName: n } = e, o = oe(t, n);\n if (!o) return;\n const s = { ...e };\n return delete s.tagName, C(o, s);\n}, G = (t, e) => t.dispatchEvent(e), to = (t, e, n) => n.indexOf(t) === e, f = (t, e, n) => {\n const o = getComputedStyle(t, n), s = e.replace(\"webkit\", \"Webkit\").replace(/([A-Z])/g, \"-$1\").toLowerCase();\n return o.getPropertyValue(s);\n}, se = (t) => {\n const e = f(t, U), n = f(t, Zt), o = n.includes(\"ms\") ? 1 : 1e3, s = e && e !== \"none\" ? parseFloat(n) * o : 0;\n return Number.isNaN(s) ? 0 : s;\n}, re = (t) => {\n const e = f(t, U), n = f(t, Gt), o = n.includes(\"ms\") ? 1 : 1e3, s = e && e !== \"none\" ? parseFloat(n) * o : 0;\n return Number.isNaN(s) ? 0 : s;\n}, eo = (t, e) => {\n let n = 0;\n const o = new Event(T), s = re(t), r = se(t);\n if (s) {\n const a = (l) => {\n l.target === t && (e.apply(t, [l]), t.removeEventListener(T, a), n = 1);\n };\n t.addEventListener(T, a), setTimeout(() => {\n n || G(t, o);\n }, s + r + 17);\n } else\n e.apply(t, [o]);\n}, ce = (t) => {\n const e = f(t, W), n = f(t, $t), o = n.includes(\"ms\") ? 1 : 1e3, s = e && e !== \"none\" ? parseFloat(n) * o : 0;\n return Number.isNaN(s) ? 0 : s;\n}, ae = (t) => {\n const e = f(t, W), n = f(t, _t), o = n.includes(\"ms\") ? 1 : 1e3, s = e && e !== \"none\" ? parseFloat(n) * o : 0;\n return Number.isNaN(s) ? 0 : s;\n}, no = (t, e) => {\n let n = 0;\n const o = new Event(M), s = ae(t), r = ce(t);\n if (s) {\n const a = (l) => {\n l.target === t && (e.apply(t, [l]), t.removeEventListener(M, a), n = 1);\n };\n t.addEventListener(M, a), setTimeout(() => {\n n || G(t, o);\n }, s + r + 17);\n } else\n e.apply(t, [o]);\n}, oo = (t) => Float32Array.from(Array.from(t)), so = (t) => Float64Array.from(Array.from(t)), ro = (t, e) => t.focus(e), co = (t) => t?.trim().replace(/([a-z])([A-Z])/g, \"$1-$2\").replace(/\\s+/g, \"-\").toLowerCase(), P = (t) => [\"true\", !0].includes(t) ? !0 : [\"false\", !1].includes(t) ? !1 : [\"null\", \"\", null, void 0].includes(t) ? null : t !== \"\" && !Number.isNaN(+t) ? +t : t, S = (t) => Object.entries(t), ao = (t, e, n, o) => {\n if (!i(t)) return e;\n const s = { ...n }, r = { ...t.dataset }, a = { ...e }, l = {}, p = \"title\";\n return S(r).forEach(([c, g]) => {\n const A = o && typeof c == \"string\" && c.includes(o) ? I(c.replace(o, \"\")) : I(c);\n l[A] = P(g);\n }), S(s).forEach(([c, g]) => {\n s[c] = P(g);\n }), S(e).forEach(([c, g]) => {\n c in s ? a[c] = s[c] : c in l ? a[c] = l[c] : a[c] = c === p ? j(t, p) : g;\n }), a;\n}, io = (t, e) => v(t) && (Object.hasOwn(t, e) || e in t), uo = (t) => Object.keys(t), lo = (t) => Object.values(t), fo = (t) => Object.fromEntries(t), po = (t, e) => {\n const n = new CustomEvent(t, {\n cancelable: !0,\n bubbles: !0\n });\n return v(e) && C(n, e), n;\n}, go = { passive: !0 }, mo = (t) => t.offsetHeight, vo = (t, e) => {\n S(e).forEach(([n, o]) => {\n if (o && N(n) && n.includes(\"--\"))\n t.style.setProperty(n, o);\n else {\n const s = {};\n s[n] = o, C(t.style, s);\n }\n });\n}, O = (t) => v(t) && t.constructor.name === \"Map\" || !1, ie = (t) => typeof t == \"number\" || !1, m = /* @__PURE__ */ new Map(), bo = {\n set: (t, e, n, o) => {\n i(t) && (o && o.length ? (m.has(t) || m.set(t, /* @__PURE__ */ new Map()), m.get(t).set(o, setTimeout(e, n))) : m.set(t, setTimeout(e, n)));\n },\n get: (t, e) => {\n if (!i(t)) return null;\n const n = m.get(t);\n return e && n && O(n) ? n.get(e) || null : ie(n) ? n : null;\n },\n clear: (t, e) => {\n if (!i(t)) return;\n const n = m.get(t);\n e && e.length && O(n) ? (clearTimeout(n.get(e)), n.delete(e), n.size === 0 && m.delete(t)) : (clearTimeout(n), m.delete(t));\n }\n}, Eo = (t) => t.toLowerCase(), ho = (t) => t.toUpperCase(), ue = (t, e) => (u(e) ? e : d()).querySelectorAll(t), x = /* @__PURE__ */ new Map();\nfunction le(t) {\n const { shiftKey: e, code: n } = t, o = d(this), s = [\n ...ue(qt, this)\n ].filter(\n (l) => !ee(l, \"disabled\") && !j(l, $)\n );\n if (!s.length) return;\n const r = s[0], a = s[s.length - 1];\n n === \"Tab\" && (e && o.activeElement === r ? (a.focus(), t.preventDefault()) : !e && o.activeElement === a && (r.focus(), t.preventDefault()));\n}\nconst de = (t) => x.has(t) === !0, yo = (t) => {\n const e = de(t);\n (e ? Q : R)(t, \"keydown\", le), e ? x.delete(t) : x.set(t, !0);\n}, b = (t) => i(t) && \"offsetWidth\" in t || !1, y = (t, e) => {\n const { width: n, height: o, top: s, right: r, bottom: a, left: l } = t.getBoundingClientRect();\n let p = 1, c = 1;\n if (e && b(t)) {\n const { offsetWidth: g, offsetHeight: A } = t;\n p = g > 0 ? Math.round(n) / g : 1, c = A > 0 ? Math.round(o) / A : 1;\n }\n return {\n width: n / p,\n height: o / c,\n top: s / c,\n right: r / p,\n bottom: a / c,\n left: l / p,\n x: l / p,\n y: s / c\n };\n}, wo = (t) => d(t).body, w = (t) => d(t).documentElement, Ao = (t) => d(t).head, fe = (t) => u(t) ? (t.nodeName || \"\").toLowerCase() : \"#document\", So = (t) => {\n const e = K(t), n = e ? t.scrollX : t.scrollLeft, o = e ? t.scrollY : t.scrollTop;\n return { x: n, y: o };\n}, pe = (t) => u(t) && t.constructor.name === \"ShadowRoot\" || !1, k = (t) => t.nodeName === \"HTML\" ? t : i(t) && t.assignedSlot || u(t) && t.parentNode || pe(t) && t.host || w(t), ge = (t) => t ? q(t) ? t.defaultView : u(t) ? t?.ownerDocument?.defaultView : t : window, me = (t) => u(t) && [\"TABLE\", \"TD\", \"TH\"].includes(t.nodeName) || !1, ve = (t, e) => t.matches(e), D = (t) => f(t, \"position\") === \"static\", be = (t) => f(t, \"position\") === \"fixed\", Z = (t) => [\":popover-open\", \":modal\"].some((e) => {\n try {\n return ve(t, e);\n } catch {\n return !1;\n }\n}), _ = (t) => {\n const e = Xt(), n = i(t) ? getComputedStyle(t) : t;\n return n.transform !== \"none\" || n.perspective !== \"none\" || (n.containerType ? n.containerType !== \"normal\" : !1) || !e && (n.backdropFilter ? n.backdropFilter !== \"none\" : !1) || !e && (n.filter ? n.filter !== \"none\" : !1) || [\"transform\", \"perspective\", \"filter\"].some(\n (o) => (n.willChange || \"\").includes(o)\n ) || [\"paint\", \"layout\", \"strict\", \"content\"].some(\n (o) => (n.contain || \"\").includes(o)\n );\n}, Ee = (t) => {\n let e = k(t);\n for (; i(e) && !z(e); ) {\n if (_(e))\n return e;\n if (Z(e))\n return null;\n e = k(e);\n }\n return null;\n}, z = (t) => [\"html\", \"body\", \"#document\"].includes(fe(t)), F = (t) => {\n if (!b(t) || be(t))\n return null;\n let e = t.offsetParent;\n return w(t) === e && (e = e.ownerDocument.body), e;\n}, ko = (t) => {\n const e = ge(t);\n if (!u(t) || Z(t))\n return e;\n if (!b(t)) {\n let o = k(t);\n for (; o && !z(o); ) {\n if (i(o) && !D(o))\n return o;\n o = k(o);\n }\n return e;\n }\n let n = F(t);\n for (; n && me(n) && D(n); )\n n = F(n);\n return n && z(n) && D(n) && !_(n) ? e : n || Ee(t) || e;\n}, he = (t) => {\n if (!b(t)) return !1;\n const { width: e, height: n } = y(t), { offsetWidth: o, offsetHeight: s } = t;\n return Math.round(e) !== o || Math.round(n) !== s;\n}, No = (t, e, n) => {\n const o = b(e), s = y(\n t,\n o && he(e)\n ), r = { x: 0, y: 0 };\n if (o) {\n const a = y(e, !0);\n r.x = a.x + e.clientLeft, r.y = a.y + e.clientTop;\n }\n return {\n x: s.left + n.x - r.x,\n y: s.top + n.y - r.y,\n width: s.width,\n height: s.height\n };\n};\nlet B = 0, V = 0;\nconst h = /* @__PURE__ */ new Map(), ye = (t, e) => {\n let n = e ? B : V;\n if (e) {\n const o = ye(t), s = h.get(o) || /* @__PURE__ */ new Map();\n h.has(o) || h.set(o, s), O(s) && !s.has(e) ? (s.set(e, n), B += 1) : n = s.get(e);\n } else {\n const o = t.id || t;\n h.has(o) ? n = h.get(o) : (h.set(o, n), V += 1);\n }\n return n;\n}, we = (t) => Array.isArray(t) || !1, Co = (t) => u(t) && t.nodeName === \"CANVAS\" || !1, Ae = (t) => b(t) && !!t.shadowRoot || !1, To = (t) => {\n if (!u(t)) return !1;\n const { top: e, bottom: n } = y(t), { clientHeight: o } = w(t);\n return e <= o && n >= 0;\n}, Mo = (t) => {\n if (!i(t)) return !1;\n const { clientWidth: e, clientHeight: n } = w(t), { top: o, left: s, bottom: r, right: a } = y(t, !0);\n return o >= 0 && s >= 0 && r <= n && a <= e;\n}, Do = (t) => we(t) && t.every(i) || !1, Lo = (t) => typeof t == \"function\" || !1, Oo = (t) => v(t) && t.constructor.name === \"HTMLCollection\" || !1, xo = (t) => b(t) && t.tagName === \"IMG\" || !1, zo = (t) => {\n if (!N(t)) return !1;\n try {\n JSON.parse(t);\n } catch {\n return !1;\n }\n return !0;\n}, Io = (t) => v(t) && t.constructor.name === \"WeakMap\" || !1, Po = (t) => u(t) && [\"SVG\", \"Image\", \"Video\", \"Canvas\"].some(\n (e) => t.constructor.name.includes(e)\n) || !1, Fo = (t) => v(t) && t.constructor.name === \"NodeList\" || !1, Bo = (t) => w(t).dir === \"rtl\", Vo = (t) => u(t) && t.constructor.name.includes(\"SVG\") || !1, Se = (t, e) => !t || !e ? null : t.closest(e) || Se(t.getRootNode().host, e) || null, Ho = (t, e) => i(t) ? t : (i(e) ? e : d()).querySelector(t), ke = (t, e) => (u(e) ? e : d()).getElementsByTagName(\n t\n), Uo = (t) => [...ke(\"*\", t)].filter(Ae), Wo = (t, e) => d(e).getElementById(t), Ro = (t, e) => (e && u(e) ? e : d()).getElementsByClassName(\n t\n);\nexport {\n Jn as ArrayFrom,\n H as DOMContentLoadedEvent,\n nt as DOMMouseScrollEvent,\n L as Data,\n oo as Float32ArrayFrom,\n so as Float64ArrayFrom,\n C as ObjectAssign,\n S as ObjectEntries,\n fo as ObjectFromEntries,\n io as ObjectHasOwn,\n uo as ObjectKeys,\n lo as ObjectValues,\n bo as Timer,\n J as abortEvent,\n Kn as addClass,\n yn as addEventListener,\n Zt as animationDelay,\n Gt as animationDuration,\n T as animationEndEvent,\n U as animationName,\n Ce as ariaChecked,\n Me as ariaDescribedBy,\n Te as ariaDescription,\n De as ariaExpanded,\n Le as ariaHasPopup,\n $ as ariaHidden,\n Oe as ariaLabel,\n xe as ariaLabelledBy,\n ze as ariaModal,\n Ie as ariaPressed,\n Pe as ariaSelected,\n Be as ariaValueMax,\n Fe as ariaValueMin,\n Ve as ariaValueNow,\n He as ariaValueText,\n X as beforeunloadEvent,\n An as bezierEasings,\n Y as blurEvent,\n I as camelCase,\n Yn as capitalize,\n tt as changeEvent,\n Se as closest,\n et as contextmenuEvent,\n po as createCustomEvent,\n ne as createElement,\n oe as createElementNS,\n G as dispatchEvent,\n to as distinct,\n Zn as documentBody,\n _n as documentElement,\n $n as documentHead,\n We as dragEvent,\n qe as dragendEvent,\n Qe as dragenterEvent,\n je as dragleaveEvent,\n Ke as dragoverEvent,\n Re as dragstartEvent,\n eo as emulateAnimationEnd,\n no as emulateTransitionEnd,\n ot as errorEvent,\n ro as focus,\n st as focusEvent,\n Xe as focusEvents,\n qt as focusableSelector,\n rt as focusinEvent,\n ct as focusoutEvent,\n at as gesturechangeEvent,\n it as gestureendEvent,\n ut as gesturestartEvent,\n j as getAttribute,\n Hn as getAttributeNS,\n y as getBoundingClientRect,\n Uo as getCustomElements,\n d as getDocument,\n wo as getDocumentBody,\n w as getDocumentElement,\n Ao as getDocumentHead,\n se as getElementAnimationDelay,\n re as getElementAnimationDuration,\n Wo as getElementById,\n f as getElementStyle,\n ce as getElementTransitionDelay,\n ae as getElementTransitionDuration,\n Ro as getElementsByClassName,\n ke as getElementsByTagName,\n Xn as getInstance,\n fe as getNodeName,\n So as getNodeScroll,\n ko as getOffsetParent,\n k as getParentNode,\n No as getRectRelativeToOffsetParent,\n ye as getUID,\n ge as getWindow,\n ee as hasAttribute,\n Un as hasAttributeNS,\n Gn as hasClass,\n de as hasFocusTrap,\n On as isApple,\n we as isArray,\n Co as isCanvas,\n Ae as isCustomElement,\n q as isDocument,\n i as isElement,\n To as isElementInScrollRange,\n Mo as isElementInViewport,\n Do as isElementsArray,\n xn as isFirefox,\n Lo as isFunction,\n Oo as isHTMLCollection,\n b as isHTMLElement,\n xo as isHTMLImageElement,\n zo as isJSON,\n O as isMap,\n Po as isMedia,\n Ln as isMobile,\n u as isNode,\n Fo as isNodeList,\n ie as isNumber,\n v as isObject,\n Bo as isRTL,\n Vo as isSVGElement,\n he as isScaledElement,\n pe as isShadowRoot,\n N as isString,\n me as isTableElement,\n Io as isWeakMap,\n Xt as isWebKit,\n K as isWindow,\n co as kebabCase,\n tn as keyAlt,\n en as keyArrowDown,\n on as keyArrowLeft,\n sn as keyArrowRight,\n nn as keyArrowUp,\n rn as keyBackspace,\n cn as keyCapsLock,\n an as keyControl,\n un as keyDelete,\n ln as keyEnter,\n fn as keyEscape,\n pn as keyInsert,\n gn as keyMeta,\n dn as keyNumpadEnter,\n mn as keyPause,\n vn as keyScrollLock,\n bn as keyShift,\n En as keySpace,\n hn as keyTab,\n Ye as keyboardEventKeys,\n lt as keydownEvent,\n dt as keypressEvent,\n ft as keyupEvent,\n pt as loadEvent,\n Ge as loadstartEvent,\n ve as matches,\n _e as mouseClickEvents,\n $e as mouseHoverEvents,\n Ze as mouseSwipeEvents,\n gt as mouseclickEvent,\n mt as mousedblclickEvent,\n vt as mousedownEvent,\n ht as mouseenterEvent,\n Et as mousehoverEvent,\n wt as mouseinEvent,\n yt as mouseleaveEvent,\n kt as mousemoveEvent,\n At as mouseoutEvent,\n St as mouseoverEvent,\n bt as mouseupEvent,\n Nt as mousewheelEvent,\n Ct as moveEvent,\n Ue as nativeEvents,\n Yt as noop,\n ao as normalizeOptions,\n P as normalizeValue,\n Q as off,\n Sn as offsetHeight,\n kn as offsetWidth,\n R as on,\n te as one,\n Tt as orientationchangeEvent,\n go as passiveHandler,\n Mt as pointercancelEvent,\n Dt as pointerdownEvent,\n Lt as pointerleaveEvent,\n Ot as pointermoveEvent,\n xt as pointerupEvent,\n Ho as querySelector,\n ue as querySelectorAll,\n zt as readystatechangeEvent,\n mo as reflow,\n Qn as removeAttribute,\n jn as removeAttributeNS,\n qn as removeClass,\n wn as removeEventListener,\n It as resetEvent,\n Pt as resizeEvent,\n Ht as scrollEvent,\n Nn as scrollHeight,\n Cn as scrollWidth,\n Ft as selectEvent,\n Bt as selectendEvent,\n Vt as selectstartEvent,\n Wn as setAttribute,\n Rn as setAttributeNS,\n vo as setElementStyle,\n Ut as submitEvent,\n zn as support3DTransform,\n Bn as supportAnimation,\n In as supportPassive,\n Fn as supportTouch,\n Pn as supportTransform,\n Vn as supportTransition,\n Tn as tabindex,\n Eo as toLowerCase,\n ho as toUpperCase,\n yo as toggleFocusTrap,\n Je as touchEvents,\n Qt as touchcancelEvent,\n jt as touchendEvent,\n Rt as touchmoveEvent,\n Wt as touchstartEvent,\n $t as transitionDelay,\n _t as transitionDuration,\n M as transitionEndEvent,\n W as transitionProperty,\n Kt as unloadEvent,\n Dn as userAgent,\n Mn as userAgentData,\n Ne as version\n};\n//# sourceMappingURL=shorty.mjs.map\n","const g = \"2.0.8\", e = {}, f = (t) => {\n const { type: n, currentTarget: c } = t;\n e[n].forEach((a, s) => {\n c === s && a.forEach((o, i) => {\n i.apply(s, [t]), typeof o == \"object\" && o.once && r(s, n, i, o);\n });\n });\n}, E = (t, n, c, a) => {\n e[n] || (e[n] = /* @__PURE__ */ new Map());\n const s = e[n];\n s.has(t) || s.set(t, /* @__PURE__ */ new Map());\n const o = s.get(\n t\n ), { size: i } = o;\n o.set(c, a), i || t.addEventListener(\n n,\n f,\n a\n );\n}, r = (t, n, c, a) => {\n const s = e[n], o = s && s.get(t), i = o && o.get(c), d = i !== void 0 ? i : a;\n o && o.has(c) && o.delete(c), s && (!o || !o.size) && s.delete(t), (!s || !s.size) && delete e[n], (!o || !o.size) && t.removeEventListener(\n n,\n f,\n d\n );\n}, M = E, p = r;\nexport {\n E as addListener,\n f as globalListener,\n p as off,\n M as on,\n e as registry,\n r as removeListener,\n g as version\n};\n//# sourceMappingURL=event-listener.mjs.map\n","/**\n * Global namespace for most components `fade` class.\n */\nconst fadeClass = \"fade\";\nexport default fadeClass;\n","/**\n * Global namespace for most components `show` class.\n */\nconst showClass = \"show\";\nexport default showClass;\n","/**\n * Global namespace for most components `dismiss` option.\n */\nconst dataBsDismiss = \"data-bs-dismiss\";\nexport default dataBsDismiss;\n","/** @type {string} */\nconst alertString = \"alert\";\nexport default alertString;\n","/** @type {string} */\nconst alertComponent = \"Alert\";\nexport default alertComponent;\n","import { getAttribute, hasClass } from \"@thednp/shorty\";\n\n/**\n * Check if interactive element is disabled.\n * @param target either a `
',\n});\n\n/**\n * Static method which returns an existing `Popover` instance associated\n * to a target `Element`.\n */\nconst getPopoverInstance = (element: Element) =>\n getInstance(element, popoverComponent);\n\n/**\n * A `Popover` initialization callback.\n */\nconst popoverInitCallback = (element: Element) => new Popover(element);\n\n// POPOVER DEFINITION\n// ==================\n/** Returns a new `Popover` instance. */\nexport default class Popover extends Tooltip {\n static selector = popoverSelector;\n static init = popoverInitCallback;\n static getInstance = getPopoverInstance;\n static styleTip = styleTip;\n declare options: PopoverOptions;\n\n /**\n * @param target the target element\n * @param config the instance options\n */\n constructor(target: Element | string, config?: Partial) {\n super(target, config);\n }\n /**\n * Returns component name string.\n */\n get name() {\n return popoverComponent;\n }\n /**\n * Returns component default options.\n */\n get defaults() {\n return popoverDefaults;\n }\n\n /* extend original `show()` */\n show = () => {\n super.show();\n // btn only exists within dismissible popover\n const { options, btn } = this;\n // istanbul ignore else @preserve\n if (options.dismissible && btn) setTimeout(() => focus(btn), 17);\n };\n}\n","/** @type {string} */\nconst scrollspyString = \"scrollspy\";\nexport default scrollspyString;\n","/** @type {string} */\nconst scrollspyComponent = \"ScrollSpy\";\nexport default scrollspyComponent;\n","/* Native JavaScript for Bootstrap 5 | ScrollSpy\n------------------------------------------------ */\nimport {\n addClass,\n closest,\n createCustomEvent,\n dispatchEvent,\n getAttribute,\n getBoundingClientRect,\n getDocument,\n getDocumentElement,\n getElementById,\n getElementsByTagName,\n getInstance,\n hasClass,\n mouseclickEvent,\n MouseEvent,\n querySelector,\n removeClass,\n} from \"@thednp/shorty\";\n\nimport PositionObserver from \"@thednp/position-observer\";\nimport { addListener, removeListener } from \"@thednp/event-listener\";\n\nimport activeClass from \"~/strings/activeClass\";\nimport scrollspyString from \"~/strings/scrollspyString\";\nimport scrollspyComponent from \"~/strings/scrollspyComponent\";\nimport isDisabled from \"~/util/isDisabled\";\nimport BaseComponent from \"./base-component\";\nimport { ScrollSpyEvent, ScrollSpyOptions } from \"~/interface/scrollspy\";\n\n// SCROLLSPY PRIVATE GC\n// ====================\nconst scrollspySelector = '[data-bs-spy=\"scroll\"]';\nconst scrollSpyAnchorSelector = \"[href]\";\n\nconst scrollspyDefaults: Partial = {\n offset: 10,\n target: undefined,\n};\n\ntype ScrollSpyEventProps = {\n relatedTarget: HTMLElement;\n};\n\n/**\n * Static method which returns an existing `ScrollSpy` instance associated\n * to a target `Element`.\n */\nconst getScrollSpyInstance = (element: Element) =>\n getInstance(element, scrollspyComponent);\n\n/**\n * A `ScrollSpy` initialization callback.\n */\nconst scrollspyInitCallback = (element: Element) => new ScrollSpy(element);\n\n// SCROLLSPY CUSTOM EVENT\n// ======================\nconst activateScrollSpy = createCustomEvent<\n ScrollSpyEventProps,\n ScrollSpyEvent\n>(`activate.bs.${scrollspyString}`);\n\n// SCROLLSPY PRIVATE METHODS\n// =========================\n/**\n * Update the state of all items.\n *\n * @param self the `ScrollSpy` instance\n */\nconst updateSpyTargets = (self: ScrollSpy) => {\n const {\n target,\n _itemsLength,\n _observables,\n } = self;\n\n const links = getElementsByTagName(\"A\", target);\n const doc = getDocument(target);\n\n // only update items once or with each mutation\n // istanbul ignore else @preserve\n if (!links.length || _itemsLength === _observables.size) return;\n // reset arrays & update\n _observables.clear();\n\n Array.from(links).forEach((link) => {\n const hash = getAttribute(link, \"href\")?.slice(1);\n const targetItem = hash?.length ? doc.getElementById(hash) : null;\n\n if (targetItem && !isDisabled(link)) {\n self._observables.set(targetItem, link);\n }\n });\n self._itemsLength = self._observables.size;\n};\n\n/**\n * Clear all items of the target.\n *\n * @param target a single item\n */\nconst clear = (target: Element) => {\n Array.from(getElementsByTagName(\"A\", target)).forEach(\n (item) => {\n if (hasClass(item, activeClass)) removeClass(item, activeClass);\n },\n );\n};\n\n/**\n * Activates a new item.\n *\n * @param self the `ScrollSpy` instance\n * @param item a single item\n */\nconst activate = (self: ScrollSpy, item: HTMLElement) => {\n const { target, element } = self;\n\n // istanbul ignore else @preserve\n clear(target);\n\n self._activeItem = item;\n addClass(item, activeClass);\n\n // activate all parents\n let parentItem = item;\n while (parentItem !== target) {\n parentItem = parentItem.parentElement as HTMLElement;\n if (\n [\"nav\", \"dropdown-menu\", \"list-group\"].some((c) =>\n hasClass(parentItem, c)\n )\n ) {\n const parentLink = parentItem.previousElementSibling as\n | HTMLElement\n | null;\n\n // istanbul ignore else @preserve\n if (parentLink && !hasClass(parentLink, activeClass)) {\n addClass(parentLink, activeClass);\n }\n }\n }\n\n // dispatch\n activateScrollSpy.relatedTarget = item;\n dispatchEvent(element, activateScrollSpy);\n};\n\nconst getOffset = (self: ScrollSpy, target: HTMLElement) => {\n const { scrollTarget, element, options } = self;\n\n return (scrollTarget !== element\n ? getBoundingClientRect(target).top + scrollTarget.scrollTop\n : target.offsetTop) - (options.offset as number || 10);\n};\n\n// SCROLLSPY DEFINITION\n// ====================\n/** Returns a new `ScrollSpy` instance. */\nexport default class ScrollSpy extends BaseComponent {\n static selector = scrollspySelector;\n static init = scrollspyInitCallback;\n static getInstance = getScrollSpyInstance;\n declare element: HTMLElement;\n declare options: ScrollSpyOptions;\n declare target: HTMLElement;\n declare scrollTarget: HTMLElement;\n declare _itemsLength: number;\n declare _activeItem: HTMLElement | null;\n declare _observables: Map;\n declare _observer: PositionObserver; //| IntersectionObserver;\n\n /**\n * @param target the target element\n * @param config the instance options\n */\n constructor(\n target: Element | string,\n config?: Partial,\n ) {\n super(target, config);\n\n // initialization element & options\n const { element, options } = this;\n\n // get target\n const spyTarget = querySelector(\n options.target,\n getDocument(element),\n );\n\n // invalidate\n if (!spyTarget) return;\n this.target = spyTarget;\n\n // set initial state\n this.scrollTarget = element.clientHeight < element.scrollHeight\n ? element\n : getDocumentElement(element);\n this._observables = new Map();\n\n // run an initial burst, we need to know the targets\n this.refresh();\n // updateSpyTargets(this);\n\n // create observer\n this._observer = new PositionObserver(() => {\n requestAnimationFrame(() => this.refresh());\n }, {\n root: this.scrollTarget,\n });\n\n // add event handlers\n this._toggleEventListeners(true);\n }\n\n /* eslint-disable */\n /**\n * Returns component name string.\n */\n get name() {\n return scrollspyComponent;\n }\n /**\n * Returns component default options.\n */\n get defaults() {\n return scrollspyDefaults;\n }\n /* eslint-enable */\n\n // SCROLLSPY PUBLIC METHODS\n // ========================\n /** Updates all items. */\n refresh = () => {\n const { target, scrollTarget } = this;\n // check if target is visible and invalidate\n // istanbul ignore if @preserve\n if (!target || target.offsetHeight === 0) return;\n\n updateSpyTargets(this);\n const { _itemsLength, _observables, _activeItem } = this;\n\n // istanbul ignore if @preserve\n if (!_itemsLength) return;\n const entries = _observables.entries().toArray();\n\n const { scrollTop, scrollHeight, clientHeight } = scrollTarget;\n\n if (scrollTop >= scrollHeight - clientHeight) {\n const newActiveItem = entries[_itemsLength - 1]?.[1];\n\n // istanbul ignore else @preserve\n if (_activeItem !== newActiveItem) activate(this, newActiveItem);\n return;\n }\n\n const firstOffset = entries[0]?.[0]\n ? getOffset(this, entries[0][0])\n : /* istanbul ignore next */ null;\n if (\n firstOffset !== null && scrollTop < firstOffset &&\n firstOffset > 0\n ) {\n this._activeItem = null;\n clear(target);\n return;\n }\n\n for (let i = 0; i < _itemsLength; i += 1) {\n const [targetItem, item] = entries[i];\n const offsetTop = getOffset(this, targetItem);\n const nextTarget = entries[i + 1]?.[0];\n const nextOffsetTop = nextTarget\n ? getOffset(this, nextTarget)\n : /* istanbul ignore next */ null;\n\n // istanbul ignore else @preserve\n if (\n _activeItem !== item &&\n scrollTop >= offsetTop &&\n (nextOffsetTop === null || scrollTop < nextOffsetTop)\n ) {\n activate(this, item);\n break;\n }\n }\n };\n\n /**\n * This method provides an event handle\n * for scrollspy\n * @param e the event listener object\n */\n _scrollTo = (e: MouseEvent) => {\n const item = closest(e.target, scrollSpyAnchorSelector);\n const hash = item && getAttribute(item, \"href\")?.slice(1);\n const targetItem = hash && getElementById(hash, this.target);\n\n // istanbul ignore else @preserve\n if (targetItem) {\n this.scrollTarget.scrollTo({\n top: targetItem.offsetTop,\n behavior: \"smooth\",\n });\n e.preventDefault();\n }\n };\n\n /**\n * Toggles on/off the component observer.\n *\n * @param self the ScrollSpy instance\n * @param add when `true`, listener is added\n */\n _toggleEventListeners = (\n add?: boolean,\n ) => {\n const { target, _observables, _observer, _scrollTo } = this;\n const action = add ? addListener : removeListener;\n action(target, mouseclickEvent, _scrollTo);\n\n if (add) {\n _observables?.forEach((_, targetItem) => _observer.observe(targetItem));\n } else _observer.disconnect();\n };\n\n /** Removes `ScrollSpy` from the target element. */\n dispose() {\n this._toggleEventListeners();\n super.dispose();\n }\n}\n","/** @type {string} */\nconst tabString = \"tab\";\nexport default tabString;\n","/** @type {string} */\nconst tabComponent = \"Tab\";\nexport default tabComponent;\n","/* Native JavaScript for Bootstrap 5 | Tab\n------------------------------------------ */\nimport {\n addClass,\n ariaSelected,\n closest,\n createCustomEvent,\n dispatchEvent,\n emulateTransitionEnd,\n getElementsByClassName,\n getInstance,\n hasClass,\n isHTMLElement,\n mouseclickEvent,\n MouseEvent,\n querySelector,\n reflow,\n removeClass,\n setAttribute,\n Timer,\n} from \"@thednp/shorty\";\n\nimport { addListener, removeListener } from \"@thednp/event-listener\";\n\nimport collapsingClass from \"~/strings/collapsingClass\";\nimport activeClass from \"~/strings/activeClass\";\nimport fadeClass from \"~/strings/fadeClass\";\nimport showClass from \"~/strings/showClass\";\nimport dropdownClasses from \"~/strings/dropdownClasses\";\nimport dataBsToggle from \"~/strings/dataBsToggle\";\nimport tabString from \"~/strings/tabString\";\nimport tabComponent from \"~/strings/tabComponent\";\nimport getTargetElement from \"~/util/getTargetElement\";\nimport BaseComponent from \"./base-component\";\nimport type { /* TabOptions, */ TabEvent } from \"~/interface/tab\";\n\n// TAB PRIVATE GC\n// ================\nconst tabSelector = `[${dataBsToggle}=\"${tabString}\"]`;\n\n/**\n * Static method which returns an existing `Tab` instance associated\n * to a target `Element`.\n */\nconst getTabInstance = (element: Element) =>\n getInstance(element, tabComponent);\n\n/** A `Tab` initialization callback. */\nconst tabInitCallback = (element: Element) => new Tab(element);\n\ntype TabEventProps = {\n relatedTarget: Element & EventTarget | undefined;\n};\n\n// TAB CUSTOM EVENTS\n// =================\nconst showTabEvent = createCustomEvent(\n `show.bs.${tabString}`,\n);\nconst shownTabEvent = createCustomEvent(\n `shown.bs.${tabString}`,\n);\nconst hideTabEvent = createCustomEvent(\n `hide.bs.${tabString}`,\n);\nconst hiddenTabEvent = createCustomEvent(\n `hidden.bs.${tabString}`,\n);\n\ninterface TabPrivate {\n tab: HTMLElement | null;\n content: HTMLElement | null;\n currentHeight: number;\n nextHeight: number;\n}\n\n/**\n * Stores the current active tab and its content\n * for a given `.nav` element.\n */\nconst tabPrivate: Map = new Map();\n\n// TAB PRIVATE METHODS\n// ===================\n/**\n * Executes after tab transition has finished.\n *\n * @param self the `Tab` instance\n */\nconst triggerTabEnd = (self: Tab) => {\n const { tabContent, nav } = self;\n\n // istanbul ignore else @preserve\n if (tabContent && hasClass(tabContent, collapsingClass)) {\n tabContent.style.height = \"\";\n removeClass(tabContent, collapsingClass);\n }\n\n // istanbul ignore else @preserve\n if (nav) Timer.clear(nav);\n};\n\n/**\n * Executes before showing the tab content.\n *\n * @param self the `Tab` instance\n */\nconst triggerTabShow = (self: Tab) => {\n const { element, tabContent, content: nextContent, nav } = self;\n const { tab } = (isHTMLElement(nav) && tabPrivate.get(nav)) ||\n // istanbul ignore next @preserve\n { tab: null };\n\n // istanbul ignore else @preserve\n if (tabContent && nextContent && hasClass(nextContent, fadeClass)) {\n const { currentHeight, nextHeight } = tabPrivate.get(element) ||\n // istanbul ignore next @preserve\n { currentHeight: 0, nextHeight: 0 };\n // istanbul ignore else @preserve: vitest won't validate this branch\n if (currentHeight !== nextHeight) {\n // enables height animation\n setTimeout(() => {\n tabContent.style.height = `${nextHeight}px`;\n reflow(tabContent);\n emulateTransitionEnd(tabContent, () => triggerTabEnd(self));\n }, 50);\n } else {\n triggerTabEnd(self);\n }\n } else if (nav) Timer.clear(nav);\n\n shownTabEvent.relatedTarget = tab as HTMLElement | undefined;\n\n dispatchEvent(element, shownTabEvent);\n};\n\n/**\n * Executes before hiding the tab.\n *\n * @param self the `Tab` instance\n */\nconst triggerTabHide = (self: Tab) => {\n const { element, content: nextContent, tabContent, nav } = self;\n const { tab, content } = (nav && tabPrivate.get(nav)) ||\n // istanbul ignore next @preserve\n { tab: null, content: null };\n let currentHeight = 0;\n\n // istanbul ignore else @preserve\n if (tabContent && nextContent && hasClass(nextContent, fadeClass)) {\n [content, nextContent].forEach((c) => {\n // istanbul ignore else @preserve\n if (c) addClass(c, \"overflow-hidden\");\n });\n currentHeight = content\n ? content.scrollHeight\n : /* istanbul ignore next @preserve */ 0;\n }\n\n // update relatedTarget and dispatch event\n showTabEvent.relatedTarget = tab as HTMLElement | undefined;\n hiddenTabEvent.relatedTarget = element as HTMLElement;\n dispatchEvent(element, showTabEvent);\n\n // istanbul ignore if @preserve\n if (showTabEvent.defaultPrevented) return;\n // istanbul ignore else @preserve\n if (nextContent) addClass(nextContent, activeClass);\n // istanbul ignore else @preserve\n if (content) removeClass(content, activeClass);\n\n // istanbul ignore else @preserve\n if (tabContent && nextContent && hasClass(nextContent, fadeClass)) {\n const nextHeight = nextContent.scrollHeight;\n tabPrivate.set(element, {\n currentHeight,\n nextHeight,\n tab: null,\n content: null,\n });\n\n addClass(tabContent, collapsingClass);\n tabContent.style.height = `${currentHeight}px`;\n reflow(tabContent);\n [content, nextContent].forEach((c) => {\n // istanbul ignore else @preserve\n if (c) removeClass(c, \"overflow-hidden\");\n });\n }\n\n if (nextContent && nextContent && hasClass(nextContent, fadeClass)) {\n setTimeout(() => {\n addClass(nextContent, showClass);\n emulateTransitionEnd(nextContent, () => {\n triggerTabShow(self);\n });\n }, 1);\n } else {\n // istanbul ignore else @preserve\n if (nextContent) addClass(nextContent, showClass);\n triggerTabShow(self);\n }\n\n // istanbul ignore else @preserve\n if (tab) dispatchEvent(tab, hiddenTabEvent);\n};\n\n/**\n * Returns the current active tab and its target content.\n *\n * @param self the `Tab` instance\n * @returns the query result\n */\nconst getActiveTab = (\n self: Tab,\n): { tab: HTMLElement | null; content: HTMLElement | null } => {\n const { nav } = self;\n // istanbul ignore next @preserve\n if (!isHTMLElement(nav)) {\n return { tab: null, content: null };\n }\n\n const activeTabs = getElementsByClassName(\n activeClass,\n nav,\n );\n let tab: HTMLElement | null = null;\n // istanbul ignore else @preserve\n if (\n activeTabs.length === 1 &&\n !dropdownClasses.some((c) =>\n hasClass(activeTabs[0].parentElement as HTMLElement, c)\n )\n ) {\n [tab] = activeTabs;\n } else if (activeTabs.length > 1) {\n tab = activeTabs[activeTabs.length - 1];\n }\n const content = isHTMLElement(tab) ? getTargetElement(tab) : null;\n return { tab, content };\n};\n\n/**\n * Returns a parent dropdown.\n *\n * @param element the `Tab` element\n * @returns the parent dropdown\n */\nconst getParentDropdown = (element?: HTMLElement) => {\n // istanbul ignore next @preserve\n if (!isHTMLElement(element)) return null;\n const dropdown = closest(element, `.${dropdownClasses.join(\",.\")}`);\n return dropdown\n ? querySelector(`.${dropdownClasses[0]}-toggle`, dropdown)\n : null;\n};\n\n// TAB EVENT HANDLER\n// =================\n/**\n * Handles the `click` event listener.\n *\n * @param e the `Event` object\n */\nconst tabClickHandler = (e: MouseEvent) => {\n const element = closest(e.target, tabSelector);\n const self = element && getTabInstance(element);\n\n // istanbul ignore if @preserve\n if (!self) return;\n e.preventDefault();\n self.show();\n};\n\n// TAB DEFINITION\n// ==============\n/** Creates a new `Tab` instance. */\nexport default class Tab extends BaseComponent {\n static selector = tabSelector;\n static init = tabInitCallback;\n static getInstance = getTabInstance;\n declare element: HTMLElement;\n declare nav: HTMLElement | null;\n declare content: HTMLElement | null;\n declare tabContent: HTMLElement | null;\n declare nextContent: HTMLElement | null;\n declare dropdown: HTMLElement | null;\n\n /** @param target the target element */\n constructor(target: Element | string) {\n super(target);\n\n // initialization element\n const { element } = this;\n const content = getTargetElement(element);\n\n // no point initializing a tab without a corresponding content\n // istanbul ignore else @preserve\n if (!content) return;\n\n const nav = closest(element, \".nav\");\n const container = closest(\n content as HTMLElement,\n \".tab-content\",\n );\n\n this.nav = nav;\n this.content = content;\n this.tabContent = container;\n\n // event targets\n this.dropdown = getParentDropdown(element);\n\n // show first Tab instance of none is shown\n // suggested on #432\n const { tab } = getActiveTab(this);\n if (nav && !tab) {\n const firstTab = querySelector(tabSelector, nav);\n const firstTabContent = firstTab && getTargetElement(firstTab);\n\n // istanbul ignore else @preserve\n if (firstTabContent) {\n addClass(firstTab, activeClass);\n addClass(firstTabContent, showClass);\n addClass(firstTabContent, activeClass);\n setAttribute(element, ariaSelected, \"true\");\n }\n }\n\n // add event listener\n this._toggleEventListeners(true);\n }\n\n /**\n * Returns component name string.\n */\n get name() {\n return tabComponent;\n }\n\n // TAB PUBLIC METHODS\n // ==================\n /** Shows the tab to the user. */\n show() {\n const { element, content: nextContent, nav, dropdown } = this;\n\n // istanbul ignore else @preserve\n if ((nav && Timer.get(nav)) || hasClass(element, activeClass)) return;\n const { tab, content } = getActiveTab(this);\n\n // istanbul ignore else @preserve\n if (nav && tab) {\n tabPrivate.set(nav, { tab, content, currentHeight: 0, nextHeight: 0 });\n }\n\n // update relatedTarget and dispatch\n hideTabEvent.relatedTarget = element as HTMLElement;\n\n // istanbul ignore if @preserve\n if (!isHTMLElement(tab)) return;\n\n dispatchEvent(tab, hideTabEvent);\n\n // istanbul ignore else @preserve\n if (hideTabEvent.defaultPrevented) return;\n\n addClass(element, activeClass);\n setAttribute(element, ariaSelected, \"true\");\n\n const activeDropdown = isHTMLElement(tab) && getParentDropdown(tab);\n if (activeDropdown && hasClass(activeDropdown, activeClass)) {\n removeClass(activeDropdown, activeClass);\n }\n\n // istanbul ignore else @preserve\n if (nav) {\n const toggleTab = () => {\n // istanbul ignore else @preserve\n if (tab) {\n removeClass(tab, activeClass);\n setAttribute(tab, ariaSelected, \"false\");\n }\n if (dropdown && !hasClass(dropdown, activeClass)) {\n addClass(dropdown, activeClass);\n }\n };\n\n if (\n content &&\n (hasClass(content, fadeClass) ||\n (nextContent && hasClass(nextContent, fadeClass)))\n ) {\n Timer.set(nav, toggleTab, 1);\n } else toggleTab();\n }\n\n // istanbul ignore else @preserve\n if (content) {\n removeClass(content, showClass);\n if (hasClass(content, fadeClass)) {\n emulateTransitionEnd(content, () => triggerTabHide(this));\n } else {\n triggerTabHide(this);\n }\n }\n }\n\n /**\n * Toggles on/off the `click` event listener.\n *\n * @param add when `true`, event listener is added\n */\n _toggleEventListeners = (add?: boolean) => {\n const action = add ? addListener : removeListener;\n action(this.element, mouseclickEvent, tabClickHandler);\n };\n\n /** Removes the `Tab` component from the target element. */\n dispose() {\n this._toggleEventListeners();\n super.dispose();\n }\n}\n","/** @type {string} */\nconst toastString = \"toast\";\nexport default toastString;\n","/** @type {string} */\nconst toastComponent = \"Toast\";\nexport default toastComponent;\n","/* Native JavaScript for Bootstrap 5 | Toast\n-------------------------------------------- */\nimport {\n addClass,\n createCustomEvent,\n dispatchEvent,\n emulateTransitionEnd,\n focusinEvent,\n focusoutEvent,\n getDocument,\n getInstance,\n hasClass,\n mouseclickEvent,\n mouseenterEvent,\n MouseEvent,\n mouseleaveEvent,\n querySelector,\n querySelectorAll,\n reflow,\n removeClass,\n Timer,\n} from \"@thednp/shorty\";\n\nimport { addListener, removeListener } from \"@thednp/event-listener\";\n\nimport fadeClass from \"~/strings/fadeClass\";\nimport showClass from \"~/strings/showClass\";\nimport dataBsDismiss from \"~/strings/dataBsDismiss\";\nimport dataBsToggle from \"~/strings/dataBsToggle\";\nimport toastString from \"~/strings/toastString\";\nimport toastComponent from \"~/strings/toastComponent\";\nimport getTargetElement from \"~/util/getTargetElement\";\nimport isDisabled from \"~/util/isDisabled\";\nimport BaseComponent from \"./base-component\";\nimport { ToastEvent, ToastOptions } from \"~/interface/toast\";\n\n// TOAST PRIVATE GC\n// ================\nconst toastSelector = `.${toastString}`;\nconst toastDismissSelector = `[${dataBsDismiss}=\"${toastString}\"]`;\nconst toastToggleSelector = `[${dataBsToggle}=\"${toastString}\"]`;\nconst showingClass = \"showing\";\n/** @deprecated */\nconst hideClass = \"hide\";\n\nconst toastDefaults = {\n animation: true,\n autohide: true,\n delay: 5000,\n};\n\n/**\n * Static method which returns an existing `Toast` instance associated\n * to a target `Element`.\n */\nconst getToastInstance = (element: Element) =>\n getInstance(element, toastComponent);\n\n/**\n * A `Toast` initialization callback.\n */\nconst toastInitCallback = (element: Element) => new Toast(element);\n\n// TOAST CUSTOM EVENTS\n// ===================\nconst showToastEvent = createCustomEvent, ToastEvent>(\n `show.bs.${toastString}`,\n);\nconst shownToastEvent = createCustomEvent, ToastEvent>(\n `shown.bs.${toastString}`,\n);\nconst hideToastEvent = createCustomEvent, ToastEvent>(\n `hide.bs.${toastString}`,\n);\nconst hiddenToastEvent = createCustomEvent, ToastEvent>(\n `hidden.bs.${toastString}`,\n);\n\n// TOAST PRIVATE METHODS\n// =====================\n/**\n * Executes after the toast is shown to the user.\n *\n * @param self the `Toast` instance\n */\nconst showToastComplete = (self: Toast) => {\n const { element, options } = self;\n removeClass(element, showingClass);\n Timer.clear(element, showingClass);\n\n dispatchEvent(element, shownToastEvent);\n // istanbul ignore else @preserve\n if (options.autohide) {\n Timer.set(element, () => self.hide(), options.delay, toastString);\n }\n};\n\n/**\n * Executes after the toast is hidden to the user.\n *\n * @param self the `Toast` instance\n */\nconst hideToastComplete = (self: Toast) => {\n const { element } = self;\n removeClass(element, showingClass);\n removeClass(element, showClass);\n addClass(element, hideClass); // B/C\n Timer.clear(element, toastString);\n dispatchEvent(element, hiddenToastEvent);\n};\n\n/**\n * Executes before hiding the toast.\n *\n * @param self the `Toast` instance\n */\nconst hideToast = (self: Toast) => {\n const { element, options } = self;\n addClass(element, showingClass);\n\n if (options.animation) {\n reflow(element as HTMLElement);\n emulateTransitionEnd(element, () => hideToastComplete(self));\n } else {\n hideToastComplete(self);\n }\n};\n\n/**\n * Executes before showing the toast.\n *\n * @param self the `Toast` instance\n */\nconst showToast = (self: Toast) => {\n const { element, options } = self;\n Timer.set(\n element,\n () => {\n removeClass(element, hideClass); // B/C\n reflow(element as HTMLElement);\n addClass(element, showClass);\n addClass(element, showingClass);\n\n if (options.animation) {\n emulateTransitionEnd(element, () => showToastComplete(self));\n } else {\n showToastComplete(self);\n }\n },\n 17,\n showingClass,\n );\n};\n\n// TOAST EVENT HANDLERS\n// ====================\n/**\n * Handles the `click` event listener for toast.\n *\n * @param e the `Event` object\n */\nfunction toastClickHandler(this: HTMLElement, e: Event) {\n const element = getTargetElement(this);\n const self = element && getToastInstance(element);\n\n // istanbul ignore if @preserve\n if (isDisabled(this)) return;\n // istanbul ignore if @preserve\n if (!self) return;\n // istanbul ignore else @preserve\n if (this.tagName === \"A\") e.preventDefault();\n self.relatedTarget = this;\n self.show();\n}\n\n/**\n * Executes when user interacts with the toast without closing it,\n * usually by hovering or focusing it.\n *\n * @param e the `Toast` instance\n */\nconst interactiveToastHandler = (e: MouseEvent) => {\n const element = e.target;\n const self = getToastInstance(element);\n const { type, relatedTarget } = e;\n\n // istanbul ignore if @preserve: a solid filter is required\n if (\n !self || element === relatedTarget ||\n element.contains(relatedTarget as Node)\n ) return;\n\n if ([mouseenterEvent, focusinEvent].includes(type)) {\n Timer.clear(element, toastString);\n } else {\n Timer.set(element, () => self.hide(), self.options.delay, toastString);\n }\n};\n\n// TOAST DEFINITION\n// ================\n/** Creates a new `Toast` instance. */\nexport default class Toast extends BaseComponent {\n static selector = toastSelector;\n static init = toastInitCallback;\n static getInstance = getToastInstance;\n declare element: HTMLElement;\n declare options: ToastOptions;\n declare dismiss: HTMLElement | null;\n declare triggers: HTMLElement[];\n declare relatedTarget: HTMLElement | null;\n\n /**\n * @param target the target `.toast` element\n * @param config the instance options\n */\n constructor(target: Element | string, config?: Partial) {\n super(target, config);\n const { element, options } = this;\n\n // set fadeClass, the options.animation will override the markup\n if (options.animation && !hasClass(element, fadeClass)) {\n addClass(element, fadeClass);\n } else if (!options.animation && hasClass(element, fadeClass)) {\n removeClass(element, fadeClass);\n }\n\n // dismiss button\n this.dismiss = querySelector(toastDismissSelector, element);\n\n // toast can have multiple triggering elements\n this.triggers = [\n ...querySelectorAll(\n toastToggleSelector,\n getDocument(element),\n ),\n ].filter(\n (btn) => getTargetElement(btn) === element,\n );\n\n // add event listener\n this._toggleEventListeners(true);\n }\n /**\n * Returns component name string.\n */\n get name() {\n return toastComponent;\n }\n /**\n * Returns component default options.\n */\n get defaults() {\n return toastDefaults;\n }\n /**\n * Returns *true* when toast is visible.\n */\n get isShown() {\n return hasClass(this.element, showClass);\n }\n\n // TOAST PUBLIC METHODS\n // ====================\n /** Shows the toast. */\n show = () => {\n const { element, isShown } = this;\n\n // istanbul ignore if @preserve\n if (!element || isShown) return;\n\n dispatchEvent(element, showToastEvent);\n if (!showToastEvent.defaultPrevented) showToast(this);\n };\n\n /** Hides the toast. */\n hide = () => {\n const { element, isShown } = this;\n\n // istanbul ignore if @preserve\n if (!element || !isShown) return;\n\n dispatchEvent(element, hideToastEvent);\n if (!hideToastEvent.defaultPrevented) hideToast(this);\n };\n\n /**\n * Toggles on/off the `click` event listener.\n *\n * @param add when `true`, it will add the listener\n */\n _toggleEventListeners = (add?: boolean) => {\n const action = add ? addListener : removeListener;\n const { element, triggers, dismiss, options, hide } = this;\n\n // istanbul ignore else @preserve\n if (dismiss) {\n action(dismiss, mouseclickEvent, hide);\n }\n\n // istanbul ignore else @preserve\n if (options.autohide) {\n [focusinEvent, focusoutEvent, mouseenterEvent, mouseleaveEvent].forEach(\n (e) => action(element, e, interactiveToastHandler),\n );\n }\n // istanbul ignore else @preserve\n if (triggers.length) {\n triggers.forEach((btn) => {\n action(btn, mouseclickEvent, toastClickHandler);\n });\n }\n };\n\n /** Removes the `Toast` component from the target element. */\n dispose() {\n const { element, isShown } = this;\n this._toggleEventListeners();\n Timer.clear(element, toastString);\n\n if (isShown) removeClass(element, showClass);\n\n super.dispose();\n }\n}\n","import { Data, getElementsByTagName, matches } from \"@thednp/shorty\";\n\nimport { addListener } from \"@thednp/event-listener\";\n\nimport Alert from \"../components/alert\";\nimport Button from \"../components/button\";\nimport Carousel from \"../components/carousel\";\nimport Collapse from \"../components/collapse\";\nimport Dropdown from \"../components/dropdown\";\nimport Modal from \"../components/modal\";\nimport Offcanvas from \"../components/offcanvas\";\nimport Popover from \"../components/popover\";\nimport ScrollSpy from \"../components/scrollspy\";\nimport Tab from \"../components/tab\";\nimport Toast from \"../components/toast\";\nimport Tooltip from \"../components/tooltip\";\n\nconst componentsList = new Map<\n string,\n | typeof Alert\n | typeof Button\n | typeof Carousel\n | typeof Collapse\n | typeof Dropdown\n | typeof Modal\n | typeof Offcanvas\n | typeof Popover\n | typeof ScrollSpy\n | typeof Tab\n | typeof Toast\n | typeof Tooltip\n>();\n\ntype Component =\n | Alert\n | Button\n | Carousel\n | Collapse\n | Dropdown\n | Modal\n | Offcanvas\n | Popover\n | ScrollSpy\n | Tab\n | Toast\n | Tooltip;\n\n[\n Alert,\n Button,\n Carousel,\n Collapse,\n Dropdown,\n Modal,\n Offcanvas,\n Popover,\n ScrollSpy,\n Tab,\n Toast,\n Tooltip,\n].forEach((c) => componentsList.set(c.prototype.name, c));\n\n/**\n * Initialize all matched `Element`s for one component.\n *\n * @param callback\n * @param collection\n */\nconst initComponentDataAPI = (\n callback: (el: Element) => Component,\n collection: HTMLCollectionOf | Element[],\n) => {\n [...collection].forEach((x) => callback(x));\n};\n\n/**\n * Remove one component from a target container element or all in the page.\n *\n * @param component the component name\n * @param context parent `Node`\n */\nconst removeComponentDataAPI = (component: string, context: ParentNode) => {\n const compData = Data.getAllFor(component) as Map;\n\n if (compData) {\n [...compData].forEach(([element, instance]) => {\n if (context.contains(element)) {\n (instance as T & { dispose: () => void }).dispose();\n }\n });\n }\n};\n\n/**\n * Initialize all BSN components for a target container.\n *\n * @param context parent `Node`\n */\nexport const initCallback = (context?: ParentNode) => {\n const lookUp = context && context.nodeName ? context : document;\n const elemCollection = [...getElementsByTagName(\"*\", lookUp)];\n\n componentsList.forEach((cs) => {\n const { init, selector } = cs;\n initComponentDataAPI(\n init,\n elemCollection.filter((item) => matches(item, selector)),\n );\n });\n};\n\n/**\n * Remove all BSN components for a target container.\n *\n * @param context parent `Node`\n */\nexport const removeDataAPI = (context?: ParentNode) => {\n const lookUp = context && context.nodeName ? context : document;\n\n componentsList.forEach((comp) => {\n removeComponentDataAPI(comp.prototype.name, lookUp);\n });\n};\n\n// Bulk initialize all components\nif (document.body) initCallback();\nelse {\n addListener(document, \"DOMContentLoaded\", () => initCallback(), {\n once: true,\n });\n}\n"],"names":["Me","De","$","ze","Ie","Pe","st","rt","ct","lt","ft","gt","vt","Et","ht","yt","Dt","Ot","xt","Wt","Re","qt","en","nn","on","sn","fn","_t","$t","M","W","On","t","e","Yt","R","n","o","s","Q","j","ee","Wn","Qn","Kn","qn","Gn","v","u","i","E","L","Xn","I","N","K","q","d","C","ne","G","f","ce","ae","no","r","a","l","ro","P","S","ao","p","c","g","A","uo","po","go","mo","vo","O","ie","m","bo","Eo","ue","x","le","de","yo","b","y","wo","w","So","pe","k","ge","me","ve","he","No","B","V","h","ye","we","To","Lo","Fo","Bo","Se","Ho","ke","Wo","Ro","fadeClass","showClass","dataBsDismiss","alertString","alertComponent","isDisabled","target","hasClass","getAttribute","Version","BaseComponent","config","element","isElement","isString","querySelector","prevInstance","Data","ObjectKeys","normalizeOptions","prop","alertSelector","alertDismissSelector","getAlertInstance","getInstance","alertInitCallback","Alert","closeAlertEvent","createCustomEvent","closedAlertEvent","alertTransitionEnd","self","dispatchEvent","dismiss","removeClass","emulateTransitionEnd","add","action","addListener","removeListener","close","mouseclickEvent","activeClass","dataBsToggle","buttonString","buttonComponent","buttonSelector","getButtonInstance","buttonInitCallback","Button","setAttribute","ariaPressed","isActive","addClass","dataBsTarget","carouselString","carouselComponent","dataBsParent","dataBsContainer","getTargetElement","targetAttr","doc","getDocument","att","attValue","closest","carouselSelector","carouselItem","dataBsSlideTo","dataBsSlide","pausedClass","carouselDefaults","getCarouselInstance","carouselInitCallback","Carousel","startX","currentX","endX","carouselSlideEvent","carouselSlidEvent","carouselTransitionEndHandler","index","direction","slides","options","activeItem","getActiveIndex","orientation","directionClass","Timer","carouselPauseHandler","carouselResumeHandler","carouselIndicatorHandler","newIndex","carouselControlsHandler","carouselKeyHandler","code","querySelectorAll","isElementInScrollRange","RTL","isRTL","keyArrowRight","keyArrowLeft","carouselDragHandler","carouselPointerDownHandler","controls","indicators","el","toggleCarouselTouchHandlers","carouselPointerMoveHandler","carouselPointerUpHandler","activateCarouselIndicator","pointermoveEvent","passiveHandler","pointerupEvent","getElementsByClassName","activeIndex","transitionItem","matches","ar","isPaused","idx","next","eventProperties","ObjectAssign","getElementTransitionDuration","reflow","touch","pause","interval","keyboard","mouseenterEvent","mouseleaveEvent","pointerdownEvent","touchstartEvent","dragstartEvent","arrow","indicator","keydownEvent","isAnimating","clone","collapsingClass","collapseString","collapseComponent","collapseSelector","collapseToggleSelector","collapseDefaults","getCollapseInstance","collapseInitCallback","Collapse","showCollapseEvent","shownCollapseEvent","hideCollapseEvent","hiddenCollapseEvent","expandCollapse","parent","triggers","noop","setElementStyle","btn","ariaExpanded","collapseContent","collapseClickHandler","trigger","isHTMLElement","activeCollapse","activeCollapseInstance","_","dropdownMenuClasses","dropdownComponent","dropdownMenuClass","isEmptyAnchor","parentAnchor","hasAttribute","dropdownString","dropupString","dropstartString","dropendString","dropdownClasses","dropdownSelector","getDropdownInstance","dropdownInitCallback","Dropdown","dropdownMenuEndClass","verticalClass","horizontalClass","menuFocusTags","dropdownDefaults","showDropdownEvent","shownDropdownEvent","hideDropdownEvent","hiddenDropdownEvent","updatedDropdownEvent","styleDropdown","menu","parentElement","offset","getElementStyle","menuEnd","style","positionClass","dropdownMargin","dropdownPosition","menuWidth","menuHeight","clientWidth","clientHeight","getDocumentElement","targetLeft","targetTop","targetWidth","targetHeight","getBoundingClientRect","leftFullExceed","rightFullExceed","bottomExceed","bottomFullExceed","topExceed","leftExceed","rightExceed","posAjust","margins","getMenuItems","firstElementChild","toggleDropdownDismiss","dropdownDismissHandler","focusEvent","dropdownPreventScroll","keyupEvent","dropdownKeyHandler","getCurrentOpenDropdown","currentParent","type","isForm","mousedownEvent","dropdownClickHandler","keyArrowDown","keyArrowUp","activeElement","open","menuItems","focus","keyEscape","PositionObserver","currentElement","currentInstance","modalString","modalComponent","offcanvasComponent","fixedTopClass","fixedBottomClass","stickyTopClass","positionStickyClass","getFixedItems","resetScrollbar","bd","getDocumentBody","fixedItems","fixed","measureScrollbar","innerWidth","getWindow","setScrollbar","overflow","bodyPad","sbWidth","itemPadValue","itemMValue","offcanvasString","popupContainer","createElement","appendPopup","customContainer","containerIsBody","isNode","lookup","BODY","removePopup","hasPopup","backdropString","modalBackdropClass","offcanvasBackdropClass","modalActiveSelector","offcanvasActiveSelector","overlay","getCurrentOpen","toggleOverlayType","isModal","targetClass","appendOverlay","hasFade","showOverlay","hideOverlay","removeOverlay","isVisible","modalSelector","modalToggleSelector","modalDismissSelector","modalStaticClass","modalDefaults","getModalInstance","modalInitCallback","Modal","showModalEvent","shownModalEvent","hideModalEvent","hiddenModalEvent","setModalScrollbar","scrollbarWidth","scrollHeight","modalHeight","modalScrollHeight","modalOverflow","padStyle","toggleModalDismiss","modalDismissHandler","modalKeyHandler","afterModalHide","relatedTarget","focusElement","toggleFocusTrap","afterModalShow","beforeModalShow","removeAttribute","ariaHidden","ariaModal","beforeModalHide","modalClickHandler","currentTarget","isStatic","modalDialog","backdrop","selectedText","targetInsideDialog","staticTransitionEnd","duration","overlayDelay","currentOpen","that","callback","offcanvasSelector","offcanvasToggleSelector","offcanvasDismissSelector","offcanvasTogglingClass","offcanvasDefaults","getOffcanvasInstance","offcanvasInitCallback","Offcanvas","showOffcanvasEvent","shownOffcanvasEvent","hideOffcanvasEvent","hiddenOffcanvasEvent","setOffCanvasScrollbar","toggleOffCanvasDismiss","offcanvasKeyDismissHandler","offcanvasDismissHandler","beforeOffcanvasShow","showOffcanvasComplete","beforeOffcanvasHide","hideOffcanvasComplete","offcanvasTriggerHandler","offCanvasDismiss","selection","visibleTrigger","isOpen","popoverString","popoverComponent","tooltipString","getTipTemplate","tipType","isTooltip","bodyClass","header","body","tipClassPositions","styleTip","tipClasses","tooltip","container","offsetParent","scrollLeft","scrollTop","getNodeScroll","tipWidth","tipHeight","htmlcw","htmlch","htmlow","placement","parentCWidth","parentOWidth","fixedParent","leftBoundry","rightBoundry","observerEntry","elemWidth","elemHeight","elemRectLeft","elemRectRight","elemRectTop","elemOffsetLeft","elemOffsetTop","getRectRelativeToOffsetParent","topPosition","bottomPosition","leftPosition","rightPosition","arrowTop","arrowLeft","arrowRight","arrowWidth","arrowHeight","arrowAdjust","horizontals","verticals","updatedTooltipEvent","toLowerCase","tooltipDefaults","dataOriginalTitle","tooltipComponent","setHtml","content","sanitizeFn","dirty","isFunction","tempDocument","isNodeList","isArray","createTip","id","title","template","animation","customClass","dismissible","btnClose","tipString","tipPositions","titleParts","contentParts","placementClass","tooltipTemplate","htmlMarkup","tooltipHeader","tooltipBody","tempTitle","tempContent","tempBtn","getElementContainer","majorBlockTags","containers","parentNode","getParentNode","isShadowRoot","isTableElement","tooltipSelector","titleAttr","getTooltipInstance","tooltipInitCallback","Tooltip","removeTooltip","ariaDescribedBy","hasTip","disposeTooltipComplete","toggleTooltipTitle","toggleTooltipAction","tooltipShownAction","shownTooltipEvent","tooltipHiddenAction","hiddenTooltipEvent","toggleTooltipOpenHandlers","parentModal","parentOffcanvas","titleAtt","tipComponent","elem","getUID","position","outTimer","showTooltipEvent","delay","hideTooltipEvent","enabled","tr","mousehoverEvent","focusinEvent","focusoutEvent","isApple","popoverSelector","popoverDefaults","getPopoverInstance","popoverInitCallback","Popover","scrollspyString","scrollspyComponent","scrollspySelector","scrollSpyAnchorSelector","scrollspyDefaults","getScrollSpyInstance","scrollspyInitCallback","ScrollSpy","activateScrollSpy","updateSpyTargets","_itemsLength","_observables","links","getElementsByTagName","link","hash","targetItem","clear","item","activate","parentItem","parentLink","getOffset","scrollTarget","spyTarget","_activeItem","entries","newActiveItem","firstOffset","offsetTop","nextTarget","nextOffsetTop","getElementById","_observer","_scrollTo","tabString","tabComponent","tabSelector","getTabInstance","tabInitCallback","Tab","showTabEvent","shownTabEvent","hideTabEvent","hiddenTabEvent","tabPrivate","triggerTabEnd","tabContent","nav","triggerTabShow","nextContent","tab","currentHeight","nextHeight","triggerTabHide","getActiveTab","activeTabs","getParentDropdown","dropdown","tabClickHandler","firstTab","firstTabContent","ariaSelected","activeDropdown","toggleTab","toastString","toastComponent","toastSelector","toastDismissSelector","toastToggleSelector","showingClass","hideClass","toastDefaults","getToastInstance","toastInitCallback","Toast","showToastEvent","shownToastEvent","hideToastEvent","hiddenToastEvent","showToastComplete","hideToastComplete","hideToast","showToast","toastClickHandler","interactiveToastHandler","isShown","hide","componentsList","initComponentDataAPI","collection","removeComponentDataAPI","component","context","compData","instance","initCallback","lookUp","elemCollection","cs","init","selector","removeDataAPI","comp"],"mappings":"iCAAK,MAA6DA,GAAK,mBAAoBC,GAAK,gBAAuCC,GAAI,cAA0DC,GAAK,aAAcC,GAAK,eAAgBC,GAAK,gBAAuPC,GAAK,QAASC,GAAK,UAAWC,GAAK,WAA0EC,GAAK,UAA4BC,GAAK,QAAsBC,EAAK,QAA0BC,GAAK,YAA6BC,GAAK,QAASC,GAAK,aAAcC,GAAK,aAAmKC,GAAK,cAAoCC,GAAK,cAAeC,GAAK,YAAsJC,GAAK,aAmDzmCC,GAAK,YAUuBC,GAAK,oFAoBlCC,GAAK,YAAaC,GAAK,UAAWC,GAAK,YAAaC,GAAK,aAAkHC,GAAK,SAAyMC,GAAK,qBAAsBC,GAAK,kBAAmBC,GAAI,gBAAiBC,GAAI,qBA+BjdC,GAAK,IAAM,CACZ,MAAMC,EAAI,qBACV,OAAO,WAAW,eAAe,OAAO,KACrCC,GAAMD,EAAE,KAAKC,EAAE,KAAK,CACtB,GAAID,EAAE,KACL,WAAW,SACZ,GAAI,EACP,EAA2PE,GAAK,IAAM,CACtQ,EAAGC,GAAI,CAACH,EAAGC,EAAGG,EAAGC,IAAM,CACrB,MAAMC,EAAID,GAAK,GACfL,EAAE,iBACAC,EACAG,EACAE,CACD,CACH,EAAGC,GAAI,CAACP,EAAGC,EAAGG,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AW1jB,GAAK,UAAUwjB,CAAS,EAErCE,GACD,CAAA,GAAGA,CAAQ,EAAE,QAAQ,CAAC,CAAC/jB,EAASgkB,CAAQ,IAAM,CACzCF,EAAQ,SAAS9jB,CAAO,GACzBgkB,EAAyC,QAAQ,CACpD,CACD,CAEL,EAGaC,GAAgBH,GAAyB,CACpD,MAAMI,EAASJ,GAAWA,EAAQ,SAAWA,EAAU,SACjDK,EAAiB,CAAC,GAAGrF,GAA8B,IAAKoF,CAAM,CAAC,EAEtDT,GAAA,QAASW,GAAO,CACvB,KAAA,CAAE,KAAAC,EAAM,SAAAC,CAAA,EAAaF,EAC3BV,GACEW,EACAF,EAAe,OAAQhF,GAASzY,GAAQyY,EAAMmF,CAAQ,CAAC,CACzD,CAAA,CACD,CACH,EAGaC,GAAiBT,GAAyB,CACrD,MAAMI,EAASJ,GAAWA,EAAQ,SAAWA,EAAU,SAExCL,GAAA,QAASe,GAAS,CACRZ,GAAAY,EAAK,UAAU,KAAMN,CAAM,CAAA,CACnD,CACH,EAGA,OAAI,SAAS,KAAmBD,GAAA,EAE9BviB,EAAY,SAAU,mBAAoB,IAAMuiB,GAAA,EAAgB,CAC9D,KAAM,EAAA,CACP","x_google_ignoreList":[0,1,27]} \ No newline at end of file +{"version":3,"file":"bootstrap-native.js","sources":["../node_modules/.pnpm/@thednp+shorty@2.0.9/node_modules/@thednp/shorty/dist/shorty.mjs","../node_modules/.pnpm/@thednp+event-listener@2.0.8/node_modules/@thednp/event-listener/dist/event-listener.mjs","../src/strings/fadeClass.ts","../src/strings/showClass.ts","../src/strings/dataBsDismiss.ts","../src/strings/alertString.ts","../src/strings/alertComponent.ts","../src/util/isDisabled.ts","../src/version.ts","../src/components/base-component.ts","../src/components/alert.ts","../src/strings/activeClass.ts","../src/strings/dataBsToggle.ts","../src/strings/buttonString.ts","../src/strings/buttonComponent.ts","../src/components/button.ts","../src/strings/dataBsTarget.ts","../src/strings/carouselString.ts","../src/strings/carouselComponent.ts","../src/strings/dataBsParent.ts","../src/strings/dataBsContainer.ts","../src/util/getTargetElement.ts","../src/components/carousel.ts","../src/strings/collapsingClass.ts","../src/strings/collapseString.ts","../src/strings/collapseComponent.ts","../src/components/collapse.ts","../node_modules/.pnpm/@thednp+position-observer@1.0.4/node_modules/@thednp/position-observer/dist/index.mjs","../src/strings/dropdownClasses.ts","../src/strings/dropdownComponent.ts","../src/strings/dropdownMenuClass.ts","../src/util/isEmptyAnchor.ts","../src/components/dropdown.ts","../src/strings/modalString.ts","../src/strings/modalComponent.ts","../src/strings/offcanvasComponent.ts","../src/strings/fixedTopClass.ts","../src/strings/fixedBottomClass.ts","../src/strings/stickyTopClass.ts","../src/strings/positionStickyClass.ts","../src/util/scrollbar.ts","../src/strings/offcanvasString.ts","../src/util/popupContainer.ts","../src/util/backdrop.ts","../src/util/isVisible.ts","../src/components/modal.ts","../src/components/offcanvas.ts","../src/strings/popoverString.ts","../src/strings/popoverComponent.ts","../src/strings/tooltipString.ts","../src/util/getTipTemplate.ts","../src/util/tipClassPositions.ts","../src/util/styleTip.ts","../src/util/tooltipDefaults.ts","../src/strings/dataOriginalTitle.ts","../src/strings/tooltipComponent.ts","../src/util/setHtml.ts","../src/util/createTip.ts","../src/util/getElementContainer.ts","../src/components/tooltip.ts","../src/components/popover.ts","../src/strings/scrollspyString.ts","../src/strings/scrollspyComponent.ts","../src/components/scrollspy.ts","../src/strings/tabString.ts","../src/strings/tabComponent.ts","../src/components/tab.ts","../src/strings/toastString.ts","../src/strings/toastComponent.ts","../src/components/toast.ts","../src/util/init.ts"],"sourcesContent":["const Ne = \"2.0.9\", Ce = \"aria-checked\", Te = \"aria-description\", Me = \"aria-describedby\", De = \"aria-expanded\", Le = \"aria-haspopup\", $ = \"aria-hidden\", Oe = \"aria-label\", xe = \"aria-labelledby\", ze = \"aria-modal\", Ie = \"aria-pressed\", Pe = \"aria-selected\", Fe = \"aria-valuemin\", Be = \"aria-valuemax\", Ve = \"aria-valuenow\", He = \"aria-valuetext\", J = \"abort\", X = \"beforeunload\", Y = \"blur\", tt = \"change\", et = \"contextmenu\", H = \"DOMContentLoaded\", nt = \"DOMMouseScroll\", ot = \"error\", st = \"focus\", rt = \"focusin\", ct = \"focusout\", at = \"gesturechange\", it = \"gestureend\", ut = \"gesturestart\", lt = \"keydown\", dt = \"keypress\", ft = \"keyup\", pt = \"load\", gt = \"click\", mt = \"dblclick\", vt = \"mousedown\", bt = \"mouseup\", Et = \"hover\", ht = \"mouseenter\", yt = \"mouseleave\", wt = \"mousein\", At = \"mouseout\", St = \"mouseover\", kt = \"mousemove\", Nt = \"mousewheel\", Ct = \"move\", Tt = \"orientationchange\", Mt = \"pointercancel\", Dt = \"pointerdown\", Lt = \"pointerleave\", Ot = \"pointermove\", xt = \"pointerup\", zt = \"readystatechange\", It = \"reset\", Pt = \"resize\", Ft = \"select\", Bt = \"selectend\", Vt = \"selectstart\", Ht = \"scroll\", Ut = \"submit\", Wt = \"touchstart\", Rt = \"touchmove\", Qt = \"touchcancel\", jt = \"touchend\", Kt = \"unload\", Ue = {\n DOMContentLoaded: H,\n DOMMouseScroll: nt,\n abort: J,\n beforeunload: X,\n blur: Y,\n change: tt,\n click: gt,\n contextmenu: et,\n dblclick: mt,\n error: ot,\n focus: st,\n focusin: rt,\n focusout: ct,\n gesturechange: at,\n gestureend: it,\n gesturestart: ut,\n hover: Et,\n keydown: lt,\n keypress: dt,\n keyup: ft,\n load: pt,\n mousedown: vt,\n mousemove: kt,\n mousein: wt,\n mouseout: At,\n mouseenter: ht,\n mouseleave: yt,\n mouseover: St,\n mouseup: bt,\n mousewheel: Nt,\n move: Ct,\n orientationchange: Tt,\n pointercancel: Mt,\n pointerdown: Dt,\n pointerleave: Lt,\n pointermove: Ot,\n pointerup: xt,\n readystatechange: zt,\n reset: It,\n resize: Pt,\n scroll: Ht,\n select: Ft,\n selectend: Bt,\n selectstart: Vt,\n submit: Ut,\n touchcancel: Qt,\n touchend: jt,\n touchmove: Rt,\n touchstart: Wt,\n unload: Kt\n}, We = \"drag\", Re = \"dragstart\", Qe = \"dragenter\", je = \"dragleave\", Ke = \"dragover\", qe = \"dragend\", Ge = \"loadstart\", Ze = {\n start: \"mousedown\",\n end: \"mouseup\",\n move: \"mousemove\",\n cancel: \"mouseleave\"\n}, _e = { down: \"mousedown\", up: \"mouseup\" }, $e = \"onmouseleave\" in document ? [\"mouseenter\", \"mouseleave\"] : [\"mouseover\", \"mouseout\"], Je = {\n start: \"touchstart\",\n end: \"touchend\",\n move: \"touchmove\",\n cancel: \"touchcancel\"\n}, Xe = { in: \"focusin\", out: \"focusout\" }, qt = 'a[href], button, input, textarea, select, details, [tabindex]:not([tabindex=\"-1\"]', Ye = {\n Backspace: \"Backspace\",\n Tab: \"Tab\",\n Enter: \"Enter\",\n Shift: \"Shift\",\n Control: \"Control\",\n Alt: \"Alt\",\n Pause: \"Pause\",\n CapsLock: \"CapsLock\",\n Escape: \"Escape\",\n Scape: \"Space\",\n ArrowLeft: \"ArrowLeft\",\n ArrowUp: \"ArrowUp\",\n ArrowRight: \"ArrowRight\",\n ArrowDown: \"ArrowDown\",\n Insert: \"Insert\",\n Delete: \"Delete\",\n Meta: \"Meta\",\n ContextMenu: \"ContextMenu\",\n ScrollLock: \"ScrollLock\"\n}, tn = \"Alt\", en = \"ArrowDown\", nn = \"ArrowUp\", on = \"ArrowLeft\", sn = \"ArrowRight\", rn = \"Backspace\", cn = \"CapsLock\", an = \"Control\", un = \"Delete\", ln = \"Enter\", dn = \"NumpadEnter\", fn = \"Escape\", pn = \"Insert\", gn = \"Meta\", mn = \"Pause\", vn = \"ScrollLock\", bn = \"Shift\", En = \"Space\", hn = \"Tab\", Gt = \"animationDuration\", Zt = \"animationDelay\", U = \"animationName\", T = \"animationend\", _t = \"transitionDuration\", $t = \"transitionDelay\", M = \"transitionend\", W = \"transitionProperty\", yn = \"addEventListener\", wn = \"removeEventListener\", An = {\n linear: \"linear\",\n easingSinusoidalIn: \"cubic-bezier(0.47,0,0.745,0.715)\",\n easingSinusoidalOut: \"cubic-bezier(0.39,0.575,0.565,1)\",\n easingSinusoidalInOut: \"cubic-bezier(0.445,0.05,0.55,0.95)\",\n easingQuadraticIn: \"cubic-bezier(0.550,0.085,0.680,0.530)\",\n easingQuadraticOut: \"cubic-bezier(0.250,0.460,0.450,0.940)\",\n easingQuadraticInOut: \"cubic-bezier(0.455,0.030,0.515,0.955)\",\n easingCubicIn: \"cubic-bezier(0.55,0.055,0.675,0.19)\",\n easingCubicOut: \"cubic-bezier(0.215,0.61,0.355,1)\",\n easingCubicInOut: \"cubic-bezier(0.645,0.045,0.355,1)\",\n easingQuarticIn: \"cubic-bezier(0.895,0.03,0.685,0.22)\",\n easingQuarticOut: \"cubic-bezier(0.165,0.84,0.44,1)\",\n easingQuarticInOut: \"cubic-bezier(0.77,0,0.175,1)\",\n easingQuinticIn: \"cubic-bezier(0.755,0.05,0.855,0.06)\",\n easingQuinticOut: \"cubic-bezier(0.23,1,0.32,1)\",\n easingQuinticInOut: \"cubic-bezier(0.86,0,0.07,1)\",\n easingExponentialIn: \"cubic-bezier(0.95,0.05,0.795,0.035)\",\n easingExponentialOut: \"cubic-bezier(0.19,1,0.22,1)\",\n easingExponentialInOut: \"cubic-bezier(1,0,0,1)\",\n easingCircularIn: \"cubic-bezier(0.6,0.04,0.98,0.335)\",\n easingCircularOut: \"cubic-bezier(0.075,0.82,0.165,1)\",\n easingCircularInOut: \"cubic-bezier(0.785,0.135,0.15,0.86)\",\n easingBackIn: \"cubic-bezier(0.6,-0.28,0.735,0.045)\",\n easingBackOut: \"cubic-bezier(0.175,0.885,0.32,1.275)\",\n easingBackInOut: \"cubic-bezier(0.68,-0.55,0.265,1.55)\"\n}, Sn = \"offsetHeight\", kn = \"offsetWidth\", Nn = \"scrollHeight\", Cn = \"scrollWidth\", Tn = \"tabindex\", Mn = navigator.userAgentData, { userAgent: Jt } = navigator, Dn = Jt, Ln = () => {\n const t = /iPhone|iPad|iPod|Android/i;\n return navigator?.userAgentData?.brands.some(\n (e) => t.test(e.brand)\n ) || t.test(navigator?.userAgent) || !1;\n}, On = () => {\n const t = /(iPhone|iPod|iPad)/;\n return navigator?.userAgentData?.brands.some(\n (e) => t.test(e.brand)\n ) || t.test(\n navigator?.userAgent\n ) || !1;\n}, xn = () => navigator?.userAgent?.includes(\"Firefox\") || !1, Xt = () => typeof CSS > \"u\" || !CSS.supports ? !1 : CSS.supports(\"-webkit-backdrop-filter\", \"none\"), zn = () => [\"webkitPerspective\", \"perspective\"].some((t) => t in document.head.style), Yt = () => {\n}, R = (t, e, n, o) => {\n const s = o || !1;\n t.addEventListener(\n e,\n n,\n s\n );\n}, Q = (t, e, n, o) => {\n const s = o || !1;\n t.removeEventListener(\n e,\n n,\n s\n );\n}, te = (t, e, n, o) => {\n const s = (r) => {\n (r.target === t || r.currentTarget === t) && (n.apply(t, [r]), Q(t, e, s, o));\n };\n R(t, e, s, o);\n}, In = () => {\n let t = !1;\n try {\n const e = Object.defineProperty({}, \"passive\", {\n get: () => (t = !0, t)\n });\n te(document, H, Yt, e);\n } catch {\n }\n return t;\n}, Pn = () => [\"webkitTransform\", \"transform\"].some((t) => t in document.head.style), Fn = () => \"ontouchstart\" in window || \"msMaxTouchPoints\" in navigator, Bn = () => [\"webkitAnimation\", \"animation\"].some((t) => t in document.head.style), Vn = () => [\"webkitTransition\", \"transition\"].some((t) => t in document.head.style), j = (t, e) => t.getAttribute(e), Hn = (t, e, n) => e.getAttributeNS(t, n), ee = (t, e) => t.hasAttribute(e), Un = (t, e, n) => e.hasAttributeNS(t, n), Wn = (t, e, n) => t.setAttribute(e, n), Rn = (t, e, n, o) => e.setAttributeNS(t, n, o), Qn = (t, e) => t.removeAttribute(e), jn = (t, e, n) => e.removeAttributeNS(t, n), Kn = (t, ...e) => {\n t.classList.add(...e);\n}, qn = (t, ...e) => {\n t.classList.remove(...e);\n}, Gn = (t, e) => t.classList.contains(e), { body: Zn } = document, { documentElement: _n } = document, { head: $n } = document, Jn = (t) => Array.from(t), v = (t) => t != null && typeof t == \"object\" || !1, u = (t) => v(t) && typeof t.nodeType == \"number\" && [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11].some(\n (e) => t.nodeType === e\n) || !1, i = (t) => u(t) && t.nodeType === 1 || !1, E = /* @__PURE__ */ new Map(), L = {\n data: E,\n set: (t, e, n) => {\n if (!i(t)) return;\n E.has(e) || E.set(e, /* @__PURE__ */ new Map()), E.get(e).set(t, n);\n },\n getAllFor: (t) => E.get(t) || null,\n get: (t, e) => {\n if (!i(t) || !e) return null;\n const n = L.getAllFor(e);\n return t && n && n.get(t) || null;\n },\n remove: (t, e) => {\n const n = L.getAllFor(e);\n !n || !i(t) || (n.delete(t), n.size === 0 && E.delete(e));\n }\n}, Xn = (t, e) => L.get(t, e), Yn = (t) => t?.charAt(0).toUpperCase() + t?.slice(1), I = (t) => t?.trim().replace(\n /(?:^\\w|[A-Z]|\\b\\w)/g,\n (e, n) => n === 0 ? e.toLowerCase() : e.toUpperCase()\n).replace(/\\s+/g, \"\"), N = (t) => typeof t == \"string\" || !1, K = (t) => v(t) && t.constructor.name === \"Window\" || !1, q = (t) => u(t) && t.nodeType === 9 || !1, d = (t) => q(t) ? t : u(t) ? t.ownerDocument : K(t) ? t.document : globalThis.document, C = (t, ...e) => Object.assign(t, ...e), ne = (t) => {\n if (!t) return;\n if (N(t))\n return d().createElement(t);\n const { tagName: e } = t, n = ne(e);\n if (!n) return;\n const o = { ...t };\n return delete o.tagName, C(n, o);\n}, oe = (t, e) => {\n if (!t || !e) return;\n if (N(e))\n return d().createElementNS(t, e);\n const { tagName: n } = e, o = oe(t, n);\n if (!o) return;\n const s = { ...e };\n return delete s.tagName, C(o, s);\n}, G = (t, e) => t.dispatchEvent(e), to = (t, e, n) => n.indexOf(t) === e, f = (t, e, n) => {\n const o = getComputedStyle(t, n), s = e.replace(\"webkit\", \"Webkit\").replace(/([A-Z])/g, \"-$1\").toLowerCase();\n return o.getPropertyValue(s);\n}, se = (t) => {\n const e = f(t, U), n = f(t, Zt), o = n.includes(\"ms\") ? 1 : 1e3, s = e && e !== \"none\" ? parseFloat(n) * o : 0;\n return Number.isNaN(s) ? 0 : s;\n}, re = (t) => {\n const e = f(t, U), n = f(t, Gt), o = n.includes(\"ms\") ? 1 : 1e3, s = e && e !== \"none\" ? parseFloat(n) * o : 0;\n return Number.isNaN(s) ? 0 : s;\n}, eo = (t, e) => {\n let n = 0;\n const o = new Event(T), s = re(t), r = se(t);\n if (s) {\n const a = (l) => {\n l.target === t && (e.apply(t, [l]), t.removeEventListener(T, a), n = 1);\n };\n t.addEventListener(T, a), setTimeout(() => {\n n || G(t, o);\n }, s + r + 17);\n } else\n e.apply(t, [o]);\n}, ce = (t) => {\n const e = f(t, W), n = f(t, $t), o = n.includes(\"ms\") ? 1 : 1e3, s = e && e !== \"none\" ? parseFloat(n) * o : 0;\n return Number.isNaN(s) ? 0 : s;\n}, ae = (t) => {\n const e = f(t, W), n = f(t, _t), o = n.includes(\"ms\") ? 1 : 1e3, s = e && e !== \"none\" ? parseFloat(n) * o : 0;\n return Number.isNaN(s) ? 0 : s;\n}, no = (t, e) => {\n let n = 0;\n const o = new Event(M), s = ae(t), r = ce(t);\n if (s) {\n const a = (l) => {\n l.target === t && (e.apply(t, [l]), t.removeEventListener(M, a), n = 1);\n };\n t.addEventListener(M, a), setTimeout(() => {\n n || G(t, o);\n }, s + r + 17);\n } else\n e.apply(t, [o]);\n}, oo = (t) => Float32Array.from(Array.from(t)), so = (t) => Float64Array.from(Array.from(t)), ro = (t, e) => t.focus(e), co = (t) => t?.trim().replace(/([a-z])([A-Z])/g, \"$1-$2\").replace(/\\s+/g, \"-\").toLowerCase(), P = (t) => [\"true\", !0].includes(t) ? !0 : [\"false\", !1].includes(t) ? !1 : [\"null\", \"\", null, void 0].includes(t) ? null : t !== \"\" && !Number.isNaN(+t) ? +t : t, S = (t) => Object.entries(t), ao = (t, e, n, o) => {\n if (!i(t)) return e;\n const s = { ...n }, r = { ...t.dataset }, a = { ...e }, l = {}, p = \"title\";\n return S(r).forEach(([c, g]) => {\n const A = o && typeof c == \"string\" && c.includes(o) ? I(c.replace(o, \"\")) : I(c);\n l[A] = P(g);\n }), S(s).forEach(([c, g]) => {\n s[c] = P(g);\n }), S(e).forEach(([c, g]) => {\n c in s ? a[c] = s[c] : c in l ? a[c] = l[c] : a[c] = c === p ? j(t, p) : g;\n }), a;\n}, io = (t, e) => v(t) && (Object.hasOwn(t, e) || e in t), uo = (t) => Object.keys(t), lo = (t) => Object.values(t), fo = (t) => Object.fromEntries(t), po = (t, e) => {\n const n = new CustomEvent(t, {\n cancelable: !0,\n bubbles: !0\n });\n return v(e) && C(n, e), n;\n}, go = { passive: !0 }, mo = (t) => t.offsetHeight, vo = (t, e) => {\n S(e).forEach(([n, o]) => {\n if (o && N(n) && n.includes(\"--\"))\n t.style.setProperty(n, o);\n else {\n const s = {};\n s[n] = o, C(t.style, s);\n }\n });\n}, O = (t) => v(t) && t.constructor.name === \"Map\" || !1, ie = (t) => typeof t == \"number\" || !1, m = /* @__PURE__ */ new Map(), bo = {\n set: (t, e, n, o) => {\n i(t) && (o && o.length ? (m.has(t) || m.set(t, /* @__PURE__ */ new Map()), m.get(t).set(o, setTimeout(e, n))) : m.set(t, setTimeout(e, n)));\n },\n get: (t, e) => {\n if (!i(t)) return null;\n const n = m.get(t);\n return e && n && O(n) ? n.get(e) || null : ie(n) ? n : null;\n },\n clear: (t, e) => {\n if (!i(t)) return;\n const n = m.get(t);\n e && e.length && O(n) ? (clearTimeout(n.get(e)), n.delete(e), n.size === 0 && m.delete(t)) : (clearTimeout(n), m.delete(t));\n }\n}, Eo = (t) => t.toLowerCase(), ho = (t) => t.toUpperCase(), ue = (t, e) => (u(e) ? e : d()).querySelectorAll(t), x = /* @__PURE__ */ new Map();\nfunction le(t) {\n const { shiftKey: e, code: n } = t, o = d(this), s = [\n ...ue(qt, this)\n ].filter(\n (l) => !ee(l, \"disabled\") && !j(l, $)\n );\n if (!s.length) return;\n const r = s[0], a = s[s.length - 1];\n n === \"Tab\" && (e && o.activeElement === r ? (a.focus(), t.preventDefault()) : !e && o.activeElement === a && (r.focus(), t.preventDefault()));\n}\nconst de = (t) => x.has(t) === !0, yo = (t) => {\n const e = de(t);\n (e ? Q : R)(t, \"keydown\", le), e ? x.delete(t) : x.set(t, !0);\n}, b = (t) => i(t) && \"offsetWidth\" in t || !1, y = (t, e) => {\n const { width: n, height: o, top: s, right: r, bottom: a, left: l } = t.getBoundingClientRect();\n let p = 1, c = 1;\n if (e && b(t)) {\n const { offsetWidth: g, offsetHeight: A } = t;\n p = g > 0 ? Math.round(n) / g : 1, c = A > 0 ? Math.round(o) / A : 1;\n }\n return {\n width: n / p,\n height: o / c,\n top: s / c,\n right: r / p,\n bottom: a / c,\n left: l / p,\n x: l / p,\n y: s / c\n };\n}, wo = (t) => d(t).body, w = (t) => d(t).documentElement, Ao = (t) => d(t).head, fe = (t) => u(t) ? (t.nodeName || \"\").toLowerCase() : \"#document\", So = (t) => {\n const e = K(t), n = e ? t.scrollX : t.scrollLeft, o = e ? t.scrollY : t.scrollTop;\n return { x: n, y: o };\n}, pe = (t) => u(t) && t.constructor.name === \"ShadowRoot\" || !1, k = (t) => t.nodeName === \"HTML\" ? t : i(t) && t.assignedSlot || u(t) && t.parentNode || pe(t) && t.host || w(t), ge = (t) => t ? q(t) ? t.defaultView : u(t) ? t?.ownerDocument?.defaultView : t : window, me = (t) => u(t) && [\"TABLE\", \"TD\", \"TH\"].includes(t.nodeName) || !1, ve = (t, e) => t.matches(e), D = (t) => f(t, \"position\") === \"static\", be = (t) => f(t, \"position\") === \"fixed\", Z = (t) => [\":popover-open\", \":modal\"].some((e) => {\n try {\n return ve(t, e);\n } catch {\n return !1;\n }\n}), _ = (t) => {\n const e = Xt(), n = i(t) ? getComputedStyle(t) : t;\n return n.transform !== \"none\" || n.perspective !== \"none\" || (n.containerType ? n.containerType !== \"normal\" : !1) || !e && (n.backdropFilter ? n.backdropFilter !== \"none\" : !1) || !e && (n.filter ? n.filter !== \"none\" : !1) || [\"transform\", \"perspective\", \"filter\"].some(\n (o) => (n.willChange || \"\").includes(o)\n ) || [\"paint\", \"layout\", \"strict\", \"content\"].some(\n (o) => (n.contain || \"\").includes(o)\n );\n}, Ee = (t) => {\n let e = k(t);\n for (; i(e) && !z(e); ) {\n if (_(e))\n return e;\n if (Z(e))\n return null;\n e = k(e);\n }\n return null;\n}, z = (t) => [\"html\", \"body\", \"#document\"].includes(fe(t)), F = (t) => {\n if (!b(t) || be(t))\n return null;\n let e = t.offsetParent;\n return w(t) === e && (e = e.ownerDocument.body), e;\n}, ko = (t) => {\n const e = ge(t);\n if (!u(t) || Z(t))\n return e;\n if (!b(t)) {\n let o = k(t);\n for (; o && !z(o); ) {\n if (i(o) && !D(o))\n return o;\n o = k(o);\n }\n return e;\n }\n let n = F(t);\n for (; n && me(n) && D(n); )\n n = F(n);\n return n && z(n) && D(n) && !_(n) ? e : n || Ee(t) || e;\n}, he = (t) => {\n if (!b(t)) return !1;\n const { width: e, height: n } = y(t), { offsetWidth: o, offsetHeight: s } = t;\n return Math.round(e) !== o || Math.round(n) !== s;\n}, No = (t, e, n) => {\n const o = b(e), s = y(\n t,\n o && he(e)\n ), r = { x: 0, y: 0 };\n if (o) {\n const a = y(e, !0);\n r.x = a.x + e.clientLeft, r.y = a.y + e.clientTop;\n }\n return {\n x: s.left + n.x - r.x,\n y: s.top + n.y - r.y,\n width: s.width,\n height: s.height\n };\n};\nlet B = 0, V = 0;\nconst h = /* @__PURE__ */ new Map(), ye = (t, e) => {\n let n = e ? B : V;\n if (e) {\n const o = ye(t), s = h.get(o) || /* @__PURE__ */ new Map();\n h.has(o) || h.set(o, s), O(s) && !s.has(e) ? (s.set(e, n), B += 1) : n = s.get(e);\n } else {\n const o = t.id || t;\n h.has(o) ? n = h.get(o) : (h.set(o, n), V += 1);\n }\n return n;\n}, we = (t) => Array.isArray(t) || !1, Co = (t) => u(t) && t.nodeName === \"CANVAS\" || !1, Ae = (t) => b(t) && !!t.shadowRoot || !1, To = (t) => {\n if (!u(t)) return !1;\n const { top: e, bottom: n } = y(t), { clientHeight: o } = w(t);\n return e <= o && n >= 0;\n}, Mo = (t) => {\n if (!i(t)) return !1;\n const { clientWidth: e, clientHeight: n } = w(t), { top: o, left: s, bottom: r, right: a } = y(t, !0);\n return o >= 0 && s >= 0 && r <= n && a <= e;\n}, Do = (t) => we(t) && t.every(i) || !1, Lo = (t) => typeof t == \"function\" || !1, Oo = (t) => v(t) && t.constructor.name === \"HTMLCollection\" || !1, xo = (t) => b(t) && t.tagName === \"IMG\" || !1, zo = (t) => {\n if (!N(t)) return !1;\n try {\n JSON.parse(t);\n } catch {\n return !1;\n }\n return !0;\n}, Io = (t) => v(t) && t.constructor.name === \"WeakMap\" || !1, Po = (t) => u(t) && [\"SVG\", \"Image\", \"Video\", \"Canvas\"].some(\n (e) => t.constructor.name.includes(e)\n) || !1, Fo = (t) => v(t) && t.constructor.name === \"NodeList\" || !1, Bo = (t) => w(t).dir === \"rtl\", Vo = (t) => u(t) && t.constructor.name.includes(\"SVG\") || !1, Se = (t, e) => !t || !e ? null : t.closest(e) || Se(t.getRootNode().host, e) || null, Ho = (t, e) => i(t) ? t : (i(e) ? e : d()).querySelector(t), ke = (t, e) => (u(e) ? e : d()).getElementsByTagName(\n t\n), Uo = (t) => [...ke(\"*\", t)].filter(Ae), Wo = (t, e) => d(e).getElementById(t), Ro = (t, e) => (e && u(e) ? e : d()).getElementsByClassName(\n t\n);\nexport {\n Jn as ArrayFrom,\n H as DOMContentLoadedEvent,\n nt as DOMMouseScrollEvent,\n L as Data,\n oo as Float32ArrayFrom,\n so as Float64ArrayFrom,\n C as ObjectAssign,\n S as ObjectEntries,\n fo as ObjectFromEntries,\n io as ObjectHasOwn,\n uo as ObjectKeys,\n lo as ObjectValues,\n bo as Timer,\n J as abortEvent,\n Kn as addClass,\n yn as addEventListener,\n Zt as animationDelay,\n Gt as animationDuration,\n T as animationEndEvent,\n U as animationName,\n Ce as ariaChecked,\n Me as ariaDescribedBy,\n Te as ariaDescription,\n De as ariaExpanded,\n Le as ariaHasPopup,\n $ as ariaHidden,\n Oe as ariaLabel,\n xe as ariaLabelledBy,\n ze as ariaModal,\n Ie as ariaPressed,\n Pe as ariaSelected,\n Be as ariaValueMax,\n Fe as ariaValueMin,\n Ve as ariaValueNow,\n He as ariaValueText,\n X as beforeunloadEvent,\n An as bezierEasings,\n Y as blurEvent,\n I as camelCase,\n Yn as capitalize,\n tt as changeEvent,\n Se as closest,\n et as contextmenuEvent,\n po as createCustomEvent,\n ne as createElement,\n oe as createElementNS,\n G as dispatchEvent,\n to as distinct,\n Zn as documentBody,\n _n as documentElement,\n $n as documentHead,\n We as dragEvent,\n qe as dragendEvent,\n Qe as dragenterEvent,\n je as dragleaveEvent,\n Ke as dragoverEvent,\n Re as dragstartEvent,\n eo as emulateAnimationEnd,\n no as emulateTransitionEnd,\n ot as errorEvent,\n ro as focus,\n st as focusEvent,\n Xe as focusEvents,\n qt as focusableSelector,\n rt as focusinEvent,\n ct as focusoutEvent,\n at as gesturechangeEvent,\n it as gestureendEvent,\n ut as gesturestartEvent,\n j as getAttribute,\n Hn as getAttributeNS,\n y as getBoundingClientRect,\n Uo as getCustomElements,\n d as getDocument,\n wo as getDocumentBody,\n w as getDocumentElement,\n Ao as getDocumentHead,\n se as getElementAnimationDelay,\n re as getElementAnimationDuration,\n Wo as getElementById,\n f as getElementStyle,\n ce as getElementTransitionDelay,\n ae as getElementTransitionDuration,\n Ro as getElementsByClassName,\n ke as getElementsByTagName,\n Xn as getInstance,\n fe as getNodeName,\n So as getNodeScroll,\n ko as getOffsetParent,\n k as getParentNode,\n No as getRectRelativeToOffsetParent,\n ye as getUID,\n ge as getWindow,\n ee as hasAttribute,\n Un as hasAttributeNS,\n Gn as hasClass,\n de as hasFocusTrap,\n On as isApple,\n we as isArray,\n Co as isCanvas,\n Ae as isCustomElement,\n q as isDocument,\n i as isElement,\n To as isElementInScrollRange,\n Mo as isElementInViewport,\n Do as isElementsArray,\n xn as isFirefox,\n Lo as isFunction,\n Oo as isHTMLCollection,\n b as isHTMLElement,\n xo as isHTMLImageElement,\n zo as isJSON,\n O as isMap,\n Po as isMedia,\n Ln as isMobile,\n u as isNode,\n Fo as isNodeList,\n ie as isNumber,\n v as isObject,\n Bo as isRTL,\n Vo as isSVGElement,\n he as isScaledElement,\n pe as isShadowRoot,\n N as isString,\n me as isTableElement,\n Io as isWeakMap,\n Xt as isWebKit,\n K as isWindow,\n co as kebabCase,\n tn as keyAlt,\n en as keyArrowDown,\n on as keyArrowLeft,\n sn as keyArrowRight,\n nn as keyArrowUp,\n rn as keyBackspace,\n cn as keyCapsLock,\n an as keyControl,\n un as keyDelete,\n ln as keyEnter,\n fn as keyEscape,\n pn as keyInsert,\n gn as keyMeta,\n dn as keyNumpadEnter,\n mn as keyPause,\n vn as keyScrollLock,\n bn as keyShift,\n En as keySpace,\n hn as keyTab,\n Ye as keyboardEventKeys,\n lt as keydownEvent,\n dt as keypressEvent,\n ft as keyupEvent,\n pt as loadEvent,\n Ge as loadstartEvent,\n ve as matches,\n _e as mouseClickEvents,\n $e as mouseHoverEvents,\n Ze as mouseSwipeEvents,\n gt as mouseclickEvent,\n mt as mousedblclickEvent,\n vt as mousedownEvent,\n ht as mouseenterEvent,\n Et as mousehoverEvent,\n wt as mouseinEvent,\n yt as mouseleaveEvent,\n kt as mousemoveEvent,\n At as mouseoutEvent,\n St as mouseoverEvent,\n bt as mouseupEvent,\n Nt as mousewheelEvent,\n Ct as moveEvent,\n Ue as nativeEvents,\n Yt as noop,\n ao as normalizeOptions,\n P as normalizeValue,\n Q as off,\n Sn as offsetHeight,\n kn as offsetWidth,\n R as on,\n te as one,\n Tt as orientationchangeEvent,\n go as passiveHandler,\n Mt as pointercancelEvent,\n Dt as pointerdownEvent,\n Lt as pointerleaveEvent,\n Ot as pointermoveEvent,\n xt as pointerupEvent,\n Ho as querySelector,\n ue as querySelectorAll,\n zt as readystatechangeEvent,\n mo as reflow,\n Qn as removeAttribute,\n jn as removeAttributeNS,\n qn as removeClass,\n wn as removeEventListener,\n It as resetEvent,\n Pt as resizeEvent,\n Ht as scrollEvent,\n Nn as scrollHeight,\n Cn as scrollWidth,\n Ft as selectEvent,\n Bt as selectendEvent,\n Vt as selectstartEvent,\n Wn as setAttribute,\n Rn as setAttributeNS,\n vo as setElementStyle,\n Ut as submitEvent,\n zn as support3DTransform,\n Bn as supportAnimation,\n In as supportPassive,\n Fn as supportTouch,\n Pn as supportTransform,\n Vn as supportTransition,\n Tn as tabindex,\n Eo as toLowerCase,\n ho as toUpperCase,\n yo as toggleFocusTrap,\n Je as touchEvents,\n Qt as touchcancelEvent,\n jt as touchendEvent,\n Rt as touchmoveEvent,\n Wt as touchstartEvent,\n $t as transitionDelay,\n _t as transitionDuration,\n M as transitionEndEvent,\n W as transitionProperty,\n Kt as unloadEvent,\n Dn as userAgent,\n Mn as userAgentData,\n Ne as version\n};\n//# sourceMappingURL=shorty.mjs.map\n","const g = \"2.0.8\", e = {}, f = (t) => {\n const { type: n, currentTarget: c } = t;\n e[n].forEach((a, s) => {\n c === s && a.forEach((o, i) => {\n i.apply(s, [t]), typeof o == \"object\" && o.once && r(s, n, i, o);\n });\n });\n}, E = (t, n, c, a) => {\n e[n] || (e[n] = /* @__PURE__ */ new Map());\n const s = e[n];\n s.has(t) || s.set(t, /* @__PURE__ */ new Map());\n const o = s.get(\n t\n ), { size: i } = o;\n o.set(c, a), i || t.addEventListener(\n n,\n f,\n a\n );\n}, r = (t, n, c, a) => {\n const s = e[n], o = s && s.get(t), i = o && o.get(c), d = i !== void 0 ? i : a;\n o && o.has(c) && o.delete(c), s && (!o || !o.size) && s.delete(t), (!s || !s.size) && delete e[n], (!o || !o.size) && t.removeEventListener(\n n,\n f,\n d\n );\n}, M = E, p = r;\nexport {\n E as addListener,\n f as globalListener,\n p as off,\n M as on,\n e as registry,\n r as removeListener,\n g as version\n};\n//# sourceMappingURL=event-listener.mjs.map\n","/**\n * Global namespace for most components `fade` class.\n */\nconst fadeClass = \"fade\";\nexport default fadeClass;\n","/**\n * Global namespace for most components `show` class.\n */\nconst showClass = \"show\";\nexport default showClass;\n","/**\n * Global namespace for most components `dismiss` option.\n */\nconst dataBsDismiss = \"data-bs-dismiss\";\nexport default dataBsDismiss;\n","/** @type {string} */\nconst alertString = \"alert\";\nexport default alertString;\n","/** @type {string} */\nconst alertComponent = \"Alert\";\nexport default alertComponent;\n","import { getAttribute, hasClass } from \"@thednp/shorty\";\n\n/**\n * Check if interactive element is disabled.\n * @param target either a `',\n});\n\n/**\n * Static method which returns an existing `Popover` instance associated\n * to a target `Element`.\n */\nconst getPopoverInstance = (element: Element) =>\n getInstance(element, popoverComponent);\n\n/**\n * A `Popover` initialization callback.\n */\nconst popoverInitCallback = (element: Element) => new Popover(element);\n\n// POPOVER DEFINITION\n// ==================\n/** Returns a new `Popover` instance. */\nexport default class Popover extends Tooltip {\n static selector = popoverSelector;\n static init = popoverInitCallback;\n static getInstance = getPopoverInstance;\n static styleTip = styleTip;\n declare options: PopoverOptions;\n\n /**\n * @param target the target element\n * @param config the instance options\n */\n constructor(target: Element | string, config?: Partial) {\n super(target, config);\n }\n /**\n * Returns component name string.\n */\n get name() {\n return popoverComponent;\n }\n /**\n * Returns component default options.\n */\n get defaults() {\n return popoverDefaults;\n }\n\n /* extend original `show()` */\n show = () => {\n super.show();\n // btn only exists within dismissible popover\n const { options, btn } = this;\n // istanbul ignore else @preserve\n if (options.dismissible && btn) setTimeout(() => focus(btn), 17);\n };\n}\n","/** @type {string} */\nconst scrollspyString = \"scrollspy\";\nexport default scrollspyString;\n","/** @type {string} */\nconst scrollspyComponent = \"ScrollSpy\";\nexport default scrollspyComponent;\n","/* Native JavaScript for Bootstrap 5 | ScrollSpy\n------------------------------------------------ */\nimport {\n addClass,\n closest,\n createCustomEvent,\n dispatchEvent,\n getAttribute,\n getBoundingClientRect,\n getDocument,\n getDocumentElement,\n getElementById,\n getElementsByTagName,\n getInstance,\n hasClass,\n mouseclickEvent,\n MouseEvent,\n querySelector,\n removeClass,\n} from \"@thednp/shorty\";\n\nimport PositionObserver from \"@thednp/position-observer\";\nimport { addListener, removeListener } from \"@thednp/event-listener\";\n\nimport activeClass from \"~/strings/activeClass\";\nimport scrollspyString from \"~/strings/scrollspyString\";\nimport scrollspyComponent from \"~/strings/scrollspyComponent\";\nimport isDisabled from \"~/util/isDisabled\";\nimport BaseComponent from \"./base-component\";\nimport { ScrollSpyEvent, ScrollSpyOptions } from \"~/interface/scrollspy\";\n\n// SCROLLSPY PRIVATE GC\n// ====================\nconst scrollspySelector = '[data-bs-spy=\"scroll\"]';\nconst scrollSpyAnchorSelector = \"[href]\";\n\nconst scrollspyDefaults: Partial = {\n offset: 10,\n target: undefined,\n};\n\ntype ScrollSpyEventProps = {\n relatedTarget: HTMLElement;\n};\n\n/**\n * Static method which returns an existing `ScrollSpy` instance associated\n * to a target `Element`.\n */\nconst getScrollSpyInstance = (element: Element) =>\n getInstance(element, scrollspyComponent);\n\n/**\n * A `ScrollSpy` initialization callback.\n */\nconst scrollspyInitCallback = (element: Element) => new ScrollSpy(element);\n\n// SCROLLSPY CUSTOM EVENT\n// ======================\nconst activateScrollSpy = createCustomEvent<\n ScrollSpyEventProps,\n ScrollSpyEvent\n>(`activate.bs.${scrollspyString}`);\n\n// SCROLLSPY PRIVATE METHODS\n// =========================\n/**\n * Update the state of all items.\n *\n * @param self the `ScrollSpy` instance\n */\nconst updateSpyTargets = (self: ScrollSpy) => {\n const {\n target,\n _itemsLength,\n _observables,\n } = self;\n\n const links = getElementsByTagName(\"A\", target);\n const doc = getDocument(target);\n\n // only update items once or with each mutation\n // istanbul ignore else @preserve\n if (!links.length || _itemsLength === _observables.size) return;\n // reset arrays & update\n _observables.clear();\n\n Array.from(links).forEach((link) => {\n const hash = getAttribute(link, \"href\")?.slice(1);\n const targetItem = hash?.length ? doc.getElementById(hash) : null;\n\n if (targetItem && !isDisabled(link)) {\n self._observables.set(targetItem, link);\n }\n });\n self._itemsLength = self._observables.size;\n};\n\n/**\n * Clear all items of the target.\n *\n * @param target a single item\n */\nconst clear = (target: Element) => {\n Array.from(getElementsByTagName(\"A\", target)).forEach(\n (item) => {\n if (hasClass(item, activeClass)) removeClass(item, activeClass);\n },\n );\n};\n\n/**\n * Activates a new item.\n *\n * @param self the `ScrollSpy` instance\n * @param item a single item\n */\nconst activate = (self: ScrollSpy, item: HTMLElement) => {\n const { target, element } = self;\n\n // istanbul ignore else @preserve\n clear(target);\n\n self._activeItem = item;\n addClass(item, activeClass);\n\n // activate all parents\n let parentItem = item;\n while (parentItem !== target) {\n parentItem = parentItem.parentElement as HTMLElement;\n if (\n [\"nav\", \"dropdown-menu\", \"list-group\"].some((c) =>\n hasClass(parentItem, c)\n )\n ) {\n const parentLink = parentItem.previousElementSibling as\n | HTMLElement\n | null;\n\n // istanbul ignore else @preserve\n if (parentLink && !hasClass(parentLink, activeClass)) {\n addClass(parentLink, activeClass);\n }\n }\n }\n\n // dispatch\n activateScrollSpy.relatedTarget = item;\n dispatchEvent(element, activateScrollSpy);\n};\n\nconst getOffset = (self: ScrollSpy, target: HTMLElement) => {\n const { scrollTarget, element, options } = self;\n\n return (scrollTarget !== element\n ? getBoundingClientRect(target).top + scrollTarget.scrollTop\n : target.offsetTop) - (options.offset as number || 10);\n};\n\n// SCROLLSPY DEFINITION\n// ====================\n/** Returns a new `ScrollSpy` instance. */\nexport default class ScrollSpy extends BaseComponent {\n static selector = scrollspySelector;\n static init = scrollspyInitCallback;\n static getInstance = getScrollSpyInstance;\n declare element: HTMLElement;\n declare options: ScrollSpyOptions;\n declare target: HTMLElement;\n declare scrollTarget: HTMLElement;\n declare _itemsLength: number;\n declare _activeItem: HTMLElement | null;\n declare _observables: Map;\n declare _observer: PositionObserver; //| IntersectionObserver;\n\n /**\n * @param target the target element\n * @param config the instance options\n */\n constructor(\n target: Element | string,\n config?: Partial,\n ) {\n super(target, config);\n\n // initialization element & options\n const { element, options } = this;\n\n // get target\n const spyTarget = querySelector(\n options.target,\n getDocument(element),\n );\n\n // invalidate\n if (!spyTarget) return;\n this.target = spyTarget;\n\n // set initial state\n this.scrollTarget = element.clientHeight < element.scrollHeight\n ? element\n : getDocumentElement(element);\n this._observables = new Map();\n\n // run an initial burst, we need to know the targets\n this.refresh();\n // updateSpyTargets(this);\n\n // create observer\n this._observer = new PositionObserver(() => {\n requestAnimationFrame(() => this.refresh());\n }, {\n root: this.scrollTarget,\n });\n\n // add event handlers\n this._toggleEventListeners(true);\n }\n\n /* eslint-disable */\n /**\n * Returns component name string.\n */\n get name() {\n return scrollspyComponent;\n }\n /**\n * Returns component default options.\n */\n get defaults() {\n return scrollspyDefaults;\n }\n /* eslint-enable */\n\n // SCROLLSPY PUBLIC METHODS\n // ========================\n /** Updates all items. */\n refresh = () => {\n const { target, scrollTarget } = this;\n // check if target is visible and invalidate\n // istanbul ignore if @preserve\n if (!target || target.offsetHeight === 0) return;\n\n updateSpyTargets(this);\n const { _itemsLength, _observables, _activeItem } = this;\n\n // istanbul ignore if @preserve\n if (!_itemsLength) return;\n const entries = _observables.entries().toArray();\n\n const { scrollTop, scrollHeight, clientHeight } = scrollTarget;\n\n if (scrollTop >= scrollHeight - clientHeight) {\n const newActiveItem = entries[_itemsLength - 1]?.[1];\n\n // istanbul ignore else @preserve\n if (_activeItem !== newActiveItem) activate(this, newActiveItem);\n return;\n }\n\n const firstOffset = entries[0]?.[0]\n ? getOffset(this, entries[0][0])\n : /* istanbul ignore next */ null;\n if (\n firstOffset !== null && scrollTop < firstOffset &&\n firstOffset > 0\n ) {\n this._activeItem = null;\n clear(target);\n return;\n }\n\n for (let i = 0; i < _itemsLength; i += 1) {\n const [targetItem, item] = entries[i];\n const offsetTop = getOffset(this, targetItem);\n const nextTarget = entries[i + 1]?.[0];\n const nextOffsetTop = nextTarget\n ? getOffset(this, nextTarget)\n : /* istanbul ignore next */ null;\n\n // istanbul ignore else @preserve\n if (\n _activeItem !== item &&\n scrollTop >= offsetTop &&\n (nextOffsetTop === null || scrollTop < nextOffsetTop)\n ) {\n activate(this, item);\n break;\n }\n }\n };\n\n /**\n * This method provides an event handle\n * for scrollspy\n * @param e the event listener object\n */\n _scrollTo = (e: MouseEvent) => {\n const item = closest(e.target, scrollSpyAnchorSelector);\n const hash = item && getAttribute(item, \"href\")?.slice(1);\n const targetItem = hash && getElementById(hash, this.target);\n\n // istanbul ignore else @preserve\n if (targetItem) {\n this.scrollTarget.scrollTo({\n top: targetItem.offsetTop,\n behavior: \"smooth\",\n });\n e.preventDefault();\n }\n };\n\n /**\n * Toggles on/off the component observer.\n *\n * @param self the ScrollSpy instance\n * @param add when `true`, listener is added\n */\n _toggleEventListeners = (\n add?: boolean,\n ) => {\n const { target, _observables, _observer, _scrollTo } = this;\n const action = add ? addListener : removeListener;\n action(target, mouseclickEvent, _scrollTo);\n\n if (add) {\n _observables?.forEach((_, targetItem) => _observer.observe(targetItem));\n } else _observer.disconnect();\n };\n\n /** Removes `ScrollSpy` from the target element. */\n dispose() {\n this._toggleEventListeners();\n super.dispose();\n }\n}\n","/** @type {string} */\nconst tabString = \"tab\";\nexport default tabString;\n","/** @type {string} */\nconst tabComponent = \"Tab\";\nexport default tabComponent;\n","/* Native JavaScript for Bootstrap 5 | Tab\n------------------------------------------ */\nimport {\n addClass,\n ariaSelected,\n closest,\n createCustomEvent,\n dispatchEvent,\n emulateTransitionEnd,\n getElementsByClassName,\n getInstance,\n hasClass,\n isHTMLElement,\n mouseclickEvent,\n MouseEvent,\n querySelector,\n reflow,\n removeClass,\n setAttribute,\n Timer,\n} from \"@thednp/shorty\";\n\nimport { addListener, removeListener } from \"@thednp/event-listener\";\n\nimport collapsingClass from \"~/strings/collapsingClass\";\nimport activeClass from \"~/strings/activeClass\";\nimport fadeClass from \"~/strings/fadeClass\";\nimport showClass from \"~/strings/showClass\";\nimport dropdownClasses from \"~/strings/dropdownClasses\";\nimport dataBsToggle from \"~/strings/dataBsToggle\";\nimport tabString from \"~/strings/tabString\";\nimport tabComponent from \"~/strings/tabComponent\";\nimport getTargetElement from \"~/util/getTargetElement\";\nimport BaseComponent from \"./base-component\";\nimport type { /* TabOptions, */ TabEvent } from \"~/interface/tab\";\n\n// TAB PRIVATE GC\n// ================\nconst tabSelector = `[${dataBsToggle}=\"${tabString}\"]`;\n\n/**\n * Static method which returns an existing `Tab` instance associated\n * to a target `Element`.\n */\nconst getTabInstance = (element: Element) =>\n getInstance(element, tabComponent);\n\n/** A `Tab` initialization callback. */\nconst tabInitCallback = (element: Element) => new Tab(element);\n\ntype TabEventProps = {\n relatedTarget: Element & EventTarget | undefined;\n};\n\n// TAB CUSTOM EVENTS\n// =================\nconst showTabEvent = createCustomEvent(\n `show.bs.${tabString}`,\n);\nconst shownTabEvent = createCustomEvent(\n `shown.bs.${tabString}`,\n);\nconst hideTabEvent = createCustomEvent(\n `hide.bs.${tabString}`,\n);\nconst hiddenTabEvent = createCustomEvent(\n `hidden.bs.${tabString}`,\n);\n\ninterface TabPrivate {\n tab: HTMLElement | null;\n content: HTMLElement | null;\n currentHeight: number;\n nextHeight: number;\n}\n\n/**\n * Stores the current active tab and its content\n * for a given `.nav` element.\n */\nconst tabPrivate: Map = new Map();\n\n// TAB PRIVATE METHODS\n// ===================\n/**\n * Executes after tab transition has finished.\n *\n * @param self the `Tab` instance\n */\nconst triggerTabEnd = (self: Tab) => {\n const { tabContent, nav } = self;\n\n // istanbul ignore else @preserve\n if (tabContent && hasClass(tabContent, collapsingClass)) {\n tabContent.style.height = \"\";\n removeClass(tabContent, collapsingClass);\n }\n\n // istanbul ignore else @preserve\n if (nav) Timer.clear(nav);\n};\n\n/**\n * Executes before showing the tab content.\n *\n * @param self the `Tab` instance\n */\nconst triggerTabShow = (self: Tab) => {\n const { element, tabContent, content: nextContent, nav } = self;\n const { tab } = (isHTMLElement(nav) && tabPrivate.get(nav)) ||\n // istanbul ignore next @preserve\n { tab: null };\n\n // istanbul ignore else @preserve\n if (tabContent && nextContent && hasClass(nextContent, fadeClass)) {\n const { currentHeight, nextHeight } = tabPrivate.get(element) ||\n // istanbul ignore next @preserve\n { currentHeight: 0, nextHeight: 0 };\n // istanbul ignore else @preserve: vitest won't validate this branch\n if (currentHeight !== nextHeight) {\n // enables height animation\n setTimeout(() => {\n tabContent.style.height = `${nextHeight}px`;\n reflow(tabContent);\n emulateTransitionEnd(tabContent, () => triggerTabEnd(self));\n }, 50);\n } else {\n triggerTabEnd(self);\n }\n } else if (nav) Timer.clear(nav);\n\n shownTabEvent.relatedTarget = tab as HTMLElement | undefined;\n\n dispatchEvent(element, shownTabEvent);\n};\n\n/**\n * Executes before hiding the tab.\n *\n * @param self the `Tab` instance\n */\nconst triggerTabHide = (self: Tab) => {\n const { element, content: nextContent, tabContent, nav } = self;\n const { tab, content } = (nav && tabPrivate.get(nav)) ||\n // istanbul ignore next @preserve\n { tab: null, content: null };\n let currentHeight = 0;\n\n // istanbul ignore else @preserve\n if (tabContent && nextContent && hasClass(nextContent, fadeClass)) {\n [content, nextContent].forEach((c) => {\n // istanbul ignore else @preserve\n if (c) addClass(c, \"overflow-hidden\");\n });\n currentHeight = content\n ? content.scrollHeight\n : /* istanbul ignore next @preserve */ 0;\n }\n\n // update relatedTarget and dispatch event\n showTabEvent.relatedTarget = tab as HTMLElement | undefined;\n hiddenTabEvent.relatedTarget = element as HTMLElement;\n dispatchEvent(element, showTabEvent);\n\n // istanbul ignore if @preserve\n if (showTabEvent.defaultPrevented) return;\n // istanbul ignore else @preserve\n if (nextContent) addClass(nextContent, activeClass);\n // istanbul ignore else @preserve\n if (content) removeClass(content, activeClass);\n\n // istanbul ignore else @preserve\n if (tabContent && nextContent && hasClass(nextContent, fadeClass)) {\n const nextHeight = nextContent.scrollHeight;\n tabPrivate.set(element, {\n currentHeight,\n nextHeight,\n tab: null,\n content: null,\n });\n\n addClass(tabContent, collapsingClass);\n tabContent.style.height = `${currentHeight}px`;\n reflow(tabContent);\n [content, nextContent].forEach((c) => {\n // istanbul ignore else @preserve\n if (c) removeClass(c, \"overflow-hidden\");\n });\n }\n\n if (nextContent && nextContent && hasClass(nextContent, fadeClass)) {\n setTimeout(() => {\n addClass(nextContent, showClass);\n emulateTransitionEnd(nextContent, () => {\n triggerTabShow(self);\n });\n }, 1);\n } else {\n // istanbul ignore else @preserve\n if (nextContent) addClass(nextContent, showClass);\n triggerTabShow(self);\n }\n\n // istanbul ignore else @preserve\n if (tab) dispatchEvent(tab, hiddenTabEvent);\n};\n\n/**\n * Returns the current active tab and its target content.\n *\n * @param self the `Tab` instance\n * @returns the query result\n */\nconst getActiveTab = (\n self: Tab,\n): { tab: HTMLElement | null; content: HTMLElement | null } => {\n const { nav } = self;\n // istanbul ignore next @preserve\n if (!isHTMLElement(nav)) {\n return { tab: null, content: null };\n }\n\n const activeTabs = getElementsByClassName(\n activeClass,\n nav,\n );\n let tab: HTMLElement | null = null;\n // istanbul ignore else @preserve\n if (\n activeTabs.length === 1 &&\n !dropdownClasses.some((c) =>\n hasClass(activeTabs[0].parentElement as HTMLElement, c)\n )\n ) {\n [tab] = activeTabs;\n } else if (activeTabs.length > 1) {\n tab = activeTabs[activeTabs.length - 1];\n }\n const content = isHTMLElement(tab) ? getTargetElement(tab) : null;\n return { tab, content };\n};\n\n/**\n * Returns a parent dropdown.\n *\n * @param element the `Tab` element\n * @returns the parent dropdown\n */\nconst getParentDropdown = (element?: HTMLElement) => {\n // istanbul ignore next @preserve\n if (!isHTMLElement(element)) return null;\n const dropdown = closest(element, `.${dropdownClasses.join(\",.\")}`);\n return dropdown\n ? querySelector(`.${dropdownClasses[0]}-toggle`, dropdown)\n : null;\n};\n\n// TAB EVENT HANDLER\n// =================\n/**\n * Handles the `click` event listener.\n *\n * @param e the `Event` object\n */\nconst tabClickHandler = (e: MouseEvent) => {\n const element = closest(e.target, tabSelector);\n const self = element && getTabInstance(element);\n\n // istanbul ignore if @preserve\n if (!self) return;\n e.preventDefault();\n self.show();\n};\n\n// TAB DEFINITION\n// ==============\n/** Creates a new `Tab` instance. */\nexport default class Tab extends BaseComponent {\n static selector = tabSelector;\n static init = tabInitCallback;\n static getInstance = getTabInstance;\n declare element: HTMLElement;\n declare nav: HTMLElement | null;\n declare content: HTMLElement | null;\n declare tabContent: HTMLElement | null;\n declare nextContent: HTMLElement | null;\n declare dropdown: HTMLElement | null;\n\n /** @param target the target element */\n constructor(target: Element | string) {\n super(target);\n\n // initialization element\n const { element } = this;\n const content = getTargetElement(element);\n\n // no point initializing a tab without a corresponding content\n // istanbul ignore else @preserve\n if (!content) return;\n\n const nav = closest(element, \".nav\");\n const container = closest(\n content as HTMLElement,\n \".tab-content\",\n );\n\n this.nav = nav;\n this.content = content;\n this.tabContent = container;\n\n // event targets\n this.dropdown = getParentDropdown(element);\n\n // show first Tab instance of none is shown\n // suggested on #432\n const { tab } = getActiveTab(this);\n if (nav && !tab) {\n const firstTab = querySelector(tabSelector, nav);\n const firstTabContent = firstTab && getTargetElement(firstTab);\n\n // istanbul ignore else @preserve\n if (firstTabContent) {\n addClass(firstTab, activeClass);\n addClass(firstTabContent, showClass);\n addClass(firstTabContent, activeClass);\n setAttribute(element, ariaSelected, \"true\");\n }\n }\n\n // add event listener\n this._toggleEventListeners(true);\n }\n\n /**\n * Returns component name string.\n */\n get name() {\n return tabComponent;\n }\n\n // TAB PUBLIC METHODS\n // ==================\n /** Shows the tab to the user. */\n show() {\n const { element, content: nextContent, nav, dropdown } = this;\n\n // istanbul ignore else @preserve\n if ((nav && Timer.get(nav)) || hasClass(element, activeClass)) return;\n const { tab, content } = getActiveTab(this);\n\n // istanbul ignore else @preserve\n if (nav && tab) {\n tabPrivate.set(nav, { tab, content, currentHeight: 0, nextHeight: 0 });\n }\n\n // update relatedTarget and dispatch\n hideTabEvent.relatedTarget = element as HTMLElement;\n\n // istanbul ignore if @preserve\n if (!isHTMLElement(tab)) return;\n\n dispatchEvent(tab, hideTabEvent);\n\n // istanbul ignore else @preserve\n if (hideTabEvent.defaultPrevented) return;\n\n addClass(element, activeClass);\n setAttribute(element, ariaSelected, \"true\");\n\n const activeDropdown = isHTMLElement(tab) && getParentDropdown(tab);\n if (activeDropdown && hasClass(activeDropdown, activeClass)) {\n removeClass(activeDropdown, activeClass);\n }\n\n // istanbul ignore else @preserve\n if (nav) {\n const toggleTab = () => {\n // istanbul ignore else @preserve\n if (tab) {\n removeClass(tab, activeClass);\n setAttribute(tab, ariaSelected, \"false\");\n }\n if (dropdown && !hasClass(dropdown, activeClass)) {\n addClass(dropdown, activeClass);\n }\n };\n\n if (\n content &&\n (hasClass(content, fadeClass) ||\n (nextContent && hasClass(nextContent, fadeClass)))\n ) {\n Timer.set(nav, toggleTab, 1);\n } else toggleTab();\n }\n\n // istanbul ignore else @preserve\n if (content) {\n removeClass(content, showClass);\n if (hasClass(content, fadeClass)) {\n emulateTransitionEnd(content, () => triggerTabHide(this));\n } else {\n triggerTabHide(this);\n }\n }\n }\n\n /**\n * Toggles on/off the `click` event listener.\n *\n * @param add when `true`, event listener is added\n */\n _toggleEventListeners = (add?: boolean) => {\n const action = add ? addListener : removeListener;\n action(this.element, mouseclickEvent, tabClickHandler);\n };\n\n /** Removes the `Tab` component from the target element. */\n dispose() {\n this._toggleEventListeners();\n super.dispose();\n }\n}\n","/** @type {string} */\nconst toastString = \"toast\";\nexport default toastString;\n","/** @type {string} */\nconst toastComponent = \"Toast\";\nexport default toastComponent;\n","/* Native JavaScript for Bootstrap 5 | Toast\n-------------------------------------------- */\nimport {\n addClass,\n createCustomEvent,\n dispatchEvent,\n emulateTransitionEnd,\n focusinEvent,\n focusoutEvent,\n getDocument,\n getInstance,\n hasClass,\n mouseclickEvent,\n mouseenterEvent,\n MouseEvent,\n mouseleaveEvent,\n querySelector,\n querySelectorAll,\n reflow,\n removeClass,\n Timer,\n} from \"@thednp/shorty\";\n\nimport { addListener, removeListener } from \"@thednp/event-listener\";\n\nimport fadeClass from \"~/strings/fadeClass\";\nimport showClass from \"~/strings/showClass\";\nimport dataBsDismiss from \"~/strings/dataBsDismiss\";\nimport dataBsToggle from \"~/strings/dataBsToggle\";\nimport toastString from \"~/strings/toastString\";\nimport toastComponent from \"~/strings/toastComponent\";\nimport getTargetElement from \"~/util/getTargetElement\";\nimport isDisabled from \"~/util/isDisabled\";\nimport BaseComponent from \"./base-component\";\nimport { ToastEvent, ToastOptions } from \"~/interface/toast\";\n\n// TOAST PRIVATE GC\n// ================\nconst toastSelector = `.${toastString}`;\nconst toastDismissSelector = `[${dataBsDismiss}=\"${toastString}\"]`;\nconst toastToggleSelector = `[${dataBsToggle}=\"${toastString}\"]`;\nconst showingClass = \"showing\";\n/** @deprecated */\nconst hideClass = \"hide\";\n\nconst toastDefaults = {\n animation: true,\n autohide: true,\n delay: 5000,\n};\n\n/**\n * Static method which returns an existing `Toast` instance associated\n * to a target `Element`.\n */\nconst getToastInstance = (element: Element) =>\n getInstance(element, toastComponent);\n\n/**\n * A `Toast` initialization callback.\n */\nconst toastInitCallback = (element: Element) => new Toast(element);\n\n// TOAST CUSTOM EVENTS\n// ===================\nconst showToastEvent = createCustomEvent, ToastEvent>(\n `show.bs.${toastString}`,\n);\nconst shownToastEvent = createCustomEvent, ToastEvent>(\n `shown.bs.${toastString}`,\n);\nconst hideToastEvent = createCustomEvent, ToastEvent>(\n `hide.bs.${toastString}`,\n);\nconst hiddenToastEvent = createCustomEvent, ToastEvent>(\n `hidden.bs.${toastString}`,\n);\n\n// TOAST PRIVATE METHODS\n// =====================\n/**\n * Executes after the toast is shown to the user.\n *\n * @param self the `Toast` instance\n */\nconst showToastComplete = (self: Toast) => {\n const { element, options } = self;\n removeClass(element, showingClass);\n Timer.clear(element, showingClass);\n\n dispatchEvent(element, shownToastEvent);\n // istanbul ignore else @preserve\n if (options.autohide) {\n Timer.set(element, () => self.hide(), options.delay, toastString);\n }\n};\n\n/**\n * Executes after the toast is hidden to the user.\n *\n * @param self the `Toast` instance\n */\nconst hideToastComplete = (self: Toast) => {\n const { element } = self;\n removeClass(element, showingClass);\n removeClass(element, showClass);\n addClass(element, hideClass); // B/C\n Timer.clear(element, toastString);\n dispatchEvent(element, hiddenToastEvent);\n};\n\n/**\n * Executes before hiding the toast.\n *\n * @param self the `Toast` instance\n */\nconst hideToast = (self: Toast) => {\n const { element, options } = self;\n addClass(element, showingClass);\n\n if (options.animation) {\n reflow(element as HTMLElement);\n emulateTransitionEnd(element, () => hideToastComplete(self));\n } else {\n hideToastComplete(self);\n }\n};\n\n/**\n * Executes before showing the toast.\n *\n * @param self the `Toast` instance\n */\nconst showToast = (self: Toast) => {\n const { element, options } = self;\n Timer.set(\n element,\n () => {\n removeClass(element, hideClass); // B/C\n reflow(element as HTMLElement);\n addClass(element, showClass);\n addClass(element, showingClass);\n\n if (options.animation) {\n emulateTransitionEnd(element, () => showToastComplete(self));\n } else {\n showToastComplete(self);\n }\n },\n 17,\n showingClass,\n );\n};\n\n// TOAST EVENT HANDLERS\n// ====================\n/**\n * Handles the `click` event listener for toast.\n *\n * @param e the `Event` object\n */\nfunction toastClickHandler(this: HTMLElement, e: Event) {\n const element = getTargetElement(this);\n const self = element && getToastInstance(element);\n\n // istanbul ignore if @preserve\n if (isDisabled(this)) return;\n // istanbul ignore if @preserve\n if (!self) return;\n // istanbul ignore else @preserve\n if (this.tagName === \"A\") e.preventDefault();\n self.relatedTarget = this;\n self.show();\n}\n\n/**\n * Executes when user interacts with the toast without closing it,\n * usually by hovering or focusing it.\n *\n * @param e the `Toast` instance\n */\nconst interactiveToastHandler = (e: MouseEvent) => {\n const element = e.target;\n const self = getToastInstance(element);\n const { type, relatedTarget } = e;\n\n // istanbul ignore if @preserve: a solid filter is required\n if (\n !self || element === relatedTarget ||\n element.contains(relatedTarget as Node)\n ) return;\n\n if ([mouseenterEvent, focusinEvent].includes(type)) {\n Timer.clear(element, toastString);\n } else {\n Timer.set(element, () => self.hide(), self.options.delay, toastString);\n }\n};\n\n// TOAST DEFINITION\n// ================\n/** Creates a new `Toast` instance. */\nexport default class Toast extends BaseComponent {\n static selector = toastSelector;\n static init = toastInitCallback;\n static getInstance = getToastInstance;\n declare element: HTMLElement;\n declare options: ToastOptions;\n declare dismiss: HTMLElement | null;\n declare triggers: HTMLElement[];\n declare relatedTarget: HTMLElement | null;\n\n /**\n * @param target the target `.toast` element\n * @param config the instance options\n */\n constructor(target: Element | string, config?: Partial) {\n super(target, config);\n const { element, options } = this;\n\n // set fadeClass, the options.animation will override the markup\n if (options.animation && !hasClass(element, fadeClass)) {\n addClass(element, fadeClass);\n } else if (!options.animation && hasClass(element, fadeClass)) {\n removeClass(element, fadeClass);\n }\n\n // dismiss button\n this.dismiss = querySelector(toastDismissSelector, element);\n\n // toast can have multiple triggering elements\n this.triggers = [\n ...querySelectorAll(\n toastToggleSelector,\n getDocument(element),\n ),\n ].filter(\n (btn) => getTargetElement(btn) === element,\n );\n\n // add event listener\n this._toggleEventListeners(true);\n }\n /**\n * Returns component name string.\n */\n get name() {\n return toastComponent;\n }\n /**\n * Returns component default options.\n */\n get defaults() {\n return toastDefaults;\n }\n /**\n * Returns *true* when toast is visible.\n */\n get isShown() {\n return hasClass(this.element, showClass);\n }\n\n // TOAST PUBLIC METHODS\n // ====================\n /** Shows the toast. */\n show = () => {\n const { element, isShown } = this;\n\n // istanbul ignore if @preserve\n if (!element || isShown) return;\n\n dispatchEvent(element, showToastEvent);\n if (!showToastEvent.defaultPrevented) showToast(this);\n };\n\n /** Hides the toast. */\n hide = () => {\n const { element, isShown } = this;\n\n // istanbul ignore if @preserve\n if (!element || !isShown) return;\n\n dispatchEvent(element, hideToastEvent);\n if (!hideToastEvent.defaultPrevented) hideToast(this);\n };\n\n /**\n * Toggles on/off the `click` event listener.\n *\n * @param add when `true`, it will add the listener\n */\n _toggleEventListeners = (add?: boolean) => {\n const action = add ? addListener : removeListener;\n const { element, triggers, dismiss, options, hide } = this;\n\n // istanbul ignore else @preserve\n if (dismiss) {\n action(dismiss, mouseclickEvent, hide);\n }\n\n // istanbul ignore else @preserve\n if (options.autohide) {\n [focusinEvent, focusoutEvent, mouseenterEvent, mouseleaveEvent].forEach(\n (e) => action(element, e, interactiveToastHandler),\n );\n }\n // istanbul ignore else @preserve\n if (triggers.length) {\n triggers.forEach((btn) => {\n action(btn, mouseclickEvent, toastClickHandler);\n });\n }\n };\n\n /** Removes the `Toast` component from the target element. */\n dispose() {\n const { element, isShown } = this;\n this._toggleEventListeners();\n Timer.clear(element, toastString);\n\n if (isShown) removeClass(element, showClass);\n\n super.dispose();\n }\n}\n","import { Data, getElementsByTagName, matches } from \"@thednp/shorty\";\n\nimport { addListener } from \"@thednp/event-listener\";\n\nimport Alert from \"../components/alert\";\nimport Button from \"../components/button\";\nimport Carousel from \"../components/carousel\";\nimport Collapse from \"../components/collapse\";\nimport Dropdown from \"../components/dropdown\";\nimport Modal from \"../components/modal\";\nimport Offcanvas from \"../components/offcanvas\";\nimport Popover from \"../components/popover\";\nimport ScrollSpy from \"../components/scrollspy\";\nimport Tab from \"../components/tab\";\nimport Toast from \"../components/toast\";\nimport Tooltip from \"../components/tooltip\";\n\nconst componentsList = new Map<\n string,\n | typeof Alert\n | typeof Button\n | typeof Carousel\n | typeof Collapse\n | typeof Dropdown\n | typeof Modal\n | typeof Offcanvas\n | typeof Popover\n | typeof ScrollSpy\n | typeof Tab\n | typeof Toast\n | typeof Tooltip\n>();\n\ntype Component =\n | Alert\n | Button\n | Carousel\n | Collapse\n | Dropdown\n | Modal\n | Offcanvas\n | Popover\n | ScrollSpy\n | Tab\n | Toast\n | Tooltip;\n\n[\n Alert,\n Button,\n Carousel,\n Collapse,\n Dropdown,\n Modal,\n Offcanvas,\n Popover,\n ScrollSpy,\n Tab,\n Toast,\n Tooltip,\n].forEach((c) => componentsList.set(c.prototype.name, c));\n\n/**\n * Initialize all matched `Element`s for one component.\n *\n * @param callback\n * @param collection\n */\nconst initComponentDataAPI = (\n callback: (el: Element) => Component,\n collection: HTMLCollectionOf | Element[],\n) => {\n [...collection].forEach((x) => callback(x));\n};\n\n/**\n * Remove one component from a target container element or all in the page.\n *\n * @param component the component name\n * @param context parent `Node`\n */\nconst removeComponentDataAPI = (component: string, context: ParentNode) => {\n const compData = Data.getAllFor(component) as Map;\n\n if (compData) {\n [...compData].forEach(([element, instance]) => {\n if (context.contains(element)) {\n (instance as T & { dispose: () => void }).dispose();\n }\n });\n }\n};\n\n/**\n * Initialize all BSN components for a target container.\n *\n * @param context parent `Node`\n */\nexport const initCallback = (context?: ParentNode) => {\n const lookUp = context && context.nodeName ? context : document;\n const elemCollection = [...getElementsByTagName(\"*\", lookUp)];\n\n componentsList.forEach((cs) => {\n const { init, selector } = cs;\n initComponentDataAPI(\n init,\n elemCollection.filter((item) => matches(item, selector)),\n );\n });\n};\n\n/**\n * Remove all BSN components for a target container.\n *\n * @param context parent `Node`\n */\nexport const removeDataAPI = (context?: ParentNode) => {\n const lookUp = context && context.nodeName ? context : document;\n\n componentsList.forEach((comp) => {\n removeComponentDataAPI(comp.prototype.name, lookUp);\n });\n};\n\n// Bulk initialize all components\nif (document.body) initCallback();\nelse {\n addListener(document, \"DOMContentLoaded\", () => initCallback(), {\n once: true,\n });\n}\n"],"names":["Me","De","$","ze","Ie","Pe","st","rt","ct","lt","ft","gt","vt","Et","ht","yt","Dt","Ot","xt","Wt","Re","qt","en","nn","on","sn","fn","_t","$t","M","W","On","t","e","Yt","R","n","o","s","Q","j","ee","Wn","Qn","Kn","qn","Gn","v","u","i","E","L","Xn","I","N","K","q","d","C","ne","G","f","ce","ae","no","r","a","l","ro","P","S","ao","p","c","g","A","uo","po","go","mo","vo","O","ie","m","bo","Eo","ue","x","le","de","yo","b","y","wo","w","So","pe","k","ge","me","ve","he","No","B","V","h","ye","we","To","Lo","Fo","Bo","Se","Ho","ke","Wo","Ro","fadeClass","showClass","dataBsDismiss","alertString","alertComponent","isDisabled","target","hasClass","getAttribute","Version","BaseComponent","config","element","isElement","isString","querySelector","prevInstance","Data","ObjectKeys","normalizeOptions","prop","alertSelector","alertDismissSelector","getAlertInstance","getInstance","alertInitCallback","Alert","closeAlertEvent","createCustomEvent","closedAlertEvent","alertTransitionEnd","self","dispatchEvent","dismiss","removeClass","emulateTransitionEnd","add","action","addListener","removeListener","close","mouseclickEvent","activeClass","dataBsToggle","buttonString","buttonComponent","buttonSelector","getButtonInstance","buttonInitCallback","Button","setAttribute","ariaPressed","isActive","addClass","dataBsTarget","carouselString","carouselComponent","dataBsParent","dataBsContainer","getTargetElement","targetAttr","doc","getDocument","att","attValue","closest","carouselSelector","carouselItem","dataBsSlideTo","dataBsSlide","pausedClass","carouselDefaults","getCarouselInstance","carouselInitCallback","Carousel","startX","currentX","endX","carouselSlideEvent","carouselSlidEvent","carouselTransitionEndHandler","index","direction","slides","options","activeItem","getActiveIndex","orientation","directionClass","Timer","carouselPauseHandler","carouselResumeHandler","carouselIndicatorHandler","newIndex","carouselControlsHandler","carouselKeyHandler","code","querySelectorAll","isElementInScrollRange","RTL","isRTL","keyArrowRight","keyArrowLeft","carouselDragHandler","carouselPointerDownHandler","controls","indicators","el","toggleCarouselTouchHandlers","carouselPointerMoveHandler","carouselPointerUpHandler","activateCarouselIndicator","pointermoveEvent","passiveHandler","pointerupEvent","getElementsByClassName","activeIndex","transitionItem","matches","ar","isPaused","idx","next","eventProperties","ObjectAssign","getElementTransitionDuration","reflow","touch","pause","interval","keyboard","mouseenterEvent","mouseleaveEvent","pointerdownEvent","touchstartEvent","dragstartEvent","arrow","indicator","keydownEvent","isAnimating","clone","collapsingClass","collapseString","collapseComponent","collapseSelector","collapseToggleSelector","collapseDefaults","getCollapseInstance","collapseInitCallback","Collapse","showCollapseEvent","shownCollapseEvent","hideCollapseEvent","hiddenCollapseEvent","expandCollapse","parent","triggers","noop","setElementStyle","btn","ariaExpanded","collapseContent","collapseClickHandler","trigger","isHTMLElement","activeCollapse","activeCollapseInstance","_","dropdownMenuClasses","dropdownComponent","dropdownMenuClass","isEmptyAnchor","parentAnchor","hasAttribute","dropdownString","dropupString","dropstartString","dropendString","dropdownClasses","dropdownSelector","getDropdownInstance","dropdownInitCallback","Dropdown","dropdownMenuEndClass","verticalClass","horizontalClass","menuFocusTags","dropdownDefaults","showDropdownEvent","shownDropdownEvent","hideDropdownEvent","hiddenDropdownEvent","updatedDropdownEvent","styleDropdown","menu","parentElement","offset","getElementStyle","menuEnd","style","positionClass","dropdownMargin","dropdownPosition","menuWidth","menuHeight","clientWidth","clientHeight","getDocumentElement","targetLeft","targetTop","targetWidth","targetHeight","getBoundingClientRect","leftFullExceed","rightFullExceed","bottomExceed","bottomFullExceed","topExceed","leftExceed","rightExceed","posAjust","margins","getMenuItems","firstElementChild","toggleDropdownDismiss","dropdownDismissHandler","focusEvent","dropdownPreventScroll","keyupEvent","dropdownKeyHandler","getCurrentOpenDropdown","currentParent","type","isForm","mousedownEvent","dropdownClickHandler","keyArrowDown","keyArrowUp","activeElement","open","menuItems","focus","keyEscape","PositionObserver","currentElement","currentInstance","modalString","modalComponent","offcanvasComponent","fixedTopClass","fixedBottomClass","stickyTopClass","positionStickyClass","getFixedItems","resetScrollbar","bd","getDocumentBody","fixedItems","fixed","measureScrollbar","innerWidth","getWindow","setScrollbar","overflow","bodyPad","sbWidth","itemPadValue","itemMValue","offcanvasString","popupContainer","createElement","appendPopup","customContainer","containerIsBody","isNode","lookup","BODY","removePopup","hasPopup","backdropString","modalBackdropClass","offcanvasBackdropClass","modalActiveSelector","offcanvasActiveSelector","overlay","getCurrentOpen","toggleOverlayType","isModal","targetClass","appendOverlay","hasFade","showOverlay","hideOverlay","removeOverlay","isVisible","modalSelector","modalToggleSelector","modalDismissSelector","modalStaticClass","modalDefaults","getModalInstance","modalInitCallback","Modal","showModalEvent","shownModalEvent","hideModalEvent","hiddenModalEvent","setModalScrollbar","scrollbarWidth","scrollHeight","modalHeight","modalScrollHeight","modalOverflow","padStyle","toggleModalDismiss","modalDismissHandler","modalKeyHandler","afterModalHide","relatedTarget","focusElement","toggleFocusTrap","afterModalShow","beforeModalShow","removeAttribute","ariaHidden","ariaModal","beforeModalHide","modalClickHandler","currentTarget","isStatic","modalDialog","backdrop","selectedText","targetInsideDialog","staticTransitionEnd","duration","overlayDelay","currentOpen","that","callback","offcanvasSelector","offcanvasToggleSelector","offcanvasDismissSelector","offcanvasTogglingClass","offcanvasDefaults","getOffcanvasInstance","offcanvasInitCallback","Offcanvas","showOffcanvasEvent","shownOffcanvasEvent","hideOffcanvasEvent","hiddenOffcanvasEvent","setOffCanvasScrollbar","toggleOffCanvasDismiss","offcanvasKeyDismissHandler","offcanvasDismissHandler","beforeOffcanvasShow","showOffcanvasComplete","beforeOffcanvasHide","hideOffcanvasComplete","offcanvasTriggerHandler","offCanvasDismiss","selection","visibleTrigger","isOpen","popoverString","popoverComponent","tooltipString","getTipTemplate","tipType","isTooltip","bodyClass","header","body","tipClassPositions","styleTip","tipClasses","tooltip","container","offsetParent","scrollLeft","scrollTop","getNodeScroll","tipWidth","tipHeight","htmlcw","htmlch","htmlow","placement","parentCWidth","parentOWidth","fixedParent","leftBoundry","rightBoundry","observerEntry","elemWidth","elemHeight","elemRectLeft","elemRectRight","elemRectTop","elemOffsetLeft","elemOffsetTop","getRectRelativeToOffsetParent","topPosition","bottomPosition","leftPosition","rightPosition","arrowTop","arrowLeft","arrowRight","arrowWidth","arrowHeight","arrowAdjust","horizontals","verticals","updatedTooltipEvent","toLowerCase","tooltipDefaults","dataOriginalTitle","tooltipComponent","setHtml","content","sanitizeFn","dirty","isFunction","tempDocument","isNodeList","isArray","createTip","id","title","template","animation","customClass","dismissible","btnClose","tipString","tipPositions","titleParts","contentParts","placementClass","tooltipTemplate","htmlMarkup","tooltipHeader","tooltipBody","tempTitle","tempContent","tempBtn","getElementContainer","majorBlockTags","containers","parentNode","getParentNode","isShadowRoot","isTableElement","tooltipSelector","titleAttr","getTooltipInstance","tooltipInitCallback","Tooltip","removeTooltip","ariaDescribedBy","hasTip","disposeTooltipComplete","toggleTooltipTitle","toggleTooltipAction","tooltipShownAction","shownTooltipEvent","tooltipHiddenAction","hiddenTooltipEvent","toggleTooltipOpenHandlers","parentModal","parentOffcanvas","titleAtt","tipComponent","elem","getUID","position","outTimer","showTooltipEvent","delay","hideTooltipEvent","enabled","tr","mousehoverEvent","focusinEvent","focusoutEvent","isApple","popoverSelector","popoverDefaults","getPopoverInstance","popoverInitCallback","Popover","scrollspyString","scrollspyComponent","scrollspySelector","scrollSpyAnchorSelector","scrollspyDefaults","getScrollSpyInstance","scrollspyInitCallback","ScrollSpy","activateScrollSpy","updateSpyTargets","_itemsLength","_observables","links","getElementsByTagName","link","hash","targetItem","clear","item","activate","parentItem","parentLink","getOffset","scrollTarget","spyTarget","_activeItem","entries","newActiveItem","firstOffset","offsetTop","nextTarget","nextOffsetTop","getElementById","_observer","_scrollTo","tabString","tabComponent","tabSelector","getTabInstance","tabInitCallback","Tab","showTabEvent","shownTabEvent","hideTabEvent","hiddenTabEvent","tabPrivate","triggerTabEnd","tabContent","nav","triggerTabShow","nextContent","tab","currentHeight","nextHeight","triggerTabHide","getActiveTab","activeTabs","getParentDropdown","dropdown","tabClickHandler","firstTab","firstTabContent","ariaSelected","activeDropdown","toggleTab","toastString","toastComponent","toastSelector","toastDismissSelector","toastToggleSelector","showingClass","hideClass","toastDefaults","getToastInstance","toastInitCallback","Toast","showToastEvent","shownToastEvent","hideToastEvent","hiddenToastEvent","showToastComplete","hideToastComplete","hideToast","showToast","toastClickHandler","interactiveToastHandler","isShown","hide","componentsList","initComponentDataAPI","collection","removeComponentDataAPI","component","context","compData","instance","initCallback","lookUp","elemCollection","cs","init","selector","removeDataAPI","comp"],"mappings":"iCAAK,MAA6DA,GAAK,mBAAoBC,GAAK,gBAAuCC,GAAI,cAA0DC,GAAK,aAAcC,GAAK,eAAgBC,GAAK,gBAAuPC,GAAK,QAASC,GAAK,UAAWC,GAAK,WAA0EC,GAAK,UAA4BC,GAAK,QAAsBC,EAAK,QAA0BC,GAAK,YAA6BC,GAAK,QAASC,GAAK,aAAcC,GAAK,aAAmKC,GAAK,cAAoCC,GAAK,cAAeC,GAAK,YAAsJC,GAAK,aAmDzmCC,GAAK,YAUuBC,GAAK,oFAo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at end of file diff --git a/dist/bootstrap-native.mjs b/dist/bootstrap-native.mjs index 2653b19e..68db9555 100644 --- a/dist/bootstrap-native.mjs +++ b/dist/bootstrap-native.mjs @@ -212,7 +212,7 @@ const zt = /* @__PURE__ */ new Map(), Ln = (e, t) => { On, c ); -}, O = "fade", p = "show", Se = "data-bs-dismiss", _e = "alert", Nn = "Alert", nt = (e) => h(e, "disabled") || U(e, "disabled") === "true", li = "5.1.0", di = li; +}, O = "fade", p = "show", Se = "data-bs-dismiss", _e = "alert", Nn = "Alert", nt = (e) => h(e, "disabled") || U(e, "disabled") === "true", li = "5.1.1", di = li; class st { constructor(t, s) { let n; @@ -586,7 +586,7 @@ class qn extends st { } const Mi = (e) => e != null && typeof e == "object" || !1, Bi = (e) => Mi(e) && typeof e.nodeType == "number" && [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11].some( (t) => e.nodeType === t -) || !1, Ws = (e) => Bi(e) && e.nodeType === 1 || !1, Ri = (e) => typeof e == "function" || !1, Wi = "1.0.2", Fs = "PositionObserver Error"; +) || !1, Ws = (e) => Bi(e) && e.nodeType === 1 || !1, Ri = (e) => typeof e == "function" || !1, Wi = "1.0.4", Fs = "PositionObserver Error"; class fs { entries; static version = Wi; diff --git a/dist/bootstrap-native.mjs.map b/dist/bootstrap-native.mjs.map index a7ef5c2f..2fb810ab 100644 --- a/dist/bootstrap-native.mjs.map +++ b/dist/bootstrap-native.mjs.map @@ -1 +1 @@ -{"version":3,"file":"bootstrap-native.mjs","sources":["../node_modules/.pnpm/@thednp+shorty@2.0.8/node_modules/@thednp/shorty/dist/shorty.mjs","../node_modules/.pnpm/@thednp+event-listener@2.0.8/node_modules/@thednp/event-listener/dist/event-listener.mjs","../src/strings/fadeClass.ts","../src/strings/showClass.ts","../src/strings/dataBsDismiss.ts","../src/strings/alertString.ts","../src/strings/alertComponent.ts","../src/util/isDisabled.ts","../src/version.ts","../src/components/base-component.ts","../src/components/alert.ts","../src/strings/activeClass.ts","../src/strings/dataBsToggle.ts","../src/strings/buttonString.ts","../src/strings/buttonComponent.ts","../src/components/button.ts","../src/strings/dataBsTarget.ts","../src/strings/carouselString.ts","../src/strings/carouselComponent.ts","../src/strings/dataBsParent.ts","../src/strings/dataBsContainer.ts","../src/util/getTargetElement.ts","../src/components/carousel.ts","../src/strings/collapsingClass.ts","../src/strings/collapseString.ts","../src/strings/collapseComponent.ts","../src/components/collapse.ts","../node_modules/.pnpm/@thednp+position-observer@1.0.2/node_modules/@thednp/position-observer/dist/index.mjs","../src/strings/dropdownClasses.ts","../src/strings/dropdownComponent.ts","../src/strings/dropdownMenuClass.ts","../src/util/isEmptyAnchor.ts","../src/components/dropdown.ts","../src/strings/modalString.ts","../src/strings/modalComponent.ts","../src/strings/offcanvasComponent.ts","../src/strings/fixedTopClass.ts","../src/strings/fixedBottomClass.ts","../src/strings/stickyTopClass.ts","../src/strings/positionStickyClass.ts","../src/util/scrollbar.ts","../src/strings/offcanvasString.ts","../src/util/popupContainer.ts","../src/util/backdrop.ts","../src/util/isVisible.ts","../src/components/modal.ts","../src/components/offcanvas.ts","../src/strings/popoverString.ts","../src/strings/popoverComponent.ts","../src/strings/tooltipString.ts","../src/util/getTipTemplate.ts","../src/util/tipClassPositions.ts","../src/util/styleTip.ts","../src/util/tooltipDefaults.ts","../src/strings/dataOriginalTitle.ts","../src/strings/tooltipComponent.ts","../src/util/setHtml.ts","../src/util/createTip.ts","../src/util/getElementContainer.ts","../src/components/tooltip.ts","../src/components/popover.ts","../src/strings/scrollspyString.ts","../src/strings/scrollspyComponent.ts","../src/components/scrollspy.ts","../src/strings/tabString.ts","../src/strings/tabComponent.ts","../src/components/tab.ts","../src/strings/toastString.ts","../src/strings/toastComponent.ts","../src/components/toast.ts","../src/util/init.ts"],"sourcesContent":["const Ne = \"2.0.8\", Ce = \"aria-checked\", Te = \"aria-description\", Me = \"aria-describedby\", De = \"aria-expanded\", Le = \"aria-haspopup\", $ = \"aria-hidden\", Oe = \"aria-label\", xe = \"aria-labelledby\", ze = \"aria-modal\", Ie = \"aria-pressed\", Pe = \"aria-selected\", Fe = \"aria-valuemin\", Be = \"aria-valuemax\", Ve = \"aria-valuenow\", He = \"aria-valuetext\", J = \"abort\", X = \"beforeunload\", Y = \"blur\", tt = \"change\", et = \"contextmenu\", H = \"DOMContentLoaded\", nt = \"DOMMouseScroll\", ot = \"error\", st = \"focus\", rt = \"focusin\", ct = \"focusout\", at = \"gesturechange\", it = \"gestureend\", ut = \"gesturestart\", lt = \"keydown\", dt = \"keypress\", ft = \"keyup\", pt = \"load\", gt = \"click\", mt = \"dblclick\", vt = \"mousedown\", bt = \"mouseup\", Et = \"hover\", ht = \"mouseenter\", yt = \"mouseleave\", wt = \"mousein\", At = \"mouseout\", St = \"mouseover\", kt = \"mousemove\", Nt = \"mousewheel\", Ct = \"move\", Tt = \"orientationchange\", Mt = \"pointercancel\", Dt = \"pointerdown\", Lt = \"pointerleave\", Ot = \"pointermove\", xt = \"pointerup\", zt = \"readystatechange\", It = \"reset\", Pt = \"resize\", Ft = \"select\", Bt = \"selectend\", Vt = \"selectstart\", Ht = \"scroll\", Ut = \"submit\", Wt = \"touchstart\", Rt = \"touchmove\", Qt = \"touchcancel\", jt = \"touchend\", Kt = \"unload\", Ue = {\n DOMContentLoaded: H,\n DOMMouseScroll: nt,\n abort: J,\n beforeunload: X,\n blur: Y,\n change: tt,\n click: gt,\n contextmenu: et,\n dblclick: mt,\n error: ot,\n focus: st,\n focusin: rt,\n focusout: ct,\n gesturechange: at,\n gestureend: it,\n gesturestart: ut,\n hover: Et,\n keydown: lt,\n keypress: dt,\n keyup: ft,\n load: pt,\n mousedown: vt,\n mousemove: kt,\n mousein: wt,\n mouseout: At,\n mouseenter: ht,\n mouseleave: yt,\n mouseover: St,\n mouseup: bt,\n mousewheel: Nt,\n move: Ct,\n orientationchange: Tt,\n pointercancel: Mt,\n pointerdown: Dt,\n pointerleave: Lt,\n pointermove: Ot,\n pointerup: xt,\n readystatechange: zt,\n reset: It,\n resize: Pt,\n scroll: Ht,\n select: Ft,\n selectend: Bt,\n selectstart: Vt,\n submit: Ut,\n touchcancel: Qt,\n touchend: jt,\n touchmove: Rt,\n touchstart: Wt,\n unload: Kt\n}, We = \"drag\", Re = \"dragstart\", Qe = \"dragenter\", je = \"dragleave\", Ke = \"dragover\", qe = \"dragend\", Ge = \"loadstart\", Ze = {\n start: \"mousedown\",\n end: \"mouseup\",\n move: \"mousemove\",\n cancel: \"mouseleave\"\n}, _e = { down: \"mousedown\", up: \"mouseup\" }, $e = \"onmouseleave\" in document ? [\"mouseenter\", \"mouseleave\"] : [\"mouseover\", \"mouseout\"], Je = {\n start: \"touchstart\",\n end: \"touchend\",\n move: \"touchmove\",\n cancel: \"touchcancel\"\n}, Xe = { in: \"focusin\", out: \"focusout\" }, qt = 'a[href], button, input, textarea, select, details, [tabindex]:not([tabindex=\"-1\"]', Ye = {\n Backspace: \"Backspace\",\n Tab: \"Tab\",\n Enter: \"Enter\",\n Shift: \"Shift\",\n Control: \"Control\",\n Alt: \"Alt\",\n Pause: \"Pause\",\n CapsLock: \"CapsLock\",\n Escape: \"Escape\",\n Scape: \"Space\",\n ArrowLeft: \"ArrowLeft\",\n ArrowUp: \"ArrowUp\",\n ArrowRight: \"ArrowRight\",\n ArrowDown: \"ArrowDown\",\n Insert: \"Insert\",\n Delete: \"Delete\",\n Meta: \"Meta\",\n ContextMenu: \"ContextMenu\",\n ScrollLock: \"ScrollLock\"\n}, tn = \"Alt\", en = \"ArrowDown\", nn = \"ArrowUp\", on = \"ArrowLeft\", sn = \"ArrowRight\", rn = \"Backspace\", cn = \"CapsLock\", an = \"Control\", un = \"Delete\", ln = \"Enter\", dn = \"NumpadEnter\", fn = \"Escape\", pn = \"Insert\", gn = \"Meta\", mn = \"Pause\", vn = \"ScrollLock\", bn = \"Shift\", En = \"Space\", hn = \"Tab\", Gt = \"animationDuration\", Zt = \"animationDelay\", U = \"animationName\", T = \"animationend\", _t = \"transitionDuration\", $t = \"transitionDelay\", M = \"transitionend\", W = \"transitionProperty\", yn = \"addEventListener\", wn = \"removeEventListener\", An = {\n linear: \"linear\",\n easingSinusoidalIn: \"cubic-bezier(0.47,0,0.745,0.715)\",\n easingSinusoidalOut: \"cubic-bezier(0.39,0.575,0.565,1)\",\n easingSinusoidalInOut: \"cubic-bezier(0.445,0.05,0.55,0.95)\",\n easingQuadraticIn: \"cubic-bezier(0.550,0.085,0.680,0.530)\",\n easingQuadraticOut: \"cubic-bezier(0.250,0.460,0.450,0.940)\",\n easingQuadraticInOut: \"cubic-bezier(0.455,0.030,0.515,0.955)\",\n easingCubicIn: \"cubic-bezier(0.55,0.055,0.675,0.19)\",\n easingCubicOut: \"cubic-bezier(0.215,0.61,0.355,1)\",\n easingCubicInOut: \"cubic-bezier(0.645,0.045,0.355,1)\",\n easingQuarticIn: \"cubic-bezier(0.895,0.03,0.685,0.22)\",\n easingQuarticOut: \"cubic-bezier(0.165,0.84,0.44,1)\",\n easingQuarticInOut: \"cubic-bezier(0.77,0,0.175,1)\",\n easingQuinticIn: \"cubic-bezier(0.755,0.05,0.855,0.06)\",\n easingQuinticOut: \"cubic-bezier(0.23,1,0.32,1)\",\n easingQuinticInOut: \"cubic-bezier(0.86,0,0.07,1)\",\n easingExponentialIn: \"cubic-bezier(0.95,0.05,0.795,0.035)\",\n easingExponentialOut: \"cubic-bezier(0.19,1,0.22,1)\",\n easingExponentialInOut: \"cubic-bezier(1,0,0,1)\",\n easingCircularIn: \"cubic-bezier(0.6,0.04,0.98,0.335)\",\n easingCircularOut: \"cubic-bezier(0.075,0.82,0.165,1)\",\n easingCircularInOut: \"cubic-bezier(0.785,0.135,0.15,0.86)\",\n easingBackIn: \"cubic-bezier(0.6,-0.28,0.735,0.045)\",\n easingBackOut: \"cubic-bezier(0.175,0.885,0.32,1.275)\",\n easingBackInOut: \"cubic-bezier(0.68,-0.55,0.265,1.55)\"\n}, Sn = \"offsetHeight\", kn = \"offsetWidth\", Nn = \"scrollHeight\", Cn = \"scrollWidth\", Tn = \"tabindex\", Mn = navigator.userAgentData, { userAgent: Jt } = navigator, Dn = Jt, Ln = () => {\n const t = /iPhone|iPad|iPod|Android/i;\n return navigator?.userAgentData?.brands.some(\n (e) => t.test(e.brand)\n ) || t.test(navigator?.userAgent) || !1;\n}, On = () => {\n const t = /(iPhone|iPod|iPad)/;\n return navigator?.userAgentData?.brands.some(\n (e) => t.test(e.brand)\n ) || t.test(\n navigator?.userAgent\n ) || !1;\n}, xn = () => navigator?.userAgent?.includes(\"Firefox\") || !1, Xt = () => typeof CSS > \"u\" || !CSS.supports ? !1 : CSS.supports(\"-webkit-backdrop-filter\", \"none\"), zn = () => [\"webkitPerspective\", \"perspective\"].some((t) => t in document.head.style), Yt = () => {\n}, R = (t, e, n, o) => {\n const s = o || !1;\n t.addEventListener(\n e,\n n,\n s\n );\n}, Q = (t, e, n, o) => {\n const s = o || !1;\n t.removeEventListener(\n e,\n n,\n s\n );\n}, te = (t, e, n, o) => {\n const s = (r) => {\n (r.target === t || r.currentTarget === t) && (n.apply(t, [r]), Q(t, e, s, o));\n };\n R(t, e, s, o);\n}, In = () => {\n let t = !1;\n try {\n const e = Object.defineProperty({}, \"passive\", {\n get: () => (t = !0, t)\n });\n te(document, H, Yt, e);\n } catch {\n }\n return t;\n}, Pn = () => [\"webkitTransform\", \"transform\"].some((t) => t in document.head.style), Fn = () => \"ontouchstart\" in window || \"msMaxTouchPoints\" in navigator, Bn = () => [\"webkitAnimation\", \"animation\"].some((t) => t in document.head.style), Vn = () => [\"webkitTransition\", \"transition\"].some((t) => t in document.head.style), j = (t, e) => t.getAttribute(e), Hn = (t, e, n) => e.getAttributeNS(t, n), ee = (t, e) => t.hasAttribute(e), Un = (t, e, n) => e.hasAttributeNS(t, n), Wn = (t, e, n) => t.setAttribute(e, n), Rn = (t, e, n, o) => e.setAttributeNS(t, n, o), Qn = (t, e) => t.removeAttribute(e), jn = (t, e, n) => e.removeAttributeNS(t, n), Kn = (t, ...e) => {\n t.classList.add(...e);\n}, qn = (t, ...e) => {\n t.classList.remove(...e);\n}, Gn = (t, e) => t.classList.contains(e), { body: Zn } = document, { documentElement: _n } = document, { head: $n } = document, Jn = (t) => Array.from(t), v = (t) => t != null && typeof t == \"object\" || !1, u = (t) => v(t) && typeof t.nodeType == \"number\" && [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11].some(\n (e) => t.nodeType === e\n) || !1, i = (t) => u(t) && t.nodeType === 1 || !1, E = /* @__PURE__ */ new Map(), L = {\n data: E,\n set: (t, e, n) => {\n if (!i(t)) return;\n E.has(e) || E.set(e, /* @__PURE__ */ new Map()), E.get(e).set(t, n);\n },\n getAllFor: (t) => E.get(t) || null,\n get: (t, e) => {\n if (!i(t) || !e) return null;\n const n = L.getAllFor(e);\n return t && n && n.get(t) || null;\n },\n remove: (t, e) => {\n const n = L.getAllFor(e);\n !n || !i(t) || (n.delete(t), n.size === 0 && E.delete(e));\n }\n}, Xn = (t, e) => L.get(t, e), Yn = (t) => t?.charAt(0).toUpperCase() + t?.slice(1), I = (t) => t?.trim().replace(\n /(?:^\\w|[A-Z]|\\b\\w)/g,\n (e, n) => n === 0 ? e.toLowerCase() : e.toUpperCase()\n).replace(/\\s+/g, \"\"), N = (t) => typeof t == \"string\" || !1, K = (t) => v(t) && t.constructor.name === \"Window\" || !1, q = (t) => u(t) && t.nodeType === 9 || !1, d = (t) => q(t) ? t : u(t) ? t.ownerDocument : K(t) ? t.document : globalThis.document, C = (t, ...e) => Object.assign(t, ...e), ne = (t) => {\n if (!t) return;\n if (N(t))\n return d().createElement(t);\n const { tagName: e } = t, n = ne(e);\n if (!n) return;\n const o = { ...t };\n return delete o.tagName, C(n, o);\n}, oe = (t, e) => {\n if (!t || !e) return;\n if (N(e))\n return d().createElementNS(t, e);\n const { tagName: n } = e, o = oe(t, n);\n if (!o) return;\n const s = { ...e };\n return delete s.tagName, C(o, s);\n}, G = (t, e) => t.dispatchEvent(e), to = (t, e, n) => n.indexOf(t) === e, f = (t, e, n) => {\n const o = getComputedStyle(t, n), s = e.replace(\"webkit\", \"Webkit\").replace(/([A-Z])/g, \"-$1\").toLowerCase();\n return o.getPropertyValue(s);\n}, se = (t) => {\n const e = f(t, U), n = f(t, Zt), o = n.includes(\"ms\") ? 1 : 1e3, s = e && e !== \"none\" ? parseFloat(n) * o : 0;\n return Number.isNaN(s) ? 0 : s;\n}, re = (t) => {\n const e = f(t, U), n = f(t, Gt), o = n.includes(\"ms\") ? 1 : 1e3, s = e && e !== \"none\" ? parseFloat(n) * o : 0;\n return Number.isNaN(s) ? 0 : s;\n}, eo = (t, e) => {\n let n = 0;\n const o = new Event(T), s = re(t), r = se(t);\n if (s) {\n const a = (l) => {\n l.target === t && (e.apply(t, [l]), t.removeEventListener(T, a), n = 1);\n };\n t.addEventListener(T, a), setTimeout(() => {\n n || G(t, o);\n }, s + r + 17);\n } else\n e.apply(t, [o]);\n}, ce = (t) => {\n const e = f(t, W), n = f(t, $t), o = n.includes(\"ms\") ? 1 : 1e3, s = e && e !== \"none\" ? parseFloat(n) * o : 0;\n return Number.isNaN(s) ? 0 : s;\n}, ae = (t) => {\n const e = f(t, W), n = f(t, _t), o = n.includes(\"ms\") ? 1 : 1e3, s = e && e !== \"none\" ? parseFloat(n) * o : 0;\n return Number.isNaN(s) ? 0 : s;\n}, no = (t, e) => {\n let n = 0;\n const o = new Event(M), s = ae(t), r = ce(t);\n if (s) {\n const a = (l) => {\n l.target === t && (e.apply(t, [l]), t.removeEventListener(M, a), n = 1);\n };\n t.addEventListener(M, a), setTimeout(() => {\n n || G(t, o);\n }, s + r + 17);\n } else\n e.apply(t, [o]);\n}, oo = (t) => Float32Array.from(Array.from(t)), so = (t) => Float64Array.from(Array.from(t)), ro = (t, e) => t.focus(e), co = (t) => t?.trim().replace(/([a-z])([A-Z])/g, \"$1-$2\").replace(/\\s+/g, \"-\").toLowerCase(), P = (t) => [\"true\", !0].includes(t) ? !0 : [\"false\", !1].includes(t) ? !1 : [\"null\", \"\", null, void 0].includes(t) ? null : t !== \"\" && !Number.isNaN(+t) ? +t : t, S = (t) => Object.entries(t), ao = (t, e, n, o) => {\n if (!i(t)) return e;\n const s = { ...n }, r = { ...t.dataset }, a = { ...e }, l = {}, p = \"title\";\n return S(r).forEach(([c, g]) => {\n const A = o && typeof c == \"string\" && c.includes(o) ? I(c.replace(o, \"\")) : I(c);\n l[A] = P(g);\n }), S(s).forEach(([c, g]) => {\n s[c] = P(g);\n }), S(e).forEach(([c, g]) => {\n c in s ? a[c] = s[c] : c in l ? a[c] = l[c] : a[c] = c === p ? j(t, p) : g;\n }), a;\n}, io = (t, e) => v(t) && (Object.hasOwn(t, e) || e in t), uo = (t) => Object.keys(t), lo = (t) => Object.values(t), fo = (t) => Object.fromEntries(t), po = (t, e) => {\n const n = new CustomEvent(t, {\n cancelable: !0,\n bubbles: !0\n });\n return v(e) && C(n, e), n;\n}, go = { passive: !0 }, mo = (t) => t.offsetHeight, vo = (t, e) => {\n S(e).forEach(([n, o]) => {\n if (o && N(n) && n.includes(\"--\"))\n t.style.setProperty(n, o);\n else {\n const s = {};\n s[n] = o, C(t.style, s);\n }\n });\n}, O = (t) => v(t) && t.constructor.name === \"Map\" || !1, ie = (t) => typeof t == \"number\" || !1, m = /* @__PURE__ */ new Map(), bo = {\n set: (t, e, n, o) => {\n i(t) && (o && o.length ? (m.has(t) || m.set(t, /* @__PURE__ */ new Map()), m.get(t).set(o, setTimeout(e, n))) : m.set(t, setTimeout(e, n)));\n },\n get: (t, e) => {\n if (!i(t)) return null;\n const n = m.get(t);\n return e && n && O(n) ? n.get(e) || null : ie(n) ? n : null;\n },\n clear: (t, e) => {\n if (!i(t)) return;\n const n = m.get(t);\n e && e.length && O(n) ? (clearTimeout(n.get(e)), n.delete(e), n.size === 0 && m.delete(t)) : (clearTimeout(n), m.delete(t));\n }\n}, Eo = (t) => t.toLowerCase(), ho = (t) => t.toUpperCase(), ue = (t, e) => (u(e) ? e : d()).querySelectorAll(t), x = /* @__PURE__ */ new Map();\nfunction le(t) {\n const { shiftKey: e, code: n } = t, o = d(this), s = [\n ...ue(qt, this)\n ].filter(\n (l) => !ee(l, \"disabled\") && !j(l, $)\n );\n if (!s.length) return;\n const r = s[0], a = s[s.length - 1];\n n === \"Tab\" && (e && o.activeElement === r ? (a.focus(), t.preventDefault()) : !e && o.activeElement === a && (r.focus(), t.preventDefault()));\n}\nconst de = (t) => x.has(t) === !0, yo = (t) => {\n const e = de(t);\n (e ? Q : R)(t, \"keydown\", le), e ? x.delete(t) : x.set(t, !0);\n}, b = (t) => i(t) && \"offsetWidth\" in t || !1, y = (t, e) => {\n const { width: n, height: o, top: s, right: r, bottom: a, left: l } = t.getBoundingClientRect();\n let p = 1, c = 1;\n if (e && b(t)) {\n const { offsetWidth: g, offsetHeight: A } = t;\n p = g > 0 ? Math.round(n) / g : 1, c = A > 0 ? Math.round(o) / A : 1;\n }\n return {\n width: n / p,\n height: o / c,\n top: s / c,\n right: r / p,\n bottom: a / c,\n left: l / p,\n x: l / p,\n y: s / c\n };\n}, wo = (t) => d(t).body, w = (t) => d(t).documentElement, Ao = (t) => d(t).head, fe = (t) => u(t) ? (t.nodeName || \"\").toLowerCase() : \"#document\", So = (t) => {\n const e = K(t), n = e ? t.scrollX : t.scrollLeft, o = e ? t.scrollY : t.scrollTop;\n return { x: n, y: o };\n}, pe = (t) => u(t) && t.constructor.name === \"ShadowRoot\" || !1, k = (t) => t.nodeName === \"HTML\" ? t : i(t) && t.assignedSlot || u(t) && t.parentNode || pe(t) && t.host || w(t), ge = (t) => t ? q(t) ? t.defaultView : u(t) ? t?.ownerDocument?.defaultView : t : window, me = (t) => u(t) && [\"TABLE\", \"TD\", \"TH\"].includes(t.nodeName) || !1, ve = (t, e) => t.matches(e), D = (t) => f(t, \"position\") === \"static\", be = (t) => f(t, \"position\") === \"fixed\", Z = (t) => [\":popover-open\", \":modal\"].some((e) => {\n try {\n return ve(t, e);\n } catch {\n return !1;\n }\n}), _ = (t) => {\n const e = Xt(), n = i(t) ? getComputedStyle(t) : t;\n return n.transform !== \"none\" || n.perspective !== \"none\" || (n.containerType ? n.containerType !== \"normal\" : !1) || !e && (n.backdropFilter ? n.backdropFilter !== \"none\" : !1) || !e && (n.filter ? n.filter !== \"none\" : !1) || [\"transform\", \"perspective\", \"filter\"].some(\n (o) => (n.willChange || \"\").includes(o)\n ) || [\"paint\", \"layout\", \"strict\", \"content\"].some(\n (o) => (n.contain || \"\").includes(o)\n );\n}, Ee = (t) => {\n let e = k(t);\n for (; i(e) && !z(e); ) {\n if (_(e))\n return e;\n if (Z(e))\n return null;\n e = k(e);\n }\n return null;\n}, z = (t) => [\"html\", \"body\", \"#document\"].includes(fe(t)), F = (t) => {\n if (!b(t) || be(t))\n return null;\n let e = t.offsetParent;\n return w(t) === e && (e = e.ownerDocument.body), e;\n}, ko = (t) => {\n const e = ge(t);\n if (!u(t) || Z(t))\n return e;\n if (!b(t)) {\n let o = k(t);\n for (; o && !z(o); ) {\n if (i(o) && !D(o))\n return o;\n o = k(o);\n }\n return e;\n }\n let n = F(t);\n for (; n && me(n) && D(n); )\n n = F(n);\n return n && z(n) && D(n) && !_(n) ? e : n || Ee(t) || e;\n}, he = (t) => {\n if (!b(t)) return !1;\n const { width: e, height: n } = y(t), { offsetWidth: o, offsetHeight: s } = t;\n return Math.round(e) !== o || Math.round(n) !== s;\n}, No = (t, e, n) => {\n const o = b(e), s = y(\n t,\n o && he(e)\n ), r = { x: 0, y: 0 };\n if (o) {\n const a = y(e, !0);\n r.x = a.x + e.clientLeft, r.y = a.y + e.clientTop;\n }\n return {\n x: s.left + n.x - r.x,\n y: s.top + n.y - r.y,\n width: s.width,\n height: s.height\n };\n};\nlet B = 0, V = 0;\nconst h = /* @__PURE__ */ new Map(), ye = (t, e) => {\n let n = e ? B : V;\n if (e) {\n const o = ye(t), s = h.get(o) || /* @__PURE__ */ new Map();\n h.has(o) || h.set(o, s), O(s) && !s.has(e) ? (s.set(e, n), B += 1) : n = s.get(e);\n } else {\n const o = t.id || t;\n h.has(o) ? n = h.get(o) : (h.set(o, n), V += 1);\n }\n return n;\n}, we = (t) => Array.isArray(t) || !1, Co = (t) => u(t) && t.nodeName === \"CANVAS\" || !1, Ae = (t) => b(t) && !!t.shadowRoot || !1, To = (t) => {\n if (!u(t)) return !1;\n const { top: e, bottom: n } = y(t), { clientHeight: o } = w(t);\n return e <= o && n >= 0;\n}, Mo = (t) => {\n if (!i(t)) return !1;\n const { clientWidth: e, clientHeight: n } = w(t), { top: o, left: s, bottom: r, right: a } = y(t, !0);\n return o >= 0 && s >= 0 && r <= n && a <= e;\n}, Do = (t) => we(t) && t.every(i) || !1, Lo = (t) => typeof t == \"function\" || !1, Oo = (t) => v(t) && t.constructor.name === \"HTMLCollection\" || !1, xo = (t) => b(t) && t.tagName === \"IMG\" || !1, zo = (t) => {\n if (!N(t)) return !1;\n try {\n JSON.parse(t);\n } catch {\n return !1;\n }\n return !0;\n}, Io = (t) => v(t) && t.constructor.name === \"WeakMap\" || !1, Po = (t) => u(t) && [\"SVG\", \"Image\", \"Video\", \"Canvas\"].some(\n (e) => t.constructor.name.includes(e)\n) || !1, Fo = (t) => v(t) && t.constructor.name === \"NodeList\" || !1, Bo = (t) => w(t).dir === \"rtl\", Vo = (t) => u(t) && t.constructor.name.includes(\"SVG\") || !1, Se = (t, e) => !t || !e ? null : t.closest(e) || Se(t.getRootNode().host, e) || null, Ho = (t, e) => i(t) ? t : (i(e) ? e : d()).querySelector(t), ke = (t, e) => (u(e) ? e : d()).getElementsByTagName(\n t\n), Uo = (t) => [...ke(\"*\", t)].filter(Ae), Wo = (t, e) => d(e).getElementById(t), Ro = (t, e) => (e && u(e) ? e : d()).getElementsByClassName(\n t\n);\nexport {\n Jn as ArrayFrom,\n H as DOMContentLoadedEvent,\n nt as DOMMouseScrollEvent,\n L as Data,\n oo as Float32ArrayFrom,\n so as Float64ArrayFrom,\n C as ObjectAssign,\n S as ObjectEntries,\n fo as ObjectFromEntries,\n io as ObjectHasOwn,\n uo as ObjectKeys,\n lo as ObjectValues,\n bo as Timer,\n J as abortEvent,\n Kn as addClass,\n yn as addEventListener,\n Zt as animationDelay,\n Gt as animationDuration,\n T as animationEndEvent,\n U as animationName,\n Ce as ariaChecked,\n Me as ariaDescribedBy,\n Te as ariaDescription,\n De as ariaExpanded,\n Le as ariaHasPopup,\n $ as ariaHidden,\n Oe as ariaLabel,\n xe as ariaLabelledBy,\n ze as ariaModal,\n Ie as ariaPressed,\n Pe as ariaSelected,\n Be as ariaValueMax,\n Fe as ariaValueMin,\n Ve as ariaValueNow,\n He as ariaValueText,\n X as beforeunloadEvent,\n An as bezierEasings,\n Y as blurEvent,\n I as camelCase,\n Yn as capitalize,\n tt as changeEvent,\n Se as closest,\n et as contextmenuEvent,\n po as createCustomEvent,\n ne as createElement,\n oe as createElementNS,\n G as dispatchEvent,\n to as distinct,\n Zn as documentBody,\n _n as documentElement,\n $n as documentHead,\n We as dragEvent,\n qe as dragendEvent,\n Qe as dragenterEvent,\n je as dragleaveEvent,\n Ke as dragoverEvent,\n Re as dragstartEvent,\n eo as emulateAnimationEnd,\n no as emulateTransitionEnd,\n ot as errorEvent,\n ro as focus,\n st as focusEvent,\n Xe as focusEvents,\n qt as focusableSelector,\n rt as focusinEvent,\n ct as focusoutEvent,\n at as gesturechangeEvent,\n it as gestureendEvent,\n ut as gesturestartEvent,\n j as getAttribute,\n Hn as getAttributeNS,\n y as getBoundingClientRect,\n Uo as getCustomElements,\n d as getDocument,\n wo as getDocumentBody,\n w as getDocumentElement,\n Ao as getDocumentHead,\n se as getElementAnimationDelay,\n re as getElementAnimationDuration,\n Wo as getElementById,\n f as getElementStyle,\n ce as getElementTransitionDelay,\n ae as getElementTransitionDuration,\n Ro as getElementsByClassName,\n ke as getElementsByTagName,\n Xn as getInstance,\n fe as getNodeName,\n So as getNodeScroll,\n ko as getOffsetParent,\n k as getParentNode,\n No as getRectRelativeToOffsetParent,\n ye as getUID,\n ge as getWindow,\n ee as hasAttribute,\n Un as hasAttributeNS,\n Gn as hasClass,\n de as hasFocusTrap,\n On as isApple,\n we as isArray,\n Co as isCanvas,\n Ae as isCustomElement,\n q as isDocument,\n i as isElement,\n To as isElementInScrollRange,\n Mo as isElementInViewport,\n Do as isElementsArray,\n xn as isFirefox,\n Lo as isFunction,\n Oo as isHTMLCollection,\n b as isHTMLElement,\n xo as isHTMLImageElement,\n zo as isJSON,\n O as isMap,\n Po as isMedia,\n Ln as isMobile,\n u as isNode,\n Fo as isNodeList,\n ie as isNumber,\n v as isObject,\n Bo as isRTL,\n Vo as isSVGElement,\n he as isScaledElement,\n pe as isShadowRoot,\n N as isString,\n me as isTableElement,\n Io as isWeakMap,\n Xt as isWebKit,\n K as isWindow,\n co as kebabCase,\n tn as keyAlt,\n en as keyArrowDown,\n on as keyArrowLeft,\n sn as keyArrowRight,\n nn as keyArrowUp,\n rn as keyBackspace,\n cn as keyCapsLock,\n an as keyControl,\n un as keyDelete,\n ln as keyEnter,\n fn as keyEscape,\n pn as keyInsert,\n gn as keyMeta,\n dn as keyNumpadEnter,\n mn as keyPause,\n vn as keyScrollLock,\n bn as keyShift,\n En as keySpace,\n hn as keyTab,\n Ye as keyboardEventKeys,\n lt as keydownEvent,\n dt as keypressEvent,\n ft as keyupEvent,\n pt as loadEvent,\n Ge as loadstartEvent,\n ve as matches,\n _e as mouseClickEvents,\n $e as mouseHoverEvents,\n Ze as mouseSwipeEvents,\n gt as mouseclickEvent,\n mt as mousedblclickEvent,\n vt as mousedownEvent,\n ht as mouseenterEvent,\n Et as mousehoverEvent,\n wt as mouseinEvent,\n yt as mouseleaveEvent,\n kt as mousemoveEvent,\n At as mouseoutEvent,\n St as mouseoverEvent,\n bt as mouseupEvent,\n Nt as mousewheelEvent,\n Ct as moveEvent,\n Ue as nativeEvents,\n Yt as noop,\n ao as normalizeOptions,\n P as normalizeValue,\n Q as off,\n Sn as offsetHeight,\n kn as offsetWidth,\n R as on,\n te as one,\n Tt as orientationchangeEvent,\n go as passiveHandler,\n Mt as pointercancelEvent,\n Dt as pointerdownEvent,\n Lt as pointerleaveEvent,\n Ot as pointermoveEvent,\n xt as pointerupEvent,\n Ho as querySelector,\n ue as querySelectorAll,\n zt as readystatechangeEvent,\n mo as reflow,\n Qn as removeAttribute,\n jn as removeAttributeNS,\n qn as removeClass,\n wn as removeEventListener,\n It as resetEvent,\n Pt as resizeEvent,\n Ht as scrollEvent,\n Nn as scrollHeight,\n Cn as scrollWidth,\n Ft as selectEvent,\n Bt as selectendEvent,\n Vt as selectstartEvent,\n Wn as setAttribute,\n Rn as setAttributeNS,\n vo as setElementStyle,\n Ut as submitEvent,\n zn as support3DTransform,\n Bn as supportAnimation,\n In as supportPassive,\n Fn as supportTouch,\n Pn as supportTransform,\n Vn as supportTransition,\n Tn as tabindex,\n Eo as toLowerCase,\n ho as toUpperCase,\n yo as toggleFocusTrap,\n Je as touchEvents,\n Qt as touchcancelEvent,\n jt as touchendEvent,\n Rt as touchmoveEvent,\n Wt as touchstartEvent,\n $t as transitionDelay,\n _t as transitionDuration,\n M as transitionEndEvent,\n W as transitionProperty,\n Kt as unloadEvent,\n Dn as userAgent,\n Mn as userAgentData,\n Ne as version\n};\n//# sourceMappingURL=shorty.mjs.map\n","const g = \"2.0.8\", e = {}, f = (t) => {\n const { type: n, currentTarget: c } = t;\n e[n].forEach((a, s) => {\n c === s && a.forEach((o, i) => {\n i.apply(s, [t]), typeof o == \"object\" && o.once && r(s, n, i, o);\n });\n });\n}, E = (t, n, c, a) => {\n e[n] || (e[n] = /* @__PURE__ */ new Map());\n const s = e[n];\n s.has(t) || s.set(t, /* @__PURE__ */ new Map());\n const o = s.get(\n t\n ), { size: i } = o;\n o.set(c, a), i || t.addEventListener(\n n,\n f,\n a\n );\n}, r = (t, n, c, a) => {\n const s = e[n], o = s && s.get(t), i = o && o.get(c), d = i !== void 0 ? i : a;\n o && o.has(c) && o.delete(c), s && (!o || !o.size) && s.delete(t), (!s || !s.size) && delete e[n], (!o || !o.size) && t.removeEventListener(\n n,\n f,\n d\n );\n}, M = E, p = r;\nexport {\n E as addListener,\n f as globalListener,\n p as off,\n M as on,\n e as registry,\n r as removeListener,\n g as version\n};\n//# sourceMappingURL=event-listener.mjs.map\n","/**\n * Global namespace for most components `fade` class.\n */\nconst fadeClass = \"fade\";\nexport default fadeClass;\n","/**\n * Global namespace for most components `show` class.\n */\nconst showClass = \"show\";\nexport default showClass;\n","/**\n * Global namespace for most components `dismiss` option.\n */\nconst dataBsDismiss = \"data-bs-dismiss\";\nexport default dataBsDismiss;\n","/** @type {string} */\nconst alertString = \"alert\";\nexport default alertString;\n","/** @type {string} */\nconst alertComponent = \"Alert\";\nexport default alertComponent;\n","import { getAttribute, hasClass } from \"@thednp/shorty\";\n\n/**\n * Check if interactive element is disabled.\n * @param target either a `',\n});\n\n/**\n * Static method which returns an existing `Popover` instance associated\n * to a target `Element`.\n */\nconst getPopoverInstance = (element: Element) =>\n getInstance(element, popoverComponent);\n\n/**\n * A `Popover` initialization callback.\n */\nconst popoverInitCallback = (element: Element) => new Popover(element);\n\n// POPOVER DEFINITION\n// ==================\n/** Returns a new `Popover` instance. */\nexport default class Popover extends Tooltip {\n static selector = popoverSelector;\n static init = popoverInitCallback;\n static getInstance = getPopoverInstance;\n static styleTip = styleTip;\n declare options: PopoverOptions;\n\n /**\n * @param target the target element\n * @param config the instance options\n */\n constructor(target: Element | string, config?: Partial) {\n super(target, config);\n }\n /**\n * Returns component name string.\n */\n get name() {\n return popoverComponent;\n }\n /**\n * Returns component default options.\n */\n get defaults() {\n return popoverDefaults;\n }\n\n /* extend original `show()` */\n show = () => {\n super.show();\n // btn only exists within dismissible popover\n const { options, btn } = this;\n // istanbul ignore else @preserve\n if (options.dismissible && btn) setTimeout(() => focus(btn), 17);\n };\n}\n","/** @type {string} */\nconst scrollspyString = \"scrollspy\";\nexport default scrollspyString;\n","/** @type {string} */\nconst scrollspyComponent = \"ScrollSpy\";\nexport default scrollspyComponent;\n","/* Native JavaScript for Bootstrap 5 | ScrollSpy\n------------------------------------------------ */\nimport {\n addClass,\n closest,\n createCustomEvent,\n dispatchEvent,\n getAttribute,\n getBoundingClientRect,\n getDocument,\n getDocumentElement,\n getElementById,\n getElementsByTagName,\n getInstance,\n hasClass,\n mouseclickEvent,\n MouseEvent,\n querySelector,\n removeClass,\n} from \"@thednp/shorty\";\n\nimport PositionObserver from \"@thednp/position-observer\";\nimport { addListener, removeListener } from \"@thednp/event-listener\";\n\nimport activeClass from \"~/strings/activeClass\";\nimport scrollspyString from \"~/strings/scrollspyString\";\nimport scrollspyComponent from \"~/strings/scrollspyComponent\";\nimport isDisabled from \"~/util/isDisabled\";\nimport BaseComponent from \"./base-component\";\nimport { ScrollSpyEvent, ScrollSpyOptions } from \"~/interface/scrollspy\";\n\n// SCROLLSPY PRIVATE GC\n// ====================\nconst scrollspySelector = '[data-bs-spy=\"scroll\"]';\nconst scrollSpyAnchorSelector = \"[href]\";\n\nconst scrollspyDefaults: Partial = {\n offset: 10,\n target: undefined,\n};\n\ntype ScrollSpyEventProps = {\n relatedTarget: HTMLElement;\n};\n\n/**\n * Static method which returns an existing `ScrollSpy` instance associated\n * to a target `Element`.\n */\nconst getScrollSpyInstance = (element: Element) =>\n getInstance(element, scrollspyComponent);\n\n/**\n * A `ScrollSpy` initialization callback.\n */\nconst scrollspyInitCallback = (element: Element) => new ScrollSpy(element);\n\n// SCROLLSPY CUSTOM EVENT\n// ======================\nconst activateScrollSpy = createCustomEvent<\n ScrollSpyEventProps,\n ScrollSpyEvent\n>(`activate.bs.${scrollspyString}`);\n\n// SCROLLSPY PRIVATE METHODS\n// =========================\n/**\n * Update the state of all items.\n *\n * @param self the `ScrollSpy` instance\n */\nconst updateSpyTargets = (self: ScrollSpy) => {\n const {\n target,\n _itemsLength,\n _observables,\n } = self;\n\n const links = getElementsByTagName(\"A\", target);\n const doc = getDocument(target);\n\n // only update items once or with each mutation\n // istanbul ignore else @preserve\n if (!links.length || _itemsLength === _observables.size) return;\n // reset arrays & update\n _observables.clear();\n\n Array.from(links).forEach((link) => {\n const hash = getAttribute(link, \"href\")?.slice(1);\n const targetItem = hash?.length ? doc.getElementById(hash) : null;\n\n if (targetItem && !isDisabled(link)) {\n self._observables.set(targetItem, link);\n }\n });\n self._itemsLength = self._observables.size;\n};\n\n/**\n * Clear all items of the target.\n *\n * @param target a single item\n */\nconst clear = (target: Element) => {\n Array.from(getElementsByTagName(\"A\", target)).forEach(\n (item) => {\n if (hasClass(item, activeClass)) removeClass(item, activeClass);\n },\n );\n};\n\n/**\n * Activates a new item.\n *\n * @param self the `ScrollSpy` instance\n * @param item a single item\n */\nconst activate = (self: ScrollSpy, item: HTMLElement) => {\n const { target, element } = self;\n\n // istanbul ignore else @preserve\n clear(target);\n\n self._activeItem = item;\n addClass(item, activeClass);\n\n // activate all parents\n let parentItem = item;\n while (parentItem !== target) {\n parentItem = parentItem.parentElement as HTMLElement;\n if (\n [\"nav\", \"dropdown-menu\", \"list-group\"].some((c) =>\n hasClass(parentItem, c)\n )\n ) {\n const parentLink = parentItem.previousElementSibling as\n | HTMLElement\n | null;\n\n // istanbul ignore else @preserve\n if (parentLink && !hasClass(parentLink, activeClass)) {\n addClass(parentLink, activeClass);\n }\n }\n }\n\n // dispatch\n activateScrollSpy.relatedTarget = item;\n dispatchEvent(element, activateScrollSpy);\n};\n\nconst getOffset = (self: ScrollSpy, target: HTMLElement) => {\n const { scrollTarget, element, options } = self;\n\n return (scrollTarget !== element\n ? getBoundingClientRect(target).top + scrollTarget.scrollTop\n : target.offsetTop) - (options.offset as number || 10);\n};\n\n// SCROLLSPY DEFINITION\n// ====================\n/** Returns a new `ScrollSpy` instance. */\nexport default class ScrollSpy extends BaseComponent {\n static selector = scrollspySelector;\n static init = scrollspyInitCallback;\n static getInstance = getScrollSpyInstance;\n declare element: HTMLElement;\n declare options: ScrollSpyOptions;\n declare target: HTMLElement;\n declare scrollTarget: HTMLElement;\n declare _itemsLength: number;\n declare _activeItem: HTMLElement | null;\n declare _observables: Map;\n declare _observer: PositionObserver; //| IntersectionObserver;\n\n /**\n * @param target the target element\n * @param config the instance options\n */\n constructor(\n target: Element | string,\n config?: Partial,\n ) {\n super(target, config);\n\n // initialization element & options\n const { element, options } = this;\n\n // get target\n const spyTarget = querySelector(\n options.target,\n getDocument(element),\n );\n\n // invalidate\n if (!spyTarget) return;\n this.target = spyTarget;\n\n // set initial state\n this.scrollTarget = element.clientHeight < element.scrollHeight\n ? element\n : getDocumentElement(element);\n this._observables = new Map();\n\n // run an initial burst, we need to know the targets\n this.refresh();\n // updateSpyTargets(this);\n\n // create observer\n this._observer = new PositionObserver(() => {\n requestAnimationFrame(() => this.refresh());\n }, {\n root: this.scrollTarget,\n });\n\n // add event handlers\n this._toggleEventListeners(true);\n }\n\n /* eslint-disable */\n /**\n * Returns component name string.\n */\n get name() {\n return scrollspyComponent;\n }\n /**\n * Returns component default options.\n */\n get defaults() {\n return scrollspyDefaults;\n }\n /* eslint-enable */\n\n // SCROLLSPY PUBLIC METHODS\n // ========================\n /** Updates all items. */\n refresh = () => {\n const { target, scrollTarget } = this;\n // check if target is visible and invalidate\n // istanbul ignore if @preserve\n if (!target || target.offsetHeight === 0) return;\n\n updateSpyTargets(this);\n const { _itemsLength, _observables, _activeItem } = this;\n\n // istanbul ignore if @preserve\n if (!_itemsLength) return;\n const entries = _observables.entries().toArray();\n\n const { scrollTop, scrollHeight, clientHeight } = scrollTarget;\n\n if (scrollTop >= scrollHeight - clientHeight) {\n const newActiveItem = entries[_itemsLength - 1]?.[1];\n\n // istanbul ignore else @preserve\n if (_activeItem !== newActiveItem) activate(this, newActiveItem);\n return;\n }\n\n const firstOffset = entries[0]?.[0]\n ? getOffset(this, entries[0][0])\n : /* istanbul ignore next */ null;\n if (\n firstOffset !== null && scrollTop < firstOffset &&\n firstOffset > 0\n ) {\n this._activeItem = null;\n clear(target);\n return;\n }\n\n for (let i = 0; i < _itemsLength; i += 1) {\n const [targetItem, item] = entries[i];\n const offsetTop = getOffset(this, targetItem);\n const nextTarget = entries[i + 1]?.[0];\n const nextOffsetTop = nextTarget\n ? getOffset(this, nextTarget)\n : /* istanbul ignore next */ null;\n\n // istanbul ignore else @preserve\n if (\n _activeItem !== item &&\n scrollTop >= offsetTop &&\n (nextOffsetTop === null || scrollTop < nextOffsetTop)\n ) {\n activate(this, item);\n break;\n }\n }\n };\n\n /**\n * This method provides an event handle\n * for scrollspy\n * @param e the event listener object\n */\n _scrollTo = (e: MouseEvent) => {\n const item = closest(e.target, scrollSpyAnchorSelector);\n const hash = item && getAttribute(item, \"href\")?.slice(1);\n const targetItem = hash && getElementById(hash, this.target);\n\n // istanbul ignore else @preserve\n if (targetItem) {\n this.scrollTarget.scrollTo({\n top: targetItem.offsetTop,\n behavior: \"smooth\",\n });\n e.preventDefault();\n }\n };\n\n /**\n * Toggles on/off the component observer.\n *\n * @param self the ScrollSpy instance\n * @param add when `true`, listener is added\n */\n _toggleEventListeners = (\n add?: boolean,\n ) => {\n const { target, _observables, _observer, _scrollTo } = this;\n const action = add ? addListener : removeListener;\n action(target, mouseclickEvent, _scrollTo);\n\n if (add) {\n _observables?.forEach((_, targetItem) => _observer.observe(targetItem));\n } else _observer.disconnect();\n };\n\n /** Removes `ScrollSpy` from the target element. */\n dispose() {\n this._toggleEventListeners();\n super.dispose();\n }\n}\n","/** @type {string} */\nconst tabString = \"tab\";\nexport default tabString;\n","/** @type {string} */\nconst tabComponent = \"Tab\";\nexport default tabComponent;\n","/* Native JavaScript for Bootstrap 5 | Tab\n------------------------------------------ */\nimport {\n addClass,\n ariaSelected,\n closest,\n createCustomEvent,\n dispatchEvent,\n emulateTransitionEnd,\n getElementsByClassName,\n getInstance,\n hasClass,\n isHTMLElement,\n mouseclickEvent,\n MouseEvent,\n querySelector,\n reflow,\n removeClass,\n setAttribute,\n Timer,\n} from \"@thednp/shorty\";\n\nimport { addListener, removeListener } from \"@thednp/event-listener\";\n\nimport collapsingClass from \"~/strings/collapsingClass\";\nimport activeClass from \"~/strings/activeClass\";\nimport fadeClass from \"~/strings/fadeClass\";\nimport showClass from \"~/strings/showClass\";\nimport dropdownClasses from \"~/strings/dropdownClasses\";\nimport dataBsToggle from \"~/strings/dataBsToggle\";\nimport tabString from \"~/strings/tabString\";\nimport tabComponent from \"~/strings/tabComponent\";\nimport getTargetElement from \"~/util/getTargetElement\";\nimport BaseComponent from \"./base-component\";\nimport type { /* TabOptions, */ TabEvent } from \"~/interface/tab\";\n\n// TAB PRIVATE GC\n// ================\nconst tabSelector = `[${dataBsToggle}=\"${tabString}\"]`;\n\n/**\n * Static method which returns an existing `Tab` instance associated\n * to a target `Element`.\n */\nconst getTabInstance = (element: Element) =>\n getInstance(element, tabComponent);\n\n/** A `Tab` initialization callback. */\nconst tabInitCallback = (element: Element) => new Tab(element);\n\ntype TabEventProps = {\n relatedTarget: Element & EventTarget | undefined;\n};\n\n// TAB CUSTOM EVENTS\n// =================\nconst showTabEvent = createCustomEvent(\n `show.bs.${tabString}`,\n);\nconst shownTabEvent = createCustomEvent(\n `shown.bs.${tabString}`,\n);\nconst hideTabEvent = createCustomEvent(\n `hide.bs.${tabString}`,\n);\nconst hiddenTabEvent = createCustomEvent(\n `hidden.bs.${tabString}`,\n);\n\ninterface TabPrivate {\n tab: HTMLElement | null;\n content: HTMLElement | null;\n currentHeight: number;\n nextHeight: number;\n}\n\n/**\n * Stores the current active tab and its content\n * for a given `.nav` element.\n */\nconst tabPrivate: Map = new Map();\n\n// TAB PRIVATE METHODS\n// ===================\n/**\n * Executes after tab transition has finished.\n *\n * @param self the `Tab` instance\n */\nconst triggerTabEnd = (self: Tab) => {\n const { tabContent, nav } = self;\n\n // istanbul ignore else @preserve\n if (tabContent && hasClass(tabContent, collapsingClass)) {\n tabContent.style.height = \"\";\n removeClass(tabContent, collapsingClass);\n }\n\n // istanbul ignore else @preserve\n if (nav) Timer.clear(nav);\n};\n\n/**\n * Executes before showing the tab content.\n *\n * @param self the `Tab` instance\n */\nconst triggerTabShow = (self: Tab) => {\n const { element, tabContent, content: nextContent, nav } = self;\n const { tab } = (isHTMLElement(nav) && tabPrivate.get(nav)) ||\n // istanbul ignore next @preserve\n { tab: null };\n\n // istanbul ignore else @preserve\n if (tabContent && nextContent && hasClass(nextContent, fadeClass)) {\n const { currentHeight, nextHeight } = tabPrivate.get(element) ||\n // istanbul ignore next @preserve\n { currentHeight: 0, nextHeight: 0 };\n // istanbul ignore else @preserve: vitest won't validate this branch\n if (currentHeight !== nextHeight) {\n // enables height animation\n setTimeout(() => {\n tabContent.style.height = `${nextHeight}px`;\n reflow(tabContent);\n emulateTransitionEnd(tabContent, () => triggerTabEnd(self));\n }, 50);\n } else {\n triggerTabEnd(self);\n }\n } else if (nav) Timer.clear(nav);\n\n shownTabEvent.relatedTarget = tab as HTMLElement | undefined;\n\n dispatchEvent(element, shownTabEvent);\n};\n\n/**\n * Executes before hiding the tab.\n *\n * @param self the `Tab` instance\n */\nconst triggerTabHide = (self: Tab) => {\n const { element, content: nextContent, tabContent, nav } = self;\n const { tab, content } = (nav && tabPrivate.get(nav)) ||\n // istanbul ignore next @preserve\n { tab: null, content: null };\n let currentHeight = 0;\n\n // istanbul ignore else @preserve\n if (tabContent && nextContent && hasClass(nextContent, fadeClass)) {\n [content, nextContent].forEach((c) => {\n // istanbul ignore else @preserve\n if (c) addClass(c, \"overflow-hidden\");\n });\n currentHeight = content\n ? content.scrollHeight\n : /* istanbul ignore next @preserve */ 0;\n }\n\n // update relatedTarget and dispatch event\n showTabEvent.relatedTarget = tab as HTMLElement | undefined;\n hiddenTabEvent.relatedTarget = element as HTMLElement;\n dispatchEvent(element, showTabEvent);\n\n // istanbul ignore if @preserve\n if (showTabEvent.defaultPrevented) return;\n // istanbul ignore else @preserve\n if (nextContent) addClass(nextContent, activeClass);\n // istanbul ignore else @preserve\n if (content) removeClass(content, activeClass);\n\n // istanbul ignore else @preserve\n if (tabContent && nextContent && hasClass(nextContent, fadeClass)) {\n const nextHeight = nextContent.scrollHeight;\n tabPrivate.set(element, {\n currentHeight,\n nextHeight,\n tab: null,\n content: null,\n });\n\n addClass(tabContent, collapsingClass);\n tabContent.style.height = `${currentHeight}px`;\n reflow(tabContent);\n [content, nextContent].forEach((c) => {\n // istanbul ignore else @preserve\n if (c) removeClass(c, \"overflow-hidden\");\n });\n }\n\n if (nextContent && nextContent && hasClass(nextContent, fadeClass)) {\n setTimeout(() => {\n addClass(nextContent, showClass);\n emulateTransitionEnd(nextContent, () => {\n triggerTabShow(self);\n });\n }, 1);\n } else {\n // istanbul ignore else @preserve\n if (nextContent) addClass(nextContent, showClass);\n triggerTabShow(self);\n }\n\n // istanbul ignore else @preserve\n if (tab) dispatchEvent(tab, hiddenTabEvent);\n};\n\n/**\n * Returns the current active tab and its target content.\n *\n * @param self the `Tab` instance\n * @returns the query result\n */\nconst getActiveTab = (\n self: Tab,\n): { tab: HTMLElement | null; content: HTMLElement | null } => {\n const { nav } = self;\n // istanbul ignore next @preserve\n if (!isHTMLElement(nav)) {\n return { tab: null, content: null };\n }\n\n const activeTabs = getElementsByClassName(\n activeClass,\n nav,\n );\n let tab: HTMLElement | null = null;\n // istanbul ignore else @preserve\n if (\n activeTabs.length === 1 &&\n !dropdownClasses.some((c) =>\n hasClass(activeTabs[0].parentElement as HTMLElement, c)\n )\n ) {\n [tab] = activeTabs;\n } else if (activeTabs.length > 1) {\n tab = activeTabs[activeTabs.length - 1];\n }\n const content = isHTMLElement(tab) ? getTargetElement(tab) : null;\n return { tab, content };\n};\n\n/**\n * Returns a parent dropdown.\n *\n * @param element the `Tab` element\n * @returns the parent dropdown\n */\nconst getParentDropdown = (element?: HTMLElement) => {\n // istanbul ignore next @preserve\n if (!isHTMLElement(element)) return null;\n const dropdown = closest(element, `.${dropdownClasses.join(\",.\")}`);\n return dropdown\n ? querySelector(`.${dropdownClasses[0]}-toggle`, dropdown)\n : null;\n};\n\n// TAB EVENT HANDLER\n// =================\n/**\n * Handles the `click` event listener.\n *\n * @param e the `Event` object\n */\nconst tabClickHandler = (e: MouseEvent) => {\n const element = closest(e.target, tabSelector);\n const self = element && getTabInstance(element);\n\n // istanbul ignore if @preserve\n if (!self) return;\n e.preventDefault();\n self.show();\n};\n\n// TAB DEFINITION\n// ==============\n/** Creates a new `Tab` instance. */\nexport default class Tab extends BaseComponent {\n static selector = tabSelector;\n static init = tabInitCallback;\n static getInstance = getTabInstance;\n declare element: HTMLElement;\n declare nav: HTMLElement | null;\n declare content: HTMLElement | null;\n declare tabContent: HTMLElement | null;\n declare nextContent: HTMLElement | null;\n declare dropdown: HTMLElement | null;\n\n /** @param target the target element */\n constructor(target: Element | string) {\n super(target);\n\n // initialization element\n const { element } = this;\n const content = getTargetElement(element);\n\n // no point initializing a tab without a corresponding content\n // istanbul ignore else @preserve\n if (!content) return;\n\n const nav = closest(element, \".nav\");\n const container = closest(\n content as HTMLElement,\n \".tab-content\",\n );\n\n this.nav = nav;\n this.content = content;\n this.tabContent = container;\n\n // event targets\n this.dropdown = getParentDropdown(element);\n\n // show first Tab instance of none is shown\n // suggested on #432\n const { tab } = getActiveTab(this);\n if (nav && !tab) {\n const firstTab = querySelector(tabSelector, nav);\n const firstTabContent = firstTab && getTargetElement(firstTab);\n\n // istanbul ignore else @preserve\n if (firstTabContent) {\n addClass(firstTab, activeClass);\n addClass(firstTabContent, showClass);\n addClass(firstTabContent, activeClass);\n setAttribute(element, ariaSelected, \"true\");\n }\n }\n\n // add event listener\n this._toggleEventListeners(true);\n }\n\n /**\n * Returns component name string.\n */\n get name() {\n return tabComponent;\n }\n\n // TAB PUBLIC METHODS\n // ==================\n /** Shows the tab to the user. */\n show() {\n const { element, content: nextContent, nav, dropdown } = this;\n\n // istanbul ignore else @preserve\n if ((nav && Timer.get(nav)) || hasClass(element, activeClass)) return;\n const { tab, content } = getActiveTab(this);\n\n // istanbul ignore else @preserve\n if (nav && tab) {\n tabPrivate.set(nav, { tab, content, currentHeight: 0, nextHeight: 0 });\n }\n\n // update relatedTarget and dispatch\n hideTabEvent.relatedTarget = element as HTMLElement;\n\n // istanbul ignore if @preserve\n if (!isHTMLElement(tab)) return;\n\n dispatchEvent(tab, hideTabEvent);\n\n // istanbul ignore else @preserve\n if (hideTabEvent.defaultPrevented) return;\n\n addClass(element, activeClass);\n setAttribute(element, ariaSelected, \"true\");\n\n const activeDropdown = isHTMLElement(tab) && getParentDropdown(tab);\n if (activeDropdown && hasClass(activeDropdown, activeClass)) {\n removeClass(activeDropdown, activeClass);\n }\n\n // istanbul ignore else @preserve\n if (nav) {\n const toggleTab = () => {\n // istanbul ignore else @preserve\n if (tab) {\n removeClass(tab, activeClass);\n setAttribute(tab, ariaSelected, \"false\");\n }\n if (dropdown && !hasClass(dropdown, activeClass)) {\n addClass(dropdown, activeClass);\n }\n };\n\n if (\n content &&\n (hasClass(content, fadeClass) ||\n (nextContent && hasClass(nextContent, fadeClass)))\n ) {\n Timer.set(nav, toggleTab, 1);\n } else toggleTab();\n }\n\n // istanbul ignore else @preserve\n if (content) {\n removeClass(content, showClass);\n if (hasClass(content, fadeClass)) {\n emulateTransitionEnd(content, () => triggerTabHide(this));\n } else {\n triggerTabHide(this);\n }\n }\n }\n\n /**\n * Toggles on/off the `click` event listener.\n *\n * @param add when `true`, event listener is added\n */\n _toggleEventListeners = (add?: boolean) => {\n const action = add ? addListener : removeListener;\n action(this.element, mouseclickEvent, tabClickHandler);\n };\n\n /** Removes the `Tab` component from the target element. */\n dispose() {\n this._toggleEventListeners();\n super.dispose();\n }\n}\n","/** @type {string} */\nconst toastString = \"toast\";\nexport default toastString;\n","/** @type {string} */\nconst toastComponent = \"Toast\";\nexport default toastComponent;\n","/* Native JavaScript for Bootstrap 5 | Toast\n-------------------------------------------- */\nimport {\n addClass,\n createCustomEvent,\n dispatchEvent,\n emulateTransitionEnd,\n focusinEvent,\n focusoutEvent,\n getDocument,\n getInstance,\n hasClass,\n mouseclickEvent,\n mouseenterEvent,\n MouseEvent,\n mouseleaveEvent,\n querySelector,\n querySelectorAll,\n reflow,\n removeClass,\n Timer,\n} from \"@thednp/shorty\";\n\nimport { addListener, removeListener } from \"@thednp/event-listener\";\n\nimport fadeClass from \"~/strings/fadeClass\";\nimport showClass from \"~/strings/showClass\";\nimport dataBsDismiss from \"~/strings/dataBsDismiss\";\nimport dataBsToggle from \"~/strings/dataBsToggle\";\nimport toastString from \"~/strings/toastString\";\nimport toastComponent from \"~/strings/toastComponent\";\nimport getTargetElement from \"~/util/getTargetElement\";\nimport isDisabled from \"~/util/isDisabled\";\nimport BaseComponent from \"./base-component\";\nimport { ToastEvent, ToastOptions } from \"~/interface/toast\";\n\n// TOAST PRIVATE GC\n// ================\nconst toastSelector = `.${toastString}`;\nconst toastDismissSelector = `[${dataBsDismiss}=\"${toastString}\"]`;\nconst toastToggleSelector = `[${dataBsToggle}=\"${toastString}\"]`;\nconst showingClass = \"showing\";\n/** @deprecated */\nconst hideClass = \"hide\";\n\nconst toastDefaults = {\n animation: true,\n autohide: true,\n delay: 5000,\n};\n\n/**\n * Static method which returns an existing `Toast` instance associated\n * to a target `Element`.\n */\nconst getToastInstance = (element: Element) =>\n getInstance(element, toastComponent);\n\n/**\n * A `Toast` initialization callback.\n */\nconst toastInitCallback = (element: Element) => new Toast(element);\n\n// TOAST CUSTOM EVENTS\n// ===================\nconst showToastEvent = createCustomEvent, ToastEvent>(\n `show.bs.${toastString}`,\n);\nconst shownToastEvent = createCustomEvent, ToastEvent>(\n `shown.bs.${toastString}`,\n);\nconst hideToastEvent = createCustomEvent, ToastEvent>(\n `hide.bs.${toastString}`,\n);\nconst hiddenToastEvent = createCustomEvent, ToastEvent>(\n `hidden.bs.${toastString}`,\n);\n\n// TOAST PRIVATE METHODS\n// =====================\n/**\n * Executes after the toast is shown to the user.\n *\n * @param self the `Toast` instance\n */\nconst showToastComplete = (self: Toast) => {\n const { element, options } = self;\n removeClass(element, showingClass);\n Timer.clear(element, showingClass);\n\n dispatchEvent(element, shownToastEvent);\n // istanbul ignore else @preserve\n if (options.autohide) {\n Timer.set(element, () => self.hide(), options.delay, toastString);\n }\n};\n\n/**\n * Executes after the toast is hidden to the user.\n *\n * @param self the `Toast` instance\n */\nconst hideToastComplete = (self: Toast) => {\n const { element } = self;\n removeClass(element, showingClass);\n removeClass(element, showClass);\n addClass(element, hideClass); // B/C\n Timer.clear(element, toastString);\n dispatchEvent(element, hiddenToastEvent);\n};\n\n/**\n * Executes before hiding the toast.\n *\n * @param self the `Toast` instance\n */\nconst hideToast = (self: Toast) => {\n const { element, options } = self;\n addClass(element, showingClass);\n\n if (options.animation) {\n reflow(element as HTMLElement);\n emulateTransitionEnd(element, () => hideToastComplete(self));\n } else {\n hideToastComplete(self);\n }\n};\n\n/**\n * Executes before showing the toast.\n *\n * @param self the `Toast` instance\n */\nconst showToast = (self: Toast) => {\n const { element, options } = self;\n Timer.set(\n element,\n () => {\n removeClass(element, hideClass); // B/C\n reflow(element as HTMLElement);\n addClass(element, showClass);\n addClass(element, showingClass);\n\n if (options.animation) {\n emulateTransitionEnd(element, () => showToastComplete(self));\n } else {\n showToastComplete(self);\n }\n },\n 17,\n showingClass,\n );\n};\n\n// TOAST EVENT HANDLERS\n// ====================\n/**\n * Handles the `click` event listener for toast.\n *\n * @param e the `Event` object\n */\nfunction toastClickHandler(this: HTMLElement, e: Event) {\n const element = getTargetElement(this);\n const self = element && getToastInstance(element);\n\n // istanbul ignore if @preserve\n if (isDisabled(this)) return;\n // istanbul ignore if @preserve\n if (!self) return;\n // istanbul ignore else @preserve\n if (this.tagName === \"A\") e.preventDefault();\n self.relatedTarget = this;\n self.show();\n}\n\n/**\n * Executes when user interacts with the toast without closing it,\n * usually by hovering or focusing it.\n *\n * @param e the `Toast` instance\n */\nconst interactiveToastHandler = (e: MouseEvent) => {\n const element = e.target;\n const self = getToastInstance(element);\n const { type, relatedTarget } = e;\n\n // istanbul ignore if @preserve: a solid filter is required\n if (\n !self || element === relatedTarget ||\n element.contains(relatedTarget as Node)\n ) return;\n\n if ([mouseenterEvent, focusinEvent].includes(type)) {\n Timer.clear(element, toastString);\n } else {\n Timer.set(element, () => self.hide(), self.options.delay, toastString);\n }\n};\n\n// TOAST DEFINITION\n// ================\n/** Creates a new `Toast` instance. */\nexport default class Toast extends BaseComponent {\n static selector = toastSelector;\n static init = toastInitCallback;\n static getInstance = getToastInstance;\n declare element: HTMLElement;\n declare options: ToastOptions;\n declare dismiss: HTMLElement | null;\n declare triggers: HTMLElement[];\n declare relatedTarget: HTMLElement | null;\n\n /**\n * @param target the target `.toast` element\n * @param config the instance options\n */\n constructor(target: Element | string, config?: Partial) {\n super(target, config);\n const { element, options } = this;\n\n // set fadeClass, the options.animation will override the markup\n if (options.animation && !hasClass(element, fadeClass)) {\n addClass(element, fadeClass);\n } else if (!options.animation && hasClass(element, fadeClass)) {\n removeClass(element, fadeClass);\n }\n\n // dismiss button\n this.dismiss = querySelector(toastDismissSelector, element);\n\n // toast can have multiple triggering elements\n this.triggers = [\n ...querySelectorAll(\n toastToggleSelector,\n getDocument(element),\n ),\n ].filter(\n (btn) => getTargetElement(btn) === element,\n );\n\n // add event listener\n this._toggleEventListeners(true);\n }\n /**\n * Returns component name string.\n */\n get name() {\n return toastComponent;\n }\n /**\n * Returns component default options.\n */\n get defaults() {\n return toastDefaults;\n }\n /**\n * Returns *true* when toast is visible.\n */\n get isShown() {\n return hasClass(this.element, showClass);\n }\n\n // TOAST PUBLIC METHODS\n // ====================\n /** Shows the toast. */\n show = () => {\n const { element, isShown } = this;\n\n // istanbul ignore if @preserve\n if (!element || isShown) return;\n\n dispatchEvent(element, showToastEvent);\n if (!showToastEvent.defaultPrevented) showToast(this);\n };\n\n /** Hides the toast. */\n hide = () => {\n const { element, isShown } = this;\n\n // istanbul ignore if @preserve\n if (!element || !isShown) return;\n\n dispatchEvent(element, hideToastEvent);\n if (!hideToastEvent.defaultPrevented) hideToast(this);\n };\n\n /**\n * Toggles on/off the `click` event listener.\n *\n * @param add when `true`, it will add the listener\n */\n _toggleEventListeners = (add?: boolean) => {\n const action = add ? addListener : removeListener;\n const { element, triggers, dismiss, options, hide } = this;\n\n // istanbul ignore else @preserve\n if (dismiss) {\n action(dismiss, mouseclickEvent, hide);\n }\n\n // istanbul ignore else @preserve\n if (options.autohide) {\n [focusinEvent, focusoutEvent, mouseenterEvent, mouseleaveEvent].forEach(\n (e) => action(element, e, interactiveToastHandler),\n );\n }\n // istanbul ignore else @preserve\n if (triggers.length) {\n triggers.forEach((btn) => {\n action(btn, mouseclickEvent, toastClickHandler);\n });\n }\n };\n\n /** Removes the `Toast` component from the target element. */\n dispose() {\n const { element, isShown } = this;\n this._toggleEventListeners();\n Timer.clear(element, toastString);\n\n if (isShown) removeClass(element, showClass);\n\n super.dispose();\n }\n}\n","import { Data, getElementsByTagName, matches } from \"@thednp/shorty\";\n\nimport { addListener } from \"@thednp/event-listener\";\n\nimport Alert from \"../components/alert\";\nimport Button from \"../components/button\";\nimport Carousel from \"../components/carousel\";\nimport Collapse from \"../components/collapse\";\nimport Dropdown from \"../components/dropdown\";\nimport Modal from \"../components/modal\";\nimport Offcanvas from \"../components/offcanvas\";\nimport Popover from \"../components/popover\";\nimport ScrollSpy from \"../components/scrollspy\";\nimport Tab from \"../components/tab\";\nimport Toast from \"../components/toast\";\nimport Tooltip from \"../components/tooltip\";\n\nconst componentsList = new Map<\n string,\n | typeof Alert\n | typeof Button\n | typeof Carousel\n | typeof Collapse\n | typeof Dropdown\n | typeof Modal\n | typeof Offcanvas\n | typeof Popover\n | typeof ScrollSpy\n | typeof Tab\n | typeof Toast\n | typeof Tooltip\n>();\n\ntype Component =\n | Alert\n | Button\n | Carousel\n | Collapse\n | Dropdown\n | Modal\n | Offcanvas\n | Popover\n | ScrollSpy\n | Tab\n | Toast\n | Tooltip;\n\n[\n Alert,\n Button,\n Carousel,\n Collapse,\n Dropdown,\n Modal,\n Offcanvas,\n Popover,\n ScrollSpy,\n Tab,\n Toast,\n Tooltip,\n].forEach((c) => componentsList.set(c.prototype.name, c));\n\n/**\n * Initialize all matched `Element`s for one component.\n *\n * @param callback\n * @param collection\n */\nconst initComponentDataAPI = (\n callback: (el: Element) => Component,\n collection: HTMLCollectionOf | Element[],\n) => {\n [...collection].forEach((x) => callback(x));\n};\n\n/**\n * Remove one component from a target container element or all in the page.\n *\n * @param component the component name\n * @param context parent `Node`\n */\nconst removeComponentDataAPI = (component: string, context: ParentNode) => {\n const compData = Data.getAllFor(component) as Map;\n\n if (compData) {\n [...compData].forEach(([element, instance]) => {\n if (context.contains(element)) {\n (instance as T & { dispose: () => void }).dispose();\n }\n });\n }\n};\n\n/**\n * Initialize all BSN components for a target container.\n *\n * @param context parent `Node`\n */\nexport const initCallback = (context?: ParentNode) => {\n const lookUp = context && context.nodeName ? context : document;\n const elemCollection = [...getElementsByTagName(\"*\", lookUp)];\n\n componentsList.forEach((cs) => {\n const { init, selector } = cs;\n initComponentDataAPI(\n init,\n elemCollection.filter((item) => matches(item, selector)),\n );\n });\n};\n\n/**\n * Remove all BSN components for a target container.\n *\n * @param context parent `Node`\n */\nexport const removeDataAPI = (context?: ParentNode) => {\n const lookUp = context && context.nodeName ? context : document;\n\n componentsList.forEach((comp) => {\n removeComponentDataAPI(comp.prototype.name, lookUp);\n });\n};\n\n// Bulk initialize all components\nif (document.body) initCallback();\nelse {\n addListener(document, \"DOMContentLoaded\", () => initCallback(), {\n once: true,\n });\n}\n"],"names":["Me","De","$","ze","Ie","Pe","st","rt","ct","lt","ft","gt","vt","Et","ht","yt","Dt","Ot","xt","Wt","Re","qt","en","nn","on","sn","fn","_t","$t","M","W","On","t","e","Yt","R","n","o","s","Q","j","ee","Wn","Qn","Kn","qn","Gn","v","u","i","E","L","Xn","I","N","K","q","d","C","ne","G","f","ce","ae","no","r","a","l","ro","P","S","ao","p","c","g","A","uo","po","go","mo","vo","O","ie","m","bo","Eo","ue","x","le","de","yo","b","y","wo","w","So","pe","k","ge","me","ve","he","No","B","V","h","ye","we","To","Lo","Fo","Bo","Se","Ho","ke","Wo","Ro","fadeClass","showClass","dataBsDismiss","alertString","alertComponent","isDisabled","target","hasClass","getAttribute","Version","version","BaseComponent","config","element","isElement","isString","querySelector","prevInstance","Data","ObjectKeys","normalizeOptions","prop","alertSelector","alertDismissSelector","getAlertInstance","getInstance","alertInitCallback","Alert","closeAlertEvent","createCustomEvent","closedAlertEvent","alertTransitionEnd","self","dispatchEvent","dismiss","removeClass","emulateTransitionEnd","add","action","addListener","removeListener","close","mouseclickEvent","activeClass","dataBsToggle","buttonString","buttonComponent","buttonSelector","getButtonInstance","buttonInitCallback","Button","setAttribute","ariaPressed","isActive","addClass","dataBsTarget","carouselString","carouselComponent","dataBsParent","dataBsContainer","getTargetElement","targetAttr","doc","getDocument","att","attValue","closest","carouselSelector","carouselItem","dataBsSlideTo","dataBsSlide","pausedClass","carouselDefaults","getCarouselInstance","carouselInitCallback","Carousel","startX","currentX","endX","carouselSlideEvent","carouselSlidEvent","carouselTransitionEndHandler","index","direction","slides","options","activeItem","getActiveIndex","orientation","directionClass","Timer","carouselPauseHandler","carouselResumeHandler","carouselIndicatorHandler","newIndex","carouselControlsHandler","carouselKeyHandler","code","querySelectorAll","isElementInScrollRange","RTL","isRTL","keyArrowRight","keyArrowLeft","carouselDragHandler","carouselPointerDownHandler","controls","indicators","el","toggleCarouselTouchHandlers","carouselPointerMoveHandler","carouselPointerUpHandler","activateCarouselIndicator","pointermoveEvent","passiveHandler","pointerupEvent","getElementsByClassName","activeIndex","transitionItem","matches","ar","isPaused","idx","next","eventProperties","ObjectAssign","getElementTransitionDuration","reflow","touch","pause","interval","keyboard","mouseenterEvent","mouseleaveEvent","pointerdownEvent","touchstartEvent","dragstartEvent","arrow","indicator","keydownEvent","isAnimating","clone","collapsingClass","collapseString","collapseComponent","collapseSelector","collapseToggleSelector","collapseDefaults","getCollapseInstance","collapseInitCallback","Collapse","showCollapseEvent","shownCollapseEvent","hideCollapseEvent","hiddenCollapseEvent","expandCollapse","parent","triggers","noop","setElementStyle","btn","ariaExpanded","collapseContent","collapseClickHandler","trigger","isHTMLElement","activeCollapse","activeCollapseInstance","_","dropdownMenuClasses","dropdownComponent","dropdownMenuClass","isEmptyAnchor","parentAnchor","hasAttribute","dropdownString","dropupString","dropstartString","dropendString","dropdownClasses","dropdownSelector","getDropdownInstance","dropdownInitCallback","Dropdown","dropdownMenuEndClass","verticalClass","horizontalClass","menuFocusTags","dropdownDefaults","showDropdownEvent","shownDropdownEvent","hideDropdownEvent","hiddenDropdownEvent","updatedDropdownEvent","styleDropdown","menu","parentElement","offset","getElementStyle","menuEnd","style","positionClass","dropdownMargin","dropdownPosition","menuWidth","menuHeight","clientWidth","clientHeight","getDocumentElement","targetLeft","targetTop","targetWidth","targetHeight","getBoundingClientRect","leftFullExceed","rightFullExceed","bottomExceed","bottomFullExceed","topExceed","leftExceed","rightExceed","posAjust","margins","getMenuItems","firstElementChild","toggleDropdownDismiss","dropdownDismissHandler","focusEvent","dropdownPreventScroll","keyupEvent","dropdownKeyHandler","getCurrentOpenDropdown","currentParent","type","isForm","mousedownEvent","dropdownClickHandler","keyArrowDown","keyArrowUp","activeElement","open","menuItems","focus","keyEscape","PositionObserver","currentElement","currentInstance","modalString","modalComponent","offcanvasComponent","fixedTopClass","fixedBottomClass","stickyTopClass","positionStickyClass","getFixedItems","resetScrollbar","bd","getDocumentBody","fixedItems","fixed","measureScrollbar","innerWidth","getWindow","setScrollbar","overflow","bodyPad","sbWidth","itemPadValue","itemMValue","offcanvasString","popupContainer","createElement","appendPopup","customContainer","containerIsBody","isNode","lookup","BODY","removePopup","hasPopup","backdropString","modalBackdropClass","offcanvasBackdropClass","modalActiveSelector","offcanvasActiveSelector","overlay","getCurrentOpen","toggleOverlayType","isModal","targetClass","appendOverlay","hasFade","showOverlay","hideOverlay","removeOverlay","isVisible","modalSelector","modalToggleSelector","modalDismissSelector","modalStaticClass","modalDefaults","getModalInstance","modalInitCallback","Modal","showModalEvent","shownModalEvent","hideModalEvent","hiddenModalEvent","setModalScrollbar","scrollbarWidth","scrollHeight","modalHeight","modalScrollHeight","modalOverflow","padStyle","toggleModalDismiss","modalDismissHandler","modalKeyHandler","afterModalHide","relatedTarget","focusElement","toggleFocusTrap","afterModalShow","beforeModalShow","removeAttribute","ariaHidden","ariaModal","beforeModalHide","modalClickHandler","currentTarget","isStatic","modalDialog","backdrop","selectedText","targetInsideDialog","staticTransitionEnd","duration","overlayDelay","currentOpen","that","callback","offcanvasSelector","offcanvasToggleSelector","offcanvasDismissSelector","offcanvasTogglingClass","offcanvasDefaults","getOffcanvasInstance","offcanvasInitCallback","Offcanvas","showOffcanvasEvent","shownOffcanvasEvent","hideOffcanvasEvent","hiddenOffcanvasEvent","setOffCanvasScrollbar","toggleOffCanvasDismiss","offcanvasKeyDismissHandler","offcanvasDismissHandler","beforeOffcanvasShow","showOffcanvasComplete","beforeOffcanvasHide","hideOffcanvasComplete","offcanvasTriggerHandler","offCanvasDismiss","selection","visibleTrigger","isOpen","popoverString","popoverComponent","tooltipString","getTipTemplate","tipType","isTooltip","bodyClass","header","body","tipClassPositions","styleTip","tipClasses","tooltip","container","offsetParent","scrollLeft","scrollTop","getNodeScroll","tipWidth","tipHeight","htmlcw","htmlch","htmlow","placement","parentCWidth","parentOWidth","fixedParent","leftBoundry","rightBoundry","observerEntry","elemWidth","elemHeight","elemRectLeft","elemRectRight","elemRectTop","elemOffsetLeft","elemOffsetTop","getRectRelativeToOffsetParent","topPosition","bottomPosition","leftPosition","rightPosition","arrowTop","arrowLeft","arrowRight","arrowWidth","arrowHeight","arrowAdjust","horizontals","verticals","updatedTooltipEvent","toLowerCase","tooltipDefaults","dataOriginalTitle","tooltipComponent","setHtml","content","sanitizeFn","dirty","isFunction","tempDocument","isNodeList","isArray","createTip","id","title","template","animation","customClass","dismissible","btnClose","tipString","tipPositions","titleParts","contentParts","placementClass","tooltipTemplate","htmlMarkup","tooltipHeader","tooltipBody","tempTitle","tempContent","tempBtn","getElementContainer","majorBlockTags","containers","parentNode","getParentNode","isShadowRoot","isTableElement","tooltipSelector","titleAttr","getTooltipInstance","tooltipInitCallback","Tooltip","removeTooltip","ariaDescribedBy","hasTip","disposeTooltipComplete","toggleTooltipTitle","toggleTooltipAction","tooltipShownAction","shownTooltipEvent","tooltipHiddenAction","hiddenTooltipEvent","toggleTooltipOpenHandlers","parentModal","parentOffcanvas","titleAtt","tipComponent","elem","getUID","position","outTimer","showTooltipEvent","delay","hideTooltipEvent","enabled","tr","mousehoverEvent","focusinEvent","focusoutEvent","isApple","popoverSelector","popoverDefaults","getPopoverInstance","popoverInitCallback","Popover","scrollspyString","scrollspyComponent","scrollspySelector","scrollSpyAnchorSelector","scrollspyDefaults","getScrollSpyInstance","scrollspyInitCallback","ScrollSpy","activateScrollSpy","updateSpyTargets","_itemsLength","_observables","links","getElementsByTagName","link","hash","targetItem","clear","item","activate","parentItem","parentLink","getOffset","scrollTarget","spyTarget","_activeItem","entries","newActiveItem","firstOffset","offsetTop","nextTarget","nextOffsetTop","getElementById","_observer","_scrollTo","tabString","tabComponent","tabSelector","getTabInstance","tabInitCallback","Tab","showTabEvent","shownTabEvent","hideTabEvent","hiddenTabEvent","tabPrivate","triggerTabEnd","tabContent","nav","triggerTabShow","nextContent","tab","currentHeight","nextHeight","triggerTabHide","getActiveTab","activeTabs","getParentDropdown","dropdown","tabClickHandler","firstTab","firstTabContent","ariaSelected","activeDropdown","toggleTab","toastString","toastComponent","toastSelector","toastDismissSelector","toastToggleSelector","showingClass","hideClass","toastDefaults","getToastInstance","toastInitCallback","Toast","showToastEvent","shownToastEvent","hideToastEvent","hiddenToastEvent","showToastComplete","hideToastComplete","hideToast","showToast","toastClickHandler","interactiveToastHandler","isShown","hide","componentsList","initComponentDataAPI","collection","removeComponentDataAPI","component","context","compData","instance","initCallback","lookUp","elemCollection","cs","init","selector","removeDataAPI","comp"],"mappings":"AAAK,MAA6DA,KAAK,oBAAoBC,KAAK,iBAAuCC,KAAI,eAA0DC,KAAK,cAAcC,KAAK,gBAAgBC,KAAK,iBAAuPC,KAAK,SAASC,KAAK,WAAWC,KAAK,YAA0EC,KAAK,WAA4BC,KAAK,SAAsBC,IAAK,SAA0BC,KAAK,aAA6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AAWA,IAAU,UACjDK,IAAiB,CAAC,GAAGrF,GAA8B,KAAKoF,CAAM,CAAC;AAEtD,EAAAT,GAAA,QAAQ,CAACW,MAAO;AACvB,UAAA,EAAE,MAAAC,GAAM,UAAAC,EAAA,IAAaF;AAC3B,IAAAV;AAAA,MACEW;AAAA,MACAF,EAAe,OAAO,CAAChF,MAASzY,GAAQyY,GAAMmF,CAAQ,CAAC;AAAA,IACzD;AAAA,EAAA,CACD;AACH,GAGaC,KAAgB,CAACT,MAAyB;AACrD,QAAMI,IAASJ,KAAWA,EAAQ,WAAWA,IAAU;AAExC,EAAAL,GAAA,QAAQ,CAACe,MAAS;AACR,IAAAZ,GAAAY,EAAK,UAAU,MAAMN,CAAM;AAAA,EAAA,CACnD;AACH;AAGI,SAAS,OAAmBD,GAAA,IAE9BviB,EAAY,UAAU,oBAAoB,MAAMuiB,GAAA,GAAgB;AAAA,EAC9D,MAAM;AAAA,CACP;","x_google_ignoreList":[0,1,27]} \ No newline at end of file +{"version":3,"file":"bootstrap-native.mjs","sources":["../node_modules/.pnpm/@thednp+shorty@2.0.9/node_modules/@thednp/shorty/dist/shorty.mjs","../node_modules/.pnpm/@thednp+event-listener@2.0.8/node_modules/@thednp/event-listener/dist/event-listener.mjs","../src/strings/fadeClass.ts","../src/strings/showClass.ts","../src/strings/dataBsDismiss.ts","../src/strings/alertString.ts","../src/strings/alertComponent.ts","../src/util/isDisabled.ts","../src/version.ts","../src/components/base-component.ts","../src/components/alert.ts","../src/strings/activeClass.ts","../src/strings/dataBsToggle.ts","../src/strings/buttonString.ts","../src/strings/buttonComponent.ts","../src/components/button.ts","../src/strings/dataBsTarget.ts","../src/strings/carouselString.ts","../src/strings/carouselComponent.ts","../src/strings/dataBsParent.ts","../src/strings/dataBsContainer.ts","../src/util/getTargetElement.ts","../src/components/carousel.ts","../src/strings/collapsingClass.ts","../src/strings/collapseString.ts","../src/strings/collapseComponent.ts","../src/components/collapse.ts","../node_modules/.pnpm/@thednp+position-observer@1.0.4/node_modules/@thednp/position-observer/dist/index.mjs","../src/strings/dropdownClasses.ts","../src/strings/dropdownComponent.ts","../src/strings/dropdownMenuClass.ts","../src/util/isEmptyAnchor.ts","../src/components/dropdown.ts","../src/strings/modalString.ts","../src/strings/modalComponent.ts","../src/strings/offcanvasComponent.ts","../src/strings/fixedTopClass.ts","../src/strings/fixedBottomClass.ts","../src/strings/stickyTopClass.ts","../src/strings/positionStickyClass.ts","../src/util/scrollbar.ts","../src/strings/offcanvasString.ts","../src/util/popupContainer.ts","../src/util/backdrop.ts","../src/util/isVisible.ts","../src/components/modal.ts","../src/components/offcanvas.ts","../src/strings/popoverString.ts","../src/strings/popoverComponent.ts","../src/strings/tooltipString.ts","../src/util/getTipTemplate.ts","../src/util/tipClassPositions.ts","../src/util/styleTip.ts","../src/util/tooltipDefaults.ts","../src/strings/dataOriginalTitle.ts","../src/strings/tooltipComponent.ts","../src/util/setHtml.ts","../src/util/createTip.ts","../src/util/getElementContainer.ts","../src/components/tooltip.ts","../src/components/popover.ts","../src/strings/scrollspyString.ts","../src/strings/scrollspyComponent.ts","../src/components/scrollspy.ts","../src/strings/tabString.ts","../src/strings/tabComponent.ts","../src/components/tab.ts","../src/strings/toastString.ts","../src/strings/toastComponent.ts","../src/components/toast.ts","../src/util/init.ts"],"sourcesContent":["const Ne = \"2.0.9\", Ce = \"aria-checked\", Te = \"aria-description\", Me = \"aria-describedby\", De = \"aria-expanded\", Le = \"aria-haspopup\", $ = \"aria-hidden\", Oe = \"aria-label\", xe = \"aria-labelledby\", ze = \"aria-modal\", Ie = \"aria-pressed\", Pe = \"aria-selected\", Fe = \"aria-valuemin\", Be = \"aria-valuemax\", Ve = \"aria-valuenow\", He = \"aria-valuetext\", J = \"abort\", X = \"beforeunload\", Y = \"blur\", tt = \"change\", et = \"contextmenu\", H = \"DOMContentLoaded\", nt = \"DOMMouseScroll\", ot = \"error\", st = \"focus\", rt = \"focusin\", ct = \"focusout\", at = \"gesturechange\", it = \"gestureend\", ut = \"gesturestart\", lt = \"keydown\", dt = \"keypress\", ft = \"keyup\", pt = \"load\", gt = \"click\", mt = \"dblclick\", vt = \"mousedown\", bt = \"mouseup\", Et = \"hover\", ht = \"mouseenter\", yt = \"mouseleave\", wt = \"mousein\", At = \"mouseout\", St = \"mouseover\", kt = \"mousemove\", Nt = \"mousewheel\", Ct = \"move\", Tt = \"orientationchange\", Mt = \"pointercancel\", Dt = \"pointerdown\", Lt = \"pointerleave\", Ot = \"pointermove\", xt = \"pointerup\", zt = \"readystatechange\", It = \"reset\", Pt = \"resize\", Ft = \"select\", Bt = \"selectend\", Vt = \"selectstart\", Ht = \"scroll\", Ut = \"submit\", Wt = \"touchstart\", Rt = \"touchmove\", Qt = \"touchcancel\", jt = \"touchend\", Kt = \"unload\", Ue = {\n DOMContentLoaded: H,\n DOMMouseScroll: nt,\n abort: J,\n beforeunload: X,\n blur: Y,\n change: tt,\n click: gt,\n contextmenu: et,\n dblclick: mt,\n error: ot,\n focus: st,\n focusin: rt,\n focusout: ct,\n gesturechange: at,\n gestureend: it,\n gesturestart: ut,\n hover: Et,\n keydown: lt,\n keypress: dt,\n keyup: ft,\n load: pt,\n mousedown: vt,\n mousemove: kt,\n mousein: wt,\n mouseout: At,\n mouseenter: ht,\n mouseleave: yt,\n mouseover: St,\n mouseup: bt,\n mousewheel: Nt,\n move: Ct,\n orientationchange: Tt,\n pointercancel: Mt,\n pointerdown: Dt,\n pointerleave: Lt,\n pointermove: Ot,\n pointerup: xt,\n readystatechange: zt,\n reset: It,\n resize: Pt,\n scroll: Ht,\n select: Ft,\n selectend: Bt,\n selectstart: Vt,\n submit: Ut,\n touchcancel: Qt,\n touchend: jt,\n touchmove: Rt,\n touchstart: Wt,\n unload: Kt\n}, We = \"drag\", Re = \"dragstart\", Qe = \"dragenter\", je = \"dragleave\", Ke = \"dragover\", qe = \"dragend\", Ge = \"loadstart\", Ze = {\n start: \"mousedown\",\n end: \"mouseup\",\n move: \"mousemove\",\n cancel: \"mouseleave\"\n}, _e = { down: \"mousedown\", up: \"mouseup\" }, $e = \"onmouseleave\" in document ? [\"mouseenter\", \"mouseleave\"] : [\"mouseover\", \"mouseout\"], Je = {\n start: \"touchstart\",\n end: \"touchend\",\n move: \"touchmove\",\n cancel: \"touchcancel\"\n}, Xe = { in: \"focusin\", out: \"focusout\" }, qt = 'a[href], button, input, textarea, select, details, [tabindex]:not([tabindex=\"-1\"]', Ye = {\n Backspace: \"Backspace\",\n Tab: \"Tab\",\n Enter: \"Enter\",\n Shift: \"Shift\",\n Control: \"Control\",\n Alt: \"Alt\",\n Pause: \"Pause\",\n CapsLock: \"CapsLock\",\n Escape: \"Escape\",\n Scape: \"Space\",\n ArrowLeft: \"ArrowLeft\",\n ArrowUp: \"ArrowUp\",\n ArrowRight: \"ArrowRight\",\n ArrowDown: \"ArrowDown\",\n Insert: \"Insert\",\n Delete: \"Delete\",\n Meta: \"Meta\",\n ContextMenu: \"ContextMenu\",\n ScrollLock: \"ScrollLock\"\n}, tn = \"Alt\", en = \"ArrowDown\", nn = \"ArrowUp\", on = \"ArrowLeft\", sn = \"ArrowRight\", rn = \"Backspace\", cn = \"CapsLock\", an = \"Control\", un = \"Delete\", ln = \"Enter\", dn = \"NumpadEnter\", fn = \"Escape\", pn = \"Insert\", gn = \"Meta\", mn = \"Pause\", vn = \"ScrollLock\", bn = \"Shift\", En = \"Space\", hn = \"Tab\", Gt = \"animationDuration\", Zt = \"animationDelay\", U = \"animationName\", T = \"animationend\", _t = \"transitionDuration\", $t = \"transitionDelay\", M = \"transitionend\", W = \"transitionProperty\", yn = \"addEventListener\", wn = \"removeEventListener\", An = {\n linear: \"linear\",\n easingSinusoidalIn: \"cubic-bezier(0.47,0,0.745,0.715)\",\n easingSinusoidalOut: \"cubic-bezier(0.39,0.575,0.565,1)\",\n easingSinusoidalInOut: \"cubic-bezier(0.445,0.05,0.55,0.95)\",\n easingQuadraticIn: \"cubic-bezier(0.550,0.085,0.680,0.530)\",\n easingQuadraticOut: \"cubic-bezier(0.250,0.460,0.450,0.940)\",\n easingQuadraticInOut: \"cubic-bezier(0.455,0.030,0.515,0.955)\",\n easingCubicIn: \"cubic-bezier(0.55,0.055,0.675,0.19)\",\n easingCubicOut: \"cubic-bezier(0.215,0.61,0.355,1)\",\n easingCubicInOut: \"cubic-bezier(0.645,0.045,0.355,1)\",\n easingQuarticIn: \"cubic-bezier(0.895,0.03,0.685,0.22)\",\n easingQuarticOut: \"cubic-bezier(0.165,0.84,0.44,1)\",\n easingQuarticInOut: \"cubic-bezier(0.77,0,0.175,1)\",\n easingQuinticIn: \"cubic-bezier(0.755,0.05,0.855,0.06)\",\n easingQuinticOut: \"cubic-bezier(0.23,1,0.32,1)\",\n easingQuinticInOut: \"cubic-bezier(0.86,0,0.07,1)\",\n easingExponentialIn: \"cubic-bezier(0.95,0.05,0.795,0.035)\",\n easingExponentialOut: \"cubic-bezier(0.19,1,0.22,1)\",\n easingExponentialInOut: \"cubic-bezier(1,0,0,1)\",\n easingCircularIn: \"cubic-bezier(0.6,0.04,0.98,0.335)\",\n easingCircularOut: \"cubic-bezier(0.075,0.82,0.165,1)\",\n easingCircularInOut: \"cubic-bezier(0.785,0.135,0.15,0.86)\",\n easingBackIn: \"cubic-bezier(0.6,-0.28,0.735,0.045)\",\n easingBackOut: \"cubic-bezier(0.175,0.885,0.32,1.275)\",\n easingBackInOut: \"cubic-bezier(0.68,-0.55,0.265,1.55)\"\n}, Sn = \"offsetHeight\", kn = \"offsetWidth\", Nn = \"scrollHeight\", Cn = \"scrollWidth\", Tn = \"tabindex\", Mn = navigator.userAgentData, { userAgent: Jt } = navigator, Dn = Jt, Ln = () => {\n const t = /iPhone|iPad|iPod|Android/i;\n return navigator?.userAgentData?.brands.some(\n (e) => t.test(e.brand)\n ) || t.test(navigator?.userAgent) || !1;\n}, On = () => {\n const t = /(iPhone|iPod|iPad)/;\n return navigator?.userAgentData?.brands.some(\n (e) => t.test(e.brand)\n ) || t.test(\n navigator?.userAgent\n ) || !1;\n}, xn = () => navigator?.userAgent?.includes(\"Firefox\") || !1, Xt = () => typeof CSS > \"u\" || !CSS.supports ? !1 : CSS.supports(\"-webkit-backdrop-filter\", \"none\"), zn = () => [\"webkitPerspective\", \"perspective\"].some((t) => t in document.head.style), Yt = () => {\n}, R = (t, e, n, o) => {\n const s = o || !1;\n t.addEventListener(\n e,\n n,\n s\n );\n}, Q = (t, e, n, o) => {\n const s = o || !1;\n t.removeEventListener(\n e,\n n,\n s\n );\n}, te = (t, e, n, o) => {\n const s = (r) => {\n (r.target === t || r.currentTarget === t) && (n.apply(t, [r]), Q(t, e, s, o));\n };\n R(t, e, s, o);\n}, In = () => {\n let t = !1;\n try {\n const e = Object.defineProperty({}, \"passive\", {\n get: () => (t = !0, t)\n });\n te(document, H, Yt, e);\n } catch {\n }\n return t;\n}, Pn = () => [\"webkitTransform\", \"transform\"].some((t) => t in document.head.style), Fn = () => \"ontouchstart\" in window || \"msMaxTouchPoints\" in navigator, Bn = () => [\"webkitAnimation\", \"animation\"].some((t) => t in document.head.style), Vn = () => [\"webkitTransition\", \"transition\"].some((t) => t in document.head.style), j = (t, e) => t.getAttribute(e), Hn = (t, e, n) => e.getAttributeNS(t, n), ee = (t, e) => t.hasAttribute(e), Un = (t, e, n) => e.hasAttributeNS(t, n), Wn = (t, e, n) => t.setAttribute(e, n), Rn = (t, e, n, o) => e.setAttributeNS(t, n, o), Qn = (t, e) => t.removeAttribute(e), jn = (t, e, n) => e.removeAttributeNS(t, n), Kn = (t, ...e) => {\n t.classList.add(...e);\n}, qn = (t, ...e) => {\n t.classList.remove(...e);\n}, Gn = (t, e) => t.classList.contains(e), { body: Zn } = document, { documentElement: _n } = document, { head: $n } = document, Jn = (t) => Array.from(t), v = (t) => t != null && typeof t == \"object\" || !1, u = (t) => v(t) && typeof t.nodeType == \"number\" && [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11].some(\n (e) => t.nodeType === e\n) || !1, i = (t) => u(t) && t.nodeType === 1 || !1, E = /* @__PURE__ */ new Map(), L = {\n data: E,\n set: (t, e, n) => {\n if (!i(t)) return;\n E.has(e) || E.set(e, /* @__PURE__ */ new Map()), E.get(e).set(t, n);\n },\n getAllFor: (t) => E.get(t) || null,\n get: (t, e) => {\n if (!i(t) || !e) return null;\n const n = L.getAllFor(e);\n return t && n && n.get(t) || null;\n },\n remove: (t, e) => {\n const n = L.getAllFor(e);\n !n || !i(t) || (n.delete(t), n.size === 0 && E.delete(e));\n }\n}, Xn = (t, e) => L.get(t, e), Yn = (t) => t?.charAt(0).toUpperCase() + t?.slice(1), I = (t) => t?.trim().replace(\n /(?:^\\w|[A-Z]|\\b\\w)/g,\n (e, n) => n === 0 ? e.toLowerCase() : e.toUpperCase()\n).replace(/\\s+/g, \"\"), N = (t) => typeof t == \"string\" || !1, K = (t) => v(t) && t.constructor.name === \"Window\" || !1, q = (t) => u(t) && t.nodeType === 9 || !1, d = (t) => q(t) ? t : u(t) ? t.ownerDocument : K(t) ? t.document : globalThis.document, C = (t, ...e) => Object.assign(t, ...e), ne = (t) => {\n if (!t) return;\n if (N(t))\n return d().createElement(t);\n const { tagName: e } = t, n = ne(e);\n if (!n) return;\n const o = { ...t };\n return delete o.tagName, C(n, o);\n}, oe = (t, e) => {\n if (!t || !e) return;\n if (N(e))\n return d().createElementNS(t, e);\n const { tagName: n } = e, o = oe(t, n);\n if (!o) return;\n const s = { ...e };\n return delete s.tagName, C(o, s);\n}, G = (t, e) => t.dispatchEvent(e), to = (t, e, n) => n.indexOf(t) === e, f = (t, e, n) => {\n const o = getComputedStyle(t, n), s = e.replace(\"webkit\", \"Webkit\").replace(/([A-Z])/g, \"-$1\").toLowerCase();\n return o.getPropertyValue(s);\n}, se = (t) => {\n const e = f(t, U), n = f(t, Zt), o = n.includes(\"ms\") ? 1 : 1e3, s = e && e !== \"none\" ? parseFloat(n) * o : 0;\n return Number.isNaN(s) ? 0 : s;\n}, re = (t) => {\n const e = f(t, U), n = f(t, Gt), o = n.includes(\"ms\") ? 1 : 1e3, s = e && e !== \"none\" ? parseFloat(n) * o : 0;\n return Number.isNaN(s) ? 0 : s;\n}, eo = (t, e) => {\n let n = 0;\n const o = new Event(T), s = re(t), r = se(t);\n if (s) {\n const a = (l) => {\n l.target === t && (e.apply(t, [l]), t.removeEventListener(T, a), n = 1);\n };\n t.addEventListener(T, a), setTimeout(() => {\n n || G(t, o);\n }, s + r + 17);\n } else\n e.apply(t, [o]);\n}, ce = (t) => {\n const e = f(t, W), n = f(t, $t), o = n.includes(\"ms\") ? 1 : 1e3, s = e && e !== \"none\" ? parseFloat(n) * o : 0;\n return Number.isNaN(s) ? 0 : s;\n}, ae = (t) => {\n const e = f(t, W), n = f(t, _t), o = n.includes(\"ms\") ? 1 : 1e3, s = e && e !== \"none\" ? parseFloat(n) * o : 0;\n return Number.isNaN(s) ? 0 : s;\n}, no = (t, e) => {\n let n = 0;\n const o = new Event(M), s = ae(t), r = ce(t);\n if (s) {\n const a = (l) => {\n l.target === t && (e.apply(t, [l]), t.removeEventListener(M, a), n = 1);\n };\n t.addEventListener(M, a), setTimeout(() => {\n n || G(t, o);\n }, s + r + 17);\n } else\n e.apply(t, [o]);\n}, oo = (t) => Float32Array.from(Array.from(t)), so = (t) => Float64Array.from(Array.from(t)), ro = (t, e) => t.focus(e), co = (t) => t?.trim().replace(/([a-z])([A-Z])/g, \"$1-$2\").replace(/\\s+/g, \"-\").toLowerCase(), P = (t) => [\"true\", !0].includes(t) ? !0 : [\"false\", !1].includes(t) ? !1 : [\"null\", \"\", null, void 0].includes(t) ? null : t !== \"\" && !Number.isNaN(+t) ? +t : t, S = (t) => Object.entries(t), ao = (t, e, n, o) => {\n if (!i(t)) return e;\n const s = { ...n }, r = { ...t.dataset }, a = { ...e }, l = {}, p = \"title\";\n return S(r).forEach(([c, g]) => {\n const A = o && typeof c == \"string\" && c.includes(o) ? I(c.replace(o, \"\")) : I(c);\n l[A] = P(g);\n }), S(s).forEach(([c, g]) => {\n s[c] = P(g);\n }), S(e).forEach(([c, g]) => {\n c in s ? a[c] = s[c] : c in l ? a[c] = l[c] : a[c] = c === p ? j(t, p) : g;\n }), a;\n}, io = (t, e) => v(t) && (Object.hasOwn(t, e) || e in t), uo = (t) => Object.keys(t), lo = (t) => Object.values(t), fo = (t) => Object.fromEntries(t), po = (t, e) => {\n const n = new CustomEvent(t, {\n cancelable: !0,\n bubbles: !0\n });\n return v(e) && C(n, e), n;\n}, go = { passive: !0 }, mo = (t) => t.offsetHeight, vo = (t, e) => {\n S(e).forEach(([n, o]) => {\n if (o && N(n) && n.includes(\"--\"))\n t.style.setProperty(n, o);\n else {\n const s = {};\n s[n] = o, C(t.style, s);\n }\n });\n}, O = (t) => v(t) && t.constructor.name === \"Map\" || !1, ie = (t) => typeof t == \"number\" || !1, m = /* @__PURE__ */ new Map(), bo = {\n set: (t, e, n, o) => {\n i(t) && (o && o.length ? (m.has(t) || m.set(t, /* @__PURE__ */ new Map()), m.get(t).set(o, setTimeout(e, n))) : m.set(t, setTimeout(e, n)));\n },\n get: (t, e) => {\n if (!i(t)) return null;\n const n = m.get(t);\n return e && n && O(n) ? n.get(e) || null : ie(n) ? n : null;\n },\n clear: (t, e) => {\n if (!i(t)) return;\n const n = m.get(t);\n e && e.length && O(n) ? (clearTimeout(n.get(e)), n.delete(e), n.size === 0 && m.delete(t)) : (clearTimeout(n), m.delete(t));\n }\n}, Eo = (t) => t.toLowerCase(), ho = (t) => t.toUpperCase(), ue = (t, e) => (u(e) ? e : d()).querySelectorAll(t), x = /* @__PURE__ */ new Map();\nfunction le(t) {\n const { shiftKey: e, code: n } = t, o = d(this), s = [\n ...ue(qt, this)\n ].filter(\n (l) => !ee(l, \"disabled\") && !j(l, $)\n );\n if (!s.length) return;\n const r = s[0], a = s[s.length - 1];\n n === \"Tab\" && (e && o.activeElement === r ? (a.focus(), t.preventDefault()) : !e && o.activeElement === a && (r.focus(), t.preventDefault()));\n}\nconst de = (t) => x.has(t) === !0, yo = (t) => {\n const e = de(t);\n (e ? Q : R)(t, \"keydown\", le), e ? x.delete(t) : x.set(t, !0);\n}, b = (t) => i(t) && \"offsetWidth\" in t || !1, y = (t, e) => {\n const { width: n, height: o, top: s, right: r, bottom: a, left: l } = t.getBoundingClientRect();\n let p = 1, c = 1;\n if (e && b(t)) {\n const { offsetWidth: g, offsetHeight: A } = t;\n p = g > 0 ? Math.round(n) / g : 1, c = A > 0 ? Math.round(o) / A : 1;\n }\n return {\n width: n / p,\n height: o / c,\n top: s / c,\n right: r / p,\n bottom: a / c,\n left: l / p,\n x: l / p,\n y: s / c\n };\n}, wo = (t) => d(t).body, w = (t) => d(t).documentElement, Ao = (t) => d(t).head, fe = (t) => u(t) ? (t.nodeName || \"\").toLowerCase() : \"#document\", So = (t) => {\n const e = K(t), n = e ? t.scrollX : t.scrollLeft, o = e ? t.scrollY : t.scrollTop;\n return { x: n, y: o };\n}, pe = (t) => u(t) && t.constructor.name === \"ShadowRoot\" || !1, k = (t) => t.nodeName === \"HTML\" ? t : i(t) && t.assignedSlot || u(t) && t.parentNode || pe(t) && t.host || w(t), ge = (t) => t ? q(t) ? t.defaultView : u(t) ? t?.ownerDocument?.defaultView : t : window, me = (t) => u(t) && [\"TABLE\", \"TD\", \"TH\"].includes(t.nodeName) || !1, ve = (t, e) => t.matches(e), D = (t) => f(t, \"position\") === \"static\", be = (t) => f(t, \"position\") === \"fixed\", Z = (t) => [\":popover-open\", \":modal\"].some((e) => {\n try {\n return ve(t, e);\n } catch {\n return !1;\n }\n}), _ = (t) => {\n const e = Xt(), n = i(t) ? getComputedStyle(t) : t;\n return n.transform !== \"none\" || n.perspective !== \"none\" || (n.containerType ? n.containerType !== \"normal\" : !1) || !e && (n.backdropFilter ? n.backdropFilter !== \"none\" : !1) || !e && (n.filter ? n.filter !== \"none\" : !1) || [\"transform\", \"perspective\", \"filter\"].some(\n (o) => (n.willChange || \"\").includes(o)\n ) || [\"paint\", \"layout\", \"strict\", \"content\"].some(\n (o) => (n.contain || \"\").includes(o)\n );\n}, Ee = (t) => {\n let e = k(t);\n for (; i(e) && !z(e); ) {\n if (_(e))\n return e;\n if (Z(e))\n return null;\n e = k(e);\n }\n return null;\n}, z = (t) => [\"html\", \"body\", \"#document\"].includes(fe(t)), F = (t) => {\n if (!b(t) || be(t))\n return null;\n let e = t.offsetParent;\n return w(t) === e && (e = e.ownerDocument.body), e;\n}, ko = (t) => {\n const e = ge(t);\n if (!u(t) || Z(t))\n return e;\n if (!b(t)) {\n let o = k(t);\n for (; o && !z(o); ) {\n if (i(o) && !D(o))\n return o;\n o = k(o);\n }\n return e;\n }\n let n = F(t);\n for (; n && me(n) && D(n); )\n n = F(n);\n return n && z(n) && D(n) && !_(n) ? e : n || Ee(t) || e;\n}, he = (t) => {\n if (!b(t)) return !1;\n const { width: e, height: n } = y(t), { offsetWidth: o, offsetHeight: s } = t;\n return Math.round(e) !== o || Math.round(n) !== s;\n}, No = (t, e, n) => {\n const o = b(e), s = y(\n t,\n o && he(e)\n ), r = { x: 0, y: 0 };\n if (o) {\n const a = y(e, !0);\n r.x = a.x + e.clientLeft, r.y = a.y + e.clientTop;\n }\n return {\n x: s.left + n.x - r.x,\n y: s.top + n.y - r.y,\n width: s.width,\n height: s.height\n };\n};\nlet B = 0, V = 0;\nconst h = /* @__PURE__ */ new Map(), ye = (t, e) => {\n let n = e ? B : V;\n if (e) {\n const o = ye(t), s = h.get(o) || /* @__PURE__ */ new Map();\n h.has(o) || h.set(o, s), O(s) && !s.has(e) ? (s.set(e, n), B += 1) : n = s.get(e);\n } else {\n const o = t.id || t;\n h.has(o) ? n = h.get(o) : (h.set(o, n), V += 1);\n }\n return n;\n}, we = (t) => Array.isArray(t) || !1, Co = (t) => u(t) && t.nodeName === \"CANVAS\" || !1, Ae = (t) => b(t) && !!t.shadowRoot || !1, To = (t) => {\n if (!u(t)) return !1;\n const { top: e, bottom: n } = y(t), { clientHeight: o } = w(t);\n return e <= o && n >= 0;\n}, Mo = (t) => {\n if (!i(t)) return !1;\n const { clientWidth: e, clientHeight: n } = w(t), { top: o, left: s, bottom: r, right: a } = y(t, !0);\n return o >= 0 && s >= 0 && r <= n && a <= e;\n}, Do = (t) => we(t) && t.every(i) || !1, Lo = (t) => typeof t == \"function\" || !1, Oo = (t) => v(t) && t.constructor.name === \"HTMLCollection\" || !1, xo = (t) => b(t) && t.tagName === \"IMG\" || !1, zo = (t) => {\n if (!N(t)) return !1;\n try {\n JSON.parse(t);\n } catch {\n return !1;\n }\n return !0;\n}, Io = (t) => v(t) && t.constructor.name === \"WeakMap\" || !1, Po = (t) => u(t) && [\"SVG\", \"Image\", \"Video\", \"Canvas\"].some(\n (e) => t.constructor.name.includes(e)\n) || !1, Fo = (t) => v(t) && t.constructor.name === \"NodeList\" || !1, Bo = (t) => w(t).dir === \"rtl\", Vo = (t) => u(t) && t.constructor.name.includes(\"SVG\") || !1, Se = (t, e) => !t || !e ? null : t.closest(e) || Se(t.getRootNode().host, e) || null, Ho = (t, e) => i(t) ? t : (i(e) ? e : d()).querySelector(t), ke = (t, e) => (u(e) ? e : d()).getElementsByTagName(\n t\n), Uo = (t) => [...ke(\"*\", t)].filter(Ae), Wo = (t, e) => d(e).getElementById(t), Ro = (t, e) => (e && u(e) ? e : d()).getElementsByClassName(\n t\n);\nexport {\n Jn as ArrayFrom,\n H as DOMContentLoadedEvent,\n nt as DOMMouseScrollEvent,\n L as Data,\n oo as Float32ArrayFrom,\n so as Float64ArrayFrom,\n C as ObjectAssign,\n S as ObjectEntries,\n fo as ObjectFromEntries,\n io as ObjectHasOwn,\n uo as ObjectKeys,\n lo as ObjectValues,\n bo as Timer,\n J as abortEvent,\n Kn as addClass,\n yn as addEventListener,\n Zt as animationDelay,\n Gt as animationDuration,\n T as animationEndEvent,\n U as animationName,\n Ce as ariaChecked,\n Me as ariaDescribedBy,\n Te as ariaDescription,\n De as ariaExpanded,\n Le as ariaHasPopup,\n $ as ariaHidden,\n Oe as ariaLabel,\n xe as ariaLabelledBy,\n ze as ariaModal,\n Ie as ariaPressed,\n Pe as ariaSelected,\n Be as ariaValueMax,\n Fe as ariaValueMin,\n Ve as ariaValueNow,\n He as ariaValueText,\n X as beforeunloadEvent,\n An as bezierEasings,\n Y as blurEvent,\n I as camelCase,\n Yn as capitalize,\n tt as changeEvent,\n Se as closest,\n et as contextmenuEvent,\n po as createCustomEvent,\n ne as createElement,\n oe as createElementNS,\n G as dispatchEvent,\n to as distinct,\n Zn as documentBody,\n _n as documentElement,\n $n as documentHead,\n We as dragEvent,\n qe as dragendEvent,\n Qe as dragenterEvent,\n je as dragleaveEvent,\n Ke as dragoverEvent,\n Re as dragstartEvent,\n eo as emulateAnimationEnd,\n no as emulateTransitionEnd,\n ot as errorEvent,\n ro as focus,\n st as focusEvent,\n Xe as focusEvents,\n qt as focusableSelector,\n rt as focusinEvent,\n ct as focusoutEvent,\n at as gesturechangeEvent,\n it as gestureendEvent,\n ut as gesturestartEvent,\n j as getAttribute,\n Hn as getAttributeNS,\n y as getBoundingClientRect,\n Uo as getCustomElements,\n d as getDocument,\n wo as getDocumentBody,\n w as getDocumentElement,\n Ao as getDocumentHead,\n se as getElementAnimationDelay,\n re as getElementAnimationDuration,\n Wo as getElementById,\n f as getElementStyle,\n ce as getElementTransitionDelay,\n ae as getElementTransitionDuration,\n Ro as getElementsByClassName,\n ke as getElementsByTagName,\n Xn as getInstance,\n fe as getNodeName,\n So as getNodeScroll,\n ko as getOffsetParent,\n k as getParentNode,\n No as getRectRelativeToOffsetParent,\n ye as getUID,\n ge as getWindow,\n ee as hasAttribute,\n Un as hasAttributeNS,\n Gn as hasClass,\n de as hasFocusTrap,\n On as isApple,\n we as isArray,\n Co as isCanvas,\n Ae as isCustomElement,\n q as isDocument,\n i as isElement,\n To as isElementInScrollRange,\n Mo as isElementInViewport,\n Do as isElementsArray,\n xn as isFirefox,\n Lo as isFunction,\n Oo as isHTMLCollection,\n b as isHTMLElement,\n xo as isHTMLImageElement,\n zo as isJSON,\n O as isMap,\n Po as isMedia,\n Ln as isMobile,\n u as isNode,\n Fo as isNodeList,\n ie as isNumber,\n v as isObject,\n Bo as isRTL,\n Vo as isSVGElement,\n he as isScaledElement,\n pe as isShadowRoot,\n N as isString,\n me as isTableElement,\n Io as isWeakMap,\n Xt as isWebKit,\n K as isWindow,\n co as kebabCase,\n tn as keyAlt,\n en as keyArrowDown,\n on as keyArrowLeft,\n sn as keyArrowRight,\n nn as keyArrowUp,\n rn as keyBackspace,\n cn as keyCapsLock,\n an as keyControl,\n un as keyDelete,\n ln as keyEnter,\n fn as keyEscape,\n pn as keyInsert,\n gn as keyMeta,\n dn as keyNumpadEnter,\n mn as keyPause,\n vn as keyScrollLock,\n bn as keyShift,\n En as keySpace,\n hn as keyTab,\n Ye as keyboardEventKeys,\n lt as keydownEvent,\n dt as keypressEvent,\n ft as keyupEvent,\n pt as loadEvent,\n Ge as loadstartEvent,\n ve as matches,\n _e as mouseClickEvents,\n $e as mouseHoverEvents,\n Ze as mouseSwipeEvents,\n gt as mouseclickEvent,\n mt as mousedblclickEvent,\n vt as mousedownEvent,\n ht as mouseenterEvent,\n Et as mousehoverEvent,\n wt as mouseinEvent,\n yt as mouseleaveEvent,\n kt as mousemoveEvent,\n At as mouseoutEvent,\n St as mouseoverEvent,\n bt as mouseupEvent,\n Nt as mousewheelEvent,\n Ct as moveEvent,\n Ue as nativeEvents,\n Yt as noop,\n ao as normalizeOptions,\n P as normalizeValue,\n Q as off,\n Sn as offsetHeight,\n kn as offsetWidth,\n R as on,\n te as one,\n Tt as orientationchangeEvent,\n go as passiveHandler,\n Mt as pointercancelEvent,\n Dt as pointerdownEvent,\n Lt as pointerleaveEvent,\n Ot as pointermoveEvent,\n xt as pointerupEvent,\n Ho as querySelector,\n ue as querySelectorAll,\n zt as readystatechangeEvent,\n mo as reflow,\n Qn as removeAttribute,\n jn as removeAttributeNS,\n qn as removeClass,\n wn as removeEventListener,\n It as resetEvent,\n Pt as resizeEvent,\n Ht as scrollEvent,\n Nn as scrollHeight,\n Cn as scrollWidth,\n Ft as selectEvent,\n Bt as selectendEvent,\n Vt as selectstartEvent,\n Wn as setAttribute,\n Rn as setAttributeNS,\n vo as setElementStyle,\n Ut as submitEvent,\n zn as support3DTransform,\n Bn as supportAnimation,\n In as supportPassive,\n Fn as supportTouch,\n Pn as supportTransform,\n Vn as supportTransition,\n Tn as tabindex,\n Eo as toLowerCase,\n ho as toUpperCase,\n yo as toggleFocusTrap,\n Je as touchEvents,\n Qt as touchcancelEvent,\n jt as touchendEvent,\n Rt as touchmoveEvent,\n Wt as touchstartEvent,\n $t as transitionDelay,\n _t as transitionDuration,\n M as transitionEndEvent,\n W as transitionProperty,\n Kt as unloadEvent,\n Dn as userAgent,\n Mn as userAgentData,\n Ne as version\n};\n//# sourceMappingURL=shorty.mjs.map\n","const g = \"2.0.8\", e = {}, f = (t) => {\n const { type: n, currentTarget: c } = t;\n e[n].forEach((a, s) => {\n c === s && a.forEach((o, i) => {\n i.apply(s, [t]), typeof o == \"object\" && o.once && r(s, n, i, o);\n });\n });\n}, E = (t, n, c, a) => {\n e[n] || (e[n] = /* @__PURE__ */ new Map());\n const s = e[n];\n s.has(t) || s.set(t, /* @__PURE__ */ new Map());\n const o = s.get(\n t\n ), { size: i } = o;\n o.set(c, a), i || t.addEventListener(\n n,\n f,\n a\n );\n}, r = (t, n, c, a) => {\n const s = e[n], o = s && s.get(t), i = o && o.get(c), d = i !== void 0 ? i : a;\n o && o.has(c) && o.delete(c), s && (!o || !o.size) && s.delete(t), (!s || !s.size) && delete e[n], (!o || !o.size) && t.removeEventListener(\n n,\n f,\n d\n );\n}, M = E, p = r;\nexport {\n E as addListener,\n f as globalListener,\n p as off,\n M as on,\n e as registry,\n r as removeListener,\n g as version\n};\n//# sourceMappingURL=event-listener.mjs.map\n","/**\n * Global namespace for most components `fade` class.\n */\nconst fadeClass = \"fade\";\nexport default fadeClass;\n","/**\n * Global namespace for most components `show` class.\n */\nconst showClass = \"show\";\nexport default showClass;\n","/**\n * Global namespace for most components `dismiss` option.\n */\nconst dataBsDismiss = \"data-bs-dismiss\";\nexport default dataBsDismiss;\n","/** @type {string} */\nconst alertString = \"alert\";\nexport default alertString;\n","/** @type {string} */\nconst alertComponent = \"Alert\";\nexport default alertComponent;\n","import { getAttribute, hasClass } from \"@thednp/shorty\";\n\n/**\n * Check if interactive element is disabled.\n * @param target either a `',\n});\n\n/**\n * Static method which returns an existing `Popover` instance associated\n * to a target `Element`.\n */\nconst getPopoverInstance = (element: Element) =>\n getInstance(element, popoverComponent);\n\n/**\n * A `Popover` initialization callback.\n */\nconst popoverInitCallback = (element: Element) => new Popover(element);\n\n// POPOVER DEFINITION\n// ==================\n/** Returns a new `Popover` instance. */\nexport default class Popover extends Tooltip {\n static selector = popoverSelector;\n static init = popoverInitCallback;\n static getInstance = getPopoverInstance;\n static styleTip = styleTip;\n declare options: PopoverOptions;\n\n /**\n * @param target the target element\n * @param config the instance options\n */\n constructor(target: Element | string, config?: Partial) {\n super(target, config);\n }\n /**\n * Returns component name string.\n */\n get name() {\n return popoverComponent;\n }\n /**\n * Returns component default options.\n */\n get defaults() {\n return popoverDefaults;\n }\n\n /* extend original `show()` */\n show = () => {\n super.show();\n // btn only exists within dismissible popover\n const { options, btn } = this;\n // istanbul ignore else @preserve\n if (options.dismissible && btn) setTimeout(() => focus(btn), 17);\n };\n}\n","/** @type {string} */\nconst scrollspyString = \"scrollspy\";\nexport default scrollspyString;\n","/** @type {string} */\nconst scrollspyComponent = \"ScrollSpy\";\nexport default scrollspyComponent;\n","/* Native JavaScript for Bootstrap 5 | ScrollSpy\n------------------------------------------------ */\nimport {\n addClass,\n closest,\n createCustomEvent,\n dispatchEvent,\n getAttribute,\n getBoundingClientRect,\n getDocument,\n getDocumentElement,\n getElementById,\n getElementsByTagName,\n getInstance,\n hasClass,\n mouseclickEvent,\n MouseEvent,\n querySelector,\n removeClass,\n} from \"@thednp/shorty\";\n\nimport PositionObserver from \"@thednp/position-observer\";\nimport { addListener, removeListener } from \"@thednp/event-listener\";\n\nimport activeClass from \"~/strings/activeClass\";\nimport scrollspyString from \"~/strings/scrollspyString\";\nimport scrollspyComponent from \"~/strings/scrollspyComponent\";\nimport isDisabled from \"~/util/isDisabled\";\nimport BaseComponent from \"./base-component\";\nimport { ScrollSpyEvent, ScrollSpyOptions } from \"~/interface/scrollspy\";\n\n// SCROLLSPY PRIVATE GC\n// ====================\nconst scrollspySelector = '[data-bs-spy=\"scroll\"]';\nconst scrollSpyAnchorSelector = \"[href]\";\n\nconst scrollspyDefaults: Partial = {\n offset: 10,\n target: undefined,\n};\n\ntype ScrollSpyEventProps = {\n relatedTarget: HTMLElement;\n};\n\n/**\n * Static method which returns an existing `ScrollSpy` instance associated\n * to a target `Element`.\n */\nconst getScrollSpyInstance = (element: Element) =>\n getInstance(element, scrollspyComponent);\n\n/**\n * A `ScrollSpy` initialization callback.\n */\nconst scrollspyInitCallback = (element: Element) => new ScrollSpy(element);\n\n// SCROLLSPY CUSTOM EVENT\n// ======================\nconst activateScrollSpy = createCustomEvent<\n ScrollSpyEventProps,\n ScrollSpyEvent\n>(`activate.bs.${scrollspyString}`);\n\n// SCROLLSPY PRIVATE METHODS\n// =========================\n/**\n * Update the state of all items.\n *\n * @param self the `ScrollSpy` instance\n */\nconst updateSpyTargets = (self: ScrollSpy) => {\n const {\n target,\n _itemsLength,\n _observables,\n } = self;\n\n const links = getElementsByTagName(\"A\", target);\n const doc = getDocument(target);\n\n // only update items once or with each mutation\n // istanbul ignore else @preserve\n if (!links.length || _itemsLength === _observables.size) return;\n // reset arrays & update\n _observables.clear();\n\n Array.from(links).forEach((link) => {\n const hash = getAttribute(link, \"href\")?.slice(1);\n const targetItem = hash?.length ? doc.getElementById(hash) : null;\n\n if (targetItem && !isDisabled(link)) {\n self._observables.set(targetItem, link);\n }\n });\n self._itemsLength = self._observables.size;\n};\n\n/**\n * Clear all items of the target.\n *\n * @param target a single item\n */\nconst clear = (target: Element) => {\n Array.from(getElementsByTagName(\"A\", target)).forEach(\n (item) => {\n if (hasClass(item, activeClass)) removeClass(item, activeClass);\n },\n );\n};\n\n/**\n * Activates a new item.\n *\n * @param self the `ScrollSpy` instance\n * @param item a single item\n */\nconst activate = (self: ScrollSpy, item: HTMLElement) => {\n const { target, element } = self;\n\n // istanbul ignore else @preserve\n clear(target);\n\n self._activeItem = item;\n addClass(item, activeClass);\n\n // activate all parents\n let parentItem = item;\n while (parentItem !== target) {\n parentItem = parentItem.parentElement as HTMLElement;\n if (\n [\"nav\", \"dropdown-menu\", \"list-group\"].some((c) =>\n hasClass(parentItem, c)\n )\n ) {\n const parentLink = parentItem.previousElementSibling as\n | HTMLElement\n | null;\n\n // istanbul ignore else @preserve\n if (parentLink && !hasClass(parentLink, activeClass)) {\n addClass(parentLink, activeClass);\n }\n }\n }\n\n // dispatch\n activateScrollSpy.relatedTarget = item;\n dispatchEvent(element, activateScrollSpy);\n};\n\nconst getOffset = (self: ScrollSpy, target: HTMLElement) => {\n const { scrollTarget, element, options } = self;\n\n return (scrollTarget !== element\n ? getBoundingClientRect(target).top + scrollTarget.scrollTop\n : target.offsetTop) - (options.offset as number || 10);\n};\n\n// SCROLLSPY DEFINITION\n// ====================\n/** Returns a new `ScrollSpy` instance. */\nexport default class ScrollSpy extends BaseComponent {\n static selector = scrollspySelector;\n static init = scrollspyInitCallback;\n static getInstance = getScrollSpyInstance;\n declare element: HTMLElement;\n declare options: ScrollSpyOptions;\n declare target: HTMLElement;\n declare scrollTarget: HTMLElement;\n declare _itemsLength: number;\n declare _activeItem: HTMLElement | null;\n declare _observables: Map;\n declare _observer: PositionObserver; //| IntersectionObserver;\n\n /**\n * @param target the target element\n * @param config the instance options\n */\n constructor(\n target: Element | string,\n config?: Partial,\n ) {\n super(target, config);\n\n // initialization element & options\n const { element, options } = this;\n\n // get target\n const spyTarget = querySelector(\n options.target,\n getDocument(element),\n );\n\n // invalidate\n if (!spyTarget) return;\n this.target = spyTarget;\n\n // set initial state\n this.scrollTarget = element.clientHeight < element.scrollHeight\n ? element\n : getDocumentElement(element);\n this._observables = new Map();\n\n // run an initial burst, we need to know the targets\n this.refresh();\n // updateSpyTargets(this);\n\n // create observer\n this._observer = new PositionObserver(() => {\n requestAnimationFrame(() => this.refresh());\n }, {\n root: this.scrollTarget,\n });\n\n // add event handlers\n this._toggleEventListeners(true);\n }\n\n /* eslint-disable */\n /**\n * Returns component name string.\n */\n get name() {\n return scrollspyComponent;\n }\n /**\n * Returns component default options.\n */\n get defaults() {\n return scrollspyDefaults;\n }\n /* eslint-enable */\n\n // SCROLLSPY PUBLIC METHODS\n // ========================\n /** Updates all items. */\n refresh = () => {\n const { target, scrollTarget } = this;\n // check if target is visible and invalidate\n // istanbul ignore if @preserve\n if (!target || target.offsetHeight === 0) return;\n\n updateSpyTargets(this);\n const { _itemsLength, _observables, _activeItem } = this;\n\n // istanbul ignore if @preserve\n if (!_itemsLength) return;\n const entries = _observables.entries().toArray();\n\n const { scrollTop, scrollHeight, clientHeight } = scrollTarget;\n\n if (scrollTop >= scrollHeight - clientHeight) {\n const newActiveItem = entries[_itemsLength - 1]?.[1];\n\n // istanbul ignore else @preserve\n if (_activeItem !== newActiveItem) activate(this, newActiveItem);\n return;\n }\n\n const firstOffset = entries[0]?.[0]\n ? getOffset(this, entries[0][0])\n : /* istanbul ignore next */ null;\n if (\n firstOffset !== null && scrollTop < firstOffset &&\n firstOffset > 0\n ) {\n this._activeItem = null;\n clear(target);\n return;\n }\n\n for (let i = 0; i < _itemsLength; i += 1) {\n const [targetItem, item] = entries[i];\n const offsetTop = getOffset(this, targetItem);\n const nextTarget = entries[i + 1]?.[0];\n const nextOffsetTop = nextTarget\n ? getOffset(this, nextTarget)\n : /* istanbul ignore next */ null;\n\n // istanbul ignore else @preserve\n if (\n _activeItem !== item &&\n scrollTop >= offsetTop &&\n (nextOffsetTop === null || scrollTop < nextOffsetTop)\n ) {\n activate(this, item);\n break;\n }\n }\n };\n\n /**\n * This method provides an event handle\n * for scrollspy\n * @param e the event listener object\n */\n _scrollTo = (e: MouseEvent) => {\n const item = closest(e.target, scrollSpyAnchorSelector);\n const hash = item && getAttribute(item, \"href\")?.slice(1);\n const targetItem = hash && getElementById(hash, this.target);\n\n // istanbul ignore else @preserve\n if (targetItem) {\n this.scrollTarget.scrollTo({\n top: targetItem.offsetTop,\n behavior: \"smooth\",\n });\n e.preventDefault();\n }\n };\n\n /**\n * Toggles on/off the component observer.\n *\n * @param self the ScrollSpy instance\n * @param add when `true`, listener is added\n */\n _toggleEventListeners = (\n add?: boolean,\n ) => {\n const { target, _observables, _observer, _scrollTo } = this;\n const action = add ? addListener : removeListener;\n action(target, mouseclickEvent, _scrollTo);\n\n if (add) {\n _observables?.forEach((_, targetItem) => _observer.observe(targetItem));\n } else _observer.disconnect();\n };\n\n /** Removes `ScrollSpy` from the target element. */\n dispose() {\n this._toggleEventListeners();\n super.dispose();\n }\n}\n","/** @type {string} */\nconst tabString = \"tab\";\nexport default tabString;\n","/** @type {string} */\nconst tabComponent = \"Tab\";\nexport default tabComponent;\n","/* Native JavaScript for Bootstrap 5 | Tab\n------------------------------------------ */\nimport {\n addClass,\n ariaSelected,\n closest,\n createCustomEvent,\n dispatchEvent,\n emulateTransitionEnd,\n getElementsByClassName,\n getInstance,\n hasClass,\n isHTMLElement,\n mouseclickEvent,\n MouseEvent,\n querySelector,\n reflow,\n removeClass,\n setAttribute,\n Timer,\n} from \"@thednp/shorty\";\n\nimport { addListener, removeListener } from \"@thednp/event-listener\";\n\nimport collapsingClass from \"~/strings/collapsingClass\";\nimport activeClass from \"~/strings/activeClass\";\nimport fadeClass from \"~/strings/fadeClass\";\nimport showClass from \"~/strings/showClass\";\nimport dropdownClasses from \"~/strings/dropdownClasses\";\nimport dataBsToggle from \"~/strings/dataBsToggle\";\nimport tabString from \"~/strings/tabString\";\nimport tabComponent from \"~/strings/tabComponent\";\nimport getTargetElement from \"~/util/getTargetElement\";\nimport BaseComponent from \"./base-component\";\nimport type { /* TabOptions, */ TabEvent } from \"~/interface/tab\";\n\n// TAB PRIVATE GC\n// ================\nconst tabSelector = `[${dataBsToggle}=\"${tabString}\"]`;\n\n/**\n * Static method which returns an existing `Tab` instance associated\n * to a target `Element`.\n */\nconst getTabInstance = (element: Element) =>\n getInstance(element, tabComponent);\n\n/** A `Tab` initialization callback. */\nconst tabInitCallback = (element: Element) => new Tab(element);\n\ntype TabEventProps = {\n relatedTarget: Element & EventTarget | undefined;\n};\n\n// TAB CUSTOM EVENTS\n// =================\nconst showTabEvent = createCustomEvent(\n `show.bs.${tabString}`,\n);\nconst shownTabEvent = createCustomEvent(\n `shown.bs.${tabString}`,\n);\nconst hideTabEvent = createCustomEvent(\n `hide.bs.${tabString}`,\n);\nconst hiddenTabEvent = createCustomEvent(\n `hidden.bs.${tabString}`,\n);\n\ninterface TabPrivate {\n tab: HTMLElement | null;\n content: HTMLElement | null;\n currentHeight: number;\n nextHeight: number;\n}\n\n/**\n * Stores the current active tab and its content\n * for a given `.nav` element.\n */\nconst tabPrivate: Map = new Map();\n\n// TAB PRIVATE METHODS\n// ===================\n/**\n * Executes after tab transition has finished.\n *\n * @param self the `Tab` instance\n */\nconst triggerTabEnd = (self: Tab) => {\n const { tabContent, nav } = self;\n\n // istanbul ignore else @preserve\n if (tabContent && hasClass(tabContent, collapsingClass)) {\n tabContent.style.height = \"\";\n removeClass(tabContent, collapsingClass);\n }\n\n // istanbul ignore else @preserve\n if (nav) Timer.clear(nav);\n};\n\n/**\n * Executes before showing the tab content.\n *\n * @param self the `Tab` instance\n */\nconst triggerTabShow = (self: Tab) => {\n const { element, tabContent, content: nextContent, nav } = self;\n const { tab } = (isHTMLElement(nav) && tabPrivate.get(nav)) ||\n // istanbul ignore next @preserve\n { tab: null };\n\n // istanbul ignore else @preserve\n if (tabContent && nextContent && hasClass(nextContent, fadeClass)) {\n const { currentHeight, nextHeight } = tabPrivate.get(element) ||\n // istanbul ignore next @preserve\n { currentHeight: 0, nextHeight: 0 };\n // istanbul ignore else @preserve: vitest won't validate this branch\n if (currentHeight !== nextHeight) {\n // enables height animation\n setTimeout(() => {\n tabContent.style.height = `${nextHeight}px`;\n reflow(tabContent);\n emulateTransitionEnd(tabContent, () => triggerTabEnd(self));\n }, 50);\n } else {\n triggerTabEnd(self);\n }\n } else if (nav) Timer.clear(nav);\n\n shownTabEvent.relatedTarget = tab as HTMLElement | undefined;\n\n dispatchEvent(element, shownTabEvent);\n};\n\n/**\n * Executes before hiding the tab.\n *\n * @param self the `Tab` instance\n */\nconst triggerTabHide = (self: Tab) => {\n const { element, content: nextContent, tabContent, nav } = self;\n const { tab, content } = (nav && tabPrivate.get(nav)) ||\n // istanbul ignore next @preserve\n { tab: null, content: null };\n let currentHeight = 0;\n\n // istanbul ignore else @preserve\n if (tabContent && nextContent && hasClass(nextContent, fadeClass)) {\n [content, nextContent].forEach((c) => {\n // istanbul ignore else @preserve\n if (c) addClass(c, \"overflow-hidden\");\n });\n currentHeight = content\n ? content.scrollHeight\n : /* istanbul ignore next @preserve */ 0;\n }\n\n // update relatedTarget and dispatch event\n showTabEvent.relatedTarget = tab as HTMLElement | undefined;\n hiddenTabEvent.relatedTarget = element as HTMLElement;\n dispatchEvent(element, showTabEvent);\n\n // istanbul ignore if @preserve\n if (showTabEvent.defaultPrevented) return;\n // istanbul ignore else @preserve\n if (nextContent) addClass(nextContent, activeClass);\n // istanbul ignore else @preserve\n if (content) removeClass(content, activeClass);\n\n // istanbul ignore else @preserve\n if (tabContent && nextContent && hasClass(nextContent, fadeClass)) {\n const nextHeight = nextContent.scrollHeight;\n tabPrivate.set(element, {\n currentHeight,\n nextHeight,\n tab: null,\n content: null,\n });\n\n addClass(tabContent, collapsingClass);\n tabContent.style.height = `${currentHeight}px`;\n reflow(tabContent);\n [content, nextContent].forEach((c) => {\n // istanbul ignore else @preserve\n if (c) removeClass(c, \"overflow-hidden\");\n });\n }\n\n if (nextContent && nextContent && hasClass(nextContent, fadeClass)) {\n setTimeout(() => {\n addClass(nextContent, showClass);\n emulateTransitionEnd(nextContent, () => {\n triggerTabShow(self);\n });\n }, 1);\n } else {\n // istanbul ignore else @preserve\n if (nextContent) addClass(nextContent, showClass);\n triggerTabShow(self);\n }\n\n // istanbul ignore else @preserve\n if (tab) dispatchEvent(tab, hiddenTabEvent);\n};\n\n/**\n * Returns the current active tab and its target content.\n *\n * @param self the `Tab` instance\n * @returns the query result\n */\nconst getActiveTab = (\n self: Tab,\n): { tab: HTMLElement | null; content: HTMLElement | null } => {\n const { nav } = self;\n // istanbul ignore next @preserve\n if (!isHTMLElement(nav)) {\n return { tab: null, content: null };\n }\n\n const activeTabs = getElementsByClassName(\n activeClass,\n nav,\n );\n let tab: HTMLElement | null = null;\n // istanbul ignore else @preserve\n if (\n activeTabs.length === 1 &&\n !dropdownClasses.some((c) =>\n hasClass(activeTabs[0].parentElement as HTMLElement, c)\n )\n ) {\n [tab] = activeTabs;\n } else if (activeTabs.length > 1) {\n tab = activeTabs[activeTabs.length - 1];\n }\n const content = isHTMLElement(tab) ? getTargetElement(tab) : null;\n return { tab, content };\n};\n\n/**\n * Returns a parent dropdown.\n *\n * @param element the `Tab` element\n * @returns the parent dropdown\n */\nconst getParentDropdown = (element?: HTMLElement) => {\n // istanbul ignore next @preserve\n if (!isHTMLElement(element)) return null;\n const dropdown = closest(element, `.${dropdownClasses.join(\",.\")}`);\n return dropdown\n ? querySelector(`.${dropdownClasses[0]}-toggle`, dropdown)\n : null;\n};\n\n// TAB EVENT HANDLER\n// =================\n/**\n * Handles the `click` event listener.\n *\n * @param e the `Event` object\n */\nconst tabClickHandler = (e: MouseEvent) => {\n const element = closest(e.target, tabSelector);\n const self = element && getTabInstance(element);\n\n // istanbul ignore if @preserve\n if (!self) return;\n e.preventDefault();\n self.show();\n};\n\n// TAB DEFINITION\n// ==============\n/** Creates a new `Tab` instance. */\nexport default class Tab extends BaseComponent {\n static selector = tabSelector;\n static init = tabInitCallback;\n static getInstance = getTabInstance;\n declare element: HTMLElement;\n declare nav: HTMLElement | null;\n declare content: HTMLElement | null;\n declare tabContent: HTMLElement | null;\n declare nextContent: HTMLElement | null;\n declare dropdown: HTMLElement | null;\n\n /** @param target the target element */\n constructor(target: Element | string) {\n super(target);\n\n // initialization element\n const { element } = this;\n const content = getTargetElement(element);\n\n // no point initializing a tab without a corresponding content\n // istanbul ignore else @preserve\n if (!content) return;\n\n const nav = closest(element, \".nav\");\n const container = closest(\n content as HTMLElement,\n \".tab-content\",\n );\n\n this.nav = nav;\n this.content = content;\n this.tabContent = container;\n\n // event targets\n this.dropdown = getParentDropdown(element);\n\n // show first Tab instance of none is shown\n // suggested on #432\n const { tab } = getActiveTab(this);\n if (nav && !tab) {\n const firstTab = querySelector(tabSelector, nav);\n const firstTabContent = firstTab && getTargetElement(firstTab);\n\n // istanbul ignore else @preserve\n if (firstTabContent) {\n addClass(firstTab, activeClass);\n addClass(firstTabContent, showClass);\n addClass(firstTabContent, activeClass);\n setAttribute(element, ariaSelected, \"true\");\n }\n }\n\n // add event listener\n this._toggleEventListeners(true);\n }\n\n /**\n * Returns component name string.\n */\n get name() {\n return tabComponent;\n }\n\n // TAB PUBLIC METHODS\n // ==================\n /** Shows the tab to the user. */\n show() {\n const { element, content: nextContent, nav, dropdown } = this;\n\n // istanbul ignore else @preserve\n if ((nav && Timer.get(nav)) || hasClass(element, activeClass)) return;\n const { tab, content } = getActiveTab(this);\n\n // istanbul ignore else @preserve\n if (nav && tab) {\n tabPrivate.set(nav, { tab, content, currentHeight: 0, nextHeight: 0 });\n }\n\n // update relatedTarget and dispatch\n hideTabEvent.relatedTarget = element as HTMLElement;\n\n // istanbul ignore if @preserve\n if (!isHTMLElement(tab)) return;\n\n dispatchEvent(tab, hideTabEvent);\n\n // istanbul ignore else @preserve\n if (hideTabEvent.defaultPrevented) return;\n\n addClass(element, activeClass);\n setAttribute(element, ariaSelected, \"true\");\n\n const activeDropdown = isHTMLElement(tab) && getParentDropdown(tab);\n if (activeDropdown && hasClass(activeDropdown, activeClass)) {\n removeClass(activeDropdown, activeClass);\n }\n\n // istanbul ignore else @preserve\n if (nav) {\n const toggleTab = () => {\n // istanbul ignore else @preserve\n if (tab) {\n removeClass(tab, activeClass);\n setAttribute(tab, ariaSelected, \"false\");\n }\n if (dropdown && !hasClass(dropdown, activeClass)) {\n addClass(dropdown, activeClass);\n }\n };\n\n if (\n content &&\n (hasClass(content, fadeClass) ||\n (nextContent && hasClass(nextContent, fadeClass)))\n ) {\n Timer.set(nav, toggleTab, 1);\n } else toggleTab();\n }\n\n // istanbul ignore else @preserve\n if (content) {\n removeClass(content, showClass);\n if (hasClass(content, fadeClass)) {\n emulateTransitionEnd(content, () => triggerTabHide(this));\n } else {\n triggerTabHide(this);\n }\n }\n }\n\n /**\n * Toggles on/off the `click` event listener.\n *\n * @param add when `true`, event listener is added\n */\n _toggleEventListeners = (add?: boolean) => {\n const action = add ? addListener : removeListener;\n action(this.element, mouseclickEvent, tabClickHandler);\n };\n\n /** Removes the `Tab` component from the target element. */\n dispose() {\n this._toggleEventListeners();\n super.dispose();\n }\n}\n","/** @type {string} */\nconst toastString = \"toast\";\nexport default toastString;\n","/** @type {string} */\nconst toastComponent = \"Toast\";\nexport default toastComponent;\n","/* Native JavaScript for Bootstrap 5 | Toast\n-------------------------------------------- */\nimport {\n addClass,\n createCustomEvent,\n dispatchEvent,\n emulateTransitionEnd,\n focusinEvent,\n focusoutEvent,\n getDocument,\n getInstance,\n hasClass,\n mouseclickEvent,\n mouseenterEvent,\n MouseEvent,\n mouseleaveEvent,\n querySelector,\n querySelectorAll,\n reflow,\n removeClass,\n Timer,\n} from \"@thednp/shorty\";\n\nimport { addListener, removeListener } from \"@thednp/event-listener\";\n\nimport fadeClass from \"~/strings/fadeClass\";\nimport showClass from \"~/strings/showClass\";\nimport dataBsDismiss from \"~/strings/dataBsDismiss\";\nimport dataBsToggle from \"~/strings/dataBsToggle\";\nimport toastString from \"~/strings/toastString\";\nimport toastComponent from \"~/strings/toastComponent\";\nimport getTargetElement from \"~/util/getTargetElement\";\nimport isDisabled from \"~/util/isDisabled\";\nimport BaseComponent from \"./base-component\";\nimport { ToastEvent, ToastOptions } from \"~/interface/toast\";\n\n// TOAST PRIVATE GC\n// ================\nconst toastSelector = `.${toastString}`;\nconst toastDismissSelector = `[${dataBsDismiss}=\"${toastString}\"]`;\nconst toastToggleSelector = `[${dataBsToggle}=\"${toastString}\"]`;\nconst showingClass = \"showing\";\n/** @deprecated */\nconst hideClass = \"hide\";\n\nconst toastDefaults = {\n animation: true,\n autohide: true,\n delay: 5000,\n};\n\n/**\n * Static method which returns an existing `Toast` instance associated\n * to a target `Element`.\n */\nconst getToastInstance = (element: Element) =>\n getInstance(element, toastComponent);\n\n/**\n * A `Toast` initialization callback.\n */\nconst toastInitCallback = (element: Element) => new Toast(element);\n\n// TOAST CUSTOM EVENTS\n// ===================\nconst showToastEvent = createCustomEvent, ToastEvent>(\n `show.bs.${toastString}`,\n);\nconst shownToastEvent = createCustomEvent, ToastEvent>(\n `shown.bs.${toastString}`,\n);\nconst hideToastEvent = createCustomEvent, ToastEvent>(\n `hide.bs.${toastString}`,\n);\nconst hiddenToastEvent = createCustomEvent, ToastEvent>(\n `hidden.bs.${toastString}`,\n);\n\n// TOAST PRIVATE METHODS\n// =====================\n/**\n * Executes after the toast is shown to the user.\n *\n * @param self the `Toast` instance\n */\nconst showToastComplete = (self: Toast) => {\n const { element, options } = self;\n removeClass(element, showingClass);\n Timer.clear(element, showingClass);\n\n dispatchEvent(element, shownToastEvent);\n // istanbul ignore else @preserve\n if (options.autohide) {\n Timer.set(element, () => self.hide(), options.delay, toastString);\n }\n};\n\n/**\n * Executes after the toast is hidden to the user.\n *\n * @param self the `Toast` instance\n */\nconst hideToastComplete = (self: Toast) => {\n const { element } = self;\n removeClass(element, showingClass);\n removeClass(element, showClass);\n addClass(element, hideClass); // B/C\n Timer.clear(element, toastString);\n dispatchEvent(element, hiddenToastEvent);\n};\n\n/**\n * Executes before hiding the toast.\n *\n * @param self the `Toast` instance\n */\nconst hideToast = (self: Toast) => {\n const { element, options } = self;\n addClass(element, showingClass);\n\n if (options.animation) {\n reflow(element as HTMLElement);\n emulateTransitionEnd(element, () => hideToastComplete(self));\n } else {\n hideToastComplete(self);\n }\n};\n\n/**\n * Executes before showing the toast.\n *\n * @param self the `Toast` instance\n */\nconst showToast = (self: Toast) => {\n const { element, options } = self;\n Timer.set(\n element,\n () => {\n removeClass(element, hideClass); // B/C\n reflow(element as HTMLElement);\n addClass(element, showClass);\n addClass(element, showingClass);\n\n if (options.animation) {\n emulateTransitionEnd(element, () => showToastComplete(self));\n } else {\n showToastComplete(self);\n }\n },\n 17,\n showingClass,\n );\n};\n\n// TOAST EVENT HANDLERS\n// ====================\n/**\n * Handles the `click` event listener for toast.\n *\n * @param e the `Event` object\n */\nfunction toastClickHandler(this: HTMLElement, e: Event) {\n const element = getTargetElement(this);\n const self = element && getToastInstance(element);\n\n // istanbul ignore if @preserve\n if (isDisabled(this)) return;\n // istanbul ignore if @preserve\n if (!self) return;\n // istanbul ignore else @preserve\n if (this.tagName === \"A\") e.preventDefault();\n self.relatedTarget = this;\n self.show();\n}\n\n/**\n * Executes when user interacts with the toast without closing it,\n * usually by hovering or focusing it.\n *\n * @param e the `Toast` instance\n */\nconst interactiveToastHandler = (e: MouseEvent) => {\n const element = e.target;\n const self = getToastInstance(element);\n const { type, relatedTarget } = e;\n\n // istanbul ignore if @preserve: a solid filter is required\n if (\n !self || element === relatedTarget ||\n element.contains(relatedTarget as Node)\n ) return;\n\n if ([mouseenterEvent, focusinEvent].includes(type)) {\n Timer.clear(element, toastString);\n } else {\n Timer.set(element, () => self.hide(), self.options.delay, toastString);\n }\n};\n\n// TOAST DEFINITION\n// ================\n/** Creates a new `Toast` instance. */\nexport default class Toast extends BaseComponent {\n static selector = toastSelector;\n static init = toastInitCallback;\n static getInstance = getToastInstance;\n declare element: HTMLElement;\n declare options: ToastOptions;\n declare dismiss: HTMLElement | null;\n declare triggers: HTMLElement[];\n declare relatedTarget: HTMLElement | null;\n\n /**\n * @param target the target `.toast` element\n * @param config the instance options\n */\n constructor(target: Element | string, config?: Partial) {\n super(target, config);\n const { element, options } = this;\n\n // set fadeClass, the options.animation will override the markup\n if (options.animation && !hasClass(element, fadeClass)) {\n addClass(element, fadeClass);\n } else if (!options.animation && hasClass(element, fadeClass)) {\n removeClass(element, fadeClass);\n }\n\n // dismiss button\n this.dismiss = querySelector(toastDismissSelector, element);\n\n // toast can have multiple triggering elements\n this.triggers = [\n ...querySelectorAll(\n toastToggleSelector,\n getDocument(element),\n ),\n ].filter(\n (btn) => getTargetElement(btn) === element,\n );\n\n // add event listener\n this._toggleEventListeners(true);\n }\n /**\n * Returns component name string.\n */\n get name() {\n return toastComponent;\n }\n /**\n * Returns component default options.\n */\n get defaults() {\n return toastDefaults;\n }\n /**\n * Returns *true* when toast is visible.\n */\n get isShown() {\n return hasClass(this.element, showClass);\n }\n\n // TOAST PUBLIC METHODS\n // ====================\n /** Shows the toast. */\n show = () => {\n const { element, isShown } = this;\n\n // istanbul ignore if @preserve\n if (!element || isShown) return;\n\n dispatchEvent(element, showToastEvent);\n if (!showToastEvent.defaultPrevented) showToast(this);\n };\n\n /** Hides the toast. */\n hide = () => {\n const { element, isShown } = this;\n\n // istanbul ignore if @preserve\n if (!element || !isShown) return;\n\n dispatchEvent(element, hideToastEvent);\n if (!hideToastEvent.defaultPrevented) hideToast(this);\n };\n\n /**\n * Toggles on/off the `click` event listener.\n *\n * @param add when `true`, it will add the listener\n */\n _toggleEventListeners = (add?: boolean) => {\n const action = add ? addListener : removeListener;\n const { element, triggers, dismiss, options, hide } = this;\n\n // istanbul ignore else @preserve\n if (dismiss) {\n action(dismiss, mouseclickEvent, hide);\n }\n\n // istanbul ignore else @preserve\n if (options.autohide) {\n [focusinEvent, focusoutEvent, mouseenterEvent, mouseleaveEvent].forEach(\n (e) => action(element, e, interactiveToastHandler),\n );\n }\n // istanbul ignore else @preserve\n if (triggers.length) {\n triggers.forEach((btn) => {\n action(btn, mouseclickEvent, toastClickHandler);\n });\n }\n };\n\n /** Removes the `Toast` component from the target element. */\n dispose() {\n const { element, isShown } = this;\n this._toggleEventListeners();\n Timer.clear(element, toastString);\n\n if (isShown) removeClass(element, showClass);\n\n super.dispose();\n }\n}\n","import { Data, getElementsByTagName, matches } from \"@thednp/shorty\";\n\nimport { addListener } from \"@thednp/event-listener\";\n\nimport Alert from \"../components/alert\";\nimport Button from \"../components/button\";\nimport Carousel from \"../components/carousel\";\nimport Collapse from \"../components/collapse\";\nimport Dropdown from \"../components/dropdown\";\nimport Modal from \"../components/modal\";\nimport Offcanvas from \"../components/offcanvas\";\nimport Popover from \"../components/popover\";\nimport ScrollSpy from \"../components/scrollspy\";\nimport Tab from \"../components/tab\";\nimport Toast from \"../components/toast\";\nimport Tooltip from \"../components/tooltip\";\n\nconst componentsList = new Map<\n string,\n | typeof Alert\n | typeof Button\n | typeof Carousel\n | typeof Collapse\n | typeof Dropdown\n | typeof Modal\n | typeof Offcanvas\n | typeof Popover\n | typeof ScrollSpy\n | typeof Tab\n | typeof Toast\n | typeof Tooltip\n>();\n\ntype Component =\n | Alert\n | Button\n | Carousel\n | Collapse\n | Dropdown\n | Modal\n | Offcanvas\n | Popover\n | ScrollSpy\n | Tab\n | Toast\n | Tooltip;\n\n[\n Alert,\n Button,\n Carousel,\n Collapse,\n Dropdown,\n Modal,\n Offcanvas,\n Popover,\n ScrollSpy,\n Tab,\n Toast,\n Tooltip,\n].forEach((c) => componentsList.set(c.prototype.name, c));\n\n/**\n * Initialize all matched `Element`s for one component.\n *\n * @param callback\n * @param collection\n */\nconst initComponentDataAPI = (\n callback: (el: Element) => Component,\n collection: HTMLCollectionOf | Element[],\n) => {\n [...collection].forEach((x) => callback(x));\n};\n\n/**\n * Remove one component from a target container element or all in the page.\n *\n * @param component the component name\n * @param context parent `Node`\n */\nconst removeComponentDataAPI = (component: string, context: ParentNode) => {\n const compData = Data.getAllFor(component) as Map;\n\n if (compData) {\n [...compData].forEach(([element, instance]) => {\n if (context.contains(element)) {\n (instance as T & { dispose: () => void }).dispose();\n }\n });\n }\n};\n\n/**\n * Initialize all BSN components for a target container.\n *\n * @param context parent `Node`\n */\nexport const initCallback = (context?: ParentNode) => {\n const lookUp = context && context.nodeName ? context : document;\n const elemCollection = [...getElementsByTagName(\"*\", lookUp)];\n\n componentsList.forEach((cs) => {\n const { init, selector } = cs;\n initComponentDataAPI(\n init,\n elemCollection.filter((item) => matches(item, selector)),\n );\n });\n};\n\n/**\n * Remove all BSN components for a target container.\n *\n * @param context parent `Node`\n */\nexport const removeDataAPI = (context?: ParentNode) => {\n const lookUp = context && context.nodeName ? context : document;\n\n componentsList.forEach((comp) => {\n removeComponentDataAPI(comp.prototype.name, lookUp);\n });\n};\n\n// Bulk initialize all components\nif (document.body) initCallback();\nelse {\n addListener(document, \"DOMContentLoaded\", () => initCallback(), {\n once: true,\n });\n}\n"],"names":["Me","De","$","ze","Ie","Pe","st","rt","ct","lt","ft","gt","vt","Et","ht","yt","Dt","Ot","xt","Wt","Re","qt","en","nn","on","sn","fn","_t","$t","M","W","On","t","e","Yt","R","n","o","s","Q","j","ee","Wn","Qn","Kn","qn","Gn","v","u","i","E","L","Xn","I","N","K","q","d","C","ne","G","f","ce","ae","no","r","a","l","ro","P","S","ao","p","c","g","A","uo","po","go","mo","vo","O","ie","m","bo","Eo","ue","x","le","de","yo","b","y","wo","w","So","pe","k","ge","me","ve","he","No","B","V","h","ye","we","To","Lo","Fo","Bo","Se","Ho","ke","Wo","Ro","fadeClass","showClass","dataBsDismiss","alertString","alertComponent","isDisabled","target","hasClass","getAttribute","Version","version","BaseComponent","config","element","isElement","isString","querySelector","prevInstance","Data","ObjectKeys","normalizeOptions","prop","alertSelector","alertDismissSelector","getAlertInstance","getInstance","alertInitCallback","Alert","closeAlertEvent","createCustomEvent","closedAlertEvent","alertTransitionEnd","self","dispatchEvent","dismiss","removeClass","emulateTransitionEnd","add","action","addListener","removeListener","close","mouseclickEvent","activeClass","dataBsToggle","buttonString","buttonComponent","buttonSelector","getButtonInstance","buttonInitCallback","Button","setAttribute","ariaPressed","isActive","addClass","dataBsTarget","carouselString","carouselComponent","dataBsParent","dataBsContainer","getTargetElement","targetAttr","doc","getDocument","att","attValue","closest","carouselSelector","carouselItem","dataBsSlideTo","dataBsSlide","pausedClass","carouselDefaults","getCarouselInstance","carouselInitCallback","Carousel","startX","currentX","endX","carouselSlideEvent","carouselSlidEvent","carouselTransitionEndHandler","index","direction","slides","options","activeItem","getActiveIndex","orientation","directionClass","Timer","carouselPauseHandler","carouselResumeHandler","carouselIndicatorHandler","newIndex","carouselControlsHandler","carouselKeyHandler","code","querySelectorAll","isElementInScrollRange","RTL","isRTL","keyArrowRight","keyArrowLeft","carouselDragHandler","carouselPointerDownHandler","controls","indicators","el","toggleCarouselTouchHandlers","carouselPointerMoveHandler","carouselPointerUpHandler","activateCarouselIndicator","pointermoveEvent","passiveHandler","pointerupEvent","getElementsByClassName","activeIndex","transitionItem","matches","ar","isPaused","idx","next","eventProperties","ObjectAssign","getElementTransitionDuration","reflow","touch","pause","interval","keyboard","mouseenterEvent","mouseleaveEvent","pointerdownEvent","touchstartEvent","dragstartEvent","arrow","indicator","keydownEvent","isAnimating","clone","collapsingClass","collapseString","collapseComponent","collapseSelector","collapseToggleSelector","collapseDefaults","getCollapseInstance","collapseInitCallback","Collapse","showCollapseEvent","shownCollapseEvent","hideCollapseEvent","hiddenCollapseEvent","expandCollapse","parent","triggers","noop","setElementStyle","btn","ariaExpanded","collapseContent","collapseClickHandler","trigger","isHTMLElement","activeCollapse","activeCollapseInstance","_","dropdownMenuClasses","dropdownComponent","dropdownMenuClass","isEmptyAnchor","parentAnchor","hasAttribute","dropdownString","dropupString","dropstartString","dropendString","dropdownClasses","dropdownSelector","getDropdownInstance","dropdownInitCallback","Dropdown","dropdownMenuEndClass","verticalClass","horizontalClass","menuFocusTags","dropdownDefaults","showDropdownEvent","shownDropdownEvent","hideDropdownEvent","hiddenDropdownEvent","updatedDropdownEvent","styleDropdown","menu","parentElement","offset","getElementStyle","menuEnd","style","positionClass","dropdownMargin","dropdownPosition","menuWidth","menuHeight","clientWidth","clientHeight","getDocumentElement","targetLeft","targetTop","targetWidth","targetHeight","getBoundingClientRect","leftFullExceed","rightFullExceed","bottomExceed","bottomFullExceed","topExceed","leftExceed","rightExceed","posAjust","margins","getMenuItems","firstElementChild","toggleDropdownDismiss","dropdownDismissHandler","focusEvent","dropdownPreventScroll","keyupEvent","dropdownKeyHandler","getCurrentOpenDropdown","currentParent","type","isForm","mousedownEvent","dropdownClickHandler","keyArrowDown","keyArrowUp","activeElement","open","menuItems","focus","keyEscape","PositionObserver","currentElement","currentInstance","modalString","modalComponent","offcanvasComponent","fixedTopClass","fixedBottomClass","stickyTopClass","positionStickyClass","getFixedItems","resetScrollbar","bd","getDocumentBody","fixedItems","fixed","measureScrollbar","innerWidth","getWindow","setScrollbar","overflow","bodyPad","sbWidth","itemPadValue","itemMValue","offcanvasString","popupContainer","createElement","appendPopup","customContainer","containerIsBody","isNode","lookup","BODY","removePopup","hasPopup","backdropString","modalBackdropClass","offcanvasBackdropClass","modalActiveSelector","offcanvasActiveSelector","overlay","getCurrentOpen","toggleOverlayType","isModal","targetClass","appendOverlay","hasFade","showOverlay","hideOverlay","removeOverlay","isVisible","modalSelector","modalToggleSelector","modalDismissSelector","modalStaticClass","modalDefaults","getModalInstance","modalInitCallback","Modal","showModalEvent","shownModalEvent","hideModalEvent","hiddenModalEvent","setModalScrollbar","scrollbarWidth","scrollHeight","modalHeight","modalScrollHeight","modalOverflow","padStyle","toggleModalDismiss","modalDismissHandler","modalKeyHandler","afterModalHide","relatedTarget","focusElement","toggleFocusTrap","afterModalShow","beforeModalShow","removeAttribute","ariaHidden","ariaModal","beforeModalHide","modalClickHandler","currentTarget","isStatic","modalDialog","backdrop","selectedText","targetInsideDialog","staticTransitionEnd","duration","overlayDelay","currentOpen","that","callback","offcanvasSelector","offcanvasToggleSelector","offcanvasDismissSelector","offcanvasTogglingClass","offcanvasDefaults","getOffcanvasInstance","offcanvasInitCallback","Offcanvas","showOffcanvasEvent","shownOffcanvasEvent","hideOffcanvasEvent","hiddenOffcanvasEvent","setOffCanvasScrollbar","toggleOffCanvasDismiss","offcanvasKeyDismissHandler","offcanvasDismissHandler","beforeOffcanvasShow","showOffcanvasComplete","beforeOffcanvasHide","hideOffcanvasComplete","offcanvasTriggerHandler","offCanvasDismiss","selection","visibleTrigger","isOpen","popoverString","popoverComponent","tooltipString","getTipTemplate","tipType","isTooltip","bodyClass","header","body","tipClassPositions","styleTip","tipClasses","tooltip","container","offsetParent","scrollLeft","scrollTop","getNodeScroll","tipWidth","tipHeight","htmlcw","htmlch","htmlow","placement","parentCWidth","parentOWidth","fixedParent","leftBoundry","rightBoundry","observerEntry","elemWidth","elemHeight","elemRectLeft","elemRectRight","elemRectTop","elemOffsetLeft","elemOffsetTop","getRectRelativeToOffsetParent","topPosition","bottomPosition","leftPosition","rightPosition","arrowTop","arrowLeft","arrowRight","arrowWidth","arrowHeight","arrowAdjust","horizontals","verticals","updatedTooltipEvent","toLowerCase","tooltipDefaults","dataOriginalTitle","tooltipComponent","setHtml","content","sanitizeFn","dirty","isFunction","tempDocument","isNodeList","isArray","createTip","id","title","template","animation","customClass","dismissible","btnClose","tipString","tipPositions","titleParts","contentParts","placementClass","tooltipTemplate","htmlMarkup","tooltipHeader","tooltipBody","tempTitle","tempContent","tempBtn","getElementContainer","majorBlockTags","containers","parentNode","getParentNode","isShadowRoot","isTableElement","tooltipSelector","titleAttr","getTooltipInstance","tooltipInitCallback","Tooltip","removeTooltip","ariaDescribedBy","hasTip","disposeTooltipComplete","toggleTooltipTitle","toggleTooltipAction","tooltipShownAction","shownTooltipEvent","tooltipHiddenAction","hiddenTooltipEvent","toggleTooltipOpenHandlers","parentModal","parentOffcanvas","titleAtt","tipComponent","elem","getUID","position","outTimer","showTooltipEvent","delay","hideTooltipEvent","enabled","tr","mousehoverEvent","focusinEvent","focusoutEvent","isApple","popoverSelector","popoverDefaults","getPopoverInstance","popoverInitCallback","Popover","scrollspyString","scrollspyComponent","scrollspySelector","scrollSpyAnchorSelector","scrollspyDefaults","getScrollSpyInstance","scrollspyInitCallback","ScrollSpy","activateScrollSpy","updateSpyTargets","_itemsLength","_observables","links","getElementsByTagName","link","hash","targetItem","clear","item","activate","parentItem","parentLink","getOffset","scrollTarget","spyTarget","_activeItem","entries","newActiveItem","firstOffset","offsetTop","nextTarget","nextOffsetTop","getElementById","_observer","_scrollTo","tabString","tabComponent","tabSelector","getTabInstance","tabInitCallback","Tab","showTabEvent","shownTabEvent","hideTabEvent","hiddenTabEvent","tabPrivate","triggerTabEnd","tabContent","nav","triggerTabShow","nextContent","tab","currentHeight","nextHeight","triggerTabHide","getActiveTab","activeTabs","getParentDropdown","dropdown","tabClickHandler","firstTab","firstTabContent","ariaSelected","activeDropdown","toggleTab","toastString","toastComponent","toastSelector","toastDismissSelector","toastToggleSelector","showingClass","hideClass","toastDefaults","getToastInstance","toastInitCallback","Toast","showToastEvent","shownToastEvent","hideToastEvent","hiddenToastEvent","showToastComplete","hideToastComplete","hideToast","showToast","toastClickHandler","interactiveToastHandler","isShown","hide","componentsList","initComponentDataAPI","collection","removeComponentDataAPI","component","context","compData","instance","initCallback","lookUp","elemCollection","cs","init","selector","removeDataAPI","comp"],"mappings":"AAAK,MAA6DA,KAAK,oBAAoBC,KAAK,iBAAuCC,KAAI,eAA0DC,KAAK,cAAcC,KAAK,gBAAgBC,KAAK,iBAAuPC,KAAK,SAASC,KAAK,WAAWC,KAAK,YAA0EC,KAAK,WAA4BC,KAAK,SAAsBC,IAAK,SAA0BC,KAAK,aAA6BC,KAAK,SAASC,KAAK,cAAcC,KAAK,cAAmKC,KAAK,eAAoCC,KAAK,eAAeC,KAAK,aAAsJC,KAAK,cAmDzmCC,KAAK,aAUuBC,KAAK,qFAoBlCC,KAAK,aAAaC,KAAK,WAAWC,KAAK,aAAaC,KAAK,cAAkHC,KAAK,UAAyMC,KAAK,sBAAsBC,KAAK,mBAAmBC,KAAI,iBAAiBC,KAAI,sBA+BjdC,KAAK,MAAM;AACZ,Q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ACH,GAGaC,KAAgB,CAACT,MAAyB;AACrD,QAAMI,IAASJ,KAAWA,EAAQ,WAAWA,IAAU;AAExC,EAAAL,GAAA,QAAQ,CAACe,MAAS;AACR,IAAAZ,GAAAY,EAAK,UAAU,MAAMN,CAAM;AAAA,EAAA,CACnD;AACH;AAGI,SAAS,OAAmBD,GAAA,IAE9BviB,EAAY,UAAU,oBAAoB,MAAMuiB,GAAA,GAAgB;AAAA,EAC9D,MAAM;AAAA,CACP;","x_google_ignoreList":[0,1,27]} \ No newline at end of file diff --git a/dist/components/alert.cjs b/dist/components/alert.cjs index c3980013..d4ee9215 100644 --- a/dist/components/alert.cjs +++ b/dist/components/alert.cjs @@ -1,2 +1,2 @@ -"use strict";const s=require("./base-component-4K-5H-MO.js"),u=require("./fadeClass-Co6nOzNJ.js"),r=require("./showClass-D_Ms1FgG.js"),g=require("./dataBsDismiss-CMHF7If_.js"),h=require("./isDisabled-BFPGF6I2.js"),o="alert",a="Alert",p=`.${o}`,C=`[${g.dataBsDismiss}="${o}"]`,v=e=>s.Xn(e,a),E=e=>new d(e),c=s.po(`close.bs.${o}`),b=s.po(`closed.bs.${o}`),l=e=>{const{element:t}=e;s.G(t,b),e._toggleEventListeners(),e.dispose(),t.remove()};class d extends s.BaseComponent{static selector=p;static init=E;static getInstance=v;dismiss;constructor(t){super(t),this.dismiss=s.Ho(C,this.element),this._toggleEventListeners(!0)}get name(){return a}close=t=>{const{element:n,dismiss:i}=this;!n||!s.Gn(n,r.showClass)||t&&i&&h.isDisabled(i)||(s.G(n,c),!c.defaultPrevented&&(s.qn(n,r.showClass),s.Gn(n,u.fadeClass)?s.no(n,()=>l(this)):l(this)))};_toggleEventListeners=t=>{const n=t?s.E:s.r,{dismiss:i,close:m}=this;i&&n(i,s.gt,m)};dispose(){this._toggleEventListeners(),super.dispose()}}module.exports=d; +"use strict";const s=require("./base-component-DMuoZh8G.js"),u=require("./fadeClass-Co6nOzNJ.js"),r=require("./showClass-D_Ms1FgG.js"),g=require("./dataBsDismiss-CMHF7If_.js"),h=require("./isDisabled-BhBg0EpT.js"),o="alert",a="Alert",p=`.${o}`,C=`[${g.dataBsDismiss}="${o}"]`,v=e=>s.Xn(e,a),E=e=>new d(e),c=s.po(`close.bs.${o}`),b=s.po(`closed.bs.${o}`),l=e=>{const{element:t}=e;s.G(t,b),e._toggleEventListeners(),e.dispose(),t.remove()};class d extends s.BaseComponent{static selector=p;static init=E;static getInstance=v;dismiss;constructor(t){super(t),this.dismiss=s.Ho(C,this.element),this._toggleEventListeners(!0)}get name(){return a}close=t=>{const{element:n,dismiss:i}=this;!n||!s.Gn(n,r.showClass)||t&&i&&h.isDisabled(i)||(s.G(n,c),!c.defaultPrevented&&(s.qn(n,r.showClass),s.Gn(n,u.fadeClass)?s.no(n,()=>l(this)):l(this)))};_toggleEventListeners=t=>{const n=t?s.E:s.r,{dismiss:i,close:m}=this;i&&n(i,s.gt,m)};dispose(){this._toggleEventListeners(),super.dispose()}}module.exports=d; //# sourceMappingURL=alert.cjs.map diff --git a/dist/components/alert.mjs b/dist/components/alert.mjs index 558d521a..c8456a92 100644 --- a/dist/components/alert.mjs +++ b/dist/components/alert.mjs @@ -1,8 +1,8 @@ -import { B as g, H as f, G as i, a as c, q as u, n as h, X as v, p as m, E, r as A, g as C } from "./base-component-LaJIjMhh.mjs"; +import { B as g, H as f, G as i, a as c, q as u, n as h, X as v, p as m, E, r as A, g as C } from "./base-component--xj9oMJ8.mjs"; import { f as $ } from "./fadeClass-CLIYI_zn.mjs"; import { s as r } from "./showClass-C8hdJfjQ.mjs"; import { d as b } from "./dataBsDismiss-DdNPQYa-.mjs"; -import { i as L } from "./isDisabled-DmmaKYeZ.mjs"; +import { i as L } from "./isDisabled-Dh1obUSx.mjs"; const o = "alert", d = "Alert", _ = `.${o}`, B = `[${b}="${o}"]`, D = (s) => v(s, d), G = (s) => new S(s), a = m( `close.bs.${o}` ), I = m( diff --git a/dist/components/base-component-LaJIjMhh.mjs b/dist/components/base-component--xj9oMJ8.mjs similarity index 99% rename from dist/components/base-component-LaJIjMhh.mjs rename to dist/components/base-component--xj9oMJ8.mjs index 2938a193..59cb5b8a 100644 --- a/dist/components/base-component-LaJIjMhh.mjs +++ b/dist/components/base-component--xj9oMJ8.mjs @@ -212,7 +212,7 @@ const m = /* @__PURE__ */ new Map(), oe = (e, t) => { F, l ); -}, ce = "5.1.0", ue = ce; +}, ce = "5.1.1", ue = ce; class pt { constructor(t, s) { let n; @@ -327,4 +327,4 @@ export { Ne as y, he as z }; -//# sourceMappingURL=base-component-LaJIjMhh.mjs.map +//# sourceMappingURL=base-component--xj9oMJ8.mjs.map diff --git a/dist/components/base-component-LaJIjMhh.mjs.map b/dist/components/base-component--xj9oMJ8.mjs.map similarity index 99% rename from dist/components/base-component-LaJIjMhh.mjs.map rename to dist/components/base-component--xj9oMJ8.mjs.map index 6129fbf0..c456d5a5 100644 --- a/dist/components/base-component-LaJIjMhh.mjs.map +++ b/dist/components/base-component--xj9oMJ8.mjs.map @@ -1 +1 @@ -{"version":3,"file":"base-component-LaJIjMhh.mjs","sources":["../../node_modules/.pnpm/@thednp+shorty@2.0.8/node_modules/@thednp/shorty/dist/shorty.mjs","../../node_modules/.pnpm/@thednp+event-listener@2.0.8/node_modules/@thednp/event-listener/dist/event-listener.mjs","../../src/version.ts","../../src/components/base-component.ts"],"sourcesContent":["const Ne = \"2.0.8\", Ce = \"aria-checked\", Te = \"aria-description\", Me = \"aria-describedby\", De = \"aria-expanded\", Le = \"aria-haspopup\", $ = \"aria-hidden\", Oe = \"aria-label\", xe = \"aria-labelledby\", ze = \"aria-modal\", Ie = \"aria-pressed\", Pe = \"aria-selected\", Fe = \"aria-valuemin\", Be = \"aria-valuemax\", Ve = \"aria-valuenow\", He = \"aria-valuetext\", J = \"abort\", X = \"beforeunload\", Y = \"blur\", tt = \"change\", et = \"contextmenu\", H = \"DOMContentLoaded\", nt = \"DOMMouseScroll\", ot = \"error\", st = \"focus\", rt = \"focusin\", ct = \"focusout\", at = \"gesturechange\", it = \"gestureend\", ut = \"gesturestart\", lt = \"keydown\", dt = \"keypress\", ft = \"keyup\", pt = \"load\", gt = \"click\", mt = \"dblclick\", vt = \"mousedown\", bt = \"mouseup\", Et = \"hover\", ht = \"mouseenter\", yt = \"mouseleave\", wt = \"mousein\", At = \"mouseout\", St = \"mouseover\", kt = \"mousemove\", Nt = \"mousewheel\", Ct = \"move\", Tt = \"orientationchange\", Mt = \"pointercancel\", Dt = \"pointerdown\", Lt = \"pointerleave\", Ot = \"pointermove\", xt = \"pointerup\", zt = \"readystatechange\", It = \"reset\", Pt = \"resize\", Ft = \"select\", Bt = \"selectend\", Vt = \"selectstart\", Ht = \"scroll\", Ut = \"submit\", Wt = \"touchstart\", Rt = \"touchmove\", Qt = \"touchcancel\", jt = \"touchend\", Kt = \"unload\", Ue = {\n DOMContentLoaded: H,\n DOMMouseScroll: nt,\n abort: J,\n beforeunload: X,\n blur: Y,\n change: tt,\n click: gt,\n contextmenu: et,\n dblclick: mt,\n error: ot,\n focus: st,\n focusin: rt,\n focusout: ct,\n gesturechange: at,\n gestureend: it,\n gesturestart: ut,\n hover: Et,\n keydown: lt,\n keypress: dt,\n keyup: ft,\n load: pt,\n mousedown: vt,\n mousemove: kt,\n mousein: wt,\n mouseout: At,\n mouseenter: ht,\n mouseleave: yt,\n mouseover: St,\n mouseup: bt,\n mousewheel: Nt,\n move: Ct,\n orientationchange: Tt,\n pointercancel: Mt,\n pointerdown: Dt,\n pointerleave: Lt,\n pointermove: Ot,\n pointerup: xt,\n readystatechange: zt,\n reset: It,\n resize: Pt,\n scroll: Ht,\n select: Ft,\n selectend: Bt,\n selectstart: Vt,\n submit: Ut,\n touchcancel: Qt,\n touchend: jt,\n touchmove: Rt,\n touchstart: Wt,\n unload: Kt\n}, We = \"drag\", Re = \"dragstart\", Qe = \"dragenter\", je = \"dragleave\", Ke = \"dragover\", qe = \"dragend\", Ge = \"loadstart\", Ze = {\n start: \"mousedown\",\n end: \"mouseup\",\n move: \"mousemove\",\n cancel: \"mouseleave\"\n}, _e = { down: \"mousedown\", up: \"mouseup\" }, $e = \"onmouseleave\" in document ? [\"mouseenter\", \"mouseleave\"] : [\"mouseover\", \"mouseout\"], Je = {\n start: \"touchstart\",\n end: \"touchend\",\n move: \"touchmove\",\n cancel: \"touchcancel\"\n}, Xe = { in: \"focusin\", out: \"focusout\" }, qt = 'a[href], button, input, textarea, select, details, [tabindex]:not([tabindex=\"-1\"]', Ye = {\n Backspace: \"Backspace\",\n Tab: \"Tab\",\n Enter: \"Enter\",\n Shift: \"Shift\",\n Control: \"Control\",\n Alt: \"Alt\",\n Pause: \"Pause\",\n CapsLock: \"CapsLock\",\n Escape: \"Escape\",\n Scape: \"Space\",\n ArrowLeft: \"ArrowLeft\",\n ArrowUp: \"ArrowUp\",\n ArrowRight: \"ArrowRight\",\n ArrowDown: \"ArrowDown\",\n Insert: \"Insert\",\n Delete: \"Delete\",\n Meta: \"Meta\",\n ContextMenu: \"ContextMenu\",\n ScrollLock: \"ScrollLock\"\n}, tn = \"Alt\", en = \"ArrowDown\", nn = \"ArrowUp\", on = \"ArrowLeft\", sn = \"ArrowRight\", rn = \"Backspace\", cn = \"CapsLock\", an = \"Control\", un = \"Delete\", ln = \"Enter\", dn = \"NumpadEnter\", fn = \"Escape\", pn = \"Insert\", gn = \"Meta\", mn = \"Pause\", vn = \"ScrollLock\", bn = \"Shift\", En = \"Space\", hn = \"Tab\", Gt = \"animationDuration\", Zt = \"animationDelay\", U = \"animationName\", T = \"animationend\", _t = \"transitionDuration\", $t = \"transitionDelay\", M = \"transitionend\", W = \"transitionProperty\", yn = \"addEventListener\", wn = \"removeEventListener\", An = {\n linear: \"linear\",\n easingSinusoidalIn: \"cubic-bezier(0.47,0,0.745,0.715)\",\n easingSinusoidalOut: \"cubic-bezier(0.39,0.575,0.565,1)\",\n easingSinusoidalInOut: \"cubic-bezier(0.445,0.05,0.55,0.95)\",\n easingQuadraticIn: \"cubic-bezier(0.550,0.085,0.680,0.530)\",\n easingQuadraticOut: \"cubic-bezier(0.250,0.460,0.450,0.940)\",\n easingQuadraticInOut: \"cubic-bezier(0.455,0.030,0.515,0.955)\",\n easingCubicIn: \"cubic-bezier(0.55,0.055,0.675,0.19)\",\n easingCubicOut: \"cubic-bezier(0.215,0.61,0.355,1)\",\n easingCubicInOut: \"cubic-bezier(0.645,0.045,0.355,1)\",\n easingQuarticIn: \"cubic-bezier(0.895,0.03,0.685,0.22)\",\n easingQuarticOut: \"cubic-bezier(0.165,0.84,0.44,1)\",\n easingQuarticInOut: \"cubic-bezier(0.77,0,0.175,1)\",\n easingQuinticIn: \"cubic-bezier(0.755,0.05,0.855,0.06)\",\n easingQuinticOut: \"cubic-bezier(0.23,1,0.32,1)\",\n easingQuinticInOut: \"cubic-bezier(0.86,0,0.07,1)\",\n easingExponentialIn: \"cubic-bezier(0.95,0.05,0.795,0.035)\",\n easingExponentialOut: \"cubic-bezier(0.19,1,0.22,1)\",\n easingExponentialInOut: \"cubic-bezier(1,0,0,1)\",\n easingCircularIn: \"cubic-bezier(0.6,0.04,0.98,0.335)\",\n easingCircularOut: \"cubic-bezier(0.075,0.82,0.165,1)\",\n easingCircularInOut: \"cubic-bezier(0.785,0.135,0.15,0.86)\",\n easingBackIn: \"cubic-bezier(0.6,-0.28,0.735,0.045)\",\n easingBackOut: \"cubic-bezier(0.175,0.885,0.32,1.275)\",\n easingBackInOut: \"cubic-bezier(0.68,-0.55,0.265,1.55)\"\n}, Sn = \"offsetHeight\", kn = \"offsetWidth\", Nn = \"scrollHeight\", Cn = \"scrollWidth\", Tn = \"tabindex\", Mn = navigator.userAgentData, { userAgent: Jt } = navigator, Dn = Jt, Ln = () => {\n const t = /iPhone|iPad|iPod|Android/i;\n return navigator?.userAgentData?.brands.some(\n (e) => t.test(e.brand)\n ) || t.test(navigator?.userAgent) || !1;\n}, On = () => {\n const t = /(iPhone|iPod|iPad)/;\n return navigator?.userAgentData?.brands.some(\n (e) => t.test(e.brand)\n ) || t.test(\n navigator?.userAgent\n ) || !1;\n}, xn = () => navigator?.userAgent?.includes(\"Firefox\") || !1, Xt = () => typeof CSS > \"u\" || !CSS.supports ? !1 : CSS.supports(\"-webkit-backdrop-filter\", \"none\"), zn = () => [\"webkitPerspective\", \"perspective\"].some((t) => t in document.head.style), Yt = () => {\n}, R = (t, e, n, o) => {\n const s = o || !1;\n t.addEventListener(\n e,\n n,\n s\n );\n}, Q = (t, e, n, o) => {\n const s = o || !1;\n t.removeEventListener(\n e,\n n,\n s\n );\n}, te = (t, e, n, o) => {\n const s = (r) => {\n (r.target === t || r.currentTarget === t) && (n.apply(t, [r]), Q(t, e, s, o));\n };\n R(t, e, s, o);\n}, In = () => {\n let t = !1;\n try {\n const e = Object.defineProperty({}, \"passive\", {\n get: () => (t = !0, t)\n });\n te(document, H, Yt, e);\n } catch {\n }\n return t;\n}, Pn = () => [\"webkitTransform\", \"transform\"].some((t) => t in document.head.style), Fn = () => \"ontouchstart\" in window || \"msMaxTouchPoints\" in navigator, Bn = () => [\"webkitAnimation\", \"animation\"].some((t) => t in document.head.style), Vn = () => [\"webkitTransition\", \"transition\"].some((t) => t in document.head.style), j = (t, e) => t.getAttribute(e), Hn = (t, e, n) => e.getAttributeNS(t, n), ee = (t, e) => t.hasAttribute(e), Un = (t, e, n) => e.hasAttributeNS(t, n), Wn = (t, e, n) => t.setAttribute(e, n), Rn = (t, e, n, o) => e.setAttributeNS(t, n, o), Qn = (t, e) => t.removeAttribute(e), jn = (t, e, n) => e.removeAttributeNS(t, n), Kn = (t, ...e) => {\n t.classList.add(...e);\n}, qn = (t, ...e) => {\n t.classList.remove(...e);\n}, Gn = (t, e) => t.classList.contains(e), { body: Zn } = document, { documentElement: _n } = document, { head: $n } = document, Jn = (t) => Array.from(t), v = (t) => t != null && typeof t == \"object\" || !1, u = (t) => v(t) && typeof t.nodeType == \"number\" && [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11].some(\n (e) => t.nodeType === e\n) || !1, i = (t) => u(t) && t.nodeType === 1 || !1, E = /* @__PURE__ */ new Map(), L = {\n data: E,\n set: (t, e, n) => {\n if (!i(t)) return;\n E.has(e) || E.set(e, /* @__PURE__ */ new Map()), E.get(e).set(t, n);\n },\n getAllFor: (t) => E.get(t) || null,\n get: (t, e) => {\n if (!i(t) || !e) return null;\n const n = L.getAllFor(e);\n return t && n && n.get(t) || null;\n },\n remove: (t, e) => {\n const n = L.getAllFor(e);\n !n || !i(t) || (n.delete(t), n.size === 0 && E.delete(e));\n }\n}, Xn = (t, e) => L.get(t, e), Yn = (t) => t?.charAt(0).toUpperCase() + t?.slice(1), I = (t) => t?.trim().replace(\n /(?:^\\w|[A-Z]|\\b\\w)/g,\n (e, n) => n === 0 ? e.toLowerCase() : e.toUpperCase()\n).replace(/\\s+/g, \"\"), N = (t) => typeof t == \"string\" || !1, K = (t) => v(t) && t.constructor.name === \"Window\" || !1, q = (t) => u(t) && t.nodeType === 9 || !1, d = (t) => q(t) ? t : u(t) ? t.ownerDocument : K(t) ? t.document : globalThis.document, C = (t, ...e) => Object.assign(t, ...e), ne = (t) => {\n if (!t) return;\n if (N(t))\n return d().createElement(t);\n const { tagName: e } = t, n = ne(e);\n if (!n) return;\n const o = { ...t };\n return delete o.tagName, C(n, o);\n}, oe = (t, e) => {\n if (!t || !e) return;\n if (N(e))\n return d().createElementNS(t, e);\n const { tagName: n } = e, o = oe(t, n);\n if (!o) return;\n const s = { ...e };\n return delete s.tagName, C(o, s);\n}, G = (t, e) => t.dispatchEvent(e), to = (t, e, n) => n.indexOf(t) === e, f = (t, e, n) => {\n const o = getComputedStyle(t, n), s = e.replace(\"webkit\", \"Webkit\").replace(/([A-Z])/g, \"-$1\").toLowerCase();\n return o.getPropertyValue(s);\n}, se = (t) => {\n const e = f(t, U), n = f(t, Zt), o = n.includes(\"ms\") ? 1 : 1e3, s = e && e !== \"none\" ? parseFloat(n) * o : 0;\n return Number.isNaN(s) ? 0 : s;\n}, re = (t) => {\n const e = f(t, U), n = f(t, Gt), o = n.includes(\"ms\") ? 1 : 1e3, s = e && e !== \"none\" ? parseFloat(n) * o : 0;\n return Number.isNaN(s) ? 0 : s;\n}, eo = (t, e) => {\n let n = 0;\n const o = new Event(T), s = re(t), r = se(t);\n if (s) {\n const a = (l) => {\n l.target === t && (e.apply(t, [l]), t.removeEventListener(T, a), n = 1);\n };\n t.addEventListener(T, a), setTimeout(() => {\n n || G(t, o);\n }, s + r + 17);\n } else\n e.apply(t, [o]);\n}, ce = (t) => {\n const e = f(t, W), n = f(t, $t), o = n.includes(\"ms\") ? 1 : 1e3, s = e && e !== \"none\" ? parseFloat(n) * o : 0;\n return Number.isNaN(s) ? 0 : s;\n}, ae = (t) => {\n const e = f(t, W), n = f(t, _t), o = n.includes(\"ms\") ? 1 : 1e3, s = e && e !== \"none\" ? parseFloat(n) * o : 0;\n return Number.isNaN(s) ? 0 : s;\n}, no = (t, e) => {\n let n = 0;\n const o = new Event(M), s = ae(t), r = ce(t);\n if (s) {\n const a = (l) => {\n l.target === t && (e.apply(t, [l]), t.removeEventListener(M, a), n = 1);\n };\n t.addEventListener(M, a), setTimeout(() => {\n n || G(t, o);\n }, s + r + 17);\n } else\n e.apply(t, [o]);\n}, oo = (t) => Float32Array.from(Array.from(t)), so = (t) => Float64Array.from(Array.from(t)), ro = (t, e) => t.focus(e), co = (t) => t?.trim().replace(/([a-z])([A-Z])/g, \"$1-$2\").replace(/\\s+/g, \"-\").toLowerCase(), P = (t) => [\"true\", !0].includes(t) ? !0 : [\"false\", !1].includes(t) ? !1 : [\"null\", \"\", null, void 0].includes(t) ? null : t !== \"\" && !Number.isNaN(+t) ? +t : t, S = (t) => Object.entries(t), ao = (t, e, n, o) => {\n if (!i(t)) return e;\n const s = { ...n }, r = { ...t.dataset }, a = { ...e }, l = {}, p = \"title\";\n return S(r).forEach(([c, g]) => {\n const A = o && typeof c == \"string\" && c.includes(o) ? I(c.replace(o, \"\")) : I(c);\n l[A] = P(g);\n }), S(s).forEach(([c, g]) => {\n s[c] = P(g);\n }), S(e).forEach(([c, g]) => {\n c in s ? a[c] = s[c] : c in l ? a[c] = l[c] : a[c] = c === p ? j(t, p) : g;\n }), a;\n}, io = (t, e) => v(t) && (Object.hasOwn(t, e) || e in t), uo = (t) => Object.keys(t), lo = (t) => Object.values(t), fo = (t) => Object.fromEntries(t), po = (t, e) => {\n const n = new CustomEvent(t, {\n cancelable: !0,\n bubbles: !0\n });\n return v(e) && C(n, e), n;\n}, go = { passive: !0 }, mo = (t) => t.offsetHeight, vo = (t, e) => {\n S(e).forEach(([n, o]) => {\n if (o && N(n) && n.includes(\"--\"))\n t.style.setProperty(n, o);\n else {\n const s = {};\n s[n] = o, C(t.style, s);\n }\n });\n}, O = (t) => v(t) && t.constructor.name === \"Map\" || !1, ie = (t) => typeof t == \"number\" || !1, m = /* @__PURE__ */ new Map(), bo = {\n set: (t, e, n, o) => {\n i(t) && (o && o.length ? (m.has(t) || m.set(t, /* @__PURE__ */ new Map()), m.get(t).set(o, setTimeout(e, n))) : m.set(t, setTimeout(e, n)));\n },\n get: (t, e) => {\n if (!i(t)) return null;\n const n = m.get(t);\n return e && n && O(n) ? n.get(e) || null : ie(n) ? n : null;\n },\n clear: (t, e) => {\n if (!i(t)) return;\n const n = m.get(t);\n e && e.length && O(n) ? (clearTimeout(n.get(e)), n.delete(e), n.size === 0 && m.delete(t)) : (clearTimeout(n), m.delete(t));\n }\n}, Eo = (t) => t.toLowerCase(), ho = (t) => t.toUpperCase(), ue = (t, e) => (u(e) ? e : d()).querySelectorAll(t), x = /* @__PURE__ */ new Map();\nfunction le(t) {\n const { shiftKey: e, code: n } = t, o = d(this), s = [\n ...ue(qt, this)\n ].filter(\n (l) => !ee(l, \"disabled\") && !j(l, $)\n );\n if (!s.length) return;\n const r = s[0], a = s[s.length - 1];\n n === \"Tab\" && (e && o.activeElement === r ? (a.focus(), t.preventDefault()) : !e && o.activeElement === a && (r.focus(), t.preventDefault()));\n}\nconst de = (t) => x.has(t) === !0, yo = (t) => {\n const e = de(t);\n (e ? Q : R)(t, \"keydown\", le), e ? x.delete(t) : x.set(t, !0);\n}, b = (t) => i(t) && \"offsetWidth\" in t || !1, y = (t, e) => {\n const { width: n, height: o, top: s, right: r, bottom: a, left: l } = t.getBoundingClientRect();\n let p = 1, c = 1;\n if (e && b(t)) {\n const { offsetWidth: g, offsetHeight: A } = t;\n p = g > 0 ? Math.round(n) / g : 1, c = A > 0 ? Math.round(o) / A : 1;\n }\n return {\n width: n / p,\n height: o / c,\n top: s / c,\n right: r / p,\n bottom: a / c,\n left: l / p,\n x: l / p,\n y: s / c\n };\n}, wo = (t) => d(t).body, w = (t) => d(t).documentElement, Ao = (t) => d(t).head, fe = (t) => u(t) ? (t.nodeName || \"\").toLowerCase() : \"#document\", So = (t) => {\n const e = K(t), n = e ? t.scrollX : t.scrollLeft, o = e ? t.scrollY : t.scrollTop;\n return { x: n, y: o };\n}, pe = (t) => u(t) && t.constructor.name === \"ShadowRoot\" || !1, k = (t) => t.nodeName === \"HTML\" ? t : i(t) && t.assignedSlot || u(t) && t.parentNode || pe(t) && t.host || w(t), ge = (t) => t ? q(t) ? t.defaultView : u(t) ? t?.ownerDocument?.defaultView : t : window, me = (t) => u(t) && [\"TABLE\", \"TD\", \"TH\"].includes(t.nodeName) || !1, ve = (t, e) => t.matches(e), D = (t) => f(t, \"position\") === \"static\", be = (t) => f(t, \"position\") === \"fixed\", Z = (t) => [\":popover-open\", \":modal\"].some((e) => {\n try {\n return ve(t, e);\n } catch {\n return !1;\n }\n}), _ = (t) => {\n const e = Xt(), n = i(t) ? getComputedStyle(t) : t;\n return n.transform !== \"none\" || n.perspective !== \"none\" || (n.containerType ? n.containerType !== \"normal\" : !1) || !e && (n.backdropFilter ? n.backdropFilter !== \"none\" : !1) || !e && (n.filter ? n.filter !== \"none\" : !1) || [\"transform\", \"perspective\", \"filter\"].some(\n (o) => (n.willChange || \"\").includes(o)\n ) || [\"paint\", \"layout\", \"strict\", \"content\"].some(\n (o) => (n.contain || \"\").includes(o)\n );\n}, Ee = (t) => {\n let e = k(t);\n for (; i(e) && !z(e); ) {\n if (_(e))\n return e;\n if (Z(e))\n return null;\n e = k(e);\n }\n return null;\n}, z = (t) => [\"html\", \"body\", \"#document\"].includes(fe(t)), F = (t) => {\n if (!b(t) || be(t))\n return null;\n let e = t.offsetParent;\n return w(t) === e && (e = e.ownerDocument.body), e;\n}, ko = (t) => {\n const e = ge(t);\n if (!u(t) || Z(t))\n return e;\n if (!b(t)) {\n let o = k(t);\n for (; o && !z(o); ) {\n if (i(o) && !D(o))\n return o;\n o = k(o);\n }\n return e;\n }\n let n = F(t);\n for (; n && me(n) && D(n); )\n n = F(n);\n return n && z(n) && D(n) && !_(n) ? e : n || Ee(t) || e;\n}, he = (t) => {\n if (!b(t)) return !1;\n const { width: e, height: n } = y(t), { offsetWidth: o, offsetHeight: s } = t;\n return Math.round(e) !== o || Math.round(n) !== s;\n}, No = (t, e, n) => {\n const o = b(e), s = y(\n t,\n o && he(e)\n ), r = { x: 0, y: 0 };\n if (o) {\n const a = y(e, !0);\n r.x = a.x + e.clientLeft, r.y = a.y + e.clientTop;\n }\n return {\n x: s.left + n.x - r.x,\n y: s.top + n.y - r.y,\n width: s.width,\n height: s.height\n };\n};\nlet B = 0, V = 0;\nconst h = /* @__PURE__ */ new Map(), ye = (t, e) => {\n let n = e ? B : V;\n if (e) {\n const o = ye(t), s = h.get(o) || /* @__PURE__ */ new Map();\n h.has(o) || h.set(o, s), O(s) && !s.has(e) ? (s.set(e, n), B += 1) : n = s.get(e);\n } else {\n const o = t.id || t;\n h.has(o) ? n = h.get(o) : (h.set(o, n), V += 1);\n }\n return n;\n}, we = (t) => Array.isArray(t) || !1, Co = (t) => u(t) && t.nodeName === \"CANVAS\" || !1, Ae = (t) => b(t) && !!t.shadowRoot || !1, To = (t) => {\n if (!u(t)) return !1;\n const { top: e, bottom: n } = y(t), { clientHeight: o } = w(t);\n return e <= o && n >= 0;\n}, Mo = (t) => {\n if (!i(t)) return !1;\n const { clientWidth: e, clientHeight: n } = w(t), { top: o, left: s, bottom: r, right: a } = y(t, !0);\n return o >= 0 && s >= 0 && r <= n && a <= e;\n}, Do = (t) => we(t) && t.every(i) || !1, Lo = (t) => typeof t == \"function\" || !1, Oo = (t) => v(t) && t.constructor.name === \"HTMLCollection\" || !1, xo = (t) => b(t) && t.tagName === \"IMG\" || !1, zo = (t) => {\n if (!N(t)) return !1;\n try {\n JSON.parse(t);\n } catch {\n return !1;\n }\n return !0;\n}, Io = (t) => v(t) && t.constructor.name === \"WeakMap\" || !1, Po = (t) => u(t) && [\"SVG\", \"Image\", \"Video\", \"Canvas\"].some(\n (e) => t.constructor.name.includes(e)\n) || !1, Fo = (t) => v(t) && t.constructor.name === \"NodeList\" || !1, Bo = (t) => w(t).dir === \"rtl\", Vo = (t) => u(t) && t.constructor.name.includes(\"SVG\") || !1, Se = (t, e) => !t || !e ? null : t.closest(e) || Se(t.getRootNode().host, e) || null, Ho = (t, e) => i(t) ? t : (i(e) ? e : d()).querySelector(t), ke = (t, e) => (u(e) ? e : d()).getElementsByTagName(\n t\n), Uo = (t) => [...ke(\"*\", t)].filter(Ae), Wo = (t, e) => d(e).getElementById(t), Ro = (t, e) => (e && u(e) ? e : d()).getElementsByClassName(\n t\n);\nexport {\n Jn as ArrayFrom,\n H as DOMContentLoadedEvent,\n nt as DOMMouseScrollEvent,\n L as Data,\n oo as Float32ArrayFrom,\n so as Float64ArrayFrom,\n C as ObjectAssign,\n S as ObjectEntries,\n fo as ObjectFromEntries,\n io as ObjectHasOwn,\n uo as ObjectKeys,\n lo as ObjectValues,\n bo as Timer,\n J as abortEvent,\n Kn as addClass,\n yn as addEventListener,\n Zt as animationDelay,\n Gt as animationDuration,\n T as animationEndEvent,\n U as animationName,\n Ce as ariaChecked,\n Me as ariaDescribedBy,\n Te as ariaDescription,\n De as ariaExpanded,\n Le as ariaHasPopup,\n $ as ariaHidden,\n Oe as ariaLabel,\n xe as ariaLabelledBy,\n ze as ariaModal,\n Ie as ariaPressed,\n Pe as ariaSelected,\n Be as ariaValueMax,\n Fe as ariaValueMin,\n Ve as ariaValueNow,\n He as ariaValueText,\n X as beforeunloadEvent,\n An as bezierEasings,\n Y as blurEvent,\n I as camelCase,\n Yn as capitalize,\n tt as changeEvent,\n Se as closest,\n et as contextmenuEvent,\n po as createCustomEvent,\n ne as createElement,\n oe as createElementNS,\n G as dispatchEvent,\n to as distinct,\n Zn as documentBody,\n _n as documentElement,\n $n as documentHead,\n We as dragEvent,\n qe as dragendEvent,\n Qe as dragenterEvent,\n je as dragleaveEvent,\n Ke as dragoverEvent,\n Re as dragstartEvent,\n eo as emulateAnimationEnd,\n no as emulateTransitionEnd,\n ot as errorEvent,\n ro as focus,\n st as focusEvent,\n Xe as focusEvents,\n qt as focusableSelector,\n rt as focusinEvent,\n ct as focusoutEvent,\n at as gesturechangeEvent,\n it as gestureendEvent,\n ut as gesturestartEvent,\n j as getAttribute,\n Hn as getAttributeNS,\n y as getBoundingClientRect,\n Uo as getCustomElements,\n d as getDocument,\n wo as getDocumentBody,\n w as getDocumentElement,\n Ao as getDocumentHead,\n se as getElementAnimationDelay,\n re as getElementAnimationDuration,\n Wo as getElementById,\n f as getElementStyle,\n ce as getElementTransitionDelay,\n ae as getElementTransitionDuration,\n Ro as getElementsByClassName,\n ke as getElementsByTagName,\n Xn as getInstance,\n fe as getNodeName,\n So as getNodeScroll,\n ko as getOffsetParent,\n k as getParentNode,\n No as getRectRelativeToOffsetParent,\n ye as getUID,\n ge as getWindow,\n ee as hasAttribute,\n Un as hasAttributeNS,\n Gn as hasClass,\n de as hasFocusTrap,\n On as isApple,\n we as isArray,\n Co as isCanvas,\n Ae as isCustomElement,\n q as isDocument,\n i as isElement,\n To as isElementInScrollRange,\n Mo as isElementInViewport,\n Do as isElementsArray,\n xn as isFirefox,\n Lo as isFunction,\n Oo as isHTMLCollection,\n b as isHTMLElement,\n xo as isHTMLImageElement,\n zo as isJSON,\n O as isMap,\n Po as isMedia,\n Ln as isMobile,\n u as isNode,\n Fo as isNodeList,\n ie as isNumber,\n v as isObject,\n Bo as isRTL,\n Vo as isSVGElement,\n he as isScaledElement,\n pe as isShadowRoot,\n N as isString,\n me as isTableElement,\n Io as isWeakMap,\n Xt as isWebKit,\n K as isWindow,\n co as kebabCase,\n tn as keyAlt,\n en as keyArrowDown,\n on as keyArrowLeft,\n sn as keyArrowRight,\n nn as keyArrowUp,\n rn as keyBackspace,\n cn as keyCapsLock,\n an as keyControl,\n un as keyDelete,\n ln as keyEnter,\n fn as keyEscape,\n pn as keyInsert,\n gn as keyMeta,\n dn as keyNumpadEnter,\n mn as keyPause,\n vn as keyScrollLock,\n bn as keyShift,\n En as keySpace,\n hn as keyTab,\n Ye as keyboardEventKeys,\n lt as keydownEvent,\n dt as keypressEvent,\n ft as keyupEvent,\n pt as loadEvent,\n Ge as loadstartEvent,\n ve as matches,\n _e as mouseClickEvents,\n $e as mouseHoverEvents,\n Ze as mouseSwipeEvents,\n gt as mouseclickEvent,\n mt as mousedblclickEvent,\n vt as mousedownEvent,\n ht as mouseenterEvent,\n Et as mousehoverEvent,\n wt as mouseinEvent,\n yt as mouseleaveEvent,\n kt as mousemoveEvent,\n At as mouseoutEvent,\n St as mouseoverEvent,\n bt as mouseupEvent,\n Nt as mousewheelEvent,\n Ct as moveEvent,\n Ue as nativeEvents,\n Yt as noop,\n ao as normalizeOptions,\n P as normalizeValue,\n Q as off,\n Sn as offsetHeight,\n kn as offsetWidth,\n R as on,\n te as one,\n Tt as orientationchangeEvent,\n go as passiveHandler,\n Mt as pointercancelEvent,\n Dt as pointerdownEvent,\n Lt as pointerleaveEvent,\n Ot as pointermoveEvent,\n xt as pointerupEvent,\n Ho as querySelector,\n ue as querySelectorAll,\n zt as readystatechangeEvent,\n mo as reflow,\n Qn as removeAttribute,\n jn as removeAttributeNS,\n qn as removeClass,\n wn as removeEventListener,\n It as resetEvent,\n Pt as resizeEvent,\n Ht as scrollEvent,\n Nn as scrollHeight,\n Cn as scrollWidth,\n Ft as selectEvent,\n Bt as selectendEvent,\n Vt as selectstartEvent,\n Wn as setAttribute,\n Rn as setAttributeNS,\n vo as setElementStyle,\n Ut as submitEvent,\n zn as support3DTransform,\n Bn as supportAnimation,\n In as supportPassive,\n Fn as supportTouch,\n Pn as supportTransform,\n Vn as supportTransition,\n Tn as tabindex,\n Eo as toLowerCase,\n ho as toUpperCase,\n yo as toggleFocusTrap,\n Je as touchEvents,\n Qt as touchcancelEvent,\n jt as touchendEvent,\n Rt as touchmoveEvent,\n Wt as touchstartEvent,\n $t as transitionDelay,\n _t as transitionDuration,\n M as transitionEndEvent,\n W as transitionProperty,\n Kt as unloadEvent,\n Dn as userAgent,\n Mn as userAgentData,\n Ne as version\n};\n//# sourceMappingURL=shorty.mjs.map\n","const g = \"2.0.8\", e = {}, f = (t) => {\n const { type: n, currentTarget: c } = t;\n e[n].forEach((a, s) => {\n c === s && a.forEach((o, i) => {\n i.apply(s, [t]), typeof o == \"object\" && o.once && r(s, n, i, o);\n });\n });\n}, E = (t, n, c, a) => {\n e[n] || (e[n] = /* @__PURE__ */ new Map());\n const s = e[n];\n s.has(t) || s.set(t, /* @__PURE__ */ new Map());\n const o = s.get(\n t\n ), { size: i } = o;\n o.set(c, a), i || t.addEventListener(\n n,\n f,\n a\n );\n}, r = (t, n, c, a) => {\n const s = e[n], o = s && s.get(t), i = o && o.get(c), d = i !== void 0 ? i : a;\n o && o.has(c) && o.delete(c), s && (!o || !o.size) && s.delete(t), (!s || !s.size) && delete e[n], (!o || !o.size) && t.removeEventListener(\n n,\n f,\n d\n );\n}, M = E, p = r;\nexport {\n E as addListener,\n f as globalListener,\n p as off,\n M as on,\n e as registry,\n r as removeListener,\n g as version\n};\n//# sourceMappingURL=event-listener.mjs.map\n","import { version } from \"../package.json\";\n\nconst Version = version;\n\nexport default Version;\n","/* Native JavaScript for Bootstrap 5 | Base Component\n----------------------------------------------------- */\nimport {\n Data,\n isElement,\n isString,\n normalizeOptions,\n ObjectKeys,\n querySelector,\n} from \"@thednp/shorty\";\n\nimport type { BaseOptions } from \"~/interface/baseComponent\";\nimport Version from \"~/version\";\n\n/** Returns a new `BaseComponent` instance. */\nexport default class BaseComponent {\n declare element: Element;\n declare options?: BaseOptions;\n\n /**\n * @param target `Element` or selector string\n * @param config component instance options\n */\n constructor(target: Element | string, config?: BaseOptions) {\n let element: Element | null;\n\n try {\n if (isElement(target)) {\n element = target as Element;\n } else if (isString(target)) {\n element = querySelector(target);\n // istanbul ignore else @preserve\n if (!element) throw Error(`\"${target}\" is not a valid selector.`);\n } else {\n throw Error(`your target is not an instance of HTMLElement.`);\n }\n } catch (e) {\n throw Error(`${this.name} Error: ${(e as Error).message}`);\n }\n\n const prevInstance = Data.get(element, this.name);\n /* istanbul ignore else @preserve */\n if (prevInstance) {\n // remove previously attached event listeners\n // to avoid memory leaks\n prevInstance._toggleEventListeners();\n }\n\n this.element = element;\n this.options = this.defaults && ObjectKeys(this.defaults).length\n ? normalizeOptions(element, this.defaults, config || {}, \"bs\")\n : /* istanbul ignore next @preserve */ {};\n\n Data.set(element, this.name, this);\n }\n\n // istanbul ignore next @preserve\n get version() {\n return Version;\n }\n\n // istanbul ignore next @preserve\n get name() {\n return \"BaseComponent\";\n }\n\n // istanbul ignore next @preserve\n get defaults() {\n return {};\n }\n\n /** just to have something to extend from */\n // istanbul ignore next @preserve coverage wise this isn't important\n _toggleEventListeners = () => {\n // do something to please linters\n };\n\n /** Removes component from target element. */\n dispose() {\n Data.remove(this.element, this.name);\n ObjectKeys(this).forEach((prop) => {\n delete this[prop];\n });\n }\n}\n"],"names":["Me","De","$","ze","Ie","Pe","st","rt","ct","lt","ft","gt","vt","Et","ht","yt","Dt","Ot","xt","Wt","Re","qt","en","nn","on","sn","fn","_t","$t","M","W","On","t","e","Yt","R","n","o","s","Q","ee","Wn","Qn","Kn","qn","Gn","v","i","E","L","Xn","I","N","K","q","C","ne","G","f","ce","ae","no","r","a","ro","P","S","ao","p","c","g","A","uo","po","go","mo","vo","O","ie","m","bo","Eo","ue","x","le","de","yo","b","y","wo","w","So","pe","k","ge","me","ve","he","No","B","V","h","ye","we","To","Lo","Fo","Bo","Se","Ho","ke","Wo","Ro","d","Version","version","BaseComponent","target","config","element","isElement","isString","querySelector","prevInstance","Data","ObjectKeys","normalizeOptions","prop"],"mappings":"AAAK,MAA6DA,KAAK,oBAAoBC,KAAK,iBAAuCC,IAAI,eAA0DC,KAAK,cAAcC,KAAK,gBAAgBC,KAAK,iBAAuPC,KAAK,SAASC,KAAK,WAAWC,KAAK,YAA0EC,KAAK,WAA4BC,KAAK,SAAsBC,KAAK,SAA0BC,KAAK,aAA6BC,KAAK,SAASC,KAAK,cAAcC,KAAK,cAAmKC,KAAK,eAAoCC,KAAK,eAAeC,KAAK,aAAsJC,KAAK,cAmDzmCC,KAAK,aAUuBC,IAAK,qFAoBlCC,KAAK,aAAaC,KAAK,WAAWC,KAAK,aAAaC,KAAK,cAAkHC,KAAK,UAAyMC,IAAK,sBAAsBC,IAAK,mBAAmBC,IAAI,iBAAiBC,IAAI,sBA+BjdC,KAAK,MAAM;AACZ,QAAMC,IAAI;AACV,SAAO,WAAW,eAAe,OAAO;AAAA,IACtC,CAACC,MAAMD,EAAE,KAAKC,EAAE,KAAK;AAAA,EACtB,KAAID,EAAE;AAAA,IACL,WAAW;AAAA,EACZ,KAAI;AACP,GAA2PE,KAAK,MAAM;AACtQ,GAAGC,IAAI,CAACH,GAAGC,GAAGG,GAAGC,MAAM;AACrB,QAAMC,IAAID,KAAK;AACf,EAAAL,EAAE;AAAA,IACAC;AAAA,IACAG;AAAA,IACAE;AAAA,EACD;AACH,GAAGC,IAAI,CAACP,GAAGC,GAAGG,GAAGC,MAAM;AACrB,QAAMC,IAAID,KAAK;AACf,EAAAL,EAAE;AAAA,IACAC;AAAA,IACAG;AAAA,IACAE;AAAA,EACD;AACH,GAesU,IAAI,CAACN,GAAGC,MAAMD,EAAE,aAAaC,CAAC,GAA6CO,IAAK,CAACR,GAAGC,MA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S,KAAK,UAAUD,KAAU,CAAI,GAAA,IAAI,IAC1D,CAAC,GAENM,EAAK,IAAIL,GAAS,KAAK,MAAM,IAAI;AAAA,EAAA;AAAA,EAInC,IAAI,UAAU;AACL,WAAAL;AAAA,EAAA;AAAA,EAIT,IAAI,OAAO;AACF,WAAA;AAAA,EAAA;AAAA,EAIT,IAAI,WAAW;AACb,WAAO,CAAC;AAAA,EAAA;AAAA,EAKV,wBAAwB,MAAM;AAAA,EAE9B;AAAA,EAGA,UAAU;AACRU,IAAAA,EAAK,OAAoB,KAAK,SAAS,KAAK,IAAI,GAChDC,EAAW,IAAI,EAAE,QAAQ,CAACE,MAAS;AACjC,aAAO,KAAKA,CAAI;AAAA,IAAA,CACjB;AAAA,EAAA;AAEL;","x_google_ignoreList":[0,1]} \ No newline at end of file +{"version":3,"file":"base-component--xj9oMJ8.mjs","sources":["../../node_modules/.pnpm/@thednp+shorty@2.0.9/node_modules/@thednp/shorty/dist/shorty.mjs","../../node_modules/.pnpm/@thednp+event-listener@2.0.8/node_modules/@thednp/event-listener/dist/event-listener.mjs","../../src/version.ts","../../src/components/base-component.ts"],"sourcesContent":["const Ne = \"2.0.9\", Ce = \"aria-checked\", Te = \"aria-description\", Me = \"aria-describedby\", De = \"aria-expanded\", Le = \"aria-haspopup\", $ = \"aria-hidden\", Oe = \"aria-label\", xe = \"aria-labelledby\", ze = \"aria-modal\", Ie = \"aria-pressed\", Pe = \"aria-selected\", Fe = \"aria-valuemin\", Be = \"aria-valuemax\", Ve = \"aria-valuenow\", He = \"aria-valuetext\", J = \"abort\", X = \"beforeunload\", Y = \"blur\", tt = \"change\", et = \"contextmenu\", H = \"DOMContentLoaded\", nt = \"DOMMouseScroll\", ot = \"error\", st = \"focus\", rt = \"focusin\", ct = \"focusout\", at = \"gesturechange\", it = \"gestureend\", ut = \"gesturestart\", lt = \"keydown\", dt = \"keypress\", ft = \"keyup\", pt = \"load\", gt = \"click\", mt = \"dblclick\", vt = \"mousedown\", bt = \"mouseup\", Et = \"hover\", ht = \"mouseenter\", yt = \"mouseleave\", wt = \"mousein\", At = \"mouseout\", St = \"mouseover\", kt = \"mousemove\", Nt = \"mousewheel\", Ct = \"move\", Tt = \"orientationchange\", Mt = \"pointercancel\", Dt = \"pointerdown\", Lt = \"pointerleave\", Ot = \"pointermove\", xt = \"pointerup\", zt = \"readystatechange\", It = \"reset\", Pt = \"resize\", Ft = \"select\", Bt = \"selectend\", Vt = \"selectstart\", Ht = \"scroll\", Ut = \"submit\", Wt = \"touchstart\", Rt = \"touchmove\", Qt = \"touchcancel\", jt = \"touchend\", Kt = \"unload\", Ue = {\n DOMContentLoaded: H,\n DOMMouseScroll: nt,\n abort: J,\n beforeunload: X,\n blur: Y,\n change: tt,\n click: gt,\n contextmenu: et,\n dblclick: mt,\n error: ot,\n focus: st,\n focusin: rt,\n focusout: ct,\n gesturechange: at,\n gestureend: it,\n gesturestart: ut,\n hover: Et,\n keydown: lt,\n keypress: dt,\n keyup: ft,\n load: pt,\n mousedown: vt,\n mousemove: kt,\n mousein: wt,\n mouseout: At,\n mouseenter: ht,\n mouseleave: yt,\n mouseover: St,\n mouseup: bt,\n mousewheel: Nt,\n move: Ct,\n orientationchange: Tt,\n pointercancel: Mt,\n pointerdown: Dt,\n pointerleave: Lt,\n pointermove: Ot,\n pointerup: xt,\n readystatechange: zt,\n reset: It,\n resize: Pt,\n scroll: Ht,\n select: Ft,\n selectend: Bt,\n selectstart: Vt,\n submit: Ut,\n touchcancel: Qt,\n touchend: jt,\n touchmove: Rt,\n touchstart: Wt,\n unload: Kt\n}, We = \"drag\", Re = \"dragstart\", Qe = \"dragenter\", je = \"dragleave\", Ke = \"dragover\", qe = \"dragend\", Ge = \"loadstart\", Ze = {\n start: \"mousedown\",\n end: \"mouseup\",\n move: \"mousemove\",\n cancel: \"mouseleave\"\n}, _e = { down: \"mousedown\", up: \"mouseup\" }, $e = \"onmouseleave\" in document ? [\"mouseenter\", \"mouseleave\"] : [\"mouseover\", \"mouseout\"], Je = {\n start: \"touchstart\",\n end: \"touchend\",\n move: \"touchmove\",\n cancel: \"touchcancel\"\n}, Xe = { in: \"focusin\", out: \"focusout\" }, qt = 'a[href], button, input, textarea, select, details, [tabindex]:not([tabindex=\"-1\"]', Ye = {\n Backspace: \"Backspace\",\n Tab: \"Tab\",\n Enter: \"Enter\",\n Shift: \"Shift\",\n Control: \"Control\",\n Alt: \"Alt\",\n Pause: \"Pause\",\n CapsLock: \"CapsLock\",\n Escape: \"Escape\",\n Scape: \"Space\",\n ArrowLeft: \"ArrowLeft\",\n ArrowUp: \"ArrowUp\",\n ArrowRight: \"ArrowRight\",\n ArrowDown: \"ArrowDown\",\n Insert: \"Insert\",\n Delete: \"Delete\",\n Meta: \"Meta\",\n ContextMenu: \"ContextMenu\",\n ScrollLock: \"ScrollLock\"\n}, tn = \"Alt\", en = \"ArrowDown\", nn = \"ArrowUp\", on = \"ArrowLeft\", sn = \"ArrowRight\", rn = \"Backspace\", cn = \"CapsLock\", an = \"Control\", un = \"Delete\", ln = \"Enter\", dn = \"NumpadEnter\", fn = \"Escape\", pn = \"Insert\", gn = \"Meta\", mn = \"Pause\", vn = \"ScrollLock\", bn = \"Shift\", En = \"Space\", hn = \"Tab\", Gt = \"animationDuration\", Zt = \"animationDelay\", U = \"animationName\", T = \"animationend\", _t = \"transitionDuration\", $t = \"transitionDelay\", M = \"transitionend\", W = \"transitionProperty\", yn = \"addEventListener\", wn = \"removeEventListener\", An = {\n linear: \"linear\",\n easingSinusoidalIn: \"cubic-bezier(0.47,0,0.745,0.715)\",\n easingSinusoidalOut: \"cubic-bezier(0.39,0.575,0.565,1)\",\n easingSinusoidalInOut: \"cubic-bezier(0.445,0.05,0.55,0.95)\",\n easingQuadraticIn: \"cubic-bezier(0.550,0.085,0.680,0.530)\",\n easingQuadraticOut: \"cubic-bezier(0.250,0.460,0.450,0.940)\",\n easingQuadraticInOut: \"cubic-bezier(0.455,0.030,0.515,0.955)\",\n easingCubicIn: \"cubic-bezier(0.55,0.055,0.675,0.19)\",\n easingCubicOut: \"cubic-bezier(0.215,0.61,0.355,1)\",\n easingCubicInOut: \"cubic-bezier(0.645,0.045,0.355,1)\",\n easingQuarticIn: \"cubic-bezier(0.895,0.03,0.685,0.22)\",\n easingQuarticOut: \"cubic-bezier(0.165,0.84,0.44,1)\",\n easingQuarticInOut: \"cubic-bezier(0.77,0,0.175,1)\",\n easingQuinticIn: \"cubic-bezier(0.755,0.05,0.855,0.06)\",\n easingQuinticOut: \"cubic-bezier(0.23,1,0.32,1)\",\n easingQuinticInOut: \"cubic-bezier(0.86,0,0.07,1)\",\n easingExponentialIn: \"cubic-bezier(0.95,0.05,0.795,0.035)\",\n easingExponentialOut: \"cubic-bezier(0.19,1,0.22,1)\",\n easingExponentialInOut: \"cubic-bezier(1,0,0,1)\",\n easingCircularIn: \"cubic-bezier(0.6,0.04,0.98,0.335)\",\n easingCircularOut: \"cubic-bezier(0.075,0.82,0.165,1)\",\n easingCircularInOut: \"cubic-bezier(0.785,0.135,0.15,0.86)\",\n easingBackIn: \"cubic-bezier(0.6,-0.28,0.735,0.045)\",\n easingBackOut: \"cubic-bezier(0.175,0.885,0.32,1.275)\",\n easingBackInOut: \"cubic-bezier(0.68,-0.55,0.265,1.55)\"\n}, Sn = \"offsetHeight\", kn = \"offsetWidth\", Nn = \"scrollHeight\", Cn = \"scrollWidth\", Tn = \"tabindex\", Mn = navigator.userAgentData, { userAgent: Jt } = navigator, Dn = Jt, Ln = () => {\n const t = /iPhone|iPad|iPod|Android/i;\n return navigator?.userAgentData?.brands.some(\n (e) => t.test(e.brand)\n ) || t.test(navigator?.userAgent) || !1;\n}, On = () => {\n const t = /(iPhone|iPod|iPad)/;\n return navigator?.userAgentData?.brands.some(\n (e) => t.test(e.brand)\n ) || t.test(\n navigator?.userAgent\n ) || !1;\n}, xn = () => navigator?.userAgent?.includes(\"Firefox\") || !1, Xt = () => typeof CSS > \"u\" || !CSS.supports ? !1 : CSS.supports(\"-webkit-backdrop-filter\", \"none\"), zn = () => [\"webkitPerspective\", \"perspective\"].some((t) => t in document.head.style), Yt = () => {\n}, R = (t, e, n, o) => {\n const s = o || !1;\n t.addEventListener(\n e,\n n,\n s\n );\n}, Q = (t, e, n, o) => {\n const s = o || !1;\n t.removeEventListener(\n e,\n n,\n s\n );\n}, te = (t, e, n, o) => {\n const s = (r) => {\n (r.target === t || r.currentTarget === t) && (n.apply(t, [r]), Q(t, e, s, o));\n };\n R(t, e, s, o);\n}, In = () => {\n let t = !1;\n try {\n const e = Object.defineProperty({}, \"passive\", {\n get: () => (t = !0, t)\n });\n te(document, H, Yt, e);\n } catch {\n }\n return t;\n}, Pn = () => [\"webkitTransform\", \"transform\"].some((t) => t in document.head.style), Fn = () => \"ontouchstart\" in window || \"msMaxTouchPoints\" in navigator, Bn = () => [\"webkitAnimation\", \"animation\"].some((t) => t in document.head.style), Vn = () => [\"webkitTransition\", \"transition\"].some((t) => t in document.head.style), j = (t, e) => t.getAttribute(e), Hn = (t, e, n) => e.getAttributeNS(t, n), ee = (t, e) => t.hasAttribute(e), Un = (t, e, n) => e.hasAttributeNS(t, n), Wn = (t, e, n) => t.setAttribute(e, n), Rn = (t, e, n, o) => e.setAttributeNS(t, n, o), Qn = (t, e) => t.removeAttribute(e), jn = (t, e, n) => e.removeAttributeNS(t, n), Kn = (t, ...e) => {\n t.classList.add(...e);\n}, qn = (t, ...e) => {\n t.classList.remove(...e);\n}, Gn = (t, e) => t.classList.contains(e), { body: Zn } = document, { documentElement: _n } = document, { head: $n } = document, Jn = (t) => Array.from(t), v = (t) => t != null && typeof t == \"object\" || !1, u = (t) => v(t) && typeof t.nodeType == \"number\" && [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11].some(\n (e) => t.nodeType === e\n) || !1, i = (t) => u(t) && t.nodeType === 1 || !1, E = /* @__PURE__ */ new Map(), L = {\n data: E,\n set: (t, e, n) => {\n if (!i(t)) return;\n E.has(e) || E.set(e, /* @__PURE__ */ new Map()), E.get(e).set(t, n);\n },\n getAllFor: (t) => E.get(t) || null,\n get: (t, e) => {\n if (!i(t) || !e) return null;\n const n = L.getAllFor(e);\n return t && n && n.get(t) || null;\n },\n remove: (t, e) => {\n const n = L.getAllFor(e);\n !n || !i(t) || (n.delete(t), n.size === 0 && E.delete(e));\n }\n}, Xn = (t, e) => L.get(t, e), Yn = (t) => t?.charAt(0).toUpperCase() + t?.slice(1), I = (t) => t?.trim().replace(\n /(?:^\\w|[A-Z]|\\b\\w)/g,\n (e, n) => n === 0 ? e.toLowerCase() : e.toUpperCase()\n).replace(/\\s+/g, \"\"), N = (t) => typeof t == \"string\" || !1, K = (t) => v(t) && t.constructor.name === \"Window\" || !1, q = (t) => u(t) && t.nodeType === 9 || !1, d = (t) => q(t) ? t : u(t) ? t.ownerDocument : K(t) ? t.document : globalThis.document, C = (t, ...e) => Object.assign(t, ...e), ne = (t) => {\n if (!t) return;\n if (N(t))\n return d().createElement(t);\n const { tagName: e } = t, n = ne(e);\n if (!n) return;\n const o = { ...t };\n return delete o.tagName, C(n, o);\n}, oe = (t, e) => {\n if (!t || !e) return;\n if (N(e))\n return d().createElementNS(t, e);\n const { tagName: n } = e, o = oe(t, n);\n if (!o) return;\n const s = { ...e };\n return delete s.tagName, C(o, s);\n}, G = (t, e) => t.dispatchEvent(e), to = (t, e, n) => n.indexOf(t) === e, f = (t, e, n) => {\n const o = getComputedStyle(t, n), s = e.replace(\"webkit\", \"Webkit\").replace(/([A-Z])/g, \"-$1\").toLowerCase();\n return o.getPropertyValue(s);\n}, se = (t) => {\n const e = f(t, U), n = f(t, Zt), o = n.includes(\"ms\") ? 1 : 1e3, s = e && e !== \"none\" ? parseFloat(n) * o : 0;\n return Number.isNaN(s) ? 0 : s;\n}, re = (t) => {\n const e = f(t, U), n = f(t, Gt), o = n.includes(\"ms\") ? 1 : 1e3, s = e && e !== \"none\" ? parseFloat(n) * o : 0;\n return Number.isNaN(s) ? 0 : s;\n}, eo = (t, e) => {\n let n = 0;\n const o = new Event(T), s = re(t), r = se(t);\n if (s) {\n const a = (l) => {\n l.target === t && (e.apply(t, [l]), t.removeEventListener(T, a), n = 1);\n };\n t.addEventListener(T, a), setTimeout(() => {\n n || G(t, o);\n }, s + r + 17);\n } else\n e.apply(t, [o]);\n}, ce = (t) => {\n const e = f(t, W), n = f(t, $t), o = n.includes(\"ms\") ? 1 : 1e3, s = e && e !== \"none\" ? parseFloat(n) * o : 0;\n return Number.isNaN(s) ? 0 : s;\n}, ae = (t) => {\n const e = f(t, W), n = f(t, _t), o = n.includes(\"ms\") ? 1 : 1e3, s = e && e !== \"none\" ? parseFloat(n) * o : 0;\n return Number.isNaN(s) ? 0 : s;\n}, no = (t, e) => {\n let n = 0;\n const o = new Event(M), s = ae(t), r = ce(t);\n if (s) {\n const a = (l) => {\n l.target === t && (e.apply(t, [l]), t.removeEventListener(M, a), n = 1);\n };\n t.addEventListener(M, a), setTimeout(() => {\n n || G(t, o);\n }, s + r + 17);\n } else\n e.apply(t, [o]);\n}, oo = (t) => Float32Array.from(Array.from(t)), so = (t) => Float64Array.from(Array.from(t)), ro = (t, e) => t.focus(e), co = (t) => t?.trim().replace(/([a-z])([A-Z])/g, \"$1-$2\").replace(/\\s+/g, \"-\").toLowerCase(), P = (t) => [\"true\", !0].includes(t) ? !0 : [\"false\", !1].includes(t) ? !1 : [\"null\", \"\", null, void 0].includes(t) ? null : t !== \"\" && !Number.isNaN(+t) ? +t : t, S = (t) => Object.entries(t), ao = (t, e, n, o) => {\n if (!i(t)) return e;\n const s = { ...n }, r = { ...t.dataset }, a = { ...e }, l = {}, p = \"title\";\n return S(r).forEach(([c, g]) => {\n const A = o && typeof c == \"string\" && c.includes(o) ? I(c.replace(o, \"\")) : I(c);\n l[A] = P(g);\n }), S(s).forEach(([c, g]) => {\n s[c] = P(g);\n }), S(e).forEach(([c, g]) => {\n c in s ? a[c] = s[c] : c in l ? a[c] = l[c] : a[c] = c === p ? j(t, p) : g;\n }), a;\n}, io = (t, e) => v(t) && (Object.hasOwn(t, e) || e in t), uo = (t) => Object.keys(t), lo = (t) => Object.values(t), fo = (t) => Object.fromEntries(t), po = (t, e) => {\n const n = new CustomEvent(t, {\n cancelable: !0,\n bubbles: !0\n });\n return v(e) && C(n, e), n;\n}, go = { passive: !0 }, mo = (t) => t.offsetHeight, vo = (t, e) => {\n S(e).forEach(([n, o]) => {\n if (o && N(n) && n.includes(\"--\"))\n t.style.setProperty(n, o);\n else {\n const s = {};\n s[n] = o, C(t.style, s);\n }\n });\n}, O = (t) => v(t) && t.constructor.name === \"Map\" || !1, ie = (t) => typeof t == \"number\" || !1, m = /* @__PURE__ */ new Map(), bo = {\n set: (t, e, n, o) => {\n i(t) && (o && o.length ? (m.has(t) || m.set(t, /* @__PURE__ */ new Map()), m.get(t).set(o, setTimeout(e, n))) : m.set(t, setTimeout(e, n)));\n },\n get: (t, e) => {\n if (!i(t)) return null;\n const n = m.get(t);\n return e && n && O(n) ? n.get(e) || null : ie(n) ? n : null;\n },\n clear: (t, e) => {\n if (!i(t)) return;\n const n = m.get(t);\n e && e.length && O(n) ? (clearTimeout(n.get(e)), n.delete(e), n.size === 0 && m.delete(t)) : (clearTimeout(n), m.delete(t));\n }\n}, Eo = (t) => t.toLowerCase(), ho = (t) => t.toUpperCase(), ue = (t, e) => (u(e) ? e : d()).querySelectorAll(t), x = /* @__PURE__ */ new Map();\nfunction le(t) {\n const { shiftKey: e, code: n } = t, o = d(this), s = [\n ...ue(qt, this)\n ].filter(\n (l) => !ee(l, \"disabled\") && !j(l, $)\n );\n if (!s.length) return;\n const r = s[0], a = s[s.length - 1];\n n === \"Tab\" && (e && o.activeElement === r ? (a.focus(), t.preventDefault()) : !e && o.activeElement === a && (r.focus(), t.preventDefault()));\n}\nconst de = (t) => x.has(t) === !0, yo = (t) => {\n const e = de(t);\n (e ? Q : R)(t, \"keydown\", le), e ? x.delete(t) : x.set(t, !0);\n}, b = (t) => i(t) && \"offsetWidth\" in t || !1, y = (t, e) => {\n const { width: n, height: o, top: s, right: r, bottom: a, left: l } = t.getBoundingClientRect();\n let p = 1, c = 1;\n if (e && b(t)) {\n const { offsetWidth: g, offsetHeight: A } = t;\n p = g > 0 ? Math.round(n) / g : 1, c = A > 0 ? Math.round(o) / A : 1;\n }\n return {\n width: n / p,\n height: o / c,\n top: s / c,\n right: r / p,\n bottom: a / c,\n left: l / p,\n x: l / p,\n y: s / c\n };\n}, wo = (t) => d(t).body, w = (t) => d(t).documentElement, Ao = (t) => d(t).head, fe = (t) => u(t) ? (t.nodeName || \"\").toLowerCase() : \"#document\", So = (t) => {\n const e = K(t), n = e ? t.scrollX : t.scrollLeft, o = e ? t.scrollY : t.scrollTop;\n return { x: n, y: o };\n}, pe = (t) => u(t) && t.constructor.name === \"ShadowRoot\" || !1, k = (t) => t.nodeName === \"HTML\" ? t : i(t) && t.assignedSlot || u(t) && t.parentNode || pe(t) && t.host || w(t), ge = (t) => t ? q(t) ? t.defaultView : u(t) ? t?.ownerDocument?.defaultView : t : window, me = (t) => u(t) && [\"TABLE\", \"TD\", \"TH\"].includes(t.nodeName) || !1, ve = (t, e) => t.matches(e), D = (t) => f(t, \"position\") === \"static\", be = (t) => f(t, \"position\") === \"fixed\", Z = (t) => [\":popover-open\", \":modal\"].some((e) => {\n try {\n return ve(t, e);\n } catch {\n return !1;\n }\n}), _ = (t) => {\n const e = Xt(), n = i(t) ? getComputedStyle(t) : t;\n return n.transform !== \"none\" || n.perspective !== \"none\" || (n.containerType ? n.containerType !== \"normal\" : !1) || !e && (n.backdropFilter ? n.backdropFilter !== \"none\" : !1) || !e && (n.filter ? n.filter !== \"none\" : !1) || [\"transform\", \"perspective\", \"filter\"].some(\n (o) => (n.willChange || \"\").includes(o)\n ) || [\"paint\", \"layout\", \"strict\", \"content\"].some(\n (o) => (n.contain || \"\").includes(o)\n );\n}, Ee = (t) => {\n let e = k(t);\n for (; i(e) && !z(e); ) {\n if (_(e))\n return e;\n if (Z(e))\n return null;\n e = k(e);\n }\n return null;\n}, z = (t) => [\"html\", \"body\", \"#document\"].includes(fe(t)), F = (t) => {\n if (!b(t) || be(t))\n return null;\n let e = t.offsetParent;\n return w(t) === e && (e = e.ownerDocument.body), e;\n}, ko = (t) => {\n const e = ge(t);\n if (!u(t) || Z(t))\n return e;\n if (!b(t)) {\n let o = k(t);\n for (; o && !z(o); ) {\n if (i(o) && !D(o))\n return o;\n o = k(o);\n }\n return e;\n }\n let n = F(t);\n for (; n && me(n) && D(n); )\n n = F(n);\n return n && z(n) && D(n) && !_(n) ? e : n || Ee(t) || e;\n}, he = (t) => {\n if (!b(t)) return !1;\n const { width: e, height: n } = y(t), { offsetWidth: o, offsetHeight: s } = t;\n return Math.round(e) !== o || Math.round(n) !== s;\n}, No = (t, e, n) => {\n const o = b(e), s = y(\n t,\n o && he(e)\n ), r = { x: 0, y: 0 };\n if (o) {\n const a = y(e, !0);\n r.x = a.x + e.clientLeft, r.y = a.y + e.clientTop;\n }\n return {\n x: s.left + n.x - r.x,\n y: s.top + n.y - r.y,\n width: s.width,\n height: s.height\n };\n};\nlet B = 0, V = 0;\nconst h = /* @__PURE__ */ new Map(), ye = (t, e) => {\n let n = e ? B : V;\n if (e) {\n const o = ye(t), s = h.get(o) || /* @__PURE__ */ new Map();\n h.has(o) || h.set(o, s), O(s) && !s.has(e) ? (s.set(e, n), B += 1) : n = s.get(e);\n } else {\n const o = t.id || t;\n h.has(o) ? n = h.get(o) : (h.set(o, n), V += 1);\n }\n return n;\n}, we = (t) => Array.isArray(t) || !1, Co = (t) => u(t) && t.nodeName === \"CANVAS\" || !1, Ae = (t) => b(t) && !!t.shadowRoot || !1, To = (t) => {\n if (!u(t)) return !1;\n const { top: e, bottom: n } = y(t), { clientHeight: o } = w(t);\n return e <= o && n >= 0;\n}, Mo = (t) => {\n if (!i(t)) return !1;\n const { clientWidth: e, clientHeight: n } = w(t), { top: o, left: s, bottom: r, right: a } = y(t, !0);\n return o >= 0 && s >= 0 && r <= n && a <= e;\n}, Do = (t) => we(t) && t.every(i) || !1, Lo = (t) => typeof t == \"function\" || !1, Oo = (t) => v(t) && t.constructor.name === \"HTMLCollection\" || !1, xo = (t) => b(t) && t.tagName === \"IMG\" || !1, zo = (t) => {\n if (!N(t)) return !1;\n try {\n JSON.parse(t);\n } catch {\n return !1;\n }\n return !0;\n}, Io = (t) => v(t) && t.constructor.name === \"WeakMap\" || !1, Po = (t) => u(t) && [\"SVG\", \"Image\", \"Video\", \"Canvas\"].some(\n (e) => t.constructor.name.includes(e)\n) || !1, Fo = (t) => v(t) && t.constructor.name === \"NodeList\" || !1, Bo = (t) => w(t).dir === \"rtl\", Vo = (t) => u(t) && t.constructor.name.includes(\"SVG\") || !1, Se = (t, e) => !t || !e ? null : t.closest(e) || Se(t.getRootNode().host, e) || null, Ho = (t, e) => i(t) ? t : (i(e) ? e : d()).querySelector(t), ke = (t, e) => (u(e) ? e : d()).getElementsByTagName(\n t\n), Uo = (t) => [...ke(\"*\", t)].filter(Ae), Wo = (t, e) => d(e).getElementById(t), Ro = (t, e) => (e && u(e) ? e : d()).getElementsByClassName(\n t\n);\nexport {\n Jn as ArrayFrom,\n H as DOMContentLoadedEvent,\n nt as DOMMouseScrollEvent,\n L as Data,\n oo as Float32ArrayFrom,\n so as Float64ArrayFrom,\n C as ObjectAssign,\n S as ObjectEntries,\n fo as ObjectFromEntries,\n io as ObjectHasOwn,\n uo as ObjectKeys,\n lo as ObjectValues,\n bo as Timer,\n J as abortEvent,\n Kn as addClass,\n yn as addEventListener,\n Zt as animationDelay,\n Gt as animationDuration,\n T as animationEndEvent,\n U as animationName,\n Ce as ariaChecked,\n Me as ariaDescribedBy,\n Te as ariaDescription,\n De as ariaExpanded,\n Le as ariaHasPopup,\n $ as ariaHidden,\n Oe as ariaLabel,\n xe as ariaLabelledBy,\n ze as ariaModal,\n Ie as ariaPressed,\n Pe as ariaSelected,\n Be as ariaValueMax,\n Fe as ariaValueMin,\n Ve as ariaValueNow,\n He as ariaValueText,\n X as beforeunloadEvent,\n An as bezierEasings,\n Y as blurEvent,\n I as camelCase,\n Yn as capitalize,\n tt as changeEvent,\n Se as closest,\n et as contextmenuEvent,\n po as createCustomEvent,\n ne as createElement,\n oe as createElementNS,\n G as dispatchEvent,\n to as distinct,\n Zn as documentBody,\n _n as documentElement,\n $n as documentHead,\n We as dragEvent,\n qe as dragendEvent,\n Qe as dragenterEvent,\n je as dragleaveEvent,\n Ke as dragoverEvent,\n Re as dragstartEvent,\n eo as emulateAnimationEnd,\n no as emulateTransitionEnd,\n ot as errorEvent,\n ro as focus,\n st as focusEvent,\n Xe as focusEvents,\n qt as focusableSelector,\n rt as focusinEvent,\n ct as focusoutEvent,\n at as gesturechangeEvent,\n it as gestureendEvent,\n ut as gesturestartEvent,\n j as getAttribute,\n Hn as getAttributeNS,\n y as getBoundingClientRect,\n Uo as getCustomElements,\n d as getDocument,\n wo as getDocumentBody,\n w as getDocumentElement,\n Ao as getDocumentHead,\n se as getElementAnimationDelay,\n re as getElementAnimationDuration,\n Wo as getElementById,\n f as getElementStyle,\n ce as getElementTransitionDelay,\n ae as getElementTransitionDuration,\n Ro as getElementsByClassName,\n ke as getElementsByTagName,\n Xn as getInstance,\n fe as getNodeName,\n So as getNodeScroll,\n ko as getOffsetParent,\n k as getParentNode,\n No as getRectRelativeToOffsetParent,\n ye as getUID,\n ge as getWindow,\n ee as hasAttribute,\n Un as hasAttributeNS,\n Gn as hasClass,\n de as hasFocusTrap,\n On as isApple,\n we as isArray,\n Co as isCanvas,\n Ae as isCustomElement,\n q as isDocument,\n i as isElement,\n To as isElementInScrollRange,\n Mo as isElementInViewport,\n Do as isElementsArray,\n xn as isFirefox,\n Lo as isFunction,\n Oo as isHTMLCollection,\n b as isHTMLElement,\n xo as isHTMLImageElement,\n zo as isJSON,\n O as isMap,\n Po as isMedia,\n Ln as isMobile,\n u as isNode,\n Fo as isNodeList,\n ie as isNumber,\n v as isObject,\n Bo as isRTL,\n Vo as isSVGElement,\n he as isScaledElement,\n pe as isShadowRoot,\n N as isString,\n me as isTableElement,\n Io as isWeakMap,\n Xt as isWebKit,\n K as isWindow,\n co as kebabCase,\n tn as keyAlt,\n en as keyArrowDown,\n on as keyArrowLeft,\n sn as keyArrowRight,\n nn as keyArrowUp,\n rn as keyBackspace,\n cn as keyCapsLock,\n an as keyControl,\n un as keyDelete,\n ln as keyEnter,\n fn as keyEscape,\n pn as keyInsert,\n gn as keyMeta,\n dn as keyNumpadEnter,\n mn as keyPause,\n vn as keyScrollLock,\n bn as keyShift,\n En as keySpace,\n hn as keyTab,\n Ye as keyboardEventKeys,\n lt as keydownEvent,\n dt as keypressEvent,\n ft as keyupEvent,\n pt as loadEvent,\n Ge as loadstartEvent,\n ve as matches,\n _e as mouseClickEvents,\n $e as mouseHoverEvents,\n Ze as mouseSwipeEvents,\n gt as mouseclickEvent,\n mt as mousedblclickEvent,\n vt as mousedownEvent,\n ht as mouseenterEvent,\n Et as mousehoverEvent,\n wt as mouseinEvent,\n yt as mouseleaveEvent,\n kt as mousemoveEvent,\n At as mouseoutEvent,\n St as mouseoverEvent,\n bt as mouseupEvent,\n Nt as mousewheelEvent,\n Ct as moveEvent,\n Ue as nativeEvents,\n Yt as noop,\n ao as normalizeOptions,\n P as normalizeValue,\n Q as off,\n Sn as offsetHeight,\n kn as offsetWidth,\n R as on,\n te as one,\n Tt as orientationchangeEvent,\n go as passiveHandler,\n Mt as pointercancelEvent,\n Dt as pointerdownEvent,\n Lt as pointerleaveEvent,\n Ot as pointermoveEvent,\n xt as pointerupEvent,\n Ho as querySelector,\n ue as querySelectorAll,\n zt as readystatechangeEvent,\n mo as reflow,\n Qn as removeAttribute,\n jn as removeAttributeNS,\n qn as removeClass,\n wn as removeEventListener,\n It as resetEvent,\n Pt as resizeEvent,\n Ht as scrollEvent,\n Nn as scrollHeight,\n Cn as scrollWidth,\n Ft as selectEvent,\n Bt as selectendEvent,\n Vt as selectstartEvent,\n Wn as setAttribute,\n Rn as setAttributeNS,\n vo as setElementStyle,\n Ut as submitEvent,\n zn as support3DTransform,\n Bn as supportAnimation,\n In as supportPassive,\n Fn as supportTouch,\n Pn as supportTransform,\n Vn as supportTransition,\n Tn as tabindex,\n Eo as toLowerCase,\n ho as toUpperCase,\n yo as toggleFocusTrap,\n Je as touchEvents,\n Qt as touchcancelEvent,\n jt as touchendEvent,\n Rt as touchmoveEvent,\n Wt as touchstartEvent,\n $t as transitionDelay,\n _t as transitionDuration,\n M as transitionEndEvent,\n W as transitionProperty,\n Kt as unloadEvent,\n Dn as userAgent,\n Mn as userAgentData,\n Ne as version\n};\n//# sourceMappingURL=shorty.mjs.map\n","const g = \"2.0.8\", e = {}, f = (t) => {\n const { type: n, currentTarget: c } = t;\n e[n].forEach((a, s) => {\n c === s && a.forEach((o, i) => {\n i.apply(s, [t]), typeof o == \"object\" && o.once && r(s, n, i, o);\n });\n });\n}, E = (t, n, c, a) => {\n e[n] || (e[n] = /* @__PURE__ */ new Map());\n const s = e[n];\n s.has(t) || s.set(t, /* @__PURE__ */ new Map());\n const o = s.get(\n t\n ), { size: i } = o;\n o.set(c, a), i || t.addEventListener(\n n,\n f,\n a\n );\n}, r = (t, n, c, a) => {\n const s = e[n], o = s && s.get(t), i = o && o.get(c), d = i !== void 0 ? i : a;\n o && o.has(c) && o.delete(c), s && (!o || !o.size) && s.delete(t), (!s || !s.size) && delete e[n], (!o || !o.size) && t.removeEventListener(\n n,\n f,\n d\n );\n}, M = E, p = r;\nexport {\n E as addListener,\n f as globalListener,\n p as off,\n M as on,\n e as registry,\n r as removeListener,\n g as version\n};\n//# sourceMappingURL=event-listener.mjs.map\n","import { version } from \"../package.json\";\n\nconst Version = version;\n\nexport default Version;\n","/* Native JavaScript for Bootstrap 5 | Base Component\n----------------------------------------------------- */\nimport {\n Data,\n isElement,\n isString,\n normalizeOptions,\n ObjectKeys,\n querySelector,\n} from \"@thednp/shorty\";\n\nimport type { BaseOptions } from \"~/interface/baseComponent\";\nimport Version from \"~/version\";\n\n/** Returns a new `BaseComponent` instance. */\nexport default class BaseComponent {\n declare element: Element;\n declare options?: BaseOptions;\n\n /**\n * @param target `Element` or selector string\n * @param config component instance options\n */\n constructor(target: Element | string, config?: BaseOptions) {\n let element: Element | null;\n\n try {\n if (isElement(target)) {\n element = target as Element;\n } else if (isString(target)) {\n element = querySelector(target);\n // istanbul ignore else @preserve\n if (!element) throw Error(`\"${target}\" is not a valid selector.`);\n } else {\n throw Error(`your target is not an instance of HTMLElement.`);\n }\n } catch (e) {\n throw Error(`${this.name} Error: ${(e as Error).message}`);\n }\n\n const prevInstance = Data.get(element, this.name);\n /* istanbul ignore else @preserve */\n if (prevInstance) {\n // remove previously attached event listeners\n // to avoid memory leaks\n prevInstance._toggleEventListeners();\n }\n\n this.element = element;\n this.options = this.defaults && ObjectKeys(this.defaults).length\n ? normalizeOptions(element, this.defaults, config || {}, \"bs\")\n : /* istanbul ignore next @preserve */ {};\n\n Data.set(element, this.name, this);\n }\n\n // istanbul ignore next @preserve\n get version() {\n return Version;\n }\n\n // istanbul ignore next @preserve\n get name() {\n return \"BaseComponent\";\n }\n\n // istanbul ignore next @preserve\n get defaults() {\n return {};\n }\n\n /** just to have something to extend from */\n // istanbul ignore next @preserve coverage wise this isn't important\n _toggleEventListeners = () => {\n // do something to please linters\n };\n\n /** Removes component from target element. */\n dispose() {\n Data.remove(this.element, this.name);\n ObjectKeys(this).forEach((prop) => {\n delete this[prop];\n });\n }\n}\n"],"names":["Me","De","$","ze","Ie","Pe","st","rt","ct","lt","ft","gt","vt","Et","ht","yt","Dt","Ot","xt","Wt","Re","qt","en","nn","on","sn","fn","_t","$t","M","W","On","t","e","Yt","R","n","o","s","Q","ee","Wn","Qn","Kn","qn","Gn","v","i","E","L","Xn","I","N","K","q","C","ne","G","f","ce","ae","no","r","a","ro","P","S","ao","p","c","g","A","uo","po","go","mo","vo","O","ie","m","bo","Eo","ue","x","le","de","yo","b","y","wo","w","So","pe","k","ge","me","ve","he","No","B","V","h","ye","we","To","Lo","Fo","Bo","Se","Ho","ke","Wo","Ro","d","Version","version","BaseComponent","target","config","element","isElement","isString","querySelector","prevInstance","Data","ObjectKeys","normalizeOptions","prop"],"mappings":"AAAK,MAA6DA,KAAK,oBAAoBC,KAAK,iBAAuCC,IAAI,eAA0DC,KAAK,cAAcC,KAAK,gBAAgBC,KAAK,iBAAuPC,KAAK,SAASC,KAAK,WAAWC,KAAK,YAA0EC,KAAK,WAA4BC,KAAK,SAAsBC,KAAK,SAA0BC,KAAK,aAA6BC,KAAK,SAASC,KAAK,cAAcC,KAAK,cAAmKC,KAAK,eAAoCC,KAAK,eAAeC,KAAK,aAAsJC,KAAK,cAmDzmCC,KAAK,aAUuBC,IAAK,qFAoBlCC,KAAK,aAAaC,KAAK,WAAWC,KAAK,aAAaC,KAAK,cAAkHC,KAAK,UAAyMC,IAAK,sBAAsBC,IAAK,mBAAmBC,IAAI,iBAAiBC,IAAI,sBA+BjdC,KAAK,MAAM;AACZ,QAAMC,IAAI;AACV,SAAO,WAAW,eAAe,OAAO;AAAA,IACtC,CAACC,MAAMD,EAAE,KAAKC,EAAE,KAAK;AAAA,EACtB,KAAID,EAAE;AAAA,IACL,WAAW;AAAA,EACZ,KAAI;AACP,GAA2PE,KAAK,MAAM;AACtQ,GAAGC,IAAI,CAACH,GAAGC,GAAGG,GAAGC,MAAM;AACrB,QAAMC,IAAID,KAAK;AACf,EAAAL,EAAE;AAAA,IACAC;AAAA,IACAG;AAAA,IACAE;AAAA,EACD;AACH,GAAGC,IAAI,CAACP,GAAGC,GAAGG,GAAGC,MAAM;AACrB,QAAMC,IAAID,KAAK;AACf,EAAAL,EAAE;AAAA,IACAC;AAAA,IACAG;AAAA,IACAE;AAAA,EACD;AACH,GAesU,IAAI,CAACN,GAAGC,MAAMD,EAAE,aAAaC,CAAC,GAA6CO,IAAK,CAACR,GAAGC,MAAMD,EAAE,aAAaC,CAAC,GAA6CQ,KAAK,CAACT,GAAGC,GAAGG,MAAMJ,EAAE,aAAaC,GAAGG,CAAC,GAAmDM,KAAK,CAACV,GAAGC,MAAMD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AU;AACL,WAAAL;AAAA,EAAA;AAAA,EAIT,IAAI,OAAO;AACF,WAAA;AAAA,EAAA;AAAA,EAIT,IAAI,WAAW;AACb,WAAO,CAAC;AAAA,EAAA;AAAA,EAKV,wBAAwB,MAAM;AAAA,EAE9B;AAAA,EAGA,UAAU;AACRU,IAAAA,EAAK,OAAoB,KAAK,SAAS,KAAK,IAAI,GAChDC,EAAW,IAAI,EAAE,QAAQ,CAACE,MAAS;AACjC,aAAO,KAAKA,CAAI;AAAA,IAAA,CACjB;AAAA,EAAA;AAEL;","x_google_ignoreList":[0,1]} \ No newline at end of file diff --git a/dist/components/base-component-4K-5H-MO.js b/dist/components/base-component-DMuoZh8G.js similarity index 98% rename from dist/components/base-component-4K-5H-MO.js rename to dist/components/base-component-DMuoZh8G.js index 9f145b10..75a40ac7 100644 --- a/dist/components/base-component-4K-5H-MO.js +++ b/dist/components/base-component-DMuoZh8G.js @@ -1,2 +1,2 @@ -"use strict";const Z="aria-describedby",J="aria-expanded",$="aria-hidden",ee="aria-modal",te="aria-pressed",ne="aria-selected",oe="focus",se="focusin",re="focusout",ie="keydown",ae="keyup",le="click",ce="mousedown",ue="hover",de="mouseenter",he="mouseleave",fe="pointerdown",ge="pointermove",pe="pointerup",me="touchstart",ye="dragstart",we='a[href], button, input, textarea, select, details, [tabindex]:not([tabindex="-1"]',ve="ArrowDown",be="ArrowUp",Ee="ArrowLeft",Le="ArrowRight",Ne="Escape",Te="transitionDuration",Ae="transitionDelay",C="transitionend",z="transitionProperty",Me=()=>{const e=/(iPhone|iPod|iPad)/;return navigator?.userAgentData?.brands.some(t=>e.test(t.brand))||e.test(navigator?.userAgent)||!1},xe=()=>{},Ce=(e,t,n,o)=>{const s=o||!1;e.addEventListener(t,n,s)},De=(e,t,n,o)=>{const s=o||!1;e.removeEventListener(t,n,s)},k=(e,t)=>e.getAttribute(t),O=(e,t)=>e.hasAttribute(t),We=(e,t,n)=>e.setAttribute(t,n),ke=(e,t)=>e.removeAttribute(t),Be=(e,...t)=>{e.classList.add(...t)},Se=(e,...t)=>{e.classList.remove(...t)},He=(e,t)=>e.classList.contains(t),E=e=>e!=null&&typeof e=="object"||!1,u=e=>E(e)&&typeof e.nodeType=="number"&&[1,2,3,4,5,6,7,8,9,10,11].some(t=>e.nodeType===t)||!1,c=e=>u(e)&&e.nodeType===1||!1,p=new Map,y={data:p,set:(e,t,n)=>{c(e)&&(p.has(t)||p.set(t,new Map),p.get(t).set(e,n))},getAllFor:e=>p.get(e)||null,get:(e,t)=>{if(!c(e)||!t)return null;const n=y.getAllFor(t);return e&&n&&n.get(e)||null},remove:(e,t)=>{const n=y.getAllFor(t);!n||!c(e)||(n.delete(e),n.size===0&&p.delete(t))}},Pe=(e,t)=>y.get(e,t),B=e=>e?.trim().replace(/(?:^\w|[A-Z]|\b\w)/g,(t,n)=>n===0?t.toLowerCase():t.toUpperCase()).replace(/\s+/g,""),T=e=>typeof e=="string"||!1,j=e=>E(e)&&e.constructor.name==="Window"||!1,F=e=>u(e)&&e.nodeType===9||!1,d=e=>F(e)?e:u(e)?e.ownerDocument:j(e)?e.document:globalThis.document,A=(e,...t)=>Object.assign(e,...t),q=e=>{if(!e)return;if(T(e))return d().createElement(e);const{tagName:t}=e,n=q(t);if(!n)return;const o={...e};return delete o.tagName,A(n,o)},I=(e,t)=>e.dispatchEvent(t),v=(e,t,n)=>{const o=getComputedStyle(e,n),s=t.replace("webkit","Webkit").replace(/([A-Z])/g,"-$1").toLowerCase();return o.getPropertyValue(s)},Re=e=>{const t=v(e,z),n=v(e,Ae),o=n.includes("ms")?1:1e3,s=t&&t!=="none"?parseFloat(n)*o:0;return Number.isNaN(s)?0:s},V=e=>{const t=v(e,z),n=v(e,Te),o=n.includes("ms")?1:1e3,s=t&&t!=="none"?parseFloat(n)*o:0;return Number.isNaN(s)?0:s},$e=(e,t)=>{let n=0;const o=new Event(C),s=V(e),r=Re(e);if(s){const i=l=>{l.target===e&&(t.apply(e,[l]),e.removeEventListener(C,i),n=1)};e.addEventListener(C,i),setTimeout(()=>{n||I(e,o)},s+r+17)}else t.apply(e,[o])},ze=(e,t)=>e.focus(t),S=e=>["true",!0].includes(e)?!0:["false",!1].includes(e)?!1:["null","",null,void 0].includes(e)?null:e!==""&&!Number.isNaN(+e)?+e:e,N=e=>Object.entries(e),Oe=(e,t,n,o)=>{if(!c(e))return t;const s={...n},r={...e.dataset},i={...t},l={},h="title";return N(r).forEach(([a,f])=>{const L=typeof a=="string"&&a.includes(o)?B(a.replace(o,"")):B(a);l[L]=S(f)}),N(s).forEach(([a,f])=>{s[a]=S(f)}),N(t).forEach(([a,f])=>{a in s?i[a]=s[a]:a in l?i[a]=l[a]:i[a]=a===h?k(e,h):f}),i},H=e=>Object.keys(e),je=(e,t)=>{const n=new CustomEvent(e,{cancelable:!0,bubbles:!0});return E(t)&&A(n,t),n},Fe={passive:!0},qe=e=>e.offsetHeight,Ie=(e,t)=>{N(t).forEach(([n,o])=>{if(o&&T(n)&&n.includes("--"))e.style.setProperty(n,o);else{const s={};s[n]=o,A(e.style,s)}})},D=e=>E(e)&&e.constructor.name==="Map"||!1,Ve=e=>typeof e=="number"||!1,g=new Map,Ge={set:(e,t,n,o)=>{c(e)&&(o&&o.length?(g.has(e)||g.set(e,new Map),g.get(e).set(o,setTimeout(t,n))):g.set(e,setTimeout(t,n)))},get:(e,t)=>{if(!c(e))return null;const n=g.get(e);return t&&n&&D(n)?n.get(t)||null:Ve(n)?n:null},clear:(e,t)=>{if(!c(e))return;const n=g.get(e);t&&t.length&&D(n)?(clearTimeout(n.get(t)),n.delete(t),n.size===0&&g.delete(e)):(clearTimeout(n),g.delete(e))}},Ke=e=>e.toLowerCase(),G=(e,t)=>(u(t)?t:d()).querySelectorAll(e),W=new Map;function Qe(e){const{shiftKey:t,code:n}=e,o=d(this),s=[...G(we,this)].filter(l=>!O(l,"disabled")&&!k(l,$));if(!s.length)return;const r=s[0],i=s[s.length-1];n==="Tab"&&(t&&o.activeElement===r?(i.focus(),e.preventDefault()):!t&&o.activeElement===i&&(r.focus(),e.preventDefault()))}const Xe=e=>W.has(e)===!0,Ye=e=>{const t=Xe(e);(t?De:Ce)(e,"keydown",Qe),t?W.delete(e):W.set(e,!0)},M=e=>c(e)&&"offsetWidth"in e||!1,b=(e,t)=>{const{width:n,height:o,top:s,right:r,bottom:i,left:l}=e.getBoundingClientRect();let h=1,a=1;if(t&&M(e)){const{offsetWidth:f,offsetHeight:L}=e;h=f>0?Math.round(n)/f:1,a=L>0?Math.round(o)/L:1}return{width:n/h,height:o/a,top:s/a,right:r/h,bottom:i/a,left:l/h,x:l/h,y:s/a}},_e=e=>d(e).body,x=e=>d(e).documentElement,Ue=e=>{const t=j(e),n=t?e.scrollX:e.scrollLeft,o=t?e.scrollY:e.scrollTop;return{x:n,y:o}},K=e=>u(e)&&e.constructor.name==="ShadowRoot"||!1,Ze=e=>e.nodeName==="HTML"?e:c(e)&&e.assignedSlot||u(e)&&e.parentNode||K(e)&&e.host||x(e),Je=e=>e?F(e)?e.defaultView:u(e)?e?.ownerDocument?.defaultView:e:window,et=e=>u(e)&&["TABLE","TD","TH"].includes(e.nodeName)||!1,tt=(e,t)=>e.matches(t),nt=e=>{if(!M(e))return!1;const{width:t,height:n}=b(e),{offsetWidth:o,offsetHeight:s}=e;return Math.round(t)!==o||Math.round(n)!==s},ot=(e,t,n)=>{const o=M(t),s=b(e,o&&nt(t)),r={x:0,y:0};if(o){const i=b(t,!0);r.x=i.x+t.clientLeft,r.y=i.y+t.clientTop}return{x:s.left+n.x-r.x,y:s.top+n.y-r.y,width:s.width,height:s.height}};let P=0,R=0;const m=new Map,Q=(e,t)=>{let n=t?P:R;if(t){const o=Q(e),s=m.get(o)||new Map;m.has(o)||m.set(o,s),D(s)&&!s.has(t)?(s.set(t,n),P+=1):n=s.get(t)}else{const o=e.id||e;m.has(o)?n=m.get(o):(m.set(o,n),R+=1)}return n},st=e=>Array.isArray(e)||!1,rt=e=>{if(!u(e))return!1;const{top:t,bottom:n}=b(e),{clientHeight:o}=x(e);return t<=o&&n>=0},it=e=>typeof e=="function"||!1,at=e=>E(e)&&e.constructor.name==="NodeList"||!1,lt=e=>x(e).dir==="rtl",X=(e,t)=>!e||!t?null:e.closest(t)||X(e.getRootNode().host,t)||null,Y=(e,t)=>c(e)?e:(c(t)?t:d()).querySelector(e),ct=(e,t)=>(u(t)?t:d()).getElementsByTagName(e),ut=(e,t)=>d(t).getElementById(e),dt=(e,t)=>(t&&u(t)?t:d()).getElementsByClassName(e),w={},_=e=>{const{type:t,currentTarget:n}=e;w[t].forEach((o,s)=>{n===s&&o.forEach((r,i)=>{i.apply(s,[e]),typeof r=="object"&&r.once&&U(s,t,i,r)})})},ht=(e,t,n,o)=>{w[t]||(w[t]=new Map);const s=w[t];s.has(e)||s.set(e,new Map);const r=s.get(e),{size:i}=r;r.set(n,o),i||e.addEventListener(t,_,o)},U=(e,t,n,o)=>{const s=w[t],r=s&&s.get(e),i=r&&r.get(n),l=i!==void 0?i:o;r&&r.has(n)&&r.delete(n),s&&(!r||!r.size)&&s.delete(e),(!s||!s.size)&&delete w[t],(!r||!r.size)&&e.removeEventListener(t,_,l)},ft="5.1.0",gt=ft;class pt{constructor(t,n){let o;try{if(c(t))o=t;else if(T(t)){if(o=Y(t),!o)throw Error(`"${t}" is not a valid selector.`)}else throw Error("your target is not an instance of HTMLElement.")}catch(r){throw Error(`${this.name} Error: ${r.message}`)}const s=y.get(o,this.name);s&&s._toggleEventListeners(),this.element=o,this.options=this.defaults&&H(this.defaults).length?Oe(o,this.defaults,n||{},"bs"):{},y.set(o,this.name,this)}get version(){return gt}get name(){return"BaseComponent"}get defaults(){return{}}_toggleEventListeners=()=>{};dispose(){y.remove(this.element,this.name),H(this).forEach(t=>{delete this[t]})}}exports.$=$;exports.BaseComponent=pt;exports.Bo=lt;exports.C=A;exports.De=J;exports.Dt=fe;exports.E=ht;exports.Eo=Ke;exports.Et=ue;exports.Fo=at;exports.G=I;exports.Gn=He;exports.Ho=Y;exports.Ie=te;exports.Kn=Be;exports.Lo=it;exports.Me=Z;exports.N=T;exports.No=ot;exports.On=Me;exports.Ot=ge;exports.Pe=ne;exports.Qn=ke;exports.Re=ye;exports.Ro=dt;exports.Se=X;exports.So=Ue;exports.To=rt;exports.Wn=We;exports.Wo=ut;exports.Wt=me;exports.Xn=Pe;exports.Yt=xe;exports.ae=V;exports.b=M;exports.bo=Ge;exports.ct=re;exports.d=d;exports.ee=O;exports.en=ve;exports.f=v;exports.fn=Ne;exports.ft=ae;exports.ge=Je;exports.go=Fe;exports.gt=le;exports.ht=de;exports.j=k;exports.k=Ze;exports.ke=ct;exports.lt=ie;exports.me=et;exports.mo=qe;exports.ne=q;exports.nn=be;exports.no=$e;exports.on=Ee;exports.pe=K;exports.po=je;exports.qn=Se;exports.r=U;exports.ro=ze;exports.rt=se;exports.sn=Le;exports.st=oe;exports.u=u;exports.ue=G;exports.ve=tt;exports.vo=Ie;exports.vt=ce;exports.w=x;exports.we=st;exports.wo=_e;exports.xt=pe;exports.y=b;exports.ye=Q;exports.yo=Ye;exports.yt=he;exports.ze=ee; -//# sourceMappingURL=base-component-4K-5H-MO.js.map +"use strict";const Z="aria-describedby",J="aria-expanded",$="aria-hidden",ee="aria-modal",te="aria-pressed",ne="aria-selected",oe="focus",se="focusin",re="focusout",ie="keydown",ae="keyup",le="click",ce="mousedown",ue="hover",de="mouseenter",he="mouseleave",fe="pointerdown",ge="pointermove",pe="pointerup",me="touchstart",ye="dragstart",we='a[href], button, input, textarea, select, details, [tabindex]:not([tabindex="-1"]',ve="ArrowDown",be="ArrowUp",Ee="ArrowLeft",Le="ArrowRight",Ne="Escape",Te="transitionDuration",Ae="transitionDelay",C="transitionend",z="transitionProperty",Me=()=>{const e=/(iPhone|iPod|iPad)/;return navigator?.userAgentData?.brands.some(t=>e.test(t.brand))||e.test(navigator?.userAgent)||!1},xe=()=>{},Ce=(e,t,n,o)=>{const s=o||!1;e.addEventListener(t,n,s)},De=(e,t,n,o)=>{const s=o||!1;e.removeEventListener(t,n,s)},k=(e,t)=>e.getAttribute(t),O=(e,t)=>e.hasAttribute(t),We=(e,t,n)=>e.setAttribute(t,n),ke=(e,t)=>e.removeAttribute(t),Be=(e,...t)=>{e.classList.add(...t)},Se=(e,...t)=>{e.classList.remove(...t)},He=(e,t)=>e.classList.contains(t),E=e=>e!=null&&typeof e=="object"||!1,u=e=>E(e)&&typeof e.nodeType=="number"&&[1,2,3,4,5,6,7,8,9,10,11].some(t=>e.nodeType===t)||!1,c=e=>u(e)&&e.nodeType===1||!1,p=new Map,y={data:p,set:(e,t,n)=>{c(e)&&(p.has(t)||p.set(t,new Map),p.get(t).set(e,n))},getAllFor:e=>p.get(e)||null,get:(e,t)=>{if(!c(e)||!t)return null;const n=y.getAllFor(t);return e&&n&&n.get(e)||null},remove:(e,t)=>{const n=y.getAllFor(t);!n||!c(e)||(n.delete(e),n.size===0&&p.delete(t))}},Pe=(e,t)=>y.get(e,t),B=e=>e?.trim().replace(/(?:^\w|[A-Z]|\b\w)/g,(t,n)=>n===0?t.toLowerCase():t.toUpperCase()).replace(/\s+/g,""),T=e=>typeof e=="string"||!1,j=e=>E(e)&&e.constructor.name==="Window"||!1,F=e=>u(e)&&e.nodeType===9||!1,d=e=>F(e)?e:u(e)?e.ownerDocument:j(e)?e.document:globalThis.document,A=(e,...t)=>Object.assign(e,...t),q=e=>{if(!e)return;if(T(e))return d().createElement(e);const{tagName:t}=e,n=q(t);if(!n)return;const o={...e};return delete o.tagName,A(n,o)},I=(e,t)=>e.dispatchEvent(t),v=(e,t,n)=>{const o=getComputedStyle(e,n),s=t.replace("webkit","Webkit").replace(/([A-Z])/g,"-$1").toLowerCase();return o.getPropertyValue(s)},Re=e=>{const t=v(e,z),n=v(e,Ae),o=n.includes("ms")?1:1e3,s=t&&t!=="none"?parseFloat(n)*o:0;return Number.isNaN(s)?0:s},V=e=>{const t=v(e,z),n=v(e,Te),o=n.includes("ms")?1:1e3,s=t&&t!=="none"?parseFloat(n)*o:0;return Number.isNaN(s)?0:s},$e=(e,t)=>{let n=0;const o=new Event(C),s=V(e),r=Re(e);if(s){const i=l=>{l.target===e&&(t.apply(e,[l]),e.removeEventListener(C,i),n=1)};e.addEventListener(C,i),setTimeout(()=>{n||I(e,o)},s+r+17)}else t.apply(e,[o])},ze=(e,t)=>e.focus(t),S=e=>["true",!0].includes(e)?!0:["false",!1].includes(e)?!1:["null","",null,void 0].includes(e)?null:e!==""&&!Number.isNaN(+e)?+e:e,N=e=>Object.entries(e),Oe=(e,t,n,o)=>{if(!c(e))return t;const s={...n},r={...e.dataset},i={...t},l={},h="title";return N(r).forEach(([a,f])=>{const L=typeof a=="string"&&a.includes(o)?B(a.replace(o,"")):B(a);l[L]=S(f)}),N(s).forEach(([a,f])=>{s[a]=S(f)}),N(t).forEach(([a,f])=>{a in s?i[a]=s[a]:a in l?i[a]=l[a]:i[a]=a===h?k(e,h):f}),i},H=e=>Object.keys(e),je=(e,t)=>{const n=new CustomEvent(e,{cancelable:!0,bubbles:!0});return E(t)&&A(n,t),n},Fe={passive:!0},qe=e=>e.offsetHeight,Ie=(e,t)=>{N(t).forEach(([n,o])=>{if(o&&T(n)&&n.includes("--"))e.style.setProperty(n,o);else{const s={};s[n]=o,A(e.style,s)}})},D=e=>E(e)&&e.constructor.name==="Map"||!1,Ve=e=>typeof e=="number"||!1,g=new Map,Ge={set:(e,t,n,o)=>{c(e)&&(o&&o.length?(g.has(e)||g.set(e,new Map),g.get(e).set(o,setTimeout(t,n))):g.set(e,setTimeout(t,n)))},get:(e,t)=>{if(!c(e))return null;const n=g.get(e);return t&&n&&D(n)?n.get(t)||null:Ve(n)?n:null},clear:(e,t)=>{if(!c(e))return;const n=g.get(e);t&&t.length&&D(n)?(clearTimeout(n.get(t)),n.delete(t),n.size===0&&g.delete(e)):(clearTimeout(n),g.delete(e))}},Ke=e=>e.toLowerCase(),G=(e,t)=>(u(t)?t:d()).querySelectorAll(e),W=new Map;function Qe(e){const{shiftKey:t,code:n}=e,o=d(this),s=[...G(we,this)].filter(l=>!O(l,"disabled")&&!k(l,$));if(!s.length)return;const r=s[0],i=s[s.length-1];n==="Tab"&&(t&&o.activeElement===r?(i.focus(),e.preventDefault()):!t&&o.activeElement===i&&(r.focus(),e.preventDefault()))}const Xe=e=>W.has(e)===!0,Ye=e=>{const t=Xe(e);(t?De:Ce)(e,"keydown",Qe),t?W.delete(e):W.set(e,!0)},M=e=>c(e)&&"offsetWidth"in e||!1,b=(e,t)=>{const{width:n,height:o,top:s,right:r,bottom:i,left:l}=e.getBoundingClientRect();let h=1,a=1;if(t&&M(e)){const{offsetWidth:f,offsetHeight:L}=e;h=f>0?Math.round(n)/f:1,a=L>0?Math.round(o)/L:1}return{width:n/h,height:o/a,top:s/a,right:r/h,bottom:i/a,left:l/h,x:l/h,y:s/a}},_e=e=>d(e).body,x=e=>d(e).documentElement,Ue=e=>{const t=j(e),n=t?e.scrollX:e.scrollLeft,o=t?e.scrollY:e.scrollTop;return{x:n,y:o}},K=e=>u(e)&&e.constructor.name==="ShadowRoot"||!1,Ze=e=>e.nodeName==="HTML"?e:c(e)&&e.assignedSlot||u(e)&&e.parentNode||K(e)&&e.host||x(e),Je=e=>e?F(e)?e.defaultView:u(e)?e?.ownerDocument?.defaultView:e:window,et=e=>u(e)&&["TABLE","TD","TH"].includes(e.nodeName)||!1,tt=(e,t)=>e.matches(t),nt=e=>{if(!M(e))return!1;const{width:t,height:n}=b(e),{offsetWidth:o,offsetHeight:s}=e;return Math.round(t)!==o||Math.round(n)!==s},ot=(e,t,n)=>{const o=M(t),s=b(e,o&&nt(t)),r={x:0,y:0};if(o){const i=b(t,!0);r.x=i.x+t.clientLeft,r.y=i.y+t.clientTop}return{x:s.left+n.x-r.x,y:s.top+n.y-r.y,width:s.width,height:s.height}};let P=0,R=0;const m=new Map,Q=(e,t)=>{let n=t?P:R;if(t){const o=Q(e),s=m.get(o)||new Map;m.has(o)||m.set(o,s),D(s)&&!s.has(t)?(s.set(t,n),P+=1):n=s.get(t)}else{const o=e.id||e;m.has(o)?n=m.get(o):(m.set(o,n),R+=1)}return n},st=e=>Array.isArray(e)||!1,rt=e=>{if(!u(e))return!1;const{top:t,bottom:n}=b(e),{clientHeight:o}=x(e);return t<=o&&n>=0},it=e=>typeof e=="function"||!1,at=e=>E(e)&&e.constructor.name==="NodeList"||!1,lt=e=>x(e).dir==="rtl",X=(e,t)=>!e||!t?null:e.closest(t)||X(e.getRootNode().host,t)||null,Y=(e,t)=>c(e)?e:(c(t)?t:d()).querySelector(e),ct=(e,t)=>(u(t)?t:d()).getElementsByTagName(e),ut=(e,t)=>d(t).getElementById(e),dt=(e,t)=>(t&&u(t)?t:d()).getElementsByClassName(e),w={},_=e=>{const{type:t,currentTarget:n}=e;w[t].forEach((o,s)=>{n===s&&o.forEach((r,i)=>{i.apply(s,[e]),typeof r=="object"&&r.once&&U(s,t,i,r)})})},ht=(e,t,n,o)=>{w[t]||(w[t]=new Map);const s=w[t];s.has(e)||s.set(e,new Map);const r=s.get(e),{size:i}=r;r.set(n,o),i||e.addEventListener(t,_,o)},U=(e,t,n,o)=>{const s=w[t],r=s&&s.get(e),i=r&&r.get(n),l=i!==void 0?i:o;r&&r.has(n)&&r.delete(n),s&&(!r||!r.size)&&s.delete(e),(!s||!s.size)&&delete w[t],(!r||!r.size)&&e.removeEventListener(t,_,l)},ft="5.1.1",gt=ft;class pt{constructor(t,n){let o;try{if(c(t))o=t;else if(T(t)){if(o=Y(t),!o)throw Error(`"${t}" is not a valid selector.`)}else throw Error("your target is not an instance of HTMLElement.")}catch(r){throw Error(`${this.name} Error: ${r.message}`)}const s=y.get(o,this.name);s&&s._toggleEventListeners(),this.element=o,this.options=this.defaults&&H(this.defaults).length?Oe(o,this.defaults,n||{},"bs"):{},y.set(o,this.name,this)}get version(){return gt}get name(){return"BaseComponent"}get defaults(){return{}}_toggleEventListeners=()=>{};dispose(){y.remove(this.element,this.name),H(this).forEach(t=>{delete this[t]})}}exports.$=$;exports.BaseComponent=pt;exports.Bo=lt;exports.C=A;exports.De=J;exports.Dt=fe;exports.E=ht;exports.Eo=Ke;exports.Et=ue;exports.Fo=at;exports.G=I;exports.Gn=He;exports.Ho=Y;exports.Ie=te;exports.Kn=Be;exports.Lo=it;exports.Me=Z;exports.N=T;exports.No=ot;exports.On=Me;exports.Ot=ge;exports.Pe=ne;exports.Qn=ke;exports.Re=ye;exports.Ro=dt;exports.Se=X;exports.So=Ue;exports.To=rt;exports.Wn=We;exports.Wo=ut;exports.Wt=me;exports.Xn=Pe;exports.Yt=xe;exports.ae=V;exports.b=M;exports.bo=Ge;exports.ct=re;exports.d=d;exports.ee=O;exports.en=ve;exports.f=v;exports.fn=Ne;exports.ft=ae;exports.ge=Je;exports.go=Fe;exports.gt=le;exports.ht=de;exports.j=k;exports.k=Ze;exports.ke=ct;exports.lt=ie;exports.me=et;exports.mo=qe;exports.ne=q;exports.nn=be;exports.no=$e;exports.on=Ee;exports.pe=K;exports.po=je;exports.qn=Se;exports.r=U;exports.ro=ze;exports.rt=se;exports.sn=Le;exports.st=oe;exports.u=u;exports.ue=G;exports.ve=tt;exports.vo=Ie;exports.vt=ce;exports.w=x;exports.we=st;exports.wo=_e;exports.xt=pe;exports.y=b;exports.ye=Q;exports.yo=Ye;exports.yt=he;exports.ze=ee; +//# sourceMappingURL=base-component-DMuoZh8G.js.map diff --git a/dist/components/base-component-4K-5H-MO.js.map b/dist/components/base-component-DMuoZh8G.js.map similarity index 99% rename from dist/components/base-component-4K-5H-MO.js.map rename to dist/components/base-component-DMuoZh8G.js.map index 7b4fb421..d6055604 100644 --- a/dist/components/base-component-4K-5H-MO.js.map +++ b/dist/components/base-component-DMuoZh8G.js.map @@ -1 +1 @@ -{"version":3,"file":"base-component-4K-5H-MO.js","sources":["../../node_modules/.pnpm/@thednp+shorty@2.0.8/node_modules/@thednp/shorty/dist/shorty.mjs","../../node_modules/.pnpm/@thednp+event-listener@2.0.8/node_modules/@thednp/event-listener/dist/event-listener.mjs","../../src/version.ts","../../src/components/base-component.ts"],"sourcesContent":["const Ne = \"2.0.8\", Ce = \"aria-checked\", Te = \"aria-description\", Me = \"aria-describedby\", De = \"aria-expanded\", Le = \"aria-haspopup\", $ = \"aria-hidden\", Oe = \"aria-label\", xe = \"aria-labelledby\", ze = \"aria-modal\", Ie = \"aria-pressed\", Pe = \"aria-selected\", Fe = \"aria-valuemin\", Be = \"aria-valuemax\", Ve = \"aria-valuenow\", He = \"aria-valuetext\", J = \"abort\", X = \"beforeunload\", Y = \"blur\", tt = \"change\", et = \"contextmenu\", H = \"DOMContentLoaded\", nt = \"DOMMouseScroll\", ot = \"error\", st = \"focus\", rt = \"focusin\", ct = \"focusout\", at = \"gesturechange\", it = \"gestureend\", ut = \"gesturestart\", lt = \"keydown\", dt = \"keypress\", ft = \"keyup\", pt = \"load\", gt = \"click\", mt = \"dblclick\", vt = \"mousedown\", bt = \"mouseup\", Et = \"hover\", ht = \"mouseenter\", yt = \"mouseleave\", wt = \"mousein\", At = \"mouseout\", St = \"mouseover\", kt = \"mousemove\", Nt = \"mousewheel\", Ct = \"move\", Tt = \"orientationchange\", Mt = \"pointercancel\", Dt = \"pointerdown\", Lt = \"pointerleave\", Ot = \"pointermove\", xt = \"pointerup\", zt = \"readystatechange\", It = \"reset\", Pt = \"resize\", Ft = \"select\", Bt = \"selectend\", Vt = \"selectstart\", Ht = \"scroll\", Ut = \"submit\", Wt = \"touchstart\", Rt = \"touchmove\", Qt = \"touchcancel\", jt = \"touchend\", Kt = \"unload\", Ue = {\n DOMContentLoaded: H,\n DOMMouseScroll: nt,\n abort: J,\n beforeunload: X,\n blur: Y,\n change: tt,\n click: gt,\n contextmenu: et,\n dblclick: mt,\n error: ot,\n focus: st,\n focusin: rt,\n focusout: ct,\n gesturechange: at,\n gestureend: it,\n gesturestart: ut,\n hover: Et,\n keydown: lt,\n keypress: dt,\n keyup: ft,\n load: pt,\n mousedown: vt,\n mousemove: kt,\n mousein: wt,\n mouseout: At,\n mouseenter: ht,\n mouseleave: yt,\n mouseover: St,\n mouseup: bt,\n mousewheel: Nt,\n move: Ct,\n orientationchange: Tt,\n pointercancel: Mt,\n pointerdown: Dt,\n pointerleave: Lt,\n pointermove: Ot,\n pointerup: xt,\n readystatechange: zt,\n reset: It,\n resize: Pt,\n scroll: Ht,\n select: Ft,\n selectend: Bt,\n selectstart: Vt,\n submit: Ut,\n touchcancel: Qt,\n touchend: jt,\n touchmove: Rt,\n touchstart: Wt,\n unload: Kt\n}, We = \"drag\", Re = \"dragstart\", Qe = \"dragenter\", je = \"dragleave\", Ke = \"dragover\", qe = \"dragend\", Ge = \"loadstart\", Ze = {\n start: \"mousedown\",\n end: \"mouseup\",\n move: \"mousemove\",\n cancel: \"mouseleave\"\n}, _e = { down: \"mousedown\", up: \"mouseup\" }, $e = \"onmouseleave\" in document ? [\"mouseenter\", \"mouseleave\"] : [\"mouseover\", \"mouseout\"], Je = {\n start: \"touchstart\",\n end: \"touchend\",\n move: \"touchmove\",\n cancel: \"touchcancel\"\n}, Xe = { in: \"focusin\", out: \"focusout\" }, qt = 'a[href], button, input, textarea, select, details, [tabindex]:not([tabindex=\"-1\"]', Ye = {\n Backspace: \"Backspace\",\n Tab: \"Tab\",\n Enter: \"Enter\",\n Shift: \"Shift\",\n Control: \"Control\",\n Alt: \"Alt\",\n Pause: \"Pause\",\n CapsLock: \"CapsLock\",\n Escape: \"Escape\",\n Scape: \"Space\",\n ArrowLeft: \"ArrowLeft\",\n ArrowUp: \"ArrowUp\",\n ArrowRight: \"ArrowRight\",\n ArrowDown: \"ArrowDown\",\n Insert: \"Insert\",\n Delete: \"Delete\",\n Meta: \"Meta\",\n ContextMenu: \"ContextMenu\",\n ScrollLock: \"ScrollLock\"\n}, tn = \"Alt\", en = \"ArrowDown\", nn = \"ArrowUp\", on = \"ArrowLeft\", sn = \"ArrowRight\", rn = \"Backspace\", cn = \"CapsLock\", an = \"Control\", un = \"Delete\", ln = \"Enter\", dn = \"NumpadEnter\", fn = \"Escape\", pn = \"Insert\", gn = \"Meta\", mn = \"Pause\", vn = \"ScrollLock\", bn = \"Shift\", En = \"Space\", hn = \"Tab\", Gt = \"animationDuration\", Zt = \"animationDelay\", U = \"animationName\", T = \"animationend\", _t = \"transitionDuration\", $t = \"transitionDelay\", M = \"transitionend\", W = \"transitionProperty\", yn = \"addEventListener\", wn = \"removeEventListener\", An = {\n linear: \"linear\",\n easingSinusoidalIn: \"cubic-bezier(0.47,0,0.745,0.715)\",\n easingSinusoidalOut: \"cubic-bezier(0.39,0.575,0.565,1)\",\n easingSinusoidalInOut: \"cubic-bezier(0.445,0.05,0.55,0.95)\",\n easingQuadraticIn: \"cubic-bezier(0.550,0.085,0.680,0.530)\",\n easingQuadraticOut: \"cubic-bezier(0.250,0.460,0.450,0.940)\",\n easingQuadraticInOut: \"cubic-bezier(0.455,0.030,0.515,0.955)\",\n easingCubicIn: \"cubic-bezier(0.55,0.055,0.675,0.19)\",\n easingCubicOut: \"cubic-bezier(0.215,0.61,0.355,1)\",\n easingCubicInOut: \"cubic-bezier(0.645,0.045,0.355,1)\",\n easingQuarticIn: \"cubic-bezier(0.895,0.03,0.685,0.22)\",\n easingQuarticOut: \"cubic-bezier(0.165,0.84,0.44,1)\",\n easingQuarticInOut: \"cubic-bezier(0.77,0,0.175,1)\",\n easingQuinticIn: \"cubic-bezier(0.755,0.05,0.855,0.06)\",\n easingQuinticOut: \"cubic-bezier(0.23,1,0.32,1)\",\n easingQuinticInOut: \"cubic-bezier(0.86,0,0.07,1)\",\n easingExponentialIn: \"cubic-bezier(0.95,0.05,0.795,0.035)\",\n easingExponentialOut: \"cubic-bezier(0.19,1,0.22,1)\",\n easingExponentialInOut: \"cubic-bezier(1,0,0,1)\",\n easingCircularIn: \"cubic-bezier(0.6,0.04,0.98,0.335)\",\n easingCircularOut: \"cubic-bezier(0.075,0.82,0.165,1)\",\n easingCircularInOut: \"cubic-bezier(0.785,0.135,0.15,0.86)\",\n easingBackIn: \"cubic-bezier(0.6,-0.28,0.735,0.045)\",\n easingBackOut: \"cubic-bezier(0.175,0.885,0.32,1.275)\",\n easingBackInOut: \"cubic-bezier(0.68,-0.55,0.265,1.55)\"\n}, Sn = \"offsetHeight\", kn = \"offsetWidth\", Nn = \"scrollHeight\", Cn = \"scrollWidth\", Tn = \"tabindex\", Mn = navigator.userAgentData, { userAgent: Jt } = navigator, Dn = Jt, Ln = () => {\n const t = /iPhone|iPad|iPod|Android/i;\n return navigator?.userAgentData?.brands.some(\n (e) => t.test(e.brand)\n ) || t.test(navigator?.userAgent) || !1;\n}, On = () => {\n const t = /(iPhone|iPod|iPad)/;\n return navigator?.userAgentData?.brands.some(\n (e) => t.test(e.brand)\n ) || t.test(\n navigator?.userAgent\n ) || !1;\n}, xn = () => navigator?.userAgent?.includes(\"Firefox\") || !1, Xt = () => typeof CSS > \"u\" || !CSS.supports ? !1 : CSS.supports(\"-webkit-backdrop-filter\", \"none\"), zn = () => [\"webkitPerspective\", \"perspective\"].some((t) => t in document.head.style), Yt = () => {\n}, R = (t, e, n, o) => {\n const s = o || !1;\n t.addEventListener(\n e,\n n,\n s\n );\n}, Q = (t, e, n, o) => {\n const s = o || !1;\n t.removeEventListener(\n e,\n n,\n s\n );\n}, te = (t, e, n, o) => {\n const s = (r) => {\n (r.target === t || r.currentTarget === t) && (n.apply(t, [r]), Q(t, e, s, o));\n };\n R(t, e, s, o);\n}, In = () => {\n let t = !1;\n try {\n const e = Object.defineProperty({}, \"passive\", {\n get: () => (t = !0, t)\n });\n te(document, H, Yt, e);\n } catch {\n }\n return t;\n}, Pn = () => [\"webkitTransform\", \"transform\"].some((t) => t in document.head.style), Fn = () => \"ontouchstart\" in window || \"msMaxTouchPoints\" in navigator, Bn = () => [\"webkitAnimation\", \"animation\"].some((t) => t in document.head.style), Vn = () => [\"webkitTransition\", \"transition\"].some((t) => t in document.head.style), j = (t, e) => t.getAttribute(e), Hn = (t, e, n) => e.getAttributeNS(t, n), ee = (t, e) => t.hasAttribute(e), Un = (t, e, n) => e.hasAttributeNS(t, n), Wn = (t, e, n) => t.setAttribute(e, n), Rn = (t, e, n, o) => e.setAttributeNS(t, n, o), Qn = (t, e) => t.removeAttribute(e), jn = (t, e, n) => e.removeAttributeNS(t, n), Kn = (t, ...e) => {\n t.classList.add(...e);\n}, qn = (t, ...e) => {\n t.classList.remove(...e);\n}, Gn = (t, e) => t.classList.contains(e), { body: Zn } = document, { documentElement: _n } = document, { head: $n } = document, Jn = (t) => Array.from(t), v = (t) => t != null && typeof t == \"object\" || !1, u = (t) => v(t) && typeof t.nodeType == \"number\" && [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11].some(\n (e) => t.nodeType === e\n) || !1, i = (t) => u(t) && t.nodeType === 1 || !1, E = /* @__PURE__ */ new Map(), L = {\n data: E,\n set: (t, e, n) => {\n if (!i(t)) return;\n E.has(e) || E.set(e, /* @__PURE__ */ new Map()), E.get(e).set(t, n);\n },\n getAllFor: (t) => E.get(t) || null,\n get: (t, e) => {\n if (!i(t) || !e) return null;\n const n = L.getAllFor(e);\n return t && n && n.get(t) || null;\n },\n remove: (t, e) => {\n const n = L.getAllFor(e);\n !n || !i(t) || (n.delete(t), n.size === 0 && E.delete(e));\n }\n}, Xn = (t, e) => L.get(t, e), Yn = (t) => t?.charAt(0).toUpperCase() + t?.slice(1), I = (t) => t?.trim().replace(\n /(?:^\\w|[A-Z]|\\b\\w)/g,\n (e, n) => n === 0 ? e.toLowerCase() : e.toUpperCase()\n).replace(/\\s+/g, \"\"), N = (t) => typeof t == \"string\" || !1, K = (t) => v(t) && t.constructor.name === \"Window\" || !1, q = (t) => u(t) && t.nodeType === 9 || !1, d = (t) => q(t) ? t : u(t) ? t.ownerDocument : K(t) ? t.document : globalThis.document, C = (t, ...e) => Object.assign(t, ...e), ne = (t) => {\n if (!t) return;\n if (N(t))\n return d().createElement(t);\n const { tagName: e } = t, n = ne(e);\n if (!n) return;\n const o = { ...t };\n return delete o.tagName, C(n, o);\n}, oe = (t, e) => {\n if (!t || !e) return;\n if (N(e))\n return d().createElementNS(t, e);\n const { tagName: n } = e, o = oe(t, n);\n if (!o) return;\n const s = { ...e };\n return delete s.tagName, C(o, s);\n}, G = (t, e) => t.dispatchEvent(e), to = (t, e, n) => n.indexOf(t) === e, f = (t, e, n) => {\n const o = getComputedStyle(t, n), s = e.replace(\"webkit\", \"Webkit\").replace(/([A-Z])/g, \"-$1\").toLowerCase();\n return o.getPropertyValue(s);\n}, se = (t) => {\n const e = f(t, U), n = f(t, Zt), o = n.includes(\"ms\") ? 1 : 1e3, s = e && e !== \"none\" ? parseFloat(n) * o : 0;\n return Number.isNaN(s) ? 0 : s;\n}, re = (t) => {\n const e = f(t, U), n = f(t, Gt), o = n.includes(\"ms\") ? 1 : 1e3, s = e && e !== \"none\" ? parseFloat(n) * o : 0;\n return Number.isNaN(s) ? 0 : s;\n}, eo = (t, e) => {\n let n = 0;\n const o = new Event(T), s = re(t), r = se(t);\n if (s) {\n const a = (l) => {\n l.target === t && (e.apply(t, [l]), t.removeEventListener(T, a), n = 1);\n };\n t.addEventListener(T, a), setTimeout(() => {\n n || G(t, o);\n }, s + r + 17);\n } else\n e.apply(t, [o]);\n}, ce = (t) => {\n const e = f(t, W), n = f(t, $t), o = n.includes(\"ms\") ? 1 : 1e3, s = e && e !== \"none\" ? parseFloat(n) * o : 0;\n return Number.isNaN(s) ? 0 : s;\n}, ae = (t) => {\n const e = f(t, W), n = f(t, _t), o = n.includes(\"ms\") ? 1 : 1e3, s = e && e !== \"none\" ? parseFloat(n) * o : 0;\n return Number.isNaN(s) ? 0 : s;\n}, no = (t, e) => {\n let n = 0;\n const o = new Event(M), s = ae(t), r = ce(t);\n if (s) {\n const a = (l) => {\n l.target === t && (e.apply(t, [l]), t.removeEventListener(M, a), n = 1);\n };\n t.addEventListener(M, a), setTimeout(() => {\n n || G(t, o);\n }, s + r + 17);\n } else\n e.apply(t, [o]);\n}, oo = (t) => Float32Array.from(Array.from(t)), so = (t) => Float64Array.from(Array.from(t)), ro = (t, e) => t.focus(e), co = (t) => t?.trim().replace(/([a-z])([A-Z])/g, \"$1-$2\").replace(/\\s+/g, \"-\").toLowerCase(), P = (t) => [\"true\", !0].includes(t) ? !0 : [\"false\", !1].includes(t) ? !1 : [\"null\", \"\", null, void 0].includes(t) ? null : t !== \"\" && !Number.isNaN(+t) ? +t : t, S = (t) => Object.entries(t), ao = (t, e, n, o) => {\n if (!i(t)) return e;\n const s = { ...n }, r = { ...t.dataset }, a = { ...e }, l = {}, p = \"title\";\n return S(r).forEach(([c, g]) => {\n const A = o && typeof c == \"string\" && c.includes(o) ? I(c.replace(o, \"\")) : I(c);\n l[A] = P(g);\n }), S(s).forEach(([c, g]) => {\n s[c] = P(g);\n }), S(e).forEach(([c, g]) => {\n c in s ? a[c] = s[c] : c in l ? a[c] = l[c] : a[c] = c === p ? j(t, p) : g;\n }), a;\n}, io = (t, e) => v(t) && (Object.hasOwn(t, e) || e in t), uo = (t) => Object.keys(t), lo = (t) => Object.values(t), fo = (t) => Object.fromEntries(t), po = (t, e) => {\n const n = new CustomEvent(t, {\n cancelable: !0,\n bubbles: !0\n });\n return v(e) && C(n, e), n;\n}, go = { passive: !0 }, mo = (t) => t.offsetHeight, vo = (t, e) => {\n S(e).forEach(([n, o]) => {\n if (o && N(n) && n.includes(\"--\"))\n t.style.setProperty(n, o);\n else {\n const s = {};\n s[n] = o, C(t.style, s);\n }\n });\n}, O = (t) => v(t) && t.constructor.name === \"Map\" || !1, ie = (t) => typeof t == \"number\" || !1, m = /* @__PURE__ */ new Map(), bo = {\n set: (t, e, n, o) => {\n i(t) && (o && o.length ? (m.has(t) || m.set(t, /* @__PURE__ */ new Map()), m.get(t).set(o, setTimeout(e, n))) : m.set(t, setTimeout(e, n)));\n },\n get: (t, e) => {\n if (!i(t)) return null;\n const n = m.get(t);\n return e && n && O(n) ? n.get(e) || null : ie(n) ? n : null;\n },\n clear: (t, e) => {\n if (!i(t)) return;\n const n = m.get(t);\n e && e.length && O(n) ? (clearTimeout(n.get(e)), n.delete(e), n.size === 0 && m.delete(t)) : (clearTimeout(n), m.delete(t));\n }\n}, Eo = (t) => t.toLowerCase(), ho = (t) => t.toUpperCase(), ue = (t, e) => (u(e) ? e : d()).querySelectorAll(t), x = /* @__PURE__ */ new Map();\nfunction le(t) {\n const { shiftKey: e, code: n } = t, o = d(this), s = [\n ...ue(qt, this)\n ].filter(\n (l) => !ee(l, \"disabled\") && !j(l, $)\n );\n if (!s.length) return;\n const r = s[0], a = s[s.length - 1];\n n === \"Tab\" && (e && o.activeElement === r ? (a.focus(), t.preventDefault()) : !e && o.activeElement === a && (r.focus(), t.preventDefault()));\n}\nconst de = (t) => x.has(t) === !0, yo = (t) => {\n const e = de(t);\n (e ? Q : R)(t, \"keydown\", le), e ? x.delete(t) : x.set(t, !0);\n}, b = (t) => i(t) && \"offsetWidth\" in t || !1, y = (t, e) => {\n const { width: n, height: o, top: s, right: r, bottom: a, left: l } = t.getBoundingClientRect();\n let p = 1, c = 1;\n if (e && b(t)) {\n const { offsetWidth: g, offsetHeight: A } = t;\n p = g > 0 ? Math.round(n) / g : 1, c = A > 0 ? Math.round(o) / A : 1;\n }\n return {\n width: n / p,\n height: o / c,\n top: s / c,\n right: r / p,\n bottom: a / c,\n left: l / p,\n x: l / p,\n y: s / c\n };\n}, wo = (t) => d(t).body, w = (t) => d(t).documentElement, Ao = (t) => d(t).head, fe = (t) => u(t) ? (t.nodeName || \"\").toLowerCase() : \"#document\", So = (t) => {\n const e = K(t), n = e ? t.scrollX : t.scrollLeft, o = e ? t.scrollY : t.scrollTop;\n return { x: n, y: o };\n}, pe = (t) => u(t) && t.constructor.name === \"ShadowRoot\" || !1, k = (t) => t.nodeName === \"HTML\" ? t : i(t) && t.assignedSlot || u(t) && t.parentNode || pe(t) && t.host || w(t), ge = (t) => t ? q(t) ? t.defaultView : u(t) ? t?.ownerDocument?.defaultView : t : window, me = (t) => u(t) && [\"TABLE\", \"TD\", \"TH\"].includes(t.nodeName) || !1, ve = (t, e) => t.matches(e), D = (t) => f(t, \"position\") === \"static\", be = (t) => f(t, \"position\") === \"fixed\", Z = (t) => [\":popover-open\", \":modal\"].some((e) => {\n try {\n return ve(t, e);\n } catch {\n return !1;\n }\n}), _ = (t) => {\n const e = Xt(), n = i(t) ? getComputedStyle(t) : t;\n return n.transform !== \"none\" || n.perspective !== \"none\" || (n.containerType ? n.containerType !== \"normal\" : !1) || !e && (n.backdropFilter ? n.backdropFilter !== \"none\" : !1) || !e && (n.filter ? n.filter !== \"none\" : !1) || [\"transform\", \"perspective\", \"filter\"].some(\n (o) => (n.willChange || \"\").includes(o)\n ) || [\"paint\", \"layout\", \"strict\", \"content\"].some(\n (o) => (n.contain || \"\").includes(o)\n );\n}, Ee = (t) => {\n let e = k(t);\n for (; i(e) && !z(e); ) {\n if (_(e))\n return e;\n if (Z(e))\n return null;\n e = k(e);\n }\n return null;\n}, z = (t) => [\"html\", \"body\", \"#document\"].includes(fe(t)), F = (t) => {\n if (!b(t) || be(t))\n return null;\n let e = t.offsetParent;\n return w(t) === e && (e = e.ownerDocument.body), e;\n}, ko = (t) => {\n const e = ge(t);\n if (!u(t) || Z(t))\n return e;\n if (!b(t)) {\n let o = k(t);\n for (; o && !z(o); ) {\n if (i(o) && !D(o))\n return o;\n o = k(o);\n }\n return e;\n }\n let n = F(t);\n for (; n && me(n) && D(n); )\n n = F(n);\n return n && z(n) && D(n) && !_(n) ? e : n || Ee(t) || e;\n}, he = (t) => {\n if (!b(t)) return !1;\n const { width: e, height: n } = y(t), { offsetWidth: o, offsetHeight: s } = t;\n return Math.round(e) !== o || Math.round(n) !== s;\n}, No = (t, e, n) => {\n const o = b(e), s = y(\n t,\n o && he(e)\n ), r = { x: 0, y: 0 };\n if (o) {\n const a = y(e, !0);\n r.x = a.x + e.clientLeft, r.y = a.y + e.clientTop;\n }\n return {\n x: s.left + n.x - r.x,\n y: s.top + n.y - r.y,\n width: s.width,\n height: s.height\n };\n};\nlet B = 0, V = 0;\nconst h = /* @__PURE__ */ new Map(), ye = (t, e) => {\n let n = e ? B : V;\n if (e) {\n const o = ye(t), s = h.get(o) || /* @__PURE__ */ new Map();\n h.has(o) || h.set(o, s), O(s) && !s.has(e) ? (s.set(e, n), B += 1) : n = s.get(e);\n } else {\n const o = t.id || t;\n h.has(o) ? n = h.get(o) : (h.set(o, n), V += 1);\n }\n return n;\n}, we = (t) => Array.isArray(t) || !1, Co = (t) => u(t) && t.nodeName === \"CANVAS\" || !1, Ae = (t) => b(t) && !!t.shadowRoot || !1, To = (t) => {\n if (!u(t)) return !1;\n const { top: e, bottom: n } = y(t), { clientHeight: o } = w(t);\n return e <= o && n >= 0;\n}, Mo = (t) => {\n if (!i(t)) return !1;\n const { clientWidth: e, clientHeight: n } = w(t), { top: o, left: s, bottom: r, right: a } = y(t, !0);\n return o >= 0 && s >= 0 && r <= n && a <= e;\n}, Do = (t) => we(t) && t.every(i) || !1, Lo = (t) => typeof t == \"function\" || !1, Oo = (t) => v(t) && t.constructor.name === \"HTMLCollection\" || !1, xo = (t) => b(t) && t.tagName === \"IMG\" || !1, zo = (t) => {\n if (!N(t)) return !1;\n try {\n JSON.parse(t);\n } catch {\n return !1;\n }\n return !0;\n}, Io = (t) => v(t) && t.constructor.name === \"WeakMap\" || !1, Po = (t) => u(t) && [\"SVG\", \"Image\", \"Video\", \"Canvas\"].some(\n (e) => t.constructor.name.includes(e)\n) || !1, Fo = (t) => v(t) && t.constructor.name === \"NodeList\" || !1, Bo = (t) => w(t).dir === \"rtl\", Vo = (t) => u(t) && t.constructor.name.includes(\"SVG\") || !1, Se = (t, e) => !t || !e ? null : t.closest(e) || Se(t.getRootNode().host, e) || null, Ho = (t, e) => i(t) ? t : (i(e) ? e : d()).querySelector(t), ke = (t, e) => (u(e) ? e : d()).getElementsByTagName(\n t\n), Uo = (t) => [...ke(\"*\", t)].filter(Ae), Wo = (t, e) => d(e).getElementById(t), Ro = (t, e) => (e && u(e) ? e : d()).getElementsByClassName(\n t\n);\nexport {\n Jn as ArrayFrom,\n H as DOMContentLoadedEvent,\n nt as DOMMouseScrollEvent,\n L as Data,\n oo as Float32ArrayFrom,\n so as Float64ArrayFrom,\n C as ObjectAssign,\n S as ObjectEntries,\n fo as ObjectFromEntries,\n io as ObjectHasOwn,\n uo as ObjectKeys,\n lo as ObjectValues,\n bo as Timer,\n J as abortEvent,\n Kn as addClass,\n yn as addEventListener,\n Zt as animationDelay,\n Gt as animationDuration,\n T as animationEndEvent,\n U as animationName,\n Ce as ariaChecked,\n Me as ariaDescribedBy,\n Te as ariaDescription,\n De as ariaExpanded,\n Le as ariaHasPopup,\n $ as ariaHidden,\n Oe as ariaLabel,\n xe as ariaLabelledBy,\n ze as ariaModal,\n Ie as ariaPressed,\n Pe as ariaSelected,\n Be as ariaValueMax,\n Fe as ariaValueMin,\n Ve as ariaValueNow,\n He as ariaValueText,\n X as beforeunloadEvent,\n An as bezierEasings,\n Y as blurEvent,\n I as camelCase,\n Yn as capitalize,\n tt as changeEvent,\n Se as closest,\n et as contextmenuEvent,\n po as createCustomEvent,\n ne as createElement,\n oe as createElementNS,\n G as dispatchEvent,\n to as distinct,\n Zn as documentBody,\n _n as documentElement,\n $n as documentHead,\n We as dragEvent,\n qe as dragendEvent,\n Qe as dragenterEvent,\n je as dragleaveEvent,\n Ke as dragoverEvent,\n Re as dragstartEvent,\n eo as emulateAnimationEnd,\n no as emulateTransitionEnd,\n ot as errorEvent,\n ro as focus,\n st as focusEvent,\n Xe as focusEvents,\n qt as focusableSelector,\n rt as focusinEvent,\n ct as focusoutEvent,\n at as gesturechangeEvent,\n it as gestureendEvent,\n ut as gesturestartEvent,\n j as getAttribute,\n Hn as getAttributeNS,\n y as getBoundingClientRect,\n Uo as getCustomElements,\n d as getDocument,\n wo as getDocumentBody,\n w as getDocumentElement,\n Ao as getDocumentHead,\n se as getElementAnimationDelay,\n re as getElementAnimationDuration,\n Wo as getElementById,\n f as getElementStyle,\n ce as getElementTransitionDelay,\n ae as getElementTransitionDuration,\n Ro as getElementsByClassName,\n ke as getElementsByTagName,\n Xn as getInstance,\n fe as getNodeName,\n So as getNodeScroll,\n ko as getOffsetParent,\n k as getParentNode,\n No as getRectRelativeToOffsetParent,\n ye as getUID,\n ge as getWindow,\n ee as hasAttribute,\n Un as hasAttributeNS,\n Gn as hasClass,\n de as hasFocusTrap,\n On as isApple,\n we as isArray,\n Co as isCanvas,\n Ae as isCustomElement,\n q as isDocument,\n i as isElement,\n To as isElementInScrollRange,\n Mo as isElementInViewport,\n Do as isElementsArray,\n xn as isFirefox,\n Lo as isFunction,\n Oo as isHTMLCollection,\n b as isHTMLElement,\n xo as isHTMLImageElement,\n zo as isJSON,\n O as isMap,\n Po as isMedia,\n Ln as isMobile,\n u as isNode,\n Fo as isNodeList,\n ie as isNumber,\n v as isObject,\n Bo as isRTL,\n Vo as isSVGElement,\n he as isScaledElement,\n pe as isShadowRoot,\n N as isString,\n me as isTableElement,\n Io as isWeakMap,\n Xt as isWebKit,\n K as isWindow,\n co as kebabCase,\n tn as keyAlt,\n en as keyArrowDown,\n on as keyArrowLeft,\n sn as keyArrowRight,\n nn as keyArrowUp,\n rn as keyBackspace,\n cn as keyCapsLock,\n an as keyControl,\n un as keyDelete,\n ln as keyEnter,\n fn as keyEscape,\n pn as keyInsert,\n gn as keyMeta,\n dn as keyNumpadEnter,\n mn as keyPause,\n vn as keyScrollLock,\n bn as keyShift,\n En as keySpace,\n hn as keyTab,\n Ye as keyboardEventKeys,\n lt as keydownEvent,\n dt as keypressEvent,\n ft as keyupEvent,\n pt as loadEvent,\n Ge as loadstartEvent,\n ve as matches,\n _e as mouseClickEvents,\n $e as mouseHoverEvents,\n Ze as mouseSwipeEvents,\n gt as mouseclickEvent,\n mt as mousedblclickEvent,\n vt as mousedownEvent,\n ht as mouseenterEvent,\n Et as mousehoverEvent,\n wt as mouseinEvent,\n yt as mouseleaveEvent,\n kt as mousemoveEvent,\n At as mouseoutEvent,\n St as mouseoverEvent,\n bt as mouseupEvent,\n Nt as mousewheelEvent,\n Ct as moveEvent,\n Ue as nativeEvents,\n Yt as noop,\n ao as normalizeOptions,\n P as normalizeValue,\n Q as off,\n Sn as offsetHeight,\n kn as offsetWidth,\n R as on,\n te as one,\n Tt as orientationchangeEvent,\n go as passiveHandler,\n Mt as pointercancelEvent,\n Dt as pointerdownEvent,\n Lt as pointerleaveEvent,\n Ot as pointermoveEvent,\n xt as pointerupEvent,\n Ho as querySelector,\n ue as querySelectorAll,\n zt as readystatechangeEvent,\n mo as reflow,\n Qn as removeAttribute,\n jn as removeAttributeNS,\n qn as removeClass,\n wn as removeEventListener,\n It as resetEvent,\n Pt as resizeEvent,\n Ht as scrollEvent,\n Nn as scrollHeight,\n Cn as scrollWidth,\n Ft as selectEvent,\n Bt as selectendEvent,\n Vt as selectstartEvent,\n Wn as setAttribute,\n Rn as setAttributeNS,\n vo as setElementStyle,\n Ut as submitEvent,\n zn as support3DTransform,\n Bn as supportAnimation,\n In as supportPassive,\n Fn as supportTouch,\n Pn as supportTransform,\n Vn as supportTransition,\n Tn as tabindex,\n Eo as toLowerCase,\n ho as toUpperCase,\n yo as toggleFocusTrap,\n Je as touchEvents,\n Qt as touchcancelEvent,\n jt as touchendEvent,\n Rt as touchmoveEvent,\n Wt as touchstartEvent,\n $t as transitionDelay,\n _t as transitionDuration,\n M as transitionEndEvent,\n W as transitionProperty,\n Kt as unloadEvent,\n Dn as userAgent,\n Mn as userAgentData,\n Ne as version\n};\n//# sourceMappingURL=shorty.mjs.map\n","const g = \"2.0.8\", e = {}, f = (t) => {\n const { type: n, currentTarget: c } = t;\n e[n].forEach((a, s) => {\n c === s && a.forEach((o, i) => {\n i.apply(s, [t]), typeof o == \"object\" && o.once && r(s, n, i, o);\n });\n });\n}, E = (t, n, c, a) => {\n e[n] || (e[n] = /* @__PURE__ */ new Map());\n const s = e[n];\n s.has(t) || s.set(t, /* @__PURE__ */ new Map());\n const o = s.get(\n t\n ), { size: i } = o;\n o.set(c, a), i || t.addEventListener(\n n,\n f,\n a\n );\n}, r = (t, n, c, a) => {\n const s = e[n], o = s && s.get(t), i = o && o.get(c), d = i !== void 0 ? i : a;\n o && o.has(c) && o.delete(c), s && (!o || !o.size) && s.delete(t), (!s || !s.size) && delete e[n], (!o || !o.size) && t.removeEventListener(\n n,\n f,\n d\n );\n}, M = E, p = r;\nexport {\n E as addListener,\n f as globalListener,\n p as off,\n M as on,\n e as registry,\n r as removeListener,\n g as version\n};\n//# sourceMappingURL=event-listener.mjs.map\n","import { version } from \"../package.json\";\n\nconst Version = version;\n\nexport default Version;\n","/* Native JavaScript for Bootstrap 5 | Base Component\n----------------------------------------------------- */\nimport {\n Data,\n isElement,\n isString,\n normalizeOptions,\n ObjectKeys,\n querySelector,\n} from \"@thednp/shorty\";\n\nimport type { BaseOptions } from \"~/interface/baseComponent\";\nimport Version from \"~/version\";\n\n/** Returns a new `BaseComponent` instance. */\nexport default class BaseComponent {\n declare element: Element;\n declare options?: BaseOptions;\n\n /**\n * @param target `Element` or selector string\n * @param config component instance options\n */\n constructor(target: Element | string, config?: BaseOptions) {\n let element: Element | null;\n\n try {\n if (isElement(target)) {\n element = target as Element;\n } else if (isString(target)) {\n element = querySelector(target);\n // istanbul ignore else @preserve\n if (!element) throw Error(`\"${target}\" is not a valid selector.`);\n } else {\n throw Error(`your target is not an instance of HTMLElement.`);\n }\n } catch (e) {\n throw Error(`${this.name} Error: ${(e as Error).message}`);\n }\n\n const prevInstance = Data.get(element, this.name);\n /* istanbul ignore else @preserve */\n if (prevInstance) {\n // remove previously attached event listeners\n // to avoid memory leaks\n prevInstance._toggleEventListeners();\n }\n\n this.element = element;\n this.options = this.defaults && ObjectKeys(this.defaults).length\n ? normalizeOptions(element, this.defaults, config || {}, \"bs\")\n : /* istanbul ignore next @preserve */ {};\n\n Data.set(element, this.name, this);\n }\n\n // istanbul ignore next @preserve\n get version() {\n return Version;\n }\n\n // istanbul ignore next @preserve\n get name() {\n return \"BaseComponent\";\n }\n\n // istanbul ignore next @preserve\n get defaults() {\n return {};\n }\n\n /** just to have something to extend from */\n // istanbul ignore next @preserve coverage wise this isn't important\n _toggleEventListeners = () => {\n // do something to please linters\n };\n\n /** Removes component from target element. */\n dispose() {\n Data.remove(this.element, this.name);\n ObjectKeys(this).forEach((prop) => {\n delete this[prop];\n });\n }\n}\n"],"names":["Me","De","ze","Ie","Pe","st","rt","ct","lt","ft","gt","vt","Et","ht","yt","Dt","Ot","xt","Wt","Re","qt","en","nn","on","sn","fn","_t","$t","M","W","On","t","e","Yt","R","Q","j","ee","Wn","Qn","Kn","qn","Gn","v","i","E","L","Xn","I","N","K","q","C","ne","G","f","ce","ae","no","a","ro","P","S","ao","p","c","g","A","uo","po","go","mo","vo","O","ie","m","bo","Eo","ue","x","le","de","yo","b","y","wo","w","So","pe","k","ge","me","ve","he","No","B","V","h","ye","we","To","Lo","Fo","Bo","Se","Ho","ke","Wo","Ro","n","o","r","d","Version","version","BaseComponent","target","config","element","isElement","isString","querySelector","prevInstance","Data","ObjectKeys","normalizeOptions","prop"],"mappings":"aAAK,MAA6DA,EAAK,mBAAoBC,EAAK,gBAAuC,EAAI,cAA0DC,GAAK,aAAcC,GAAK,eAAgBC,GAAK,gBAAuPC,GAAK,QAASC,GAAK,UAAWC,GAAK,WAA0EC,GAAK,UAA4BC,GAAK,QAAsBC,GAAK,QAA0BC,GAAK,YAA6BC,GAAK,QAASC,GAAK,aAAcC,GAAK,aAAmKC,GAAK,cAAoCC,GAAK,cAAeC,GAAK,YAAsJC,GAAK,aAmDzmCC,GAAK,YAUuBC,GAAK,oFAoBlCC,GAAK,YAAaC,GAAK,UAAWC,GAAK,YAAaC,GAAK,aAAkHC,GAAK,SAAyMC,GAAK,qBAAsBC,GAAK,kBAAmBC,EAAI,gBAAiBC,EAAI,qBA+BjdC,GAAK,IAAM,CACZ,MAAMC,EAAI,qBACV,OAAO,WAAW,eAAe,OAAO,KACrCC,GAAMD,EAAE,KAAKC,EAAE,KAAK,CACtB,GAAID,EAAE,KACL,WAAW,SACZ,GAAI,EACP,EAA2PE,GAAK,I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,GAAAC,EAAUH,CAAM,EACRE,EAAAF,UACDI,EAASJ,CAAM,GAGxB,GAFAE,EAAUG,EAAcL,CAAM,EAE1B,CAACE,EAAS,MAAM,MAAM,IAAIF,CAAM,4BAA4B,MAEhE,OAAM,MAAM,gDAAgD,QAEvDpF,EAAG,CACV,MAAM,MAAM,GAAG,KAAK,IAAI,WAAYA,EAAY,OAAO,EAAE,CAAA,CAG3D,MAAM0F,EAAeC,EAAK,IAAiBL,EAAS,KAAK,IAAI,EAEzDI,GAGFA,EAAa,sBAAsB,EAGrC,KAAK,QAAUJ,EACf,KAAK,QAAU,KAAK,UAAYM,EAAW,KAAK,QAAQ,EAAE,OACtDC,GAAiBP,EAAS,KAAK,SAAUD,GAAU,CAAI,EAAA,IAAI,EAC1D,CAAC,EAENM,EAAK,IAAIL,EAAS,KAAK,KAAM,IAAI,CAAA,CAInC,IAAI,SAAU,CACL,OAAAL,EAAA,CAIT,IAAI,MAAO,CACF,MAAA,eAAA,CAIT,IAAI,UAAW,CACb,MAAO,CAAC,CAAA,CAKV,sBAAwB,IAAM,CAE9B,EAGA,SAAU,CACRU,EAAK,OAAoB,KAAK,QAAS,KAAK,IAAI,EAChDC,EAAW,IAAI,EAAE,QAASE,GAAS,CACjC,OAAO,KAAKA,CAAI,CAAA,CACjB,CAAA,CAEL","x_google_ignoreList":[0,1]} \ No newline at end of file +{"version":3,"file":"base-component-DMuoZh8G.js","sources":["../../node_modules/.pnpm/@thednp+shorty@2.0.9/node_modules/@thednp/shorty/dist/shorty.mjs","../../node_modules/.pnpm/@thednp+event-listener@2.0.8/node_modules/@thednp/event-listener/dist/event-listener.mjs","../../src/version.ts","../../src/components/base-component.ts"],"sourcesContent":["const Ne = \"2.0.9\", Ce = \"aria-checked\", Te = \"aria-description\", Me = \"aria-describedby\", De = \"aria-expanded\", Le = \"aria-haspopup\", $ = \"aria-hidden\", Oe = \"aria-label\", xe = \"aria-labelledby\", ze = \"aria-modal\", Ie = \"aria-pressed\", Pe = \"aria-selected\", Fe = \"aria-valuemin\", Be = \"aria-valuemax\", Ve = \"aria-valuenow\", He = \"aria-valuetext\", J = \"abort\", X = \"beforeunload\", Y = \"blur\", tt = \"change\", et = \"contextmenu\", H = \"DOMContentLoaded\", nt = \"DOMMouseScroll\", ot = \"error\", st = \"focus\", rt = \"focusin\", ct = \"focusout\", at = \"gesturechange\", it = \"gestureend\", ut = \"gesturestart\", lt = \"keydown\", dt = \"keypress\", ft = \"keyup\", pt = \"load\", gt = \"click\", mt = \"dblclick\", vt = \"mousedown\", bt = \"mouseup\", Et = \"hover\", ht = \"mouseenter\", yt = \"mouseleave\", wt = \"mousein\", At = \"mouseout\", St = \"mouseover\", kt = \"mousemove\", Nt = \"mousewheel\", Ct = \"move\", Tt = \"orientationchange\", Mt = \"pointercancel\", Dt = \"pointerdown\", Lt = \"pointerleave\", Ot = \"pointermove\", xt = \"pointerup\", zt = \"readystatechange\", It = \"reset\", Pt = \"resize\", Ft = \"select\", Bt = \"selectend\", Vt = \"selectstart\", Ht = \"scroll\", Ut = \"submit\", Wt = \"touchstart\", Rt = \"touchmove\", Qt = \"touchcancel\", jt = \"touchend\", Kt = \"unload\", Ue = {\n DOMContentLoaded: H,\n DOMMouseScroll: nt,\n abort: J,\n beforeunload: X,\n blur: Y,\n change: tt,\n click: gt,\n contextmenu: et,\n dblclick: mt,\n error: ot,\n focus: st,\n focusin: rt,\n focusout: ct,\n gesturechange: at,\n gestureend: it,\n gesturestart: ut,\n hover: Et,\n keydown: lt,\n keypress: dt,\n keyup: ft,\n load: pt,\n mousedown: vt,\n mousemove: kt,\n mousein: wt,\n mouseout: At,\n mouseenter: ht,\n mouseleave: yt,\n mouseover: St,\n mouseup: bt,\n mousewheel: Nt,\n move: Ct,\n orientationchange: Tt,\n pointercancel: Mt,\n pointerdown: Dt,\n pointerleave: Lt,\n pointermove: Ot,\n pointerup: xt,\n readystatechange: zt,\n reset: It,\n resize: Pt,\n scroll: Ht,\n select: Ft,\n selectend: Bt,\n selectstart: Vt,\n submit: Ut,\n touchcancel: Qt,\n touchend: jt,\n touchmove: Rt,\n touchstart: Wt,\n unload: Kt\n}, We = \"drag\", Re = \"dragstart\", Qe = \"dragenter\", je = \"dragleave\", Ke = \"dragover\", qe = \"dragend\", Ge = \"loadstart\", Ze = {\n start: \"mousedown\",\n end: \"mouseup\",\n move: \"mousemove\",\n cancel: \"mouseleave\"\n}, _e = { down: \"mousedown\", up: \"mouseup\" }, $e = \"onmouseleave\" in document ? [\"mouseenter\", \"mouseleave\"] : [\"mouseover\", \"mouseout\"], Je = {\n start: \"touchstart\",\n end: \"touchend\",\n move: \"touchmove\",\n cancel: \"touchcancel\"\n}, Xe = { in: \"focusin\", out: \"focusout\" }, qt = 'a[href], button, input, textarea, select, details, [tabindex]:not([tabindex=\"-1\"]', Ye = {\n Backspace: \"Backspace\",\n Tab: \"Tab\",\n Enter: \"Enter\",\n Shift: \"Shift\",\n Control: \"Control\",\n Alt: \"Alt\",\n Pause: \"Pause\",\n CapsLock: \"CapsLock\",\n Escape: \"Escape\",\n Scape: \"Space\",\n ArrowLeft: \"ArrowLeft\",\n ArrowUp: \"ArrowUp\",\n ArrowRight: \"ArrowRight\",\n ArrowDown: \"ArrowDown\",\n Insert: \"Insert\",\n Delete: \"Delete\",\n Meta: \"Meta\",\n ContextMenu: \"ContextMenu\",\n ScrollLock: \"ScrollLock\"\n}, tn = \"Alt\", en = \"ArrowDown\", nn = \"ArrowUp\", on = \"ArrowLeft\", sn = \"ArrowRight\", rn = \"Backspace\", cn = \"CapsLock\", an = \"Control\", un = \"Delete\", ln = \"Enter\", dn = \"NumpadEnter\", fn = \"Escape\", pn = \"Insert\", gn = \"Meta\", mn = \"Pause\", vn = \"ScrollLock\", bn = \"Shift\", En = \"Space\", hn = \"Tab\", Gt = \"animationDuration\", Zt = \"animationDelay\", U = \"animationName\", T = \"animationend\", _t = \"transitionDuration\", $t = \"transitionDelay\", M = \"transitionend\", W = \"transitionProperty\", yn = \"addEventListener\", wn = \"removeEventListener\", An = {\n linear: \"linear\",\n easingSinusoidalIn: \"cubic-bezier(0.47,0,0.745,0.715)\",\n easingSinusoidalOut: \"cubic-bezier(0.39,0.575,0.565,1)\",\n easingSinusoidalInOut: \"cubic-bezier(0.445,0.05,0.55,0.95)\",\n easingQuadraticIn: \"cubic-bezier(0.550,0.085,0.680,0.530)\",\n easingQuadraticOut: \"cubic-bezier(0.250,0.460,0.450,0.940)\",\n easingQuadraticInOut: \"cubic-bezier(0.455,0.030,0.515,0.955)\",\n easingCubicIn: \"cubic-bezier(0.55,0.055,0.675,0.19)\",\n easingCubicOut: \"cubic-bezier(0.215,0.61,0.355,1)\",\n easingCubicInOut: \"cubic-bezier(0.645,0.045,0.355,1)\",\n easingQuarticIn: \"cubic-bezier(0.895,0.03,0.685,0.22)\",\n easingQuarticOut: \"cubic-bezier(0.165,0.84,0.44,1)\",\n easingQuarticInOut: \"cubic-bezier(0.77,0,0.175,1)\",\n easingQuinticIn: \"cubic-bezier(0.755,0.05,0.855,0.06)\",\n easingQuinticOut: \"cubic-bezier(0.23,1,0.32,1)\",\n easingQuinticInOut: \"cubic-bezier(0.86,0,0.07,1)\",\n easingExponentialIn: \"cubic-bezier(0.95,0.05,0.795,0.035)\",\n easingExponentialOut: \"cubic-bezier(0.19,1,0.22,1)\",\n easingExponentialInOut: \"cubic-bezier(1,0,0,1)\",\n easingCircularIn: \"cubic-bezier(0.6,0.04,0.98,0.335)\",\n easingCircularOut: \"cubic-bezier(0.075,0.82,0.165,1)\",\n easingCircularInOut: \"cubic-bezier(0.785,0.135,0.15,0.86)\",\n easingBackIn: \"cubic-bezier(0.6,-0.28,0.735,0.045)\",\n easingBackOut: \"cubic-bezier(0.175,0.885,0.32,1.275)\",\n easingBackInOut: \"cubic-bezier(0.68,-0.55,0.265,1.55)\"\n}, Sn = \"offsetHeight\", kn = \"offsetWidth\", Nn = \"scrollHeight\", Cn = \"scrollWidth\", Tn = \"tabindex\", Mn = navigator.userAgentData, { userAgent: Jt } = navigator, Dn = Jt, Ln = () => {\n const t = /iPhone|iPad|iPod|Android/i;\n return navigator?.userAgentData?.brands.some(\n (e) => t.test(e.brand)\n ) || t.test(navigator?.userAgent) || !1;\n}, On = () => {\n const t = /(iPhone|iPod|iPad)/;\n return navigator?.userAgentData?.brands.some(\n (e) => t.test(e.brand)\n ) || t.test(\n navigator?.userAgent\n ) || !1;\n}, xn = () => navigator?.userAgent?.includes(\"Firefox\") || !1, Xt = () => typeof CSS > \"u\" || !CSS.supports ? !1 : CSS.supports(\"-webkit-backdrop-filter\", \"none\"), zn = () => [\"webkitPerspective\", \"perspective\"].some((t) => t in document.head.style), Yt = () => {\n}, R = (t, e, n, o) => {\n const s = o || !1;\n t.addEventListener(\n e,\n n,\n s\n );\n}, Q = (t, e, n, o) => {\n const s = o || !1;\n t.removeEventListener(\n e,\n n,\n s\n );\n}, te = (t, e, n, o) => {\n const s = (r) => {\n (r.target === t || r.currentTarget === t) && (n.apply(t, [r]), Q(t, e, s, o));\n };\n R(t, e, s, o);\n}, In = () => {\n let t = !1;\n try {\n const e = Object.defineProperty({}, \"passive\", {\n get: () => (t = !0, t)\n });\n te(document, H, Yt, e);\n } catch {\n }\n return t;\n}, Pn = () => [\"webkitTransform\", \"transform\"].some((t) => t in document.head.style), Fn = () => \"ontouchstart\" in window || \"msMaxTouchPoints\" in navigator, Bn = () => [\"webkitAnimation\", \"animation\"].some((t) => t in document.head.style), Vn = () => [\"webkitTransition\", \"transition\"].some((t) => t in document.head.style), j = (t, e) => t.getAttribute(e), Hn = (t, e, n) => e.getAttributeNS(t, n), ee = (t, e) => t.hasAttribute(e), Un = (t, e, n) => e.hasAttributeNS(t, n), Wn = (t, e, n) => t.setAttribute(e, n), Rn = (t, e, n, o) => e.setAttributeNS(t, n, o), Qn = (t, e) => t.removeAttribute(e), jn = (t, e, n) => e.removeAttributeNS(t, n), Kn = (t, ...e) => {\n t.classList.add(...e);\n}, qn = (t, ...e) => {\n t.classList.remove(...e);\n}, Gn = (t, e) => t.classList.contains(e), { body: Zn } = document, { documentElement: _n } = document, { head: $n } = document, Jn = (t) => Array.from(t), v = (t) => t != null && typeof t == \"object\" || !1, u = (t) => v(t) && typeof t.nodeType == \"number\" && [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11].some(\n (e) => t.nodeType === e\n) || !1, i = (t) => u(t) && t.nodeType === 1 || !1, E = /* @__PURE__ */ new Map(), L = {\n data: E,\n set: (t, e, n) => {\n if (!i(t)) return;\n E.has(e) || E.set(e, /* @__PURE__ */ new Map()), E.get(e).set(t, n);\n },\n getAllFor: (t) => E.get(t) || null,\n get: (t, e) => {\n if (!i(t) || !e) return null;\n const n = L.getAllFor(e);\n return t && n && n.get(t) || null;\n },\n remove: (t, e) => {\n const n = L.getAllFor(e);\n !n || !i(t) || (n.delete(t), n.size === 0 && E.delete(e));\n }\n}, Xn = (t, e) => L.get(t, e), Yn = (t) => t?.charAt(0).toUpperCase() + t?.slice(1), I = (t) => t?.trim().replace(\n /(?:^\\w|[A-Z]|\\b\\w)/g,\n (e, n) => n === 0 ? e.toLowerCase() : e.toUpperCase()\n).replace(/\\s+/g, \"\"), N = (t) => typeof t == \"string\" || !1, K = (t) => v(t) && t.constructor.name === \"Window\" || !1, q = (t) => u(t) && t.nodeType === 9 || !1, d = (t) => q(t) ? t : u(t) ? t.ownerDocument : K(t) ? t.document : globalThis.document, C = (t, ...e) => Object.assign(t, ...e), ne = (t) => {\n if (!t) return;\n if (N(t))\n return d().createElement(t);\n const { tagName: e } = t, n = ne(e);\n if (!n) return;\n const o = { ...t };\n return delete o.tagName, C(n, o);\n}, oe = (t, e) => {\n if (!t || !e) return;\n if (N(e))\n return d().createElementNS(t, e);\n const { tagName: n } = e, o = oe(t, n);\n if (!o) return;\n const s = { ...e };\n return delete s.tagName, C(o, s);\n}, G = (t, e) => t.dispatchEvent(e), to = (t, e, n) => n.indexOf(t) === e, f = (t, e, n) => {\n const o = getComputedStyle(t, n), s = e.replace(\"webkit\", \"Webkit\").replace(/([A-Z])/g, \"-$1\").toLowerCase();\n return o.getPropertyValue(s);\n}, se = (t) => {\n const e = f(t, U), n = f(t, Zt), o = n.includes(\"ms\") ? 1 : 1e3, s = e && e !== \"none\" ? parseFloat(n) * o : 0;\n return Number.isNaN(s) ? 0 : s;\n}, re = (t) => {\n const e = f(t, U), n = f(t, Gt), o = n.includes(\"ms\") ? 1 : 1e3, s = e && e !== \"none\" ? parseFloat(n) * o : 0;\n return Number.isNaN(s) ? 0 : s;\n}, eo = (t, e) => {\n let n = 0;\n const o = new Event(T), s = re(t), r = se(t);\n if (s) {\n const a = (l) => {\n l.target === t && (e.apply(t, [l]), t.removeEventListener(T, a), n = 1);\n };\n t.addEventListener(T, a), setTimeout(() => {\n n || G(t, o);\n }, s + r + 17);\n } else\n e.apply(t, [o]);\n}, ce = (t) => {\n const e = f(t, W), n = f(t, $t), o = n.includes(\"ms\") ? 1 : 1e3, s = e && e !== \"none\" ? parseFloat(n) * o : 0;\n return Number.isNaN(s) ? 0 : s;\n}, ae = (t) => {\n const e = f(t, W), n = f(t, _t), o = n.includes(\"ms\") ? 1 : 1e3, s = e && e !== \"none\" ? parseFloat(n) * o : 0;\n return Number.isNaN(s) ? 0 : s;\n}, no = (t, e) => {\n let n = 0;\n const o = new Event(M), s = ae(t), r = ce(t);\n if (s) {\n const a = (l) => {\n l.target === t && (e.apply(t, [l]), t.removeEventListener(M, a), n = 1);\n };\n t.addEventListener(M, a), setTimeout(() => {\n n || G(t, o);\n }, s + r + 17);\n } else\n e.apply(t, [o]);\n}, oo = (t) => Float32Array.from(Array.from(t)), so = (t) => Float64Array.from(Array.from(t)), ro = (t, e) => t.focus(e), co = (t) => t?.trim().replace(/([a-z])([A-Z])/g, \"$1-$2\").replace(/\\s+/g, \"-\").toLowerCase(), P = (t) => [\"true\", !0].includes(t) ? !0 : [\"false\", !1].includes(t) ? !1 : [\"null\", \"\", null, void 0].includes(t) ? null : t !== \"\" && !Number.isNaN(+t) ? +t : t, S = (t) => Object.entries(t), ao = (t, e, n, o) => {\n if (!i(t)) return e;\n const s = { ...n }, r = { ...t.dataset }, a = { ...e }, l = {}, p = \"title\";\n return S(r).forEach(([c, g]) => {\n const A = o && typeof c == \"string\" && c.includes(o) ? I(c.replace(o, \"\")) : I(c);\n l[A] = P(g);\n }), S(s).forEach(([c, g]) => {\n s[c] = P(g);\n }), S(e).forEach(([c, g]) => {\n c in s ? a[c] = s[c] : c in l ? a[c] = l[c] : a[c] = c === p ? j(t, p) : g;\n }), a;\n}, io = (t, e) => v(t) && (Object.hasOwn(t, e) || e in t), uo = (t) => Object.keys(t), lo = (t) => Object.values(t), fo = (t) => Object.fromEntries(t), po = (t, e) => {\n const n = new CustomEvent(t, {\n cancelable: !0,\n bubbles: !0\n });\n return v(e) && C(n, e), n;\n}, go = { passive: !0 }, mo = (t) => t.offsetHeight, vo = (t, e) => {\n S(e).forEach(([n, o]) => {\n if (o && N(n) && n.includes(\"--\"))\n t.style.setProperty(n, o);\n else {\n const s = {};\n s[n] = o, C(t.style, s);\n }\n });\n}, O = (t) => v(t) && t.constructor.name === \"Map\" || !1, ie = (t) => typeof t == \"number\" || !1, m = /* @__PURE__ */ new Map(), bo = {\n set: (t, e, n, o) => {\n i(t) && (o && o.length ? (m.has(t) || m.set(t, /* @__PURE__ */ new Map()), m.get(t).set(o, setTimeout(e, n))) : m.set(t, setTimeout(e, n)));\n },\n get: (t, e) => {\n if (!i(t)) return null;\n const n = m.get(t);\n return e && n && O(n) ? n.get(e) || null : ie(n) ? n : null;\n },\n clear: (t, e) => {\n if (!i(t)) return;\n const n = m.get(t);\n e && e.length && O(n) ? (clearTimeout(n.get(e)), n.delete(e), n.size === 0 && m.delete(t)) : (clearTimeout(n), m.delete(t));\n }\n}, Eo = (t) => t.toLowerCase(), ho = (t) => t.toUpperCase(), ue = (t, e) => (u(e) ? e : d()).querySelectorAll(t), x = /* @__PURE__ */ new Map();\nfunction le(t) {\n const { shiftKey: e, code: n } = t, o = d(this), s = [\n ...ue(qt, this)\n ].filter(\n (l) => !ee(l, \"disabled\") && !j(l, $)\n );\n if (!s.length) return;\n const r = s[0], a = s[s.length - 1];\n n === \"Tab\" && (e && o.activeElement === r ? (a.focus(), t.preventDefault()) : !e && o.activeElement === a && (r.focus(), t.preventDefault()));\n}\nconst de = (t) => x.has(t) === !0, yo = (t) => {\n const e = de(t);\n (e ? Q : R)(t, \"keydown\", le), e ? x.delete(t) : x.set(t, !0);\n}, b = (t) => i(t) && \"offsetWidth\" in t || !1, y = (t, e) => {\n const { width: n, height: o, top: s, right: r, bottom: a, left: l } = t.getBoundingClientRect();\n let p = 1, c = 1;\n if (e && b(t)) {\n const { offsetWidth: g, offsetHeight: A } = t;\n p = g > 0 ? Math.round(n) / g : 1, c = A > 0 ? Math.round(o) / A : 1;\n }\n return {\n width: n / p,\n height: o / c,\n top: s / c,\n right: r / p,\n bottom: a / c,\n left: l / p,\n x: l / p,\n y: s / c\n };\n}, wo = (t) => d(t).body, w = (t) => d(t).documentElement, Ao = (t) => d(t).head, fe = (t) => u(t) ? (t.nodeName || \"\").toLowerCase() : \"#document\", So = (t) => {\n const e = K(t), n = e ? t.scrollX : t.scrollLeft, o = e ? t.scrollY : t.scrollTop;\n return { x: n, y: o };\n}, pe = (t) => u(t) && t.constructor.name === \"ShadowRoot\" || !1, k = (t) => t.nodeName === \"HTML\" ? t : i(t) && t.assignedSlot || u(t) && t.parentNode || pe(t) && t.host || w(t), ge = (t) => t ? q(t) ? t.defaultView : u(t) ? t?.ownerDocument?.defaultView : t : window, me = (t) => u(t) && [\"TABLE\", \"TD\", \"TH\"].includes(t.nodeName) || !1, ve = (t, e) => t.matches(e), D = (t) => f(t, \"position\") === \"static\", be = (t) => f(t, \"position\") === \"fixed\", Z = (t) => [\":popover-open\", \":modal\"].some((e) => {\n try {\n return ve(t, e);\n } catch {\n return !1;\n }\n}), _ = (t) => {\n const e = Xt(), n = i(t) ? getComputedStyle(t) : t;\n return n.transform !== \"none\" || n.perspective !== \"none\" || (n.containerType ? n.containerType !== \"normal\" : !1) || !e && (n.backdropFilter ? n.backdropFilter !== \"none\" : !1) || !e && (n.filter ? n.filter !== \"none\" : !1) || [\"transform\", \"perspective\", \"filter\"].some(\n (o) => (n.willChange || \"\").includes(o)\n ) || [\"paint\", \"layout\", \"strict\", \"content\"].some(\n (o) => (n.contain || \"\").includes(o)\n );\n}, Ee = (t) => {\n let e = k(t);\n for (; i(e) && !z(e); ) {\n if (_(e))\n return e;\n if (Z(e))\n return null;\n e = k(e);\n }\n return null;\n}, z = (t) => [\"html\", \"body\", \"#document\"].includes(fe(t)), F = (t) => {\n if (!b(t) || be(t))\n return null;\n let e = t.offsetParent;\n return w(t) === e && (e = e.ownerDocument.body), e;\n}, ko = (t) => {\n const e = ge(t);\n if (!u(t) || Z(t))\n return e;\n if (!b(t)) {\n let o = k(t);\n for (; o && !z(o); ) {\n if (i(o) && !D(o))\n return o;\n o = k(o);\n }\n return e;\n }\n let n = F(t);\n for (; n && me(n) && D(n); )\n n = F(n);\n return n && z(n) && D(n) && !_(n) ? e : n || Ee(t) || e;\n}, he = (t) => {\n if (!b(t)) return !1;\n const { width: e, height: n } = y(t), { offsetWidth: o, offsetHeight: s } = t;\n return Math.round(e) !== o || Math.round(n) !== s;\n}, No = (t, e, n) => {\n const o = b(e), s = y(\n t,\n o && he(e)\n ), r = { x: 0, y: 0 };\n if (o) {\n const a = y(e, !0);\n r.x = a.x + e.clientLeft, r.y = a.y + e.clientTop;\n }\n return {\n x: s.left + n.x - r.x,\n y: s.top + n.y - r.y,\n width: s.width,\n height: s.height\n };\n};\nlet B = 0, V = 0;\nconst h = /* @__PURE__ */ new Map(), ye = (t, e) => {\n let n = e ? B : V;\n if (e) {\n const o = ye(t), s = h.get(o) || /* @__PURE__ */ new Map();\n h.has(o) || h.set(o, s), O(s) && !s.has(e) ? (s.set(e, n), B += 1) : n = s.get(e);\n } else {\n const o = t.id || t;\n h.has(o) ? n = h.get(o) : (h.set(o, n), V += 1);\n }\n return n;\n}, we = (t) => Array.isArray(t) || !1, Co = (t) => u(t) && t.nodeName === \"CANVAS\" || !1, Ae = (t) => b(t) && !!t.shadowRoot || !1, To = (t) => {\n if (!u(t)) return !1;\n const { top: e, bottom: n } = y(t), { clientHeight: o } = w(t);\n return e <= o && n >= 0;\n}, Mo = (t) => {\n if (!i(t)) return !1;\n const { clientWidth: e, clientHeight: n } = w(t), { top: o, left: s, bottom: r, right: a } = y(t, !0);\n return o >= 0 && s >= 0 && r <= n && a <= e;\n}, Do = (t) => we(t) && t.every(i) || !1, Lo = (t) => typeof t == \"function\" || !1, Oo = (t) => v(t) && t.constructor.name === \"HTMLCollection\" || !1, xo = (t) => b(t) && t.tagName === \"IMG\" || !1, zo = (t) => {\n if (!N(t)) return !1;\n try {\n JSON.parse(t);\n } catch {\n return !1;\n }\n return !0;\n}, Io = (t) => v(t) && t.constructor.name === \"WeakMap\" || !1, Po = (t) => u(t) && [\"SVG\", \"Image\", \"Video\", \"Canvas\"].some(\n (e) => t.constructor.name.includes(e)\n) || !1, Fo = (t) => v(t) && t.constructor.name === \"NodeList\" || !1, Bo = (t) => w(t).dir === \"rtl\", Vo = (t) => u(t) && t.constructor.name.includes(\"SVG\") || !1, Se = (t, e) => !t || !e ? null : t.closest(e) || Se(t.getRootNode().host, e) || null, Ho = (t, e) => i(t) ? t : (i(e) ? e : d()).querySelector(t), ke = (t, e) => (u(e) ? e : d()).getElementsByTagName(\n t\n), Uo = (t) => [...ke(\"*\", t)].filter(Ae), Wo = (t, e) => d(e).getElementById(t), Ro = (t, e) => (e && u(e) ? e : d()).getElementsByClassName(\n t\n);\nexport {\n Jn as ArrayFrom,\n H as DOMContentLoadedEvent,\n nt as DOMMouseScrollEvent,\n L as Data,\n oo as Float32ArrayFrom,\n so as Float64ArrayFrom,\n C as ObjectAssign,\n S as ObjectEntries,\n fo as ObjectFromEntries,\n io as ObjectHasOwn,\n uo as ObjectKeys,\n lo as ObjectValues,\n bo as Timer,\n J as abortEvent,\n Kn as addClass,\n yn as addEventListener,\n Zt as animationDelay,\n Gt as animationDuration,\n T as animationEndEvent,\n U as animationName,\n Ce as ariaChecked,\n Me as ariaDescribedBy,\n Te as ariaDescription,\n De as ariaExpanded,\n Le as ariaHasPopup,\n $ as ariaHidden,\n Oe as ariaLabel,\n xe as ariaLabelledBy,\n ze as ariaModal,\n Ie as ariaPressed,\n Pe as ariaSelected,\n Be as ariaValueMax,\n Fe as ariaValueMin,\n Ve as ariaValueNow,\n He as ariaValueText,\n X as beforeunloadEvent,\n An as bezierEasings,\n Y as blurEvent,\n I as camelCase,\n Yn as capitalize,\n tt as changeEvent,\n Se as closest,\n et as contextmenuEvent,\n po as createCustomEvent,\n ne as createElement,\n oe as createElementNS,\n G as dispatchEvent,\n to as distinct,\n Zn as documentBody,\n _n as documentElement,\n $n as documentHead,\n We as dragEvent,\n qe as dragendEvent,\n Qe as dragenterEvent,\n je as dragleaveEvent,\n Ke as dragoverEvent,\n Re as dragstartEvent,\n eo as emulateAnimationEnd,\n no as emulateTransitionEnd,\n ot as errorEvent,\n ro as focus,\n st as focusEvent,\n Xe as focusEvents,\n qt as focusableSelector,\n rt as focusinEvent,\n ct as focusoutEvent,\n at as gesturechangeEvent,\n it as gestureendEvent,\n ut as gesturestartEvent,\n j as getAttribute,\n Hn as getAttributeNS,\n y as getBoundingClientRect,\n Uo as getCustomElements,\n d as getDocument,\n wo as getDocumentBody,\n w as getDocumentElement,\n Ao as getDocumentHead,\n se as getElementAnimationDelay,\n re as getElementAnimationDuration,\n Wo as getElementById,\n f as getElementStyle,\n ce as getElementTransitionDelay,\n ae as getElementTransitionDuration,\n Ro as getElementsByClassName,\n ke as getElementsByTagName,\n Xn as getInstance,\n fe as getNodeName,\n So as getNodeScroll,\n ko as getOffsetParent,\n k as getParentNode,\n No as getRectRelativeToOffsetParent,\n ye as getUID,\n ge as getWindow,\n ee as hasAttribute,\n Un as hasAttributeNS,\n Gn as hasClass,\n de as hasFocusTrap,\n On as isApple,\n we as isArray,\n Co as isCanvas,\n Ae as isCustomElement,\n q as isDocument,\n i as isElement,\n To as isElementInScrollRange,\n Mo as isElementInViewport,\n Do as isElementsArray,\n xn as isFirefox,\n Lo as isFunction,\n Oo as isHTMLCollection,\n b as isHTMLElement,\n xo as isHTMLImageElement,\n zo as isJSON,\n O as isMap,\n Po as isMedia,\n Ln as isMobile,\n u as isNode,\n Fo as isNodeList,\n ie as isNumber,\n v as isObject,\n Bo as isRTL,\n Vo as isSVGElement,\n he as isScaledElement,\n pe as isShadowRoot,\n N as isString,\n me as isTableElement,\n Io as isWeakMap,\n Xt as isWebKit,\n K as isWindow,\n co as kebabCase,\n tn as keyAlt,\n en as keyArrowDown,\n on as keyArrowLeft,\n sn as keyArrowRight,\n nn as keyArrowUp,\n rn as keyBackspace,\n cn as keyCapsLock,\n an as keyControl,\n un as keyDelete,\n ln as keyEnter,\n fn as keyEscape,\n pn as keyInsert,\n gn as keyMeta,\n dn as keyNumpadEnter,\n mn as keyPause,\n vn as keyScrollLock,\n bn as keyShift,\n En as keySpace,\n hn as keyTab,\n Ye as keyboardEventKeys,\n lt as keydownEvent,\n dt as keypressEvent,\n ft as keyupEvent,\n pt as loadEvent,\n Ge as loadstartEvent,\n ve as matches,\n _e as mouseClickEvents,\n $e as mouseHoverEvents,\n Ze as mouseSwipeEvents,\n gt as mouseclickEvent,\n mt as mousedblclickEvent,\n vt as mousedownEvent,\n ht as mouseenterEvent,\n Et as mousehoverEvent,\n wt as mouseinEvent,\n yt as mouseleaveEvent,\n kt as mousemoveEvent,\n At as mouseoutEvent,\n St as mouseoverEvent,\n bt as mouseupEvent,\n Nt as mousewheelEvent,\n Ct as moveEvent,\n Ue as nativeEvents,\n Yt as noop,\n ao as normalizeOptions,\n P as normalizeValue,\n Q as off,\n Sn as offsetHeight,\n kn as offsetWidth,\n R as on,\n te as one,\n Tt as orientationchangeEvent,\n go as passiveHandler,\n Mt as pointercancelEvent,\n Dt as pointerdownEvent,\n Lt as pointerleaveEvent,\n Ot as pointermoveEvent,\n xt as pointerupEvent,\n Ho as querySelector,\n ue as querySelectorAll,\n zt as readystatechangeEvent,\n mo as reflow,\n Qn as removeAttribute,\n jn as removeAttributeNS,\n qn as removeClass,\n wn as removeEventListener,\n It as resetEvent,\n Pt as resizeEvent,\n Ht as scrollEvent,\n Nn as scrollHeight,\n Cn as scrollWidth,\n Ft as selectEvent,\n Bt as selectendEvent,\n Vt as selectstartEvent,\n Wn as setAttribute,\n Rn as setAttributeNS,\n vo as setElementStyle,\n Ut as submitEvent,\n zn as support3DTransform,\n Bn as supportAnimation,\n In as supportPassive,\n Fn as supportTouch,\n Pn as supportTransform,\n Vn as supportTransition,\n Tn as tabindex,\n Eo as toLowerCase,\n ho as toUpperCase,\n yo as toggleFocusTrap,\n Je as touchEvents,\n Qt as touchcancelEvent,\n jt as touchendEvent,\n Rt as touchmoveEvent,\n Wt as touchstartEvent,\n $t as transitionDelay,\n _t as transitionDuration,\n M as transitionEndEvent,\n W as transitionProperty,\n Kt as unloadEvent,\n Dn as userAgent,\n Mn as userAgentData,\n Ne as version\n};\n//# sourceMappingURL=shorty.mjs.map\n","const g = \"2.0.8\", e = {}, f = (t) => {\n const { type: n, currentTarget: c } = t;\n e[n].forEach((a, s) => {\n c === s && a.forEach((o, i) => {\n i.apply(s, [t]), typeof o == \"object\" && o.once && r(s, n, i, o);\n });\n });\n}, E = (t, n, c, a) => {\n e[n] || (e[n] = /* @__PURE__ */ new Map());\n const s = e[n];\n s.has(t) || s.set(t, /* @__PURE__ */ new Map());\n const o = s.get(\n t\n ), { size: i } = o;\n o.set(c, a), i || t.addEventListener(\n n,\n f,\n a\n );\n}, r = (t, n, c, a) => {\n const s = e[n], o = s && s.get(t), i = o && o.get(c), d = i !== void 0 ? i : a;\n o && o.has(c) && o.delete(c), s && (!o || !o.size) && s.delete(t), (!s || !s.size) && delete e[n], (!o || !o.size) && t.removeEventListener(\n n,\n f,\n d\n );\n}, M = E, p = r;\nexport {\n E as addListener,\n f as globalListener,\n p as off,\n M as on,\n e as registry,\n r as removeListener,\n g as version\n};\n//# sourceMappingURL=event-listener.mjs.map\n","import { version } from \"../package.json\";\n\nconst Version = version;\n\nexport default Version;\n","/* Native JavaScript for Bootstrap 5 | Base Component\n----------------------------------------------------- */\nimport {\n Data,\n isElement,\n isString,\n normalizeOptions,\n ObjectKeys,\n querySelector,\n} from \"@thednp/shorty\";\n\nimport type { BaseOptions } from \"~/interface/baseComponent\";\nimport Version from \"~/version\";\n\n/** Returns a new `BaseComponent` instance. */\nexport default class BaseComponent {\n declare element: Element;\n declare options?: BaseOptions;\n\n /**\n * @param target `Element` or selector string\n * @param config component instance options\n */\n constructor(target: Element | string, config?: BaseOptions) {\n let element: Element | null;\n\n try {\n if (isElement(target)) {\n element = target as Element;\n } else if (isString(target)) {\n element = querySelector(target);\n // istanbul ignore else @preserve\n if (!element) throw Error(`\"${target}\" is not a valid selector.`);\n } else {\n throw Error(`your target is not an instance of HTMLElement.`);\n }\n } catch (e) {\n throw Error(`${this.name} Error: ${(e as Error).message}`);\n }\n\n const prevInstance = Data.get(element, this.name);\n /* istanbul ignore else @preserve */\n if (prevInstance) {\n // remove previously attached event listeners\n // to avoid memory leaks\n prevInstance._toggleEventListeners();\n }\n\n this.element = element;\n this.options = this.defaults && ObjectKeys(this.defaults).length\n ? normalizeOptions(element, this.defaults, config || {}, \"bs\")\n : /* istanbul ignore next @preserve */ {};\n\n Data.set(element, this.name, this);\n }\n\n // istanbul ignore next @preserve\n get version() {\n return Version;\n }\n\n // istanbul ignore next @preserve\n get name() {\n return \"BaseComponent\";\n }\n\n // istanbul ignore next @preserve\n get defaults() {\n return {};\n }\n\n /** just to have something to extend from */\n // istanbul ignore next @preserve coverage wise this isn't important\n _toggleEventListeners = () => {\n // do something to please linters\n };\n\n /** Removes component from target element. */\n dispose() {\n Data.remove(this.element, this.name);\n ObjectKeys(this).forEach((prop) => {\n delete this[prop];\n });\n }\n}\n"],"names":["Me","De","ze","Ie","Pe","st","rt","ct","lt","ft","gt","vt","Et","ht","yt","Dt","Ot","xt","Wt","Re","qt","en","nn","on","sn","fn","_t","$t","M","W","On","t","e","Yt","R","Q","j","ee","Wn","Qn","Kn","qn","Gn","v","i","E","L","Xn","I","N","K","q","C","ne","G","f","ce","ae","no","a","ro","P","S","ao","p","c","g","A","uo","po","go","mo","vo","O","ie","m","bo","Eo","ue","x","le","de","yo","b","y","wo","w","So","pe","k","ge","me","ve","he","No","B","V","h","ye","we","To","Lo","Fo","Bo","Se","Ho","ke","Wo","Ro","n","o","r","d","Version","version","BaseComponent","target","config","element","isElement","isString","querySelector","prevInstance","Data","ObjectKeys","normalizeOptions","prop"],"mappings":"aAAK,MAA6DA,EAAK,mBAAoBC,EAAK,gBAAuC,EAAI,cAA0DC,GAAK,aAAcC,GAAK,eAAgBC,GAAK,gBAAuPC,GAAK,QAASC,GAAK,UAAWC,GAAK,WAA0EC,GAAK,UAA4BC,GAAK,QAAsBC,GAAK,QAA0BC,GAAK,YAA6BC,GAAK,QAASC,GAAK,aAAcC,GAAK,aAAmKC,GAAK,cAAoCC,GAAK,cAAeC,GAAK,YAAsJC,GAAK,aAmDzmCC,GAAK,YAUuBC,GAAK,oFAoBlCC,GAAK,YAAaC,GAAK,UAAWC,GAAK,YAAaC,GAAK,aAAkHC,GAAK,SAAyMC,GAAK,qBAAsBC,GAAK,kBAAmBC,EAAI,gBAAiBC,EAAI,qBA+BjdC,GAAK,IAAM,CACZ,MAAMC,EAAI,qBACV,OAAO,WAAW,eAAe,OAAO,KACrCC,GAAMD,EAAE,KAAKC,EAAE,KAAK,CACtB,GAAID,EAAE,KACL,WAAW,SACZ,GAAI,EACP,EAA2PE,GAAK,IAAM,CACtQ,EAAGC,GAAI,CAACH,EAAGC,EAAG,EAAG,IAAM,CACrB,MAAM,EAAI,GAAK,GACfD,EAAE,iBACAC,EACA,EACA,CACD,CACH,EAAGG,GAAI,CAACJ,EAAGC,EAAG,EAAG,IAAM,CACrB,MAAM,EAAI,GAAK,GACfD,E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MAAM,GAAG,KAAK,IAAI,WAAYA,EAAY,OAAO,EAAE,CAAA,CAG3D,MAAM0F,EAAeC,EAAK,IAAiBL,EAAS,KAAK,IAAI,EAEzDI,GAGFA,EAAa,sBAAsB,EAGrC,KAAK,QAAUJ,EACf,KAAK,QAAU,KAAK,UAAYM,EAAW,KAAK,QAAQ,EAAE,OACtDC,GAAiBP,EAAS,KAAK,SAAUD,GAAU,CAAI,EAAA,IAAI,EAC1D,CAAC,EAENM,EAAK,IAAIL,EAAS,KAAK,KAAM,IAAI,CAAA,CAInC,IAAI,SAAU,CACL,OAAAL,EAAA,CAIT,IAAI,MAAO,CACF,MAAA,eAAA,CAIT,IAAI,UAAW,CACb,MAAO,CAAC,CAAA,CAKV,sBAAwB,IAAM,CAE9B,EAGA,SAAU,CACRU,EAAK,OAAoB,KAAK,QAAS,KAAK,IAAI,EAChDC,EAAW,IAAI,EAAE,QAASE,GAAS,CACjC,OAAO,KAAKA,CAAI,CAAA,CACjB,CAAA,CAEL","x_google_ignoreList":[0,1]} \ No newline at end of file diff --git a/dist/components/button.cjs b/dist/components/button.cjs index b0da00fa..3a8fe1f3 100644 --- a/dist/components/button.cjs +++ b/dist/components/button.cjs @@ -1,2 +1,2 @@ -"use strict";const t=require("./base-component-4K-5H-MO.js"),i=require("./activeClass-CxJYQAGN.js"),r=require("./dataBsToggle-Dj-Ng54N.js"),l=require("./isDisabled-BFPGF6I2.js"),u="button",c="Button",g=`[${r.dataBsToggle}="${u}"]`,v=n=>t.Xn(n,c),b=n=>new a(n);class a extends t.BaseComponent{static selector=g;static init=b;static getInstance=v;constructor(s){super(s);const{element:e}=this;this.isActive=t.Gn(e,i.activeClass),t.Wn(e,t.Ie,String(!!this.isActive)),this._toggleEventListeners(!0)}get name(){return c}toggle=s=>{s&&s.preventDefault();const{element:e,isActive:o}=this;if(l.isDisabled(e))return;(o?t.qn:t.Kn)(e,i.activeClass),t.Wn(e,t.Ie,o?"false":"true"),this.isActive=t.Gn(e,i.activeClass)};_toggleEventListeners=s=>{(s?t.E:t.r)(this.element,t.gt,this.toggle)};dispose(){this._toggleEventListeners(),super.dispose()}}module.exports=a; +"use strict";const t=require("./base-component-DMuoZh8G.js"),i=require("./activeClass-CxJYQAGN.js"),r=require("./dataBsToggle-Dj-Ng54N.js"),l=require("./isDisabled-BhBg0EpT.js"),u="button",c="Button",g=`[${r.dataBsToggle}="${u}"]`,v=n=>t.Xn(n,c),b=n=>new a(n);class a extends t.BaseComponent{static selector=g;static init=b;static getInstance=v;constructor(s){super(s);const{element:e}=this;this.isActive=t.Gn(e,i.activeClass),t.Wn(e,t.Ie,String(!!this.isActive)),this._toggleEventListeners(!0)}get name(){return c}toggle=s=>{s&&s.preventDefault();const{element:e,isActive:o}=this;if(l.isDisabled(e))return;(o?t.qn:t.Kn)(e,i.activeClass),t.Wn(e,t.Ie,o?"false":"true"),this.isActive=t.Gn(e,i.activeClass)};_toggleEventListeners=s=>{(s?t.E:t.r)(this.element,t.gt,this.toggle)};dispose(){this._toggleEventListeners(),super.dispose()}}module.exports=a; //# sourceMappingURL=button.cjs.map diff --git a/dist/components/button.mjs b/dist/components/button.mjs index 231acb08..50caf2e1 100644 --- a/dist/components/button.mjs +++ b/dist/components/button.mjs @@ -1,7 +1,7 @@ -import { B as g, G as i, W as a, I as c, g as l, X as u, q as m, K as p, E as f, r as h } from "./base-component-LaJIjMhh.mjs"; +import { B as g, G as i, W as a, I as c, g as l, X as u, q as m, K as p, E as f, r as h } from "./base-component--xj9oMJ8.mjs"; import { a as n } from "./activeClass-iqaD75Su.mjs"; import { d as v } from "./dataBsToggle-B84TS15h.mjs"; -import { i as b } from "./isDisabled-DmmaKYeZ.mjs"; +import { i as b } from "./isDisabled-Dh1obUSx.mjs"; const d = "button", r = "Button", B = `[${v}="${d}"]`, I = (e) => u(e, r), A = (e) => new C(e); class C extends g { static selector = B; diff --git a/dist/components/carousel.cjs b/dist/components/carousel.cjs index 7b6294f7..8c5ebbad 100644 --- a/dist/components/carousel.cjs +++ b/dist/components/carousel.cjs @@ -1,2 +1,2 @@ -"use strict";const t=require("./base-component-4K-5H-MO.js"),f=require("./activeClass-CxJYQAGN.js"),T=require("./getTargetElement-gM3rpCRn.js"),B=require("./isDisabled-BFPGF6I2.js"),x="carousel",X="Carousel",b=`[data-bs-ride="${x}"]`,h=`${x}-item`,y="data-bs-slide-to",m="data-bs-slide",p="paused",q={pause:"hover",keyboard:!1,touch:!0,interval:5e3},g=n=>t.Xn(n,X),R=n=>new L(n);let $=0,C=0,E=0;const H=t.po(`slide.bs.${x}`),A=t.po(`slid.bs.${x}`),D=n=>{const{index:i,direction:e,element:s,slides:a,options:c}=n;if(n.isAnimating){const r=K(n),o=e==="left"?"next":"prev",d=e==="left"?"start":"end";t.Kn(a[i],f.activeClass),t.qn(a[i],`${h}-${o}`),t.qn(a[i],`${h}-${d}`),t.qn(a[r],f.activeClass),t.qn(a[r],`${h}-${d}`),t.G(s,A),t.bo.clear(s,m),n.cycle&&!t.d(s).hidden&&c.interval&&!n.isPaused&&n.cycle()}};function w(){const n=g(this);n&&!n.isPaused&&!t.bo.get(this,p)&&t.Kn(this,p)}function N(){const n=g(this);n&&n.isPaused&&!t.bo.get(this,p)&&n.cycle()}function O(n){n.preventDefault();const i=t.Se(this,b)||T.getTargetElement(this),e=i&&g(i);if(B.isDisabled(this)||!e||e.isAnimating)return;const s=+(t.j(this,y)||0);this&&!t.Gn(this,f.activeClass)&&!Number.isNaN(s)&&e.to(s)}function k(n){n.preventDefault();const i=t.Se(this,b)||T.getTargetElement(this),e=i&&g(i);if(B.isDisabled(this)||!e||e.isAnimating)return;const s=t.j(this,m);s==="next"?e.next():s==="prev"&&e.prev()}const _=({code:n,target:i})=>{const e=t.d(i),[s]=[...t.ue(b,e)].filter(d=>t.To(d)),a=g(s);if(!a||a.isAnimating||/textarea|input|select/i.test(i.nodeName))return;const c=t.Bo(s),r=c?t.on:t.sn,o=c?t.sn:t.on;n===o?a.prev():n===r&&a.next()};function S(n){const{target:i}=n,e=g(this);e&&e.isTouch&&(e.indicator&&!e.indicator.contains(i)||!e.controls.includes(i))&&(n.stopImmediatePropagation(),n.stopPropagation(),n.preventDefault())}function j(n){const{target:i}=n,e=g(this);if(!e||e.isAnimating||e.isTouch)return;const{controls:s,indicators:a}=e;[...s,...a].every(c=>c===i||c.contains(i))||($=n.pageX,this.contains(i)&&(e.isTouch=!0,G(e,!0)))}const M=n=>{C=n.pageX},U=n=>{const{target:i}=n,e=t.d(i),s=[...t.ue(b,e)].map(o=>g(o)).find(o=>o.isTouch);if(!s)return;const{element:a,index:c}=s,r=t.Bo(a);E=n.pageX,s.isTouch=!1,G(s),!e.getSelection()?.toString().length&&a.contains(i)&&Math.abs($-E)>120&&(C<$?s.to(c+(r?-1:1)):C>$&&s.to(c+(r?1:-1))),$=0,C=0,E=0},I=(n,i)=>{const{indicators:e}=n;[...e].forEach(s=>t.qn(s,f.activeClass)),n.indicators[i]&&t.Kn(e[i],f.activeClass)},G=(n,i)=>{const{element:e}=n,s=i?t.E:t.r;s(t.d(e),t.Ot,M,t.go),s(t.d(e),t.xt,U,t.go)},K=n=>{const{slides:i,element:e}=n,s=t.Ho(`.${h}.${f.activeClass}`,e);return s?[...i].indexOf(s):-1};class L extends t.BaseComponent{static selector=b;static init=R;static getInstance=g;constructor(i,e){super(i,e);const{element:s}=this;this.direction=t.Bo(s)?"right":"left",this.isTouch=!1,this.slides=t.Ro(h,s);const{slides:a}=this;if(a.length<2)return;const c=K(this),r=[...a].find(u=>t.ve(u,`.${h}-next`));this.index=c;const o=t.d(s);this.controls=[...t.ue(`[${m}]`,s),...t.ue(`[${m}][${T.dataBsTarget}="#${s.id}"]`,o)].filter((u,v,l)=>v===l.indexOf(u)),this.indicator=t.Ho(`.${x}-indicators`,s),this.indicators=[...this.indicator?t.ue(`[${y}]`,this.indicator):[],...t.ue(`[${y}][${T.dataBsTarget}="#${s.id}"]`,o)].filter((u,v,l)=>v===l.indexOf(u));const{options:d}=this;this.options.interval=d.interval===!0?q.interval:d.interval,r?this.index=[...a].indexOf(r):c<0&&(this.index=0,t.Kn(a[0],f.activeClass),this.indicators.length&&I(this,0)),this.indicators.length&&I(this,this.index),this._toggleEventListeners(!0),d.interval&&this.cycle()}get name(){return X}get defaults(){return q}get isPaused(){return t.Gn(this.element,p)}get isAnimating(){return t.Ho(`.${h}-next,.${h}-prev`,this.element)!==null}cycle(){const{element:i,options:e,isPaused:s,index:a}=this;t.bo.clear(i,x),s&&(t.bo.clear(i,p),t.qn(i,p)),t.bo.set(i,()=>{this.element&&!this.isPaused&&!this.isTouch&&t.To(i)&&this.to(a+1)},e.interval,x)}pause(){const{element:i,options:e}=this;this.isPaused||!e.interval||(t.Kn(i,p),t.bo.set(i,()=>{},1,p))}next(){this.isAnimating||this.to(this.index+1)}prev(){this.isAnimating||this.to(this.index-1)}to(i){const{element:e,slides:s,options:a}=this,c=K(this),r=t.Bo(e);let o=i;if(this.isAnimating||c===o||t.bo.get(e,m))return;co||c===s.length-1&&o===0)&&(this.direction=r?"left":"right");const{direction:d}=this;o<0?o=s.length-1:o>=s.length&&(o=0);const u=d==="left"?"next":"prev",v=d==="left"?"start":"end",l={relatedTarget:s[o],from:c,to:o,direction:d};t.C(H,l),t.C(A,l),t.G(e,H),!H.defaultPrevented&&(this.index=o,I(this,o),t.ae(s[o])&&t.Gn(e,"slide")?t.bo.set(e,()=>{t.Kn(s[o],`${h}-${u}`),t.mo(s[o]),t.Kn(s[o],`${h}-${v}`),t.Kn(s[c],`${h}-${v}`),t.no(s[o],()=>this.slides&&this.slides.length&&D(this))},0,m):(t.Kn(s[o],f.activeClass),t.qn(s[c],f.activeClass),t.bo.set(e,()=>{t.bo.clear(e,m),e&&a.interval&&!this.isPaused&&this.cycle(),t.G(e,A)},0,m)))}_toggleEventListeners=i=>{const{element:e,options:s,slides:a,controls:c,indicators:r}=this,{touch:o,pause:d,interval:u,keyboard:v}=s,l=i?t.E:t.r;d&&u&&(l(e,t.ht,w),l(e,t.yt,N)),o&&a.length>2&&(l(e,t.Dt,j,t.go),l(e,t.Wt,S,{passive:!1}),l(e,t.Re,S,{passive:!1})),c.length&&c.forEach(P=>{l(P,t.gt,k)}),r.length&&r.forEach(P=>{l(P,t.gt,O)}),v&&l(t.d(e),t.lt,_)};dispose(){const{isAnimating:i}=this,e={...this,isAnimating:i};this._toggleEventListeners(),super.dispose(),e.isAnimating&&t.no(e.slides[e.index],()=>{D(e)})}}module.exports=L; +"use strict";const t=require("./base-component-DMuoZh8G.js"),f=require("./activeClass-CxJYQAGN.js"),T=require("./getTargetElement-DananmHP.js"),B=require("./isDisabled-BhBg0EpT.js"),x="carousel",X="Carousel",b=`[data-bs-ride="${x}"]`,h=`${x}-item`,y="data-bs-slide-to",m="data-bs-slide",p="paused",q={pause:"hover",keyboard:!1,touch:!0,interval:5e3},g=n=>t.Xn(n,X),R=n=>new L(n);let $=0,C=0,E=0;const H=t.po(`slide.bs.${x}`),A=t.po(`slid.bs.${x}`),D=n=>{const{index:i,direction:e,element:s,slides:a,options:c}=n;if(n.isAnimating){const r=K(n),o=e==="left"?"next":"prev",d=e==="left"?"start":"end";t.Kn(a[i],f.activeClass),t.qn(a[i],`${h}-${o}`),t.qn(a[i],`${h}-${d}`),t.qn(a[r],f.activeClass),t.qn(a[r],`${h}-${d}`),t.G(s,A),t.bo.clear(s,m),n.cycle&&!t.d(s).hidden&&c.interval&&!n.isPaused&&n.cycle()}};function w(){const n=g(this);n&&!n.isPaused&&!t.bo.get(this,p)&&t.Kn(this,p)}function N(){const n=g(this);n&&n.isPaused&&!t.bo.get(this,p)&&n.cycle()}function O(n){n.preventDefault();const i=t.Se(this,b)||T.getTargetElement(this),e=i&&g(i);if(B.isDisabled(this)||!e||e.isAnimating)return;const s=+(t.j(this,y)||0);this&&!t.Gn(this,f.activeClass)&&!Number.isNaN(s)&&e.to(s)}function k(n){n.preventDefault();const i=t.Se(this,b)||T.getTargetElement(this),e=i&&g(i);if(B.isDisabled(this)||!e||e.isAnimating)return;const s=t.j(this,m);s==="next"?e.next():s==="prev"&&e.prev()}const _=({code:n,target:i})=>{const e=t.d(i),[s]=[...t.ue(b,e)].filter(d=>t.To(d)),a=g(s);if(!a||a.isAnimating||/textarea|input|select/i.test(i.nodeName))return;const c=t.Bo(s),r=c?t.on:t.sn,o=c?t.sn:t.on;n===o?a.prev():n===r&&a.next()};function S(n){const{target:i}=n,e=g(this);e&&e.isTouch&&(e.indicator&&!e.indicator.contains(i)||!e.controls.includes(i))&&(n.stopImmediatePropagation(),n.stopPropagation(),n.preventDefault())}function j(n){const{target:i}=n,e=g(this);if(!e||e.isAnimating||e.isTouch)return;const{controls:s,indicators:a}=e;[...s,...a].every(c=>c===i||c.contains(i))||($=n.pageX,this.contains(i)&&(e.isTouch=!0,G(e,!0)))}const M=n=>{C=n.pageX},U=n=>{const{target:i}=n,e=t.d(i),s=[...t.ue(b,e)].map(o=>g(o)).find(o=>o.isTouch);if(!s)return;const{element:a,index:c}=s,r=t.Bo(a);E=n.pageX,s.isTouch=!1,G(s),!e.getSelection()?.toString().length&&a.contains(i)&&Math.abs($-E)>120&&(C<$?s.to(c+(r?-1:1)):C>$&&s.to(c+(r?1:-1))),$=0,C=0,E=0},I=(n,i)=>{const{indicators:e}=n;[...e].forEach(s=>t.qn(s,f.activeClass)),n.indicators[i]&&t.Kn(e[i],f.activeClass)},G=(n,i)=>{const{element:e}=n,s=i?t.E:t.r;s(t.d(e),t.Ot,M,t.go),s(t.d(e),t.xt,U,t.go)},K=n=>{const{slides:i,element:e}=n,s=t.Ho(`.${h}.${f.activeClass}`,e);return s?[...i].indexOf(s):-1};class L extends t.BaseComponent{static selector=b;static init=R;static getInstance=g;constructor(i,e){super(i,e);const{element:s}=this;this.direction=t.Bo(s)?"right":"left",this.isTouch=!1,this.slides=t.Ro(h,s);const{slides:a}=this;if(a.length<2)return;const c=K(this),r=[...a].find(u=>t.ve(u,`.${h}-next`));this.index=c;const o=t.d(s);this.controls=[...t.ue(`[${m}]`,s),...t.ue(`[${m}][${T.dataBsTarget}="#${s.id}"]`,o)].filter((u,v,l)=>v===l.indexOf(u)),this.indicator=t.Ho(`.${x}-indicators`,s),this.indicators=[...this.indicator?t.ue(`[${y}]`,this.indicator):[],...t.ue(`[${y}][${T.dataBsTarget}="#${s.id}"]`,o)].filter((u,v,l)=>v===l.indexOf(u));const{options:d}=this;this.options.interval=d.interval===!0?q.interval:d.interval,r?this.index=[...a].indexOf(r):c<0&&(this.index=0,t.Kn(a[0],f.activeClass),this.indicators.length&&I(this,0)),this.indicators.length&&I(this,this.index),this._toggleEventListeners(!0),d.interval&&this.cycle()}get name(){return X}get defaults(){return q}get isPaused(){return t.Gn(this.element,p)}get isAnimating(){return t.Ho(`.${h}-next,.${h}-prev`,this.element)!==null}cycle(){const{element:i,options:e,isPaused:s,index:a}=this;t.bo.clear(i,x),s&&(t.bo.clear(i,p),t.qn(i,p)),t.bo.set(i,()=>{this.element&&!this.isPaused&&!this.isTouch&&t.To(i)&&this.to(a+1)},e.interval,x)}pause(){const{element:i,options:e}=this;this.isPaused||!e.interval||(t.Kn(i,p),t.bo.set(i,()=>{},1,p))}next(){this.isAnimating||this.to(this.index+1)}prev(){this.isAnimating||this.to(this.index-1)}to(i){const{element:e,slides:s,options:a}=this,c=K(this),r=t.Bo(e);let o=i;if(this.isAnimating||c===o||t.bo.get(e,m))return;co||c===s.length-1&&o===0)&&(this.direction=r?"left":"right");const{direction:d}=this;o<0?o=s.length-1:o>=s.length&&(o=0);const u=d==="left"?"next":"prev",v=d==="left"?"start":"end",l={relatedTarget:s[o],from:c,to:o,direction:d};t.C(H,l),t.C(A,l),t.G(e,H),!H.defaultPrevented&&(this.index=o,I(this,o),t.ae(s[o])&&t.Gn(e,"slide")?t.bo.set(e,()=>{t.Kn(s[o],`${h}-${u}`),t.mo(s[o]),t.Kn(s[o],`${h}-${v}`),t.Kn(s[c],`${h}-${v}`),t.no(s[o],()=>this.slides&&this.slides.length&&D(this))},0,m):(t.Kn(s[o],f.activeClass),t.qn(s[c],f.activeClass),t.bo.set(e,()=>{t.bo.clear(e,m),e&&a.interval&&!this.isPaused&&this.cycle(),t.G(e,A)},0,m)))}_toggleEventListeners=i=>{const{element:e,options:s,slides:a,controls:c,indicators:r}=this,{touch:o,pause:d,interval:u,keyboard:v}=s,l=i?t.E:t.r;d&&u&&(l(e,t.ht,w),l(e,t.yt,N)),o&&a.length>2&&(l(e,t.Dt,j,t.go),l(e,t.Wt,S,{passive:!1}),l(e,t.Re,S,{passive:!1})),c.length&&c.forEach(P=>{l(P,t.gt,k)}),r.length&&r.forEach(P=>{l(P,t.gt,O)}),v&&l(t.d(e),t.lt,_)};dispose(){const{isAnimating:i}=this,e={...this,isAnimating:i};this._toggleEventListeners(),super.dispose(),e.isAnimating&&t.no(e.slides[e.index],()=>{D(e)})}}module.exports=L; //# sourceMappingURL=carousel.cjs.map diff --git a/dist/components/carousel.mjs b/dist/components/carousel.mjs index 0aa2c9b8..2fd4d38f 100644 --- a/dist/components/carousel.mjs +++ b/dist/components/carousel.mjs @@ -1,7 +1,7 @@ -import { B as it, b as H, R as nt, v as ot, d as T, u as y, H as X, K as u, G as w, c as d, q as $, T as z, C as O, a as K, e as at, m as rt, n as k, X as ct, p as F, E as J, r as Q, h as lt, y as dt, f as R, D as ht, i as ft, j as ut, g as G, l as gt, S as V, k as Y, O as mt, x as pt, s as _, o as j } from "./base-component-LaJIjMhh.mjs"; +import { B as it, b as H, R as nt, v as ot, d as T, u as y, H as X, K as u, G as w, c as d, q as $, T as z, C as O, a as K, e as at, m as rt, n as k, X as ct, p as F, E as J, r as Q, h as lt, y as dt, f as R, D as ht, i as ft, j as ut, g as G, l as gt, S as V, k as Y, O as mt, x as pt, s as _, o as j } from "./base-component--xj9oMJ8.mjs"; import { a as g } from "./activeClass-iqaD75Su.mjs"; -import { d as q, g as Z } from "./getTargetElement-D4ALSKV7.mjs"; -import { i as tt } from "./isDisabled-DmmaKYeZ.mjs"; +import { d as q, g as Z } from "./getTargetElement-B-Gw6dom.mjs"; +import { i as tt } from "./isDisabled-Dh1obUSx.mjs"; const P = "carousel", et = "Carousel", I = `[data-bs-ride="${P}"]`, h = `${P}-item`, B = "data-bs-slide-to", v = "data-bs-slide", x = "paused", M = { pause: "hover", keyboard: !1, diff --git a/dist/components/collapse.cjs b/dist/components/collapse.cjs index 92d14c04..d9c99e96 100644 --- a/dist/components/collapse.cjs +++ b/dist/components/collapse.cjs @@ -1,2 +1,2 @@ -"use strict";const e=require("./base-component-4K-5H-MO.js"),m=require("./dataBsToggle-Dj-Ng54N.js"),g=require("./collapsingClass-CLblascz.js"),h=require("./showClass-D_Ms1FgG.js"),p=require("./getTargetElement-gM3rpCRn.js"),v=require("./isDisabled-BFPGF6I2.js"),l="collapse",u="Collapse",$=`.${l}`,b=`[${m.dataBsToggle}="${l}"]`,q={parent:null},c=a=>e.Xn(a,u),w=a=>new E(a),f=e.po(`show.bs.${l}`),K=e.po(`shown.bs.${l}`),d=e.po(`hide.bs.${l}`),T=e.po(`hidden.bs.${l}`),x=a=>{const{element:t,parent:s,triggers:n}=a;e.G(t,f),f.defaultPrevented||(e.bo.set(t,e.Yt,17),s&&e.bo.set(s,e.Yt,17),e.Kn(t,g.collapsingClass),e.qn(t,l),e.vo(t,{height:`${t.scrollHeight}px`}),e.no(t,()=>{e.bo.clear(t),s&&e.bo.clear(s),n.forEach(o=>e.Wn(o,e.De,"true")),e.qn(t,g.collapsingClass),e.Kn(t,l),e.Kn(t,h.showClass),e.vo(t,{height:""}),e.G(t,K)}))},C=a=>{const{element:t,parent:s,triggers:n}=a;e.G(t,d),d.defaultPrevented||(e.bo.set(t,e.Yt,17),s&&e.bo.set(s,e.Yt,17),e.vo(t,{height:`${t.scrollHeight}px`}),e.qn(t,l),e.qn(t,h.showClass),e.Kn(t,g.collapsingClass),e.mo(t),e.vo(t,{height:"0px"}),e.no(t,()=>{e.bo.clear(t),s&&e.bo.clear(s),n.forEach(o=>e.Wn(o,e.De,"false")),e.qn(t,g.collapsingClass),e.Kn(t,l),e.vo(t,{height:""}),e.G(t,T)}))},D=a=>{const{target:t}=a,s=t&&e.Se(t,b),n=s&&p.getTargetElement(s),o=n&&c(n);s&&v.isDisabled(s)||o&&(o.toggle(),s?.tagName==="A"&&a.preventDefault())};class E extends e.BaseComponent{static selector=$;static init=w;static getInstance=c;constructor(t,s){super(t,s);const{element:n,options:o}=this,i=e.d(n);this.triggers=[...e.ue(b,i)].filter(r=>p.getTargetElement(r)===n),this.parent=e.b(o.parent)?o.parent:e.N(o.parent)?p.getTargetElement(n)||e.Ho(o.parent,i):null,this._toggleEventListeners(!0)}get name(){return u}get defaults(){return q}hide(){const{triggers:t,element:s}=this;e.bo.get(s)||(C(this),t.length&&t.forEach(n=>e.Kn(n,`${l}d`)))}show(){const{element:t,parent:s,triggers:n}=this;let o,i;s&&(o=[...e.ue(`.${l}.${h.showClass}`,s)].find(r=>c(r)),i=o&&c(o)),(!s||!e.bo.get(s))&&!e.bo.get(t)&&(i&&o!==t&&(C(i),i.triggers.forEach(r=>{e.Kn(r,`${l}d`)})),x(this),n.length&&n.forEach(r=>e.qn(r,`${l}d`)))}toggle(){e.Gn(this.element,h.showClass)?this.hide():this.show()}_toggleEventListeners=t=>{const s=t?e.E:e.r,{triggers:n}=this;n.length&&n.forEach(o=>{s(o,e.gt,D)})};dispose(){this._toggleEventListeners(),super.dispose()}}module.exports=E; +"use strict";const e=require("./base-component-DMuoZh8G.js"),m=require("./dataBsToggle-Dj-Ng54N.js"),g=require("./collapsingClass-CLblascz.js"),h=require("./showClass-D_Ms1FgG.js"),p=require("./getTargetElement-DananmHP.js"),v=require("./isDisabled-BhBg0EpT.js"),l="collapse",u="Collapse",$=`.${l}`,b=`[${m.dataBsToggle}="${l}"]`,q={parent:null},c=a=>e.Xn(a,u),w=a=>new E(a),f=e.po(`show.bs.${l}`),K=e.po(`shown.bs.${l}`),d=e.po(`hide.bs.${l}`),T=e.po(`hidden.bs.${l}`),x=a=>{const{element:t,parent:s,triggers:n}=a;e.G(t,f),f.defaultPrevented||(e.bo.set(t,e.Yt,17),s&&e.bo.set(s,e.Yt,17),e.Kn(t,g.collapsingClass),e.qn(t,l),e.vo(t,{height:`${t.scrollHeight}px`}),e.no(t,()=>{e.bo.clear(t),s&&e.bo.clear(s),n.forEach(o=>e.Wn(o,e.De,"true")),e.qn(t,g.collapsingClass),e.Kn(t,l),e.Kn(t,h.showClass),e.vo(t,{height:""}),e.G(t,K)}))},C=a=>{const{element:t,parent:s,triggers:n}=a;e.G(t,d),d.defaultPrevented||(e.bo.set(t,e.Yt,17),s&&e.bo.set(s,e.Yt,17),e.vo(t,{height:`${t.scrollHeight}px`}),e.qn(t,l),e.qn(t,h.showClass),e.Kn(t,g.collapsingClass),e.mo(t),e.vo(t,{height:"0px"}),e.no(t,()=>{e.bo.clear(t),s&&e.bo.clear(s),n.forEach(o=>e.Wn(o,e.De,"false")),e.qn(t,g.collapsingClass),e.Kn(t,l),e.vo(t,{height:""}),e.G(t,T)}))},D=a=>{const{target:t}=a,s=t&&e.Se(t,b),n=s&&p.getTargetElement(s),o=n&&c(n);s&&v.isDisabled(s)||o&&(o.toggle(),s?.tagName==="A"&&a.preventDefault())};class E extends e.BaseComponent{static selector=$;static init=w;static getInstance=c;constructor(t,s){super(t,s);const{element:n,options:o}=this,i=e.d(n);this.triggers=[...e.ue(b,i)].filter(r=>p.getTargetElement(r)===n),this.parent=e.b(o.parent)?o.parent:e.N(o.parent)?p.getTargetElement(n)||e.Ho(o.parent,i):null,this._toggleEventListeners(!0)}get name(){return u}get defaults(){return q}hide(){const{triggers:t,element:s}=this;e.bo.get(s)||(C(this),t.length&&t.forEach(n=>e.Kn(n,`${l}d`)))}show(){const{element:t,parent:s,triggers:n}=this;let o,i;s&&(o=[...e.ue(`.${l}.${h.showClass}`,s)].find(r=>c(r)),i=o&&c(o)),(!s||!e.bo.get(s))&&!e.bo.get(t)&&(i&&o!==t&&(C(i),i.triggers.forEach(r=>{e.Kn(r,`${l}d`)})),x(this),n.length&&n.forEach(r=>e.qn(r,`${l}d`)))}toggle(){e.Gn(this.element,h.showClass)?this.hide():this.show()}_toggleEventListeners=t=>{const s=t?e.E:e.r,{triggers:n}=this;n.length&&n.forEach(o=>{s(o,e.gt,D)})};dispose(){this._toggleEventListeners(),super.dispose()}}module.exports=E; //# sourceMappingURL=collapse.cjs.map diff --git a/dist/components/collapse.mjs b/dist/components/collapse.mjs index 798cfb86..865d2fce 100644 --- a/dist/components/collapse.mjs +++ b/dist/components/collapse.mjs @@ -1,9 +1,9 @@ -import { B, d as G, u as $, t as L, N as T, H as _, c as l, K as c, q as g, G as k, X as q, p as C, a as f, Y as d, w as p, n as x, W as H, z as S, m as K, E as N, r as P, g as W, S as X } from "./base-component-LaJIjMhh.mjs"; +import { B, d as G, u as $, t as L, N as T, H as _, c as l, K as c, q as g, G as k, X as q, p as C, a as f, Y as d, w as p, n as x, W as H, z as S, m as K, E as N, r as P, g as W, S as X } from "./base-component--xj9oMJ8.mjs"; import { d as Y } from "./dataBsToggle-B84TS15h.mjs"; import { c as m } from "./collapsingClass-BxKtDBMH.mjs"; import { s as u } from "./showClass-C8hdJfjQ.mjs"; -import { g as E } from "./getTargetElement-D4ALSKV7.mjs"; -import { i as z } from "./isDisabled-DmmaKYeZ.mjs"; +import { g as E } from "./getTargetElement-B-Gw6dom.mjs"; +import { i as z } from "./isDisabled-Dh1obUSx.mjs"; const n = "collapse", D = "Collapse", A = `.${n}`, I = `[${Y}="${n}"]`, j = { parent: null }, h = (a) => q(a, D), y = (a) => new Q(a), v = C(`show.bs.${n}`), F = C(`shown.bs.${n}`), w = C(`hide.bs.${n}`), J = C(`hidden.bs.${n}`), M = (a) => { const { element: e, parent: t, triggers: s } = a; f(e, v), v.defaultPrevented || (l.set(e, d, 17), t && l.set(t, d, 17), c(e, m), g(e, n), p(e, { height: `${e.scrollHeight}px` }), x(e, () => { diff --git a/dist/components/dropdown.cjs b/dist/components/dropdown.cjs index 61f86d0c..361c6789 100644 --- a/dist/components/dropdown.cjs +++ b/dist/components/dropdown.cjs @@ -1,2 +1,2 @@ -"use strict";const t=require("./base-component-4K-5H-MO.js"),et=require("./index-CxumdV5N.js"),f=require("./showClass-D_Ms1FgG.js"),k=require("./dataBsToggle-Dj-Ng54N.js"),C=require("./dropdownClasses-CnEyz_iw.js"),nt=require("./isDisabled-BFPGF6I2.js"),z="Dropdown",U="dropdown-menu",X=o=>{const e=t.Se(o,"A");return o.tagName==="A"&&t.ee(o,"href")&&t.j(o,"href")?.slice(-1)==="#"||e&&t.ee(e,"href")&&t.j(e,"href")?.slice(-1)==="#"},[p,T,q,A]=C.dropdownMenuClasses,ot=`[${k.dataBsToggle}="${p}"]`,h=o=>t.Xn(o,z),st=o=>new Q(o),rt=`${U}-end`,W=[p,T],_=[q,A],F=["A","BUTTON"],it={offset:5,display:"dynamic"},y=t.po(`show.bs.${p}`),L=t.po(`shown.bs.${p}`),S=t.po(`hide.bs.${p}`),N=t.po(`hidden.bs.${p}`),J=t.po(`updated.bs.${p}`),K=o=>{const{element:e,menu:n,parentElement:d,options:r}=o,{offset:s}=r;if(t.f(n,"position")==="static")return;const i=t.Bo(e),c=t.Gn(n,rt);["margin","top","bottom","left","right"].forEach(a=>{const I={};I[a]="",t.vo(n,I)});let l=C.dropdownMenuClasses.find(a=>t.Gn(d,a))||p;const V={dropdown:[s,0,0],dropup:[0,0,s],dropstart:i?[-1,0,0,s]:[-1,s,0],dropend:i?[-1,s,0]:[-1,0,0,s]},g={dropdown:{top:"100%"},dropup:{top:"auto",bottom:"100%"},dropstart:i?{left:"100%",right:"auto"}:{left:"auto",right:"100%"},dropend:i?{left:"auto",right:"100%"}:{left:"100%",right:"auto"},menuStart:i?{right:"0",left:"auto"}:{right:"auto",left:"0"},menuEnd:i?{right:"auto",left:"0"}:{right:"0",left:"auto"}},{offsetWidth:m,offsetHeight:D}=n,{clientWidth:P,clientHeight:G}=t.w(e),{left:w,top:b,width:H,height:Y}=t.y(e),$=w-m-s<0,x=w+m+H+s>=P,Z=b+D+s>=G,j=b+D+Y+s>=G,B=b-D-s<0,E=(!i&&c||i&&!c)&&w+H-m<0,v=(i&&c||!i&&!c)&&w+m>=P;if(_.includes(l)&&$&&x&&(l=p),l===q&&(i?x:$)&&(l=A),l===A&&(i?$:x)&&(l=q),l===T&&B&&!j&&(l=p),l===p&&j&&!B&&(l=T),_.includes(l)&&Z&&t.C(g[l],{top:"auto",bottom:0}),W.includes(l)&&(E||v)){let a={left:"auto",right:"auto"};!E&&v&&!i&&(a={left:"auto",right:0}),E&&!v&&i&&(a={left:0,right:"auto"}),a&&t.C(g[l],a)}const tt=V[l];if(t.vo(n,{...g[l],margin:`${tt.map(a=>a&&`${a}px`).join(" ")}`}),W.includes(l)&&c&&c){const a=!i&&E||i&&v?"menuStart":"menuEnd";t.vo(n,g[a])}t.G(d,J)},dt=o=>Array.from(o.children).map(e=>{if(e&&F.includes(e.tagName))return e;const{firstElementChild:n}=e;return n&&F.includes(n.tagName)?n:null}).filter(e=>e),O=o=>{const{element:e,options:n,menu:d}=o,r=o.open?t.E:t.r,s=t.d(e);r(s,t.gt,R),r(s,t.st,R),r(s,t.lt,lt),r(s,t.ft,at),n.display==="dynamic"&&(o.open?o._observer.observe(d):o._observer.disconnect())},M=o=>{const e=[...C.dropdownMenuClasses,"btn-group","input-group"].map(n=>t.Ro(`${n} ${f.showClass}`,t.d(o))).find(n=>n.length);if(e&&e.length)return[...e[0].children].find(n=>C.dropdownMenuClasses.some(d=>d===t.j(n,k.dataBsToggle)))},R=o=>{const{target:e,type:n}=o;if(!t.b(e))return;const d=M(e),r=d&&h(d);if(!r)return;const{parentElement:s,menu:i}=r,c=s&&s.contains(e)&&(e.tagName==="form"||t.Se(e,"form")!==null);[t.gt,t.vt].includes(n)&&X(e)&&o.preventDefault(),!c&&n!==t.st&&e!==d&&e!==i&&r.hide()};function ct(o){const e=h(this);nt.isDisabled(this)||e&&(o.stopPropagation(),e.toggle(),X(this)&&o.preventDefault())}const lt=o=>{[t.en,t.nn].includes(o.code)&&o.preventDefault()};function at(o){const{code:e}=o,n=M(this);if(!n)return;const d=h(n),{activeElement:r}=t.d(n);if(!d||!r)return;const{menu:s,open:i}=d,c=dt(s);if(c&&c.length&&[t.en,t.nn].includes(e)){let u=c.indexOf(r);r===n?u=0:e===t.nn?u=u>1?u-1:0:e===t.en&&(u=uK(this)),this._toggleEventListeners(!0))}get name(){return z}get defaults(){return it}toggle(){this.open?this.hide():this.show()}show(){const{element:e,open:n,menu:d,parentElement:r}=this;if(n)return;const s=M(e),i=s&&h(s);i&&i.hide(),[y,L,J].forEach(c=>{c.relatedTarget=e}),t.G(r,y),!y.defaultPrevented&&(t.Kn(d,f.showClass),t.Kn(r,f.showClass),t.Wn(e,t.De,"true"),K(this),this.open=!n,t.ro(e),O(this),t.G(r,L))}hide(){const{element:e,open:n,menu:d,parentElement:r}=this;n&&([S,N].forEach(s=>{s.relatedTarget=e}),t.G(r,S),!S.defaultPrevented&&(t.qn(d,f.showClass),t.qn(r,f.showClass),t.Wn(e,t.De,"false"),this.open=!n,O(this),t.G(r,N)))}_toggleEventListeners=e=>{(e?t.E:t.r)(this.element,t.gt,ct)};dispose(){this.open&&this.hide(),this._toggleEventListeners(),super.dispose()}}module.exports=Q; +"use strict";const t=require("./base-component-DMuoZh8G.js"),et=require("./index-DZ0WJZhO.js"),f=require("./showClass-D_Ms1FgG.js"),k=require("./dataBsToggle-Dj-Ng54N.js"),C=require("./dropdownClasses-CnEyz_iw.js"),nt=require("./isDisabled-BhBg0EpT.js"),z="Dropdown",U="dropdown-menu",X=o=>{const e=t.Se(o,"A");return o.tagName==="A"&&t.ee(o,"href")&&t.j(o,"href")?.slice(-1)==="#"||e&&t.ee(e,"href")&&t.j(e,"href")?.slice(-1)==="#"},[p,T,q,A]=C.dropdownMenuClasses,ot=`[${k.dataBsToggle}="${p}"]`,h=o=>t.Xn(o,z),st=o=>new Q(o),rt=`${U}-end`,W=[p,T],_=[q,A],F=["A","BUTTON"],it={offset:5,display:"dynamic"},y=t.po(`show.bs.${p}`),L=t.po(`shown.bs.${p}`),S=t.po(`hide.bs.${p}`),N=t.po(`hidden.bs.${p}`),J=t.po(`updated.bs.${p}`),K=o=>{const{element:e,menu:n,parentElement:d,options:r}=o,{offset:s}=r;if(t.f(n,"position")==="static")return;const i=t.Bo(e),c=t.Gn(n,rt);["margin","top","bottom","left","right"].forEach(a=>{const I={};I[a]="",t.vo(n,I)});let l=C.dropdownMenuClasses.find(a=>t.Gn(d,a))||p;const V={dropdown:[s,0,0],dropup:[0,0,s],dropstart:i?[-1,0,0,s]:[-1,s,0],dropend:i?[-1,s,0]:[-1,0,0,s]},g={dropdown:{top:"100%"},dropup:{top:"auto",bottom:"100%"},dropstart:i?{left:"100%",right:"auto"}:{left:"auto",right:"100%"},dropend:i?{left:"auto",right:"100%"}:{left:"100%",right:"auto"},menuStart:i?{right:"0",left:"auto"}:{right:"auto",left:"0"},menuEnd:i?{right:"auto",left:"0"}:{right:"0",left:"auto"}},{offsetWidth:m,offsetHeight:D}=n,{clientWidth:P,clientHeight:G}=t.w(e),{left:w,top:b,width:H,height:Y}=t.y(e),$=w-m-s<0,x=w+m+H+s>=P,Z=b+D+s>=G,j=b+D+Y+s>=G,B=b-D-s<0,E=(!i&&c||i&&!c)&&w+H-m<0,v=(i&&c||!i&&!c)&&w+m>=P;if(_.includes(l)&&$&&x&&(l=p),l===q&&(i?x:$)&&(l=A),l===A&&(i?$:x)&&(l=q),l===T&&B&&!j&&(l=p),l===p&&j&&!B&&(l=T),_.includes(l)&&Z&&t.C(g[l],{top:"auto",bottom:0}),W.includes(l)&&(E||v)){let a={left:"auto",right:"auto"};!E&&v&&!i&&(a={left:"auto",right:0}),E&&!v&&i&&(a={left:0,right:"auto"}),a&&t.C(g[l],a)}const tt=V[l];if(t.vo(n,{...g[l],margin:`${tt.map(a=>a&&`${a}px`).join(" ")}`}),W.includes(l)&&c&&c){const a=!i&&E||i&&v?"menuStart":"menuEnd";t.vo(n,g[a])}t.G(d,J)},dt=o=>Array.from(o.children).map(e=>{if(e&&F.includes(e.tagName))return e;const{firstElementChild:n}=e;return n&&F.includes(n.tagName)?n:null}).filter(e=>e),O=o=>{const{element:e,options:n,menu:d}=o,r=o.open?t.E:t.r,s=t.d(e);r(s,t.gt,R),r(s,t.st,R),r(s,t.lt,lt),r(s,t.ft,at),n.display==="dynamic"&&(o.open?o._observer.observe(d):o._observer.disconnect())},M=o=>{const e=[...C.dropdownMenuClasses,"btn-group","input-group"].map(n=>t.Ro(`${n} ${f.showClass}`,t.d(o))).find(n=>n.length);if(e&&e.length)return[...e[0].children].find(n=>C.dropdownMenuClasses.some(d=>d===t.j(n,k.dataBsToggle)))},R=o=>{const{target:e,type:n}=o;if(!t.b(e))return;const d=M(e),r=d&&h(d);if(!r)return;const{parentElement:s,menu:i}=r,c=s&&s.contains(e)&&(e.tagName==="form"||t.Se(e,"form")!==null);[t.gt,t.vt].includes(n)&&X(e)&&o.preventDefault(),!c&&n!==t.st&&e!==d&&e!==i&&r.hide()};function ct(o){const e=h(this);nt.isDisabled(this)||e&&(o.stopPropagation(),e.toggle(),X(this)&&o.preventDefault())}const lt=o=>{[t.en,t.nn].includes(o.code)&&o.preventDefault()};function at(o){const{code:e}=o,n=M(this);if(!n)return;const d=h(n),{activeElement:r}=t.d(n);if(!d||!r)return;const{menu:s,open:i}=d,c=dt(s);if(c&&c.length&&[t.en,t.nn].includes(e)){let u=c.indexOf(r);r===n?u=0:e===t.nn?u=u>1?u-1:0:e===t.en&&(u=uK(this)),this._toggleEventListeners(!0))}get name(){return z}get defaults(){return it}toggle(){this.open?this.hide():this.show()}show(){const{element:e,open:n,menu:d,parentElement:r}=this;if(n)return;const s=M(e),i=s&&h(s);i&&i.hide(),[y,L,J].forEach(c=>{c.relatedTarget=e}),t.G(r,y),!y.defaultPrevented&&(t.Kn(d,f.showClass),t.Kn(r,f.showClass),t.Wn(e,t.De,"true"),K(this),this.open=!n,t.ro(e),O(this),t.G(r,L))}hide(){const{element:e,open:n,menu:d,parentElement:r}=this;n&&([S,N].forEach(s=>{s.relatedTarget=e}),t.G(r,S),!S.defaultPrevented&&(t.qn(d,f.showClass),t.qn(r,f.showClass),t.Wn(e,t.De,"false"),this.open=!n,O(this),t.G(r,N)))}_toggleEventListeners=e=>{(e?t.E:t.r)(this.element,t.gt,ct)};dispose(){this.open&&this.hide(),this._toggleEventListeners(),super.dispose()}}module.exports=Q; //# sourceMappingURL=dropdown.cjs.map diff --git a/dist/components/dropdown.mjs b/dist/components/dropdown.mjs index d12d36c5..203f8584 100644 --- a/dist/components/dropdown.mjs +++ b/dist/components/dropdown.mjs @@ -1,9 +1,9 @@ -import { S as it, A as q, k as T, B as bt, R as at, a as u, K as z, W as U, F as H, q as X, X as Dt, p as m, J as Ct, b as $t, G as J, w as A, L as yt, M as xt, C as Q, E as dt, r as ct, d as W, z as V, g as j, P as lt, l as At, Q as St, t as Pt, U as Tt, V as _, Z as F, _ as Ht } from "./base-component-LaJIjMhh.mjs"; -import { v as _t } from "./index-DXF8ibvt.mjs"; +import { S as it, A as q, k as T, B as bt, R as at, a as u, K as z, W as U, F as H, q as X, X as Dt, p as m, J as Ct, b as $t, G as J, w as A, L as yt, M as xt, C as Q, E as dt, r as ct, d as W, z as V, g as j, P as lt, l as At, Q as St, t as Pt, U as Tt, V as _, Z as F, _ as Ht } from "./base-component--xj9oMJ8.mjs"; +import { v as _t } from "./index-ClQArkrm.mjs"; import { s as f } from "./showClass-C8hdJfjQ.mjs"; import { d as pt } from "./dataBsToggle-B84TS15h.mjs"; import { d as D } from "./dropdownClasses-CdCdZ-PX.mjs"; -import { i as Ft } from "./isDisabled-DmmaKYeZ.mjs"; +import { i as Ft } from "./isDisabled-Dh1obUSx.mjs"; const ut = "Dropdown", ft = "dropdown-menu", ht = (n) => { const t = it(n, "A"); return n.tagName === "A" && q(n, "href") && T(n, "href")?.slice(-1) === "#" || t && q(t, "href") && T(t, "href")?.slice(-1) === "#"; diff --git a/dist/components/getTargetElement-D4ALSKV7.mjs b/dist/components/getTargetElement-B-Gw6dom.mjs similarity index 83% rename from dist/components/getTargetElement-D4ALSKV7.mjs rename to dist/components/getTargetElement-B-Gw6dom.mjs index 8081438b..8e065cb2 100644 --- a/dist/components/getTargetElement-D4ALSKV7.mjs +++ b/dist/components/getTargetElement-B-Gw6dom.mjs @@ -1,4 +1,4 @@ -import { d as e, k as c, S as d, H as g } from "./base-component-LaJIjMhh.mjs"; +import { d as e, k as c, S as d, H as g } from "./base-component--xj9oMJ8.mjs"; const i = "data-bs-target", s = "data-bs-parent", u = "data-bs-container", p = (a) => { const n = [i, s, u, "href"], o = e(a); return n.map((t) => { @@ -10,4 +10,4 @@ export { i as d, p as g }; -//# sourceMappingURL=getTargetElement-D4ALSKV7.mjs.map +//# sourceMappingURL=getTargetElement-B-Gw6dom.mjs.map diff --git a/dist/components/getTargetElement-D4ALSKV7.mjs.map b/dist/components/getTargetElement-B-Gw6dom.mjs.map similarity index 97% rename from dist/components/getTargetElement-D4ALSKV7.mjs.map rename to dist/components/getTargetElement-B-Gw6dom.mjs.map index 8749854e..b76e3389 100644 --- a/dist/components/getTargetElement-D4ALSKV7.mjs.map +++ b/dist/components/getTargetElement-B-Gw6dom.mjs.map @@ -1 +1 @@ -{"version":3,"file":"getTargetElement-D4ALSKV7.mjs","sources":["../../src/strings/dataBsTarget.ts","../../src/strings/dataBsParent.ts","../../src/strings/dataBsContainer.ts","../../src/util/getTargetElement.ts"],"sourcesContent":["/**\n * Global namespace for most components `target` option.\n */\nconst dataBsTarget = \"data-bs-target\";\nexport default dataBsTarget;\n","/**\n * Global namespace for most components `parent` option.\n */\nconst dataBsParent = \"data-bs-parent\";\nexport default dataBsParent;\n","/**\n * Global namespace for most components `container` option.\n */\nconst dataBsContainer = \"data-bs-container\";\nexport default dataBsContainer;\n","import {\n closest,\n getAttribute,\n getDocument,\n querySelector,\n} from \"@thednp/shorty\";\n\nimport dataBsTarget from \"../strings/dataBsTarget\";\nimport dataBsParent from \"../strings/dataBsParent\";\nimport dataBsContainer from \"../strings/dataBsContainer\";\n\n/**\n * Returns the `Element` that THIS one targets\n * via `data-bs-target`, `href`, `data-bs-parent` or `data-bs-container`.\n *\n * @param element the target element\n * @returns the query result\n */\nconst getTargetElement = (element: T) => {\n const targetAttr = [dataBsTarget, dataBsParent, dataBsContainer, \"href\"];\n const doc = getDocument(element);\n\n return targetAttr\n .map((att) => {\n const attValue = getAttribute(element, att);\n if (attValue) {\n return att === dataBsParent\n ? closest(element, attValue)\n : querySelector(attValue, doc);\n }\n return null;\n })\n .filter((x) => x)[0];\n};\n\nexport default getTargetElement;\n"],"names":["dataBsTarget","dataBsParent","dataBsContainer","getTargetElement","element","targetAttr","doc","getDocument","att","attValue","getAttribute","closest","querySelector","x"],"mappings":";AACA,MAAMA,IAAe,kBCAfC,IAAe,kBCAfC,IAAkB,qBCWlBC,IAAmB,CAAkCC,MAAe;AACxE,QAAMC,IAAa,CAACL,GAAcC,GAAcC,GAAiB,MAAM,GACjEI,IAAMC,EAAYH,CAAO;AAExB,SAAAC,EACJ,IAAI,CAACG,MAAQ;AACN,UAAAC,IAAWC,EAAaN,GAASI,CAAG;AAC1C,WAAIC,IACKD,MAAQP,IACXU,EAAWP,GAASK,CAAQ,IAC5BG,EAAiBH,GAAUH,CAAG,IAE7B;AAAA,EACR,CAAA,EACA,OAAO,CAACO,MAAMA,CAAC,EAAE,CAAC;AACvB;"} \ No newline at end of file +{"version":3,"file":"getTargetElement-B-Gw6dom.mjs","sources":["../../src/strings/dataBsTarget.ts","../../src/strings/dataBsParent.ts","../../src/strings/dataBsContainer.ts","../../src/util/getTargetElement.ts"],"sourcesContent":["/**\n * Global namespace for most components `target` option.\n */\nconst dataBsTarget = \"data-bs-target\";\nexport default dataBsTarget;\n","/**\n * Global namespace for most components `parent` option.\n */\nconst dataBsParent = \"data-bs-parent\";\nexport default dataBsParent;\n","/**\n * Global namespace for most components `container` option.\n */\nconst dataBsContainer = \"data-bs-container\";\nexport default dataBsContainer;\n","import {\n closest,\n getAttribute,\n getDocument,\n querySelector,\n} from \"@thednp/shorty\";\n\nimport dataBsTarget from \"../strings/dataBsTarget\";\nimport dataBsParent from \"../strings/dataBsParent\";\nimport dataBsContainer from \"../strings/dataBsContainer\";\n\n/**\n * Returns the `Element` that THIS one targets\n * via `data-bs-target`, `href`, `data-bs-parent` or `data-bs-container`.\n *\n * @param element the target element\n * @returns the query result\n */\nconst getTargetElement = (element: T) => {\n const targetAttr = [dataBsTarget, dataBsParent, dataBsContainer, \"href\"];\n const doc = getDocument(element);\n\n return targetAttr\n .map((att) => {\n const attValue = getAttribute(element, att);\n if (attValue) {\n return att === dataBsParent\n ? closest(element, attValue)\n : querySelector(attValue, doc);\n }\n return null;\n })\n .filter((x) => x)[0];\n};\n\nexport default getTargetElement;\n"],"names":["dataBsTarget","dataBsParent","dataBsContainer","getTargetElement","element","targetAttr","doc","getDocument","att","attValue","getAttribute","closest","querySelector","x"],"mappings":";AACA,MAAMA,IAAe,kBCAfC,IAAe,kBCAfC,IAAkB,qBCWlBC,IAAmB,CAAkCC,MAAe;AACxE,QAAMC,IAAa,CAACL,GAAcC,GAAcC,GAAiB,MAAM,GACjEI,IAAMC,EAAYH,CAAO;AAExB,SAAAC,EACJ,IAAI,CAACG,MAAQ;AACN,UAAAC,IAAWC,EAAaN,GAASI,CAAG;AAC1C,WAAIC,IACKD,MAAQP,IACXU,EAAWP,GAASK,CAAQ,IAC5BG,EAAiBH,GAAUH,CAAG,IAE7B;AAAA,EACR,CAAA,EACA,OAAO,CAACO,MAAMA,CAAC,EAAE,CAAC;AACvB;"} \ No newline at end of file diff --git a/dist/components/getTargetElement-gM3rpCRn.js b/dist/components/getTargetElement-DananmHP.js similarity index 66% rename from dist/components/getTargetElement-gM3rpCRn.js rename to dist/components/getTargetElement-DananmHP.js index 51d8f1a2..f85abc72 100644 --- a/dist/components/getTargetElement-gM3rpCRn.js +++ b/dist/components/getTargetElement-DananmHP.js @@ -1,2 +1,2 @@ -"use strict";const a=require("./base-component-4K-5H-MO.js"),s="data-bs-target",n="data-bs-parent",d="data-bs-container",g=e=>{const o=[s,n,d,"href"],c=a.d(e);return o.map(t=>{const r=a.j(e,t);return r?t===n?a.Se(e,r):a.Ho(r,c):null}).filter(t=>t)[0]};exports.dataBsTarget=s;exports.getTargetElement=g; -//# sourceMappingURL=getTargetElement-gM3rpCRn.js.map +"use strict";const a=require("./base-component-DMuoZh8G.js"),s="data-bs-target",n="data-bs-parent",d="data-bs-container",g=e=>{const o=[s,n,d,"href"],c=a.d(e);return o.map(t=>{const r=a.j(e,t);return r?t===n?a.Se(e,r):a.Ho(r,c):null}).filter(t=>t)[0]};exports.dataBsTarget=s;exports.getTargetElement=g; +//# sourceMappingURL=getTargetElement-DananmHP.js.map diff --git a/dist/components/getTargetElement-gM3rpCRn.js.map b/dist/components/getTargetElement-DananmHP.js.map similarity index 97% rename from dist/components/getTargetElement-gM3rpCRn.js.map rename to dist/components/getTargetElement-DananmHP.js.map index bfeb8c4f..8591d0bb 100644 --- a/dist/components/getTargetElement-gM3rpCRn.js.map +++ b/dist/components/getTargetElement-DananmHP.js.map @@ -1 +1 @@ -{"version":3,"file":"getTargetElement-gM3rpCRn.js","sources":["../../src/strings/dataBsTarget.ts","../../src/strings/dataBsParent.ts","../../src/strings/dataBsContainer.ts","../../src/util/getTargetElement.ts"],"sourcesContent":["/**\n * Global namespace for most components `target` option.\n */\nconst dataBsTarget = \"data-bs-target\";\nexport default dataBsTarget;\n","/**\n * Global namespace for most components `parent` option.\n */\nconst dataBsParent = \"data-bs-parent\";\nexport default dataBsParent;\n","/**\n * Global namespace for most components `container` option.\n */\nconst dataBsContainer = \"data-bs-container\";\nexport default dataBsContainer;\n","import {\n closest,\n getAttribute,\n getDocument,\n querySelector,\n} from \"@thednp/shorty\";\n\nimport dataBsTarget from \"../strings/dataBsTarget\";\nimport dataBsParent from \"../strings/dataBsParent\";\nimport dataBsContainer from \"../strings/dataBsContainer\";\n\n/**\n * Returns the `Element` that THIS one targets\n * via `data-bs-target`, `href`, `data-bs-parent` or `data-bs-container`.\n *\n * @param element the target element\n * @returns the query result\n */\nconst getTargetElement = (element: T) => {\n const targetAttr = [dataBsTarget, dataBsParent, dataBsContainer, \"href\"];\n const doc = getDocument(element);\n\n return targetAttr\n .map((att) => {\n const attValue = getAttribute(element, att);\n if (attValue) {\n return att === dataBsParent\n ? closest(element, attValue)\n : querySelector(attValue, doc);\n }\n return null;\n })\n .filter((x) => x)[0];\n};\n\nexport default getTargetElement;\n"],"names":["dataBsTarget","dataBsParent","dataBsContainer","getTargetElement","element","targetAttr","doc","getDocument","att","attValue","getAttribute","closest","querySelector","x"],"mappings":"6DACMA,EAAe,iBCAfC,EAAe,iBCAfC,EAAkB,oBCWlBC,EAAqDC,GAAe,CACxE,MAAMC,EAAa,CAACL,EAAcC,EAAcC,EAAiB,MAAM,EACjEI,EAAMC,IAAYH,CAAO,EAExB,OAAAC,EACJ,IAAKG,GAAQ,CACN,MAAAC,EAAWC,EAAAA,EAAaN,EAASI,CAAG,EAC1C,OAAIC,EACKD,IAAQP,EACXU,KAAWP,EAASK,CAAQ,EAC5BG,EAAAA,GAAiBH,EAAUH,CAAG,EAE7B,IACR,CAAA,EACA,OAAQO,GAAMA,CAAC,EAAE,CAAC,CACvB"} \ No newline at end of file +{"version":3,"file":"getTargetElement-DananmHP.js","sources":["../../src/strings/dataBsTarget.ts","../../src/strings/dataBsParent.ts","../../src/strings/dataBsContainer.ts","../../src/util/getTargetElement.ts"],"sourcesContent":["/**\n * Global namespace for most components `target` option.\n */\nconst dataBsTarget = \"data-bs-target\";\nexport default dataBsTarget;\n","/**\n * Global namespace for most components `parent` option.\n */\nconst dataBsParent = \"data-bs-parent\";\nexport default dataBsParent;\n","/**\n * Global namespace for most components `container` option.\n */\nconst dataBsContainer = \"data-bs-container\";\nexport default dataBsContainer;\n","import {\n closest,\n getAttribute,\n getDocument,\n querySelector,\n} from \"@thednp/shorty\";\n\nimport dataBsTarget from \"../strings/dataBsTarget\";\nimport dataBsParent from \"../strings/dataBsParent\";\nimport dataBsContainer from \"../strings/dataBsContainer\";\n\n/**\n * Returns the `Element` that THIS one targets\n * via `data-bs-target`, `href`, `data-bs-parent` or `data-bs-container`.\n *\n * @param element the target element\n * @returns the query result\n */\nconst getTargetElement = (element: T) => {\n const targetAttr = [dataBsTarget, dataBsParent, dataBsContainer, \"href\"];\n const doc = getDocument(element);\n\n return targetAttr\n .map((att) => {\n const attValue = getAttribute(element, att);\n if (attValue) {\n return att === dataBsParent\n ? closest(element, attValue)\n : querySelector(attValue, doc);\n }\n return null;\n })\n .filter((x) => x)[0];\n};\n\nexport default getTargetElement;\n"],"names":["dataBsTarget","dataBsParent","dataBsContainer","getTargetElement","element","targetAttr","doc","getDocument","att","attValue","getAttribute","closest","querySelector","x"],"mappings":"6DACMA,EAAe,iBCAfC,EAAe,iBCAfC,EAAkB,oBCWlBC,EAAqDC,GAAe,CACxE,MAAMC,EAAa,CAACL,EAAcC,EAAcC,EAAiB,MAAM,EACjEI,EAAMC,IAAYH,CAAO,EAExB,OAAAC,EACJ,IAAKG,GAAQ,CACN,MAAAC,EAAWC,EAAAA,EAAaN,EAASI,CAAG,EAC1C,OAAIC,EACKD,IAAQP,EACXU,KAAWP,EAASK,CAAQ,EAC5BG,EAAAA,GAAiBH,EAAUH,CAAG,EAE7B,IACR,CAAA,EACA,OAAQO,GAAMA,CAAC,EAAE,CAAC,CACvB"} \ No newline at end of file diff --git a/dist/components/index-DXF8ibvt.mjs b/dist/components/index-ClQArkrm.mjs similarity index 96% rename from dist/components/index-DXF8ibvt.mjs rename to dist/components/index-ClQArkrm.mjs index 958739ca..e703f8ee 100644 --- a/dist/components/index-DXF8ibvt.mjs +++ b/dist/components/index-ClQArkrm.mjs @@ -1,6 +1,6 @@ const f = (e) => e != null && typeof e == "object" || !1, k = (e) => f(e) && typeof e.nodeType == "number" && [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11].some( (t) => e.nodeType === t -) || !1, h = (e) => k(e) && e.nodeType === 1 || !1, w = (e) => typeof e == "function" || !1, g = "1.0.2", a = "PositionObserver Error"; +) || !1, h = (e) => k(e) && e.nodeType === 1 || !1, w = (e) => typeof e == "function" || !1, g = "1.0.4", a = "PositionObserver Error"; class p { entries; static version = g; @@ -100,4 +100,4 @@ class p { export { p as v }; -//# sourceMappingURL=index-DXF8ibvt.mjs.map +//# sourceMappingURL=index-ClQArkrm.mjs.map diff --git a/dist/components/index-DXF8ibvt.mjs.map b/dist/components/index-ClQArkrm.mjs.map similarity index 96% rename from dist/components/index-DXF8ibvt.mjs.map rename to dist/components/index-ClQArkrm.mjs.map index a579dab3..83da5672 100644 --- a/dist/components/index-DXF8ibvt.mjs.map +++ b/dist/components/index-ClQArkrm.mjs.map @@ -1 +1 @@ -{"version":3,"file":"index-DXF8ibvt.mjs","sources":["../../node_modules/.pnpm/@thednp+position-observer@1.0.2/node_modules/@thednp/position-observer/dist/index.mjs"],"sourcesContent":["const m = (e) => e != null && typeof e == \"object\" || !1, p = (e) => m(e) && typeof e.nodeType == \"number\" && [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11].some(\n (t) => e.nodeType === t\n) || !1, h = (e) => p(e) && e.nodeType === 1 || !1, w = (e) => typeof e == \"function\" || !1, k = \"1.0.2\", a = \"PositionObserver Error\";\nclass v {\n entries;\n static version = k;\n _tick;\n _root;\n _callback;\n /**\n * The constructor takes two arguments, a `callback`, which is called\n * whenever the position of an observed element changes and an `options` object.\n * The callback function should take an array of `PositionObserverEntry` objects\n * as its only argument, but it's not required.\n *\n * @param callback the callback that applies to all targets of this observer\n * @param options the options of this observer\n */\n constructor(t, i) {\n if (!w(t))\n throw new Error(`${a}: ${t} is not a function.`);\n this.entries = /* @__PURE__ */ new Map(), this._callback = t, this._root = h(i?.root) ? i.root : document?.documentElement, this._tick = 0;\n }\n /**\n * Start observing the position of the specified element.\n * If the element is not currently attached to the DOM,\n * it will NOT be added to the entries.\n *\n * @param target an `Element` target\n */\n observe = (t) => {\n if (!h(t))\n throw new Error(\n `${a}: ${t} is not an instance of Element.`\n );\n this._root.contains(t) && this._new(t).then((i) => {\n i && !this.getEntry(t) && this.entries.set(t, i), this._tick || (this._tick = requestAnimationFrame(this._runCallback));\n });\n };\n /**\n * Stop observing the position of the specified element.\n *\n * @param target an `HTMLElement` target\n */\n unobserve = (t) => {\n this.entries.has(t) && this.entries.delete(t);\n };\n /**\n * Private method responsible for all the heavy duty,\n * the observer's runtime.\n */\n _runCallback = () => {\n if (!this.entries.size) return;\n const t = new Promise((i) => {\n const r = [];\n this.entries.forEach(\n ({ target: s, boundingClientRect: n }) => {\n this._root.contains(s) && this._new(s).then(({ boundingClientRect: o, isIntersecting: u }) => {\n if (!u) return;\n const { left: f, top: _, bottom: l, right: b } = o;\n if (n.top !== _ || n.left !== f || n.right !== b || n.bottom !== l) {\n const c = { target: s, boundingClientRect: o };\n this.entries.set(s, c), r.push(c);\n }\n });\n }\n ), i(r);\n });\n this._tick = requestAnimationFrame(async () => {\n const i = await t;\n i.length && this._callback(i, this), this._runCallback();\n });\n };\n /**\n * Calculate the target bounding box and determine\n * the value of `isVisible`.\n *\n * @param target an `Element` target\n */\n _new = (t) => new Promise((i) => {\n new IntersectionObserver(\n ([s], n) => {\n n.disconnect(), i(s);\n }\n ).observe(t);\n });\n /**\n * Find the entry for a given target.\n *\n * @param target an `HTMLElement` target\n */\n getEntry = (t) => this.entries.get(t);\n /**\n * Immediately stop observing all elements.\n */\n disconnect = () => {\n cancelAnimationFrame(this._tick), this.entries.clear(), this._tick = 0;\n };\n}\nexport {\n v as default\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["m","p","k","v","i","r","s","n","o","u","f","_","l","b"],"mappings":"AAAA,MAAMA,IAAI,CAAC,MAAM,KAAK,QAAQ,OAAO,KAAK,YAAY,IAAIC,IAAI,CAAC,MAAMD,EAAE,CAAC,KAAK,OAAO,EAAE,YAAY,YAAY,CAAC,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG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K,KAAK,GAAG,KAAK,QAAQ,MAAO,GAAE,KAAK,QAAQ;AAAA,EACtE;AACH;","x_google_ignoreList":[0]} \ No newline at end of file +{"version":3,"file":"index-ClQArkrm.mjs","sources":["../../node_modules/.pnpm/@thednp+position-observer@1.0.4/node_modules/@thednp/position-observer/dist/index.mjs"],"sourcesContent":["const m = (e) => e != null && typeof e == \"object\" || !1, p = (e) => m(e) && typeof e.nodeType == \"number\" && [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11].some(\n (t) => e.nodeType === t\n) || !1, h = (e) => p(e) && e.nodeType === 1 || !1, w = (e) => typeof e == \"function\" || !1, k = \"1.0.4\", a = \"PositionObserver Error\";\nclass v {\n entries;\n static version = k;\n _tick;\n _root;\n _callback;\n /**\n * The constructor takes two arguments, a `callback`, which is called\n * whenever the position of an observed element changes and an `options` object.\n * The callback function should take an array of `PositionObserverEntry` objects\n * as its only argument, but it's not required.\n *\n * @param callback the callback that applies to all targets of this observer\n * @param options the options of this observer\n */\n constructor(t, i) {\n if (!w(t))\n throw new Error(`${a}: ${t} is not a function.`);\n this.entries = /* @__PURE__ */ new Map(), this._callback = t, this._root = h(i?.root) ? i.root : document?.documentElement, this._tick = 0;\n }\n /**\n * Start observing the position of the specified element.\n * If the element is not currently attached to the DOM,\n * it will NOT be added to the entries.\n *\n * @param target an `Element` target\n */\n observe = (t) => {\n if (!h(t))\n throw new Error(\n `${a}: ${t} is not an instance of Element.`\n );\n this._root.contains(t) && this._new(t).then((i) => {\n i && !this.getEntry(t) && this.entries.set(t, i), this._tick || (this._tick = requestAnimationFrame(this._runCallback));\n });\n };\n /**\n * Stop observing the position of the specified element.\n *\n * @param target an `HTMLElement` target\n */\n unobserve = (t) => {\n this.entries.has(t) && this.entries.delete(t);\n };\n /**\n * Private method responsible for all the heavy duty,\n * the observer's runtime.\n */\n _runCallback = () => {\n if (!this.entries.size) return;\n const t = new Promise((i) => {\n const r = [];\n this.entries.forEach(\n ({ target: s, boundingClientRect: n }) => {\n this._root.contains(s) && this._new(s).then(({ boundingClientRect: o, isIntersecting: u }) => {\n if (!u) return;\n const { left: f, top: _, bottom: l, right: b } = o;\n if (n.top !== _ || n.left !== f || n.right !== b || n.bottom !== l) {\n const c = { target: s, boundingClientRect: o };\n this.entries.set(s, c), r.push(c);\n }\n });\n }\n ), i(r);\n });\n this._tick = requestAnimationFrame(async () => {\n const i = await t;\n i.length && this._callback(i, this), this._runCallback();\n });\n };\n /**\n * Calculate the target bounding box and determine\n * the value of `isVisible`.\n *\n * @param target an `Element` target\n */\n _new = (t) => new Promise((i) => {\n new IntersectionObserver(\n ([s], n) => {\n n.disconnect(), i(s);\n }\n ).observe(t);\n });\n /**\n * Find the entry for a given target.\n *\n * @param target an `HTMLElement` target\n */\n getEntry = (t) => this.entries.get(t);\n /**\n * Immediately stop observing all elements.\n */\n disconnect = () => {\n cancelAnimationFrame(this._tick), this.entries.clear(), this._tick = 0;\n };\n}\nexport {\n v as default\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["m","p","k","v","i","r","s","n","o","u","f","_","l","b"],"mappings":"AAAA,MAAMA,IAAI,CAAC,MAAM,KAAK,QAAQ,OAAO,KAAK,YAAY,IAAIC,IAAI,CAAC,MAAMD,EAAE,CAAC,KAAK,OAAO,EAAE,YAAY,YAAY,CAAC,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,IAAI,EAAE,EAAE;AAAA,EAChJ,CAAC,MAAM,EAAE,aAAa;AACxB,KAAK,IAAI,IAAI,CAAC,MAAMC,EAAE,CAAC,KAAK,EAAE,aAAa,KAAK,IAAI,IAAI,CAAC,MAAM,OAAO,KAAK,cAAc,IAAIC,IAAI,SAAS,IAAI;AAC9G,MAAMC,EAAE;AAAA,EACN;AAAA,EACA,OAAO,UAAUD;AAAA,EACjB;AAAA,EACA;AAAA,EACA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAUA,YAAY,GAAGE,GAAG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jD,gBAAID,EAAE,QAAQI,KAAKJ,EAAE,SAASG,KAAKH,EAAE,UAAUM,KAAKN,EAAE,WAAWK,GAAG;AAClE,oBAAM,IAAI,EAAE,QAAQN,GAAG,oBAAoBE,EAAG;AAC9C,mBAAK,QAAQ,IAAIF,GAAG,CAAC,GAAGD,EAAE,KAAK,CAAC;AAAA,YAC9C;AAAA,UACA,CAAW;AAAA,QACX;AAAA,MACA,GAASD,EAAEC,CAAC;AAAA,IACZ,CAAK;AACD,SAAK,QAAQ,sBAAsB,YAAY;AAC7C,YAAMD,IAAI,MAAM;AAChB,MAAAA,EAAE,UAAU,KAAK,UAAUA,GAAG,IAAI,GAAG,KAAK,aAAc;AAAA,IAC9D,CAAK;AAAA,EACF;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAOD,OAAO,CAAC,MAAM,IAAI,QAAQ,CAACA,MAAM;AAC/B,QAAI;AAAA,MACF,CAAC,CAAC,CAAC,GAAGG,MAAM;AACV,QAAAA,EAAE,WAAU,GAAIH,EAAE,CAAC;AAAA,MAC3B;AAAA,IACA,EAAM,QAAQ,CAAC;AAAA,EACf,CAAG;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAMD,WAAW,CAAC,MAAM,KAAK,QAAQ,IAAI,CAAC;AAAA;AAAA;AAAA;AAAA,EAIpC,aAAa,MAAM;AACjB,yBAAqB,KAAK,KAAK,GAAG,KAAK,QAAQ,MAAO,GAAE,KAAK,QAAQ;AAAA,EACtE;AACH;","x_google_ignoreList":[0]} \ No newline at end of file diff --git a/dist/components/index-CxumdV5N.js b/dist/components/index-DZ0WJZhO.js similarity index 93% rename from dist/components/index-CxumdV5N.js rename to dist/components/index-DZ0WJZhO.js index 2de083dc..d608ed0a 100644 --- a/dist/components/index-CxumdV5N.js +++ b/dist/components/index-DZ0WJZhO.js @@ -1,2 +1,2 @@ -"use strict";const f=e=>e!=null&&typeof e=="object"||!1,k=e=>f(e)&&typeof e.nodeType=="number"&&[1,2,3,4,5,6,7,8,9,10,11].some(t=>e.nodeType===t)||!1,h=e=>k(e)&&e.nodeType===1||!1,w=e=>typeof e=="function"||!1,g="1.0.2",a="PositionObserver Error";class d{entries;static version=g;_tick;_root;_callback;constructor(t,n){if(!w(t))throw new Error(`${a}: ${t} is not a function.`);this.entries=new Map,this._callback=t,this._root=h(n?.root)?n.root:document?.documentElement,this._tick=0}observe=t=>{if(!h(t))throw new Error(`${a}: ${t} is not an instance of Element.`);this._root.contains(t)&&this._new(t).then(n=>{n&&!this.getEntry(t)&&this.entries.set(t,n),this._tick||(this._tick=requestAnimationFrame(this._runCallback))})};unobserve=t=>{this.entries.has(t)&&this.entries.delete(t)};_runCallback=()=>{if(!this.entries.size)return;const t=new Promise(n=>{const s=[];this.entries.forEach(({target:i,boundingClientRect:o})=>{this._root.contains(i)&&this._new(i).then(({boundingClientRect:r,isIntersecting:l})=>{if(!l)return;const{left:_,top:u,bottom:b,right:m}=r;if(o.top!==u||o.left!==_||o.right!==m||o.bottom!==b){const c={target:i,boundingClientRect:r};this.entries.set(i,c),s.push(c)}})}),n(s)});this._tick=requestAnimationFrame(async()=>{const n=await t;n.length&&this._callback(n,this),this._runCallback()})};_new=t=>new Promise(n=>{new IntersectionObserver(([s],i)=>{i.disconnect(),n(s)}).observe(t)});getEntry=t=>this.entries.get(t);disconnect=()=>{cancelAnimationFrame(this._tick),this.entries.clear(),this._tick=0}}exports.v=d; -//# sourceMappingURL=index-CxumdV5N.js.map +"use strict";const f=e=>e!=null&&typeof e=="object"||!1,k=e=>f(e)&&typeof e.nodeType=="number"&&[1,2,3,4,5,6,7,8,9,10,11].some(t=>e.nodeType===t)||!1,h=e=>k(e)&&e.nodeType===1||!1,w=e=>typeof e=="function"||!1,g="1.0.4",a="PositionObserver Error";class d{entries;static version=g;_tick;_root;_callback;constructor(t,n){if(!w(t))throw new Error(`${a}: ${t} is not a function.`);this.entries=new Map,this._callback=t,this._root=h(n?.root)?n.root:document?.documentElement,this._tick=0}observe=t=>{if(!h(t))throw new Error(`${a}: ${t} is not an instance of Element.`);this._root.contains(t)&&this._new(t).then(n=>{n&&!this.getEntry(t)&&this.entries.set(t,n),this._tick||(this._tick=requestAnimationFrame(this._runCallback))})};unobserve=t=>{this.entries.has(t)&&this.entries.delete(t)};_runCallback=()=>{if(!this.entries.size)return;const t=new Promise(n=>{const s=[];this.entries.forEach(({target:i,boundingClientRect:o})=>{this._root.contains(i)&&this._new(i).then(({boundingClientRect:r,isIntersecting:l})=>{if(!l)return;const{left:_,top:u,bottom:b,right:m}=r;if(o.top!==u||o.left!==_||o.right!==m||o.bottom!==b){const c={target:i,boundingClientRect:r};this.entries.set(i,c),s.push(c)}})}),n(s)});this._tick=requestAnimationFrame(async()=>{const n=await t;n.length&&this._callback(n,this),this._runCallback()})};_new=t=>new Promise(n=>{new IntersectionObserver(([s],i)=>{i.disconnect(),n(s)}).observe(t)});getEntry=t=>this.entries.get(t);disconnect=()=>{cancelAnimationFrame(this._tick),this.entries.clear(),this._tick=0}}exports.v=d; +//# sourceMappingURL=index-DZ0WJZhO.js.map diff --git a/dist/components/index-CxumdV5N.js.map b/dist/components/index-DZ0WJZhO.js.map similarity index 96% rename from dist/components/index-CxumdV5N.js.map rename to dist/components/index-DZ0WJZhO.js.map index 46696553..16606f5c 100644 --- a/dist/components/index-CxumdV5N.js.map +++ b/dist/components/index-DZ0WJZhO.js.map @@ -1 +1 @@ -{"version":3,"file":"index-CxumdV5N.js","sources":["../../node_modules/.pnpm/@thednp+position-observer@1.0.2/node_modules/@thednp/position-observer/dist/index.mjs"],"sourcesContent":["const m = (e) => e != null && typeof e == \"object\" || !1, p = (e) => m(e) && typeof e.nodeType == \"number\" && [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11].some(\n (t) => e.nodeType === t\n) || !1, h = (e) => p(e) && e.nodeType === 1 || !1, w = (e) => typeof e == \"function\" || !1, k = \"1.0.2\", a = \"PositionObserver Error\";\nclass v {\n entries;\n static version = k;\n _tick;\n _root;\n _callback;\n /**\n * The constructor takes two arguments, a `callback`, which is called\n * whenever the position of an observed element changes and an `options` object.\n * The callback function should take an array of `PositionObserverEntry` objects\n * as its only argument, but it's not required.\n *\n * @param callback the callback that applies to all targets of this observer\n * @param options the options of this observer\n */\n constructor(t, i) {\n if (!w(t))\n throw new Error(`${a}: ${t} is not a function.`);\n this.entries = /* @__PURE__ */ new Map(), this._callback = t, this._root = h(i?.root) ? i.root : document?.documentElement, this._tick = 0;\n }\n /**\n * Start observing the position of the specified element.\n * If the element is not currently attached to the DOM,\n * it will NOT be added to the entries.\n *\n * @param target an `Element` target\n */\n observe = (t) => {\n if (!h(t))\n throw new Error(\n `${a}: ${t} is not an instance of Element.`\n );\n this._root.contains(t) && this._new(t).then((i) => {\n i && !this.getEntry(t) && this.entries.set(t, i), this._tick || (this._tick = requestAnimationFrame(this._runCallback));\n });\n };\n /**\n * Stop observing the position of the specified element.\n *\n * @param target an `HTMLElement` target\n */\n unobserve = (t) => {\n this.entries.has(t) && this.entries.delete(t);\n };\n /**\n * Private method responsible for all the heavy duty,\n * the observer's runtime.\n */\n _runCallback = () => {\n if (!this.entries.size) return;\n const t = new Promise((i) => {\n const r = [];\n this.entries.forEach(\n ({ target: s, boundingClientRect: n }) => {\n this._root.contains(s) && this._new(s).then(({ boundingClientRect: o, isIntersecting: u }) => {\n if (!u) return;\n const { left: f, top: _, bottom: l, right: b } = o;\n if (n.top !== _ || n.left !== f || n.right !== b || n.bottom !== l) {\n const c = { target: s, boundingClientRect: o };\n this.entries.set(s, c), r.push(c);\n }\n });\n }\n ), i(r);\n });\n this._tick = requestAnimationFrame(async () => {\n const i = await t;\n i.length && this._callback(i, this), this._runCallback();\n });\n };\n /**\n * Calculate the target bounding box and determine\n * the value of `isVisible`.\n *\n * @param target an `Element` target\n */\n _new = (t) => new Promise((i) => {\n new IntersectionObserver(\n ([s], n) => {\n n.disconnect(), i(s);\n }\n ).observe(t);\n });\n /**\n * Find the entry for a given target.\n *\n * @param target an `HTMLElement` target\n */\n getEntry = (t) => this.entries.get(t);\n /**\n * Immediately stop observing all elements.\n */\n disconnect = () => {\n cancelAnimationFrame(this._tick), this.entries.clear(), this._tick = 0;\n };\n}\nexport {\n v as default\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["m","p","k","v","i","r","s","n","o","u","f","_","l","b"],"mappings":"aAAA,MAAMA,EAAK,GAAM,GAAK,MAAQ,OAAO,GAAK,UAAY,GAAIC,EAAK,GAAMD,EAAE,CAAC,GAAK,OAAO,EAAE,UAAY,UAAY,CAAC,EAAG,EAAG,EAAG,EAAG,EAAG,EAAG,EAAG,EAAG,EAAG,GAAI,EAAE,EAAE,KAC/I,GAAM,EAAE,WAAa,CACxB,GAAK,GAAI,EAAK,GAAMC,EAAE,CAAC,GAAK,EAAE,WAAa,GAAK,GAAI,EAAK,GAAM,OAAO,GAAK,YAAc,GAAIC,EAAI,QAAS,EAAI,yBAC9G,MAAMC,CAAE,CACN,QACA,OAAO,QAAUD,EACjB,MACA,MACA,UAUA,YAAY,EAAGE,EAAG,CAChB,GAAI,CAAC,EAAE,CAAC,EACN,MAAM,IAAI,MAAM,GAAG,CAAC,KAAK,CAAC,qBAAqB,EACjD,KAAK,QAA0B,IAAI,IAAO,KAAK,UAAY,EAAG,KAAK,MAAQ,EAAEA,GAAG,IAAI,EAAIA,EAAE,KAAO,UAAU,gBAAiB,KAAK,MAAQ,CAC7I,CAQE,QAAW,GAAM,CACf,GAAI,CAAC,EAAE,CAAC,EACN,MAAM,IAAI,MACR,GAAG,CAAC,KAAK,CAAC,iCACX,EACH,KAAK,MAAM,SAAS,CAAC,GAAK,KAAK,KAAK,CAAC,EAAE,KAAMA,GAAM,CACjDA,GAAK,CAAC,KAAK,SAAS,CAAC,GAAK,KAAK,QAAQ,IAAI,EAAGA,CAAC,EAAG,KAAK,QAAU,KAAK,MAAQ,sBAAsB,KAAK,YAAY,EAC3H,CAAK,CACF,EAMD,UAAa,GAAM,CACjB,KAAK,QAAQ,IAAI,CAAC,GAA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/.pnpm/@thednp+position-observer@1.0.4/node_modules/@thednp/position-observer/dist/index.mjs"],"sourcesContent":["const m = (e) => e != null && typeof e == \"object\" || !1, p = (e) => m(e) && typeof e.nodeType == \"number\" && [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11].some(\n (t) => e.nodeType === t\n) || !1, h = (e) => p(e) && e.nodeType === 1 || !1, w = (e) => typeof e == \"function\" || !1, k = \"1.0.4\", a = \"PositionObserver Error\";\nclass v {\n entries;\n static version = k;\n _tick;\n _root;\n _callback;\n /**\n * The constructor takes two arguments, a `callback`, which is called\n * whenever the position of an observed element changes and an `options` object.\n * The callback function should take an array of `PositionObserverEntry` objects\n * as its only argument, but it's not required.\n *\n * @param callback the callback that applies to all targets of this observer\n * @param options the options of this observer\n */\n constructor(t, i) {\n if (!w(t))\n throw new Error(`${a}: ${t} is not a function.`);\n this.entries = /* @__PURE__ */ new Map(), this._callback = t, this._root = h(i?.root) ? i.root : document?.documentElement, this._tick = 0;\n }\n /**\n * Start observing the position of the specified element.\n * If the element is not currently attached to the DOM,\n * it will NOT be added to the entries.\n *\n * @param target an `Element` target\n */\n observe = (t) => {\n if (!h(t))\n throw new Error(\n `${a}: ${t} is not an instance of Element.`\n );\n this._root.contains(t) && this._new(t).then((i) => {\n i && !this.getEntry(t) && this.entries.set(t, i), this._tick || (this._tick = requestAnimationFrame(this._runCallback));\n });\n };\n /**\n * Stop observing the position of the specified element.\n *\n * @param target an `HTMLElement` target\n */\n unobserve = (t) => {\n this.entries.has(t) && this.entries.delete(t);\n };\n /**\n * Private method responsible for all the heavy duty,\n * the observer's runtime.\n */\n _runCallback = () => {\n if (!this.entries.size) return;\n const t = new Promise((i) => {\n const r = [];\n this.entries.forEach(\n ({ target: s, boundingClientRect: n }) => {\n this._root.contains(s) && this._new(s).then(({ boundingClientRect: o, isIntersecting: u }) => {\n if (!u) return;\n const { left: f, top: _, bottom: l, right: b } = o;\n if (n.top !== _ || n.left !== f || n.right !== b || n.bottom !== l) {\n const c = { target: s, boundingClientRect: o };\n this.entries.set(s, c), r.push(c);\n }\n });\n }\n ), i(r);\n });\n this._tick = requestAnimationFrame(async () => {\n const i = await t;\n i.length && this._callback(i, this), this._runCallback();\n });\n };\n /**\n * Calculate the target bounding box and determine\n * the value of `isVisible`.\n *\n * @param target an `Element` target\n */\n _new = (t) => new Promise((i) => {\n new IntersectionObserver(\n ([s], n) => {\n n.disconnect(), i(s);\n }\n ).observe(t);\n });\n /**\n * Find the entry for a given target.\n *\n * @param target an `HTMLElement` target\n */\n getEntry = (t) => this.entries.get(t);\n /**\n * Immediately stop observing all elements.\n */\n disconnect = () => {\n cancelAnimationFrame(this._tick), this.entries.clear(), this._tick = 0;\n };\n}\nexport {\n v as default\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["m","p","k","v","i","r","s","n","o","u","f","_","l","b"],"mappings":"aAAA,MAAMA,EAAK,GAAM,GAAK,MAAQ,OAAO,GAAK,UAAY,GAAIC,EAAK,GAAMD,EAAE,CAAC,GAAK,OAAO,EAAE,UAAY,UAAY,CAAC,EAAG,EAAG,EAAG,EAAG,EAAG,EAAG,EAAG,EAAG,EAAG,GAAI,EAAE,EAAE,KAC/I,GAAM,EAAE,WAAa,CACxB,GAAK,GAAI,EAAK,GAAMC,EAAE,CAAC,GAAK,EAAE,WAAa,GAAK,GAAI,EAAK,GAAM,OAAO,GAAK,YAAc,GAAIC,EAAI,QAAS,EAAI,yBAC9G,MAAMC,CAAE,CACN,QACA,OAAO,QAAUD,EACjB,MACA,MACA,UAUA,YAAY,EAAGE,EAAG,CAChB,GAAI,CAAC,EAAE,CAAC,EACN,MAAM,IAAI,MAAM,GAAG,CAAC,KAAK,CAAC,qBAAqB,EACjD,KAAK,QAA0B,IAAI,IAAO,KAAK,UAAY,EAAG,KAAK,MAAQ,EAAEA,GAAG,IAAI,EAAIA,EAAE,KAAO,UAAU,gBAAiB,KAAK,MAAQ,CAC7I,CAQE,QAAW,GAAM,CACf,GAAI,CAAC,EAAE,CA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,CAAC,CAAC,CAAC,EAAGG,IAAM,CACVA,EAAE,WAAU,EAAIH,EAAE,CAAC,CAC3B,CACA,EAAM,QAAQ,CAAC,CACf,CAAG,EAMD,SAAY,GAAM,KAAK,QAAQ,IAAI,CAAC,EAIpC,WAAa,IAAM,CACjB,qBAAqB,KAAK,KAAK,EAAG,KAAK,QAAQ,MAAO,EAAE,KAAK,MAAQ,CACtE,CACH","x_google_ignoreList":[0]} \ No newline at end of file diff --git a/dist/components/isDisabled-BFPGF6I2.js b/dist/components/isDisabled-BFPGF6I2.js deleted file mode 100644 index acc46144..00000000 --- a/dist/components/isDisabled-BFPGF6I2.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict";const e=require("./base-component-4K-5H-MO.js"),i=s=>e.Gn(s,"disabled")||e.j(s,"disabled")==="true";exports.isDisabled=i; -//# sourceMappingURL=isDisabled-BFPGF6I2.js.map diff --git a/dist/components/isDisabled-BhBg0EpT.js b/dist/components/isDisabled-BhBg0EpT.js new file mode 100644 index 00000000..cda07f45 --- /dev/null +++ b/dist/components/isDisabled-BhBg0EpT.js @@ -0,0 +1,2 @@ +"use strict";const e=require("./base-component-DMuoZh8G.js"),i=s=>e.Gn(s,"disabled")||e.j(s,"disabled")==="true";exports.isDisabled=i; +//# sourceMappingURL=isDisabled-BhBg0EpT.js.map diff --git a/dist/components/isDisabled-BFPGF6I2.js.map b/dist/components/isDisabled-BhBg0EpT.js.map similarity index 90% rename from dist/components/isDisabled-BFPGF6I2.js.map rename to dist/components/isDisabled-BhBg0EpT.js.map index 7d4630fd..9db339b0 100644 --- a/dist/components/isDisabled-BFPGF6I2.js.map +++ b/dist/components/isDisabled-BhBg0EpT.js.map @@ -1 +1 @@ -{"version":3,"file":"isDisabled-BFPGF6I2.js","sources":["../../src/util/isDisabled.ts"],"sourcesContent":["import { getAttribute, hasClass } from \"@thednp/shorty\";\n\n/**\n * Check if interactive element is disabled.\n * @param target either a `'}),l=e=>n.Xn(e,t.popoverComponent),c=e=>new p(e);class p extends t.Tooltip{static selector=r;static init=c;static getInstance=l;static styleTip=t.styleTip;constructor(s,o){super(s,o)}get name(){return t.popoverComponent}get defaults(){return a}show=()=>{super.show();const{options:s,btn:o}=this;s.dismissible&&o&&setTimeout(()=>n.ro(o),17)}}module.exports=p; +"use strict";const n=require("./base-component-DMuoZh8G.js"),i=require("./dataBsToggle-Dj-Ng54N.js"),t=require("./tooltip-DwQSdbgB.js"),r=`[${i.dataBsToggle}="${t.popoverString}"],[data-tip="${t.popoverString}"]`,a=n.C({},t.tooltipDefaults,{template:t.getTipTemplate(t.popoverString),content:"",dismissible:!1,btnClose:''}),l=e=>n.Xn(e,t.popoverComponent),c=e=>new p(e);class p extends t.Tooltip{static selector=r;static init=c;static getInstance=l;static styleTip=t.styleTip;constructor(s,o){super(s,o)}get name(){return t.popoverComponent}get defaults(){return a}show=()=>{super.show();const{options:s,btn:o}=this;s.dismissible&&o&&setTimeout(()=>n.ro(o),17)}}module.exports=p; //# sourceMappingURL=popover.cjs.map diff --git a/dist/components/popover.mjs b/dist/components/popover.mjs index 5bbf1f5f..3ccfeca9 100644 --- a/dist/components/popover.mjs +++ b/dist/components/popover.mjs @@ -1,6 +1,6 @@ -import { C as n, F as p, X as i } from "./base-component-LaJIjMhh.mjs"; +import { C as n, F as p, X as i } from "./base-component--xj9oMJ8.mjs"; import { d as r } from "./dataBsToggle-B84TS15h.mjs"; -import { T as l, s as c, p as a, a as e, g as m, t as u } from "./tooltip-CflbER55.mjs"; +import { T as l, s as c, p as a, a as e, g as m, t as u } from "./tooltip-33b5qaZo.mjs"; const b = `[${r}="${e}"],[data-tip="${e}"]`, d = n({}, u, { template: m(e), content: "", diff --git a/dist/components/popupContainer-BF5JudHD.js b/dist/components/popupContainer-DsalI_IH.js similarity index 81% rename from dist/components/popupContainer-BF5JudHD.js rename to dist/components/popupContainer-DsalI_IH.js index 36d71102..4173b740 100644 --- a/dist/components/popupContainer-BF5JudHD.js +++ b/dist/components/popupContainer-DsalI_IH.js @@ -1,2 +1,2 @@ -"use strict";const p=require("./base-component-4K-5H-MO.js"),d="modal",u="offcanvas",e=p.ne({tagName:"div",className:"popup-container"}),f=(n,o)=>{const s=p.u(o)&&o.nodeName==="BODY",a=p.u(o)&&!s?o:e,c=s?o:p.wo(n);p.u(n)&&(a===e&&c.append(e),a.append(n))},l=(n,o)=>{const s=p.u(o)&&o.nodeName==="BODY",a=p.u(o)&&!s?o:e;p.u(n)&&(n.remove(),a===e&&!e.children.length&&e.remove())},i=(n,o)=>{const s=p.u(o)&&o.nodeName!=="BODY"?o:e;return p.u(n)&&s.contains(n)};exports.appendPopup=f;exports.hasPopup=i;exports.modalString=d;exports.offcanvasString=u;exports.removePopup=l; -//# sourceMappingURL=popupContainer-BF5JudHD.js.map +"use strict";const p=require("./base-component-DMuoZh8G.js"),d="modal",u="offcanvas",e=p.ne({tagName:"div",className:"popup-container"}),f=(n,o)=>{const s=p.u(o)&&o.nodeName==="BODY",a=p.u(o)&&!s?o:e,c=s?o:p.wo(n);p.u(n)&&(a===e&&c.append(e),a.append(n))},l=(n,o)=>{const s=p.u(o)&&o.nodeName==="BODY",a=p.u(o)&&!s?o:e;p.u(n)&&(n.remove(),a===e&&!e.children.length&&e.remove())},i=(n,o)=>{const s=p.u(o)&&o.nodeName!=="BODY"?o:e;return p.u(n)&&s.contains(n)};exports.appendPopup=f;exports.hasPopup=i;exports.modalString=d;exports.offcanvasString=u;exports.removePopup=l; +//# sourceMappingURL=popupContainer-DsalI_IH.js.map diff --git a/dist/components/popupContainer-BF5JudHD.js.map b/dist/components/popupContainer-DsalI_IH.js.map similarity index 97% rename from dist/components/popupContainer-BF5JudHD.js.map rename to dist/components/popupContainer-DsalI_IH.js.map index 8107d098..b8db024f 100644 --- a/dist/components/popupContainer-BF5JudHD.js.map +++ b/dist/components/popupContainer-DsalI_IH.js.map @@ -1 +1 @@ -{"version":3,"file":"popupContainer-BF5JudHD.js","sources":["../../src/strings/modalString.ts","../../src/strings/offcanvasString.ts","../../src/util/popupContainer.ts"],"sourcesContent":["/** @type {string} */\nconst modalString = \"modal\";\nexport default modalString;\n","/** @type {string} */\nconst offcanvasString = \"offcanvas\";\nexport default offcanvasString;\n","import { createElement, getDocumentBody, isNode } from \"@thednp/shorty\";\n\n// the default container for Modal, Offcanvas, Popover and Tooltip\nconst popupContainer = createElement({\n tagName: \"div\",\n className: \"popup-container\",\n}) as HTMLElement;\n\nconst appendPopup = (target: Element, customContainer?: ParentNode) => {\n const containerIsBody = isNode(customContainer) &&\n customContainer.nodeName === \"BODY\";\n const lookup = isNode(customContainer) && !containerIsBody\n ? customContainer\n : popupContainer;\n const BODY = containerIsBody ? customContainer : getDocumentBody(target);\n\n // istanbul ignore else @preserve\n if (isNode(target)) {\n if (lookup === popupContainer) {\n BODY.append(popupContainer);\n }\n lookup.append(target);\n }\n};\n\nconst removePopup = (target: Element, customContainer?: ParentNode) => {\n const containerIsBody = isNode(customContainer) &&\n customContainer.nodeName === \"BODY\";\n const lookup = isNode(customContainer) && !containerIsBody\n ? customContainer\n : popupContainer;\n\n // istanbul ignore else @preserve\n if (isNode(target)) {\n target.remove();\n\n if (lookup === popupContainer && !popupContainer.children.length) {\n popupContainer.remove();\n }\n }\n};\n\nconst hasPopup = (target: Element, customContainer?: ParentNode) => {\n const lookup = isNode(customContainer) && customContainer.nodeName !== \"BODY\"\n ? customContainer\n : popupContainer;\n return isNode(target) && lookup.contains(target);\n};\n\nexport { appendPopup, hasPopup, popupContainer, removePopup };\n"],"names":["modalString","offcanvasString","popupContainer","createElement","appendPopup","target","customContainer","containerIsBody","isNode","lookup","BODY","getDocumentBody","removePopup","hasPopup"],"mappings":"6DACMA,EAAc,QCAdC,EAAkB,YCElBC,EAAiBC,EAAAA,GAAc,CACnC,QAAS,MACT,UAAW,iBACb,CAAC,EAEKC,EAAc,CAACC,EAAiBC,IAAiC,CACrE,MAAMC,EAAkBC,EAAAA,EAAOF,CAAe,GAC5CA,EAAgB,WAAa,OACzBG,EAASD,EAAAA,EAAOF,CAAe,GAAK,CAACC,EACvCD,EACAJ,EACEQ,EAAOH,EAAkBD,EAAkBK,EAAAA,GAAgBN,CAAM,EAGnEG,EAAAA,EAAOH,CAAM,IACXI,IAAWP,GACbQ,EAAK,OAAOR,CAAc,EAE5BO,EAAO,OAAOJ,CAAM,EAExB,EAEMO,EAAc,CAACP,EAAiBC,IAAiC,CACrE,MAAMC,EAAkBC,EAAAA,EAAOF,CAAe,GAC5CA,EAAgB,WAAa,OACzBG,EAASD,EAAAA,EAAOF,CAAe,GAAK,CAACC,EACvCD,EACAJ,EAGAM,EAAAA,EAAOH,CAAM,IACfA,EAAO,OAAO,EAEVI,IAAWP,GAAkB,CAACA,EAAe,SAAS,QACxDA,EAAe,OAAO,EAG5B,EAEMW,EAAW,CAACR,EAAiBC,IAAiC,CAClE,MAAMG,EAASD,EAAO,EAAAF,CAAe,GAAKA,EAAgB,WAAa,OACnEA,EACAJ,EACJ,OAAOM,EAAO,EAAAH,CAAM,GAAKI,EAAO,SAASJ,CAAM,CACjD"} \ No newline at end of file +{"version":3,"file":"popupContainer-DsalI_IH.js","sources":["../../src/strings/modalString.ts","../../src/strings/offcanvasString.ts","../../src/util/popupContainer.ts"],"sourcesContent":["/** @type {string} */\nconst modalString = \"modal\";\nexport default modalString;\n","/** @type {string} */\nconst offcanvasString = \"offcanvas\";\nexport default offcanvasString;\n","import { createElement, getDocumentBody, isNode } from \"@thednp/shorty\";\n\n// the default container for Modal, Offcanvas, Popover and Tooltip\nconst popupContainer = createElement({\n tagName: \"div\",\n className: \"popup-container\",\n}) as HTMLElement;\n\nconst appendPopup = (target: Element, customContainer?: ParentNode) => {\n const containerIsBody = isNode(customContainer) &&\n customContainer.nodeName === \"BODY\";\n const lookup = isNode(customContainer) && !containerIsBody\n ? customContainer\n : popupContainer;\n const BODY = containerIsBody ? customContainer : getDocumentBody(target);\n\n // istanbul ignore else @preserve\n if (isNode(target)) {\n if (lookup === popupContainer) {\n BODY.append(popupContainer);\n }\n lookup.append(target);\n }\n};\n\nconst removePopup = (target: Element, customContainer?: ParentNode) => {\n const containerIsBody = isNode(customContainer) &&\n customContainer.nodeName === \"BODY\";\n const lookup = isNode(customContainer) && !containerIsBody\n ? customContainer\n : popupContainer;\n\n // istanbul ignore else @preserve\n if (isNode(target)) {\n target.remove();\n\n if (lookup === popupContainer && !popupContainer.children.length) {\n popupContainer.remove();\n }\n }\n};\n\nconst hasPopup = (target: Element, customContainer?: ParentNode) => {\n const lookup = isNode(customContainer) && customContainer.nodeName !== \"BODY\"\n ? customContainer\n : popupContainer;\n return isNode(target) && lookup.contains(target);\n};\n\nexport { appendPopup, hasPopup, popupContainer, removePopup };\n"],"names":["modalString","offcanvasString","popupContainer","createElement","appendPopup","target","customContainer","containerIsBody","isNode","lookup","BODY","getDocumentBody","removePopup","hasPopup"],"mappings":"6DACMA,EAAc,QCAdC,EAAkB,YCElBC,EAAiBC,EAAAA,GAAc,CACnC,QAAS,MACT,UAAW,iBACb,CAAC,EAEKC,EAAc,CAACC,EAAiBC,IAAiC,CACrE,MAAMC,EAAkBC,EAAAA,EAAOF,CAAe,GAC5CA,EAAgB,WAAa,OACzBG,EAASD,EAAAA,EAAOF,CAAe,GAAK,CAACC,EACvCD,EACAJ,EACEQ,EAAOH,EAAkBD,EAAkBK,EAAAA,GAAgBN,CAAM,EAGnEG,EAAAA,EAAOH,CAAM,IACXI,IAAWP,GACbQ,EAAK,OAAOR,CAAc,EAE5BO,EAAO,OAAOJ,CAAM,EAExB,EAEMO,EAAc,CAACP,EAAiBC,IAAiC,CACrE,MAAMC,EAAkBC,EAAAA,EAAOF,CAAe,GAC5CA,EAAgB,WAAa,OACzBG,EAASD,EAAAA,EAAOF,CAAe,GAAK,CAACC,EACvCD,EACAJ,EAGAM,EAAAA,EAAOH,CAAM,IACfA,EAAO,OAAO,EAEVI,IAAWP,GAAkB,CAACA,EAAe,SAAS,QACxDA,EAAe,OAAO,EAG5B,EAEMW,EAAW,CAACR,EAAiBC,IAAiC,CAClE,MAAMG,EAASD,EAAO,EAAAF,CAAe,GAAKA,EAAgB,WAAa,OACnEA,EACAJ,EACJ,OAAOM,EAAO,EAAAH,CAAM,GAAKI,EAAO,SAASJ,CAAM,CACjD"} \ No newline at end of file diff --git a/dist/components/popupContainer-DSAMs3kR.mjs b/dist/components/popupContainer-T6ricSTx.mjs similarity index 81% rename from dist/components/popupContainer-DSAMs3kR.mjs rename to dist/components/popupContainer-T6ricSTx.mjs index 0a1cd426..7e0967ec 100644 --- a/dist/components/popupContainer-DSAMs3kR.mjs +++ b/dist/components/popupContainer-T6ricSTx.mjs @@ -1,4 +1,4 @@ -import { a5 as c, ah as s, a0 as f } from "./base-component-LaJIjMhh.mjs"; +import { a5 as c, ah as s, a0 as f } from "./base-component--xj9oMJ8.mjs"; const v = "modal", B = "offcanvas", a = c({ tagName: "div", className: "popup-container" @@ -19,4 +19,4 @@ export { B as o, i as r }; -//# sourceMappingURL=popupContainer-DSAMs3kR.mjs.map +//# sourceMappingURL=popupContainer-T6ricSTx.mjs.map diff --git a/dist/components/popupContainer-DSAMs3kR.mjs.map b/dist/components/popupContainer-T6ricSTx.mjs.map similarity index 97% rename from dist/components/popupContainer-DSAMs3kR.mjs.map rename to dist/components/popupContainer-T6ricSTx.mjs.map index 2f6497ea..d6625caf 100644 --- a/dist/components/popupContainer-DSAMs3kR.mjs.map +++ b/dist/components/popupContainer-T6ricSTx.mjs.map @@ -1 +1 @@ -{"version":3,"file":"popupContainer-DSAMs3kR.mjs","sources":["../../src/strings/modalString.ts","../../src/strings/offcanvasString.ts","../../src/util/popupContainer.ts"],"sourcesContent":["/** @type {string} */\nconst modalString = \"modal\";\nexport default modalString;\n","/** @type {string} */\nconst offcanvasString = \"offcanvas\";\nexport default offcanvasString;\n","import { createElement, getDocumentBody, isNode } from \"@thednp/shorty\";\n\n// the default container for Modal, Offcanvas, Popover and Tooltip\nconst popupContainer = createElement({\n tagName: \"div\",\n className: \"popup-container\",\n}) as HTMLElement;\n\nconst appendPopup = (target: Element, customContainer?: ParentNode) => {\n const containerIsBody = isNode(customContainer) &&\n customContainer.nodeName === \"BODY\";\n const lookup = isNode(customContainer) && !containerIsBody\n ? customContainer\n : popupContainer;\n const BODY = containerIsBody ? customContainer : getDocumentBody(target);\n\n // istanbul ignore else @preserve\n if (isNode(target)) {\n if (lookup === popupContainer) {\n BODY.append(popupContainer);\n }\n lookup.append(target);\n }\n};\n\nconst removePopup = (target: Element, customContainer?: ParentNode) => {\n const containerIsBody = isNode(customContainer) &&\n customContainer.nodeName === \"BODY\";\n const lookup = isNode(customContainer) && !containerIsBody\n ? customContainer\n : popupContainer;\n\n // istanbul ignore else @preserve\n if (isNode(target)) {\n target.remove();\n\n if (lookup === popupContainer && !popupContainer.children.length) {\n popupContainer.remove();\n }\n }\n};\n\nconst hasPopup = (target: Element, customContainer?: ParentNode) => {\n const lookup = isNode(customContainer) && customContainer.nodeName !== \"BODY\"\n ? customContainer\n : popupContainer;\n return isNode(target) && lookup.contains(target);\n};\n\nexport { appendPopup, hasPopup, popupContainer, removePopup };\n"],"names":["modalString","offcanvasString","popupContainer","createElement","appendPopup","target","customContainer","containerIsBody","isNode","lookup","BODY","getDocumentBody","removePopup","hasPopup"],"mappings":";AACA,MAAMA,IAAc,SCAdC,IAAkB,aCElBC,IAAiBC,EAAc;AAAA,EACnC,SAAS;AAAA,EACT,WAAW;AACb,CAAC,GAEKC,IAAc,CAACC,GAAiBC,MAAiC;AACrE,QAAMC,IAAkBC,EAAOF,CAAe,KAC5CA,EAAgB,aAAa,QACzBG,IAASD,EAAOF,CAAe,KAAK,CAACC,IACvCD,IACAJ,GACEQ,IAAOH,IAAkBD,IAAkBK,EAAgBN,CAAM;AAGnE,EAAAG,EAAOH,CAAM,MACXI,MAAWP,KACbQ,EAAK,OAAOR,CAAc,GAE5BO,EAAO,OAAOJ,CAAM;AAExB,GAEMO,IAAc,CAACP,GAAiBC,MAAiC;AACrE,QAAMC,IAAkBC,EAAOF,CAAe,KAC5CA,EAAgB,aAAa,QACzBG,IAASD,EAAOF,CAAe,KAAK,CAACC,IACvCD,IACAJ;AAGA,EAAAM,EAAOH,CAAM,MACfA,EAAO,OAAO,GAEVI,MAAWP,KAAkB,CAACA,EAAe,SAAS,UACxDA,EAAe,OAAO;AAG5B,GAEMW,IAAW,CAACR,GAAiBC,MAAiC;AAClE,QAAMG,IAASD,EAAOF,CAAe,KAAKA,EAAgB,aAAa,SACnEA,IACAJ;AACJ,SAAOM,EAAOH,CAAM,KAAKI,EAAO,SAASJ,CAAM;AACjD;"} \ No newline at end of file +{"version":3,"file":"popupContainer-T6ricSTx.mjs","sources":["../../src/strings/modalString.ts","../../src/strings/offcanvasString.ts","../../src/util/popupContainer.ts"],"sourcesContent":["/** @type {string} */\nconst modalString = \"modal\";\nexport default modalString;\n","/** @type {string} */\nconst offcanvasString = \"offcanvas\";\nexport default offcanvasString;\n","import { createElement, getDocumentBody, isNode } from \"@thednp/shorty\";\n\n// the default container for Modal, Offcanvas, Popover and Tooltip\nconst popupContainer = createElement({\n tagName: \"div\",\n className: \"popup-container\",\n}) as HTMLElement;\n\nconst appendPopup = (target: Element, customContainer?: ParentNode) => {\n const containerIsBody = isNode(customContainer) &&\n customContainer.nodeName === \"BODY\";\n const lookup = isNode(customContainer) && !containerIsBody\n ? customContainer\n : popupContainer;\n const BODY = containerIsBody ? customContainer : getDocumentBody(target);\n\n // istanbul ignore else @preserve\n if (isNode(target)) {\n if (lookup === popupContainer) {\n BODY.append(popupContainer);\n }\n lookup.append(target);\n }\n};\n\nconst removePopup = (target: Element, customContainer?: ParentNode) => {\n const containerIsBody = isNode(customContainer) &&\n customContainer.nodeName === \"BODY\";\n const lookup = isNode(customContainer) && !containerIsBody\n ? customContainer\n : popupContainer;\n\n // istanbul ignore else @preserve\n if (isNode(target)) {\n target.remove();\n\n if (lookup === popupContainer && !popupContainer.children.length) {\n popupContainer.remove();\n }\n }\n};\n\nconst hasPopup = (target: Element, customContainer?: ParentNode) => {\n const lookup = isNode(customContainer) && customContainer.nodeName !== \"BODY\"\n ? customContainer\n : popupContainer;\n return isNode(target) && lookup.contains(target);\n};\n\nexport { appendPopup, hasPopup, popupContainer, removePopup };\n"],"names":["modalString","offcanvasString","popupContainer","createElement","appendPopup","target","customContainer","containerIsBody","isNode","lookup","BODY","getDocumentBody","removePopup","hasPopup"],"mappings":";AACA,MAAMA,IAAc,SCAdC,IAAkB,aCElBC,IAAiBC,EAAc;AAAA,EACnC,SAAS;AAAA,EACT,WAAW;AACb,CAAC,GAEKC,IAAc,CAACC,GAAiBC,MAAiC;AACrE,QAAMC,IAAkBC,EAAOF,CAAe,KAC5CA,EAAgB,aAAa,QACzBG,IAASD,EAAOF,CAAe,KAAK,CAACC,IACvCD,IACAJ,GACEQ,IAAOH,IAAkBD,IAAkBK,EAAgBN,CAAM;AAGnE,EAAAG,EAAOH,CAAM,MACXI,MAAWP,KACbQ,EAAK,OAAOR,CAAc,GAE5BO,EAAO,OAAOJ,CAAM;AAExB,GAEMO,IAAc,CAACP,GAAiBC,MAAiC;AACrE,QAAMC,IAAkBC,EAAOF,CAAe,KAC5CA,EAAgB,aAAa,QACzBG,IAASD,EAAOF,CAAe,KAAK,CAACC,IACvCD,IACAJ;AAGA,EAAAM,EAAOH,CAAM,MACfA,EAAO,OAAO,GAEVI,MAAWP,KAAkB,CAACA,EAAe,SAAS,UACxDA,EAAe,OAAO;AAG5B,GAEMW,IAAW,CAACR,GAAiBC,MAAiC;AAClE,QAAMG,IAASD,EAAOF,CAAe,KAAKA,EAAgB,aAAa,SACnEA,IACAJ;AACJ,SAAOM,EAAOH,CAAM,KAAKI,EAAO,SAASJ,CAAM;AACjD;"} \ No newline at end of file diff --git a/dist/components/scrollspy.cjs b/dist/components/scrollspy.cjs index 43f9799f..e702ebee 100644 --- a/dist/components/scrollspy.cjs +++ b/dist/components/scrollspy.cjs @@ -1,2 +1,2 @@ -"use strict";const e=require("./base-component-4K-5H-MO.js"),E=require("./index-CxumdV5N.js"),g=require("./activeClass-CxJYQAGN.js"),A=require("./isDisabled-BFPGF6I2.js"),w="scrollspy",y="ScrollSpy",L='[data-bs-spy="scroll"]',q="[href]",H={offset:10,target:void 0},x=r=>e.Xn(r,y),k=r=>new d(r),b=e.po(`activate.bs.${w}`),D=r=>{const{target:t,_itemsLength:n,_observables:s}=r,o=e.ke("A",t),c=e.d(t);!o.length||n===s.size||(s.clear(),Array.from(o).forEach(l=>{const i=e.j(l,"href")?.slice(1),h=i?.length?c.getElementById(i):null;h&&!A.isDisabled(l)&&r._observables.set(h,l)}),r._itemsLength=r._observables.size)},T=r=>{Array.from(e.ke("A",r)).forEach(t=>{e.Gn(t,g.activeClass)&&e.qn(t,g.activeClass)})},_=(r,t)=>{const{target:n,element:s}=r;T(n),r._activeItem=t,e.Kn(t,g.activeClass);let o=t;for(;o!==n;)if(o=o.parentElement,["nav","dropdown-menu","list-group"].some(c=>e.Gn(o,c))){const c=o.previousElementSibling;c&&!e.Gn(c,g.activeClass)&&e.Kn(c,g.activeClass)}b.relatedTarget=t,e.G(s,b)},p=(r,t)=>{const{scrollTarget:n,element:s,options:o}=r;return(n!==s?e.y(t).top+n.scrollTop:t.offsetTop)-(o.offset||10)};class d extends e.BaseComponent{static selector=L;static init=k;static getInstance=x;constructor(t,n){super(t,n);const{element:s,options:o}=this,c=e.Ho(o.target,e.d(s));c&&(this.target=c,this.scrollTarget=s.clientHeight{requestAnimationFrame(()=>this.refresh())},{root:this.scrollTarget}),this._toggleEventListeners(!0))}get name(){return y}get defaults(){return H}refresh=()=>{const{target:t,scrollTarget:n}=this;if(!t||t.offsetHeight===0)return;D(this);const{_itemsLength:s,_observables:o,_activeItem:c}=this;if(!s)return;const l=o.entries().toArray(),{scrollTop:i,scrollHeight:h,clientHeight:S}=n;if(i>=h-S){const a=l[s-1]?.[1];c!==a&&_(this,a);return}const f=l[0]?.[0]?p(this,l[0][0]):null;if(f!==null&&i0){this._activeItem=null,T(t);return}for(let a=0;a=C&&(m===null||i{const n=e.Se(t.target,q),s=n&&e.j(n,"href")?.slice(1),o=s&&e.Wo(s,this.target);o&&(this.scrollTarget.scrollTo({top:o.offsetTop,behavior:"smooth"}),t.preventDefault())};_toggleEventListeners=t=>{const{target:n,_observables:s,_observer:o,_scrollTo:c}=this;(t?e.E:e.r)(n,e.gt,c),t?s?.forEach((i,h)=>o.observe(h)):o.disconnect()};dispose(){this._toggleEventListeners(),super.dispose()}}module.exports=d; +"use strict";const e=require("./base-component-DMuoZh8G.js"),E=require("./index-DZ0WJZhO.js"),g=require("./activeClass-CxJYQAGN.js"),A=require("./isDisabled-BhBg0EpT.js"),w="scrollspy",y="ScrollSpy",L='[data-bs-spy="scroll"]',q="[href]",H={offset:10,target:void 0},x=r=>e.Xn(r,y),k=r=>new d(r),b=e.po(`activate.bs.${w}`),D=r=>{const{target:t,_itemsLength:n,_observables:s}=r,o=e.ke("A",t),c=e.d(t);!o.length||n===s.size||(s.clear(),Array.from(o).forEach(l=>{const i=e.j(l,"href")?.slice(1),h=i?.length?c.getElementById(i):null;h&&!A.isDisabled(l)&&r._observables.set(h,l)}),r._itemsLength=r._observables.size)},T=r=>{Array.from(e.ke("A",r)).forEach(t=>{e.Gn(t,g.activeClass)&&e.qn(t,g.activeClass)})},_=(r,t)=>{const{target:n,element:s}=r;T(n),r._activeItem=t,e.Kn(t,g.activeClass);let o=t;for(;o!==n;)if(o=o.parentElement,["nav","dropdown-menu","list-group"].some(c=>e.Gn(o,c))){const c=o.previousElementSibling;c&&!e.Gn(c,g.activeClass)&&e.Kn(c,g.activeClass)}b.relatedTarget=t,e.G(s,b)},p=(r,t)=>{const{scrollTarget:n,element:s,options:o}=r;return(n!==s?e.y(t).top+n.scrollTop:t.offsetTop)-(o.offset||10)};class d extends e.BaseComponent{static selector=L;static init=k;static getInstance=x;constructor(t,n){super(t,n);const{element:s,options:o}=this,c=e.Ho(o.target,e.d(s));c&&(this.target=c,this.scrollTarget=s.clientHeight{requestAnimationFrame(()=>this.refresh())},{root:this.scrollTarget}),this._toggleEventListeners(!0))}get name(){return y}get defaults(){return H}refresh=()=>{const{target:t,scrollTarget:n}=this;if(!t||t.offsetHeight===0)return;D(this);const{_itemsLength:s,_observables:o,_activeItem:c}=this;if(!s)return;const l=o.entries().toArray(),{scrollTop:i,scrollHeight:h,clientHeight:S}=n;if(i>=h-S){const a=l[s-1]?.[1];c!==a&&_(this,a);return}const f=l[0]?.[0]?p(this,l[0][0]):null;if(f!==null&&i0){this._activeItem=null,T(t);return}for(let a=0;a=C&&(m===null||i{const n=e.Se(t.target,q),s=n&&e.j(n,"href")?.slice(1),o=s&&e.Wo(s,this.target);o&&(this.scrollTarget.scrollTo({top:o.offsetTop,behavior:"smooth"}),t.preventDefault())};_toggleEventListeners=t=>{const{target:n,_observables:s,_observer:o,_scrollTo:c}=this;(t?e.E:e.r)(n,e.gt,c),t?s?.forEach((i,h)=>o.observe(h)):o.disconnect()};dispose(){this._toggleEventListeners(),super.dispose()}}module.exports=d; //# sourceMappingURL=scrollspy.cjs.map diff --git a/dist/components/scrollspy.mjs b/dist/components/scrollspy.mjs index 6e5db5b4..5ebe6d67 100644 --- a/dist/components/scrollspy.mjs +++ b/dist/components/scrollspy.mjs @@ -1,7 +1,7 @@ -import { B as H, H as k, d as T, L as x, S as C, k as S, a6 as q, X as B, p as D, a7 as d, G as p, q as G, K as b, a as O, M as z, E as K, r as M, g as X } from "./base-component-LaJIjMhh.mjs"; -import { v as j } from "./index-DXF8ibvt.mjs"; +import { B as H, H as k, d as T, L as x, S as C, k as S, a6 as q, X as B, p as D, a7 as d, G as p, q as G, K as b, a as O, M as z, E as K, r as M, g as X } from "./base-component--xj9oMJ8.mjs"; +import { v as j } from "./index-ClQArkrm.mjs"; import { a as f } from "./activeClass-iqaD75Su.mjs"; -import { i as F } from "./isDisabled-DmmaKYeZ.mjs"; +import { i as F } from "./isDisabled-Dh1obUSx.mjs"; const W = "scrollspy", I = "ScrollSpy", $ = '[data-bs-spy="scroll"]', J = "[href]", N = { offset: 10, target: void 0 diff --git a/dist/components/tab.cjs b/dist/components/tab.cjs index 838c52af..f1b81f7a 100644 --- a/dist/components/tab.cjs +++ b/dist/components/tab.cjs @@ -1,2 +1,2 @@ -"use strict";const t=require("./base-component-4K-5H-MO.js"),v=require("./collapsingClass-CLblascz.js"),c=require("./activeClass-CxJYQAGN.js"),b=require("./fadeClass-Co6nOzNJ.js"),f=require("./showClass-D_Ms1FgG.js"),p=require("./dropdownClasses-CnEyz_iw.js"),y=require("./dataBsToggle-Dj-Ng54N.js"),T=require("./getTargetElement-gM3rpCRn.js"),d="tab",P="Tab",w=`[${y.dataBsToggle}="${d}"]`,S=o=>t.Xn(o,P),B=o=>new M(o),u=t.po(`show.bs.${d}`),E=t.po(`shown.bs.${d}`),C=t.po(`hide.bs.${d}`),G=t.po(`hidden.bs.${d}`),h=new Map,q=o=>{const{tabContent:n,nav:e}=o;n&&t.Gn(n,v.collapsingClass)&&(n.style.height="",t.qn(n,v.collapsingClass)),e&&t.bo.clear(e)},H=o=>{const{element:n,tabContent:e,content:s,nav:l}=o,{tab:a}=t.b(l)&&h.get(l)||{tab:null};if(e&&s&&t.Gn(s,b.fadeClass)){const{currentHeight:i,nextHeight:r}=h.get(n)||{currentHeight:0,nextHeight:0};i!==r?setTimeout(()=>{e.style.height=`${r}px`,t.mo(e),t.no(e,()=>q(o))},50):q(o)}else l&&t.bo.clear(l);E.relatedTarget=a,t.G(n,E)},x=o=>{const{element:n,content:e,tabContent:s,nav:l}=o,{tab:a,content:i}=l&&h.get(l)||{tab:null,content:null};let r=0;if(s&&e&&t.Gn(e,b.fadeClass)&&([i,e].forEach(g=>{g&&t.Kn(g,"overflow-hidden")}),r=i?i.scrollHeight:0),u.relatedTarget=a,G.relatedTarget=n,t.G(n,u),!u.defaultPrevented){if(e&&t.Kn(e,c.activeClass),i&&t.qn(i,c.activeClass),s&&e&&t.Gn(e,b.fadeClass)){const g=e.scrollHeight;h.set(n,{currentHeight:r,nextHeight:g,tab:null,content:null}),t.Kn(s,v.collapsingClass),s.style.height=`${r}px`,t.mo(s),[i,e].forEach(m=>{m&&t.qn(m,"overflow-hidden")})}e&&e&&t.Gn(e,b.fadeClass)?setTimeout(()=>{t.Kn(e,f.showClass),t.no(e,()=>{H(o)})},1):(e&&t.Kn(e,f.showClass),H(o)),a&&t.G(a,G)}},K=o=>{const{nav:n}=o;if(!t.b(n))return{tab:null,content:null};const e=t.Ro(c.activeClass,n);let s=null;e.length===1&&!p.dropdownMenuClasses.some(a=>t.Gn(e[0].parentElement,a))?[s]=e:e.length>1&&(s=e[e.length-1]);const l=t.b(s)?T.getTargetElement(s):null;return{tab:s,content:l}},$=o=>{if(!t.b(o))return null;const n=t.Se(o,`.${p.dropdownMenuClasses.join(",.")}`);return n?t.Ho(`.${p.dropdownMenuClasses[0]}-toggle`,n):null},D=o=>{const n=t.Se(o.target,w),e=n&&S(n);e&&(o.preventDefault(),e.show())};class M extends t.BaseComponent{static selector=w;static init=B;static getInstance=S;constructor(n){super(n);const{element:e}=this,s=T.getTargetElement(e);if(!s)return;const l=t.Se(e,".nav"),a=t.Se(s,".tab-content");this.nav=l,this.content=s,this.tabContent=a,this.dropdown=$(e);const{tab:i}=K(this);if(l&&!i){const r=t.Ho(w,l),g=r&&T.getTargetElement(r);g&&(t.Kn(r,c.activeClass),t.Kn(g,f.showClass),t.Kn(g,c.activeClass),t.Wn(e,t.Pe,"true"))}this._toggleEventListeners(!0)}get name(){return P}show(){const{element:n,content:e,nav:s,dropdown:l}=this;if(s&&t.bo.get(s)||t.Gn(n,c.activeClass))return;const{tab:a,content:i}=K(this);if(s&&a&&h.set(s,{tab:a,content:i,currentHeight:0,nextHeight:0}),C.relatedTarget=n,!t.b(a)||(t.G(a,C),C.defaultPrevented))return;t.Kn(n,c.activeClass),t.Wn(n,t.Pe,"true");const r=t.b(a)&&$(a);if(r&&t.Gn(r,c.activeClass)&&t.qn(r,c.activeClass),s){const g=()=>{a&&(t.qn(a,c.activeClass),t.Wn(a,t.Pe,"false")),l&&!t.Gn(l,c.activeClass)&&t.Kn(l,c.activeClass)};i&&(t.Gn(i,b.fadeClass)||e&&t.Gn(e,b.fadeClass))?t.bo.set(s,g,1):g()}i&&(t.qn(i,f.showClass),t.Gn(i,b.fadeClass)?t.no(i,()=>x(this)):x(this))}_toggleEventListeners=n=>{(n?t.E:t.r)(this.element,t.gt,D)};dispose(){this._toggleEventListeners(),super.dispose()}}module.exports=M; +"use strict";const t=require("./base-component-DMuoZh8G.js"),v=require("./collapsingClass-CLblascz.js"),c=require("./activeClass-CxJYQAGN.js"),b=require("./fadeClass-Co6nOzNJ.js"),f=require("./showClass-D_Ms1FgG.js"),p=require("./dropdownClasses-CnEyz_iw.js"),y=require("./dataBsToggle-Dj-Ng54N.js"),T=require("./getTargetElement-DananmHP.js"),d="tab",P="Tab",w=`[${y.dataBsToggle}="${d}"]`,S=o=>t.Xn(o,P),B=o=>new M(o),u=t.po(`show.bs.${d}`),E=t.po(`shown.bs.${d}`),C=t.po(`hide.bs.${d}`),G=t.po(`hidden.bs.${d}`),h=new Map,q=o=>{const{tabContent:n,nav:e}=o;n&&t.Gn(n,v.collapsingClass)&&(n.style.height="",t.qn(n,v.collapsingClass)),e&&t.bo.clear(e)},H=o=>{const{element:n,tabContent:e,content:s,nav:l}=o,{tab:a}=t.b(l)&&h.get(l)||{tab:null};if(e&&s&&t.Gn(s,b.fadeClass)){const{currentHeight:i,nextHeight:r}=h.get(n)||{currentHeight:0,nextHeight:0};i!==r?setTimeout(()=>{e.style.height=`${r}px`,t.mo(e),t.no(e,()=>q(o))},50):q(o)}else l&&t.bo.clear(l);E.relatedTarget=a,t.G(n,E)},x=o=>{const{element:n,content:e,tabContent:s,nav:l}=o,{tab:a,content:i}=l&&h.get(l)||{tab:null,content:null};let r=0;if(s&&e&&t.Gn(e,b.fadeClass)&&([i,e].forEach(g=>{g&&t.Kn(g,"overflow-hidden")}),r=i?i.scrollHeight:0),u.relatedTarget=a,G.relatedTarget=n,t.G(n,u),!u.defaultPrevented){if(e&&t.Kn(e,c.activeClass),i&&t.qn(i,c.activeClass),s&&e&&t.Gn(e,b.fadeClass)){const g=e.scrollHeight;h.set(n,{currentHeight:r,nextHeight:g,tab:null,content:null}),t.Kn(s,v.collapsingClass),s.style.height=`${r}px`,t.mo(s),[i,e].forEach(m=>{m&&t.qn(m,"overflow-hidden")})}e&&e&&t.Gn(e,b.fadeClass)?setTimeout(()=>{t.Kn(e,f.showClass),t.no(e,()=>{H(o)})},1):(e&&t.Kn(e,f.showClass),H(o)),a&&t.G(a,G)}},K=o=>{const{nav:n}=o;if(!t.b(n))return{tab:null,content:null};const e=t.Ro(c.activeClass,n);let s=null;e.length===1&&!p.dropdownMenuClasses.some(a=>t.Gn(e[0].parentElement,a))?[s]=e:e.length>1&&(s=e[e.length-1]);const l=t.b(s)?T.getTargetElement(s):null;return{tab:s,content:l}},$=o=>{if(!t.b(o))return null;const n=t.Se(o,`.${p.dropdownMenuClasses.join(",.")}`);return n?t.Ho(`.${p.dropdownMenuClasses[0]}-toggle`,n):null},D=o=>{const n=t.Se(o.target,w),e=n&&S(n);e&&(o.preventDefault(),e.show())};class M extends t.BaseComponent{static selector=w;static init=B;static getInstance=S;constructor(n){super(n);const{element:e}=this,s=T.getTargetElement(e);if(!s)return;const l=t.Se(e,".nav"),a=t.Se(s,".tab-content");this.nav=l,this.content=s,this.tabContent=a,this.dropdown=$(e);const{tab:i}=K(this);if(l&&!i){const r=t.Ho(w,l),g=r&&T.getTargetElement(r);g&&(t.Kn(r,c.activeClass),t.Kn(g,f.showClass),t.Kn(g,c.activeClass),t.Wn(e,t.Pe,"true"))}this._toggleEventListeners(!0)}get name(){return P}show(){const{element:n,content:e,nav:s,dropdown:l}=this;if(s&&t.bo.get(s)||t.Gn(n,c.activeClass))return;const{tab:a,content:i}=K(this);if(s&&a&&h.set(s,{tab:a,content:i,currentHeight:0,nextHeight:0}),C.relatedTarget=n,!t.b(a)||(t.G(a,C),C.defaultPrevented))return;t.Kn(n,c.activeClass),t.Wn(n,t.Pe,"true");const r=t.b(a)&&$(a);if(r&&t.Gn(r,c.activeClass)&&t.qn(r,c.activeClass),s){const g=()=>{a&&(t.qn(a,c.activeClass),t.Wn(a,t.Pe,"false")),l&&!t.Gn(l,c.activeClass)&&t.Kn(l,c.activeClass)};i&&(t.Gn(i,b.fadeClass)||e&&t.Gn(e,b.fadeClass))?t.bo.set(s,g,1):g()}i&&(t.qn(i,f.showClass),t.Gn(i,b.fadeClass)?t.no(i,()=>x(this)):x(this))}_toggleEventListeners=n=>{(n?t.E:t.r)(this.element,t.gt,D)};dispose(){this._toggleEventListeners(),super.dispose()}}module.exports=M; //# sourceMappingURL=tab.cjs.map diff --git a/dist/components/tab.mjs b/dist/components/tab.mjs index 66be0459..4766acfd 100644 --- a/dist/components/tab.mjs +++ b/dist/components/tab.mjs @@ -1,11 +1,11 @@ -import { B as A, S as p, H as R, K as f, W as H, c as v, G as l, t as d, a as T, q as b, n as D, X as z, p as C, m as W, R as F, a8 as E, E as J, r as N, g as O } from "./base-component-LaJIjMhh.mjs"; +import { B as A, S as p, H as R, K as f, W as H, c as v, G as l, t as d, a as T, q as b, n as D, X as z, p as C, m as W, R as F, a8 as E, E as J, r as N, g as O } from "./base-component--xj9oMJ8.mjs"; import { c as P } from "./collapsingClass-BxKtDBMH.mjs"; import { a as c } from "./activeClass-iqaD75Su.mjs"; import { f as h } from "./fadeClass-CLIYI_zn.mjs"; import { s as w } from "./showClass-C8hdJfjQ.mjs"; import { d as S } from "./dropdownClasses-CdCdZ-PX.mjs"; import { d as Q } from "./dataBsToggle-B84TS15h.mjs"; -import { g as y } from "./getTargetElement-D4ALSKV7.mjs"; +import { g as y } from "./getTargetElement-B-Gw6dom.mjs"; const m = "tab", X = "Tab", B = `[${Q}="${m}"]`, j = (s) => z(s, X), U = (s) => new Y(s), x = C( `show.bs.${m}` ), I = C( diff --git a/dist/components/toast.cjs b/dist/components/toast.cjs index 25d42585..f76a1e54 100644 --- a/dist/components/toast.cjs +++ b/dist/components/toast.cjs @@ -1,2 +1,2 @@ -"use strict";const t=require("./base-component-4K-5H-MO.js"),l=require("./fadeClass-Co6nOzNJ.js"),h=require("./showClass-D_Ms1FgG.js"),v=require("./dataBsDismiss-CMHF7If_.js"),$=require("./dataBsToggle-Dj-Ng54N.js"),w=require("./getTargetElement-gM3rpCRn.js"),S=require("./isDisabled-BFPGF6I2.js"),o="toast",T="Toast",D=`.${o}`,G=`[${v.dataBsDismiss}="${o}"]`,y=`[${$.dataBsToggle}="${o}"]`,r="showing",C="hide",B={animation:!0,autohide:!0,delay:5e3},g=n=>t.Xn(n,T),K=n=>new b(n),m=t.po(`show.bs.${o}`),H=t.po(`shown.bs.${o}`),u=t.po(`hide.bs.${o}`),I=t.po(`hidden.bs.${o}`),f=n=>{const{element:e,options:s}=n;t.qn(e,r),t.bo.clear(e,r),t.G(e,H),s.autohide&&t.bo.set(e,()=>n.hide(),s.delay,o)},p=n=>{const{element:e}=n;t.qn(e,r),t.qn(e,h.showClass),t.Kn(e,C),t.bo.clear(e,o),t.G(e,I)},L=n=>{const{element:e,options:s}=n;t.Kn(e,r),s.animation?(t.mo(e),t.no(e,()=>p(n))):p(n)},_=n=>{const{element:e,options:s}=n;t.bo.set(e,()=>{t.qn(e,C),t.mo(e),t.Kn(e,h.showClass),t.Kn(e,r),s.animation?t.no(e,()=>f(n)):f(n)},17,r)};function k(n){const e=w.getTargetElement(this),s=e&&g(e);S.isDisabled(this)||s&&(this.tagName==="A"&&n.preventDefault(),s.relatedTarget=this,s.show())}const x=n=>{const e=n.target,s=g(e),{type:i,relatedTarget:a}=n;!s||e===a||e.contains(a)||([t.ht,t.rt].includes(i)?t.bo.clear(e,o):t.bo.set(e,()=>s.hide(),s.options.delay,o))};class b extends t.BaseComponent{static selector=D;static init=K;static getInstance=g;constructor(e,s){super(e,s);const{element:i,options:a}=this;a.animation&&!t.Gn(i,l.fadeClass)?t.Kn(i,l.fadeClass):!a.animation&&t.Gn(i,l.fadeClass)&&t.qn(i,l.fadeClass),this.dismiss=t.Ho(G,i),this.triggers=[...t.ue(y,t.d(i))].filter(c=>w.getTargetElement(c)===i),this._toggleEventListeners(!0)}get name(){return T}get defaults(){return B}get isShown(){return t.Gn(this.element,h.showClass)}show=()=>{const{element:e,isShown:s}=this;!e||s||(t.G(e,m),m.defaultPrevented||_(this))};hide=()=>{const{element:e,isShown:s}=this;!e||!s||(t.G(e,u),u.defaultPrevented||L(this))};_toggleEventListeners=e=>{const s=e?t.E:t.r,{element:i,triggers:a,dismiss:c,options:q,hide:E}=this;c&&s(c,t.gt,E),q.autohide&&[t.rt,t.ct,t.ht,t.yt].forEach(d=>s(i,d,x)),a.length&&a.forEach(d=>{s(d,t.gt,k)})};dispose(){const{element:e,isShown:s}=this;this._toggleEventListeners(),t.bo.clear(e,o),s&&t.qn(e,h.showClass),super.dispose()}}module.exports=b; +"use strict";const t=require("./base-component-DMuoZh8G.js"),l=require("./fadeClass-Co6nOzNJ.js"),h=require("./showClass-D_Ms1FgG.js"),v=require("./dataBsDismiss-CMHF7If_.js"),$=require("./dataBsToggle-Dj-Ng54N.js"),w=require("./getTargetElement-DananmHP.js"),S=require("./isDisabled-BhBg0EpT.js"),o="toast",T="Toast",D=`.${o}`,G=`[${v.dataBsDismiss}="${o}"]`,y=`[${$.dataBsToggle}="${o}"]`,r="showing",C="hide",B={animation:!0,autohide:!0,delay:5e3},g=n=>t.Xn(n,T),K=n=>new b(n),m=t.po(`show.bs.${o}`),H=t.po(`shown.bs.${o}`),u=t.po(`hide.bs.${o}`),I=t.po(`hidden.bs.${o}`),f=n=>{const{element:e,options:s}=n;t.qn(e,r),t.bo.clear(e,r),t.G(e,H),s.autohide&&t.bo.set(e,()=>n.hide(),s.delay,o)},p=n=>{const{element:e}=n;t.qn(e,r),t.qn(e,h.showClass),t.Kn(e,C),t.bo.clear(e,o),t.G(e,I)},L=n=>{const{element:e,options:s}=n;t.Kn(e,r),s.animation?(t.mo(e),t.no(e,()=>p(n))):p(n)},_=n=>{const{element:e,options:s}=n;t.bo.set(e,()=>{t.qn(e,C),t.mo(e),t.Kn(e,h.showClass),t.Kn(e,r),s.animation?t.no(e,()=>f(n)):f(n)},17,r)};function k(n){const e=w.getTargetElement(this),s=e&&g(e);S.isDisabled(this)||s&&(this.tagName==="A"&&n.preventDefault(),s.relatedTarget=this,s.show())}const x=n=>{const e=n.target,s=g(e),{type:i,relatedTarget:a}=n;!s||e===a||e.contains(a)||([t.ht,t.rt].includes(i)?t.bo.clear(e,o):t.bo.set(e,()=>s.hide(),s.options.delay,o))};class b extends t.BaseComponent{static selector=D;static init=K;static getInstance=g;constructor(e,s){super(e,s);const{element:i,options:a}=this;a.animation&&!t.Gn(i,l.fadeClass)?t.Kn(i,l.fadeClass):!a.animation&&t.Gn(i,l.fadeClass)&&t.qn(i,l.fadeClass),this.dismiss=t.Ho(G,i),this.triggers=[...t.ue(y,t.d(i))].filter(c=>w.getTargetElement(c)===i),this._toggleEventListeners(!0)}get name(){return T}get defaults(){return B}get isShown(){return t.Gn(this.element,h.showClass)}show=()=>{const{element:e,isShown:s}=this;!e||s||(t.G(e,m),m.defaultPrevented||_(this))};hide=()=>{const{element:e,isShown:s}=this;!e||!s||(t.G(e,u),u.defaultPrevented||L(this))};_toggleEventListeners=e=>{const s=e?t.E:t.r,{element:i,triggers:a,dismiss:c,options:q,hide:E}=this;c&&s(c,t.gt,E),q.autohide&&[t.rt,t.ct,t.ht,t.yt].forEach(d=>s(i,d,x)),a.length&&a.forEach(d=>{s(d,t.gt,k)})};dispose(){const{element:e,isShown:s}=this;this._toggleEventListeners(),t.bo.clear(e,o),s&&t.qn(e,h.showClass),super.dispose()}}module.exports=b; //# sourceMappingURL=toast.cjs.map diff --git a/dist/components/toast.mjs b/dist/components/toast.mjs index 9e8ed924..7c0692be 100644 --- a/dist/components/toast.mjs +++ b/dist/components/toast.mjs @@ -1,10 +1,10 @@ -import { B as _, G as p, K as l, q as r, H as k, u as q, d as x, a as d, a9 as S, aa as K, h as b, y as P, c as a, X, p as g, m as y, n as D, E as A, r as N, g as w } from "./base-component-LaJIjMhh.mjs"; +import { B as _, G as p, K as l, q as r, H as k, u as q, d as x, a as d, a9 as S, aa as K, h as b, y as P, c as a, X, p as g, m as y, n as D, E as A, r as N, g as w } from "./base-component--xj9oMJ8.mjs"; import { f as m } from "./fadeClass-CLIYI_zn.mjs"; import { s as f } from "./showClass-C8hdJfjQ.mjs"; import { d as j } from "./dataBsDismiss-DdNPQYa-.mjs"; import { d as z } from "./dataBsToggle-B84TS15h.mjs"; -import { g as B } from "./getTargetElement-D4ALSKV7.mjs"; -import { i as F } from "./isDisabled-DmmaKYeZ.mjs"; +import { g as B } from "./getTargetElement-B-Gw6dom.mjs"; +import { i as F } from "./isDisabled-Dh1obUSx.mjs"; const o = "toast", H = "Toast", J = `.${o}`, M = `[${j}="${o}"]`, O = `[${z}="${o}"]`, c = "showing", G = "hide", Q = { animation: !0, autohide: !0, diff --git a/dist/components/tooltip-CflbER55.mjs b/dist/components/tooltip-33b5qaZo.mjs similarity index 98% rename from dist/components/tooltip-CflbER55.mjs rename to dist/components/tooltip-33b5qaZo.mjs index d7c0ba78..c376bd1b 100644 --- a/dist/components/tooltip-CflbER55.mjs +++ b/dist/components/tooltip-33b5qaZo.mjs @@ -1,8 +1,8 @@ -import { b as Ht, ab as jt, w as ct, L as Dt, J as I, M as qt, ac as Gt, t as C, p as z, ad as K, a as X, N as It, ae as zt, af as Kt, ag as Xt, ah as Jt, a5 as D, W as st, H as et, K as N, G, ai as Qt, aj as Ut, ak as Yt, d as ft, B as Vt, X as xt, al as Zt, C as te, A as St, a4 as ee, F as oe, c as W, n as ht, q as se, am as ie, U as ne, h as ae, y as le, i as Nt, g as dt, P as re, a9 as ce, aa as he, an as de, S as gt, k as pe, $ as Wt, ao as Lt, E as mt, r as ut, f as Bt } from "./base-component-LaJIjMhh.mjs"; -import { v as fe } from "./index-DXF8ibvt.mjs"; +import { b as Ht, ab as jt, w as ct, L as Dt, J as I, M as qt, ac as Gt, t as C, p as z, ad as K, a as X, N as It, ae as zt, af as Kt, ag as Xt, ah as Jt, a5 as D, W as st, H as et, K as N, G, ai as Qt, aj as Ut, ak as Yt, d as ft, B as Vt, X as xt, al as Zt, C as te, A as St, a4 as ee, F as oe, c as W, n as ht, q as se, am as ie, U as ne, h as ae, y as le, i as Nt, g as dt, P as re, a9 as ce, aa as he, an as de, S as gt, k as pe, $ as Wt, ao as Lt, E as mt, r as ut, f as Bt } from "./base-component--xj9oMJ8.mjs"; +import { v as fe } from "./index-ClQArkrm.mjs"; import { d as me } from "./dataBsToggle-B84TS15h.mjs"; import { s as pt } from "./showClass-C8hdJfjQ.mjs"; -import { a as ue, h as ge, m as bt, o as vt, r as be } from "./popupContainer-DSAMs3kR.mjs"; +import { a as ue, h as ge, m as bt, o as vt, r as be } from "./popupContainer-T6ricSTx.mjs"; import { f as $t } from "./fadeClass-CLIYI_zn.mjs"; const ot = "popover", ve = "Popover", v = "tooltip", $e = (s) => { const t = s === v, e = t ? `${s}-inner` : `${s}-body`, o = t ? "" : `

`, n = `
`, a = `
`; @@ -298,4 +298,4 @@ export { wt as s, Tt as t }; -//# sourceMappingURL=tooltip-CflbER55.mjs.map +//# sourceMappingURL=tooltip-33b5qaZo.mjs.map diff --git a/dist/components/tooltip-CflbER55.mjs.map b/dist/components/tooltip-33b5qaZo.mjs.map similarity index 99% rename from dist/components/tooltip-CflbER55.mjs.map rename to dist/components/tooltip-33b5qaZo.mjs.map index aaa368e6..1b1cd1dd 100644 --- a/dist/components/tooltip-CflbER55.mjs.map +++ b/dist/components/tooltip-33b5qaZo.mjs.map @@ -1 +1 @@ -{"version":3,"file":"tooltip-CflbER55.mjs","sources":["../../src/strings/popoverString.ts","../../src/strings/popoverComponent.ts","../../src/strings/tooltipString.ts","../../src/util/getTipTemplate.ts","../../src/util/tipClassPositions.ts","../../src/util/styleTip.ts","../../src/util/tooltipDefaults.ts","../../src/strings/dataOriginalTitle.ts","../../src/strings/tooltipComponent.ts","../../src/util/setHtml.ts","../../src/util/createTip.ts","../../src/util/getElementContainer.ts","../../src/components/tooltip.ts"],"sourcesContent":["/** @type {string} */\nconst popoverString = \"popover\";\nexport default popoverString;\n","/** @type {string} */\nconst popoverComponent = \"Popover\";\nexport default popoverComponent;\n","/** @type {string} */\nconst tooltipString = \"tooltip\";\nexport default tooltipString;\n","import tooltipString from \"../strings/tooltipString\";\n\n/**\n * Returns a template for Popover / Tooltip.\n *\n * @param tipType the expected markup type\n * @returns the template markup\n */\nconst getTipTemplate = (tipType: string) => {\n const isTooltip = tipType === tooltipString;\n const bodyClass = isTooltip ? `${tipType}-inner` : `${tipType}-body`;\n const header = !isTooltip ? `

` : \"\";\n const arrow = `
`;\n const body = `
`;\n return `
${\n header + arrow + body\n }
`;\n};\n\nexport default getTipTemplate;\n","const tipClassPositions = {\n top: \"top\",\n bottom: \"bottom\",\n left: \"start\",\n right: \"end\",\n};\n\nexport default tipClassPositions;\n","import {\n createCustomEvent,\n dispatchEvent,\n getBoundingClientRect,\n getDocumentElement,\n getElementStyle,\n getNodeScroll,\n getRectRelativeToOffsetParent,\n isHTMLElement,\n isRTL,\n setElementStyle,\n toLowerCase,\n} from \"@thednp/shorty\";\n\nimport tipClassPositions from \"./tipClassPositions\";\nimport Tooltip from \"../components/tooltip\";\nimport type { TooltipEvent } from \"../interface/tooltip\";\nimport type { PopoverEvent } from \"../interface/popover\";\n\n/**\n * Style popovers and tooltips.\n *\n * @param self the `Popover` / `Tooltip` instance\n */\nconst styleTip = (self: Tooltip) => {\n requestAnimationFrame(() => {\n const tipClasses = /\\b(top|bottom|start|end)+/;\n const { element, tooltip, container, offsetParent, options, arrow } = self;\n\n // istanbul ignore if @preserve\n if (!tooltip) return;\n const RTL = isRTL(element);\n const { x: scrollLeft, y: scrollTop } = getNodeScroll(offsetParent);\n\n // reset tooltip style (top: 0, left: 0 works best)\n setElementStyle(tooltip, {\n top: \"\",\n left: \"\",\n right: \"\",\n bottom: \"\",\n });\n const { offsetWidth: tipWidth, offsetHeight: tipHeight } = tooltip;\n const { clientWidth: htmlcw, clientHeight: htmlch, offsetWidth: htmlow } =\n getDocumentElement(element);\n let { placement } = options;\n const { clientWidth: parentCWidth, offsetWidth: parentOWidth } = container;\n const parentPosition = getElementStyle(\n container,\n \"position\",\n );\n const fixedParent = parentPosition === \"fixed\";\n const scrollbarWidth = fixedParent\n ? Math.abs(parentCWidth - parentOWidth)\n : Math.abs(htmlcw - htmlow);\n const leftBoundry = RTL && fixedParent\n ? /* istanbul ignore next @preserve */ scrollbarWidth\n : 0;\n const rightBoundry = htmlcw - (!RTL ? scrollbarWidth : 0) - 1;\n\n // reuse observer entry bounding box\n const observerEntry = self._observer.getEntry(element);\n const {\n width: elemWidth,\n height: elemHeight,\n left: elemRectLeft,\n right: elemRectRight,\n top: elemRectTop,\n } = observerEntry?.boundingClientRect ||\n getBoundingClientRect(element, true);\n\n const {\n x: elemOffsetLeft,\n y: elemOffsetTop,\n } = getRectRelativeToOffsetParent(\n element,\n offsetParent,\n { x: scrollLeft, y: scrollTop },\n );\n\n // reset arrow style\n setElementStyle(arrow as HTMLElement, {\n top: \"\",\n left: \"\",\n right: \"\",\n bottom: \"\",\n });\n let topPosition: number | string = 0;\n let bottomPosition: number | string = \"\";\n let leftPosition: number | string = 0;\n let rightPosition: number | string = \"\";\n let arrowTop: number | string = \"\";\n let arrowLeft: number | string = \"\";\n let arrowRight: number | string = \"\";\n\n const arrowWidth = arrow.offsetWidth || 0;\n const arrowHeight = arrow.offsetHeight || 0;\n const arrowAdjust = arrowWidth / 2;\n\n // check placement\n let topExceed = elemRectTop - tipHeight - arrowHeight < 0;\n let bottomExceed =\n elemRectTop + tipHeight + elemHeight + arrowHeight >= htmlch;\n let leftExceed = elemRectLeft - tipWidth - arrowWidth < leftBoundry;\n let rightExceed =\n elemRectLeft + tipWidth + elemWidth + arrowWidth >= rightBoundry;\n\n const horizontals = [\"left\", \"right\"];\n const verticals = [\"top\", \"bottom\"];\n\n topExceed = horizontals.includes(placement)\n ? elemRectTop + elemHeight / 2 - tipHeight / 2 - arrowHeight < 0\n : topExceed;\n bottomExceed = horizontals.includes(placement)\n ? elemRectTop + tipHeight / 2 + elemHeight / 2 + arrowHeight >= htmlch\n : bottomExceed;\n leftExceed = verticals.includes(placement)\n ? elemRectLeft + elemWidth / 2 - tipWidth / 2 < leftBoundry\n : leftExceed;\n rightExceed = verticals.includes(placement)\n ? elemRectLeft + tipWidth / 2 + elemWidth / 2 >= rightBoundry\n : rightExceed;\n\n // first remove side positions if both left and right limits are exceeded\n // we usually fall back to top|bottom\n placement = horizontals.includes(placement) && leftExceed && rightExceed\n ? \"top\"\n : placement;\n // recompute placement\n placement = placement === \"top\" && topExceed ? \"bottom\" : placement;\n placement = placement === \"bottom\" && bottomExceed ? \"top\" : placement;\n placement = placement === \"left\" && leftExceed ? \"right\" : placement;\n placement = placement === \"right\" && rightExceed\n ? \"left\"\n // istanbul ignore next @preserve\n : placement;\n\n // update tooltip/popover class\n // istanbul ignore else @preserve\n if (!tooltip.className.includes(placement)) {\n tooltip.className = tooltip.className.replace(\n tipClasses,\n tipClassPositions[placement],\n );\n }\n\n // compute tooltip / popover coordinates\n // istanbul ignore else @preserve\n if (horizontals.includes(placement)) {\n // secondary|side positions\n if (placement === \"left\") {\n // LEFT\n leftPosition = elemOffsetLeft - tipWidth - arrowWidth;\n } else {\n // RIGHT\n leftPosition = elemOffsetLeft + elemWidth + arrowWidth;\n }\n\n // adjust top and arrow\n if (topExceed && bottomExceed) {\n topPosition = 0;\n bottomPosition = 0;\n arrowTop = elemOffsetTop + elemHeight / 2 - arrowHeight / 2;\n } else if (topExceed) {\n topPosition = elemOffsetTop;\n bottomPosition = \"\";\n arrowTop = elemHeight / 2 - arrowWidth;\n } else if (bottomExceed) {\n topPosition = elemOffsetTop - tipHeight + elemHeight;\n bottomPosition = \"\";\n arrowTop = tipHeight - elemHeight / 2 - arrowWidth;\n } else {\n topPosition = elemOffsetTop - tipHeight / 2 + elemHeight / 2;\n arrowTop = tipHeight / 2 - arrowHeight / 2;\n }\n } else if (verticals.includes(placement)) {\n if (placement === \"top\") {\n topPosition = elemOffsetTop - tipHeight - arrowHeight;\n } else {\n // BOTTOM\n topPosition = elemOffsetTop + elemHeight + arrowHeight;\n }\n\n // adjust left | right and also the arrow\n if (leftExceed) {\n leftPosition = 0;\n arrowLeft = elemOffsetLeft + elemWidth / 2 - arrowAdjust;\n } else if (rightExceed) {\n leftPosition = \"auto\";\n rightPosition = 0;\n arrowRight = elemWidth / 2 + rightBoundry - elemRectRight - arrowAdjust;\n } else {\n leftPosition = elemOffsetLeft - tipWidth / 2 + elemWidth / 2;\n arrowLeft = tipWidth / 2 - arrowAdjust;\n }\n }\n\n // apply style to tooltip/popover\n setElementStyle(tooltip, {\n top: `${topPosition}px`,\n bottom: bottomPosition === \"\" ? \"\" : `${bottomPosition}px`,\n left: leftPosition === \"auto\" ? leftPosition : `${leftPosition}px`,\n right: rightPosition !== \"\" ? `${rightPosition}px` : \"\",\n });\n\n // update arrow placement\n // istanbul ignore else @preserve\n if (isHTMLElement(arrow)) {\n if (arrowTop !== \"\") {\n arrow.style.top = `${arrowTop}px`;\n }\n if (arrowLeft !== \"\") {\n arrow.style.left = `${arrowLeft}px`;\n } else if (arrowRight !== \"\") {\n arrow.style.right = `${arrowRight}px`;\n }\n }\n const updatedTooltipEvent = createCustomEvent<\n Record,\n TooltipEvent | PopoverEvent\n >(\n `updated.bs.${toLowerCase(self.name)}`,\n );\n dispatchEvent(element, updatedTooltipEvent);\n });\n};\n\nexport default styleTip;\n","import getTipTemplate from \"./getTipTemplate\";\nimport tooltipString from \"../strings/tooltipString\";\nimport { TooltipOptions } from \"../interface/tooltip\";\n\nconst tooltipDefaults: TooltipOptions = {\n template: getTipTemplate(tooltipString),\n title: \"\",\n customClass: \"\",\n trigger: \"hover focus\",\n placement: \"top\",\n sanitizeFn: undefined,\n animation: true,\n delay: 200,\n container: document.body,\n content: \"\",\n dismissible: false,\n btnClose: \"\",\n};\nexport default tooltipDefaults;\n","/**\n * Global namespace for `data-bs-title` attribute.\n */\nconst dataOriginalTitle = \"data-original-title\";\nexport default dataOriginalTitle;\n","/** @type {string} */\nconst tooltipComponent = \"Tooltip\";\nexport default tooltipComponent;\n","import {\n isArray,\n isFunction,\n isHTMLElement,\n isNode,\n isNodeList,\n isString,\n} from \"@thednp/shorty\";\n\n/**\n * Append an existing `Element` to Popover / Tooltip component or HTML\n * markup string to be parsed & sanitized to be used as popover / tooltip content.\n *\n * @param element target\n * @param content the `Element` to append / string\n * @param sanitizeFn a function to sanitize string content\n */\nconst setHtml = (\n element: HTMLElement,\n content: Node[] | Node | string,\n sanitizeFn?: (s: string) => string,\n) => {\n // istanbul ignore else @preserve\n if (isString(content) && content.length) {\n let dirty = content.trim(); // fixing #233\n if (isFunction(sanitizeFn)) dirty = sanitizeFn(dirty);\n\n const domParser = new DOMParser();\n const tempDocument = domParser.parseFromString(dirty, \"text/html\");\n element.append(...[...tempDocument.body.childNodes]);\n } else if (isHTMLElement(content)) {\n element.append(content);\n } else if (\n isNodeList(content) || (isArray(content) && content.every(isNode))\n ) {\n element.append(...[...content]);\n }\n};\nexport default setHtml;\n","import {\n addClass,\n createElement,\n hasClass,\n isHTMLElement,\n isRTL,\n querySelector,\n setAttribute,\n} from \"@thednp/shorty\";\n\nimport tooltipComponent from \"../strings/tooltipComponent\";\nimport tooltipString from \"../strings/tooltipString\";\nimport popoverString from \"../strings/popoverString\";\nimport fadeClass from \"../strings/fadeClass\";\nimport tipClassPositions from \"./tipClassPositions\";\nimport setHtml from \"./setHtml\";\nimport Tooltip from \"../components/tooltip\";\nimport Popover from \"../components/popover\";\n\n/**\n * Creates a new tooltip / popover.\n *\n * @param self the `Tooltip` / `Popover` instance\n */\nconst createTip = (self: Tooltip | Popover) => {\n const isTooltip = self.name === tooltipComponent;\n\n const { id, element, options } = self;\n const {\n title,\n placement,\n template,\n animation,\n customClass,\n sanitizeFn,\n dismissible,\n content,\n btnClose,\n } = options;\n const tipString = isTooltip ? tooltipString : popoverString;\n const tipPositions = { ...tipClassPositions };\n let titleParts: Node[] = [];\n let contentParts: Node[] = [];\n\n if (isRTL(element)) {\n tipPositions.left = \"end\";\n tipPositions.right = \"start\";\n }\n\n // set initial popover class\n const placementClass = `bs-${tipString}-${tipPositions[placement]}`;\n\n // load template\n let tooltipTemplate: Node | string;\n if (isHTMLElement(template)) {\n tooltipTemplate = template;\n } else {\n const htmlMarkup = createElement(\"div\") as HTMLElement;\n setHtml(htmlMarkup, template, sanitizeFn);\n tooltipTemplate = htmlMarkup.firstChild as HTMLElement;\n }\n\n /* istanbul ignore if @preserve */\n if (!isHTMLElement(tooltipTemplate)) return;\n\n // set popover markup\n self.tooltip = tooltipTemplate.cloneNode(true) as HTMLElement;\n const { tooltip } = self;\n\n // set id and role attributes\n setAttribute(tooltip, \"id\", id);\n setAttribute(tooltip, \"role\", tooltipString);\n\n const bodyClass = isTooltip\n ? `${tooltipString}-inner`\n : `${popoverString}-body`;\n const tooltipHeader = isTooltip\n ? null\n : querySelector(`.${popoverString}-header`, tooltip);\n const tooltipBody = querySelector(`.${bodyClass}`, tooltip);\n\n // set arrow and enable access for styleTip\n self.arrow = querySelector(\n `.${tipString}-arrow`,\n tooltip,\n ) as HTMLElement;\n const { arrow } = self;\n\n if (isHTMLElement(title)) titleParts = [title.cloneNode(true)];\n else {\n const tempTitle = createElement(\"div\") as HTMLElement;\n setHtml(tempTitle, title, sanitizeFn);\n titleParts = [...[...tempTitle.childNodes]];\n }\n\n if (isHTMLElement(content)) contentParts = [content.cloneNode(true)];\n else {\n const tempContent = createElement(\"div\") as HTMLElement;\n setHtml(tempContent, content, sanitizeFn);\n contentParts = [...[...tempContent.childNodes]];\n }\n\n // set dismissible button\n if (dismissible) {\n if (title) {\n if (isHTMLElement(btnClose)) {\n titleParts = [...titleParts, btnClose.cloneNode(true)];\n } else {\n const tempBtn = createElement(\"div\") as HTMLElement;\n setHtml(tempBtn, btnClose, sanitizeFn);\n titleParts = [...titleParts, tempBtn.firstChild as Node];\n }\n } else {\n // istanbul ignore else @preserve\n if (tooltipHeader) tooltipHeader.remove();\n if (isHTMLElement(btnClose)) {\n contentParts = [...contentParts, btnClose.cloneNode(true)];\n } else {\n const tempBtn = createElement(\"div\") as HTMLElement;\n setHtml(tempBtn, btnClose, sanitizeFn);\n contentParts = [...contentParts, tempBtn.firstChild as Node];\n }\n }\n }\n\n // fill the template with content from options / data attributes\n // also sanitize title && content\n // istanbul ignore else @preserve\n if (!isTooltip) {\n // istanbul ignore else @preserve\n if (title && tooltipHeader) {\n setHtml(tooltipHeader, titleParts, sanitizeFn);\n }\n // istanbul ignore else @preserve\n if (content && tooltipBody) {\n setHtml(tooltipBody, contentParts, sanitizeFn);\n }\n // set btn\n self.btn = querySelector(\".btn-close\", tooltip) ||\n undefined;\n } else if (title && tooltipBody) setHtml(tooltipBody, title, sanitizeFn);\n\n // Bootstrap 5.2.x\n addClass(tooltip, \"position-absolute\");\n addClass(arrow, \"position-absolute\");\n\n // set popover animation and placement\n // istanbul ignore else @preserve\n if (!hasClass(tooltip, tipString)) addClass(tooltip, tipString);\n // istanbul ignore else @preserve\n if (animation && !hasClass(tooltip, fadeClass)) {\n addClass(tooltip, fadeClass);\n }\n // istanbul ignore else @preserve\n if (customClass && !hasClass(tooltip, customClass)) {\n addClass(tooltip, customClass);\n }\n // istanbul ignore else @preserve\n if (!hasClass(tooltip, placementClass)) addClass(tooltip, placementClass);\n};\n\nexport default createTip;\n","import {\n getDocument,\n getElementStyle,\n getParentNode,\n isShadowRoot,\n isTableElement,\n} from \"@thednp/shorty\";\n\n/**\n * Returns an `HTMLElement` to be used as default value for *options.container*\n * for `Tooltip` / `Popover` components.\n *\n * @see https://github.com/floating-ui/floating-ui\n *\n * @param element the target\n * @returns the query result\n */\nconst getElementContainer = (element: Element) => {\n const majorBlockTags = [\"HTML\", \"BODY\"];\n const containers: HTMLElement[] = [];\n let { parentNode } = element;\n\n while (parentNode && !majorBlockTags.includes(parentNode.nodeName)) {\n parentNode = getParentNode(parentNode) as HTMLElement;\n // istanbul ignore else @preserve\n if (!(isShadowRoot(parentNode) || isTableElement(parentNode))) {\n containers.push(parentNode as HTMLElement);\n }\n }\n\n return (\n containers.find((c, i) => {\n if (\n ((getElementStyle(c, \"position\") !== \"relative\" ||\n getElementStyle(c, \"position\") === \"relative\" &&\n c.offsetHeight !== c.scrollHeight) &&\n containers.slice(i + 1).every((r) =>\n getElementStyle(r, \"position\") === \"static\"\n ))\n ) {\n return c;\n }\n return null;\n }) ||\n /* istanbul ignore next: optional guard */\n getDocument(element).body\n );\n};\n\nexport default getElementContainer;\n","/* Native JavaScript for Bootstrap 5 | Tooltip\n---------------------------------------------- */\nimport {\n addClass,\n ariaDescribedBy,\n closest,\n createCustomEvent,\n dispatchEvent,\n emulateTransitionEnd,\n focus,\n focusEvent,\n focusinEvent,\n focusoutEvent,\n getAttribute,\n getDocument,\n getElementStyle,\n getInstance,\n getUID,\n getWindow,\n hasAttribute,\n hasClass,\n isApple,\n mouseclickEvent,\n mousedownEvent,\n mouseenterEvent,\n mousehoverEvent,\n mouseleaveEvent,\n ObjectAssign,\n passiveHandler,\n removeAttribute,\n removeClass,\n setAttribute,\n Timer,\n toLowerCase,\n TouchEvent,\n touchstartEvent,\n} from \"@thednp/shorty\";\n\nimport { addListener, removeListener } from \"@thednp/event-listener\";\nimport PositionObserver from \"@thednp/position-observer\";\n\nimport dataBsToggle from \"~/strings/dataBsToggle\";\nimport dataOriginalTitle from \"~/strings/dataOriginalTitle\";\nimport showClass from \"~/strings/showClass\";\nimport tooltipString from \"~/strings/tooltipString\";\nimport tooltipComponent from \"~/strings/tooltipComponent\";\nimport popoverString from \"~/strings/popoverString\";\nimport popoverComponent from \"~/strings/popoverComponent\";\nimport modalString from \"~/strings/modalString\";\nimport offcanvasString from \"~/strings/offcanvasString\";\n\nimport styleTip from \"~/util/styleTip\";\nimport createTip from \"~/util/createTip\";\nimport { appendPopup, hasPopup, removePopup } from \"~/util/popupContainer\";\nimport getElementContainer from \"~/util/getElementContainer\";\nimport tooltipDefaults from \"~/util/tooltipDefaults\";\nimport BaseComponent from \"./base-component\";\nimport type { TooltipEvent, TooltipOptions } from \"~/interface/tooltip\";\nimport type { PopoverEvent, PopoverOptions } from \"~/interface/popover\";\n\n// TOOLTIP PRIVATE GC\n// ==================\nconst tooltipSelector =\n `[${dataBsToggle}=\"${tooltipString}\"],[data-tip=\"${tooltipString}\"]`;\nconst titleAttr = \"title\";\n\n/**\n * Static method which returns an existing `Tooltip` instance associated\n * to a target `Element`.\n */\nlet getTooltipInstance = (element: Element) =>\n getInstance(element, tooltipComponent);\n\n/**\n * A `Tooltip` initialization callback.\n */\nconst tooltipInitCallback = (element: Element) => new Tooltip(element);\n\n// TOOLTIP PRIVATE METHODS\n// =======================\n/**\n * Removes the tooltip from the DOM.\n *\n * @param self the `Tooltip` instance\n */\nconst removeTooltip = (self: Tooltip) => {\n const { element, tooltip, container } = self;\n removeAttribute(element, ariaDescribedBy);\n removePopup(\n tooltip,\n container,\n );\n};\n\n/**\n * Check if container contains the tooltip.\n *\n * @param self Tooltip\n */\nconst hasTip = (self: Tooltip): boolean | undefined => {\n const { tooltip, container } = self;\n\n return tooltip &&\n hasPopup(tooltip, container);\n};\n\n/**\n * Executes after the instance has been disposed.\n *\n * @param self the `Tooltip` instance\n * @param callback the parent dispose callback\n */\nconst disposeTooltipComplete = (self: Tooltip, callback?: () => void) => {\n const { element } = self;\n self._toggleEventListeners();\n\n // istanbul ignore else @preserve\n if (\n hasAttribute(element, dataOriginalTitle) && self.name === tooltipComponent\n ) {\n toggleTooltipTitle(self);\n }\n // istanbul ignore else @preserve\n if (callback) callback();\n};\n\n/**\n * Toggles on/off the special `Tooltip` event listeners.\n *\n * @param self the `Tooltip` instance\n * @param add when `true`, event listeners are added\n */\nconst toggleTooltipAction = (self: Tooltip, add?: boolean) => {\n const action = add ? addListener : removeListener;\n const { element } = self;\n\n action(\n getDocument(element),\n touchstartEvent,\n self.handleTouch,\n passiveHandler,\n );\n};\n\n/**\n * Executes after the tooltip was shown to the user.\n *\n * @param self the `Tooltip` instance\n */\nconst tooltipShownAction = (self: Tooltip) => {\n const { element } = self;\n const shownTooltipEvent = createCustomEvent<\n Record,\n TooltipEvent | PopoverEvent\n >(\n `shown.bs.${toLowerCase(self.name)}`,\n );\n\n toggleTooltipAction(self, true);\n dispatchEvent(element, shownTooltipEvent);\n Timer.clear(element, \"in\");\n};\n\n/**\n * Executes after the tooltip was hidden to the user.\n *\n * @param self the `Tooltip` instance\n */\nconst tooltipHiddenAction = (self: Tooltip) => {\n const { element } = self;\n const hiddenTooltipEvent = createCustomEvent<\n Record,\n TooltipEvent | PopoverEvent\n >(\n `hidden.bs.${toLowerCase(self.name)}`,\n );\n\n toggleTooltipAction(self);\n removeTooltip(self);\n dispatchEvent(element, hiddenTooltipEvent);\n\n Timer.clear(element, \"out\");\n};\n\n/**\n * Toggles on/off the `Tooltip` event listeners that hide/update the tooltip.\n *\n * @param self the `Tooltip` instance\n * @param add when `true`, event listeners are added\n */\nconst toggleTooltipOpenHandlers = (self: Tooltip, add?: boolean) => {\n const action = add ? addListener : removeListener;\n const { element, tooltip } = self;\n const parentModal = closest(element, `.${modalString}`);\n const parentOffcanvas = closest(element, `.${offcanvasString}`);\n\n if (add) {\n [element, tooltip]\n .forEach((target) => self._observer.observe(target));\n } else self._observer.disconnect();\n\n // dismiss tooltips inside modal / offcanvas\n if (parentModal) {\n action(parentModal, `hide.bs.${modalString}`, self.handleHide);\n }\n if (parentOffcanvas) {\n action(parentOffcanvas, `hide.bs.${offcanvasString}`, self.handleHide);\n }\n};\n\n/**\n * Toggles the `title` and `data-original-title` attributes.\n *\n * @param self the `Tooltip` instance\n * @param content when `true`, event listeners are added\n */\nconst toggleTooltipTitle = (self: Tooltip, content?: string) => {\n // [0 - add, 1 - remove] | [0 - remove, 1 - add]\n const titleAtt = [dataOriginalTitle, titleAttr];\n const { element } = self;\n\n setAttribute(\n element,\n titleAtt[content ? 0 : 1],\n content ||\n getAttribute(element, titleAtt[0]) ||\n // istanbul ignore next @preserve\n \"\",\n );\n removeAttribute(element, titleAtt[content ? 1 : 0]);\n};\n\n// TOOLTIP DEFINITION\n// ==================\n/** Creates a new `Tooltip` instance. */\nexport default class Tooltip extends BaseComponent {\n static selector = tooltipSelector;\n static init = tooltipInitCallback;\n static getInstance = getTooltipInstance;\n static styleTip = styleTip;\n declare element: Element & HTMLOrSVGElement;\n declare options: TooltipOptions;\n declare btn?: HTMLElement;\n declare tooltip: HTMLElement;\n declare container: HTMLElement;\n declare offsetParent: Element | Window;\n declare arrow: HTMLElement;\n declare enabled: boolean;\n declare id: string;\n declare _observer: PositionObserver;\n\n /**\n * @param target the target element\n * @param config the instance options\n */\n constructor(target: Element | string, config?: Partial) {\n super(target, config);\n\n const { element } = this;\n const isTooltip = this.name === tooltipComponent;\n const tipString = isTooltip ? tooltipString : popoverString;\n const tipComponent = isTooltip ? tooltipComponent : popoverComponent;\n\n // istanbul ignore next @preserve: this is to set Popover too\n getTooltipInstance = (elem: Element) =>\n getInstance(elem, tipComponent);\n\n // additional properties\n this.enabled = true;\n /** Set unique ID for `aria-describedby`. */\n this.id = `${tipString}-${getUID(element, tipString)}`;\n\n // instance options\n const { options } = this;\n\n // invalidate\n // istanbul ignore else @preserve\n if (((!options.title && isTooltip) || (!isTooltip && !options.content))) {\n return;\n }\n\n // reset default options\n ObjectAssign(tooltipDefaults, { titleAttr: \"\" });\n\n // set title attributes and add event listeners\n // istanbul ignore else @preserve\n if (\n hasAttribute(element, titleAttr) && isTooltip &&\n typeof options.title === \"string\"\n ) {\n toggleTooltipTitle(this, options.title);\n }\n\n // set containers\n const container = getElementContainer(element);\n const offsetParent = [\"sticky\", \"fixed\", \"relative\"].some(\n (position) =>\n getElementStyle(container, \"position\") ===\n position,\n )\n ? container\n : getWindow(element);\n\n this.container = container;\n this.offsetParent = offsetParent;\n\n // create tooltip here\n createTip(this);\n\n /* istanbul ignore if @preserve */\n if (!this.tooltip) return;\n\n // create observer\n this._observer = new PositionObserver(() => this.update());\n\n // attach events\n this._toggleEventListeners(true);\n }\n\n /**\n * Returns component name string.\n */\n get name() {\n return tooltipComponent;\n }\n /**\n * Returns component default options.\n */\n get defaults() {\n return tooltipDefaults;\n }\n\n // TOOLTIP PUBLIC METHODS\n // ======================\n /** Handles the focus event on iOS. */\n // istanbul ignore next @preserve - impossible to test without Apple device\n handleFocus = () => focus(this.element as HTMLElement);\n /** Shows the tooltip. */\n handleShow = () => this.show();\n show() {\n const { options, tooltip, element, container, id } = this;\n const { animation } = options;\n const outTimer = Timer.get(element, \"out\");\n\n Timer.clear(element, \"out\");\n\n if (tooltip && !outTimer && !hasTip(this)) {\n Timer.set(\n element,\n () => {\n const showTooltipEvent = createCustomEvent<\n Record,\n TooltipEvent | PopoverEvent\n >(\n `show.bs.${toLowerCase(this.name)}`,\n );\n dispatchEvent(element, showTooltipEvent);\n\n // istanbul ignore else @preserve\n if (!showTooltipEvent.defaultPrevented) {\n // append to container\n appendPopup(tooltip, container);\n\n setAttribute(element, ariaDescribedBy, `#${id}`);\n\n this.update();\n toggleTooltipOpenHandlers(this, true);\n\n // istanbul ignore else @preserve\n if (!hasClass(tooltip, showClass)) addClass(tooltip, showClass);\n // istanbul ignore else @preserve\n if (animation) {\n emulateTransitionEnd(tooltip, () => tooltipShownAction(this));\n } else tooltipShownAction(this);\n }\n },\n 17,\n \"in\",\n );\n }\n }\n\n /** Hides the tooltip. */\n handleHide = () => this.hide();\n hide() {\n const { options, tooltip, element } = this;\n const { animation, delay } = options;\n\n Timer.clear(element, \"in\");\n\n // istanbul ignore else @preserve\n if (tooltip && hasTip(this)) {\n Timer.set(\n element,\n () => {\n const hideTooltipEvent = createCustomEvent<\n Record,\n TooltipEvent | PopoverEvent\n >(\n `hide.bs.${toLowerCase(this.name)}`,\n );\n dispatchEvent(element, hideTooltipEvent);\n\n // istanbul ignore else @preserve\n if (!hideTooltipEvent.defaultPrevented) {\n this.update();\n removeClass(tooltip, showClass);\n toggleTooltipOpenHandlers(this);\n\n // istanbul ignore else @preserve\n if (animation) {\n emulateTransitionEnd(tooltip, () => tooltipHiddenAction(this));\n } else tooltipHiddenAction(this);\n }\n },\n delay + 17,\n \"out\",\n );\n }\n }\n\n /** Updates the tooltip position. */\n update = () => {\n styleTip(this);\n };\n\n /** Toggles the tooltip visibility. */\n toggle = () => {\n const { tooltip } = this;\n\n if (tooltip && !hasTip(this)) this.show();\n else this.hide();\n };\n\n /** Enables the tooltip. */\n enable() {\n const { enabled } = this;\n // istanbul ignore else @preserve\n if (!enabled) {\n this._toggleEventListeners(true);\n this.enabled = !enabled;\n }\n }\n\n /** Disables the tooltip. */\n disable() {\n const { tooltip, enabled } = this;\n // istanbul ignore else @preserve\n if (enabled) {\n if (tooltip && hasTip(this)) this.hide();\n this._toggleEventListeners();\n this.enabled = !enabled;\n }\n }\n\n /** Toggles the `disabled` property. */\n toggleEnabled() {\n if (!this.enabled) this.enable();\n else this.disable();\n }\n\n /**\n * Handles the `touchstart` event listener for `Tooltip`\n *\n * @this {Tooltip}\n * @param {TouchEvent} e the `Event` object\n */\n handleTouch = ({ target }: TouchEvent) => {\n const { tooltip, element } = this;\n\n // istanbul ignore if @preserve\n if (\n (tooltip && tooltip.contains(target)) ||\n target === element ||\n (target && element.contains(target))\n ) {\n // smile for ESLint\n } else {\n this.hide();\n }\n };\n\n /**\n * Toggles on/off the `Tooltip` event listeners.\n *\n * @param add when `true`, event listeners are added\n */\n _toggleEventListeners = (add?: boolean) => {\n const action = add ? addListener : removeListener;\n // btn is only for dismissible popover\n const { element, options, btn } = this;\n const { trigger } = options;\n const isPopover = this.name !== tooltipComponent;\n const dismissible = isPopover && (options as PopoverOptions).dismissible\n ? true\n : false;\n\n // istanbul ignore else @preserve\n if (!trigger.includes(\"manual\")) {\n this.enabled = !!add;\n\n const triggerOptions = trigger.split(\" \");\n\n triggerOptions.forEach((tr) => {\n // istanbul ignore else @preserve\n if (tr === mousehoverEvent) {\n action(element, mousedownEvent, this.handleShow);\n action(element, mouseenterEvent, this.handleShow);\n\n // istanbul ignore else @preserve\n if (!dismissible) {\n action(element, mouseleaveEvent, this.handleHide);\n action(\n getDocument(element),\n touchstartEvent,\n this.handleTouch,\n passiveHandler,\n );\n }\n } else if (tr === mouseclickEvent) {\n action(element, tr, !dismissible ? this.toggle : this.handleShow);\n } else if (tr === focusEvent) {\n action(element, focusinEvent, this.handleShow);\n // istanbul ignore else @preserve\n if (!dismissible) action(element, focusoutEvent, this.handleHide);\n // istanbul ignore else @preserve\n if (isApple()) {\n action(element, mouseclickEvent, this.handleFocus);\n }\n }\n // istanbul ignore else @preserve\n if (dismissible && btn) {\n action(btn, mouseclickEvent, this.handleHide);\n }\n });\n }\n };\n\n /** Removes the `Tooltip` from the target element. */\n dispose() {\n const { tooltip, options } = this;\n const clone = { ...this, name: this.name };\n const callback = () =>\n setTimeout(\n () => disposeTooltipComplete(clone, () => super.dispose()),\n 17,\n );\n\n if (options.animation && hasTip(clone)) {\n this.options.delay = 0; // reset delay\n this.hide();\n emulateTransitionEnd(tooltip, callback);\n } else {\n callback();\n }\n }\n}\n"],"names":["popoverString","popoverComponent","tooltipString","getTipTemplate","tipType","isTooltip","bodyClass","header","arrow","body","tipClassPositions","styleTip","self","tipClasses","element","tooltip","container","offsetParent","options","RTL","isRTL","scrollLeft","scrollTop","getNodeScroll","setElementStyle","tipWidth","tipHeight","htmlcw","htmlch","htmlow","getDocumentElement","placement","parentCWidth","parentOWidth","fixedParent","getElementStyle","scrollbarWidth","leftBoundry","rightBoundry","observerEntry","elemWidth","elemHeight","elemRectLeft","elemRectRight","elemRectTop","getBoundingClientRect","elemOffsetLeft","elemOffsetTop","getRectRelativeToOffsetParent","topPosition","bottomPosition","leftPosition","rightPosition","arrowTop","arrowLeft","arrowRight","arrowWidth","arrowHeight","arrowAdjust","topExceed","bottomExceed","leftExceed","rightExceed","horizontals","verticals","isHTMLElement","updatedTooltipEvent","createCustomEvent","toLowerCase","dispatchEvent","tooltipDefaults","dataOriginalTitle","tooltipComponent","setHtml","content","sanitizeFn","isString","dirty","isFunction","tempDocument","isNodeList","isArray","isNode","createTip","id","title","template","animation","customClass","dismissible","btnClose","tipString","tipPositions","titleParts","contentParts","placementClass","tooltipTemplate","htmlMarkup","createElement","setAttribute","tooltipHeader","querySelector","tooltipBody","tempTitle","tempContent","tempBtn","addClass","hasClass","fadeClass","getElementContainer","majorBlockTags","containers","parentNode","getParentNode","isShadowRoot","isTableElement","c","i","r","getDocument","tooltipSelector","dataBsToggle","titleAttr","getTooltipInstance","getInstance","tooltipInitCallback","Tooltip","removeTooltip","removeAttribute","ariaDescribedBy","removePopup","hasTip","hasPopup","disposeTooltipComplete","callback","hasAttribute","toggleTooltipTitle","toggleTooltipAction","add","action","addListener","removeListener","touchstartEvent","passiveHandler","tooltipShownAction","shownTooltipEvent","Timer","tooltipHiddenAction","hiddenTooltipEvent","toggleTooltipOpenHandlers","parentModal","closest","modalString","parentOffcanvas","offcanvasString","target","titleAtt","getAttribute","BaseComponent","config","tipComponent","elem","getUID","ObjectAssign","position","getWindow","PositionObserver","focus","outTimer","showTooltipEvent","appendPopup","showClass","emulateTransitionEnd","delay","hideTooltipEvent","removeClass","enabled","btn","trigger","tr","mousehoverEvent","mousedownEvent","mouseenterEvent","mouseleaveEvent","mouseclickEvent","focusEvent","focusinEvent","focusoutEvent","isApple","clone"],"mappings":";;;;;;AACA,MAAMA,KAAgB,WCAhBC,KAAmB,WCAnBC,IAAgB,WCEhBC,KAAiB,CAACC,MAAoB;AAC1C,QAAMC,IAAYD,MAAYF,GACxBI,IAAYD,IAAY,GAAGD,CAAO,WAAW,GAAGA,CAAO,SACvDG,IAAUF,IAAoD,KAAxC,cAAcD,CAAO,kBAC3CI,IAAQ,eAAeJ,CAAO,kBAC9BK,IAAO,eAAeH,CAAS;AACrC,SAAO,eAAeF,CAAO,WAAWF,CAAa,KACnDK,IAASC,IAAQC,CACnB;AACF,GCZMC,KAAoB;AAAA,EAC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O0D,CAAK,KACnC,KAAK,QAAQ,QAAQ,GACrB,KAAK,KAAK,GACVjB,GAAqB7J,GAASuH,CAAQ,KAE7BA,EAAA;AAAA,EACX;AAEJ;"} \ No newline at end of file +{"version":3,"file":"tooltip-33b5qaZo.mjs","sources":["../../src/strings/popoverString.ts","../../src/strings/popoverComponent.ts","../../src/strings/tooltipString.ts","../../src/util/getTipTemplate.ts","../../src/util/tipClassPositions.ts","../../src/util/styleTip.ts","../../src/util/tooltipDefaults.ts","../../src/strings/dataOriginalTitle.ts","../../src/strings/tooltipComponent.ts","../../src/util/setHtml.ts","../../src/util/createTip.ts","../../src/util/getElementContainer.ts","../../src/components/tooltip.ts"],"sourcesContent":["/** @type {string} */\nconst popoverString = \"popover\";\nexport default popoverString;\n","/** @type {string} */\nconst popoverComponent = \"Popover\";\nexport default popoverComponent;\n","/** @type {string} */\nconst tooltipString = \"tooltip\";\nexport default tooltipString;\n","import tooltipString from \"../strings/tooltipString\";\n\n/**\n * Returns a template for Popover / Tooltip.\n *\n * @param tipType the expected markup type\n * @returns the template markup\n */\nconst getTipTemplate = (tipType: string) => {\n const isTooltip = tipType === tooltipString;\n const bodyClass = isTooltip ? `${tipType}-inner` : `${tipType}-body`;\n const header = !isTooltip ? `

` : \"\";\n const arrow = `
`;\n const body = `
`;\n return `
${\n header + arrow + body\n }
`;\n};\n\nexport default getTipTemplate;\n","const tipClassPositions = {\n top: \"top\",\n bottom: \"bottom\",\n left: \"start\",\n right: \"end\",\n};\n\nexport default tipClassPositions;\n","import {\n createCustomEvent,\n dispatchEvent,\n getBoundingClientRect,\n getDocumentElement,\n getElementStyle,\n getNodeScroll,\n getRectRelativeToOffsetParent,\n isHTMLElement,\n isRTL,\n setElementStyle,\n toLowerCase,\n} from \"@thednp/shorty\";\n\nimport tipClassPositions from \"./tipClassPositions\";\nimport Tooltip from \"../components/tooltip\";\nimport type { TooltipEvent } from \"../interface/tooltip\";\nimport type { PopoverEvent } from \"../interface/popover\";\n\n/**\n * Style popovers and tooltips.\n *\n * @param self the `Popover` / `Tooltip` instance\n */\nconst styleTip = (self: Tooltip) => {\n requestAnimationFrame(() => {\n const tipClasses = /\\b(top|bottom|start|end)+/;\n const { element, tooltip, container, offsetParent, options, arrow } = self;\n\n // istanbul ignore if @preserve\n if (!tooltip) return;\n const RTL = isRTL(element);\n const { x: scrollLeft, y: scrollTop } = getNodeScroll(offsetParent);\n\n // reset tooltip style (top: 0, left: 0 works best)\n setElementStyle(tooltip, {\n top: \"\",\n left: \"\",\n right: \"\",\n bottom: \"\",\n });\n const { offsetWidth: tipWidth, offsetHeight: tipHeight } = tooltip;\n const { clientWidth: htmlcw, clientHeight: htmlch, offsetWidth: htmlow } =\n getDocumentElement(element);\n let { placement } = options;\n const { clientWidth: parentCWidth, offsetWidth: parentOWidth } = container;\n const parentPosition = getElementStyle(\n container,\n \"position\",\n );\n const fixedParent = parentPosition === \"fixed\";\n const scrollbarWidth = fixedParent\n ? Math.abs(parentCWidth - parentOWidth)\n : Math.abs(htmlcw - htmlow);\n const leftBoundry = RTL && fixedParent\n ? /* istanbul ignore next @preserve */ scrollbarWidth\n : 0;\n const rightBoundry = htmlcw - (!RTL ? scrollbarWidth : 0) - 1;\n\n // reuse observer entry bounding box\n const observerEntry = self._observer.getEntry(element);\n const {\n width: elemWidth,\n height: elemHeight,\n left: elemRectLeft,\n right: elemRectRight,\n top: elemRectTop,\n } = observerEntry?.boundingClientRect ||\n getBoundingClientRect(element, true);\n\n const {\n x: elemOffsetLeft,\n y: elemOffsetTop,\n } = getRectRelativeToOffsetParent(\n element,\n offsetParent,\n { x: scrollLeft, y: scrollTop },\n );\n\n // reset arrow style\n setElementStyle(arrow as HTMLElement, {\n top: \"\",\n left: \"\",\n right: \"\",\n bottom: \"\",\n });\n let topPosition: number | string = 0;\n let bottomPosition: number | string = \"\";\n let leftPosition: number | string = 0;\n let rightPosition: number | string = \"\";\n let arrowTop: number | string = \"\";\n let arrowLeft: number | string = \"\";\n let arrowRight: number | string = \"\";\n\n const arrowWidth = arrow.offsetWidth || 0;\n const arrowHeight = arrow.offsetHeight || 0;\n const arrowAdjust = arrowWidth / 2;\n\n // check placement\n let topExceed = elemRectTop - tipHeight - arrowHeight < 0;\n let bottomExceed =\n elemRectTop + tipHeight + elemHeight + arrowHeight >= htmlch;\n let leftExceed = elemRectLeft - tipWidth - arrowWidth < leftBoundry;\n let rightExceed =\n elemRectLeft + tipWidth + elemWidth + arrowWidth >= rightBoundry;\n\n const horizontals = [\"left\", \"right\"];\n const verticals = [\"top\", \"bottom\"];\n\n topExceed = horizontals.includes(placement)\n ? elemRectTop + elemHeight / 2 - tipHeight / 2 - arrowHeight < 0\n : topExceed;\n bottomExceed = horizontals.includes(placement)\n ? elemRectTop + tipHeight / 2 + elemHeight / 2 + arrowHeight >= htmlch\n : bottomExceed;\n leftExceed = verticals.includes(placement)\n ? elemRectLeft + elemWidth / 2 - tipWidth / 2 < leftBoundry\n : leftExceed;\n rightExceed = verticals.includes(placement)\n ? elemRectLeft + tipWidth / 2 + elemWidth / 2 >= rightBoundry\n : rightExceed;\n\n // first remove side positions if both left and right limits are exceeded\n // we usually fall back to top|bottom\n placement = horizontals.includes(placement) && leftExceed && rightExceed\n ? \"top\"\n : placement;\n // recompute placement\n placement = placement === \"top\" && topExceed ? \"bottom\" : placement;\n placement = placement === \"bottom\" && bottomExceed ? \"top\" : placement;\n placement = placement === \"left\" && leftExceed ? \"right\" : placement;\n placement = placement === \"right\" && rightExceed\n ? \"left\"\n // istanbul ignore next @preserve\n : placement;\n\n // update tooltip/popover class\n // istanbul ignore else @preserve\n if (!tooltip.className.includes(placement)) {\n tooltip.className = tooltip.className.replace(\n tipClasses,\n tipClassPositions[placement],\n );\n }\n\n // compute tooltip / popover coordinates\n // istanbul ignore else @preserve\n if (horizontals.includes(placement)) {\n // secondary|side positions\n if (placement === \"left\") {\n // LEFT\n leftPosition = elemOffsetLeft - tipWidth - arrowWidth;\n } else {\n // RIGHT\n leftPosition = elemOffsetLeft + elemWidth + arrowWidth;\n }\n\n // adjust top and arrow\n if (topExceed && bottomExceed) {\n topPosition = 0;\n bottomPosition = 0;\n arrowTop = elemOffsetTop + elemHeight / 2 - arrowHeight / 2;\n } else if (topExceed) {\n topPosition = elemOffsetTop;\n bottomPosition = \"\";\n arrowTop = elemHeight / 2 - arrowWidth;\n } else if (bottomExceed) {\n topPosition = elemOffsetTop - tipHeight + elemHeight;\n bottomPosition = \"\";\n arrowTop = tipHeight - elemHeight / 2 - arrowWidth;\n } else {\n topPosition = elemOffsetTop - tipHeight / 2 + elemHeight / 2;\n arrowTop = tipHeight / 2 - arrowHeight / 2;\n }\n } else if (verticals.includes(placement)) {\n if (placement === \"top\") {\n topPosition = elemOffsetTop - tipHeight - arrowHeight;\n } else {\n // BOTTOM\n topPosition = elemOffsetTop + elemHeight + arrowHeight;\n }\n\n // adjust left | right and also the arrow\n if (leftExceed) {\n leftPosition = 0;\n arrowLeft = elemOffsetLeft + elemWidth / 2 - arrowAdjust;\n } else if (rightExceed) {\n leftPosition = \"auto\";\n rightPosition = 0;\n arrowRight = elemWidth / 2 + rightBoundry - elemRectRight - arrowAdjust;\n } else {\n leftPosition = elemOffsetLeft - tipWidth / 2 + elemWidth / 2;\n arrowLeft = tipWidth / 2 - arrowAdjust;\n }\n }\n\n // apply style to tooltip/popover\n setElementStyle(tooltip, {\n top: `${topPosition}px`,\n bottom: bottomPosition === \"\" ? \"\" : `${bottomPosition}px`,\n left: leftPosition === \"auto\" ? leftPosition : `${leftPosition}px`,\n right: rightPosition !== \"\" ? `${rightPosition}px` : \"\",\n });\n\n // update arrow placement\n // istanbul ignore else @preserve\n if (isHTMLElement(arrow)) {\n if (arrowTop !== \"\") {\n arrow.style.top = `${arrowTop}px`;\n }\n if (arrowLeft !== \"\") {\n arrow.style.left = `${arrowLeft}px`;\n } else if (arrowRight !== \"\") {\n arrow.style.right = `${arrowRight}px`;\n }\n }\n const updatedTooltipEvent = createCustomEvent<\n Record,\n TooltipEvent | PopoverEvent\n >(\n `updated.bs.${toLowerCase(self.name)}`,\n );\n dispatchEvent(element, updatedTooltipEvent);\n });\n};\n\nexport default styleTip;\n","import getTipTemplate from \"./getTipTemplate\";\nimport tooltipString from \"../strings/tooltipString\";\nimport { TooltipOptions } from \"../interface/tooltip\";\n\nconst tooltipDefaults: TooltipOptions = {\n template: getTipTemplate(tooltipString),\n title: \"\",\n customClass: \"\",\n trigger: \"hover focus\",\n placement: \"top\",\n sanitizeFn: undefined,\n animation: true,\n delay: 200,\n container: document.body,\n content: \"\",\n dismissible: false,\n btnClose: \"\",\n};\nexport default tooltipDefaults;\n","/**\n * Global namespace for `data-bs-title` attribute.\n */\nconst dataOriginalTitle = \"data-original-title\";\nexport default dataOriginalTitle;\n","/** @type {string} */\nconst tooltipComponent = \"Tooltip\";\nexport default tooltipComponent;\n","import {\n isArray,\n isFunction,\n isHTMLElement,\n isNode,\n isNodeList,\n isString,\n} from \"@thednp/shorty\";\n\n/**\n * Append an existing `Element` to Popover / Tooltip component or HTML\n * markup string to be parsed & sanitized to be used as popover / tooltip content.\n *\n * @param element target\n * @param content the `Element` to append / string\n * @param sanitizeFn a function to sanitize string content\n */\nconst setHtml = (\n element: HTMLElement,\n content: Node[] | Node | string,\n sanitizeFn?: (s: string) => string,\n) => {\n // istanbul ignore else @preserve\n if (isString(content) && content.length) {\n let dirty = content.trim(); // fixing #233\n if (isFunction(sanitizeFn)) dirty = sanitizeFn(dirty);\n\n const domParser = new DOMParser();\n const tempDocument = domParser.parseFromString(dirty, \"text/html\");\n element.append(...[...tempDocument.body.childNodes]);\n } else if (isHTMLElement(content)) {\n element.append(content);\n } else if (\n isNodeList(content) || (isArray(content) && content.every(isNode))\n ) {\n element.append(...[...content]);\n }\n};\nexport default setHtml;\n","import {\n addClass,\n createElement,\n hasClass,\n isHTMLElement,\n isRTL,\n querySelector,\n setAttribute,\n} from \"@thednp/shorty\";\n\nimport tooltipComponent from \"../strings/tooltipComponent\";\nimport tooltipString from \"../strings/tooltipString\";\nimport popoverString from \"../strings/popoverString\";\nimport fadeClass from \"../strings/fadeClass\";\nimport tipClassPositions from \"./tipClassPositions\";\nimport setHtml from \"./setHtml\";\nimport Tooltip from \"../components/tooltip\";\nimport Popover from \"../components/popover\";\n\n/**\n * Creates a new tooltip / popover.\n *\n * @param self the `Tooltip` / `Popover` instance\n */\nconst createTip = (self: Tooltip | Popover) => {\n const isTooltip = self.name === tooltipComponent;\n\n const { id, element, options } = self;\n const {\n title,\n placement,\n template,\n animation,\n customClass,\n sanitizeFn,\n dismissible,\n content,\n btnClose,\n } = options;\n const tipString = isTooltip ? tooltipString : popoverString;\n const tipPositions = { ...tipClassPositions };\n let titleParts: Node[] = [];\n let contentParts: Node[] = [];\n\n if (isRTL(element)) {\n tipPositions.left = \"end\";\n tipPositions.right = \"start\";\n }\n\n // set initial popover class\n const placementClass = `bs-${tipString}-${tipPositions[placement]}`;\n\n // load template\n let tooltipTemplate: Node | string;\n if (isHTMLElement(template)) {\n tooltipTemplate = template;\n } else {\n const htmlMarkup = createElement(\"div\") as HTMLElement;\n setHtml(htmlMarkup, template, sanitizeFn);\n tooltipTemplate = htmlMarkup.firstChild as HTMLElement;\n }\n\n /* istanbul ignore if @preserve */\n if (!isHTMLElement(tooltipTemplate)) return;\n\n // set popover markup\n self.tooltip = tooltipTemplate.cloneNode(true) as HTMLElement;\n const { tooltip } = self;\n\n // set id and role attributes\n setAttribute(tooltip, \"id\", id);\n setAttribute(tooltip, \"role\", tooltipString);\n\n const bodyClass = isTooltip\n ? `${tooltipString}-inner`\n : `${popoverString}-body`;\n const tooltipHeader = isTooltip\n ? null\n : querySelector(`.${popoverString}-header`, tooltip);\n const tooltipBody = querySelector(`.${bodyClass}`, tooltip);\n\n // set arrow and enable access for styleTip\n self.arrow = querySelector(\n `.${tipString}-arrow`,\n tooltip,\n ) as HTMLElement;\n const { arrow } = self;\n\n if (isHTMLElement(title)) titleParts = [title.cloneNode(true)];\n else {\n const tempTitle = createElement(\"div\") as HTMLElement;\n setHtml(tempTitle, title, sanitizeFn);\n titleParts = [...[...tempTitle.childNodes]];\n }\n\n if (isHTMLElement(content)) contentParts = [content.cloneNode(true)];\n else {\n const tempContent = createElement(\"div\") as HTMLElement;\n setHtml(tempContent, content, sanitizeFn);\n contentParts = [...[...tempContent.childNodes]];\n }\n\n // set dismissible button\n if (dismissible) {\n if (title) {\n if (isHTMLElement(btnClose)) {\n titleParts = [...titleParts, btnClose.cloneNode(true)];\n } else {\n const tempBtn = createElement(\"div\") as HTMLElement;\n setHtml(tempBtn, btnClose, sanitizeFn);\n titleParts = [...titleParts, tempBtn.firstChild as Node];\n }\n } else {\n // istanbul ignore else @preserve\n if (tooltipHeader) tooltipHeader.remove();\n if (isHTMLElement(btnClose)) {\n contentParts = [...contentParts, btnClose.cloneNode(true)];\n } else {\n const tempBtn = createElement(\"div\") as HTMLElement;\n setHtml(tempBtn, btnClose, sanitizeFn);\n contentParts = [...contentParts, tempBtn.firstChild as Node];\n }\n }\n }\n\n // fill the template with content from options / data attributes\n // also sanitize title && content\n // istanbul ignore else @preserve\n if (!isTooltip) {\n // istanbul ignore else @preserve\n if (title && tooltipHeader) {\n setHtml(tooltipHeader, titleParts, sanitizeFn);\n }\n // istanbul ignore else @preserve\n if (content && tooltipBody) {\n setHtml(tooltipBody, contentParts, sanitizeFn);\n }\n // set btn\n self.btn = querySelector(\".btn-close\", tooltip) ||\n undefined;\n } else if (title && tooltipBody) setHtml(tooltipBody, title, sanitizeFn);\n\n // Bootstrap 5.2.x\n addClass(tooltip, \"position-absolute\");\n addClass(arrow, \"position-absolute\");\n\n // set popover animation and placement\n // istanbul ignore else @preserve\n if (!hasClass(tooltip, tipString)) addClass(tooltip, tipString);\n // istanbul ignore else @preserve\n if (animation && !hasClass(tooltip, fadeClass)) {\n addClass(tooltip, fadeClass);\n }\n // istanbul ignore else @preserve\n if (customClass && !hasClass(tooltip, customClass)) {\n addClass(tooltip, customClass);\n }\n // istanbul ignore else @preserve\n if (!hasClass(tooltip, placementClass)) addClass(tooltip, placementClass);\n};\n\nexport default createTip;\n","import {\n getDocument,\n getElementStyle,\n getParentNode,\n isShadowRoot,\n isTableElement,\n} from \"@thednp/shorty\";\n\n/**\n * Returns an `HTMLElement` to be used as default value for *options.container*\n * for `Tooltip` / `Popover` components.\n *\n * @see https://github.com/floating-ui/floating-ui\n *\n * @param element the target\n * @returns the query result\n */\nconst getElementContainer = (element: Element) => {\n const majorBlockTags = [\"HTML\", \"BODY\"];\n const containers: HTMLElement[] = [];\n let { parentNode } = element;\n\n while (parentNode && !majorBlockTags.includes(parentNode.nodeName)) {\n parentNode = getParentNode(parentNode) as HTMLElement;\n // istanbul ignore else @preserve\n if (!(isShadowRoot(parentNode) || isTableElement(parentNode))) {\n containers.push(parentNode as HTMLElement);\n }\n }\n\n return (\n containers.find((c, i) => {\n if (\n ((getElementStyle(c, \"position\") !== \"relative\" ||\n getElementStyle(c, \"position\") === \"relative\" &&\n c.offsetHeight !== c.scrollHeight) &&\n containers.slice(i + 1).every((r) =>\n getElementStyle(r, \"position\") === \"static\"\n ))\n ) {\n return c;\n }\n return null;\n }) ||\n /* istanbul ignore next: optional guard */\n getDocument(element).body\n );\n};\n\nexport default getElementContainer;\n","/* Native JavaScript for Bootstrap 5 | Tooltip\n---------------------------------------------- */\nimport {\n addClass,\n ariaDescribedBy,\n closest,\n createCustomEvent,\n dispatchEvent,\n emulateTransitionEnd,\n focus,\n focusEvent,\n focusinEvent,\n focusoutEvent,\n getAttribute,\n getDocument,\n getElementStyle,\n getInstance,\n getUID,\n getWindow,\n hasAttribute,\n hasClass,\n isApple,\n mouseclickEvent,\n mousedownEvent,\n mouseenterEvent,\n mousehoverEvent,\n mouseleaveEvent,\n ObjectAssign,\n passiveHandler,\n removeAttribute,\n removeClass,\n setAttribute,\n Timer,\n toLowerCase,\n TouchEvent,\n touchstartEvent,\n} from \"@thednp/shorty\";\n\nimport { addListener, removeListener } from \"@thednp/event-listener\";\nimport PositionObserver from \"@thednp/position-observer\";\n\nimport dataBsToggle from \"~/strings/dataBsToggle\";\nimport dataOriginalTitle from \"~/strings/dataOriginalTitle\";\nimport showClass from \"~/strings/showClass\";\nimport tooltipString from \"~/strings/tooltipString\";\nimport tooltipComponent from \"~/strings/tooltipComponent\";\nimport popoverString from \"~/strings/popoverString\";\nimport popoverComponent from \"~/strings/popoverComponent\";\nimport modalString from \"~/strings/modalString\";\nimport offcanvasString from \"~/strings/offcanvasString\";\n\nimport styleTip from \"~/util/styleTip\";\nimport createTip from \"~/util/createTip\";\nimport { appendPopup, hasPopup, removePopup } from \"~/util/popupContainer\";\nimport getElementContainer from \"~/util/getElementContainer\";\nimport tooltipDefaults from \"~/util/tooltipDefaults\";\nimport BaseComponent from \"./base-component\";\nimport type { TooltipEvent, TooltipOptions } from \"~/interface/tooltip\";\nimport type { PopoverEvent, PopoverOptions } from \"~/interface/popover\";\n\n// TOOLTIP PRIVATE GC\n// ==================\nconst tooltipSelector =\n `[${dataBsToggle}=\"${tooltipString}\"],[data-tip=\"${tooltipString}\"]`;\nconst titleAttr = \"title\";\n\n/**\n * Static method which returns an existing `Tooltip` instance associated\n * to a target `Element`.\n */\nlet getTooltipInstance = (element: Element) =>\n getInstance(element, tooltipComponent);\n\n/**\n * A `Tooltip` initialization callback.\n */\nconst tooltipInitCallback = (element: Element) => new Tooltip(element);\n\n// TOOLTIP PRIVATE METHODS\n// =======================\n/**\n * Removes the tooltip from the DOM.\n *\n * @param self the `Tooltip` instance\n */\nconst removeTooltip = (self: Tooltip) => {\n const { element, tooltip, container } = self;\n removeAttribute(element, ariaDescribedBy);\n removePopup(\n tooltip,\n container,\n );\n};\n\n/**\n * Check if container contains the tooltip.\n *\n * @param self Tooltip\n */\nconst hasTip = (self: Tooltip): boolean | undefined => {\n const { tooltip, container } = self;\n\n return tooltip &&\n hasPopup(tooltip, container);\n};\n\n/**\n * Executes after the instance has been disposed.\n *\n * @param self the `Tooltip` instance\n * @param callback the parent dispose callback\n */\nconst disposeTooltipComplete = (self: Tooltip, callback?: () => void) => {\n const { element } = self;\n self._toggleEventListeners();\n\n // istanbul ignore else @preserve\n if (\n hasAttribute(element, dataOriginalTitle) && self.name === tooltipComponent\n ) {\n toggleTooltipTitle(self);\n }\n // istanbul ignore else @preserve\n if (callback) callback();\n};\n\n/**\n * Toggles on/off the special `Tooltip` event listeners.\n *\n * @param self the `Tooltip` instance\n * @param add when `true`, event listeners are added\n */\nconst toggleTooltipAction = (self: Tooltip, add?: boolean) => {\n const action = add ? addListener : removeListener;\n const { element } = self;\n\n action(\n getDocument(element),\n touchstartEvent,\n self.handleTouch,\n passiveHandler,\n );\n};\n\n/**\n * Executes after the tooltip was shown to the user.\n *\n * @param self the `Tooltip` instance\n */\nconst tooltipShownAction = (self: Tooltip) => {\n const { element } = self;\n const shownTooltipEvent = createCustomEvent<\n Record,\n TooltipEvent | PopoverEvent\n >(\n `shown.bs.${toLowerCase(self.name)}`,\n );\n\n toggleTooltipAction(self, true);\n dispatchEvent(element, shownTooltipEvent);\n Timer.clear(element, \"in\");\n};\n\n/**\n * Executes after the tooltip was hidden to the user.\n *\n * @param self the `Tooltip` instance\n */\nconst tooltipHiddenAction = (self: Tooltip) => {\n const { element } = self;\n const hiddenTooltipEvent = createCustomEvent<\n Record,\n TooltipEvent | PopoverEvent\n >(\n `hidden.bs.${toLowerCase(self.name)}`,\n );\n\n toggleTooltipAction(self);\n removeTooltip(self);\n dispatchEvent(element, hiddenTooltipEvent);\n\n Timer.clear(element, \"out\");\n};\n\n/**\n * Toggles on/off the `Tooltip` event listeners that hide/update the tooltip.\n *\n * @param self the `Tooltip` instance\n * @param add when `true`, event listeners are added\n */\nconst toggleTooltipOpenHandlers = (self: Tooltip, add?: boolean) => {\n const action = add ? addListener : removeListener;\n const { element, tooltip } = self;\n const parentModal = closest(element, `.${modalString}`);\n const parentOffcanvas = closest(element, `.${offcanvasString}`);\n\n if (add) {\n [element, tooltip]\n .forEach((target) => self._observer.observe(target));\n } else self._observer.disconnect();\n\n // dismiss tooltips inside modal / offcanvas\n if (parentModal) {\n action(parentModal, `hide.bs.${modalString}`, self.handleHide);\n }\n if (parentOffcanvas) {\n action(parentOffcanvas, `hide.bs.${offcanvasString}`, self.handleHide);\n }\n};\n\n/**\n * Toggles the `title` and `data-original-title` attributes.\n *\n * @param self the `Tooltip` instance\n * @param content when `true`, event listeners are added\n */\nconst toggleTooltipTitle = (self: Tooltip, content?: string) => {\n // [0 - add, 1 - remove] | [0 - remove, 1 - add]\n const titleAtt = [dataOriginalTitle, titleAttr];\n const { element } = self;\n\n setAttribute(\n element,\n titleAtt[content ? 0 : 1],\n content ||\n getAttribute(element, titleAtt[0]) ||\n // istanbul ignore next @preserve\n \"\",\n );\n removeAttribute(element, titleAtt[content ? 1 : 0]);\n};\n\n// TOOLTIP DEFINITION\n// ==================\n/** Creates a new `Tooltip` instance. */\nexport default class Tooltip extends BaseComponent {\n static selector = tooltipSelector;\n static init = tooltipInitCallback;\n static getInstance = getTooltipInstance;\n static styleTip = styleTip;\n declare element: Element & HTMLOrSVGElement;\n declare options: TooltipOptions;\n declare btn?: HTMLElement;\n declare tooltip: HTMLElement;\n declare container: HTMLElement;\n declare offsetParent: Element | Window;\n declare arrow: HTMLElement;\n declare enabled: boolean;\n declare id: string;\n declare _observer: PositionObserver;\n\n /**\n * @param target the target element\n * @param config the instance options\n */\n constructor(target: Element | string, config?: Partial) {\n super(target, config);\n\n const { element } = this;\n const isTooltip = this.name === tooltipComponent;\n const tipString = isTooltip ? tooltipString : popoverString;\n const tipComponent = isTooltip ? tooltipComponent : popoverComponent;\n\n // istanbul ignore next @preserve: this is to set Popover too\n getTooltipInstance = (elem: Element) =>\n getInstance(elem, tipComponent);\n\n // additional properties\n this.enabled = true;\n /** Set unique ID for `aria-describedby`. */\n this.id = `${tipString}-${getUID(element, tipString)}`;\n\n // instance options\n const { options } = this;\n\n // invalidate\n // istanbul ignore else @preserve\n if (((!options.title && isTooltip) || (!isTooltip && !options.content))) {\n return;\n }\n\n // reset default options\n ObjectAssign(tooltipDefaults, { titleAttr: \"\" });\n\n // set title attributes and add event listeners\n // istanbul ignore else @preserve\n if (\n hasAttribute(element, titleAttr) && isTooltip &&\n typeof options.title === \"string\"\n ) {\n toggleTooltipTitle(this, options.title);\n }\n\n // set containers\n const container = getElementContainer(element);\n const offsetParent = [\"sticky\", \"fixed\", \"relative\"].some(\n (position) =>\n getElementStyle(container, \"position\") ===\n position,\n )\n ? container\n : getWindow(element);\n\n this.container = container;\n this.offsetParent = offsetParent;\n\n // create tooltip here\n createTip(this);\n\n /* istanbul ignore if @preserve */\n if (!this.tooltip) return;\n\n // create observer\n this._observer = new PositionObserver(() => this.update());\n\n // attach events\n this._toggleEventListeners(true);\n }\n\n /**\n * Returns component name string.\n */\n get name() {\n return tooltipComponent;\n }\n /**\n * Returns component default options.\n */\n get defaults() {\n return tooltipDefaults;\n }\n\n // TOOLTIP PUBLIC METHODS\n // ======================\n /** Handles the focus event on iOS. */\n // istanbul ignore next @preserve - impossible to test without Apple device\n handleFocus = () => focus(this.element as HTMLElement);\n /** Shows the tooltip. */\n handleShow = () => this.show();\n show() {\n const { options, tooltip, element, container, id } = this;\n const { animation } = options;\n const outTimer = Timer.get(element, \"out\");\n\n Timer.clear(element, \"out\");\n\n if (tooltip && !outTimer && !hasTip(this)) {\n Timer.set(\n element,\n () => {\n const showTooltipEvent = createCustomEvent<\n Record,\n TooltipEvent | PopoverEvent\n >(\n `show.bs.${toLowerCase(this.name)}`,\n );\n dispatchEvent(element, showTooltipEvent);\n\n // istanbul ignore else @preserve\n if (!showTooltipEvent.defaultPrevented) {\n // append to container\n appendPopup(tooltip, container);\n\n setAttribute(element, ariaDescribedBy, `#${id}`);\n\n this.update();\n toggleTooltipOpenHandlers(this, true);\n\n // istanbul ignore else @preserve\n if (!hasClass(tooltip, showClass)) addClass(tooltip, showClass);\n // istanbul ignore else @preserve\n if (animation) {\n emulateTransitionEnd(tooltip, () => tooltipShownAction(this));\n } else tooltipShownAction(this);\n }\n },\n 17,\n \"in\",\n );\n }\n }\n\n /** Hides the tooltip. */\n handleHide = () => this.hide();\n hide() {\n const { options, tooltip, element } = this;\n const { animation, delay } = options;\n\n Timer.clear(element, \"in\");\n\n // istanbul ignore else @preserve\n if (tooltip && hasTip(this)) {\n Timer.set(\n element,\n () => {\n const hideTooltipEvent = createCustomEvent<\n Record,\n TooltipEvent | PopoverEvent\n >(\n `hide.bs.${toLowerCase(this.name)}`,\n );\n dispatchEvent(element, hideTooltipEvent);\n\n // istanbul ignore else @preserve\n if (!hideTooltipEvent.defaultPrevented) {\n this.update();\n removeClass(tooltip, showClass);\n toggleTooltipOpenHandlers(this);\n\n // istanbul ignore else @preserve\n if (animation) {\n emulateTransitionEnd(tooltip, () => tooltipHiddenAction(this));\n } else tooltipHiddenAction(this);\n }\n },\n delay + 17,\n \"out\",\n );\n }\n }\n\n /** Updates the tooltip position. */\n update = () => {\n styleTip(this);\n };\n\n /** Toggles the tooltip visibility. */\n toggle = () => {\n const { tooltip } = this;\n\n if (tooltip && !hasTip(this)) this.show();\n else this.hide();\n };\n\n /** Enables the tooltip. */\n enable() {\n const { enabled } = this;\n // istanbul ignore else @preserve\n if (!enabled) {\n this._toggleEventListeners(true);\n this.enabled = !enabled;\n }\n }\n\n /** Disables the tooltip. */\n disable() {\n const { tooltip, enabled } = this;\n // istanbul ignore else @preserve\n if (enabled) {\n if (tooltip && hasTip(this)) this.hide();\n this._toggleEventListeners();\n this.enabled = !enabled;\n }\n }\n\n /** Toggles the `disabled` property. */\n toggleEnabled() {\n if (!this.enabled) this.enable();\n else this.disable();\n }\n\n /**\n * Handles the `touchstart` event listener for `Tooltip`\n *\n * @this {Tooltip}\n * @param {TouchEvent} e the `Event` object\n */\n handleTouch = ({ target }: TouchEvent) => {\n const { tooltip, element } = this;\n\n // istanbul ignore if @preserve\n if (\n (tooltip && tooltip.contains(target)) ||\n target === element ||\n (target && element.contains(target))\n ) {\n // smile for ESLint\n } else {\n this.hide();\n }\n };\n\n /**\n * Toggles on/off the `Tooltip` event listeners.\n *\n * @param add when `true`, event listeners are added\n */\n _toggleEventListeners = (add?: boolean) => {\n const action = add ? addListener : removeListener;\n // btn is only for dismissible popover\n const { element, options, btn } = this;\n const { trigger } = options;\n const isPopover = this.name !== tooltipComponent;\n const dismissible = isPopover && (options as PopoverOptions).dismissible\n ? true\n : false;\n\n // istanbul ignore else @preserve\n if (!trigger.includes(\"manual\")) {\n this.enabled = !!add;\n\n const triggerOptions = trigger.split(\" \");\n\n triggerOptions.forEach((tr) => {\n // istanbul ignore else @preserve\n if (tr === mousehoverEvent) {\n action(element, mousedownEvent, this.handleShow);\n action(element, mouseenterEvent, this.handleShow);\n\n // istanbul ignore else @preserve\n if (!dismissible) {\n action(element, mouseleaveEvent, this.handleHide);\n action(\n getDocument(element),\n touchstartEvent,\n this.handleTouch,\n passiveHandler,\n );\n }\n } else if (tr === mouseclickEvent) {\n action(element, tr, !dismissible ? this.toggle : this.handleShow);\n } else if (tr === focusEvent) {\n action(element, focusinEvent, this.handleShow);\n // istanbul ignore else @preserve\n if (!dismissible) action(element, focusoutEvent, this.handleHide);\n // istanbul ignore else @preserve\n if (isApple()) {\n action(element, mouseclickEvent, this.handleFocus);\n }\n }\n // istanbul ignore else @preserve\n if (dismissible && btn) {\n action(btn, mouseclickEvent, this.handleHide);\n }\n });\n }\n };\n\n /** Removes the `Tooltip` from the target element. */\n dispose() {\n const { tooltip, options } = this;\n const clone = { ...this, name: this.name };\n const callback = () =>\n setTimeout(\n () => disposeTooltipComplete(clone, () => super.dispose()),\n 17,\n );\n\n if (options.animation && hasTip(clone)) {\n this.options.delay = 0; // reset delay\n this.hide();\n emulateTransitionEnd(tooltip, callback);\n } else {\n callback();\n }\n }\n}\n"],"names":["popoverString","popoverComponent","tooltipString","getTipTemplate","tipType","isTooltip","bodyClass","header","arrow","body","tipClassPositions","styleTip","self","tipClasses","element","tooltip","container","offsetParent","options","RTL","isRTL","scrollLeft","scrollTop","getNodeScroll","setElementStyle","tipWidth","tipHeight","htmlcw","htmlch","htmlow","getDocumentElement","placement","parentCWidth","parentOWidth","fixedParent","getElementStyle","scrollbarWidth","leftBoundry","rightBoundry","observerEntry","elemWidth","elemHeight","elemRectLeft","elemRectRight","elemRectTop","getBoundingClientRect","elemOffsetLeft","elemOffsetTop","getRectRelativeToOffsetParent","topPosition","bottomPosition","leftPosition","rightPosition","arrowTop","arrowLeft","arrowRight","arrowWidth","arrowHeight","arrowAdjust","topExceed","bottomExceed","leftExceed","rightExceed","horizontals","verticals","isHTMLElement","updatedTooltipEvent","createCustomEvent","toLowerCase","dispatchEvent","tooltipDefaults","dataOriginalTitle","tooltipComponent","setHtml","content","sanitizeFn","isString","dirty","isFunction","tempDocument","isNodeList","isArray","isNode","createTip","id","title","template","animation","customClass","dismissible","btnClose","tipString","tipPositions","titleParts","contentParts","placementClass","tooltipTemplate","htmlMarkup","createElement","setAttribute","tooltipHeader","querySelector","tooltipBody","tempTitle","tempContent","tempBtn","addClass","hasClass","fadeClass","getElementContainer","majorBlockTags","containers","parentNode","getParentNode","isShadowRoot","isTableElement","c","i","r","getDocument","tooltipSelector","dataBsToggle","titleAttr","getTooltipInstance","getInstance","tooltipInitCallback","Tooltip","removeTooltip","removeAttribute","ariaDescribedBy","removePopup","hasTip","hasPopup","disposeTooltipComplete","callback","hasAttribute","toggleTooltipTitle","toggleTooltipAction","add","action","addListener","removeListener","touchstartEvent","passiveHandler","tooltipShownAction","shownTooltipEvent","Timer","tooltipHiddenAction","hiddenTooltipEvent","toggleTooltipOpenHandlers","parentModal","closest","modalString","parentOffcanvas","offcanvasString","target","titleAtt","getAttribute","BaseComponent","config","tipComponent","elem","getUID","ObjectAssign","position","getWindow","PositionObserver","focus","outTimer","showTooltipEvent","appendPopup","showClass","emulateTransitionEnd","delay","hideTooltipEvent","removeClass","enabled","btn","trigger","tr","mousehoverEvent","mousedownEvent","mouseenterEvent","mouseleaveEvent","mouseclickEvent","focusEvent","focusinEvent","focusoutEvent","isApple","clone"],"mappings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GAAS0K,IAAiB,KAAK,WAAW,IAIjD/F,KAAewF,KACVtC,EAAAsC,GAAKO,IAAiB,KAAK,UAAU;AAAA,IAC9C,CACD;AAAA,EAEL;AAAA,EAGA,UAAU;AACF,UAAA,EAAE,SAAAzK,GAAS,SAAAG,EAAA,IAAY,MACvB2K,IAAQ,EAAE,GAAG,MAAM,MAAM,KAAK,KAAK,GACnCvD,IAAW,MACf;AAAA,MACE,MAAMD,GAAuBwD,GAAO,MAAM,MAAM,SAAS;AAAA,MACzD;AAAA,IACF;AAEF,IAAI3K,EAAQ,aAAaiH,EAAO0D,CAAK,KACnC,KAAK,QAAQ,QAAQ,GACrB,KAAK,KAAK,GACVjB,GAAqB7J,GAASuH,CAAQ,KAE7BA,EAAA;AAAA,EACX;AAEJ;"} \ No newline at end of file diff --git a/dist/components/tooltip-fMXgseyT.js b/dist/components/tooltip-DwQSdbgB.js similarity index 97% rename from dist/components/tooltip-fMXgseyT.js rename to dist/components/tooltip-DwQSdbgB.js index 788d9b55..23fd130f 100644 --- a/dist/components/tooltip-fMXgseyT.js +++ b/dist/components/tooltip-DwQSdbgB.js @@ -1,2 +1,2 @@ -"use strict";const t=require("./base-component-4K-5H-MO.js"),vt=require("./index-CxumdV5N.js"),Tt=require("./dataBsToggle-Dj-Ng54N.js"),tt=require("./showClass-D_Ms1FgG.js"),W=require("./popupContainer-BF5JudHD.js"),it=require("./fadeClass-Co6nOzNJ.js"),F="popover",at="Popover",T="tooltip",ct=s=>{const e=s===T,o=e?`${s}-inner`:`${s}-body`,i=e?"":`

`,l=`
`,r=`
`;return`
${i+l+r}
`},ht={top:"top",bottom:"bottom",left:"start",right:"end"},et=s=>{requestAnimationFrame(()=>{const e=/\b(top|bottom|start|end)+/,{element:o,tooltip:i,container:l,offsetParent:r,options:d,arrow:c}=s;if(!i)return;const f=t.Bo(o),{x:w,y:h}=t.So(r);t.vo(i,{top:"",left:"",right:"",bottom:""});const{offsetWidth:u,offsetHeight:m}=i,{clientWidth:g,clientHeight:P,offsetWidth:O}=t.w(o);let{placement:n}=d;const{clientWidth:b,offsetWidth:k}=l,p=t.f(l,"position")==="fixed",D=Math.abs(p?b-k:g-O),H=f&&p?D:0,$=g-(f?0:D)-1,Y=s._observer.getEntry(o),{width:a,height:v,left:j,right:gt,top:I}=Y?.boundingClientRect||t.y(o,!0),{x:z,y:B}=t.No(o,r,{x:w,y:h});t.vo(c,{top:"",left:"",right:"",bottom:""});let x=0,_="",C=0,J="",L="",Q="",U="";const S=c.offsetWidth||0,E=c.offsetHeight||0,V=S/2;let q=I-m-E<0,A=I+m+v+E>=P,M=j-u-S=$;const X=["left","right"],Z=["top","bottom"];q=X.includes(n)?I+v/2-m/2-E<0:q,A=X.includes(n)?I+m/2+v/2+E>=P:A,M=Z.includes(n)?j+a/2-u/2=$:K,n=X.includes(n)&&M&&K?"top":n,n=n==="top"&&q?"bottom":n,n=n==="bottom"&&A?"top":n,n=n==="left"&&M?"right":n,n=n==="right"&&K?"left":n,i.className.includes(n)||(i.className=i.className.replace(e,ht[n])),X.includes(n)?(n==="left"?C=z-u-S:C=z+a+S,q&&A?(x=0,_=0,L=B+v/2-E/2):q?(x=B,_="",L=v/2-S):A?(x=B-m+v,_="",L=m-v/2-S):(x=B-m/2+v/2,L=m/2-E/2)):Z.includes(n)&&(n==="top"?x=B-m-E:x=B+v+E,M?(C=0,Q=z+a/2-V):K?(C="auto",J=0,U=a/2+$-gt-V):(C=z-u/2+a/2,Q=u/2-V)),t.vo(i,{top:`${x}px`,bottom:_===""?"":`${_}px`,left:C==="auto"?C:`${C}px`,right:J!==""?`${J}px`:""}),t.b(c)&&(L!==""&&(c.style.top=`${L}px`),Q!==""?c.style.left=`${Q}px`:U!==""&&(c.style.right=`${U}px`));const bt=t.po(`updated.bs.${t.Eo(s.name)}`);t.G(o,bt)})},ot={template:ct(T),title:"",customClass:"",trigger:"hover focus",placement:"top",sanitizeFn:void 0,animation:!0,delay:200,container:document.body,content:"",dismissible:!1,btnClose:""},dt="data-original-title",N="Tooltip",y=(s,e,o)=>{if(t.N(e)&&e.length){let i=e.trim();t.Lo(o)&&(i=o(i));const r=new DOMParser().parseFromString(i,"text/html");s.append(...r.body.childNodes)}else t.b(e)?s.append(e):(t.Fo(e)||t.we(e)&&e.every(t.u))&&s.append(...e)},wt=s=>{const e=s.name===N,{id:o,element:i,options:l}=s,{title:r,placement:d,template:c,animation:f,customClass:w,sanitizeFn:h,dismissible:u,content:m,btnClose:g}=l,P=e?T:F,O={...ht};let n=[],b=[];t.Bo(i)&&(O.left="end",O.right="start");const k=`bs-${P}-${O[d]}`;let G;if(t.b(c))G=c;else{const a=t.ne("div");y(a,c,h),G=a.firstChild}if(!t.b(G))return;s.tooltip=G.cloneNode(!0);const{tooltip:p}=s;t.Wn(p,"id",o),t.Wn(p,"role",T);const D=e?`${T}-inner`:`${F}-body`,H=e?null:t.Ho(`.${F}-header`,p),$=t.Ho(`.${D}`,p);s.arrow=t.Ho(`.${P}-arrow`,p);const{arrow:Y}=s;if(t.b(r))n=[r.cloneNode(!0)];else{const a=t.ne("div");y(a,r,h),n=[...a.childNodes]}if(t.b(m))b=[m.cloneNode(!0)];else{const a=t.ne("div");y(a,m,h),b=[...a.childNodes]}if(u)if(r)if(t.b(g))n=[...n,g.cloneNode(!0)];else{const a=t.ne("div");y(a,g,h),n=[...n,a.firstChild]}else if(H&&H.remove(),t.b(g))b=[...b,g.cloneNode(!0)];else{const a=t.ne("div");y(a,g,h),b=[...b,a.firstChild]}e?r&&$&&y($,r,h):(r&&H&&y(H,n,h),m&&$&&y($,b,h),s.btn=t.Ho(".btn-close",p)||void 0),t.Kn(p,"position-absolute"),t.Kn(Y,"position-absolute"),t.Gn(p,P)||t.Kn(p,P),f&&!t.Gn(p,it.fadeClass)&&t.Kn(p,it.fadeClass),w&&!t.Gn(p,w)&&t.Kn(p,w),t.Gn(p,k)||t.Kn(p,k)},$t=s=>{const e=["HTML","BODY"],o=[];let{parentNode:i}=s;for(;i&&!e.includes(i.nodeName);)i=t.k(i),t.pe(i)||t.me(i)||o.push(i);return o.find((l,r)=>(t.f(l,"position")!=="relative"||t.f(l,"position")==="relative"&&l.offsetHeight!==l.scrollHeight)&&o.slice(r+1).every(d=>t.f(d,"position")==="static")?l:null)||t.d(s).body},Ct=`[${Tt.dataBsToggle}="${T}"],[data-tip="${T}"]`,pt="title";let st=s=>t.Xn(s,N);const Et=s=>new ut(s),yt=s=>{const{element:e,tooltip:o,container:i}=s;t.Qn(e,t.Me),W.removePopup(o,i)},R=s=>{const{tooltip:e,container:o}=s;return e&&W.hasPopup(e,o)},Pt=(s,e)=>{const{element:o}=s;s._toggleEventListeners(),t.ee(o,dt)&&s.name===N&&mt(s),e&&e()},ft=(s,e)=>{const o=e?t.E:t.r,{element:i}=s;o(t.d(i),t.Wt,s.handleTouch,t.go)},nt=s=>{const{element:e}=s,o=t.po(`shown.bs.${t.Eo(s.name)}`);ft(s,!0),t.G(e,o),t.bo.clear(e,"in")},lt=s=>{const{element:e}=s,o=t.po(`hidden.bs.${t.Eo(s.name)}`);ft(s),yt(s),t.G(e,o),t.bo.clear(e,"out")},rt=(s,e)=>{const o=e?t.E:t.r,{element:i,tooltip:l}=s,r=t.Se(i,`.${W.modalString}`),d=t.Se(i,`.${W.offcanvasString}`);e?[i,l].forEach(c=>s._observer.observe(c)):s._observer.disconnect(),r&&o(r,`hide.bs.${W.modalString}`,s.handleHide),d&&o(d,`hide.bs.${W.offcanvasString}`,s.handleHide)},mt=(s,e)=>{const o=[dt,pt],{element:i}=s;t.Wn(i,o[e?0:1],e||t.j(i,o[0])||""),t.Qn(i,o[e?1:0])};class ut extends t.BaseComponent{static selector=Ct;static init=Et;static getInstance=st;static styleTip=et;constructor(e,o){super(e,o);const{element:i}=this,l=this.name===N,r=l?T:F,d=l?N:at;st=h=>t.Xn(h,d),this.enabled=!0,this.id=`${r}-${t.ye(i,r)}`;const{options:c}=this;if(!c.title&&l||!l&&!c.content)return;t.C(ot,{titleAttr:""}),t.ee(i,pt)&&l&&typeof c.title=="string"&&mt(this,c.title);const f=$t(i),w=["sticky","fixed","relative"].some(h=>t.f(f,"position")===h)?f:t.ge(i);this.container=f,this.offsetParent=w,wt(this),this.tooltip&&(this._observer=new vt.v(()=>this.update()),this._toggleEventListeners(!0))}get name(){return N}get defaults(){return ot}handleFocus=()=>t.ro(this.element);handleShow=()=>this.show();show(){const{options:e,tooltip:o,element:i,container:l,id:r}=this,{animation:d}=e,c=t.bo.get(i,"out");t.bo.clear(i,"out"),o&&!c&&!R(this)&&t.bo.set(i,()=>{const f=t.po(`show.bs.${t.Eo(this.name)}`);t.G(i,f),f.defaultPrevented||(W.appendPopup(o,l),t.Wn(i,t.Me,`#${r}`),this.update(),rt(this,!0),t.Gn(o,tt.showClass)||t.Kn(o,tt.showClass),d?t.no(o,()=>nt(this)):nt(this))},17,"in")}handleHide=()=>this.hide();hide(){const{options:e,tooltip:o,element:i}=this,{animation:l,delay:r}=e;t.bo.clear(i,"in"),o&&R(this)&&t.bo.set(i,()=>{const d=t.po(`hide.bs.${t.Eo(this.name)}`);t.G(i,d),d.defaultPrevented||(this.update(),t.qn(o,tt.showClass),rt(this),l?t.no(o,()=>lt(this)):lt(this))},r+17,"out")}update=()=>{et(this)};toggle=()=>{const{tooltip:e}=this;e&&!R(this)?this.show():this.hide()};enable(){const{enabled:e}=this;e||(this._toggleEventListeners(!0),this.enabled=!e)}disable(){const{tooltip:e,enabled:o}=this;o&&(e&&R(this)&&this.hide(),this._toggleEventListeners(),this.enabled=!o)}toggleEnabled(){this.enabled?this.disable():this.enable()}handleTouch=({target:e})=>{const{tooltip:o,element:i}=this;o&&o.contains(e)||e===i||e&&i.contains(e)||this.hide()};_toggleEventListeners=e=>{const o=e?t.E:t.r,{element:i,options:l,btn:r}=this,{trigger:d}=l,f=!!(this.name!==N&&l.dismissible);d.includes("manual")||(this.enabled=!!e,d.split(" ").forEach(h=>{h===t.Et?(o(i,t.vt,this.handleShow),o(i,t.ht,this.handleShow),f||(o(i,t.yt,this.handleHide),o(t.d(i),t.Wt,this.handleTouch,t.go))):h===t.gt?o(i,h,f?this.handleShow:this.toggle):h===t.st&&(o(i,t.rt,this.handleShow),f||o(i,t.ct,this.handleHide),t.On()&&o(i,t.gt,this.handleFocus)),f&&r&&o(r,t.gt,this.handleHide)}))};dispose(){const{tooltip:e,options:o}=this,i={...this,name:this.name},l=()=>setTimeout(()=>Pt(i,()=>super.dispose()),17);o.animation&&R(i)?(this.options.delay=0,this.hide(),t.no(e,l)):l()}}exports.Tooltip=ut;exports.getTipTemplate=ct;exports.popoverComponent=at;exports.popoverString=F;exports.styleTip=et;exports.tooltipDefaults=ot; -//# sourceMappingURL=tooltip-fMXgseyT.js.map +"use strict";const t=require("./base-component-DMuoZh8G.js"),vt=require("./index-DZ0WJZhO.js"),Tt=require("./dataBsToggle-Dj-Ng54N.js"),tt=require("./showClass-D_Ms1FgG.js"),W=require("./popupContainer-DsalI_IH.js"),it=require("./fadeClass-Co6nOzNJ.js"),F="popover",at="Popover",T="tooltip",ct=s=>{const e=s===T,o=e?`${s}-inner`:`${s}-body`,i=e?"":`

`,l=`
`,r=`
`;return`
${i+l+r}
`},ht={top:"top",bottom:"bottom",left:"start",right:"end"},et=s=>{requestAnimationFrame(()=>{const e=/\b(top|bottom|start|end)+/,{element:o,tooltip:i,container:l,offsetParent:r,options:d,arrow:c}=s;if(!i)return;const f=t.Bo(o),{x:w,y:h}=t.So(r);t.vo(i,{top:"",left:"",right:"",bottom:""});const{offsetWidth:u,offsetHeight:m}=i,{clientWidth:g,clientHeight:P,offsetWidth:O}=t.w(o);let{placement:n}=d;const{clientWidth:b,offsetWidth:k}=l,p=t.f(l,"position")==="fixed",D=Math.abs(p?b-k:g-O),H=f&&p?D:0,$=g-(f?0:D)-1,Y=s._observer.getEntry(o),{width:a,height:v,left:j,right:gt,top:I}=Y?.boundingClientRect||t.y(o,!0),{x:z,y:B}=t.No(o,r,{x:w,y:h});t.vo(c,{top:"",left:"",right:"",bottom:""});let x=0,_="",C=0,J="",L="",Q="",U="";const S=c.offsetWidth||0,E=c.offsetHeight||0,V=S/2;let q=I-m-E<0,A=I+m+v+E>=P,M=j-u-S=$;const X=["left","right"],Z=["top","bottom"];q=X.includes(n)?I+v/2-m/2-E<0:q,A=X.includes(n)?I+m/2+v/2+E>=P:A,M=Z.includes(n)?j+a/2-u/2=$:K,n=X.includes(n)&&M&&K?"top":n,n=n==="top"&&q?"bottom":n,n=n==="bottom"&&A?"top":n,n=n==="left"&&M?"right":n,n=n==="right"&&K?"left":n,i.className.includes(n)||(i.className=i.className.replace(e,ht[n])),X.includes(n)?(n==="left"?C=z-u-S:C=z+a+S,q&&A?(x=0,_=0,L=B+v/2-E/2):q?(x=B,_="",L=v/2-S):A?(x=B-m+v,_="",L=m-v/2-S):(x=B-m/2+v/2,L=m/2-E/2)):Z.includes(n)&&(n==="top"?x=B-m-E:x=B+v+E,M?(C=0,Q=z+a/2-V):K?(C="auto",J=0,U=a/2+$-gt-V):(C=z-u/2+a/2,Q=u/2-V)),t.vo(i,{top:`${x}px`,bottom:_===""?"":`${_}px`,left:C==="auto"?C:`${C}px`,right:J!==""?`${J}px`:""}),t.b(c)&&(L!==""&&(c.style.top=`${L}px`),Q!==""?c.style.left=`${Q}px`:U!==""&&(c.style.right=`${U}px`));const bt=t.po(`updated.bs.${t.Eo(s.name)}`);t.G(o,bt)})},ot={template:ct(T),title:"",customClass:"",trigger:"hover focus",placement:"top",sanitizeFn:void 0,animation:!0,delay:200,container:document.body,content:"",dismissible:!1,btnClose:""},dt="data-original-title",N="Tooltip",y=(s,e,o)=>{if(t.N(e)&&e.length){let i=e.trim();t.Lo(o)&&(i=o(i));const r=new DOMParser().parseFromString(i,"text/html");s.append(...r.body.childNodes)}else t.b(e)?s.append(e):(t.Fo(e)||t.we(e)&&e.every(t.u))&&s.append(...e)},wt=s=>{const e=s.name===N,{id:o,element:i,options:l}=s,{title:r,placement:d,template:c,animation:f,customClass:w,sanitizeFn:h,dismissible:u,content:m,btnClose:g}=l,P=e?T:F,O={...ht};let n=[],b=[];t.Bo(i)&&(O.left="end",O.right="start");const k=`bs-${P}-${O[d]}`;let G;if(t.b(c))G=c;else{const a=t.ne("div");y(a,c,h),G=a.firstChild}if(!t.b(G))return;s.tooltip=G.cloneNode(!0);const{tooltip:p}=s;t.Wn(p,"id",o),t.Wn(p,"role",T);const D=e?`${T}-inner`:`${F}-body`,H=e?null:t.Ho(`.${F}-header`,p),$=t.Ho(`.${D}`,p);s.arrow=t.Ho(`.${P}-arrow`,p);const{arrow:Y}=s;if(t.b(r))n=[r.cloneNode(!0)];else{const a=t.ne("div");y(a,r,h),n=[...a.childNodes]}if(t.b(m))b=[m.cloneNode(!0)];else{const a=t.ne("div");y(a,m,h),b=[...a.childNodes]}if(u)if(r)if(t.b(g))n=[...n,g.cloneNode(!0)];else{const a=t.ne("div");y(a,g,h),n=[...n,a.firstChild]}else if(H&&H.remove(),t.b(g))b=[...b,g.cloneNode(!0)];else{const a=t.ne("div");y(a,g,h),b=[...b,a.firstChild]}e?r&&$&&y($,r,h):(r&&H&&y(H,n,h),m&&$&&y($,b,h),s.btn=t.Ho(".btn-close",p)||void 0),t.Kn(p,"position-absolute"),t.Kn(Y,"position-absolute"),t.Gn(p,P)||t.Kn(p,P),f&&!t.Gn(p,it.fadeClass)&&t.Kn(p,it.fadeClass),w&&!t.Gn(p,w)&&t.Kn(p,w),t.Gn(p,k)||t.Kn(p,k)},$t=s=>{const e=["HTML","BODY"],o=[];let{parentNode:i}=s;for(;i&&!e.includes(i.nodeName);)i=t.k(i),t.pe(i)||t.me(i)||o.push(i);return o.find((l,r)=>(t.f(l,"position")!=="relative"||t.f(l,"position")==="relative"&&l.offsetHeight!==l.scrollHeight)&&o.slice(r+1).every(d=>t.f(d,"position")==="static")?l:null)||t.d(s).body},Ct=`[${Tt.dataBsToggle}="${T}"],[data-tip="${T}"]`,pt="title";let st=s=>t.Xn(s,N);const Et=s=>new ut(s),yt=s=>{const{element:e,tooltip:o,container:i}=s;t.Qn(e,t.Me),W.removePopup(o,i)},R=s=>{const{tooltip:e,container:o}=s;return e&&W.hasPopup(e,o)},Pt=(s,e)=>{const{element:o}=s;s._toggleEventListeners(),t.ee(o,dt)&&s.name===N&&mt(s),e&&e()},ft=(s,e)=>{const o=e?t.E:t.r,{element:i}=s;o(t.d(i),t.Wt,s.handleTouch,t.go)},nt=s=>{const{element:e}=s,o=t.po(`shown.bs.${t.Eo(s.name)}`);ft(s,!0),t.G(e,o),t.bo.clear(e,"in")},lt=s=>{const{element:e}=s,o=t.po(`hidden.bs.${t.Eo(s.name)}`);ft(s),yt(s),t.G(e,o),t.bo.clear(e,"out")},rt=(s,e)=>{const o=e?t.E:t.r,{element:i,tooltip:l}=s,r=t.Se(i,`.${W.modalString}`),d=t.Se(i,`.${W.offcanvasString}`);e?[i,l].forEach(c=>s._observer.observe(c)):s._observer.disconnect(),r&&o(r,`hide.bs.${W.modalString}`,s.handleHide),d&&o(d,`hide.bs.${W.offcanvasString}`,s.handleHide)},mt=(s,e)=>{const o=[dt,pt],{element:i}=s;t.Wn(i,o[e?0:1],e||t.j(i,o[0])||""),t.Qn(i,o[e?1:0])};class ut extends t.BaseComponent{static selector=Ct;static init=Et;static getInstance=st;static styleTip=et;constructor(e,o){super(e,o);const{element:i}=this,l=this.name===N,r=l?T:F,d=l?N:at;st=h=>t.Xn(h,d),this.enabled=!0,this.id=`${r}-${t.ye(i,r)}`;const{options:c}=this;if(!c.title&&l||!l&&!c.content)return;t.C(ot,{titleAttr:""}),t.ee(i,pt)&&l&&typeof c.title=="string"&&mt(this,c.title);const f=$t(i),w=["sticky","fixed","relative"].some(h=>t.f(f,"position")===h)?f:t.ge(i);this.container=f,this.offsetParent=w,wt(this),this.tooltip&&(this._observer=new vt.v(()=>this.update()),this._toggleEventListeners(!0))}get name(){return N}get defaults(){return ot}handleFocus=()=>t.ro(this.element);handleShow=()=>this.show();show(){const{options:e,tooltip:o,element:i,container:l,id:r}=this,{animation:d}=e,c=t.bo.get(i,"out");t.bo.clear(i,"out"),o&&!c&&!R(this)&&t.bo.set(i,()=>{const f=t.po(`show.bs.${t.Eo(this.name)}`);t.G(i,f),f.defaultPrevented||(W.appendPopup(o,l),t.Wn(i,t.Me,`#${r}`),this.update(),rt(this,!0),t.Gn(o,tt.showClass)||t.Kn(o,tt.showClass),d?t.no(o,()=>nt(this)):nt(this))},17,"in")}handleHide=()=>this.hide();hide(){const{options:e,tooltip:o,element:i}=this,{animation:l,delay:r}=e;t.bo.clear(i,"in"),o&&R(this)&&t.bo.set(i,()=>{const d=t.po(`hide.bs.${t.Eo(this.name)}`);t.G(i,d),d.defaultPrevented||(this.update(),t.qn(o,tt.showClass),rt(this),l?t.no(o,()=>lt(this)):lt(this))},r+17,"out")}update=()=>{et(this)};toggle=()=>{const{tooltip:e}=this;e&&!R(this)?this.show():this.hide()};enable(){const{enabled:e}=this;e||(this._toggleEventListeners(!0),this.enabled=!e)}disable(){const{tooltip:e,enabled:o}=this;o&&(e&&R(this)&&this.hide(),this._toggleEventListeners(),this.enabled=!o)}toggleEnabled(){this.enabled?this.disable():this.enable()}handleTouch=({target:e})=>{const{tooltip:o,element:i}=this;o&&o.contains(e)||e===i||e&&i.contains(e)||this.hide()};_toggleEventListeners=e=>{const o=e?t.E:t.r,{element:i,options:l,btn:r}=this,{trigger:d}=l,f=!!(this.name!==N&&l.dismissible);d.includes("manual")||(this.enabled=!!e,d.split(" ").forEach(h=>{h===t.Et?(o(i,t.vt,this.handleShow),o(i,t.ht,this.handleShow),f||(o(i,t.yt,this.handleHide),o(t.d(i),t.Wt,this.handleTouch,t.go))):h===t.gt?o(i,h,f?this.handleShow:this.toggle):h===t.st&&(o(i,t.rt,this.handleShow),f||o(i,t.ct,this.handleHide),t.On()&&o(i,t.gt,this.handleFocus)),f&&r&&o(r,t.gt,this.handleHide)}))};dispose(){const{tooltip:e,options:o}=this,i={...this,name:this.name},l=()=>setTimeout(()=>Pt(i,()=>super.dispose()),17);o.animation&&R(i)?(this.options.delay=0,this.hide(),t.no(e,l)):l()}}exports.Tooltip=ut;exports.getTipTemplate=ct;exports.popoverComponent=at;exports.popoverString=F;exports.styleTip=et;exports.tooltipDefaults=ot; +//# sourceMappingURL=tooltip-DwQSdbgB.js.map diff --git a/dist/components/tooltip-fMXgseyT.js.map b/dist/components/tooltip-DwQSdbgB.js.map similarity index 99% rename from dist/components/tooltip-fMXgseyT.js.map rename to dist/components/tooltip-DwQSdbgB.js.map index 88b2ca40..1cce9a72 100644 --- a/dist/components/tooltip-fMXgseyT.js.map +++ b/dist/components/tooltip-DwQSdbgB.js.map @@ -1 +1 @@ -{"version":3,"file":"tooltip-fMXgseyT.js","sources":["../../src/strings/popoverString.ts","../../src/strings/popoverComponent.ts","../../src/strings/tooltipString.ts","../../src/util/getTipTemplate.ts","../../src/util/tipClassPositions.ts","../../src/util/styleTip.ts","../../src/util/tooltipDefaults.ts","../../src/strings/dataOriginalTitle.ts","../../src/strings/tooltipComponent.ts","../../src/util/setHtml.ts","../../src/util/createTip.ts","../../src/util/getElementContainer.ts","../../src/components/tooltip.ts"],"sourcesContent":["/** @type {string} */\nconst popoverString = \"popover\";\nexport default popoverString;\n","/** @type {string} */\nconst popoverComponent = \"Popover\";\nexport default popoverComponent;\n","/** @type {string} */\nconst tooltipString = \"tooltip\";\nexport default tooltipString;\n","import tooltipString from \"../strings/tooltipString\";\n\n/**\n * Returns a template for Popover / Tooltip.\n *\n * @param tipType the expected markup type\n * @returns the template markup\n */\nconst getTipTemplate = (tipType: string) => {\n const isTooltip = tipType === tooltipString;\n const bodyClass = isTooltip ? `${tipType}-inner` : `${tipType}-body`;\n const header = !isTooltip ? `

` : \"\";\n const arrow = `
`;\n const body = `
`;\n return `
${\n header + arrow + body\n }
`;\n};\n\nexport default getTipTemplate;\n","const tipClassPositions = {\n top: \"top\",\n bottom: \"bottom\",\n left: \"start\",\n right: \"end\",\n};\n\nexport default tipClassPositions;\n","import {\n createCustomEvent,\n dispatchEvent,\n getBoundingClientRect,\n getDocumentElement,\n getElementStyle,\n getNodeScroll,\n getRectRelativeToOffsetParent,\n isHTMLElement,\n isRTL,\n setElementStyle,\n toLowerCase,\n} from \"@thednp/shorty\";\n\nimport tipClassPositions from \"./tipClassPositions\";\nimport Tooltip from \"../components/tooltip\";\nimport type { TooltipEvent } from \"../interface/tooltip\";\nimport type { PopoverEvent } from \"../interface/popover\";\n\n/**\n * Style popovers and tooltips.\n *\n * @param self the `Popover` / `Tooltip` instance\n */\nconst styleTip = (self: Tooltip) => {\n requestAnimationFrame(() => {\n const tipClasses = /\\b(top|bottom|start|end)+/;\n const { element, tooltip, container, offsetParent, options, arrow } = self;\n\n // istanbul ignore if @preserve\n if (!tooltip) return;\n const RTL = isRTL(element);\n const { x: scrollLeft, y: scrollTop } = getNodeScroll(offsetParent);\n\n // reset tooltip style (top: 0, left: 0 works best)\n setElementStyle(tooltip, {\n top: \"\",\n left: \"\",\n right: \"\",\n bottom: \"\",\n });\n const { offsetWidth: tipWidth, offsetHeight: tipHeight } = tooltip;\n const { clientWidth: htmlcw, clientHeight: htmlch, offsetWidth: htmlow } =\n getDocumentElement(element);\n let { placement } = options;\n const { clientWidth: parentCWidth, offsetWidth: parentOWidth } = container;\n const parentPosition = getElementStyle(\n container,\n \"position\",\n );\n const fixedParent = parentPosition === \"fixed\";\n const scrollbarWidth = fixedParent\n ? Math.abs(parentCWidth - parentOWidth)\n : Math.abs(htmlcw - htmlow);\n const leftBoundry = RTL && fixedParent\n ? /* istanbul ignore next @preserve */ scrollbarWidth\n : 0;\n const rightBoundry = htmlcw - (!RTL ? scrollbarWidth : 0) - 1;\n\n // reuse observer entry bounding box\n const observerEntry = self._observer.getEntry(element);\n const {\n width: elemWidth,\n height: elemHeight,\n left: elemRectLeft,\n right: elemRectRight,\n top: elemRectTop,\n } = observerEntry?.boundingClientRect ||\n getBoundingClientRect(element, true);\n\n const {\n x: elemOffsetLeft,\n y: elemOffsetTop,\n } = getRectRelativeToOffsetParent(\n element,\n offsetParent,\n { x: scrollLeft, y: scrollTop },\n );\n\n // reset arrow style\n setElementStyle(arrow as HTMLElement, {\n top: \"\",\n left: \"\",\n right: \"\",\n bottom: \"\",\n });\n let topPosition: number | string = 0;\n let bottomPosition: number | string = \"\";\n let leftPosition: number | string = 0;\n let rightPosition: number | string = \"\";\n let arrowTop: number | string = \"\";\n let arrowLeft: number | string = \"\";\n let arrowRight: number | string = \"\";\n\n const arrowWidth = arrow.offsetWidth || 0;\n const arrowHeight = arrow.offsetHeight || 0;\n const arrowAdjust = arrowWidth / 2;\n\n // check placement\n let topExceed = elemRectTop - tipHeight - arrowHeight < 0;\n let bottomExceed =\n elemRectTop + tipHeight + elemHeight + arrowHeight >= htmlch;\n let leftExceed = elemRectLeft - tipWidth - arrowWidth < leftBoundry;\n let rightExceed =\n elemRectLeft + tipWidth + elemWidth + arrowWidth >= rightBoundry;\n\n const horizontals = [\"left\", \"right\"];\n const verticals = [\"top\", \"bottom\"];\n\n topExceed = horizontals.includes(placement)\n ? elemRectTop + elemHeight / 2 - tipHeight / 2 - arrowHeight < 0\n : topExceed;\n bottomExceed = horizontals.includes(placement)\n ? elemRectTop + tipHeight / 2 + elemHeight / 2 + arrowHeight >= htmlch\n : bottomExceed;\n leftExceed = verticals.includes(placement)\n ? elemRectLeft + elemWidth / 2 - tipWidth / 2 < leftBoundry\n : leftExceed;\n rightExceed = verticals.includes(placement)\n ? elemRectLeft + tipWidth / 2 + elemWidth / 2 >= rightBoundry\n : rightExceed;\n\n // first remove side positions if both left and right limits are exceeded\n // we usually fall back to top|bottom\n placement = horizontals.includes(placement) && leftExceed && rightExceed\n ? \"top\"\n : placement;\n // recompute placement\n placement = placement === \"top\" && topExceed ? \"bottom\" : placement;\n placement = placement === \"bottom\" && bottomExceed ? \"top\" : placement;\n placement = placement === \"left\" && leftExceed ? \"right\" : placement;\n placement = placement === \"right\" && rightExceed\n ? \"left\"\n // istanbul ignore next @preserve\n : placement;\n\n // update tooltip/popover class\n // istanbul ignore else @preserve\n if (!tooltip.className.includes(placement)) {\n tooltip.className = tooltip.className.replace(\n tipClasses,\n tipClassPositions[placement],\n );\n }\n\n // compute tooltip / popover coordinates\n // istanbul ignore else @preserve\n if (horizontals.includes(placement)) {\n // secondary|side positions\n if (placement === \"left\") {\n // LEFT\n leftPosition = elemOffsetLeft - tipWidth - arrowWidth;\n } else {\n // RIGHT\n leftPosition = elemOffsetLeft + elemWidth + arrowWidth;\n }\n\n // adjust top and arrow\n if (topExceed && bottomExceed) {\n topPosition = 0;\n bottomPosition = 0;\n arrowTop = elemOffsetTop + elemHeight / 2 - arrowHeight / 2;\n } else if (topExceed) {\n topPosition = elemOffsetTop;\n bottomPosition = \"\";\n arrowTop = elemHeight / 2 - arrowWidth;\n } else if (bottomExceed) {\n topPosition = elemOffsetTop - tipHeight + elemHeight;\n bottomPosition = \"\";\n arrowTop = tipHeight - elemHeight / 2 - arrowWidth;\n } else {\n topPosition = elemOffsetTop - tipHeight / 2 + elemHeight / 2;\n arrowTop = tipHeight / 2 - arrowHeight / 2;\n }\n } else if (verticals.includes(placement)) {\n if (placement === \"top\") {\n topPosition = elemOffsetTop - tipHeight - arrowHeight;\n } else {\n // BOTTOM\n topPosition = elemOffsetTop + elemHeight + arrowHeight;\n }\n\n // adjust left | right and also the arrow\n if (leftExceed) {\n leftPosition = 0;\n arrowLeft = elemOffsetLeft + elemWidth / 2 - arrowAdjust;\n } else if (rightExceed) {\n leftPosition = \"auto\";\n rightPosition = 0;\n arrowRight = elemWidth / 2 + rightBoundry - elemRectRight - arrowAdjust;\n } else {\n leftPosition = elemOffsetLeft - tipWidth / 2 + elemWidth / 2;\n arrowLeft = tipWidth / 2 - arrowAdjust;\n }\n }\n\n // apply style to tooltip/popover\n setElementStyle(tooltip, {\n top: `${topPosition}px`,\n bottom: bottomPosition === \"\" ? \"\" : `${bottomPosition}px`,\n left: leftPosition === \"auto\" ? leftPosition : `${leftPosition}px`,\n right: rightPosition !== \"\" ? `${rightPosition}px` : \"\",\n });\n\n // update arrow placement\n // istanbul ignore else @preserve\n if (isHTMLElement(arrow)) {\n if (arrowTop !== \"\") {\n arrow.style.top = `${arrowTop}px`;\n }\n if (arrowLeft !== \"\") {\n arrow.style.left = `${arrowLeft}px`;\n } else if (arrowRight !== \"\") {\n arrow.style.right = `${arrowRight}px`;\n }\n }\n const updatedTooltipEvent = createCustomEvent<\n Record,\n TooltipEvent | PopoverEvent\n >(\n `updated.bs.${toLowerCase(self.name)}`,\n );\n dispatchEvent(element, updatedTooltipEvent);\n });\n};\n\nexport default styleTip;\n","import getTipTemplate from \"./getTipTemplate\";\nimport tooltipString from \"../strings/tooltipString\";\nimport { TooltipOptions } from \"../interface/tooltip\";\n\nconst tooltipDefaults: TooltipOptions = {\n template: getTipTemplate(tooltipString),\n title: \"\",\n customClass: \"\",\n trigger: \"hover focus\",\n placement: \"top\",\n sanitizeFn: undefined,\n animation: true,\n delay: 200,\n container: document.body,\n content: \"\",\n dismissible: false,\n btnClose: \"\",\n};\nexport default tooltipDefaults;\n","/**\n * Global namespace for `data-bs-title` attribute.\n */\nconst dataOriginalTitle = \"data-original-title\";\nexport default dataOriginalTitle;\n","/** @type {string} */\nconst tooltipComponent = \"Tooltip\";\nexport default tooltipComponent;\n","import {\n isArray,\n isFunction,\n isHTMLElement,\n isNode,\n isNodeList,\n isString,\n} from \"@thednp/shorty\";\n\n/**\n * Append an existing `Element` to Popover / Tooltip component or HTML\n * markup string to be parsed & sanitized to be used as popover / tooltip content.\n *\n * @param element target\n * @param content the `Element` to append / string\n * @param sanitizeFn a function to sanitize string content\n */\nconst setHtml = (\n element: HTMLElement,\n content: Node[] | Node | string,\n sanitizeFn?: (s: string) => string,\n) => {\n // istanbul ignore else @preserve\n if (isString(content) && content.length) {\n let dirty = content.trim(); // fixing #233\n if (isFunction(sanitizeFn)) dirty = sanitizeFn(dirty);\n\n const domParser = new DOMParser();\n const tempDocument = domParser.parseFromString(dirty, \"text/html\");\n element.append(...[...tempDocument.body.childNodes]);\n } else if (isHTMLElement(content)) {\n element.append(content);\n } else if (\n isNodeList(content) || (isArray(content) && content.every(isNode))\n ) {\n element.append(...[...content]);\n }\n};\nexport default setHtml;\n","import {\n addClass,\n createElement,\n hasClass,\n isHTMLElement,\n isRTL,\n querySelector,\n setAttribute,\n} from \"@thednp/shorty\";\n\nimport tooltipComponent from \"../strings/tooltipComponent\";\nimport tooltipString from \"../strings/tooltipString\";\nimport popoverString from \"../strings/popoverString\";\nimport fadeClass from \"../strings/fadeClass\";\nimport tipClassPositions from \"./tipClassPositions\";\nimport setHtml from \"./setHtml\";\nimport Tooltip from \"../components/tooltip\";\nimport Popover from \"../components/popover\";\n\n/**\n * Creates a new tooltip / popover.\n *\n * @param self the `Tooltip` / `Popover` instance\n */\nconst createTip = (self: Tooltip | Popover) => {\n const isTooltip = self.name === tooltipComponent;\n\n const { id, element, options } = self;\n const {\n title,\n placement,\n template,\n animation,\n customClass,\n sanitizeFn,\n dismissible,\n content,\n btnClose,\n } = options;\n const tipString = isTooltip ? tooltipString : popoverString;\n const tipPositions = { ...tipClassPositions };\n let titleParts: Node[] = [];\n let contentParts: Node[] = [];\n\n if (isRTL(element)) {\n tipPositions.left = \"end\";\n tipPositions.right = \"start\";\n }\n\n // set initial popover class\n const placementClass = `bs-${tipString}-${tipPositions[placement]}`;\n\n // load template\n let tooltipTemplate: Node | string;\n if (isHTMLElement(template)) {\n tooltipTemplate = template;\n } else {\n const htmlMarkup = createElement(\"div\") as HTMLElement;\n setHtml(htmlMarkup, template, sanitizeFn);\n tooltipTemplate = htmlMarkup.firstChild as HTMLElement;\n }\n\n /* istanbul ignore if @preserve */\n if (!isHTMLElement(tooltipTemplate)) return;\n\n // set popover markup\n self.tooltip = tooltipTemplate.cloneNode(true) as HTMLElement;\n const { tooltip } = self;\n\n // set id and role attributes\n setAttribute(tooltip, \"id\", id);\n setAttribute(tooltip, \"role\", tooltipString);\n\n const bodyClass = isTooltip\n ? `${tooltipString}-inner`\n : `${popoverString}-body`;\n const tooltipHeader = isTooltip\n ? null\n : querySelector(`.${popoverString}-header`, tooltip);\n const tooltipBody = querySelector(`.${bodyClass}`, tooltip);\n\n // set arrow and enable access for styleTip\n self.arrow = querySelector(\n `.${tipString}-arrow`,\n tooltip,\n ) as HTMLElement;\n const { arrow } = self;\n\n if (isHTMLElement(title)) titleParts = [title.cloneNode(true)];\n else {\n const tempTitle = createElement(\"div\") as HTMLElement;\n setHtml(tempTitle, title, sanitizeFn);\n titleParts = [...[...tempTitle.childNodes]];\n }\n\n if (isHTMLElement(content)) contentParts = [content.cloneNode(true)];\n else {\n const tempContent = createElement(\"div\") as HTMLElement;\n setHtml(tempContent, content, sanitizeFn);\n contentParts = [...[...tempContent.childNodes]];\n }\n\n // set dismissible button\n if (dismissible) {\n if (title) {\n if (isHTMLElement(btnClose)) {\n titleParts = [...titleParts, btnClose.cloneNode(true)];\n } else {\n const tempBtn = createElement(\"div\") as HTMLElement;\n setHtml(tempBtn, btnClose, sanitizeFn);\n titleParts = [...titleParts, tempBtn.firstChild as Node];\n }\n } else {\n // istanbul ignore else @preserve\n if (tooltipHeader) tooltipHeader.remove();\n if (isHTMLElement(btnClose)) {\n contentParts = [...contentParts, btnClose.cloneNode(true)];\n } else {\n const tempBtn = createElement(\"div\") as HTMLElement;\n setHtml(tempBtn, btnClose, sanitizeFn);\n contentParts = [...contentParts, tempBtn.firstChild as Node];\n }\n }\n }\n\n // fill the template with content from options / data attributes\n // also sanitize title && content\n // istanbul ignore else @preserve\n if (!isTooltip) {\n // istanbul ignore else @preserve\n if (title && tooltipHeader) {\n setHtml(tooltipHeader, titleParts, sanitizeFn);\n }\n // istanbul ignore else @preserve\n if (content && tooltipBody) {\n setHtml(tooltipBody, contentParts, sanitizeFn);\n }\n // set btn\n self.btn = querySelector(\".btn-close\", tooltip) ||\n undefined;\n } else if (title && tooltipBody) setHtml(tooltipBody, title, sanitizeFn);\n\n // Bootstrap 5.2.x\n addClass(tooltip, \"position-absolute\");\n addClass(arrow, \"position-absolute\");\n\n // set popover animation and placement\n // istanbul ignore else @preserve\n if (!hasClass(tooltip, tipString)) addClass(tooltip, tipString);\n // istanbul ignore else @preserve\n if (animation && !hasClass(tooltip, fadeClass)) {\n addClass(tooltip, fadeClass);\n }\n // istanbul ignore else @preserve\n if (customClass && !hasClass(tooltip, customClass)) {\n addClass(tooltip, customClass);\n }\n // istanbul ignore else @preserve\n if (!hasClass(tooltip, placementClass)) addClass(tooltip, placementClass);\n};\n\nexport default createTip;\n","import {\n getDocument,\n getElementStyle,\n getParentNode,\n isShadowRoot,\n isTableElement,\n} from \"@thednp/shorty\";\n\n/**\n * Returns an `HTMLElement` to be used as default value for *options.container*\n * for `Tooltip` / `Popover` components.\n *\n * @see https://github.com/floating-ui/floating-ui\n *\n * @param element the target\n * @returns the query result\n */\nconst getElementContainer = (element: Element) => {\n const majorBlockTags = [\"HTML\", \"BODY\"];\n const containers: HTMLElement[] = [];\n let { parentNode } = element;\n\n while (parentNode && !majorBlockTags.includes(parentNode.nodeName)) {\n parentNode = getParentNode(parentNode) as HTMLElement;\n // istanbul ignore else @preserve\n if (!(isShadowRoot(parentNode) || isTableElement(parentNode))) {\n containers.push(parentNode as HTMLElement);\n }\n }\n\n return (\n containers.find((c, i) => {\n if (\n ((getElementStyle(c, \"position\") !== \"relative\" ||\n getElementStyle(c, \"position\") === \"relative\" &&\n c.offsetHeight !== c.scrollHeight) &&\n containers.slice(i + 1).every((r) =>\n getElementStyle(r, \"position\") === \"static\"\n ))\n ) {\n return c;\n }\n return null;\n }) ||\n /* istanbul ignore next: optional guard */\n getDocument(element).body\n );\n};\n\nexport default getElementContainer;\n","/* Native JavaScript for Bootstrap 5 | Tooltip\n---------------------------------------------- */\nimport {\n addClass,\n ariaDescribedBy,\n closest,\n createCustomEvent,\n dispatchEvent,\n emulateTransitionEnd,\n focus,\n focusEvent,\n focusinEvent,\n focusoutEvent,\n getAttribute,\n getDocument,\n getElementStyle,\n getInstance,\n getUID,\n getWindow,\n hasAttribute,\n hasClass,\n isApple,\n mouseclickEvent,\n mousedownEvent,\n mouseenterEvent,\n mousehoverEvent,\n mouseleaveEvent,\n ObjectAssign,\n passiveHandler,\n removeAttribute,\n removeClass,\n setAttribute,\n Timer,\n toLowerCase,\n TouchEvent,\n touchstartEvent,\n} from \"@thednp/shorty\";\n\nimport { addListener, removeListener } from \"@thednp/event-listener\";\nimport PositionObserver from \"@thednp/position-observer\";\n\nimport dataBsToggle from \"~/strings/dataBsToggle\";\nimport dataOriginalTitle from \"~/strings/dataOriginalTitle\";\nimport showClass from \"~/strings/showClass\";\nimport tooltipString from \"~/strings/tooltipString\";\nimport tooltipComponent from \"~/strings/tooltipComponent\";\nimport popoverString from \"~/strings/popoverString\";\nimport popoverComponent from \"~/strings/popoverComponent\";\nimport modalString from \"~/strings/modalString\";\nimport offcanvasString from \"~/strings/offcanvasString\";\n\nimport styleTip from \"~/util/styleTip\";\nimport createTip from \"~/util/createTip\";\nimport { appendPopup, hasPopup, removePopup } from \"~/util/popupContainer\";\nimport getElementContainer from \"~/util/getElementContainer\";\nimport tooltipDefaults from \"~/util/tooltipDefaults\";\nimport BaseComponent from \"./base-component\";\nimport type { TooltipEvent, TooltipOptions } from \"~/interface/tooltip\";\nimport type { PopoverEvent, PopoverOptions } from \"~/interface/popover\";\n\n// TOOLTIP PRIVATE GC\n// ==================\nconst tooltipSelector =\n `[${dataBsToggle}=\"${tooltipString}\"],[data-tip=\"${tooltipString}\"]`;\nconst titleAttr = \"title\";\n\n/**\n * Static method which returns an existing `Tooltip` instance associated\n * to a target `Element`.\n */\nlet getTooltipInstance = (element: Element) =>\n getInstance(element, tooltipComponent);\n\n/**\n * A `Tooltip` initialization callback.\n */\nconst tooltipInitCallback = (element: Element) => new Tooltip(element);\n\n// TOOLTIP PRIVATE METHODS\n// =======================\n/**\n * Removes the tooltip from the DOM.\n *\n * @param self the `Tooltip` instance\n */\nconst removeTooltip = (self: Tooltip) => {\n const { element, tooltip, container } = self;\n removeAttribute(element, ariaDescribedBy);\n removePopup(\n tooltip,\n container,\n );\n};\n\n/**\n * Check if container contains the tooltip.\n *\n * @param self Tooltip\n */\nconst hasTip = (self: Tooltip): boolean | undefined => {\n const { tooltip, container } = self;\n\n return tooltip &&\n hasPopup(tooltip, container);\n};\n\n/**\n * Executes after the instance has been disposed.\n *\n * @param self the `Tooltip` instance\n * @param callback the parent dispose callback\n */\nconst disposeTooltipComplete = (self: Tooltip, callback?: () => void) => {\n const { element } = self;\n self._toggleEventListeners();\n\n // istanbul ignore else @preserve\n if (\n hasAttribute(element, dataOriginalTitle) && self.name === tooltipComponent\n ) {\n toggleTooltipTitle(self);\n }\n // istanbul ignore else @preserve\n if (callback) callback();\n};\n\n/**\n * Toggles on/off the special `Tooltip` event listeners.\n *\n * @param self the `Tooltip` instance\n * @param add when `true`, event listeners are added\n */\nconst toggleTooltipAction = (self: Tooltip, add?: boolean) => {\n const action = add ? addListener : removeListener;\n const { element } = self;\n\n action(\n getDocument(element),\n touchstartEvent,\n self.handleTouch,\n passiveHandler,\n );\n};\n\n/**\n * Executes after the tooltip was shown to the user.\n *\n * @param self the `Tooltip` instance\n */\nconst tooltipShownAction = (self: Tooltip) => {\n const { element } = self;\n const shownTooltipEvent = createCustomEvent<\n Record,\n TooltipEvent | PopoverEvent\n >(\n `shown.bs.${toLowerCase(self.name)}`,\n );\n\n toggleTooltipAction(self, true);\n dispatchEvent(element, shownTooltipEvent);\n Timer.clear(element, \"in\");\n};\n\n/**\n * Executes after the tooltip was hidden to the user.\n *\n * @param self the `Tooltip` instance\n */\nconst tooltipHiddenAction = (self: Tooltip) => {\n const { element } = self;\n const hiddenTooltipEvent = createCustomEvent<\n Record,\n TooltipEvent | PopoverEvent\n >(\n `hidden.bs.${toLowerCase(self.name)}`,\n );\n\n toggleTooltipAction(self);\n removeTooltip(self);\n dispatchEvent(element, hiddenTooltipEvent);\n\n Timer.clear(element, \"out\");\n};\n\n/**\n * Toggles on/off the `Tooltip` event listeners that hide/update the tooltip.\n *\n * @param self the `Tooltip` instance\n * @param add when `true`, event listeners are added\n */\nconst toggleTooltipOpenHandlers = (self: Tooltip, add?: boolean) => {\n const action = add ? addListener : removeListener;\n const { element, tooltip } = self;\n const parentModal = closest(element, `.${modalString}`);\n const parentOffcanvas = closest(element, `.${offcanvasString}`);\n\n if (add) {\n [element, tooltip]\n .forEach((target) => self._observer.observe(target));\n } else self._observer.disconnect();\n\n // dismiss tooltips inside modal / offcanvas\n if (parentModal) {\n action(parentModal, `hide.bs.${modalString}`, self.handleHide);\n }\n if (parentOffcanvas) {\n action(parentOffcanvas, `hide.bs.${offcanvasString}`, self.handleHide);\n }\n};\n\n/**\n * Toggles the `title` and `data-original-title` attributes.\n *\n * @param self the `Tooltip` instance\n * @param content when `true`, event listeners are added\n */\nconst toggleTooltipTitle = (self: Tooltip, content?: string) => {\n // [0 - add, 1 - remove] | [0 - remove, 1 - add]\n const titleAtt = [dataOriginalTitle, titleAttr];\n const { element } = self;\n\n setAttribute(\n element,\n titleAtt[content ? 0 : 1],\n content ||\n getAttribute(element, titleAtt[0]) ||\n // istanbul ignore next @preserve\n \"\",\n );\n removeAttribute(element, titleAtt[content ? 1 : 0]);\n};\n\n// TOOLTIP DEFINITION\n// ==================\n/** Creates a new `Tooltip` instance. */\nexport default class Tooltip extends BaseComponent {\n static selector = tooltipSelector;\n static init = tooltipInitCallback;\n static getInstance = getTooltipInstance;\n static styleTip = styleTip;\n declare element: Element & HTMLOrSVGElement;\n declare options: TooltipOptions;\n declare btn?: HTMLElement;\n declare tooltip: HTMLElement;\n declare container: HTMLElement;\n declare offsetParent: Element | Window;\n declare arrow: HTMLElement;\n declare enabled: boolean;\n declare id: string;\n declare _observer: PositionObserver;\n\n /**\n * @param target the target element\n * @param config the instance options\n */\n constructor(target: Element | string, config?: Partial) {\n super(target, config);\n\n const { element } = this;\n const isTooltip = this.name === tooltipComponent;\n const tipString = isTooltip ? tooltipString : popoverString;\n const tipComponent = isTooltip ? tooltipComponent : popoverComponent;\n\n // istanbul ignore next @preserve: this is to set Popover too\n getTooltipInstance = (elem: Element) =>\n getInstance(elem, tipComponent);\n\n // additional properties\n this.enabled = true;\n /** Set unique ID for `aria-describedby`. */\n this.id = `${tipString}-${getUID(element, tipString)}`;\n\n // instance options\n const { options } = this;\n\n // invalidate\n // istanbul ignore else @preserve\n if (((!options.title && isTooltip) || (!isTooltip && !options.content))) {\n return;\n }\n\n // reset default options\n ObjectAssign(tooltipDefaults, { titleAttr: \"\" });\n\n // set title attributes and add event listeners\n // istanbul ignore else @preserve\n if (\n hasAttribute(element, titleAttr) && isTooltip &&\n typeof options.title === \"string\"\n ) {\n toggleTooltipTitle(this, options.title);\n }\n\n // set containers\n const container = getElementContainer(element);\n const offsetParent = [\"sticky\", \"fixed\", \"relative\"].some(\n (position) =>\n getElementStyle(container, \"position\") ===\n position,\n )\n ? container\n : getWindow(element);\n\n this.container = container;\n this.offsetParent = offsetParent;\n\n // create tooltip here\n createTip(this);\n\n /* istanbul ignore if @preserve */\n if (!this.tooltip) return;\n\n // create observer\n this._observer = new PositionObserver(() => this.update());\n\n // attach events\n this._toggleEventListeners(true);\n }\n\n /**\n * Returns component name string.\n */\n get name() {\n return tooltipComponent;\n }\n /**\n * Returns component default options.\n */\n get defaults() {\n return tooltipDefaults;\n }\n\n // TOOLTIP PUBLIC METHODS\n // ======================\n /** Handles the focus event on iOS. */\n // istanbul ignore next @preserve - impossible to test without Apple device\n handleFocus = () => focus(this.element as HTMLElement);\n /** Shows the tooltip. */\n handleShow = () => this.show();\n show() {\n const { options, tooltip, element, container, id } = this;\n const { animation } = options;\n const outTimer = Timer.get(element, \"out\");\n\n Timer.clear(element, \"out\");\n\n if (tooltip && !outTimer && !hasTip(this)) {\n Timer.set(\n element,\n () => {\n const showTooltipEvent = createCustomEvent<\n Record,\n TooltipEvent | PopoverEvent\n >(\n `show.bs.${toLowerCase(this.name)}`,\n );\n dispatchEvent(element, showTooltipEvent);\n\n // istanbul ignore else @preserve\n if (!showTooltipEvent.defaultPrevented) {\n // append to container\n appendPopup(tooltip, container);\n\n setAttribute(element, ariaDescribedBy, `#${id}`);\n\n this.update();\n toggleTooltipOpenHandlers(this, true);\n\n // istanbul ignore else @preserve\n if (!hasClass(tooltip, showClass)) addClass(tooltip, showClass);\n // istanbul ignore else @preserve\n if (animation) {\n emulateTransitionEnd(tooltip, () => tooltipShownAction(this));\n } else tooltipShownAction(this);\n }\n },\n 17,\n \"in\",\n );\n }\n }\n\n /** Hides the tooltip. */\n handleHide = () => this.hide();\n hide() {\n const { options, tooltip, element } = this;\n const { animation, delay } = options;\n\n Timer.clear(element, \"in\");\n\n // istanbul ignore else @preserve\n if (tooltip && hasTip(this)) {\n Timer.set(\n element,\n () => {\n const hideTooltipEvent = createCustomEvent<\n Record,\n TooltipEvent | PopoverEvent\n >(\n `hide.bs.${toLowerCase(this.name)}`,\n );\n dispatchEvent(element, hideTooltipEvent);\n\n // istanbul ignore else @preserve\n if (!hideTooltipEvent.defaultPrevented) {\n this.update();\n removeClass(tooltip, showClass);\n toggleTooltipOpenHandlers(this);\n\n // istanbul ignore else @preserve\n if (animation) {\n emulateTransitionEnd(tooltip, () => tooltipHiddenAction(this));\n } else tooltipHiddenAction(this);\n }\n },\n delay + 17,\n \"out\",\n );\n }\n }\n\n /** Updates the tooltip position. */\n update = () => {\n styleTip(this);\n };\n\n /** Toggles the tooltip visibility. */\n toggle = () => {\n const { tooltip } = this;\n\n if (tooltip && !hasTip(this)) this.show();\n else this.hide();\n };\n\n /** Enables the tooltip. */\n enable() {\n const { enabled } = this;\n // istanbul ignore else @preserve\n if (!enabled) {\n this._toggleEventListeners(true);\n this.enabled = !enabled;\n }\n }\n\n /** Disables the tooltip. */\n disable() {\n const { tooltip, enabled } = this;\n // istanbul ignore else @preserve\n if (enabled) {\n if (tooltip && hasTip(this)) this.hide();\n this._toggleEventListeners();\n this.enabled = !enabled;\n }\n }\n\n /** Toggles the `disabled` property. */\n toggleEnabled() {\n if (!this.enabled) this.enable();\n else this.disable();\n }\n\n /**\n * Handles the `touchstart` event listener for `Tooltip`\n *\n * @this {Tooltip}\n * @param {TouchEvent} e the `Event` object\n */\n handleTouch = ({ target }: TouchEvent) => {\n const { tooltip, element } = this;\n\n // istanbul ignore if @preserve\n if (\n (tooltip && tooltip.contains(target)) ||\n target === element ||\n (target && element.contains(target))\n ) {\n // smile for ESLint\n } else {\n this.hide();\n }\n };\n\n /**\n * Toggles on/off the `Tooltip` event listeners.\n *\n * @param add when `true`, event listeners are added\n */\n _toggleEventListeners = (add?: boolean) => {\n const action = add ? addListener : removeListener;\n // btn is only for dismissible popover\n const { element, options, btn } = this;\n const { trigger } = options;\n const isPopover = this.name !== tooltipComponent;\n const dismissible = isPopover && (options as PopoverOptions).dismissible\n ? true\n : false;\n\n // istanbul ignore else @preserve\n if (!trigger.includes(\"manual\")) {\n this.enabled = !!add;\n\n const triggerOptions = trigger.split(\" \");\n\n triggerOptions.forEach((tr) => {\n // istanbul ignore else @preserve\n if (tr === mousehoverEvent) {\n action(element, mousedownEvent, this.handleShow);\n action(element, mouseenterEvent, this.handleShow);\n\n // istanbul ignore else @preserve\n if (!dismissible) {\n action(element, mouseleaveEvent, this.handleHide);\n action(\n getDocument(element),\n touchstartEvent,\n this.handleTouch,\n passiveHandler,\n );\n }\n } else if (tr === mouseclickEvent) {\n action(element, tr, !dismissible ? this.toggle : this.handleShow);\n } else if (tr === focusEvent) {\n action(element, focusinEvent, this.handleShow);\n // istanbul ignore else @preserve\n if (!dismissible) action(element, focusoutEvent, this.handleHide);\n // istanbul ignore else @preserve\n if (isApple()) {\n action(element, mouseclickEvent, this.handleFocus);\n }\n }\n // istanbul ignore else @preserve\n if (dismissible && btn) {\n action(btn, mouseclickEvent, this.handleHide);\n }\n });\n }\n };\n\n /** Removes the `Tooltip` from the target element. */\n dispose() {\n const { tooltip, options } = this;\n const clone = { ...this, name: this.name };\n const callback = () =>\n setTimeout(\n () => disposeTooltipComplete(clone, () => super.dispose()),\n 17,\n );\n\n if (options.animation && hasTip(clone)) {\n this.options.delay = 0; // reset delay\n this.hide();\n emulateTransitionEnd(tooltip, callback);\n } else {\n callback();\n }\n }\n}\n"],"names":["popoverString","popoverComponent","tooltipString","getTipTemplate","tipType","isTooltip","bodyClass","header","arrow","body","tipClassPositions","styleTip","self","tipClasses","element","tooltip","container","offsetParent","options","RTL","isRTL","scrollLeft","scrollTop","getNodeScroll","setElementStyle","tipWidth","tipHeight","htmlcw","htmlch","htmlow","getDocumentElement","placement","parentCWidth","parentOWidth","fixedParent","getElementStyle","scrollbarWidth","leftBoundry","rightBoundry","observerEntry","elemWidth","elemHeight","elemRectLeft","elemRectRight","elemRectTop","getBoundingClientRect","elemOffsetLeft","elemOffsetTop","getRectRelativeToOffsetParent","topPosition","bottomPosition","leftPosition","rightPosition","arrowTop","arrowLeft","arrowRight","arrowWidth","arrowHeight","arrowAdjust","topExceed","bottomExceed","leftExceed","rightExceed","horizontals","verticals","isHTMLElement","updatedTooltipEvent","createCustomEvent","toLowerCase","dispatchEvent","tooltipDefaults","dataOriginalTitle","tooltipComponent","setHtml","content","sanitizeFn","isString","dirty","isFunction","tempDocument","isNodeList","isArray","isNode","createTip","id","title","template","animation","customClass","dismissible","btnClose","tipString","tipPositions","titleParts","contentParts","placementClass","tooltipTemplate","htmlMarkup","createElement","setAttribute","tooltipHeader","querySelector","tooltipBody","tempTitle","tempContent","tempBtn","addClass","hasClass","fadeClass","getElementContainer","majorBlockTags","containers","parentNode","getParentNode","isShadowRoot","isTableElement","c","i","r","getDocument","tooltipSelector","dataBsToggle","titleAttr","getTooltipInstance","getInstance","tooltipInitCallback","Tooltip","removeTooltip","removeAttribute","ariaDescribedBy","removePopup","hasTip","hasPopup","disposeTooltipComplete","callback","hasAttribute","toggleTooltipTitle","toggleTooltipAction","add","action","addListener","removeListener","touchstartEvent","passiveHandler","tooltipShownAction","shownTooltipEvent","Timer","tooltipHiddenAction","hiddenTooltipEvent","toggleTooltipOpenHandlers","parentModal","closest","modalString","parentOffcanvas","offcanvasString","target","titleAtt","getAttribute","BaseComponent","config","tipComponent","elem","getUID","ObjectAssign","position","getWindow","PositionObserver","focus","outTimer","showTooltipEvent","appendPopup","showClass","emulateTransitionEnd","delay","hideTooltipEvent","removeClass","enabled","btn","trigger","tr","mousehoverEvent","mousedownEvent","mouseenterEvent","mouseleaveEvent","mouseclickEvent","focusEvent","focusinEvent","focusoutEvent","isApple","clone"],"mappings":"8PACMA,EAAgB,UCAhBC,GAAmB,UCAnBC,EAAgB,UCEhBC,GAAkBC,GAAoB,CAC1C,MAAMC,EAAYD,IAAYF,EACxBI,EAAYD,EAAY,GAAGD,CAAO,SAAW,GAAGA,CAAO,QACvDG,EAAUF,EAAoD,GAAxC,cAAcD,CAAO,iBAC3CI,EAAQ,eAAeJ,CAAO,iBAC9BK,EAAO,eAAeH,CAAS,WACrC,MAAO,eAAeF,CAAO,WAAWF,CAAa,KACnDK,EAASC,EAAQC,CACnB,QACF,ECZMC,GAAoB,CACxB,IAAK,MACL,OAAQ,SACR,KAAM,QACN,MAAO,KACT,ECeMC,GAAYC,GAAkB,CAClC,sBAAsB,IAAM,CAC1B,MAAMC,EAAa,4BACb,CAAE,QAAAC,EAAS,QAAAC,EAAS,UAAAC,EAAW,aAAAC,EAAc,QAAAC,EAAS,MAAAV,GAAUI,EAGtE,GAAI,CAACG,EAAS,OACR,MAAAI,EAAMC,KAAMN,CAAO,EACnB,CAAE,EAAGO,EAAY,EAAGC,CAAU,EAAIC,KAAcN,CAAY,EAGlEO,EAAAA,GAAgBT,EAAS,CACvB,IAAK,GACL,KAAM,GACN,MAAO,GACP,OAAQ,EAAA,CACT,EACD,KAAM,CAAE,YAAaU,EAAU,aAAcC,CAAc,EAAAX,EACrD,CAAE,YAAaY,EAAQ,aAAcC,EAAQ,YAAaC,CAAA,EAC9DC,EAAA,EAAmBhB,CAAO,EACxB,GAAA,CAAE,UAAAiB,GAAcb,EACpB,KAAM,CAAE,YAAac,EAAc,YAAaC,CAAiB,EAAAjB,EAK3DkB,EAJ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,GAAqB7J,EAASuH,CAAQ,GAE7BA,EAAA,CACX,CAEJ"} \ No newline at end of file +{"version":3,"file":"tooltip-DwQSdbgB.js","sources":["../../src/strings/popoverString.ts","../../src/strings/popoverComponent.ts","../../src/strings/tooltipString.ts","../../src/util/getTipTemplate.ts","../../src/util/tipClassPositions.ts","../../src/util/styleTip.ts","../../src/util/tooltipDefaults.ts","../../src/strings/dataOriginalTitle.ts","../../src/strings/tooltipComponent.ts","../../src/util/setHtml.ts","../../src/util/createTip.ts","../../src/util/getElementContainer.ts","../../src/components/tooltip.ts"],"sourcesContent":["/** @type {string} */\nconst popoverString = \"popover\";\nexport default popoverString;\n","/** @type {string} */\nconst popoverComponent = \"Popover\";\nexport default popoverComponent;\n","/** @type {string} */\nconst tooltipString = \"tooltip\";\nexport default tooltipString;\n","import tooltipString from \"../strings/tooltipString\";\n\n/**\n * Returns a template for Popover / Tooltip.\n *\n * @param tipType the expected markup type\n * @returns the template markup\n */\nconst getTipTemplate = (tipType: string) => {\n const isTooltip = tipType === tooltipString;\n const bodyClass = isTooltip ? `${tipType}-inner` : `${tipType}-body`;\n const header = !isTooltip ? `

` : \"\";\n const arrow = `
`;\n const body = `
`;\n return `
${\n header + arrow + body\n }
`;\n};\n\nexport default getTipTemplate;\n","const tipClassPositions = {\n top: \"top\",\n bottom: \"bottom\",\n left: \"start\",\n right: \"end\",\n};\n\nexport default tipClassPositions;\n","import {\n createCustomEvent,\n dispatchEvent,\n getBoundingClientRect,\n getDocumentElement,\n getElementStyle,\n getNodeScroll,\n getRectRelativeToOffsetParent,\n isHTMLElement,\n isRTL,\n setElementStyle,\n toLowerCase,\n} from \"@thednp/shorty\";\n\nimport tipClassPositions from \"./tipClassPositions\";\nimport Tooltip from \"../components/tooltip\";\nimport type { TooltipEvent } from \"../interface/tooltip\";\nimport type { PopoverEvent } from \"../interface/popover\";\n\n/**\n * Style popovers and tooltips.\n *\n * @param self the `Popover` / `Tooltip` instance\n */\nconst styleTip = (self: Tooltip) => {\n requestAnimationFrame(() => {\n const tipClasses = /\\b(top|bottom|start|end)+/;\n const { element, tooltip, container, offsetParent, options, arrow } = self;\n\n // istanbul ignore if @preserve\n if (!tooltip) return;\n const RTL = isRTL(element);\n const { x: scrollLeft, y: scrollTop } = getNodeScroll(offsetParent);\n\n // reset tooltip style (top: 0, left: 0 works best)\n setElementStyle(tooltip, {\n top: \"\",\n left: \"\",\n right: \"\",\n bottom: \"\",\n });\n const { offsetWidth: tipWidth, offsetHeight: tipHeight } = tooltip;\n const { clientWidth: htmlcw, clientHeight: htmlch, offsetWidth: htmlow } =\n getDocumentElement(element);\n let { placement } = options;\n const { clientWidth: parentCWidth, offsetWidth: parentOWidth } = container;\n const parentPosition = getElementStyle(\n container,\n \"position\",\n );\n const fixedParent = parentPosition === \"fixed\";\n const scrollbarWidth = fixedParent\n ? Math.abs(parentCWidth - parentOWidth)\n : Math.abs(htmlcw - htmlow);\n const leftBoundry = RTL && fixedParent\n ? /* istanbul ignore next @preserve */ scrollbarWidth\n : 0;\n const rightBoundry = htmlcw - (!RTL ? scrollbarWidth : 0) - 1;\n\n // reuse observer entry bounding box\n const observerEntry = self._observer.getEntry(element);\n const {\n width: elemWidth,\n height: elemHeight,\n left: elemRectLeft,\n right: elemRectRight,\n top: elemRectTop,\n } = observerEntry?.boundingClientRect ||\n getBoundingClientRect(element, true);\n\n const {\n x: elemOffsetLeft,\n y: elemOffsetTop,\n } = getRectRelativeToOffsetParent(\n element,\n offsetParent,\n { x: scrollLeft, y: scrollTop },\n );\n\n // reset arrow style\n setElementStyle(arrow as HTMLElement, {\n top: \"\",\n left: \"\",\n right: \"\",\n bottom: \"\",\n });\n let topPosition: number | string = 0;\n let bottomPosition: number | string = \"\";\n let leftPosition: number | string = 0;\n let rightPosition: number | string = \"\";\n let arrowTop: number | string = \"\";\n let arrowLeft: number | string = \"\";\n let arrowRight: number | string = \"\";\n\n const arrowWidth = arrow.offsetWidth || 0;\n const arrowHeight = arrow.offsetHeight || 0;\n const arrowAdjust = arrowWidth / 2;\n\n // check placement\n let topExceed = elemRectTop - tipHeight - arrowHeight < 0;\n let bottomExceed =\n elemRectTop + tipHeight + elemHeight + arrowHeight >= htmlch;\n let leftExceed = elemRectLeft - tipWidth - arrowWidth < leftBoundry;\n let rightExceed =\n elemRectLeft + tipWidth + elemWidth + arrowWidth >= rightBoundry;\n\n const horizontals = [\"left\", \"right\"];\n const verticals = [\"top\", \"bottom\"];\n\n topExceed = horizontals.includes(placement)\n ? elemRectTop + elemHeight / 2 - tipHeight / 2 - arrowHeight < 0\n : topExceed;\n bottomExceed = horizontals.includes(placement)\n ? elemRectTop + tipHeight / 2 + elemHeight / 2 + arrowHeight >= htmlch\n : bottomExceed;\n leftExceed = verticals.includes(placement)\n ? elemRectLeft + elemWidth / 2 - tipWidth / 2 < leftBoundry\n : leftExceed;\n rightExceed = verticals.includes(placement)\n ? elemRectLeft + tipWidth / 2 + elemWidth / 2 >= rightBoundry\n : rightExceed;\n\n // first remove side positions if both left and right limits are exceeded\n // we usually fall back to top|bottom\n placement = horizontals.includes(placement) && leftExceed && rightExceed\n ? \"top\"\n : placement;\n // recompute placement\n placement = placement === \"top\" && topExceed ? \"bottom\" : placement;\n placement = placement === \"bottom\" && bottomExceed ? \"top\" : placement;\n placement = placement === \"left\" && leftExceed ? \"right\" : placement;\n placement = placement === \"right\" && rightExceed\n ? \"left\"\n // istanbul ignore next @preserve\n : placement;\n\n // update tooltip/popover class\n // istanbul ignore else @preserve\n if (!tooltip.className.includes(placement)) {\n tooltip.className = tooltip.className.replace(\n tipClasses,\n tipClassPositions[placement],\n );\n }\n\n // compute tooltip / popover coordinates\n // istanbul ignore else @preserve\n if (horizontals.includes(placement)) {\n // secondary|side positions\n if (placement === \"left\") {\n // LEFT\n leftPosition = elemOffsetLeft - tipWidth - arrowWidth;\n } else {\n // RIGHT\n leftPosition = elemOffsetLeft + elemWidth + arrowWidth;\n }\n\n // adjust top and arrow\n if (topExceed && bottomExceed) {\n topPosition = 0;\n bottomPosition = 0;\n arrowTop = elemOffsetTop + elemHeight / 2 - arrowHeight / 2;\n } else if (topExceed) {\n topPosition = elemOffsetTop;\n bottomPosition = \"\";\n arrowTop = elemHeight / 2 - arrowWidth;\n } else if (bottomExceed) {\n topPosition = elemOffsetTop - tipHeight + elemHeight;\n bottomPosition = \"\";\n arrowTop = tipHeight - elemHeight / 2 - arrowWidth;\n } else {\n topPosition = elemOffsetTop - tipHeight / 2 + elemHeight / 2;\n arrowTop = tipHeight / 2 - arrowHeight / 2;\n }\n } else if (verticals.includes(placement)) {\n if (placement === \"top\") {\n topPosition = elemOffsetTop - tipHeight - arrowHeight;\n } else {\n // BOTTOM\n topPosition = elemOffsetTop + elemHeight + arrowHeight;\n }\n\n // adjust left | right and also the arrow\n if (leftExceed) {\n leftPosition = 0;\n arrowLeft = elemOffsetLeft + elemWidth / 2 - arrowAdjust;\n } else if (rightExceed) {\n leftPosition = \"auto\";\n rightPosition = 0;\n arrowRight = elemWidth / 2 + rightBoundry - elemRectRight - arrowAdjust;\n } else {\n leftPosition = elemOffsetLeft - tipWidth / 2 + elemWidth / 2;\n arrowLeft = tipWidth / 2 - arrowAdjust;\n }\n }\n\n // apply style to tooltip/popover\n setElementStyle(tooltip, {\n top: `${topPosition}px`,\n bottom: bottomPosition === \"\" ? \"\" : `${bottomPosition}px`,\n left: leftPosition === \"auto\" ? leftPosition : `${leftPosition}px`,\n right: rightPosition !== \"\" ? `${rightPosition}px` : \"\",\n });\n\n // update arrow placement\n // istanbul ignore else @preserve\n if (isHTMLElement(arrow)) {\n if (arrowTop !== \"\") {\n arrow.style.top = `${arrowTop}px`;\n }\n if (arrowLeft !== \"\") {\n arrow.style.left = `${arrowLeft}px`;\n } else if (arrowRight !== \"\") {\n arrow.style.right = `${arrowRight}px`;\n }\n }\n const updatedTooltipEvent = createCustomEvent<\n Record,\n TooltipEvent | PopoverEvent\n >(\n `updated.bs.${toLowerCase(self.name)}`,\n );\n dispatchEvent(element, updatedTooltipEvent);\n });\n};\n\nexport default styleTip;\n","import getTipTemplate from \"./getTipTemplate\";\nimport tooltipString from \"../strings/tooltipString\";\nimport { TooltipOptions } from \"../interface/tooltip\";\n\nconst tooltipDefaults: TooltipOptions = {\n template: getTipTemplate(tooltipString),\n title: \"\",\n customClass: \"\",\n trigger: \"hover focus\",\n placement: \"top\",\n sanitizeFn: undefined,\n animation: true,\n delay: 200,\n container: document.body,\n content: \"\",\n dismissible: false,\n btnClose: \"\",\n};\nexport default tooltipDefaults;\n","/**\n * Global namespace for `data-bs-title` attribute.\n */\nconst dataOriginalTitle = \"data-original-title\";\nexport default dataOriginalTitle;\n","/** @type {string} */\nconst tooltipComponent = \"Tooltip\";\nexport default tooltipComponent;\n","import {\n isArray,\n isFunction,\n isHTMLElement,\n isNode,\n isNodeList,\n isString,\n} from \"@thednp/shorty\";\n\n/**\n * Append an existing `Element` to Popover / Tooltip component or HTML\n * markup string to be parsed & sanitized to be used as popover / tooltip content.\n *\n * @param element target\n * @param content the `Element` to append / string\n * @param sanitizeFn a function to sanitize string content\n */\nconst setHtml = (\n element: HTMLElement,\n content: Node[] | Node | string,\n sanitizeFn?: (s: string) => string,\n) => {\n // istanbul ignore else @preserve\n if (isString(content) && content.length) {\n let dirty = content.trim(); // fixing #233\n if (isFunction(sanitizeFn)) dirty = sanitizeFn(dirty);\n\n const domParser = new DOMParser();\n const tempDocument = domParser.parseFromString(dirty, \"text/html\");\n element.append(...[...tempDocument.body.childNodes]);\n } else if (isHTMLElement(content)) {\n element.append(content);\n } else if (\n isNodeList(content) || (isArray(content) && content.every(isNode))\n ) {\n element.append(...[...content]);\n }\n};\nexport default setHtml;\n","import {\n addClass,\n createElement,\n hasClass,\n isHTMLElement,\n isRTL,\n querySelector,\n setAttribute,\n} from \"@thednp/shorty\";\n\nimport tooltipComponent from \"../strings/tooltipComponent\";\nimport tooltipString from \"../strings/tooltipString\";\nimport popoverString from \"../strings/popoverString\";\nimport fadeClass from \"../strings/fadeClass\";\nimport tipClassPositions from \"./tipClassPositions\";\nimport setHtml from \"./setHtml\";\nimport Tooltip from \"../components/tooltip\";\nimport Popover from \"../components/popover\";\n\n/**\n * Creates a new tooltip / popover.\n *\n * @param self the `Tooltip` / `Popover` instance\n */\nconst createTip = (self: Tooltip | Popover) => {\n const isTooltip = self.name === tooltipComponent;\n\n const { id, element, options } = self;\n const {\n title,\n placement,\n template,\n animation,\n customClass,\n sanitizeFn,\n dismissible,\n content,\n btnClose,\n } = options;\n const tipString = isTooltip ? tooltipString : popoverString;\n const tipPositions = { ...tipClassPositions };\n let titleParts: Node[] = [];\n let contentParts: Node[] = [];\n\n if (isRTL(element)) {\n tipPositions.left = \"end\";\n tipPositions.right = \"start\";\n }\n\n // set initial popover class\n const placementClass = `bs-${tipString}-${tipPositions[placement]}`;\n\n // load template\n let tooltipTemplate: Node | string;\n if (isHTMLElement(template)) {\n tooltipTemplate = template;\n } else {\n const htmlMarkup = createElement(\"div\") as HTMLElement;\n setHtml(htmlMarkup, template, sanitizeFn);\n tooltipTemplate = htmlMarkup.firstChild as HTMLElement;\n }\n\n /* istanbul ignore if @preserve */\n if (!isHTMLElement(tooltipTemplate)) return;\n\n // set popover markup\n self.tooltip = tooltipTemplate.cloneNode(true) as HTMLElement;\n const { tooltip } = self;\n\n // set id and role attributes\n setAttribute(tooltip, \"id\", id);\n setAttribute(tooltip, \"role\", tooltipString);\n\n const bodyClass = isTooltip\n ? `${tooltipString}-inner`\n : `${popoverString}-body`;\n const tooltipHeader = isTooltip\n ? null\n : querySelector(`.${popoverString}-header`, tooltip);\n const tooltipBody = querySelector(`.${bodyClass}`, tooltip);\n\n // set arrow and enable access for styleTip\n self.arrow = querySelector(\n `.${tipString}-arrow`,\n tooltip,\n ) as HTMLElement;\n const { arrow } = self;\n\n if (isHTMLElement(title)) titleParts = [title.cloneNode(true)];\n else {\n const tempTitle = createElement(\"div\") as HTMLElement;\n setHtml(tempTitle, title, sanitizeFn);\n titleParts = [...[...tempTitle.childNodes]];\n }\n\n if (isHTMLElement(content)) contentParts = [content.cloneNode(true)];\n else {\n const tempContent = createElement(\"div\") as HTMLElement;\n setHtml(tempContent, content, sanitizeFn);\n contentParts = [...[...tempContent.childNodes]];\n }\n\n // set dismissible button\n if (dismissible) {\n if (title) {\n if (isHTMLElement(btnClose)) {\n titleParts = [...titleParts, btnClose.cloneNode(true)];\n } else {\n const tempBtn = createElement(\"div\") as HTMLElement;\n setHtml(tempBtn, btnClose, sanitizeFn);\n titleParts = [...titleParts, tempBtn.firstChild as Node];\n }\n } else {\n // istanbul ignore else @preserve\n if (tooltipHeader) tooltipHeader.remove();\n if (isHTMLElement(btnClose)) {\n contentParts = [...contentParts, btnClose.cloneNode(true)];\n } else {\n const tempBtn = createElement(\"div\") as HTMLElement;\n setHtml(tempBtn, btnClose, sanitizeFn);\n contentParts = [...contentParts, tempBtn.firstChild as Node];\n }\n }\n }\n\n // fill the template with content from options / data attributes\n // also sanitize title && content\n // istanbul ignore else @preserve\n if (!isTooltip) {\n // istanbul ignore else @preserve\n if (title && tooltipHeader) {\n setHtml(tooltipHeader, titleParts, sanitizeFn);\n }\n // istanbul ignore else @preserve\n if (content && tooltipBody) {\n setHtml(tooltipBody, contentParts, sanitizeFn);\n }\n // set btn\n self.btn = querySelector(\".btn-close\", tooltip) ||\n undefined;\n } else if (title && tooltipBody) setHtml(tooltipBody, title, sanitizeFn);\n\n // Bootstrap 5.2.x\n addClass(tooltip, \"position-absolute\");\n addClass(arrow, \"position-absolute\");\n\n // set popover animation and placement\n // istanbul ignore else @preserve\n if (!hasClass(tooltip, tipString)) addClass(tooltip, tipString);\n // istanbul ignore else @preserve\n if (animation && !hasClass(tooltip, fadeClass)) {\n addClass(tooltip, fadeClass);\n }\n // istanbul ignore else @preserve\n if (customClass && !hasClass(tooltip, customClass)) {\n addClass(tooltip, customClass);\n }\n // istanbul ignore else @preserve\n if (!hasClass(tooltip, placementClass)) addClass(tooltip, placementClass);\n};\n\nexport default createTip;\n","import {\n getDocument,\n getElementStyle,\n getParentNode,\n isShadowRoot,\n isTableElement,\n} from \"@thednp/shorty\";\n\n/**\n * Returns an `HTMLElement` to be used as default value for *options.container*\n * for `Tooltip` / `Popover` components.\n *\n * @see https://github.com/floating-ui/floating-ui\n *\n * @param element the target\n * @returns the query result\n */\nconst getElementContainer = (element: Element) => {\n const majorBlockTags = [\"HTML\", \"BODY\"];\n const containers: HTMLElement[] = [];\n let { parentNode } = element;\n\n while (parentNode && !majorBlockTags.includes(parentNode.nodeName)) {\n parentNode = getParentNode(parentNode) as HTMLElement;\n // istanbul ignore else @preserve\n if (!(isShadowRoot(parentNode) || isTableElement(parentNode))) {\n containers.push(parentNode as HTMLElement);\n }\n }\n\n return (\n containers.find((c, i) => {\n if (\n ((getElementStyle(c, \"position\") !== \"relative\" ||\n getElementStyle(c, \"position\") === \"relative\" &&\n c.offsetHeight !== c.scrollHeight) &&\n containers.slice(i + 1).every((r) =>\n getElementStyle(r, \"position\") === \"static\"\n ))\n ) {\n return c;\n }\n return null;\n }) ||\n /* istanbul ignore next: optional guard */\n getDocument(element).body\n );\n};\n\nexport default getElementContainer;\n","/* Native JavaScript for Bootstrap 5 | Tooltip\n---------------------------------------------- */\nimport {\n addClass,\n ariaDescribedBy,\n closest,\n createCustomEvent,\n dispatchEvent,\n emulateTransitionEnd,\n focus,\n focusEvent,\n focusinEvent,\n focusoutEvent,\n getAttribute,\n getDocument,\n getElementStyle,\n getInstance,\n getUID,\n getWindow,\n hasAttribute,\n hasClass,\n isApple,\n mouseclickEvent,\n mousedownEvent,\n mouseenterEvent,\n mousehoverEvent,\n mouseleaveEvent,\n ObjectAssign,\n passiveHandler,\n removeAttribute,\n removeClass,\n setAttribute,\n Timer,\n toLowerCase,\n TouchEvent,\n touchstartEvent,\n} from \"@thednp/shorty\";\n\nimport { addListener, removeListener } from \"@thednp/event-listener\";\nimport PositionObserver from \"@thednp/position-observer\";\n\nimport dataBsToggle from \"~/strings/dataBsToggle\";\nimport dataOriginalTitle from \"~/strings/dataOriginalTitle\";\nimport showClass from \"~/strings/showClass\";\nimport tooltipString from \"~/strings/tooltipString\";\nimport tooltipComponent from \"~/strings/tooltipComponent\";\nimport popoverString from \"~/strings/popoverString\";\nimport popoverComponent from \"~/strings/popoverComponent\";\nimport modalString from \"~/strings/modalString\";\nimport offcanvasString from \"~/strings/offcanvasString\";\n\nimport styleTip from \"~/util/styleTip\";\nimport createTip from \"~/util/createTip\";\nimport { appendPopup, hasPopup, removePopup } from \"~/util/popupContainer\";\nimport getElementContainer from \"~/util/getElementContainer\";\nimport tooltipDefaults from \"~/util/tooltipDefaults\";\nimport BaseComponent from \"./base-component\";\nimport type { TooltipEvent, TooltipOptions } from \"~/interface/tooltip\";\nimport type { PopoverEvent, PopoverOptions } from \"~/interface/popover\";\n\n// TOOLTIP PRIVATE GC\n// ==================\nconst tooltipSelector =\n `[${dataBsToggle}=\"${tooltipString}\"],[data-tip=\"${tooltipString}\"]`;\nconst titleAttr = \"title\";\n\n/**\n * Static method which returns an existing `Tooltip` instance associated\n * to a target `Element`.\n */\nlet getTooltipInstance = (element: Element) =>\n getInstance(element, tooltipComponent);\n\n/**\n * A `Tooltip` initialization callback.\n */\nconst tooltipInitCallback = (element: Element) => new Tooltip(element);\n\n// TOOLTIP PRIVATE METHODS\n// =======================\n/**\n * Removes the tooltip from the DOM.\n *\n * @param self the `Tooltip` instance\n */\nconst removeTooltip = (self: Tooltip) => {\n const { element, tooltip, container } = self;\n removeAttribute(element, ariaDescribedBy);\n removePopup(\n tooltip,\n container,\n );\n};\n\n/**\n * Check if container contains the tooltip.\n *\n * @param self Tooltip\n */\nconst hasTip = (self: Tooltip): boolean | undefined => {\n const { tooltip, container } = self;\n\n return tooltip &&\n hasPopup(tooltip, container);\n};\n\n/**\n * Executes after the instance has been disposed.\n *\n * @param self the `Tooltip` instance\n * @param callback the parent dispose callback\n */\nconst disposeTooltipComplete = (self: Tooltip, callback?: () => void) => {\n const { element } = self;\n self._toggleEventListeners();\n\n // istanbul ignore else @preserve\n if (\n hasAttribute(element, dataOriginalTitle) && self.name === tooltipComponent\n ) {\n toggleTooltipTitle(self);\n }\n // istanbul ignore else @preserve\n if (callback) callback();\n};\n\n/**\n * Toggles on/off the special `Tooltip` event listeners.\n *\n * @param self the `Tooltip` instance\n * @param add when `true`, event listeners are added\n */\nconst toggleTooltipAction = (self: Tooltip, add?: boolean) => {\n const action = add ? addListener : removeListener;\n const { element } = self;\n\n action(\n getDocument(element),\n touchstartEvent,\n self.handleTouch,\n passiveHandler,\n );\n};\n\n/**\n * Executes after the tooltip was shown to the user.\n *\n * @param self the `Tooltip` instance\n */\nconst tooltipShownAction = (self: Tooltip) => {\n const { element } = self;\n const shownTooltipEvent = createCustomEvent<\n Record,\n TooltipEvent | PopoverEvent\n >(\n `shown.bs.${toLowerCase(self.name)}`,\n );\n\n toggleTooltipAction(self, true);\n dispatchEvent(element, shownTooltipEvent);\n Timer.clear(element, \"in\");\n};\n\n/**\n * Executes after the tooltip was hidden to the user.\n *\n * @param self the `Tooltip` instance\n */\nconst tooltipHiddenAction = (self: Tooltip) => {\n const { element } = self;\n const hiddenTooltipEvent = createCustomEvent<\n Record,\n TooltipEvent | PopoverEvent\n >(\n `hidden.bs.${toLowerCase(self.name)}`,\n );\n\n toggleTooltipAction(self);\n removeTooltip(self);\n dispatchEvent(element, hiddenTooltipEvent);\n\n Timer.clear(element, \"out\");\n};\n\n/**\n * Toggles on/off the `Tooltip` event listeners that hide/update the tooltip.\n *\n * @param self the `Tooltip` instance\n * @param add when `true`, event listeners are added\n */\nconst toggleTooltipOpenHandlers = (self: Tooltip, add?: boolean) => {\n const action = add ? addListener : removeListener;\n const { element, tooltip } = self;\n const parentModal = closest(element, `.${modalString}`);\n const parentOffcanvas = closest(element, `.${offcanvasString}`);\n\n if (add) {\n [element, tooltip]\n .forEach((target) => self._observer.observe(target));\n } else self._observer.disconnect();\n\n // dismiss tooltips inside modal / offcanvas\n if (parentModal) {\n action(parentModal, `hide.bs.${modalString}`, self.handleHide);\n }\n if (parentOffcanvas) {\n action(parentOffcanvas, `hide.bs.${offcanvasString}`, self.handleHide);\n }\n};\n\n/**\n * Toggles the `title` and `data-original-title` attributes.\n *\n * @param self the `Tooltip` instance\n * @param content when `true`, event listeners are added\n */\nconst toggleTooltipTitle = (self: Tooltip, content?: string) => {\n // [0 - add, 1 - remove] | [0 - remove, 1 - add]\n const titleAtt = [dataOriginalTitle, titleAttr];\n const { element } = self;\n\n setAttribute(\n element,\n titleAtt[content ? 0 : 1],\n content ||\n getAttribute(element, titleAtt[0]) ||\n // istanbul ignore next @preserve\n \"\",\n );\n removeAttribute(element, titleAtt[content ? 1 : 0]);\n};\n\n// TOOLTIP DEFINITION\n// ==================\n/** Creates a new `Tooltip` instance. */\nexport default class Tooltip extends BaseComponent {\n static selector = tooltipSelector;\n static init = tooltipInitCallback;\n static getInstance = getTooltipInstance;\n static styleTip = styleTip;\n declare element: Element & HTMLOrSVGElement;\n declare options: TooltipOptions;\n declare btn?: HTMLElement;\n declare tooltip: HTMLElement;\n declare container: HTMLElement;\n declare offsetParent: Element | Window;\n declare arrow: HTMLElement;\n declare enabled: boolean;\n declare id: string;\n declare _observer: PositionObserver;\n\n /**\n * @param target the target element\n * @param config the instance options\n */\n constructor(target: Element | string, config?: Partial) {\n super(target, config);\n\n const { element } = this;\n const isTooltip = this.name === tooltipComponent;\n const tipString = isTooltip ? tooltipString : popoverString;\n const tipComponent = isTooltip ? tooltipComponent : popoverComponent;\n\n // istanbul ignore next @preserve: this is to set Popover too\n getTooltipInstance = (elem: Element) =>\n getInstance(elem, tipComponent);\n\n // additional properties\n this.enabled = true;\n /** Set unique ID for `aria-describedby`. */\n this.id = `${tipString}-${getUID(element, tipString)}`;\n\n // instance options\n const { options } = this;\n\n // invalidate\n // istanbul ignore else @preserve\n if (((!options.title && isTooltip) || (!isTooltip && !options.content))) {\n return;\n }\n\n // reset default options\n ObjectAssign(tooltipDefaults, { titleAttr: \"\" });\n\n // set title attributes and add event listeners\n // istanbul ignore else @preserve\n if (\n hasAttribute(element, titleAttr) && isTooltip &&\n typeof options.title === \"string\"\n ) {\n toggleTooltipTitle(this, options.title);\n }\n\n // set containers\n const container = getElementContainer(element);\n const offsetParent = [\"sticky\", \"fixed\", \"relative\"].some(\n (position) =>\n getElementStyle(container, \"position\") ===\n position,\n )\n ? container\n : getWindow(element);\n\n this.container = container;\n this.offsetParent = offsetParent;\n\n // create tooltip here\n createTip(this);\n\n /* istanbul ignore if @preserve */\n if (!this.tooltip) return;\n\n // create observer\n this._observer = new PositionObserver(() => this.update());\n\n // attach events\n this._toggleEventListeners(true);\n }\n\n /**\n * Returns component name string.\n */\n get name() {\n return tooltipComponent;\n }\n /**\n * Returns component default options.\n */\n get defaults() {\n return tooltipDefaults;\n }\n\n // TOOLTIP PUBLIC METHODS\n // ======================\n /** Handles the focus event on iOS. */\n // istanbul ignore next @preserve - impossible to test without Apple device\n handleFocus = () => focus(this.element as HTMLElement);\n /** Shows the tooltip. */\n handleShow = () => this.show();\n show() {\n const { options, tooltip, element, container, id } = this;\n const { animation } = options;\n const outTimer = Timer.get(element, \"out\");\n\n Timer.clear(element, \"out\");\n\n if (tooltip && !outTimer && !hasTip(this)) {\n Timer.set(\n element,\n () => {\n const showTooltipEvent = createCustomEvent<\n Record,\n TooltipEvent | PopoverEvent\n >(\n `show.bs.${toLowerCase(this.name)}`,\n );\n dispatchEvent(element, showTooltipEvent);\n\n // istanbul ignore else @preserve\n if (!showTooltipEvent.defaultPrevented) {\n // append to container\n appendPopup(tooltip, container);\n\n setAttribute(element, ariaDescribedBy, `#${id}`);\n\n this.update();\n toggleTooltipOpenHandlers(this, true);\n\n // istanbul ignore else @preserve\n if (!hasClass(tooltip, showClass)) addClass(tooltip, showClass);\n // istanbul ignore else @preserve\n if (animation) {\n emulateTransitionEnd(tooltip, () => tooltipShownAction(this));\n } else tooltipShownAction(this);\n }\n },\n 17,\n \"in\",\n );\n }\n }\n\n /** Hides the tooltip. */\n handleHide = () => this.hide();\n hide() {\n const { options, tooltip, element } = this;\n const { animation, delay } = options;\n\n Timer.clear(element, \"in\");\n\n // istanbul ignore else @preserve\n if (tooltip && hasTip(this)) {\n Timer.set(\n element,\n () => {\n const hideTooltipEvent = createCustomEvent<\n Record,\n TooltipEvent | PopoverEvent\n >(\n `hide.bs.${toLowerCase(this.name)}`,\n );\n dispatchEvent(element, hideTooltipEvent);\n\n // istanbul ignore else @preserve\n if (!hideTooltipEvent.defaultPrevented) {\n this.update();\n removeClass(tooltip, showClass);\n toggleTooltipOpenHandlers(this);\n\n // istanbul ignore else @preserve\n if (animation) {\n emulateTransitionEnd(tooltip, () => tooltipHiddenAction(this));\n } else tooltipHiddenAction(this);\n }\n },\n delay + 17,\n \"out\",\n );\n }\n }\n\n /** Updates the tooltip position. */\n update = () => {\n styleTip(this);\n };\n\n /** Toggles the tooltip visibility. */\n toggle = () => {\n const { tooltip } = this;\n\n if (tooltip && !hasTip(this)) this.show();\n else this.hide();\n };\n\n /** Enables the tooltip. */\n enable() {\n const { enabled } = this;\n // istanbul ignore else @preserve\n if (!enabled) {\n this._toggleEventListeners(true);\n this.enabled = !enabled;\n }\n }\n\n /** Disables the tooltip. */\n disable() {\n const { tooltip, enabled } = this;\n // istanbul ignore else @preserve\n if (enabled) {\n if (tooltip && hasTip(this)) this.hide();\n this._toggleEventListeners();\n this.enabled = !enabled;\n }\n }\n\n /** Toggles the `disabled` property. */\n toggleEnabled() {\n if (!this.enabled) this.enable();\n else this.disable();\n }\n\n /**\n * Handles the `touchstart` event listener for `Tooltip`\n *\n * @this {Tooltip}\n * @param {TouchEvent} e the `Event` object\n */\n handleTouch = ({ target }: TouchEvent) => {\n const { tooltip, element } = this;\n\n // istanbul ignore if @preserve\n if (\n (tooltip && tooltip.contains(target)) ||\n target === element ||\n (target && element.contains(target))\n ) {\n // smile for ESLint\n } else {\n this.hide();\n }\n };\n\n /**\n * Toggles on/off the `Tooltip` event listeners.\n *\n * @param add when `true`, event listeners are added\n */\n _toggleEventListeners = (add?: boolean) => {\n const action = add ? addListener : removeListener;\n // btn is only for dismissible popover\n const { element, options, btn } = this;\n const { trigger } = options;\n const isPopover = this.name !== tooltipComponent;\n const dismissible = isPopover && (options as PopoverOptions).dismissible\n ? true\n : false;\n\n // istanbul ignore else @preserve\n if (!trigger.includes(\"manual\")) {\n this.enabled = !!add;\n\n const triggerOptions = trigger.split(\" \");\n\n triggerOptions.forEach((tr) => {\n // istanbul ignore else @preserve\n if (tr === mousehoverEvent) {\n action(element, mousedownEvent, this.handleShow);\n action(element, mouseenterEvent, this.handleShow);\n\n // istanbul ignore else @preserve\n if (!dismissible) {\n action(element, mouseleaveEvent, this.handleHide);\n action(\n getDocument(element),\n touchstartEvent,\n this.handleTouch,\n passiveHandler,\n );\n }\n } else if (tr === mouseclickEvent) {\n action(element, tr, !dismissible ? this.toggle : this.handleShow);\n } else if (tr === focusEvent) {\n action(element, focusinEvent, this.handleShow);\n // istanbul ignore else @preserve\n if (!dismissible) action(element, focusoutEvent, this.handleHide);\n // istanbul ignore else @preserve\n if (isApple()) {\n action(element, mouseclickEvent, this.handleFocus);\n }\n }\n // istanbul ignore else @preserve\n if (dismissible && btn) {\n action(btn, mouseclickEvent, this.handleHide);\n }\n });\n }\n };\n\n /** Removes the `Tooltip` from the target element. */\n dispose() {\n const { tooltip, options } = this;\n const clone = { ...this, name: this.name };\n const callback = () =>\n setTimeout(\n () => disposeTooltipComplete(clone, () => super.dispose()),\n 17,\n );\n\n if (options.animation && hasTip(clone)) {\n this.options.delay = 0; // reset delay\n this.hide();\n emulateTransitionEnd(tooltip, callback);\n } else {\n callback();\n }\n }\n}\n"],"names":["popoverString","popoverComponent","tooltipString","getTipTemplate","tipType","isTooltip","bodyClass","header","arrow","body","tipClassPositions","styleTip","self","tipClasses","element","tooltip","container","offsetParent","options","RTL","isRTL","scrollLeft","scrollTop","getNodeScroll","setElementStyle","tipWidth","tipHeight","htmlcw","htmlch","htmlow","getDocumentElement","placement","parentCWidth","parentOWidth","fixedParent","getElementStyle","scrollbarWidth","leftBoundry","rightBoundry","observerEntry","elemWidth","elemHeight","elemRectLeft","elemRectRight","elemRectTop","getBoundingClientRect","elemOffsetLeft","elemOffsetTop","getRectRelativeToOffsetParent","topPosition","bottomPosition","leftPosition","rightPosition","arrowTop","arrowLeft","arrowRight","arrowWidth","arrowHeight","arrowAdjust","topExceed","bottomExceed","leftExceed","rightExceed","horizontals","verticals","isHTMLElement","updatedTooltipEvent","createCustomEvent","toLowerCase","dispatchEvent","tooltipDefaults","dataOriginalTitle","tooltipComponent","setHtml","content","sanitizeFn","isString","dirty","isFunction","tempDocument","isNodeList","isArray","isNode","createTip","id","title","template","animation","customClass","dismissible","btnClose","tipString","tipPositions","titleParts","contentParts","placementClass","tooltipTemplate","htmlMarkup","createElement","setAttribute","tooltipHeader","querySelector","tooltipBody","tempTitle","tempContent","tempBtn","addClass","hasClass","fadeClass","getElementContainer","majorBlockTags","containers","parentNode","getParentNode","isShadowRoot","isTableElement","c","i","r","getDocument","tooltipSelector","dataBsToggle","titleAttr","getTooltipInstance","getInstance","tooltipInitCallback","Tooltip","removeTooltip","removeAttribute","ariaDescribedBy","removePopup","hasTip","hasPopup","disposeTooltipComplete","callback","hasAttribute","toggleTooltipTitle","toggleTooltipAction","add","action","addListener","removeListener","touchstartEvent","passiveHandler","tooltipShownAction","shownTooltipEvent","Timer","tooltipHiddenAction","hiddenTooltipEvent","toggleTooltipOpenHandlers","parentModal","closest","modalString","parentOffcanvas","offcanvasString","target","titleAtt","getAttribute","BaseComponent","config","tipComponent","elem","getUID","ObjectAssign","position","getWindow","PositionObserver","focus","outTimer","showTooltipEvent","appendPopup","showClass","emulateTransitionEnd","delay","hideTooltipEvent","removeClass","enabled","btn","trigger","tr","mousehoverEvent","mousedownEvent","mouseenterEvent","mouseleaveEvent","mouseclickEvent","focusEvent","focusinEvent","focusoutEvent","isApple","clone"],"mappings":"8PACMA,EAAgB,UCAhBC,GAAmB,UCAnBC,EAAgB,UCEhBC,GAAkBC,GAAo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AU,CAAC,CAACxC,EAEMwC,EAAQ,MAAM,GAAG,EAEzB,QAASC,GAAO,CAEzBA,IAAOC,EAAAA,IACFzC,EAAA7H,EAASuK,KAAgB,KAAK,UAAU,EACxC1C,EAAA7H,EAASwK,KAAiB,KAAK,UAAU,EAG3C7F,IACIkD,EAAA7H,EAASyK,KAAiB,KAAK,UAAU,EAChD5C,EACEpB,EAAAA,EAAYzG,CAAO,EACnBgI,EAAA,GACA,KAAK,YACLC,EAAAA,EACF,IAEOoC,IAAOK,KAChB7C,EAAO7H,EAASqK,EAAK1F,EAA4B,KAAK,WAAnB,KAAK,MAAwB,EACvD0F,IAAOM,OACT9C,EAAA7H,EAAS4K,KAAc,KAAK,UAAU,EAExCjG,GAAakD,EAAO7H,EAAS6K,EAAA,GAAe,KAAK,UAAU,EAE5DC,QACKjD,EAAA7H,EAAS0K,KAAiB,KAAK,WAAW,GAIjD/F,GAAewF,GACVtC,EAAAsC,EAAKO,KAAiB,KAAK,UAAU,CAC9C,CACD,EAEL,EAGA,SAAU,CACF,KAAA,CAAE,QAAAzK,EAAS,QAAAG,CAAA,EAAY,KACvB2K,EAAQ,CAAE,GAAG,KAAM,KAAM,KAAK,IAAK,EACnCvD,EAAW,IACf,WACE,IAAMD,GAAuBwD,EAAO,IAAM,MAAM,SAAS,EACzD,EACF,EAEE3K,EAAQ,WAAaiH,EAAO0D,CAAK,GACnC,KAAK,QAAQ,MAAQ,EACrB,KAAK,KAAK,EACVjB,EAAA,GAAqB7J,EAASuH,CAAQ,GAE7BA,EAAA,CACX,CAEJ"} \ No newline at end of file diff --git a/dist/components/tooltip.cjs b/dist/components/tooltip.cjs index 4656914c..15637dba 100644 --- a/dist/components/tooltip.cjs +++ b/dist/components/tooltip.cjs @@ -1,2 +1,2 @@ -"use strict";require("./base-component-4K-5H-MO.js");require("./index-CxumdV5N.js");require("./dataBsToggle-Dj-Ng54N.js");const e=require("./tooltip-fMXgseyT.js");require("./showClass-D_Ms1FgG.js");require("./popupContainer-BF5JudHD.js");module.exports=e.Tooltip; +"use strict";require("./base-component-DMuoZh8G.js");require("./index-DZ0WJZhO.js");require("./dataBsToggle-Dj-Ng54N.js");const e=require("./tooltip-DwQSdbgB.js");require("./showClass-D_Ms1FgG.js");require("./popupContainer-DsalI_IH.js");module.exports=e.Tooltip; //# sourceMappingURL=tooltip.cjs.map diff --git a/dist/components/tooltip.mjs b/dist/components/tooltip.mjs index ee779e4a..68bdd600 100644 --- a/dist/components/tooltip.mjs +++ b/dist/components/tooltip.mjs @@ -1,9 +1,9 @@ -import "./base-component-LaJIjMhh.mjs"; -import "./index-DXF8ibvt.mjs"; +import "./base-component--xj9oMJ8.mjs"; +import "./index-ClQArkrm.mjs"; import "./dataBsToggle-B84TS15h.mjs"; -import { T as e } from "./tooltip-CflbER55.mjs"; +import { T as e } from "./tooltip-33b5qaZo.mjs"; import "./showClass-C8hdJfjQ.mjs"; -import "./popupContainer-DSAMs3kR.mjs"; +import "./popupContainer-T6ricSTx.mjs"; export { e as default }; diff --git a/docs/assets/js/bootstrap-native.js b/docs/assets/js/bootstrap-native.js index b947531c..a4b3c9bf 100755 --- a/docs/assets/js/bootstrap-native.js +++ b/docs/assets/js/bootstrap-native.js @@ -1,2 +1,2 @@ -var BSN=function(N){"use strict";const Ns="aria-describedby",ue="aria-expanded",Xt="aria-hidden",ge="aria-modal",Ms="aria-pressed",Ie="aria-selected",ke="focus",Le="focusin",Bs="focusout",pe="keydown",Mo="keyup",H="click",Rs="mousedown",Bo="hover",me="mouseenter",Oe="mouseleave",Ro="pointerdown",Wo="pointermove",Fo="pointerup",Ne="touchstart",jo="dragstart",zo='a[href], button, input, textarea, select, details, [tabindex]:not([tabindex="-1"]',Me="ArrowDown",Be="ArrowUp",Ws="ArrowLeft",Fs="ArrowRight",Re="Escape",Ko="transitionDuration",qo="transitionDelay",We="transitionend",js="transitionProperty",Vo=()=>{const e=/(iPhone|iPod|iPad)/;return navigator?.userAgentData?.brands.some(t=>e.test(t.brand))||e.test(navigator?.userAgent)||!1},ve=()=>{},Xo=(e,t,s,n)=>{const o=n||!1;e.addEventListener(t,s,o)},Yo=(e,t,s,n)=>{const o=n||!1;e.removeEventListener(t,s,o)},X=(e,t)=>e.getAttribute(t),Yt=(e,t)=>e.hasAttribute(t),I=(e,t,s)=>e.setAttribute(t,s),yt=(e,t)=>e.removeAttribute(t),d=(e,...t)=>{e.classList.add(...t)},v=(e,...t)=>{e.classList.remove(...t)},h=(e,t)=>e.classList.contains(t),Ut=e=>e!=null&&typeof e=="object"||!1,x=e=>Ut(e)&&typeof e.nodeType=="number"&&[1,2,3,4,5,6,7,8,9,10,11].some(t=>e.nodeType===t)||!1,Y=e=>x(e)&&e.nodeType===1||!1,Rt=new Map,Ct={data:Rt,set:(e,t,s)=>{Y(e)&&(Rt.has(t)||Rt.set(t,new Map),Rt.get(t).set(e,s))},getAllFor:e=>Rt.get(e)||null,get:(e,t)=>{if(!Y(e)||!t)return null;const s=Ct.getAllFor(t);return e&&s&&s.get(e)||null},remove:(e,t)=>{const s=Ct.getAllFor(t);!s||!Y(e)||(s.delete(e),s.size===0&&Rt.delete(t))}},R=(e,t)=>Ct.get(e,t),zs=e=>e?.trim().replace(/(?:^\w|[A-Z]|\b\w)/g,(t,s)=>s===0?t.toLowerCase():t.toUpperCase()).replace(/\s+/g,""),Gt=e=>typeof e=="string"||!1,Ks=e=>Ut(e)&&e.constructor.name==="Window"||!1,qs=e=>x(e)&&e.nodeType===9||!1,b=e=>qs(e)?e:x(e)?e.ownerDocument:Ks(e)?e.document:globalThis.document,rt=(e,...t)=>Object.assign(e,...t),ut=e=>{if(!e)return;if(Gt(e))return b().createElement(e);const{tagName:t}=e,s=ut(t);if(!s)return;const n={...e};return delete n.tagName,rt(s,n)},w=(e,t)=>e.dispatchEvent(t),W=(e,t,s)=>{const n=getComputedStyle(e,s),o=t.replace("webkit","Webkit").replace(/([A-Z])/g,"-$1").toLowerCase();return n.getPropertyValue(o)},Uo=e=>{const t=W(e,js),s=W(e,qo),n=s.includes("ms")?1:1e3,o=t&&t!=="none"?parseFloat(s)*n:0;return Number.isNaN(o)?0:o},Qt=e=>{const t=W(e,js),s=W(e,Ko),n=s.includes("ms")?1:1e3,o=t&&t!=="none"?parseFloat(s)*n:0;return Number.isNaN(o)?0:o},S=(e,t)=>{let s=0;const n=new Event(We),o=Qt(e),i=Uo(e);if(o){const r=c=>{c.target===e&&(t.apply(e,[c]),e.removeEventListener(We,r),s=1)};e.addEventListener(We,r),setTimeout(()=>{s||w(e,n)},o+i+17)}else t.apply(e,[n])},ct=(e,t)=>e.focus(t),Vs=e=>["true",!0].includes(e)?!0:["false",!1].includes(e)?!1:["null","",null,void 0].includes(e)?null:e!==""&&!Number.isNaN(+e)?+e:e,be=e=>Object.entries(e),Go=(e,t,s,n)=>{if(!Y(e))return t;const o={...s},i={...e.dataset},r={...t},c={},a="title";return be(i).forEach(([l,f])=>{const u=typeof l=="string"&&l.includes(n)?zs(l.replace(n,"")):zs(l);c[u]=Vs(f)}),be(o).forEach(([l,f])=>{o[l]=Vs(f)}),be(t).forEach(([l,f])=>{l in o?r[l]=o[l]:l in c?r[l]=c[l]:r[l]=l===a?X(e,a):f}),r},Xs=e=>Object.keys(e),E=(e,t)=>{const s=new CustomEvent(e,{cancelable:!0,bubbles:!0});return Ut(t)&&rt(s,t),s},Zt={passive:!0},St=e=>e.offsetHeight,P=(e,t)=>{be(t).forEach(([s,n])=>{if(n&&Gt(s)&&s.includes("--"))e.style.setProperty(s,n);else{const o={};o[s]=n,rt(e.style,o)}})},Fe=e=>Ut(e)&&e.constructor.name==="Map"||!1,Qo=e=>typeof e=="number"||!1,gt=new Map,g={set:(e,t,s,n)=>{Y(e)&&(n&&n.length?(gt.has(e)||gt.set(e,new Map),gt.get(e).set(n,setTimeout(t,s))):gt.set(e,setTimeout(t,s)))},get:(e,t)=>{if(!Y(e))return null;const s=gt.get(e);return t&&s&&Fe(s)?s.get(t)||null:Qo(s)?s:null},clear:(e,t)=>{if(!Y(e))return;const s=gt.get(e);t&&t.length&&Fe(s)?(clearTimeout(s.get(t)),s.delete(t),s.size===0&>.delete(e)):(clearTimeout(s),gt.delete(e))}},Jt=e=>e.toLowerCase(),U=(e,t)=>(x(t)?t:b()).querySelectorAll(e),je=new Map;function Zo(e){const{shiftKey:t,code:s}=e,n=b(this),o=[...U(zo,this)].filter(c=>!Yt(c,"disabled")&&!X(c,Xt));if(!o.length)return;const i=o[0],r=o[o.length-1];s==="Tab"&&(t&&n.activeElement===i?(r.focus(),e.preventDefault()):!t&&n.activeElement===r&&(i.focus(),e.preventDefault()))}const Jo=e=>je.has(e)===!0,we=e=>{const t=Jo(e);(t?Yo:Xo)(e,"keydown",Zo),t?je.delete(e):je.set(e,!0)},D=e=>Y(e)&&"offsetWidth"in e||!1,Pt=(e,t)=>{const{width:s,height:n,top:o,right:i,bottom:r,left:c}=e.getBoundingClientRect();let a=1,l=1;if(t&&D(e)){const{offsetWidth:f,offsetHeight:u}=e;a=f>0?Math.round(s)/f:1,l=u>0?Math.round(n)/u:1}return{width:s/a,height:n/l,top:o/l,right:i/a,bottom:r/l,left:c/a,x:c/a,y:o/l}},_t=e=>b(e).body,at=e=>b(e).documentElement,ti=e=>{const t=Ks(e),s=t?e.scrollX:e.scrollLeft,n=t?e.scrollY:e.scrollTop;return{x:s,y:n}},Ys=e=>x(e)&&e.constructor.name==="ShadowRoot"||!1,ei=e=>e.nodeName==="HTML"?e:Y(e)&&e.assignedSlot||x(e)&&e.parentNode||Ys(e)&&e.host||at(e),Us=e=>e?qs(e)?e.defaultView:x(e)?e?.ownerDocument?.defaultView:e:window,si=e=>x(e)&&["TABLE","TD","TH"].includes(e.nodeName)||!1,Gs=(e,t)=>e.matches(t),ni=e=>{if(!D(e))return!1;const{width:t,height:s}=Pt(e),{offsetWidth:n,offsetHeight:o}=e;return Math.round(t)!==n||Math.round(s)!==o},oi=(e,t,s)=>{const n=D(t),o=Pt(e,n&&ni(t)),i={x:0,y:0};if(n){const r=Pt(t,!0);i.x=r.x+t.clientLeft,i.y=r.y+t.clientTop}return{x:o.left+s.x-i.x,y:o.top+s.y-i.y,width:o.width,height:o.height}};let Qs=0,Zs=0;const Wt=new Map,Js=(e,t)=>{let s=t?Qs:Zs;if(t){const n=Js(e),o=Wt.get(n)||new Map;Wt.has(n)||Wt.set(n,o),Fe(o)&&!o.has(t)?(o.set(t,s),Qs+=1):s=o.get(t)}else{const n=e.id||e;Wt.has(n)?s=Wt.get(n):(Wt.set(n,s),Zs+=1)}return s},ii=e=>Array.isArray(e)||!1,tn=e=>{if(!x(e))return!1;const{top:t,bottom:s}=Pt(e),{clientHeight:n}=at(e);return t<=n&&s>=0},ri=e=>typeof e=="function"||!1,ci=e=>Ut(e)&&e.constructor.name==="NodeList"||!1,pt=e=>at(e).dir==="rtl",M=(e,t)=>!e||!t?null:e.closest(t)||M(e.getRootNode().host,t)||null,_=(e,t)=>Y(e)?e:(Y(t)?t:b()).querySelector(e),ze=(e,t)=>(x(t)?t:b()).getElementsByTagName(e),ai=(e,t)=>b(t).getElementById(e),lt=(e,t)=>(t&&x(t)?t:b()).getElementsByClassName(e),Ft={},en=e=>{const{type:t,currentTarget:s}=e;Ft[t].forEach((n,o)=>{s===o&&n.forEach((i,r)=>{r.apply(o,[e]),typeof i=="object"&&i.once&&L(o,t,r,i)})})},k=(e,t,s,n)=>{Ft[t]||(Ft[t]=new Map);const o=Ft[t];o.has(e)||o.set(e,new Map);const i=o.get(e),{size:r}=i;i.set(s,n),r||e.addEventListener(t,en,n)},L=(e,t,s,n)=>{const o=Ft[t],i=o&&o.get(e),r=i&&i.get(s),c=r!==void 0?r:n;i&&i.has(s)&&i.delete(s),o&&(!i||!i.size)&&o.delete(e),(!o||!o.size)&&delete Ft[t],(!i||!i.size)&&e.removeEventListener(t,en,c)},O="fade",p="show",Ee="data-bs-dismiss",Te="alert",sn="Alert",ot=e=>h(e,"disabled")||X(e,"disabled")==="true",li="5.1.0";class J{constructor(t,s){let n;try{if(Y(t))n=t;else if(Gt(t)){if(n=_(t),!n)throw Error(`"${t}" is not a valid selector.`)}else throw Error("your target is not an instance of HTMLElement.")}catch(i){throw Error(`${this.name} Error: ${i.message}`)}const o=Ct.get(n,this.name);o&&o._toggleEventListeners(),this.element=n,this.options=this.defaults&&Xs(this.defaults).length?Go(n,this.defaults,s||{},"bs"):{},Ct.set(n,this.name,this)}get version(){return li}get name(){return"BaseComponent"}get defaults(){return{}}_toggleEventListeners=()=>{};dispose(){Ct.remove(this.element,this.name),Xs(this).forEach(t=>{delete this[t]})}}const di=`.${Te}`,hi=`[${Ee}="${Te}"]`,fi=e=>R(e,sn),ui=e=>new Ke(e),nn=E(`close.bs.${Te}`),gi=E(`closed.bs.${Te}`),on=e=>{const{element:t}=e;w(t,gi),e._toggleEventListeners(),e.dispose(),t.remove()};class Ke extends J{static selector=di;static init=ui;static getInstance=fi;dismiss;constructor(t){super(t),this.dismiss=_(hi,this.element),this._toggleEventListeners(!0)}get name(){return sn}close=t=>{const{element:s,dismiss:n}=this;!s||!h(s,p)||t&&n&&ot(n)||(w(s,nn),!nn.defaultPrevented&&(v(s,p),h(s,O)?S(s,()=>on(this)):on(this)))};_toggleEventListeners=t=>{const s=t?k:L,{dismiss:n,close:o}=this;n&&s(n,H,o)};dispose(){this._toggleEventListeners(),super.dispose()}}const T="active",it="data-bs-toggle",pi="button",rn="Button",mi=`[${it}="${pi}"]`,vi=e=>R(e,rn),bi=e=>new qe(e);class qe extends J{static selector=mi;static init=bi;static getInstance=vi;constructor(t){super(t);const{element:s}=this;this.isActive=h(s,T),I(s,Ms,String(!!this.isActive)),this._toggleEventListeners(!0)}get name(){return rn}toggle=t=>{t&&t.preventDefault();const{element:s,isActive:n}=this;if(ot(s))return;(n?v:d)(s,T),I(s,Ms,n?"false":"true"),this.isActive=h(s,T)};_toggleEventListeners=t=>{(t?k:L)(this.element,H,this.toggle)};dispose(){this._toggleEventListeners(),super.dispose()}}const Ve="data-bs-target",xt="carousel",cn="Carousel",an="data-bs-parent",wi="data-bs-container",j=e=>{const t=[Ve,an,wi,"href"],s=b(e);return t.map(n=>{const o=X(e,n);return o?n===an?M(e,o):_(o,s):null}).filter(n=>n)[0]},te=`[data-bs-ride="${xt}"]`,tt=`${xt}-item`,Xe="data-bs-slide-to",mt="data-bs-slide",vt="paused",ln={pause:"hover",keyboard:!1,touch:!0,interval:5e3},dt=e=>R(e,cn),Ei=e=>new Je(e);let ee=0,$e=0,Ye=0;const Ue=E(`slide.bs.${xt}`),Ge=E(`slid.bs.${xt}`),dn=e=>{const{index:t,direction:s,element:n,slides:o,options:i}=e;if(e.isAnimating){const r=Ze(e),c=s==="left"?"next":"prev",a=s==="left"?"start":"end";d(o[t],T),v(o[t],`${tt}-${c}`),v(o[t],`${tt}-${a}`),v(o[r],T),v(o[r],`${tt}-${a}`),w(n,Ge),g.clear(n,mt),e.cycle&&!b(n).hidden&&i.interval&&!e.isPaused&&e.cycle()}};function Ti(){const e=dt(this);e&&!e.isPaused&&!g.get(this,vt)&&d(this,vt)}function $i(){const e=dt(this);e&&e.isPaused&&!g.get(this,vt)&&e.cycle()}function yi(e){e.preventDefault();const t=M(this,te)||j(this),s=t&&dt(t);if(ot(this)||!s||s.isAnimating)return;const n=+(X(this,Xe)||0);this&&!h(this,T)&&!Number.isNaN(n)&&s.to(n)}function Ci(e){e.preventDefault();const t=M(this,te)||j(this),s=t&&dt(t);if(ot(this)||!s||s.isAnimating)return;const n=X(this,mt);n==="next"?s.next():n==="prev"&&s.prev()}const Si=({code:e,target:t})=>{const s=b(t),[n]=[...U(te,s)].filter(a=>tn(a)),o=dt(n);if(!o||o.isAnimating||/textarea|input|select/i.test(t.nodeName))return;const i=pt(n);e===(i?Fs:Ws)?o.prev():e===(i?Ws:Fs)&&o.next()};function hn(e){const{target:t}=e,s=dt(this);s&&s.isTouch&&(s.indicator&&!s.indicator.contains(t)||!s.controls.includes(t))&&(e.stopImmediatePropagation(),e.stopPropagation(),e.preventDefault())}function Pi(e){const{target:t}=e,s=dt(this);if(!s||s.isAnimating||s.isTouch)return;const{controls:n,indicators:o}=s;[...n,...o].every(i=>i===t||i.contains(t))||(ee=e.pageX,this.contains(t)&&(s.isTouch=!0,fn(s,!0)))}const _i=e=>{$e=e.pageX},xi=e=>{const{target:t}=e,s=b(t),n=[...U(te,s)].map(c=>dt(c)).find(c=>c.isTouch);if(!n)return;const{element:o,index:i}=n,r=pt(o);Ye=e.pageX,n.isTouch=!1,fn(n),!s.getSelection()?.toString().length&&o.contains(t)&&Math.abs(ee-Ye)>120&&($eee&&n.to(i+(r?1:-1))),ee=0,$e=0,Ye=0},Qe=(e,t)=>{const{indicators:s}=e;[...s].forEach(n=>v(n,T)),e.indicators[t]&&d(s[t],T)},fn=(e,t)=>{const{element:s}=e,n=t?k:L;n(b(s),Wo,_i,Zt),n(b(s),Fo,xi,Zt)},Ze=e=>{const{slides:t,element:s}=e,n=_(`.${tt}.${T}`,s);return n?[...t].indexOf(n):-1};class Je extends J{static selector=te;static init=Ei;static getInstance=dt;constructor(t,s){super(t,s);const{element:n}=this;this.direction=pt(n)?"right":"left",this.isTouch=!1,this.slides=lt(tt,n);const{slides:o}=this;if(o.length<2)return;const i=Ze(this),r=[...o].find(l=>Gs(l,`.${tt}-next`));this.index=i;const c=b(n);this.controls=[...U(`[${mt}]`,n),...U(`[${mt}][${Ve}="#${n.id}"]`,c)].filter((l,f,u)=>f===u.indexOf(l)),this.indicator=_(`.${xt}-indicators`,n),this.indicators=[...this.indicator?U(`[${Xe}]`,this.indicator):[],...U(`[${Xe}][${Ve}="#${n.id}"]`,c)].filter((l,f,u)=>f===u.indexOf(l));const{options:a}=this;this.options.interval=a.interval===!0?ln.interval:a.interval,r?this.index=[...o].indexOf(r):i<0&&(this.index=0,d(o[0],T),this.indicators.length&&Qe(this,0)),this.indicators.length&&Qe(this,this.index),this._toggleEventListeners(!0),a.interval&&this.cycle()}get name(){return cn}get defaults(){return ln}get isPaused(){return h(this.element,vt)}get isAnimating(){return _(`.${tt}-next,.${tt}-prev`,this.element)!==null}cycle(){const{element:t,options:s,isPaused:n,index:o}=this;g.clear(t,xt),n&&(g.clear(t,vt),v(t,vt)),g.set(t,()=>{this.element&&!this.isPaused&&!this.isTouch&&tn(t)&&this.to(o+1)},s.interval,xt)}pause(){const{element:t,options:s}=this;this.isPaused||!s.interval||(d(t,vt),g.set(t,()=>{},1,vt))}next(){this.isAnimating||this.to(this.index+1)}prev(){this.isAnimating||this.to(this.index-1)}to(t){const{element:s,slides:n,options:o}=this,i=Ze(this),r=pt(s);let c=t;if(this.isAnimating||i===c||g.get(s,mt))return;ic||i===n.length-1&&c===0)&&(this.direction=r?"left":"right");const{direction:a}=this;c<0?c=n.length-1:c>=n.length&&(c=0);const l=a==="left"?"next":"prev",f=a==="left"?"start":"end",u={relatedTarget:n[c],from:i,to:c,direction:a};rt(Ue,u),rt(Ge,u),w(s,Ue),!Ue.defaultPrevented&&(this.index=c,Qe(this,c),Qt(n[c])&&h(s,"slide")?g.set(s,()=>{d(n[c],`${tt}-${l}`),St(n[c]),d(n[c],`${tt}-${f}`),d(n[i],`${tt}-${f}`),S(n[c],()=>this.slides&&this.slides.length&&dn(this))},0,mt):(d(n[c],T),v(n[i],T),g.set(s,()=>{g.clear(s,mt),s&&o.interval&&!this.isPaused&&this.cycle(),w(s,Ge)},0,mt)))}_toggleEventListeners=t=>{const{element:s,options:n,slides:o,controls:i,indicators:r}=this,{touch:c,pause:a,interval:l,keyboard:f}=n,u=t?k:L;a&&l&&(u(s,me,Ti),u(s,Oe,$i)),c&&o.length>2&&(u(s,Ro,Pi,Zt),u(s,Ne,hn,{passive:!1}),u(s,jo,hn,{passive:!1})),i.length&&i.forEach($=>{u($,H,Ci)}),r.length&&r.forEach($=>{u($,H,yi)}),f&&u(b(s),pe,Si)};dispose(){const{isAnimating:t}=this,s={...this,isAnimating:t};this._toggleEventListeners(),super.dispose(),s.isAnimating&&S(s.slides[s.index],()=>{dn(s)})}}const Dt="collapsing",z="collapse",un="Collapse",Di=`.${z}`,gn=`[${it}="${z}"]`,Ai={parent:null},ye=e=>R(e,un),Hi=e=>new ts(e),pn=E(`show.bs.${z}`),Ii=E(`shown.bs.${z}`),mn=E(`hide.bs.${z}`),ki=E(`hidden.bs.${z}`),Li=e=>{const{element:t,parent:s,triggers:n}=e;w(t,pn),pn.defaultPrevented||(g.set(t,ve,17),s&&g.set(s,ve,17),d(t,Dt),v(t,z),P(t,{height:`${t.scrollHeight}px`}),S(t,()=>{g.clear(t),s&&g.clear(s),n.forEach(o=>I(o,ue,"true")),v(t,Dt),d(t,z),d(t,p),P(t,{height:""}),w(t,Ii)}))},vn=e=>{const{element:t,parent:s,triggers:n}=e;w(t,mn),mn.defaultPrevented||(g.set(t,ve,17),s&&g.set(s,ve,17),P(t,{height:`${t.scrollHeight}px`}),v(t,z),v(t,p),d(t,Dt),St(t),P(t,{height:"0px"}),S(t,()=>{g.clear(t),s&&g.clear(s),n.forEach(o=>I(o,ue,"false")),v(t,Dt),d(t,z),P(t,{height:""}),w(t,ki)}))},Oi=e=>{const{target:t}=e,s=t&&M(t,gn),n=s&&j(s),o=n&&ye(n);s&&ot(s)||o&&(o.toggle(),s?.tagName==="A"&&e.preventDefault())};class ts extends J{static selector=Di;static init=Hi;static getInstance=ye;constructor(t,s){super(t,s);const{element:n,options:o}=this,i=b(n);this.triggers=[...U(gn,i)].filter(r=>j(r)===n),this.parent=D(o.parent)?o.parent:Gt(o.parent)?j(n)||_(o.parent,i):null,this._toggleEventListeners(!0)}get name(){return un}get defaults(){return Ai}hide(){const{triggers:t,element:s}=this;g.get(s)||(vn(this),t.length&&t.forEach(n=>d(n,`${z}d`)))}show(){const{element:t,parent:s,triggers:n}=this;let o,i;s&&(o=[...U(`.${z}.${p}`,s)].find(r=>ye(r)),i=o&&ye(o)),(!s||!g.get(s))&&!g.get(t)&&(i&&o!==t&&(vn(i),i.triggers.forEach(r=>{d(r,`${z}d`)})),Li(this),n.length&&n.forEach(r=>v(r,`${z}d`)))}toggle(){h(this.element,p)?this.hide():this.show()}_toggleEventListeners=t=>{const s=t?k:L,{triggers:n}=this;n.length&&n.forEach(o=>{s(o,H,Oi)})};dispose(){this._toggleEventListeners(),super.dispose()}}const Ni=e=>e!=null&&typeof e=="object"||!1,Mi=e=>Ni(e)&&typeof e.nodeType=="number"&&[1,2,3,4,5,6,7,8,9,10,11].some(t=>e.nodeType===t)||!1,bn=e=>Mi(e)&&e.nodeType===1||!1,Bi=e=>typeof e=="function"||!1,Ri="1.0.2",wn="PositionObserver Error";class es{entries;static version=Ri;_tick;_root;_callback;constructor(t,s){if(!Bi(t))throw new Error(`${wn}: ${t} is not a function.`);this.entries=new Map,this._callback=t,this._root=bn(s?.root)?s.root:document?.documentElement,this._tick=0}observe=t=>{if(!bn(t))throw new Error(`${wn}: ${t} is not an instance of Element.`);this._root.contains(t)&&this._new(t).then(s=>{s&&!this.getEntry(t)&&this.entries.set(t,s),this._tick||(this._tick=requestAnimationFrame(this._runCallback))})};unobserve=t=>{this.entries.has(t)&&this.entries.delete(t)};_runCallback=()=>{if(!this.entries.size)return;const t=new Promise(s=>{const n=[];this.entries.forEach(({target:o,boundingClientRect:i})=>{this._root.contains(o)&&this._new(o).then(({boundingClientRect:r,isIntersecting:c})=>{if(!c)return;const{left:a,top:l,bottom:f,right:u}=r;if(i.top!==l||i.left!==a||i.right!==u||i.bottom!==f){const $={target:o,boundingClientRect:r};this.entries.set(o,$),n.push($)}})}),s(n)});this._tick=requestAnimationFrame(async()=>{const s=await t;s.length&&this._callback(s,this),this._runCallback()})};_new=t=>new Promise(s=>{new IntersectionObserver(([n],o)=>{o.disconnect(),s(n)}).observe(t)});getEntry=t=>this.entries.get(t);disconnect=()=>{cancelAnimationFrame(this._tick),this.entries.clear(),this._tick=0}}const At=["dropdown","dropup","dropstart","dropend"],En="Dropdown",Tn="dropdown-menu",$n=e=>{const t=M(e,"A");return e.tagName==="A"&&Yt(e,"href")&&X(e,"href")?.slice(-1)==="#"||t&&Yt(t,"href")&&X(t,"href")?.slice(-1)==="#"},[et,ss,ns,os]=At,Wi=`[${it}="${et}"]`,se=e=>R(e,En),Fi=e=>new as(e),ji=`${Tn}-end`,yn=[et,ss],Cn=[ns,os],Sn=["A","BUTTON"],zi={offset:5,display:"dynamic"},is=E(`show.bs.${et}`),Pn=E(`shown.bs.${et}`),rs=E(`hide.bs.${et}`),_n=E(`hidden.bs.${et}`),xn=E(`updated.bs.${et}`),Dn=e=>{const{element:t,menu:s,parentElement:n,options:o}=e,{offset:i}=o;if(W(s,"position")==="static")return;const r=pt(t),c=h(s,ji);["margin","top","bottom","left","right"].forEach(F=>{const Nt={};Nt[F]="",P(s,Nt)});let l=At.find(F=>h(n,F))||et;const f={dropdown:[i,0,0],dropup:[0,0,i],dropstart:r?[-1,0,0,i]:[-1,i,0],dropend:r?[-1,i,0]:[-1,0,0,i]},u={dropdown:{top:"100%"},dropup:{top:"auto",bottom:"100%"},dropstart:r?{left:"100%",right:"auto"}:{left:"auto",right:"100%"},dropend:r?{left:"auto",right:"100%"}:{left:"100%",right:"auto"},menuStart:r?{right:"0",left:"auto"}:{right:"auto",left:"0"},menuEnd:r?{right:"auto",left:"0"}:{right:"0",left:"auto"}},{offsetWidth:$,offsetHeight:B}=s,{clientWidth:Z,clientHeight:st}=at(t),{left:m,top:V,width:Lt,height:Ot}=Pt(t),C=m-$-i<0,Et=m+$+Lt+i>=Z,ft=V+B+i>=st,nt=V+B+Ot+i>=st,zt=V-B-i<0,y=(!r&&c||r&&!c)&&m+Lt-$<0,K=(r&&c||!r&&!c)&&m+$>=Z;if(Cn.includes(l)&&C&&Et&&(l=et),l===ns&&(r?Et:C)&&(l=os),l===os&&(r?C:Et)&&(l=ns),l===ss&&zt&&!nt&&(l=et),l===et&&nt&&!zt&&(l=ss),Cn.includes(l)&&ft&&rt(u[l],{top:"auto",bottom:0}),yn.includes(l)&&(y||K)){let F={left:"auto",right:"auto"};!y&&K&&!r&&(F={left:"auto",right:0}),y&&!K&&r&&(F={left:0,right:"auto"}),F&&rt(u[l],F)}const Kt=f[l];P(s,{...u[l],margin:`${Kt.map(F=>F&&`${F}px`).join(" ")}`}),yn.includes(l)&&c&&c&&P(s,u[!r&&y||r&&K?"menuStart":"menuEnd"]),w(n,xn)},Ki=e=>Array.from(e.children).map(t=>{if(t&&Sn.includes(t.tagName))return t;const{firstElementChild:s}=t;return s&&Sn.includes(s.tagName)?s:null}).filter(t=>t),An=e=>{const{element:t,options:s,menu:n}=e,o=e.open?k:L,i=b(t);o(i,H,Hn),o(i,ke,Hn),o(i,pe,Vi),o(i,Mo,Xi),s.display==="dynamic"&&(e.open?e._observer.observe(n):e._observer.disconnect())},cs=e=>{const t=[...At,"btn-group","input-group"].map(s=>lt(`${s} ${p}`,b(e))).find(s=>s.length);if(t&&t.length)return[...t[0].children].find(s=>At.some(n=>n===X(s,it)))},Hn=e=>{const{target:t,type:s}=e;if(!D(t))return;const n=cs(t),o=n&&se(n);if(!o)return;const{parentElement:i,menu:r}=o,c=i&&i.contains(t)&&(t.tagName==="form"||M(t,"form")!==null);[H,Rs].includes(s)&&$n(t)&&e.preventDefault(),!c&&s!==ke&&t!==n&&t!==r&&o.hide()};function qi(e){const t=se(this);ot(this)||t&&(e.stopPropagation(),t.toggle(),$n(this)&&e.preventDefault())}const Vi=e=>{[Me,Be].includes(e.code)&&e.preventDefault()};function Xi(e){const{code:t}=e,s=cs(this);if(!s)return;const n=se(s),{activeElement:o}=b(s);if(!n||!o)return;const{menu:i,open:r}=n,c=Ki(i);if(c&&c.length&&[Me,Be].includes(t)){let a=c.indexOf(o);o===s?a=0:t===Be?a=a>1?a-1:0:t===Me&&(a=aDn(this)),this._toggleEventListeners(!0))}get name(){return En}get defaults(){return zi}toggle(){this.open?this.hide():this.show()}show(){const{element:t,open:s,menu:n,parentElement:o}=this;if(s)return;const i=cs(t),r=i&&se(i);r&&r.hide(),[is,Pn,xn].forEach(c=>{c.relatedTarget=t}),w(o,is),!is.defaultPrevented&&(d(n,p),d(o,p),I(t,ue,"true"),Dn(this),this.open=!s,ct(t),An(this),w(o,Pn))}hide(){const{element:t,open:s,menu:n,parentElement:o}=this;s&&([rs,_n].forEach(i=>{i.relatedTarget=t}),w(o,rs),!rs.defaultPrevented&&(v(n,p),v(o,p),I(t,ue,"false"),this.open=!s,An(this),w(o,_n)))}_toggleEventListeners=t=>{(t?k:L)(this.element,H,qi)};dispose(){this.open&&this.hide(),this._toggleEventListeners(),super.dispose()}}const q="modal",ls="Modal",ds="Offcanvas",Yi="fixed-top",Ui="fixed-bottom",In="sticky-top",kn="position-sticky",Ln=e=>[...lt(Yi,e),...lt(Ui,e),...lt(In,e),...lt(kn,e),...lt("is-fixed",e)],Gi=e=>{const t=_t(e);P(t,{paddingRight:"",overflow:""});const s=Ln(t);s.length&&s.forEach(n=>{P(n,{paddingRight:"",marginRight:""})})},On=e=>{const{clientWidth:t}=at(e),{innerWidth:s}=Us(e);return Math.abs(s-t)},Nn=(e,t)=>{const s=_t(e),n=parseInt(W(s,"paddingRight"),10),i=W(s,"overflow")==="hidden"&&n?0:On(e),r=Ln(s);t&&(P(s,{overflow:"hidden",paddingRight:`${n+i}px`}),r.length&&r.forEach(c=>{const a=W(c,"paddingRight");if(c.style.paddingRight=`${parseInt(a,10)+i}px`,[In,kn].some(l=>h(c,l))){const l=W(c,"marginRight");c.style.marginRight=`${parseInt(l,10)-i}px`}}))},G="offcanvas",bt=ut({tagName:"div",className:"popup-container"}),Mn=(e,t)=>{const s=x(t)&&t.nodeName==="BODY",n=x(t)&&!s?t:bt,o=s?t:_t(e);x(e)&&(n===bt&&o.append(bt),n.append(e))},Bn=(e,t)=>{const s=x(t)&&t.nodeName==="BODY",n=x(t)&&!s?t:bt;x(e)&&(e.remove(),n===bt&&!bt.children.length&&bt.remove())},hs=(e,t)=>{const s=x(t)&&t.nodeName!=="BODY"?t:bt;return x(e)&&s.contains(e)},Rn="backdrop",Wn=`${q}-${Rn}`,Fn=`${G}-${Rn}`,jn=`.${q}.${p}`,fs=`.${G}.${p}`,A=ut("div"),Ht=e=>_(`${jn},${fs}`,b(e)),us=e=>{const t=e?Wn:Fn;[Wn,Fn].forEach(s=>{v(A,s)}),d(A,t)},zn=(e,t,s)=>{us(s),Mn(A,_t(e)),t&&d(A,O)},Kn=()=>{h(A,p)||(d(A,p),St(A))},Ce=()=>{v(A,p)},qn=e=>{Ht(e)||(v(A,O),Bn(A,_t(e)),Gi(e))},Vn=e=>D(e)&&W(e,"visibility")!=="hidden"&&e.offsetParent!==null,Qi=`.${q}`,Zi=`[${it}="${q}"]`,Ji=`[${Ee}="${q}"]`,Xn=`${q}-static`,tr={backdrop:!0,keyboard:!0},ne=e=>R(e,ls),er=e=>new ps(e),Se=E(`show.bs.${q}`),Yn=E(`shown.bs.${q}`),gs=E(`hide.bs.${q}`),Un=E(`hidden.bs.${q}`),Gn=e=>{const{element:t}=e,s=On(t),{clientHeight:n,scrollHeight:o}=at(t),{clientHeight:i,scrollHeight:r}=t,c=i!==r;if(!c&&s){const l={[pt(t)?"paddingLeft":"paddingRight"]:`${s}px`};P(t,l)}Nn(t,c||n!==o)},Qn=(e,t)=>{const s=t?k:L,{element:n}=e;s(n,H,or),s(b(n),pe,nr),t?e._observer.observe(n):e._observer.disconnect()},Zn=e=>{const{triggers:t,element:s,relatedTarget:n}=e;qn(s),P(s,{paddingRight:"",display:""}),Qn(e);const o=Se.relatedTarget||t.find(Vn);o&&ct(o),Un.relatedTarget=n||void 0,w(s,Un),we(s)},Jn=e=>{const{element:t,relatedTarget:s}=e;ct(t),Qn(e,!0),Yn.relatedTarget=s||void 0,w(t,Yn),we(t)},to=e=>{const{element:t,hasFade:s}=e;P(t,{display:"block"}),Gn(e),Ht(t)||P(_t(t),{overflow:"hidden"}),d(t,p),yt(t,Xt),I(t,ge,"true"),s?S(t,()=>Jn(e)):Jn(e)},eo=e=>{const{element:t,options:s,hasFade:n}=e;s.backdrop&&n&&h(A,p)&&!Ht(t)?(Ce(),S(A,()=>Zn(e))):Zn(e)};function sr(e){const t=j(this),s=t&&ne(t);ot(this)||s&&(this.tagName==="A"&&e.preventDefault(),s.relatedTarget=this,s.toggle())}const nr=({code:e,target:t})=>{const s=_(jn,b(t)),n=s&&ne(s);if(!n)return;const{options:o}=n;o.keyboard&&e===Re&&h(s,p)&&(n.relatedTarget=null,n.hide())},or=e=>{const{currentTarget:t}=e,s=t&&ne(t);if(!s||!t||g.get(t))return;const{options:n,isStatic:o,modalDialog:i}=s,{backdrop:r}=n,{target:c}=e,a=b(t)?.getSelection()?.toString().length,l=i.contains(c),f=c&&M(c,Ji);o&&!l?g.set(t,()=>{d(t,Xn),S(i,()=>ir(s))},17):(f||!a&&!o&&!l&&r)&&(s.relatedTarget=f||null,s.hide(),e.preventDefault())},ir=e=>{const{element:t,modalDialog:s}=e,n=(Qt(s)||0)+17;v(t,Xn),g.set(t,()=>g.clear(t),n)};class ps extends J{static selector=Qi;static init=er;static getInstance=ne;constructor(t,s){super(t,s);const{element:n}=this,o=_(`.${q}-dialog`,n);o&&(this.modalDialog=o,this.triggers=[...U(Zi,b(n))].filter(i=>j(i)===n),this.isStatic=this.options.backdrop==="static",this.hasFade=h(n,O),this.relatedTarget=null,this._observer=new ResizeObserver(()=>this.update()),this._toggleEventListeners(!0))}get name(){return ls}get defaults(){return tr}toggle(){h(this.element,p)?this.hide():this.show()}show(){const{element:t,options:s,hasFade:n,relatedTarget:o}=this,{backdrop:i}=s;let r=0;if(h(t,p)||(Se.relatedTarget=o||void 0,w(t,Se),Se.defaultPrevented))return;const c=Ht(t);if(c&&c!==t){const a=ne(c)||R(c,ds);a&&a.hide()}i?(hs(A)?us(!0):zn(t,n,!0),r=Qt(A),Kn(),setTimeout(()=>to(this),r)):(to(this),c&&h(A,p)&&Ce())}hide(){const{element:t,hasFade:s,relatedTarget:n}=this;h(t,p)&&(gs.relatedTarget=n||void 0,w(t,gs),!gs.defaultPrevented&&(v(t,p),I(t,Xt,"true"),yt(t,ge),s?S(t,()=>eo(this)):eo(this)))}update=()=>{h(this.element,p)&&Gn(this)};_toggleEventListeners=t=>{const s=t?k:L,{triggers:n}=this;n.length&&n.forEach(o=>{s(o,H,sr)})};dispose(){const t={...this},{modalDialog:s,hasFade:n}=t,o=()=>setTimeout(()=>super.dispose(),17);this.hide(),this._toggleEventListeners(),n?S(s,o):o()}}const rr=`.${G}`,so=`[${it}="${G}"]`,cr=`[${Ee}="${G}"]`,Pe=`${G}-toggling`,ar={backdrop:!0,keyboard:!0,scroll:!1},oe=e=>R(e,ds),lr=e=>new vs(e),_e=E(`show.bs.${G}`),no=E(`shown.bs.${G}`),ms=E(`hide.bs.${G}`),oo=E(`hidden.bs.${G}`),dr=e=>{const{element:t}=e,{clientHeight:s,scrollHeight:n}=at(t);Nn(t,s!==n)},io=(e,t)=>{const s=t?k:L,n=b(e.element);s(n,pe,gr),s(n,H,ur)},ro=e=>{const{element:t,options:s}=e;s.scroll||(dr(e),P(_t(t),{overflow:"hidden"})),d(t,Pe),d(t,p),P(t,{visibility:"visible"}),S(t,()=>pr(e))},hr=e=>{const{element:t,options:s}=e,n=Ht(t);t.blur(),!n&&s.backdrop&&h(A,p)&&Ce(),S(t,()=>mr(e))};function fr(e){const t=j(this),s=t&&oe(t);ot(this)||s&&(s.relatedTarget=this,s.toggle(),this.tagName==="A"&&e.preventDefault())}const ur=e=>{const{target:t}=e,s=_(fs,b(t));if(!s)return;const n=_(cr,s),o=oe(s);if(!o)return;const{options:i,triggers:r}=o,{backdrop:c}=i,a=M(t,so),l=b(s).getSelection();A.contains(t)&&c==="static"||(!(l&&l.toString().length)&&(!s.contains(t)&&c&&(!a||r.includes(t))||n&&n.contains(t))&&(o.relatedTarget=n&&n.contains(t)?n:void 0,o.hide()),a&&a.tagName==="A"&&e.preventDefault())},gr=({code:e,target:t})=>{const s=_(fs,b(t)),n=s&&oe(s);n&&n.options.keyboard&&e===Re&&(n.relatedTarget=void 0,n.hide())},pr=e=>{const{element:t}=e;v(t,Pe),yt(t,Xt),I(t,ge,"true"),I(t,"role","dialog"),w(t,no),io(e,!0),ct(t),we(t)},mr=e=>{const{element:t,triggers:s}=e;I(t,Xt,"true"),yt(t,ge),yt(t,"role"),P(t,{visibility:""});const n=_e.relatedTarget||s.find(Vn);n&&ct(n),qn(t),w(t,oo),v(t,Pe),we(t),Ht(t)||io(e)};class vs extends J{static selector=rr;static init=lr;static getInstance=oe;constructor(t,s){super(t,s);const{element:n}=this;this.triggers=[...U(so,b(n))].filter(o=>j(o)===n),this.relatedTarget=void 0,this._toggleEventListeners(!0)}get name(){return ds}get defaults(){return ar}toggle(){h(this.element,p)?this.hide():this.show()}show(){const{element:t,options:s,relatedTarget:n}=this;let o=0;if(h(t,p)||(_e.relatedTarget=n||void 0,no.relatedTarget=n||void 0,w(t,_e),_e.defaultPrevented))return;const i=Ht(t);if(i&&i!==t){const r=oe(i)||R(i,ls);r&&r.hide()}s.backdrop?(hs(A)?us():zn(t,!0),o=Qt(A),Kn(),setTimeout(()=>ro(this),o)):(ro(this),i&&h(A,p)&&Ce())}hide(){const{element:t,relatedTarget:s}=this;h(t,p)&&(ms.relatedTarget=s||void 0,oo.relatedTarget=s||void 0,w(t,ms),!ms.defaultPrevented&&(d(t,Pe),v(t,p),hr(this)))}_toggleEventListeners=t=>{const s=t?k:L;this.triggers.forEach(n=>{s(n,H,fr)})};dispose(){const{element:t}=this,s=h(t,p),n=()=>setTimeout(()=>super.dispose(),1);this.hide(),this._toggleEventListeners(),s?S(t,n):n()}}const It="popover",bs="Popover",ht="tooltip",co=e=>{const t=e===ht,s=t?`${e}-inner`:`${e}-body`,n=t?"":`

`,o=`
`,i=`
`;return`
${n+o+i}
`},ao={top:"top",bottom:"bottom",left:"start",right:"end"},ws=e=>{requestAnimationFrame(()=>{const t=/\b(top|bottom|start|end)+/,{element:s,tooltip:n,container:o,offsetParent:i,options:r,arrow:c}=e;if(!n)return;const a=pt(s),{x:l,y:f}=ti(i);P(n,{top:"",left:"",right:"",bottom:""});const{offsetWidth:u,offsetHeight:$}=n,{clientWidth:B,clientHeight:Z,offsetWidth:st}=at(s);let{placement:m}=r;const{clientWidth:V,offsetWidth:Lt}=o,C=W(o,"position")==="fixed",Et=Math.abs(C?V-Lt:B-st),ft=a&&C?Et:0,nt=B-(a?0:Et)-1,zt=e._observer.getEntry(s),{width:y,height:K,left:Kt,right:F,top:Nt}=zt?.boundingClientRect||Pt(s,!0),{x:De,y:qt}=oi(s,i,{x:l,y:f});P(c,{top:"",left:"",right:"",bottom:""});let Mt=0,ae="",Tt=0,Is="",Vt="",Ae="",ks="";const Bt=c.offsetWidth||0,$t=c.offsetHeight||0,Ls=Bt/2;let le=Nt-$-$t<0,de=Nt+$+K+$t>=Z,he=Kt-u-Bt=nt;const He=["left","right"],Os=["top","bottom"];le=He.includes(m)?Nt+K/2-$/2-$t<0:le,de=He.includes(m)?Nt+$/2+K/2+$t>=Z:de,he=Os.includes(m)?Kt+y/2-u/2=nt:fe,m=He.includes(m)&&he&&fe?"top":m,m=m==="top"&&le?"bottom":m,m=m==="bottom"&&de?"top":m,m=m==="left"&&he?"right":m,m=m==="right"&&fe?"left":m,n.className.includes(m)||(n.className=n.className.replace(t,ao[m])),He.includes(m)?(m==="left"?Tt=De-u-Bt:Tt=De+y+Bt,le&&de?(Mt=0,ae=0,Vt=qt+K/2-$t/2):le?(Mt=qt,ae="",Vt=K/2-Bt):de?(Mt=qt-$+K,ae="",Vt=$-K/2-Bt):(Mt=qt-$/2+K/2,Vt=$/2-$t/2)):Os.includes(m)&&(m==="top"?Mt=qt-$-$t:Mt=qt+K+$t,he?(Tt=0,Ae=De+y/2-Ls):fe?(Tt="auto",Is=0,ks=y/2+nt-F-Ls):(Tt=De-u/2+y/2,Ae=u/2-Ls)),P(n,{top:`${Mt}px`,bottom:ae===""?"":`${ae}px`,left:Tt==="auto"?Tt:`${Tt}px`,right:Is!==""?`${Is}px`:""}),D(c)&&(Vt!==""&&(c.style.top=`${Vt}px`),Ae!==""?c.style.left=`${Ae}px`:ks!==""&&(c.style.right=`${ks}px`));const Gr=E(`updated.bs.${Jt(e.name)}`);w(s,Gr)})},Es={template:co(ht),title:"",customClass:"",trigger:"hover focus",placement:"top",sanitizeFn:void 0,animation:!0,delay:200,container:document.body,content:"",dismissible:!1,btnClose:""},lo="data-original-title",kt="Tooltip",wt=(e,t,s)=>{if(Gt(t)&&t.length){let n=t.trim();ri(s)&&(n=s(n));const i=new DOMParser().parseFromString(n,"text/html");e.append(...i.body.childNodes)}else D(t)?e.append(t):(ci(t)||ii(t)&&t.every(x))&&e.append(...t)},vr=e=>{const t=e.name===kt,{id:s,element:n,options:o}=e,{title:i,placement:r,template:c,animation:a,customClass:l,sanitizeFn:f,dismissible:u,content:$,btnClose:B}=o,Z=t?ht:It,st={...ao};let m=[],V=[];pt(n)&&(st.left="end",st.right="start");const Lt=`bs-${Z}-${st[r]}`;let Ot;if(D(c))Ot=c;else{const y=ut("div");wt(y,c,f),Ot=y.firstChild}if(!D(Ot))return;e.tooltip=Ot.cloneNode(!0);const{tooltip:C}=e;I(C,"id",s),I(C,"role",ht);const Et=t?`${ht}-inner`:`${It}-body`,ft=t?null:_(`.${It}-header`,C),nt=_(`.${Et}`,C);e.arrow=_(`.${Z}-arrow`,C);const{arrow:zt}=e;if(D(i))m=[i.cloneNode(!0)];else{const y=ut("div");wt(y,i,f),m=[...y.childNodes]}if(D($))V=[$.cloneNode(!0)];else{const y=ut("div");wt(y,$,f),V=[...y.childNodes]}if(u)if(i)if(D(B))m=[...m,B.cloneNode(!0)];else{const y=ut("div");wt(y,B,f),m=[...m,y.firstChild]}else if(ft&&ft.remove(),D(B))V=[...V,B.cloneNode(!0)];else{const y=ut("div");wt(y,B,f),V=[...V,y.firstChild]}t?i&&nt&&wt(nt,i,f):(i&&ft&&wt(ft,m,f),$&&nt&&wt(nt,V,f),e.btn=_(".btn-close",C)||void 0),d(C,"position-absolute"),d(zt,"position-absolute"),h(C,Z)||d(C,Z),a&&!h(C,O)&&d(C,O),l&&!h(C,l)&&d(C,l),h(C,Lt)||d(C,Lt)},br=e=>{const t=["HTML","BODY"],s=[];let{parentNode:n}=e;for(;n&&!t.includes(n.nodeName);)n=ei(n),Ys(n)||si(n)||s.push(n);return s.find((o,i)=>(W(o,"position")!=="relative"||W(o,"position")==="relative"&&o.offsetHeight!==o.scrollHeight)&&s.slice(i+1).every(r=>W(r,"position")==="static")?o:null)||b(e).body},wr=`[${it}="${ht}"],[data-tip="${ht}"]`,ho="title";let fo=e=>R(e,kt);const Er=e=>new xe(e),Tr=e=>{const{element:t,tooltip:s,container:n}=e;yt(t,Ns),Bn(s,n)},ie=e=>{const{tooltip:t,container:s}=e;return t&&hs(t,s)},$r=(e,t)=>{const{element:s}=e;e._toggleEventListeners(),Yt(s,lo)&&e.name===kt&&vo(e),t&&t()},uo=(e,t)=>{const s=t?k:L,{element:n}=e;s(b(n),Ne,e.handleTouch,Zt)},go=e=>{const{element:t}=e,s=E(`shown.bs.${Jt(e.name)}`);uo(e,!0),w(t,s),g.clear(t,"in")},po=e=>{const{element:t}=e,s=E(`hidden.bs.${Jt(e.name)}`);uo(e),Tr(e),w(t,s),g.clear(t,"out")},mo=(e,t)=>{const s=t?k:L,{element:n,tooltip:o}=e,i=M(n,`.${q}`),r=M(n,`.${G}`);t?[n,o].forEach(c=>e._observer.observe(c)):e._observer.disconnect(),i&&s(i,`hide.bs.${q}`,e.handleHide),r&&s(r,`hide.bs.${G}`,e.handleHide)},vo=(e,t)=>{const s=[lo,ho],{element:n}=e;I(n,s[t?0:1],t||X(n,s[0])||""),yt(n,s[t?1:0])};class xe extends J{static selector=wr;static init=Er;static getInstance=fo;static styleTip=ws;constructor(t,s){super(t,s);const{element:n}=this,o=this.name===kt,i=o?ht:It,r=o?kt:bs;fo=f=>R(f,r),this.enabled=!0,this.id=`${i}-${Js(n,i)}`;const{options:c}=this;if(!c.title&&o||!o&&!c.content)return;rt(Es,{titleAttr:""}),Yt(n,ho)&&o&&typeof c.title=="string"&&vo(this,c.title);const a=br(n),l=["sticky","fixed","relative"].some(f=>W(a,"position")===f)?a:Us(n);this.container=a,this.offsetParent=l,vr(this),this.tooltip&&(this._observer=new es(()=>this.update()),this._toggleEventListeners(!0))}get name(){return kt}get defaults(){return Es}handleFocus=()=>ct(this.element);handleShow=()=>this.show();show(){const{options:t,tooltip:s,element:n,container:o,id:i}=this,{animation:r}=t,c=g.get(n,"out");g.clear(n,"out"),s&&!c&&!ie(this)&&g.set(n,()=>{const a=E(`show.bs.${Jt(this.name)}`);w(n,a),a.defaultPrevented||(Mn(s,o),I(n,Ns,`#${i}`),this.update(),mo(this,!0),h(s,p)||d(s,p),r?S(s,()=>go(this)):go(this))},17,"in")}handleHide=()=>this.hide();hide(){const{options:t,tooltip:s,element:n}=this,{animation:o,delay:i}=t;g.clear(n,"in"),s&&ie(this)&&g.set(n,()=>{const r=E(`hide.bs.${Jt(this.name)}`);w(n,r),r.defaultPrevented||(this.update(),v(s,p),mo(this),o?S(s,()=>po(this)):po(this))},i+17,"out")}update=()=>{ws(this)};toggle=()=>{const{tooltip:t}=this;t&&!ie(this)?this.show():this.hide()};enable(){const{enabled:t}=this;t||(this._toggleEventListeners(!0),this.enabled=!t)}disable(){const{tooltip:t,enabled:s}=this;s&&(t&&ie(this)&&this.hide(),this._toggleEventListeners(),this.enabled=!s)}toggleEnabled(){this.enabled?this.disable():this.enable()}handleTouch=({target:t})=>{const{tooltip:s,element:n}=this;s&&s.contains(t)||t===n||t&&n.contains(t)||this.hide()};_toggleEventListeners=t=>{const s=t?k:L,{element:n,options:o,btn:i}=this,{trigger:r}=o,a=!!(this.name!==kt&&o.dismissible);r.includes("manual")||(this.enabled=!!t,r.split(" ").forEach(f=>{f===Bo?(s(n,Rs,this.handleShow),s(n,me,this.handleShow),a||(s(n,Oe,this.handleHide),s(b(n),Ne,this.handleTouch,Zt))):f===H?s(n,f,a?this.handleShow:this.toggle):f===ke&&(s(n,Le,this.handleShow),a||s(n,Bs,this.handleHide),Vo()&&s(n,H,this.handleFocus)),a&&i&&s(i,H,this.handleHide)}))};dispose(){const{tooltip:t,options:s}=this,n={...this,name:this.name},o=()=>setTimeout(()=>$r(n,()=>super.dispose()),17);s.animation&&ie(n)?(this.options.delay=0,this.hide(),S(t,o)):o()}}const yr=`[${it}="${It}"],[data-tip="${It}"]`,Cr=rt({},Es,{template:co(It),content:"",dismissible:!1,btnClose:''}),Sr=e=>R(e,bs),Pr=e=>new Ts(e);class Ts extends xe{static selector=yr;static init=Pr;static getInstance=Sr;static styleTip=ws;constructor(t,s){super(t,s)}get name(){return bs}get defaults(){return Cr}show=()=>{super.show();const{options:t,btn:s}=this;t.dismissible&&s&&setTimeout(()=>ct(s),17)}}const _r="scrollspy",bo="ScrollSpy",xr='[data-bs-spy="scroll"]',Dr="[href]",Ar={offset:10,target:void 0},Hr=e=>R(e,bo),Ir=e=>new ys(e),wo=E(`activate.bs.${_r}`),kr=e=>{const{target:t,_itemsLength:s,_observables:n}=e,o=ze("A",t),i=b(t);!o.length||s===n.size||(n.clear(),Array.from(o).forEach(r=>{const c=X(r,"href")?.slice(1),a=c?.length?i.getElementById(c):null;a&&!ot(r)&&e._observables.set(a,r)}),e._itemsLength=e._observables.size)},Eo=e=>{Array.from(ze("A",e)).forEach(t=>{h(t,T)&&v(t,T)})},To=(e,t)=>{const{target:s,element:n}=e;Eo(s),e._activeItem=t,d(t,T);let o=t;for(;o!==s;)if(o=o.parentElement,["nav","dropdown-menu","list-group"].some(i=>h(o,i))){const i=o.previousElementSibling;i&&!h(i,T)&&d(i,T)}wo.relatedTarget=t,w(n,wo)},$s=(e,t)=>{const{scrollTarget:s,element:n,options:o}=e;return(s!==n?Pt(t).top+s.scrollTop:t.offsetTop)-(o.offset||10)};class ys extends J{static selector=xr;static init=Ir;static getInstance=Hr;constructor(t,s){super(t,s);const{element:n,options:o}=this,i=_(o.target,b(n));i&&(this.target=i,this.scrollTarget=n.clientHeight{requestAnimationFrame(()=>this.refresh())},{root:this.scrollTarget}),this._toggleEventListeners(!0))}get name(){return bo}get defaults(){return Ar}refresh=()=>{const{target:t,scrollTarget:s}=this;if(!t||t.offsetHeight===0)return;kr(this);const{_itemsLength:n,_observables:o,_activeItem:i}=this;if(!n)return;const r=o.entries().toArray(),{scrollTop:c,scrollHeight:a,clientHeight:l}=s;if(c>=a-l){const u=r[n-1]?.[1];i!==u&&To(this,u);return}const f=r[0]?.[0]?$s(this,r[0][0]):null;if(f!==null&&c0){this._activeItem=null,Eo(t);return}for(let u=0;u=Z&&(m===null||c{const s=M(t.target,Dr),n=s&&X(s,"href")?.slice(1),o=n&&ai(n,this.target);o&&(this.scrollTarget.scrollTo({top:o.offsetTop,behavior:"smooth"}),t.preventDefault())};_toggleEventListeners=t=>{const{target:s,_observables:n,_observer:o,_scrollTo:i}=this;(t?k:L)(s,H,i),t?n?.forEach((c,a)=>o.observe(a)):o.disconnect()};dispose(){this._toggleEventListeners(),super.dispose()}}const re="tab",$o="Tab",Cs=`[${it}="${re}"]`,yo=e=>R(e,$o),Lr=e=>new _s(e),Ss=E(`show.bs.${re}`),Co=E(`shown.bs.${re}`),Ps=E(`hide.bs.${re}`),So=E(`hidden.bs.${re}`),ce=new Map,Po=e=>{const{tabContent:t,nav:s}=e;t&&h(t,Dt)&&(t.style.height="",v(t,Dt)),s&&g.clear(s)},_o=e=>{const{element:t,tabContent:s,content:n,nav:o}=e,{tab:i}=D(o)&&ce.get(o)||{tab:null};if(s&&n&&h(n,O)){const{currentHeight:r,nextHeight:c}=ce.get(t)||{currentHeight:0,nextHeight:0};r!==c?setTimeout(()=>{s.style.height=`${c}px`,St(s),S(s,()=>Po(e))},50):Po(e)}else o&&g.clear(o);Co.relatedTarget=i,w(t,Co)},xo=e=>{const{element:t,content:s,tabContent:n,nav:o}=e,{tab:i,content:r}=o&&ce.get(o)||{tab:null,content:null};let c=0;if(n&&s&&h(s,O)&&([r,s].forEach(a=>{a&&d(a,"overflow-hidden")}),c=r?r.scrollHeight:0),Ss.relatedTarget=i,So.relatedTarget=t,w(t,Ss),!Ss.defaultPrevented){if(s&&d(s,T),r&&v(r,T),n&&s&&h(s,O)){const a=s.scrollHeight;ce.set(t,{currentHeight:c,nextHeight:a,tab:null,content:null}),d(n,Dt),n.style.height=`${c}px`,St(n),[r,s].forEach(l=>{l&&v(l,"overflow-hidden")})}s&&s&&h(s,O)?setTimeout(()=>{d(s,p),S(s,()=>{_o(e)})},1):(s&&d(s,p),_o(e)),i&&w(i,So)}},Do=e=>{const{nav:t}=e;if(!D(t))return{tab:null,content:null};const s=lt(T,t);let n=null;s.length===1&&!At.some(i=>h(s[0].parentElement,i))?[n]=s:s.length>1&&(n=s[s.length-1]);const o=D(n)?j(n):null;return{tab:n,content:o}},Ao=e=>{if(!D(e))return null;const t=M(e,`.${At.join(",.")}`);return t?_(`.${At[0]}-toggle`,t):null},Or=e=>{const t=M(e.target,Cs),s=t&&yo(t);s&&(e.preventDefault(),s.show())};class _s extends J{static selector=Cs;static init=Lr;static getInstance=yo;constructor(t){super(t);const{element:s}=this,n=j(s);if(!n)return;const o=M(s,".nav"),i=M(n,".tab-content");this.nav=o,this.content=n,this.tabContent=i,this.dropdown=Ao(s);const{tab:r}=Do(this);if(o&&!r){const c=_(Cs,o),a=c&&j(c);a&&(d(c,T),d(a,p),d(a,T),I(s,Ie,"true"))}this._toggleEventListeners(!0)}get name(){return $o}show(){const{element:t,content:s,nav:n,dropdown:o}=this;if(n&&g.get(n)||h(t,T))return;const{tab:i,content:r}=Do(this);if(n&&i&&ce.set(n,{tab:i,content:r,currentHeight:0,nextHeight:0}),Ps.relatedTarget=t,!D(i)||(w(i,Ps),Ps.defaultPrevented))return;d(t,T),I(t,Ie,"true");const c=D(i)&&Ao(i);if(c&&h(c,T)&&v(c,T),n){const a=()=>{i&&(v(i,T),I(i,Ie,"false")),o&&!h(o,T)&&d(o,T)};r&&(h(r,O)||s&&h(s,O))?g.set(n,a,1):a()}r&&(v(r,p),h(r,O)?S(r,()=>xo(this)):xo(this))}_toggleEventListeners=t=>{(t?k:L)(this.element,H,Or)};dispose(){this._toggleEventListeners(),super.dispose()}}const Q="toast",Ho="Toast",Nr=`.${Q}`,Mr=`[${Ee}="${Q}"]`,Br=`[${it}="${Q}"]`,jt="showing",Io="hide",Rr={animation:!0,autohide:!0,delay:5e3},xs=e=>R(e,Ho),Wr=e=>new Ds(e),ko=E(`show.bs.${Q}`),Fr=E(`shown.bs.${Q}`),Lo=E(`hide.bs.${Q}`),jr=E(`hidden.bs.${Q}`),Oo=e=>{const{element:t,options:s}=e;v(t,jt),g.clear(t,jt),w(t,Fr),s.autohide&&g.set(t,()=>e.hide(),s.delay,Q)},No=e=>{const{element:t}=e;v(t,jt),v(t,p),d(t,Io),g.clear(t,Q),w(t,jr)},zr=e=>{const{element:t,options:s}=e;d(t,jt),s.animation?(St(t),S(t,()=>No(e))):No(e)},Kr=e=>{const{element:t,options:s}=e;g.set(t,()=>{v(t,Io),St(t),d(t,p),d(t,jt),s.animation?S(t,()=>Oo(e)):Oo(e)},17,jt)};function qr(e){const t=j(this),s=t&&xs(t);ot(this)||s&&(this.tagName==="A"&&e.preventDefault(),s.relatedTarget=this,s.show())}const Vr=e=>{const t=e.target,s=xs(t),{type:n,relatedTarget:o}=e;!s||t===o||t.contains(o)||([me,Le].includes(n)?g.clear(t,Q):g.set(t,()=>s.hide(),s.options.delay,Q))};class Ds extends J{static selector=Nr;static init=Wr;static getInstance=xs;constructor(t,s){super(t,s);const{element:n,options:o}=this;o.animation&&!h(n,O)?d(n,O):!o.animation&&h(n,O)&&v(n,O),this.dismiss=_(Mr,n),this.triggers=[...U(Br,b(n))].filter(i=>j(i)===n),this._toggleEventListeners(!0)}get name(){return Ho}get defaults(){return Rr}get isShown(){return h(this.element,p)}show=()=>{const{element:t,isShown:s}=this;!t||s||(w(t,ko),ko.defaultPrevented||Kr(this))};hide=()=>{const{element:t,isShown:s}=this;!t||!s||(w(t,Lo),Lo.defaultPrevented||zr(this))};_toggleEventListeners=t=>{const s=t?k:L,{element:n,triggers:o,dismiss:i,options:r,hide:c}=this;i&&s(i,H,c),r.autohide&&[Le,Bs,me,Oe].forEach(a=>s(n,a,Vr)),o.length&&o.forEach(a=>{s(a,H,qr)})};dispose(){const{element:t,isShown:s}=this;this._toggleEventListeners(),g.clear(t,Q),s&&v(t,p),super.dispose()}}const As=new Map;[Ke,qe,Je,ts,as,ps,vs,Ts,ys,_s,Ds,xe].forEach(e=>As.set(e.prototype.name,e));const Xr=(e,t)=>{[...t].forEach(s=>e(s))},Yr=(e,t)=>{const s=Ct.getAllFor(e);s&&[...s].forEach(([n,o])=>{t.contains(n)&&o.dispose()})},Hs=e=>{const t=e&&e.nodeName?e:document,s=[...ze("*",t)];As.forEach(n=>{const{init:o,selector:i}=n;Xr(o,s.filter(r=>Gs(r,i)))})},Ur=e=>{const t=e&&e.nodeName?e:document;As.forEach(s=>{Yr(s.prototype.name,t)})};return document.body?Hs():k(document,"DOMContentLoaded",()=>Hs(),{once:!0}),N.Alert=Ke,N.Button=qe,N.Carousel=Je,N.Collapse=ts,N.Dropdown=as,N.Modal=ps,N.Offcanvas=vs,N.Popover=Ts,N.ScrollSpy=ys,N.Tab=_s,N.Toast=Ds,N.Tooltip=xe,N.initCallback=Hs,N.removeDataAPI=Ur,Object.defineProperty(N,Symbol.toStringTag,{value:"Module"}),N}({}); +var BSN=function(N){"use strict";const Ns="aria-describedby",ue="aria-expanded",Xt="aria-hidden",ge="aria-modal",Ms="aria-pressed",Ie="aria-selected",ke="focus",Le="focusin",Bs="focusout",pe="keydown",Mo="keyup",H="click",Rs="mousedown",Bo="hover",me="mouseenter",Oe="mouseleave",Ro="pointerdown",Wo="pointermove",Fo="pointerup",Ne="touchstart",jo="dragstart",zo='a[href], button, input, textarea, select, details, [tabindex]:not([tabindex="-1"]',Me="ArrowDown",Be="ArrowUp",Ws="ArrowLeft",Fs="ArrowRight",Re="Escape",Ko="transitionDuration",qo="transitionDelay",We="transitionend",js="transitionProperty",Vo=()=>{const e=/(iPhone|iPod|iPad)/;return navigator?.userAgentData?.brands.some(t=>e.test(t.brand))||e.test(navigator?.userAgent)||!1},ve=()=>{},Xo=(e,t,s,n)=>{const o=n||!1;e.addEventListener(t,s,o)},Yo=(e,t,s,n)=>{const o=n||!1;e.removeEventListener(t,s,o)},X=(e,t)=>e.getAttribute(t),Yt=(e,t)=>e.hasAttribute(t),I=(e,t,s)=>e.setAttribute(t,s),yt=(e,t)=>e.removeAttribute(t),d=(e,...t)=>{e.classList.add(...t)},v=(e,...t)=>{e.classList.remove(...t)},h=(e,t)=>e.classList.contains(t),Ut=e=>e!=null&&typeof e=="object"||!1,x=e=>Ut(e)&&typeof e.nodeType=="number"&&[1,2,3,4,5,6,7,8,9,10,11].some(t=>e.nodeType===t)||!1,Y=e=>x(e)&&e.nodeType===1||!1,Rt=new Map,Ct={data:Rt,set:(e,t,s)=>{Y(e)&&(Rt.has(t)||Rt.set(t,new Map),Rt.get(t).set(e,s))},getAllFor:e=>Rt.get(e)||null,get:(e,t)=>{if(!Y(e)||!t)return null;const s=Ct.getAllFor(t);return e&&s&&s.get(e)||null},remove:(e,t)=>{const s=Ct.getAllFor(t);!s||!Y(e)||(s.delete(e),s.size===0&&Rt.delete(t))}},R=(e,t)=>Ct.get(e,t),zs=e=>e?.trim().replace(/(?:^\w|[A-Z]|\b\w)/g,(t,s)=>s===0?t.toLowerCase():t.toUpperCase()).replace(/\s+/g,""),Gt=e=>typeof e=="string"||!1,Ks=e=>Ut(e)&&e.constructor.name==="Window"||!1,qs=e=>x(e)&&e.nodeType===9||!1,b=e=>qs(e)?e:x(e)?e.ownerDocument:Ks(e)?e.document:globalThis.document,rt=(e,...t)=>Object.assign(e,...t),ut=e=>{if(!e)return;if(Gt(e))return b().createElement(e);const{tagName:t}=e,s=ut(t);if(!s)return;const n={...e};return delete n.tagName,rt(s,n)},w=(e,t)=>e.dispatchEvent(t),W=(e,t,s)=>{const n=getComputedStyle(e,s),o=t.replace("webkit","Webkit").replace(/([A-Z])/g,"-$1").toLowerCase();return n.getPropertyValue(o)},Uo=e=>{const t=W(e,js),s=W(e,qo),n=s.includes("ms")?1:1e3,o=t&&t!=="none"?parseFloat(s)*n:0;return Number.isNaN(o)?0:o},Qt=e=>{const t=W(e,js),s=W(e,Ko),n=s.includes("ms")?1:1e3,o=t&&t!=="none"?parseFloat(s)*n:0;return Number.isNaN(o)?0:o},S=(e,t)=>{let s=0;const n=new Event(We),o=Qt(e),i=Uo(e);if(o){const r=c=>{c.target===e&&(t.apply(e,[c]),e.removeEventListener(We,r),s=1)};e.addEventListener(We,r),setTimeout(()=>{s||w(e,n)},o+i+17)}else t.apply(e,[n])},ct=(e,t)=>e.focus(t),Vs=e=>["true",!0].includes(e)?!0:["false",!1].includes(e)?!1:["null","",null,void 0].includes(e)?null:e!==""&&!Number.isNaN(+e)?+e:e,be=e=>Object.entries(e),Go=(e,t,s,n)=>{if(!Y(e))return t;const o={...s},i={...e.dataset},r={...t},c={},a="title";return be(i).forEach(([l,f])=>{const u=typeof l=="string"&&l.includes(n)?zs(l.replace(n,"")):zs(l);c[u]=Vs(f)}),be(o).forEach(([l,f])=>{o[l]=Vs(f)}),be(t).forEach(([l,f])=>{l in o?r[l]=o[l]:l in c?r[l]=c[l]:r[l]=l===a?X(e,a):f}),r},Xs=e=>Object.keys(e),E=(e,t)=>{const s=new CustomEvent(e,{cancelable:!0,bubbles:!0});return Ut(t)&&rt(s,t),s},Zt={passive:!0},St=e=>e.offsetHeight,P=(e,t)=>{be(t).forEach(([s,n])=>{if(n&&Gt(s)&&s.includes("--"))e.style.setProperty(s,n);else{const o={};o[s]=n,rt(e.style,o)}})},Fe=e=>Ut(e)&&e.constructor.name==="Map"||!1,Qo=e=>typeof e=="number"||!1,gt=new Map,g={set:(e,t,s,n)=>{Y(e)&&(n&&n.length?(gt.has(e)||gt.set(e,new Map),gt.get(e).set(n,setTimeout(t,s))):gt.set(e,setTimeout(t,s)))},get:(e,t)=>{if(!Y(e))return null;const s=gt.get(e);return t&&s&&Fe(s)?s.get(t)||null:Qo(s)?s:null},clear:(e,t)=>{if(!Y(e))return;const s=gt.get(e);t&&t.length&&Fe(s)?(clearTimeout(s.get(t)),s.delete(t),s.size===0&>.delete(e)):(clearTimeout(s),gt.delete(e))}},Jt=e=>e.toLowerCase(),U=(e,t)=>(x(t)?t:b()).querySelectorAll(e),je=new Map;function Zo(e){const{shiftKey:t,code:s}=e,n=b(this),o=[...U(zo,this)].filter(c=>!Yt(c,"disabled")&&!X(c,Xt));if(!o.length)return;const i=o[0],r=o[o.length-1];s==="Tab"&&(t&&n.activeElement===i?(r.focus(),e.preventDefault()):!t&&n.activeElement===r&&(i.focus(),e.preventDefault()))}const Jo=e=>je.has(e)===!0,we=e=>{const t=Jo(e);(t?Yo:Xo)(e,"keydown",Zo),t?je.delete(e):je.set(e,!0)},D=e=>Y(e)&&"offsetWidth"in e||!1,Pt=(e,t)=>{const{width:s,height:n,top:o,right:i,bottom:r,left:c}=e.getBoundingClientRect();let a=1,l=1;if(t&&D(e)){const{offsetWidth:f,offsetHeight:u}=e;a=f>0?Math.round(s)/f:1,l=u>0?Math.round(n)/u:1}return{width:s/a,height:n/l,top:o/l,right:i/a,bottom:r/l,left:c/a,x:c/a,y:o/l}},_t=e=>b(e).body,at=e=>b(e).documentElement,ti=e=>{const t=Ks(e),s=t?e.scrollX:e.scrollLeft,n=t?e.scrollY:e.scrollTop;return{x:s,y:n}},Ys=e=>x(e)&&e.constructor.name==="ShadowRoot"||!1,ei=e=>e.nodeName==="HTML"?e:Y(e)&&e.assignedSlot||x(e)&&e.parentNode||Ys(e)&&e.host||at(e),Us=e=>e?qs(e)?e.defaultView:x(e)?e?.ownerDocument?.defaultView:e:window,si=e=>x(e)&&["TABLE","TD","TH"].includes(e.nodeName)||!1,Gs=(e,t)=>e.matches(t),ni=e=>{if(!D(e))return!1;const{width:t,height:s}=Pt(e),{offsetWidth:n,offsetHeight:o}=e;return Math.round(t)!==n||Math.round(s)!==o},oi=(e,t,s)=>{const n=D(t),o=Pt(e,n&&ni(t)),i={x:0,y:0};if(n){const r=Pt(t,!0);i.x=r.x+t.clientLeft,i.y=r.y+t.clientTop}return{x:o.left+s.x-i.x,y:o.top+s.y-i.y,width:o.width,height:o.height}};let Qs=0,Zs=0;const Wt=new Map,Js=(e,t)=>{let s=t?Qs:Zs;if(t){const n=Js(e),o=Wt.get(n)||new Map;Wt.has(n)||Wt.set(n,o),Fe(o)&&!o.has(t)?(o.set(t,s),Qs+=1):s=o.get(t)}else{const n=e.id||e;Wt.has(n)?s=Wt.get(n):(Wt.set(n,s),Zs+=1)}return s},ii=e=>Array.isArray(e)||!1,tn=e=>{if(!x(e))return!1;const{top:t,bottom:s}=Pt(e),{clientHeight:n}=at(e);return t<=n&&s>=0},ri=e=>typeof e=="function"||!1,ci=e=>Ut(e)&&e.constructor.name==="NodeList"||!1,pt=e=>at(e).dir==="rtl",M=(e,t)=>!e||!t?null:e.closest(t)||M(e.getRootNode().host,t)||null,_=(e,t)=>Y(e)?e:(Y(t)?t:b()).querySelector(e),ze=(e,t)=>(x(t)?t:b()).getElementsByTagName(e),ai=(e,t)=>b(t).getElementById(e),lt=(e,t)=>(t&&x(t)?t:b()).getElementsByClassName(e),Ft={},en=e=>{const{type:t,currentTarget:s}=e;Ft[t].forEach((n,o)=>{s===o&&n.forEach((i,r)=>{r.apply(o,[e]),typeof i=="object"&&i.once&&L(o,t,r,i)})})},k=(e,t,s,n)=>{Ft[t]||(Ft[t]=new Map);const o=Ft[t];o.has(e)||o.set(e,new Map);const i=o.get(e),{size:r}=i;i.set(s,n),r||e.addEventListener(t,en,n)},L=(e,t,s,n)=>{const o=Ft[t],i=o&&o.get(e),r=i&&i.get(s),c=r!==void 0?r:n;i&&i.has(s)&&i.delete(s),o&&(!i||!i.size)&&o.delete(e),(!o||!o.size)&&delete Ft[t],(!i||!i.size)&&e.removeEventListener(t,en,c)},O="fade",p="show",Ee="data-bs-dismiss",Te="alert",sn="Alert",ot=e=>h(e,"disabled")||X(e,"disabled")==="true",li="5.1.1";class J{constructor(t,s){let n;try{if(Y(t))n=t;else if(Gt(t)){if(n=_(t),!n)throw Error(`"${t}" is not a valid selector.`)}else throw Error("your target is not an instance of HTMLElement.")}catch(i){throw Error(`${this.name} Error: ${i.message}`)}const o=Ct.get(n,this.name);o&&o._toggleEventListeners(),this.element=n,this.options=this.defaults&&Xs(this.defaults).length?Go(n,this.defaults,s||{},"bs"):{},Ct.set(n,this.name,this)}get version(){return li}get name(){return"BaseComponent"}get defaults(){return{}}_toggleEventListeners=()=>{};dispose(){Ct.remove(this.element,this.name),Xs(this).forEach(t=>{delete this[t]})}}const di=`.${Te}`,hi=`[${Ee}="${Te}"]`,fi=e=>R(e,sn),ui=e=>new Ke(e),nn=E(`close.bs.${Te}`),gi=E(`closed.bs.${Te}`),on=e=>{const{element:t}=e;w(t,gi),e._toggleEventListeners(),e.dispose(),t.remove()};class Ke extends J{static selector=di;static init=ui;static getInstance=fi;dismiss;constructor(t){super(t),this.dismiss=_(hi,this.element),this._toggleEventListeners(!0)}get name(){return sn}close=t=>{const{element:s,dismiss:n}=this;!s||!h(s,p)||t&&n&&ot(n)||(w(s,nn),!nn.defaultPrevented&&(v(s,p),h(s,O)?S(s,()=>on(this)):on(this)))};_toggleEventListeners=t=>{const s=t?k:L,{dismiss:n,close:o}=this;n&&s(n,H,o)};dispose(){this._toggleEventListeners(),super.dispose()}}const T="active",it="data-bs-toggle",pi="button",rn="Button",mi=`[${it}="${pi}"]`,vi=e=>R(e,rn),bi=e=>new qe(e);class qe extends J{static selector=mi;static init=bi;static getInstance=vi;constructor(t){super(t);const{element:s}=this;this.isActive=h(s,T),I(s,Ms,String(!!this.isActive)),this._toggleEventListeners(!0)}get name(){return rn}toggle=t=>{t&&t.preventDefault();const{element:s,isActive:n}=this;if(ot(s))return;(n?v:d)(s,T),I(s,Ms,n?"false":"true"),this.isActive=h(s,T)};_toggleEventListeners=t=>{(t?k:L)(this.element,H,this.toggle)};dispose(){this._toggleEventListeners(),super.dispose()}}const Ve="data-bs-target",xt="carousel",cn="Carousel",an="data-bs-parent",wi="data-bs-container",j=e=>{const t=[Ve,an,wi,"href"],s=b(e);return t.map(n=>{const o=X(e,n);return o?n===an?M(e,o):_(o,s):null}).filter(n=>n)[0]},te=`[data-bs-ride="${xt}"]`,tt=`${xt}-item`,Xe="data-bs-slide-to",mt="data-bs-slide",vt="paused",ln={pause:"hover",keyboard:!1,touch:!0,interval:5e3},dt=e=>R(e,cn),Ei=e=>new Je(e);let ee=0,$e=0,Ye=0;const Ue=E(`slide.bs.${xt}`),Ge=E(`slid.bs.${xt}`),dn=e=>{const{index:t,direction:s,element:n,slides:o,options:i}=e;if(e.isAnimating){const r=Ze(e),c=s==="left"?"next":"prev",a=s==="left"?"start":"end";d(o[t],T),v(o[t],`${tt}-${c}`),v(o[t],`${tt}-${a}`),v(o[r],T),v(o[r],`${tt}-${a}`),w(n,Ge),g.clear(n,mt),e.cycle&&!b(n).hidden&&i.interval&&!e.isPaused&&e.cycle()}};function Ti(){const e=dt(this);e&&!e.isPaused&&!g.get(this,vt)&&d(this,vt)}function $i(){const e=dt(this);e&&e.isPaused&&!g.get(this,vt)&&e.cycle()}function yi(e){e.preventDefault();const t=M(this,te)||j(this),s=t&&dt(t);if(ot(this)||!s||s.isAnimating)return;const n=+(X(this,Xe)||0);this&&!h(this,T)&&!Number.isNaN(n)&&s.to(n)}function Ci(e){e.preventDefault();const t=M(this,te)||j(this),s=t&&dt(t);if(ot(this)||!s||s.isAnimating)return;const n=X(this,mt);n==="next"?s.next():n==="prev"&&s.prev()}const Si=({code:e,target:t})=>{const s=b(t),[n]=[...U(te,s)].filter(a=>tn(a)),o=dt(n);if(!o||o.isAnimating||/textarea|input|select/i.test(t.nodeName))return;const i=pt(n);e===(i?Fs:Ws)?o.prev():e===(i?Ws:Fs)&&o.next()};function hn(e){const{target:t}=e,s=dt(this);s&&s.isTouch&&(s.indicator&&!s.indicator.contains(t)||!s.controls.includes(t))&&(e.stopImmediatePropagation(),e.stopPropagation(),e.preventDefault())}function Pi(e){const{target:t}=e,s=dt(this);if(!s||s.isAnimating||s.isTouch)return;const{controls:n,indicators:o}=s;[...n,...o].every(i=>i===t||i.contains(t))||(ee=e.pageX,this.contains(t)&&(s.isTouch=!0,fn(s,!0)))}const _i=e=>{$e=e.pageX},xi=e=>{const{target:t}=e,s=b(t),n=[...U(te,s)].map(c=>dt(c)).find(c=>c.isTouch);if(!n)return;const{element:o,index:i}=n,r=pt(o);Ye=e.pageX,n.isTouch=!1,fn(n),!s.getSelection()?.toString().length&&o.contains(t)&&Math.abs(ee-Ye)>120&&($eee&&n.to(i+(r?1:-1))),ee=0,$e=0,Ye=0},Qe=(e,t)=>{const{indicators:s}=e;[...s].forEach(n=>v(n,T)),e.indicators[t]&&d(s[t],T)},fn=(e,t)=>{const{element:s}=e,n=t?k:L;n(b(s),Wo,_i,Zt),n(b(s),Fo,xi,Zt)},Ze=e=>{const{slides:t,element:s}=e,n=_(`.${tt}.${T}`,s);return n?[...t].indexOf(n):-1};class Je extends J{static selector=te;static init=Ei;static getInstance=dt;constructor(t,s){super(t,s);const{element:n}=this;this.direction=pt(n)?"right":"left",this.isTouch=!1,this.slides=lt(tt,n);const{slides:o}=this;if(o.length<2)return;const i=Ze(this),r=[...o].find(l=>Gs(l,`.${tt}-next`));this.index=i;const c=b(n);this.controls=[...U(`[${mt}]`,n),...U(`[${mt}][${Ve}="#${n.id}"]`,c)].filter((l,f,u)=>f===u.indexOf(l)),this.indicator=_(`.${xt}-indicators`,n),this.indicators=[...this.indicator?U(`[${Xe}]`,this.indicator):[],...U(`[${Xe}][${Ve}="#${n.id}"]`,c)].filter((l,f,u)=>f===u.indexOf(l));const{options:a}=this;this.options.interval=a.interval===!0?ln.interval:a.interval,r?this.index=[...o].indexOf(r):i<0&&(this.index=0,d(o[0],T),this.indicators.length&&Qe(this,0)),this.indicators.length&&Qe(this,this.index),this._toggleEventListeners(!0),a.interval&&this.cycle()}get name(){return cn}get defaults(){return ln}get isPaused(){return h(this.element,vt)}get isAnimating(){return _(`.${tt}-next,.${tt}-prev`,this.element)!==null}cycle(){const{element:t,options:s,isPaused:n,index:o}=this;g.clear(t,xt),n&&(g.clear(t,vt),v(t,vt)),g.set(t,()=>{this.element&&!this.isPaused&&!this.isTouch&&tn(t)&&this.to(o+1)},s.interval,xt)}pause(){const{element:t,options:s}=this;this.isPaused||!s.interval||(d(t,vt),g.set(t,()=>{},1,vt))}next(){this.isAnimating||this.to(this.index+1)}prev(){this.isAnimating||this.to(this.index-1)}to(t){const{element:s,slides:n,options:o}=this,i=Ze(this),r=pt(s);let c=t;if(this.isAnimating||i===c||g.get(s,mt))return;ic||i===n.length-1&&c===0)&&(this.direction=r?"left":"right");const{direction:a}=this;c<0?c=n.length-1:c>=n.length&&(c=0);const l=a==="left"?"next":"prev",f=a==="left"?"start":"end",u={relatedTarget:n[c],from:i,to:c,direction:a};rt(Ue,u),rt(Ge,u),w(s,Ue),!Ue.defaultPrevented&&(this.index=c,Qe(this,c),Qt(n[c])&&h(s,"slide")?g.set(s,()=>{d(n[c],`${tt}-${l}`),St(n[c]),d(n[c],`${tt}-${f}`),d(n[i],`${tt}-${f}`),S(n[c],()=>this.slides&&this.slides.length&&dn(this))},0,mt):(d(n[c],T),v(n[i],T),g.set(s,()=>{g.clear(s,mt),s&&o.interval&&!this.isPaused&&this.cycle(),w(s,Ge)},0,mt)))}_toggleEventListeners=t=>{const{element:s,options:n,slides:o,controls:i,indicators:r}=this,{touch:c,pause:a,interval:l,keyboard:f}=n,u=t?k:L;a&&l&&(u(s,me,Ti),u(s,Oe,$i)),c&&o.length>2&&(u(s,Ro,Pi,Zt),u(s,Ne,hn,{passive:!1}),u(s,jo,hn,{passive:!1})),i.length&&i.forEach($=>{u($,H,Ci)}),r.length&&r.forEach($=>{u($,H,yi)}),f&&u(b(s),pe,Si)};dispose(){const{isAnimating:t}=this,s={...this,isAnimating:t};this._toggleEventListeners(),super.dispose(),s.isAnimating&&S(s.slides[s.index],()=>{dn(s)})}}const Dt="collapsing",z="collapse",un="Collapse",Di=`.${z}`,gn=`[${it}="${z}"]`,Ai={parent:null},ye=e=>R(e,un),Hi=e=>new ts(e),pn=E(`show.bs.${z}`),Ii=E(`shown.bs.${z}`),mn=E(`hide.bs.${z}`),ki=E(`hidden.bs.${z}`),Li=e=>{const{element:t,parent:s,triggers:n}=e;w(t,pn),pn.defaultPrevented||(g.set(t,ve,17),s&&g.set(s,ve,17),d(t,Dt),v(t,z),P(t,{height:`${t.scrollHeight}px`}),S(t,()=>{g.clear(t),s&&g.clear(s),n.forEach(o=>I(o,ue,"true")),v(t,Dt),d(t,z),d(t,p),P(t,{height:""}),w(t,Ii)}))},vn=e=>{const{element:t,parent:s,triggers:n}=e;w(t,mn),mn.defaultPrevented||(g.set(t,ve,17),s&&g.set(s,ve,17),P(t,{height:`${t.scrollHeight}px`}),v(t,z),v(t,p),d(t,Dt),St(t),P(t,{height:"0px"}),S(t,()=>{g.clear(t),s&&g.clear(s),n.forEach(o=>I(o,ue,"false")),v(t,Dt),d(t,z),P(t,{height:""}),w(t,ki)}))},Oi=e=>{const{target:t}=e,s=t&&M(t,gn),n=s&&j(s),o=n&&ye(n);s&&ot(s)||o&&(o.toggle(),s?.tagName==="A"&&e.preventDefault())};class ts extends J{static selector=Di;static init=Hi;static getInstance=ye;constructor(t,s){super(t,s);const{element:n,options:o}=this,i=b(n);this.triggers=[...U(gn,i)].filter(r=>j(r)===n),this.parent=D(o.parent)?o.parent:Gt(o.parent)?j(n)||_(o.parent,i):null,this._toggleEventListeners(!0)}get name(){return un}get defaults(){return Ai}hide(){const{triggers:t,element:s}=this;g.get(s)||(vn(this),t.length&&t.forEach(n=>d(n,`${z}d`)))}show(){const{element:t,parent:s,triggers:n}=this;let o,i;s&&(o=[...U(`.${z}.${p}`,s)].find(r=>ye(r)),i=o&&ye(o)),(!s||!g.get(s))&&!g.get(t)&&(i&&o!==t&&(vn(i),i.triggers.forEach(r=>{d(r,`${z}d`)})),Li(this),n.length&&n.forEach(r=>v(r,`${z}d`)))}toggle(){h(this.element,p)?this.hide():this.show()}_toggleEventListeners=t=>{const s=t?k:L,{triggers:n}=this;n.length&&n.forEach(o=>{s(o,H,Oi)})};dispose(){this._toggleEventListeners(),super.dispose()}}const Ni=e=>e!=null&&typeof e=="object"||!1,Mi=e=>Ni(e)&&typeof e.nodeType=="number"&&[1,2,3,4,5,6,7,8,9,10,11].some(t=>e.nodeType===t)||!1,bn=e=>Mi(e)&&e.nodeType===1||!1,Bi=e=>typeof e=="function"||!1,Ri="1.0.4",wn="PositionObserver Error";class es{entries;static version=Ri;_tick;_root;_callback;constructor(t,s){if(!Bi(t))throw new Error(`${wn}: ${t} is not a function.`);this.entries=new Map,this._callback=t,this._root=bn(s?.root)?s.root:document?.documentElement,this._tick=0}observe=t=>{if(!bn(t))throw new Error(`${wn}: ${t} is not an instance of Element.`);this._root.contains(t)&&this._new(t).then(s=>{s&&!this.getEntry(t)&&this.entries.set(t,s),this._tick||(this._tick=requestAnimationFrame(this._runCallback))})};unobserve=t=>{this.entries.has(t)&&this.entries.delete(t)};_runCallback=()=>{if(!this.entries.size)return;const t=new Promise(s=>{const n=[];this.entries.forEach(({target:o,boundingClientRect:i})=>{this._root.contains(o)&&this._new(o).then(({boundingClientRect:r,isIntersecting:c})=>{if(!c)return;const{left:a,top:l,bottom:f,right:u}=r;if(i.top!==l||i.left!==a||i.right!==u||i.bottom!==f){const $={target:o,boundingClientRect:r};this.entries.set(o,$),n.push($)}})}),s(n)});this._tick=requestAnimationFrame(async()=>{const s=await t;s.length&&this._callback(s,this),this._runCallback()})};_new=t=>new Promise(s=>{new IntersectionObserver(([n],o)=>{o.disconnect(),s(n)}).observe(t)});getEntry=t=>this.entries.get(t);disconnect=()=>{cancelAnimationFrame(this._tick),this.entries.clear(),this._tick=0}}const At=["dropdown","dropup","dropstart","dropend"],En="Dropdown",Tn="dropdown-menu",$n=e=>{const t=M(e,"A");return e.tagName==="A"&&Yt(e,"href")&&X(e,"href")?.slice(-1)==="#"||t&&Yt(t,"href")&&X(t,"href")?.slice(-1)==="#"},[et,ss,ns,os]=At,Wi=`[${it}="${et}"]`,se=e=>R(e,En),Fi=e=>new as(e),ji=`${Tn}-end`,yn=[et,ss],Cn=[ns,os],Sn=["A","BUTTON"],zi={offset:5,display:"dynamic"},is=E(`show.bs.${et}`),Pn=E(`shown.bs.${et}`),rs=E(`hide.bs.${et}`),_n=E(`hidden.bs.${et}`),xn=E(`updated.bs.${et}`),Dn=e=>{const{element:t,menu:s,parentElement:n,options:o}=e,{offset:i}=o;if(W(s,"position")==="static")return;const r=pt(t),c=h(s,ji);["margin","top","bottom","left","right"].forEach(F=>{const Nt={};Nt[F]="",P(s,Nt)});let l=At.find(F=>h(n,F))||et;const f={dropdown:[i,0,0],dropup:[0,0,i],dropstart:r?[-1,0,0,i]:[-1,i,0],dropend:r?[-1,i,0]:[-1,0,0,i]},u={dropdown:{top:"100%"},dropup:{top:"auto",bottom:"100%"},dropstart:r?{left:"100%",right:"auto"}:{left:"auto",right:"100%"},dropend:r?{left:"auto",right:"100%"}:{left:"100%",right:"auto"},menuStart:r?{right:"0",left:"auto"}:{right:"auto",left:"0"},menuEnd:r?{right:"auto",left:"0"}:{right:"0",left:"auto"}},{offsetWidth:$,offsetHeight:B}=s,{clientWidth:Z,clientHeight:st}=at(t),{left:m,top:V,width:Lt,height:Ot}=Pt(t),C=m-$-i<0,Et=m+$+Lt+i>=Z,ft=V+B+i>=st,nt=V+B+Ot+i>=st,zt=V-B-i<0,y=(!r&&c||r&&!c)&&m+Lt-$<0,K=(r&&c||!r&&!c)&&m+$>=Z;if(Cn.includes(l)&&C&&Et&&(l=et),l===ns&&(r?Et:C)&&(l=os),l===os&&(r?C:Et)&&(l=ns),l===ss&&zt&&!nt&&(l=et),l===et&&nt&&!zt&&(l=ss),Cn.includes(l)&&ft&&rt(u[l],{top:"auto",bottom:0}),yn.includes(l)&&(y||K)){let F={left:"auto",right:"auto"};!y&&K&&!r&&(F={left:"auto",right:0}),y&&!K&&r&&(F={left:0,right:"auto"}),F&&rt(u[l],F)}const Kt=f[l];P(s,{...u[l],margin:`${Kt.map(F=>F&&`${F}px`).join(" ")}`}),yn.includes(l)&&c&&c&&P(s,u[!r&&y||r&&K?"menuStart":"menuEnd"]),w(n,xn)},Ki=e=>Array.from(e.children).map(t=>{if(t&&Sn.includes(t.tagName))return t;const{firstElementChild:s}=t;return s&&Sn.includes(s.tagName)?s:null}).filter(t=>t),An=e=>{const{element:t,options:s,menu:n}=e,o=e.open?k:L,i=b(t);o(i,H,Hn),o(i,ke,Hn),o(i,pe,Vi),o(i,Mo,Xi),s.display==="dynamic"&&(e.open?e._observer.observe(n):e._observer.disconnect())},cs=e=>{const t=[...At,"btn-group","input-group"].map(s=>lt(`${s} ${p}`,b(e))).find(s=>s.length);if(t&&t.length)return[...t[0].children].find(s=>At.some(n=>n===X(s,it)))},Hn=e=>{const{target:t,type:s}=e;if(!D(t))return;const n=cs(t),o=n&&se(n);if(!o)return;const{parentElement:i,menu:r}=o,c=i&&i.contains(t)&&(t.tagName==="form"||M(t,"form")!==null);[H,Rs].includes(s)&&$n(t)&&e.preventDefault(),!c&&s!==ke&&t!==n&&t!==r&&o.hide()};function qi(e){const t=se(this);ot(this)||t&&(e.stopPropagation(),t.toggle(),$n(this)&&e.preventDefault())}const Vi=e=>{[Me,Be].includes(e.code)&&e.preventDefault()};function Xi(e){const{code:t}=e,s=cs(this);if(!s)return;const n=se(s),{activeElement:o}=b(s);if(!n||!o)return;const{menu:i,open:r}=n,c=Ki(i);if(c&&c.length&&[Me,Be].includes(t)){let a=c.indexOf(o);o===s?a=0:t===Be?a=a>1?a-1:0:t===Me&&(a=aDn(this)),this._toggleEventListeners(!0))}get name(){return En}get defaults(){return zi}toggle(){this.open?this.hide():this.show()}show(){const{element:t,open:s,menu:n,parentElement:o}=this;if(s)return;const i=cs(t),r=i&&se(i);r&&r.hide(),[is,Pn,xn].forEach(c=>{c.relatedTarget=t}),w(o,is),!is.defaultPrevented&&(d(n,p),d(o,p),I(t,ue,"true"),Dn(this),this.open=!s,ct(t),An(this),w(o,Pn))}hide(){const{element:t,open:s,menu:n,parentElement:o}=this;s&&([rs,_n].forEach(i=>{i.relatedTarget=t}),w(o,rs),!rs.defaultPrevented&&(v(n,p),v(o,p),I(t,ue,"false"),this.open=!s,An(this),w(o,_n)))}_toggleEventListeners=t=>{(t?k:L)(this.element,H,qi)};dispose(){this.open&&this.hide(),this._toggleEventListeners(),super.dispose()}}const q="modal",ls="Modal",ds="Offcanvas",Yi="fixed-top",Ui="fixed-bottom",In="sticky-top",kn="position-sticky",Ln=e=>[...lt(Yi,e),...lt(Ui,e),...lt(In,e),...lt(kn,e),...lt("is-fixed",e)],Gi=e=>{const t=_t(e);P(t,{paddingRight:"",overflow:""});const s=Ln(t);s.length&&s.forEach(n=>{P(n,{paddingRight:"",marginRight:""})})},On=e=>{const{clientWidth:t}=at(e),{innerWidth:s}=Us(e);return Math.abs(s-t)},Nn=(e,t)=>{const s=_t(e),n=parseInt(W(s,"paddingRight"),10),i=W(s,"overflow")==="hidden"&&n?0:On(e),r=Ln(s);t&&(P(s,{overflow:"hidden",paddingRight:`${n+i}px`}),r.length&&r.forEach(c=>{const a=W(c,"paddingRight");if(c.style.paddingRight=`${parseInt(a,10)+i}px`,[In,kn].some(l=>h(c,l))){const l=W(c,"marginRight");c.style.marginRight=`${parseInt(l,10)-i}px`}}))},G="offcanvas",bt=ut({tagName:"div",className:"popup-container"}),Mn=(e,t)=>{const s=x(t)&&t.nodeName==="BODY",n=x(t)&&!s?t:bt,o=s?t:_t(e);x(e)&&(n===bt&&o.append(bt),n.append(e))},Bn=(e,t)=>{const s=x(t)&&t.nodeName==="BODY",n=x(t)&&!s?t:bt;x(e)&&(e.remove(),n===bt&&!bt.children.length&&bt.remove())},hs=(e,t)=>{const s=x(t)&&t.nodeName!=="BODY"?t:bt;return x(e)&&s.contains(e)},Rn="backdrop",Wn=`${q}-${Rn}`,Fn=`${G}-${Rn}`,jn=`.${q}.${p}`,fs=`.${G}.${p}`,A=ut("div"),Ht=e=>_(`${jn},${fs}`,b(e)),us=e=>{const t=e?Wn:Fn;[Wn,Fn].forEach(s=>{v(A,s)}),d(A,t)},zn=(e,t,s)=>{us(s),Mn(A,_t(e)),t&&d(A,O)},Kn=()=>{h(A,p)||(d(A,p),St(A))},Ce=()=>{v(A,p)},qn=e=>{Ht(e)||(v(A,O),Bn(A,_t(e)),Gi(e))},Vn=e=>D(e)&&W(e,"visibility")!=="hidden"&&e.offsetParent!==null,Qi=`.${q}`,Zi=`[${it}="${q}"]`,Ji=`[${Ee}="${q}"]`,Xn=`${q}-static`,tr={backdrop:!0,keyboard:!0},ne=e=>R(e,ls),er=e=>new ps(e),Se=E(`show.bs.${q}`),Yn=E(`shown.bs.${q}`),gs=E(`hide.bs.${q}`),Un=E(`hidden.bs.${q}`),Gn=e=>{const{element:t}=e,s=On(t),{clientHeight:n,scrollHeight:o}=at(t),{clientHeight:i,scrollHeight:r}=t,c=i!==r;if(!c&&s){const l={[pt(t)?"paddingLeft":"paddingRight"]:`${s}px`};P(t,l)}Nn(t,c||n!==o)},Qn=(e,t)=>{const s=t?k:L,{element:n}=e;s(n,H,or),s(b(n),pe,nr),t?e._observer.observe(n):e._observer.disconnect()},Zn=e=>{const{triggers:t,element:s,relatedTarget:n}=e;qn(s),P(s,{paddingRight:"",display:""}),Qn(e);const o=Se.relatedTarget||t.find(Vn);o&&ct(o),Un.relatedTarget=n||void 0,w(s,Un),we(s)},Jn=e=>{const{element:t,relatedTarget:s}=e;ct(t),Qn(e,!0),Yn.relatedTarget=s||void 0,w(t,Yn),we(t)},to=e=>{const{element:t,hasFade:s}=e;P(t,{display:"block"}),Gn(e),Ht(t)||P(_t(t),{overflow:"hidden"}),d(t,p),yt(t,Xt),I(t,ge,"true"),s?S(t,()=>Jn(e)):Jn(e)},eo=e=>{const{element:t,options:s,hasFade:n}=e;s.backdrop&&n&&h(A,p)&&!Ht(t)?(Ce(),S(A,()=>Zn(e))):Zn(e)};function sr(e){const t=j(this),s=t&&ne(t);ot(this)||s&&(this.tagName==="A"&&e.preventDefault(),s.relatedTarget=this,s.toggle())}const nr=({code:e,target:t})=>{const s=_(jn,b(t)),n=s&&ne(s);if(!n)return;const{options:o}=n;o.keyboard&&e===Re&&h(s,p)&&(n.relatedTarget=null,n.hide())},or=e=>{const{currentTarget:t}=e,s=t&&ne(t);if(!s||!t||g.get(t))return;const{options:n,isStatic:o,modalDialog:i}=s,{backdrop:r}=n,{target:c}=e,a=b(t)?.getSelection()?.toString().length,l=i.contains(c),f=c&&M(c,Ji);o&&!l?g.set(t,()=>{d(t,Xn),S(i,()=>ir(s))},17):(f||!a&&!o&&!l&&r)&&(s.relatedTarget=f||null,s.hide(),e.preventDefault())},ir=e=>{const{element:t,modalDialog:s}=e,n=(Qt(s)||0)+17;v(t,Xn),g.set(t,()=>g.clear(t),n)};class ps extends J{static selector=Qi;static init=er;static getInstance=ne;constructor(t,s){super(t,s);const{element:n}=this,o=_(`.${q}-dialog`,n);o&&(this.modalDialog=o,this.triggers=[...U(Zi,b(n))].filter(i=>j(i)===n),this.isStatic=this.options.backdrop==="static",this.hasFade=h(n,O),this.relatedTarget=null,this._observer=new ResizeObserver(()=>this.update()),this._toggleEventListeners(!0))}get name(){return ls}get defaults(){return tr}toggle(){h(this.element,p)?this.hide():this.show()}show(){const{element:t,options:s,hasFade:n,relatedTarget:o}=this,{backdrop:i}=s;let r=0;if(h(t,p)||(Se.relatedTarget=o||void 0,w(t,Se),Se.defaultPrevented))return;const c=Ht(t);if(c&&c!==t){const a=ne(c)||R(c,ds);a&&a.hide()}i?(hs(A)?us(!0):zn(t,n,!0),r=Qt(A),Kn(),setTimeout(()=>to(this),r)):(to(this),c&&h(A,p)&&Ce())}hide(){const{element:t,hasFade:s,relatedTarget:n}=this;h(t,p)&&(gs.relatedTarget=n||void 0,w(t,gs),!gs.defaultPrevented&&(v(t,p),I(t,Xt,"true"),yt(t,ge),s?S(t,()=>eo(this)):eo(this)))}update=()=>{h(this.element,p)&&Gn(this)};_toggleEventListeners=t=>{const s=t?k:L,{triggers:n}=this;n.length&&n.forEach(o=>{s(o,H,sr)})};dispose(){const t={...this},{modalDialog:s,hasFade:n}=t,o=()=>setTimeout(()=>super.dispose(),17);this.hide(),this._toggleEventListeners(),n?S(s,o):o()}}const rr=`.${G}`,so=`[${it}="${G}"]`,cr=`[${Ee}="${G}"]`,Pe=`${G}-toggling`,ar={backdrop:!0,keyboard:!0,scroll:!1},oe=e=>R(e,ds),lr=e=>new vs(e),_e=E(`show.bs.${G}`),no=E(`shown.bs.${G}`),ms=E(`hide.bs.${G}`),oo=E(`hidden.bs.${G}`),dr=e=>{const{element:t}=e,{clientHeight:s,scrollHeight:n}=at(t);Nn(t,s!==n)},io=(e,t)=>{const s=t?k:L,n=b(e.element);s(n,pe,gr),s(n,H,ur)},ro=e=>{const{element:t,options:s}=e;s.scroll||(dr(e),P(_t(t),{overflow:"hidden"})),d(t,Pe),d(t,p),P(t,{visibility:"visible"}),S(t,()=>pr(e))},hr=e=>{const{element:t,options:s}=e,n=Ht(t);t.blur(),!n&&s.backdrop&&h(A,p)&&Ce(),S(t,()=>mr(e))};function fr(e){const t=j(this),s=t&&oe(t);ot(this)||s&&(s.relatedTarget=this,s.toggle(),this.tagName==="A"&&e.preventDefault())}const ur=e=>{const{target:t}=e,s=_(fs,b(t));if(!s)return;const n=_(cr,s),o=oe(s);if(!o)return;const{options:i,triggers:r}=o,{backdrop:c}=i,a=M(t,so),l=b(s).getSelection();A.contains(t)&&c==="static"||(!(l&&l.toString().length)&&(!s.contains(t)&&c&&(!a||r.includes(t))||n&&n.contains(t))&&(o.relatedTarget=n&&n.contains(t)?n:void 0,o.hide()),a&&a.tagName==="A"&&e.preventDefault())},gr=({code:e,target:t})=>{const s=_(fs,b(t)),n=s&&oe(s);n&&n.options.keyboard&&e===Re&&(n.relatedTarget=void 0,n.hide())},pr=e=>{const{element:t}=e;v(t,Pe),yt(t,Xt),I(t,ge,"true"),I(t,"role","dialog"),w(t,no),io(e,!0),ct(t),we(t)},mr=e=>{const{element:t,triggers:s}=e;I(t,Xt,"true"),yt(t,ge),yt(t,"role"),P(t,{visibility:""});const n=_e.relatedTarget||s.find(Vn);n&&ct(n),qn(t),w(t,oo),v(t,Pe),we(t),Ht(t)||io(e)};class vs extends J{static selector=rr;static init=lr;static getInstance=oe;constructor(t,s){super(t,s);const{element:n}=this;this.triggers=[...U(so,b(n))].filter(o=>j(o)===n),this.relatedTarget=void 0,this._toggleEventListeners(!0)}get name(){return ds}get defaults(){return ar}toggle(){h(this.element,p)?this.hide():this.show()}show(){const{element:t,options:s,relatedTarget:n}=this;let o=0;if(h(t,p)||(_e.relatedTarget=n||void 0,no.relatedTarget=n||void 0,w(t,_e),_e.defaultPrevented))return;const i=Ht(t);if(i&&i!==t){const r=oe(i)||R(i,ls);r&&r.hide()}s.backdrop?(hs(A)?us():zn(t,!0),o=Qt(A),Kn(),setTimeout(()=>ro(this),o)):(ro(this),i&&h(A,p)&&Ce())}hide(){const{element:t,relatedTarget:s}=this;h(t,p)&&(ms.relatedTarget=s||void 0,oo.relatedTarget=s||void 0,w(t,ms),!ms.defaultPrevented&&(d(t,Pe),v(t,p),hr(this)))}_toggleEventListeners=t=>{const s=t?k:L;this.triggers.forEach(n=>{s(n,H,fr)})};dispose(){const{element:t}=this,s=h(t,p),n=()=>setTimeout(()=>super.dispose(),1);this.hide(),this._toggleEventListeners(),s?S(t,n):n()}}const It="popover",bs="Popover",ht="tooltip",co=e=>{const t=e===ht,s=t?`${e}-inner`:`${e}-body`,n=t?"":`

`,o=`
`,i=`
`;return`
${n+o+i}
`},ao={top:"top",bottom:"bottom",left:"start",right:"end"},ws=e=>{requestAnimationFrame(()=>{const t=/\b(top|bottom|start|end)+/,{element:s,tooltip:n,container:o,offsetParent:i,options:r,arrow:c}=e;if(!n)return;const a=pt(s),{x:l,y:f}=ti(i);P(n,{top:"",left:"",right:"",bottom:""});const{offsetWidth:u,offsetHeight:$}=n,{clientWidth:B,clientHeight:Z,offsetWidth:st}=at(s);let{placement:m}=r;const{clientWidth:V,offsetWidth:Lt}=o,C=W(o,"position")==="fixed",Et=Math.abs(C?V-Lt:B-st),ft=a&&C?Et:0,nt=B-(a?0:Et)-1,zt=e._observer.getEntry(s),{width:y,height:K,left:Kt,right:F,top:Nt}=zt?.boundingClientRect||Pt(s,!0),{x:De,y:qt}=oi(s,i,{x:l,y:f});P(c,{top:"",left:"",right:"",bottom:""});let Mt=0,ae="",Tt=0,Is="",Vt="",Ae="",ks="";const Bt=c.offsetWidth||0,$t=c.offsetHeight||0,Ls=Bt/2;let le=Nt-$-$t<0,de=Nt+$+K+$t>=Z,he=Kt-u-Bt=nt;const He=["left","right"],Os=["top","bottom"];le=He.includes(m)?Nt+K/2-$/2-$t<0:le,de=He.includes(m)?Nt+$/2+K/2+$t>=Z:de,he=Os.includes(m)?Kt+y/2-u/2=nt:fe,m=He.includes(m)&&he&&fe?"top":m,m=m==="top"&&le?"bottom":m,m=m==="bottom"&&de?"top":m,m=m==="left"&&he?"right":m,m=m==="right"&&fe?"left":m,n.className.includes(m)||(n.className=n.className.replace(t,ao[m])),He.includes(m)?(m==="left"?Tt=De-u-Bt:Tt=De+y+Bt,le&&de?(Mt=0,ae=0,Vt=qt+K/2-$t/2):le?(Mt=qt,ae="",Vt=K/2-Bt):de?(Mt=qt-$+K,ae="",Vt=$-K/2-Bt):(Mt=qt-$/2+K/2,Vt=$/2-$t/2)):Os.includes(m)&&(m==="top"?Mt=qt-$-$t:Mt=qt+K+$t,he?(Tt=0,Ae=De+y/2-Ls):fe?(Tt="auto",Is=0,ks=y/2+nt-F-Ls):(Tt=De-u/2+y/2,Ae=u/2-Ls)),P(n,{top:`${Mt}px`,bottom:ae===""?"":`${ae}px`,left:Tt==="auto"?Tt:`${Tt}px`,right:Is!==""?`${Is}px`:""}),D(c)&&(Vt!==""&&(c.style.top=`${Vt}px`),Ae!==""?c.style.left=`${Ae}px`:ks!==""&&(c.style.right=`${ks}px`));const Gr=E(`updated.bs.${Jt(e.name)}`);w(s,Gr)})},Es={template:co(ht),title:"",customClass:"",trigger:"hover focus",placement:"top",sanitizeFn:void 0,animation:!0,delay:200,container:document.body,content:"",dismissible:!1,btnClose:""},lo="data-original-title",kt="Tooltip",wt=(e,t,s)=>{if(Gt(t)&&t.length){let n=t.trim();ri(s)&&(n=s(n));const i=new DOMParser().parseFromString(n,"text/html");e.append(...i.body.childNodes)}else D(t)?e.append(t):(ci(t)||ii(t)&&t.every(x))&&e.append(...t)},vr=e=>{const t=e.name===kt,{id:s,element:n,options:o}=e,{title:i,placement:r,template:c,animation:a,customClass:l,sanitizeFn:f,dismissible:u,content:$,btnClose:B}=o,Z=t?ht:It,st={...ao};let m=[],V=[];pt(n)&&(st.left="end",st.right="start");const Lt=`bs-${Z}-${st[r]}`;let Ot;if(D(c))Ot=c;else{const y=ut("div");wt(y,c,f),Ot=y.firstChild}if(!D(Ot))return;e.tooltip=Ot.cloneNode(!0);const{tooltip:C}=e;I(C,"id",s),I(C,"role",ht);const Et=t?`${ht}-inner`:`${It}-body`,ft=t?null:_(`.${It}-header`,C),nt=_(`.${Et}`,C);e.arrow=_(`.${Z}-arrow`,C);const{arrow:zt}=e;if(D(i))m=[i.cloneNode(!0)];else{const y=ut("div");wt(y,i,f),m=[...y.childNodes]}if(D($))V=[$.cloneNode(!0)];else{const y=ut("div");wt(y,$,f),V=[...y.childNodes]}if(u)if(i)if(D(B))m=[...m,B.cloneNode(!0)];else{const y=ut("div");wt(y,B,f),m=[...m,y.firstChild]}else if(ft&&ft.remove(),D(B))V=[...V,B.cloneNode(!0)];else{const y=ut("div");wt(y,B,f),V=[...V,y.firstChild]}t?i&&nt&&wt(nt,i,f):(i&&ft&&wt(ft,m,f),$&&nt&&wt(nt,V,f),e.btn=_(".btn-close",C)||void 0),d(C,"position-absolute"),d(zt,"position-absolute"),h(C,Z)||d(C,Z),a&&!h(C,O)&&d(C,O),l&&!h(C,l)&&d(C,l),h(C,Lt)||d(C,Lt)},br=e=>{const t=["HTML","BODY"],s=[];let{parentNode:n}=e;for(;n&&!t.includes(n.nodeName);)n=ei(n),Ys(n)||si(n)||s.push(n);return s.find((o,i)=>(W(o,"position")!=="relative"||W(o,"position")==="relative"&&o.offsetHeight!==o.scrollHeight)&&s.slice(i+1).every(r=>W(r,"position")==="static")?o:null)||b(e).body},wr=`[${it}="${ht}"],[data-tip="${ht}"]`,ho="title";let fo=e=>R(e,kt);const Er=e=>new xe(e),Tr=e=>{const{element:t,tooltip:s,container:n}=e;yt(t,Ns),Bn(s,n)},ie=e=>{const{tooltip:t,container:s}=e;return t&&hs(t,s)},$r=(e,t)=>{const{element:s}=e;e._toggleEventListeners(),Yt(s,lo)&&e.name===kt&&vo(e),t&&t()},uo=(e,t)=>{const s=t?k:L,{element:n}=e;s(b(n),Ne,e.handleTouch,Zt)},go=e=>{const{element:t}=e,s=E(`shown.bs.${Jt(e.name)}`);uo(e,!0),w(t,s),g.clear(t,"in")},po=e=>{const{element:t}=e,s=E(`hidden.bs.${Jt(e.name)}`);uo(e),Tr(e),w(t,s),g.clear(t,"out")},mo=(e,t)=>{const s=t?k:L,{element:n,tooltip:o}=e,i=M(n,`.${q}`),r=M(n,`.${G}`);t?[n,o].forEach(c=>e._observer.observe(c)):e._observer.disconnect(),i&&s(i,`hide.bs.${q}`,e.handleHide),r&&s(r,`hide.bs.${G}`,e.handleHide)},vo=(e,t)=>{const s=[lo,ho],{element:n}=e;I(n,s[t?0:1],t||X(n,s[0])||""),yt(n,s[t?1:0])};class xe extends J{static selector=wr;static init=Er;static getInstance=fo;static styleTip=ws;constructor(t,s){super(t,s);const{element:n}=this,o=this.name===kt,i=o?ht:It,r=o?kt:bs;fo=f=>R(f,r),this.enabled=!0,this.id=`${i}-${Js(n,i)}`;const{options:c}=this;if(!c.title&&o||!o&&!c.content)return;rt(Es,{titleAttr:""}),Yt(n,ho)&&o&&typeof c.title=="string"&&vo(this,c.title);const a=br(n),l=["sticky","fixed","relative"].some(f=>W(a,"position")===f)?a:Us(n);this.container=a,this.offsetParent=l,vr(this),this.tooltip&&(this._observer=new es(()=>this.update()),this._toggleEventListeners(!0))}get name(){return kt}get defaults(){return Es}handleFocus=()=>ct(this.element);handleShow=()=>this.show();show(){const{options:t,tooltip:s,element:n,container:o,id:i}=this,{animation:r}=t,c=g.get(n,"out");g.clear(n,"out"),s&&!c&&!ie(this)&&g.set(n,()=>{const a=E(`show.bs.${Jt(this.name)}`);w(n,a),a.defaultPrevented||(Mn(s,o),I(n,Ns,`#${i}`),this.update(),mo(this,!0),h(s,p)||d(s,p),r?S(s,()=>go(this)):go(this))},17,"in")}handleHide=()=>this.hide();hide(){const{options:t,tooltip:s,element:n}=this,{animation:o,delay:i}=t;g.clear(n,"in"),s&&ie(this)&&g.set(n,()=>{const r=E(`hide.bs.${Jt(this.name)}`);w(n,r),r.defaultPrevented||(this.update(),v(s,p),mo(this),o?S(s,()=>po(this)):po(this))},i+17,"out")}update=()=>{ws(this)};toggle=()=>{const{tooltip:t}=this;t&&!ie(this)?this.show():this.hide()};enable(){const{enabled:t}=this;t||(this._toggleEventListeners(!0),this.enabled=!t)}disable(){const{tooltip:t,enabled:s}=this;s&&(t&&ie(this)&&this.hide(),this._toggleEventListeners(),this.enabled=!s)}toggleEnabled(){this.enabled?this.disable():this.enable()}handleTouch=({target:t})=>{const{tooltip:s,element:n}=this;s&&s.contains(t)||t===n||t&&n.contains(t)||this.hide()};_toggleEventListeners=t=>{const s=t?k:L,{element:n,options:o,btn:i}=this,{trigger:r}=o,a=!!(this.name!==kt&&o.dismissible);r.includes("manual")||(this.enabled=!!t,r.split(" ").forEach(f=>{f===Bo?(s(n,Rs,this.handleShow),s(n,me,this.handleShow),a||(s(n,Oe,this.handleHide),s(b(n),Ne,this.handleTouch,Zt))):f===H?s(n,f,a?this.handleShow:this.toggle):f===ke&&(s(n,Le,this.handleShow),a||s(n,Bs,this.handleHide),Vo()&&s(n,H,this.handleFocus)),a&&i&&s(i,H,this.handleHide)}))};dispose(){const{tooltip:t,options:s}=this,n={...this,name:this.name},o=()=>setTimeout(()=>$r(n,()=>super.dispose()),17);s.animation&&ie(n)?(this.options.delay=0,this.hide(),S(t,o)):o()}}const yr=`[${it}="${It}"],[data-tip="${It}"]`,Cr=rt({},Es,{template:co(It),content:"",dismissible:!1,btnClose:''}),Sr=e=>R(e,bs),Pr=e=>new Ts(e);class Ts extends xe{static selector=yr;static init=Pr;static getInstance=Sr;static styleTip=ws;constructor(t,s){super(t,s)}get name(){return bs}get defaults(){return Cr}show=()=>{super.show();const{options:t,btn:s}=this;t.dismissible&&s&&setTimeout(()=>ct(s),17)}}const _r="scrollspy",bo="ScrollSpy",xr='[data-bs-spy="scroll"]',Dr="[href]",Ar={offset:10,target:void 0},Hr=e=>R(e,bo),Ir=e=>new ys(e),wo=E(`activate.bs.${_r}`),kr=e=>{const{target:t,_itemsLength:s,_observables:n}=e,o=ze("A",t),i=b(t);!o.length||s===n.size||(n.clear(),Array.from(o).forEach(r=>{const c=X(r,"href")?.slice(1),a=c?.length?i.getElementById(c):null;a&&!ot(r)&&e._observables.set(a,r)}),e._itemsLength=e._observables.size)},Eo=e=>{Array.from(ze("A",e)).forEach(t=>{h(t,T)&&v(t,T)})},To=(e,t)=>{const{target:s,element:n}=e;Eo(s),e._activeItem=t,d(t,T);let o=t;for(;o!==s;)if(o=o.parentElement,["nav","dropdown-menu","list-group"].some(i=>h(o,i))){const i=o.previousElementSibling;i&&!h(i,T)&&d(i,T)}wo.relatedTarget=t,w(n,wo)},$s=(e,t)=>{const{scrollTarget:s,element:n,options:o}=e;return(s!==n?Pt(t).top+s.scrollTop:t.offsetTop)-(o.offset||10)};class ys extends J{static selector=xr;static init=Ir;static getInstance=Hr;constructor(t,s){super(t,s);const{element:n,options:o}=this,i=_(o.target,b(n));i&&(this.target=i,this.scrollTarget=n.clientHeight{requestAnimationFrame(()=>this.refresh())},{root:this.scrollTarget}),this._toggleEventListeners(!0))}get name(){return bo}get defaults(){return Ar}refresh=()=>{const{target:t,scrollTarget:s}=this;if(!t||t.offsetHeight===0)return;kr(this);const{_itemsLength:n,_observables:o,_activeItem:i}=this;if(!n)return;const r=o.entries().toArray(),{scrollTop:c,scrollHeight:a,clientHeight:l}=s;if(c>=a-l){const u=r[n-1]?.[1];i!==u&&To(this,u);return}const f=r[0]?.[0]?$s(this,r[0][0]):null;if(f!==null&&c0){this._activeItem=null,Eo(t);return}for(let u=0;u=Z&&(m===null||c{const s=M(t.target,Dr),n=s&&X(s,"href")?.slice(1),o=n&&ai(n,this.target);o&&(this.scrollTarget.scrollTo({top:o.offsetTop,behavior:"smooth"}),t.preventDefault())};_toggleEventListeners=t=>{const{target:s,_observables:n,_observer:o,_scrollTo:i}=this;(t?k:L)(s,H,i),t?n?.forEach((c,a)=>o.observe(a)):o.disconnect()};dispose(){this._toggleEventListeners(),super.dispose()}}const re="tab",$o="Tab",Cs=`[${it}="${re}"]`,yo=e=>R(e,$o),Lr=e=>new _s(e),Ss=E(`show.bs.${re}`),Co=E(`shown.bs.${re}`),Ps=E(`hide.bs.${re}`),So=E(`hidden.bs.${re}`),ce=new Map,Po=e=>{const{tabContent:t,nav:s}=e;t&&h(t,Dt)&&(t.style.height="",v(t,Dt)),s&&g.clear(s)},_o=e=>{const{element:t,tabContent:s,content:n,nav:o}=e,{tab:i}=D(o)&&ce.get(o)||{tab:null};if(s&&n&&h(n,O)){const{currentHeight:r,nextHeight:c}=ce.get(t)||{currentHeight:0,nextHeight:0};r!==c?setTimeout(()=>{s.style.height=`${c}px`,St(s),S(s,()=>Po(e))},50):Po(e)}else o&&g.clear(o);Co.relatedTarget=i,w(t,Co)},xo=e=>{const{element:t,content:s,tabContent:n,nav:o}=e,{tab:i,content:r}=o&&ce.get(o)||{tab:null,content:null};let c=0;if(n&&s&&h(s,O)&&([r,s].forEach(a=>{a&&d(a,"overflow-hidden")}),c=r?r.scrollHeight:0),Ss.relatedTarget=i,So.relatedTarget=t,w(t,Ss),!Ss.defaultPrevented){if(s&&d(s,T),r&&v(r,T),n&&s&&h(s,O)){const a=s.scrollHeight;ce.set(t,{currentHeight:c,nextHeight:a,tab:null,content:null}),d(n,Dt),n.style.height=`${c}px`,St(n),[r,s].forEach(l=>{l&&v(l,"overflow-hidden")})}s&&s&&h(s,O)?setTimeout(()=>{d(s,p),S(s,()=>{_o(e)})},1):(s&&d(s,p),_o(e)),i&&w(i,So)}},Do=e=>{const{nav:t}=e;if(!D(t))return{tab:null,content:null};const s=lt(T,t);let n=null;s.length===1&&!At.some(i=>h(s[0].parentElement,i))?[n]=s:s.length>1&&(n=s[s.length-1]);const o=D(n)?j(n):null;return{tab:n,content:o}},Ao=e=>{if(!D(e))return null;const t=M(e,`.${At.join(",.")}`);return t?_(`.${At[0]}-toggle`,t):null},Or=e=>{const t=M(e.target,Cs),s=t&&yo(t);s&&(e.preventDefault(),s.show())};class _s extends J{static selector=Cs;static init=Lr;static getInstance=yo;constructor(t){super(t);const{element:s}=this,n=j(s);if(!n)return;const o=M(s,".nav"),i=M(n,".tab-content");this.nav=o,this.content=n,this.tabContent=i,this.dropdown=Ao(s);const{tab:r}=Do(this);if(o&&!r){const c=_(Cs,o),a=c&&j(c);a&&(d(c,T),d(a,p),d(a,T),I(s,Ie,"true"))}this._toggleEventListeners(!0)}get name(){return $o}show(){const{element:t,content:s,nav:n,dropdown:o}=this;if(n&&g.get(n)||h(t,T))return;const{tab:i,content:r}=Do(this);if(n&&i&&ce.set(n,{tab:i,content:r,currentHeight:0,nextHeight:0}),Ps.relatedTarget=t,!D(i)||(w(i,Ps),Ps.defaultPrevented))return;d(t,T),I(t,Ie,"true");const c=D(i)&&Ao(i);if(c&&h(c,T)&&v(c,T),n){const a=()=>{i&&(v(i,T),I(i,Ie,"false")),o&&!h(o,T)&&d(o,T)};r&&(h(r,O)||s&&h(s,O))?g.set(n,a,1):a()}r&&(v(r,p),h(r,O)?S(r,()=>xo(this)):xo(this))}_toggleEventListeners=t=>{(t?k:L)(this.element,H,Or)};dispose(){this._toggleEventListeners(),super.dispose()}}const Q="toast",Ho="Toast",Nr=`.${Q}`,Mr=`[${Ee}="${Q}"]`,Br=`[${it}="${Q}"]`,jt="showing",Io="hide",Rr={animation:!0,autohide:!0,delay:5e3},xs=e=>R(e,Ho),Wr=e=>new Ds(e),ko=E(`show.bs.${Q}`),Fr=E(`shown.bs.${Q}`),Lo=E(`hide.bs.${Q}`),jr=E(`hidden.bs.${Q}`),Oo=e=>{const{element:t,options:s}=e;v(t,jt),g.clear(t,jt),w(t,Fr),s.autohide&&g.set(t,()=>e.hide(),s.delay,Q)},No=e=>{const{element:t}=e;v(t,jt),v(t,p),d(t,Io),g.clear(t,Q),w(t,jr)},zr=e=>{const{element:t,options:s}=e;d(t,jt),s.animation?(St(t),S(t,()=>No(e))):No(e)},Kr=e=>{const{element:t,options:s}=e;g.set(t,()=>{v(t,Io),St(t),d(t,p),d(t,jt),s.animation?S(t,()=>Oo(e)):Oo(e)},17,jt)};function qr(e){const t=j(this),s=t&&xs(t);ot(this)||s&&(this.tagName==="A"&&e.preventDefault(),s.relatedTarget=this,s.show())}const Vr=e=>{const t=e.target,s=xs(t),{type:n,relatedTarget:o}=e;!s||t===o||t.contains(o)||([me,Le].includes(n)?g.clear(t,Q):g.set(t,()=>s.hide(),s.options.delay,Q))};class Ds extends J{static selector=Nr;static init=Wr;static getInstance=xs;constructor(t,s){super(t,s);const{element:n,options:o}=this;o.animation&&!h(n,O)?d(n,O):!o.animation&&h(n,O)&&v(n,O),this.dismiss=_(Mr,n),this.triggers=[...U(Br,b(n))].filter(i=>j(i)===n),this._toggleEventListeners(!0)}get name(){return Ho}get defaults(){return Rr}get isShown(){return h(this.element,p)}show=()=>{const{element:t,isShown:s}=this;!t||s||(w(t,ko),ko.defaultPrevented||Kr(this))};hide=()=>{const{element:t,isShown:s}=this;!t||!s||(w(t,Lo),Lo.defaultPrevented||zr(this))};_toggleEventListeners=t=>{const s=t?k:L,{element:n,triggers:o,dismiss:i,options:r,hide:c}=this;i&&s(i,H,c),r.autohide&&[Le,Bs,me,Oe].forEach(a=>s(n,a,Vr)),o.length&&o.forEach(a=>{s(a,H,qr)})};dispose(){const{element:t,isShown:s}=this;this._toggleEventListeners(),g.clear(t,Q),s&&v(t,p),super.dispose()}}const As=new Map;[Ke,qe,Je,ts,as,ps,vs,Ts,ys,_s,Ds,xe].forEach(e=>As.set(e.prototype.name,e));const Xr=(e,t)=>{[...t].forEach(s=>e(s))},Yr=(e,t)=>{const s=Ct.getAllFor(e);s&&[...s].forEach(([n,o])=>{t.contains(n)&&o.dispose()})},Hs=e=>{const t=e&&e.nodeName?e:document,s=[...ze("*",t)];As.forEach(n=>{const{init:o,selector:i}=n;Xr(o,s.filter(r=>Gs(r,i)))})},Ur=e=>{const t=e&&e.nodeName?e:document;As.forEach(s=>{Yr(s.prototype.name,t)})};return document.body?Hs():k(document,"DOMContentLoaded",()=>Hs(),{once:!0}),N.Alert=Ke,N.Button=qe,N.Carousel=Je,N.Collapse=ts,N.Dropdown=as,N.Modal=ps,N.Offcanvas=vs,N.Popover=Ts,N.ScrollSpy=ys,N.Tab=_s,N.Toast=Ds,N.Tooltip=xe,N.initCallback=Hs,N.removeDataAPI=Ur,Object.defineProperty(N,Symbol.toStringTag,{value:"Module"}),N}({}); //# sourceMappingURL=bootstrap-native.js.map diff --git a/docs/assets/js/bootstrap-native.js.map b/docs/assets/js/bootstrap-native.js.map index c6d3abb5..367d5f55 100755 --- a/docs/assets/js/bootstrap-native.js.map +++ b/docs/assets/js/bootstrap-native.js.map @@ -1 +1 @@ -{"version":3,"file":"bootstrap-native.js","sources":["../node_modules/.pnpm/@thednp+shorty@2.0.8/node_modules/@thednp/shorty/dist/shorty.mjs","../node_modules/.pnpm/@thednp+event-listener@2.0.8/node_modules/@thednp/event-listener/dist/event-listener.mjs","../src/strings/fadeClass.ts","../src/strings/showClass.ts","../src/strings/dataBsDismiss.ts","../src/strings/alertString.ts","../src/strings/alertComponent.ts","../src/util/isDisabled.ts","../src/version.ts","../src/components/base-component.ts","../src/components/alert.ts","../src/strings/activeClass.ts","../src/strings/dataBsToggle.ts","../src/strings/buttonString.ts","../src/strings/buttonComponent.ts","../src/components/button.ts","../src/strings/dataBsTarget.ts","../src/strings/carouselString.ts","../src/strings/carouselComponent.ts","../src/strings/dataBsParent.ts","../src/strings/dataBsContainer.ts","../src/util/getTargetElement.ts","../src/components/carousel.ts","../src/strings/collapsingClass.ts","../src/strings/collapseString.ts","../src/strings/collapseComponent.ts","../src/components/collapse.ts","../node_modules/.pnpm/@thednp+position-observer@1.0.2/node_modules/@thednp/position-observer/dist/index.mjs","../src/strings/dropdownClasses.ts","../src/strings/dropdownComponent.ts","../src/strings/dropdownMenuClass.ts","../src/util/isEmptyAnchor.ts","../src/components/dropdown.ts","../src/strings/modalString.ts","../src/strings/modalComponent.ts","../src/strings/offcanvasComponent.ts","../src/strings/fixedTopClass.ts","../src/strings/fixedBottomClass.ts","../src/strings/stickyTopClass.ts","../src/strings/positionStickyClass.ts","../src/util/scrollbar.ts","../src/strings/offcanvasString.ts","../src/util/popupContainer.ts","../src/util/backdrop.ts","../src/util/isVisible.ts","../src/components/modal.ts","../src/components/offcanvas.ts","../src/strings/popoverString.ts","../src/strings/popoverComponent.ts","../src/strings/tooltipString.ts","../src/util/getTipTemplate.ts","../src/util/tipClassPositions.ts","../src/util/styleTip.ts","../src/util/tooltipDefaults.ts","../src/strings/dataOriginalTitle.ts","../src/strings/tooltipComponent.ts","../src/util/setHtml.ts","../src/util/createTip.ts","../src/util/getElementContainer.ts","../src/components/tooltip.ts","../src/components/popover.ts","../src/strings/scrollspyString.ts","../src/strings/scrollspyComponent.ts","../src/components/scrollspy.ts","../src/strings/tabString.ts","../src/strings/tabComponent.ts","../src/components/tab.ts","../src/strings/toastString.ts","../src/strings/toastComponent.ts","../src/components/toast.ts","../src/util/init.ts"],"sourcesContent":["const Ne = \"2.0.8\", Ce = \"aria-checked\", Te = \"aria-description\", Me = \"aria-describedby\", De = \"aria-expanded\", Le = \"aria-haspopup\", $ = \"aria-hidden\", Oe = \"aria-label\", xe = \"aria-labelledby\", ze = \"aria-modal\", Ie = \"aria-pressed\", Pe = \"aria-selected\", Fe = \"aria-valuemin\", Be = \"aria-valuemax\", Ve = \"aria-valuenow\", He = \"aria-valuetext\", J = \"abort\", X = \"beforeunload\", Y = \"blur\", tt = \"change\", et = \"contextmenu\", H = \"DOMContentLoaded\", nt = \"DOMMouseScroll\", ot = \"error\", st = \"focus\", rt = \"focusin\", ct = \"focusout\", at = \"gesturechange\", it = \"gestureend\", ut = \"gesturestart\", lt = \"keydown\", dt = \"keypress\", ft = \"keyup\", pt = \"load\", gt = \"click\", mt = \"dblclick\", vt = \"mousedown\", bt = \"mouseup\", Et = \"hover\", ht = \"mouseenter\", yt = \"mouseleave\", wt = \"mousein\", At = \"mouseout\", St = \"mouseover\", kt = \"mousemove\", Nt = \"mousewheel\", Ct = \"move\", Tt = \"orientationchange\", Mt = \"pointercancel\", Dt = \"pointerdown\", Lt = \"pointerleave\", Ot = \"pointermove\", xt = \"pointerup\", zt = \"readystatechange\", It = \"reset\", Pt = \"resize\", Ft = \"select\", Bt = \"selectend\", Vt = \"selectstart\", Ht = \"scroll\", Ut = \"submit\", Wt = \"touchstart\", Rt = \"touchmove\", Qt = \"touchcancel\", jt = \"touchend\", Kt = \"unload\", Ue = {\n DOMContentLoaded: H,\n DOMMouseScroll: nt,\n abort: J,\n beforeunload: X,\n blur: Y,\n change: tt,\n click: gt,\n contextmenu: et,\n dblclick: mt,\n error: ot,\n focus: st,\n focusin: rt,\n focusout: ct,\n gesturechange: at,\n gestureend: it,\n gesturestart: ut,\n hover: Et,\n keydown: lt,\n keypress: dt,\n keyup: ft,\n load: pt,\n mousedown: vt,\n mousemove: kt,\n mousein: wt,\n mouseout: At,\n mouseenter: ht,\n mouseleave: yt,\n mouseover: St,\n mouseup: bt,\n mousewheel: Nt,\n move: Ct,\n orientationchange: Tt,\n pointercancel: Mt,\n pointerdown: Dt,\n pointerleave: Lt,\n pointermove: Ot,\n pointerup: xt,\n readystatechange: zt,\n reset: It,\n resize: Pt,\n scroll: Ht,\n select: Ft,\n selectend: Bt,\n selectstart: Vt,\n submit: Ut,\n touchcancel: Qt,\n touchend: jt,\n touchmove: Rt,\n touchstart: Wt,\n unload: Kt\n}, We = \"drag\", Re = \"dragstart\", Qe = \"dragenter\", je = \"dragleave\", Ke = \"dragover\", qe = \"dragend\", Ge = \"loadstart\", Ze = {\n start: \"mousedown\",\n end: \"mouseup\",\n move: \"mousemove\",\n cancel: \"mouseleave\"\n}, _e = { down: \"mousedown\", up: \"mouseup\" }, $e = \"onmouseleave\" in document ? [\"mouseenter\", \"mouseleave\"] : [\"mouseover\", \"mouseout\"], Je = {\n start: \"touchstart\",\n end: \"touchend\",\n move: \"touchmove\",\n cancel: \"touchcancel\"\n}, Xe = { in: \"focusin\", out: \"focusout\" }, qt = 'a[href], button, input, textarea, select, details, [tabindex]:not([tabindex=\"-1\"]', Ye = {\n Backspace: \"Backspace\",\n Tab: \"Tab\",\n Enter: \"Enter\",\n Shift: \"Shift\",\n Control: \"Control\",\n Alt: \"Alt\",\n Pause: \"Pause\",\n CapsLock: \"CapsLock\",\n Escape: \"Escape\",\n Scape: \"Space\",\n ArrowLeft: \"ArrowLeft\",\n ArrowUp: \"ArrowUp\",\n ArrowRight: \"ArrowRight\",\n ArrowDown: \"ArrowDown\",\n Insert: \"Insert\",\n Delete: \"Delete\",\n Meta: \"Meta\",\n ContextMenu: \"ContextMenu\",\n ScrollLock: \"ScrollLock\"\n}, tn = \"Alt\", en = \"ArrowDown\", nn = \"ArrowUp\", on = \"ArrowLeft\", sn = \"ArrowRight\", rn = \"Backspace\", cn = \"CapsLock\", an = \"Control\", un = \"Delete\", ln = \"Enter\", dn = \"NumpadEnter\", fn = \"Escape\", pn = \"Insert\", gn = \"Meta\", mn = \"Pause\", vn = \"ScrollLock\", bn = \"Shift\", En = \"Space\", hn = \"Tab\", Gt = \"animationDuration\", Zt = \"animationDelay\", U = \"animationName\", T = \"animationend\", _t = \"transitionDuration\", $t = \"transitionDelay\", M = \"transitionend\", W = \"transitionProperty\", yn = \"addEventListener\", wn = \"removeEventListener\", An = {\n linear: \"linear\",\n easingSinusoidalIn: \"cubic-bezier(0.47,0,0.745,0.715)\",\n easingSinusoidalOut: \"cubic-bezier(0.39,0.575,0.565,1)\",\n easingSinusoidalInOut: \"cubic-bezier(0.445,0.05,0.55,0.95)\",\n easingQuadraticIn: \"cubic-bezier(0.550,0.085,0.680,0.530)\",\n easingQuadraticOut: \"cubic-bezier(0.250,0.460,0.450,0.940)\",\n easingQuadraticInOut: \"cubic-bezier(0.455,0.030,0.515,0.955)\",\n easingCubicIn: \"cubic-bezier(0.55,0.055,0.675,0.19)\",\n easingCubicOut: \"cubic-bezier(0.215,0.61,0.355,1)\",\n easingCubicInOut: \"cubic-bezier(0.645,0.045,0.355,1)\",\n easingQuarticIn: \"cubic-bezier(0.895,0.03,0.685,0.22)\",\n easingQuarticOut: \"cubic-bezier(0.165,0.84,0.44,1)\",\n easingQuarticInOut: \"cubic-bezier(0.77,0,0.175,1)\",\n easingQuinticIn: \"cubic-bezier(0.755,0.05,0.855,0.06)\",\n easingQuinticOut: \"cubic-bezier(0.23,1,0.32,1)\",\n easingQuinticInOut: \"cubic-bezier(0.86,0,0.07,1)\",\n easingExponentialIn: \"cubic-bezier(0.95,0.05,0.795,0.035)\",\n easingExponentialOut: \"cubic-bezier(0.19,1,0.22,1)\",\n easingExponentialInOut: \"cubic-bezier(1,0,0,1)\",\n easingCircularIn: \"cubic-bezier(0.6,0.04,0.98,0.335)\",\n easingCircularOut: \"cubic-bezier(0.075,0.82,0.165,1)\",\n easingCircularInOut: \"cubic-bezier(0.785,0.135,0.15,0.86)\",\n easingBackIn: \"cubic-bezier(0.6,-0.28,0.735,0.045)\",\n easingBackOut: \"cubic-bezier(0.175,0.885,0.32,1.275)\",\n easingBackInOut: \"cubic-bezier(0.68,-0.55,0.265,1.55)\"\n}, Sn = \"offsetHeight\", kn = \"offsetWidth\", Nn = \"scrollHeight\", Cn = \"scrollWidth\", Tn = \"tabindex\", Mn = navigator.userAgentData, { userAgent: Jt } = navigator, Dn = Jt, Ln = () => {\n const t = /iPhone|iPad|iPod|Android/i;\n return navigator?.userAgentData?.brands.some(\n (e) => t.test(e.brand)\n ) || t.test(navigator?.userAgent) || !1;\n}, On = () => {\n const t = /(iPhone|iPod|iPad)/;\n return navigator?.userAgentData?.brands.some(\n (e) => t.test(e.brand)\n ) || t.test(\n navigator?.userAgent\n ) || !1;\n}, xn = () => navigator?.userAgent?.includes(\"Firefox\") || !1, Xt = () => typeof CSS > \"u\" || !CSS.supports ? !1 : CSS.supports(\"-webkit-backdrop-filter\", \"none\"), zn = () => [\"webkitPerspective\", \"perspective\"].some((t) => t in document.head.style), Yt = () => {\n}, R = (t, e, n, o) => {\n const s = o || !1;\n t.addEventListener(\n e,\n n,\n s\n );\n}, Q = (t, e, n, o) => {\n const s = o || !1;\n t.removeEventListener(\n e,\n n,\n s\n );\n}, te = (t, e, n, o) => {\n const s = (r) => {\n (r.target === t || r.currentTarget === t) && (n.apply(t, [r]), Q(t, e, s, o));\n };\n R(t, e, s, o);\n}, In = () => {\n let t = !1;\n try {\n const e = Object.defineProperty({}, \"passive\", {\n get: () => (t = !0, t)\n });\n te(document, H, Yt, e);\n } catch {\n }\n return t;\n}, Pn = () => [\"webkitTransform\", \"transform\"].some((t) => t in document.head.style), Fn = () => \"ontouchstart\" in window || \"msMaxTouchPoints\" in navigator, Bn = () => [\"webkitAnimation\", \"animation\"].some((t) => t in document.head.style), Vn = () => [\"webkitTransition\", \"transition\"].some((t) => t in document.head.style), j = (t, e) => t.getAttribute(e), Hn = (t, e, n) => e.getAttributeNS(t, n), ee = (t, e) => t.hasAttribute(e), Un = (t, e, n) => e.hasAttributeNS(t, n), Wn = (t, e, n) => t.setAttribute(e, n), Rn = (t, e, n, o) => e.setAttributeNS(t, n, o), Qn = (t, e) => t.removeAttribute(e), jn = (t, e, n) => e.removeAttributeNS(t, n), Kn = (t, ...e) => {\n t.classList.add(...e);\n}, qn = (t, ...e) => {\n t.classList.remove(...e);\n}, Gn = (t, e) => t.classList.contains(e), { body: Zn } = document, { documentElement: _n } = document, { head: $n } = document, Jn = (t) => Array.from(t), v = (t) => t != null && typeof t == \"object\" || !1, u = (t) => v(t) && typeof t.nodeType == \"number\" && [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11].some(\n (e) => t.nodeType === e\n) || !1, i = (t) => u(t) && t.nodeType === 1 || !1, E = /* @__PURE__ */ new Map(), L = {\n data: E,\n set: (t, e, n) => {\n if (!i(t)) return;\n E.has(e) || E.set(e, /* @__PURE__ */ new Map()), E.get(e).set(t, n);\n },\n getAllFor: (t) => E.get(t) || null,\n get: (t, e) => {\n if (!i(t) || !e) return null;\n const n = L.getAllFor(e);\n return t && n && n.get(t) || null;\n },\n remove: (t, e) => {\n const n = L.getAllFor(e);\n !n || !i(t) || (n.delete(t), n.size === 0 && E.delete(e));\n }\n}, Xn = (t, e) => L.get(t, e), Yn = (t) => t?.charAt(0).toUpperCase() + t?.slice(1), I = (t) => t?.trim().replace(\n /(?:^\\w|[A-Z]|\\b\\w)/g,\n (e, n) => n === 0 ? e.toLowerCase() : e.toUpperCase()\n).replace(/\\s+/g, \"\"), N = (t) => typeof t == \"string\" || !1, K = (t) => v(t) && t.constructor.name === \"Window\" || !1, q = (t) => u(t) && t.nodeType === 9 || !1, d = (t) => q(t) ? t : u(t) ? t.ownerDocument : K(t) ? t.document : globalThis.document, C = (t, ...e) => Object.assign(t, ...e), ne = (t) => {\n if (!t) return;\n if (N(t))\n return d().createElement(t);\n const { tagName: e } = t, n = ne(e);\n if (!n) return;\n const o = { ...t };\n return delete o.tagName, C(n, o);\n}, oe = (t, e) => {\n if (!t || !e) return;\n if (N(e))\n return d().createElementNS(t, e);\n const { tagName: n } = e, o = oe(t, n);\n if (!o) return;\n const s = { ...e };\n return delete s.tagName, C(o, s);\n}, G = (t, e) => t.dispatchEvent(e), to = (t, e, n) => n.indexOf(t) === e, f = (t, e, n) => {\n const o = getComputedStyle(t, n), s = e.replace(\"webkit\", \"Webkit\").replace(/([A-Z])/g, \"-$1\").toLowerCase();\n return o.getPropertyValue(s);\n}, se = (t) => {\n const e = f(t, U), n = f(t, Zt), o = n.includes(\"ms\") ? 1 : 1e3, s = e && e !== \"none\" ? parseFloat(n) * o : 0;\n return Number.isNaN(s) ? 0 : s;\n}, re = (t) => {\n const e = f(t, U), n = f(t, Gt), o = n.includes(\"ms\") ? 1 : 1e3, s = e && e !== \"none\" ? parseFloat(n) * o : 0;\n return Number.isNaN(s) ? 0 : s;\n}, eo = (t, e) => {\n let n = 0;\n const o = new Event(T), s = re(t), r = se(t);\n if (s) {\n const a = (l) => {\n l.target === t && (e.apply(t, [l]), t.removeEventListener(T, a), n = 1);\n };\n t.addEventListener(T, a), setTimeout(() => {\n n || G(t, o);\n }, s + r + 17);\n } else\n e.apply(t, [o]);\n}, ce = (t) => {\n const e = f(t, W), n = f(t, $t), o = n.includes(\"ms\") ? 1 : 1e3, s = e && e !== \"none\" ? parseFloat(n) * o : 0;\n return Number.isNaN(s) ? 0 : s;\n}, ae = (t) => {\n const e = f(t, W), n = f(t, _t), o = n.includes(\"ms\") ? 1 : 1e3, s = e && e !== \"none\" ? parseFloat(n) * o : 0;\n return Number.isNaN(s) ? 0 : s;\n}, no = (t, e) => {\n let n = 0;\n const o = new Event(M), s = ae(t), r = ce(t);\n if (s) {\n const a = (l) => {\n l.target === t && (e.apply(t, [l]), t.removeEventListener(M, a), n = 1);\n };\n t.addEventListener(M, a), setTimeout(() => {\n n || G(t, o);\n }, s + r + 17);\n } else\n e.apply(t, [o]);\n}, oo = (t) => Float32Array.from(Array.from(t)), so = (t) => Float64Array.from(Array.from(t)), ro = (t, e) => t.focus(e), co = (t) => t?.trim().replace(/([a-z])([A-Z])/g, \"$1-$2\").replace(/\\s+/g, \"-\").toLowerCase(), P = (t) => [\"true\", !0].includes(t) ? !0 : [\"false\", !1].includes(t) ? !1 : [\"null\", \"\", null, void 0].includes(t) ? null : t !== \"\" && !Number.isNaN(+t) ? +t : t, S = (t) => Object.entries(t), ao = (t, e, n, o) => {\n if (!i(t)) return e;\n const s = { ...n }, r = { ...t.dataset }, a = { ...e }, l = {}, p = \"title\";\n return S(r).forEach(([c, g]) => {\n const A = o && typeof c == \"string\" && c.includes(o) ? I(c.replace(o, \"\")) : I(c);\n l[A] = P(g);\n }), S(s).forEach(([c, g]) => {\n s[c] = P(g);\n }), S(e).forEach(([c, g]) => {\n c in s ? a[c] = s[c] : c in l ? a[c] = l[c] : a[c] = c === p ? j(t, p) : g;\n }), a;\n}, io = (t, e) => v(t) && (Object.hasOwn(t, e) || e in t), uo = (t) => Object.keys(t), lo = (t) => Object.values(t), fo = (t) => Object.fromEntries(t), po = (t, e) => {\n const n = new CustomEvent(t, {\n cancelable: !0,\n bubbles: !0\n });\n return v(e) && C(n, e), n;\n}, go = { passive: !0 }, mo = (t) => t.offsetHeight, vo = (t, e) => {\n S(e).forEach(([n, o]) => {\n if (o && N(n) && n.includes(\"--\"))\n t.style.setProperty(n, o);\n else {\n const s = {};\n s[n] = o, C(t.style, s);\n }\n });\n}, O = (t) => v(t) && t.constructor.name === \"Map\" || !1, ie = (t) => typeof t == \"number\" || !1, m = /* @__PURE__ */ new Map(), bo = {\n set: (t, e, n, o) => {\n i(t) && (o && o.length ? (m.has(t) || m.set(t, /* @__PURE__ */ new Map()), m.get(t).set(o, setTimeout(e, n))) : m.set(t, setTimeout(e, n)));\n },\n get: (t, e) => {\n if (!i(t)) return null;\n const n = m.get(t);\n return e && n && O(n) ? n.get(e) || null : ie(n) ? n : null;\n },\n clear: (t, e) => {\n if (!i(t)) return;\n const n = m.get(t);\n e && e.length && O(n) ? (clearTimeout(n.get(e)), n.delete(e), n.size === 0 && m.delete(t)) : (clearTimeout(n), m.delete(t));\n }\n}, Eo = (t) => t.toLowerCase(), ho = (t) => t.toUpperCase(), ue = (t, e) => (u(e) ? e : d()).querySelectorAll(t), x = /* @__PURE__ */ new Map();\nfunction le(t) {\n const { shiftKey: e, code: n } = t, o = d(this), s = [\n ...ue(qt, this)\n ].filter(\n (l) => !ee(l, \"disabled\") && !j(l, $)\n );\n if (!s.length) return;\n const r = s[0], a = s[s.length - 1];\n n === \"Tab\" && (e && o.activeElement === r ? (a.focus(), t.preventDefault()) : !e && o.activeElement === a && (r.focus(), t.preventDefault()));\n}\nconst de = (t) => x.has(t) === !0, yo = (t) => {\n const e = de(t);\n (e ? Q : R)(t, \"keydown\", le), e ? x.delete(t) : x.set(t, !0);\n}, b = (t) => i(t) && \"offsetWidth\" in t || !1, y = (t, e) => {\n const { width: n, height: o, top: s, right: r, bottom: a, left: l } = t.getBoundingClientRect();\n let p = 1, c = 1;\n if (e && b(t)) {\n const { offsetWidth: g, offsetHeight: A } = t;\n p = g > 0 ? Math.round(n) / g : 1, c = A > 0 ? Math.round(o) / A : 1;\n }\n return {\n width: n / p,\n height: o / c,\n top: s / c,\n right: r / p,\n bottom: a / c,\n left: l / p,\n x: l / p,\n y: s / c\n };\n}, wo = (t) => d(t).body, w = (t) => d(t).documentElement, Ao = (t) => d(t).head, fe = (t) => u(t) ? (t.nodeName || \"\").toLowerCase() : \"#document\", So = (t) => {\n const e = K(t), n = e ? t.scrollX : t.scrollLeft, o = e ? t.scrollY : t.scrollTop;\n return { x: n, y: o };\n}, pe = (t) => u(t) && t.constructor.name === \"ShadowRoot\" || !1, k = (t) => t.nodeName === \"HTML\" ? t : i(t) && t.assignedSlot || u(t) && t.parentNode || pe(t) && t.host || w(t), ge = (t) => t ? q(t) ? t.defaultView : u(t) ? t?.ownerDocument?.defaultView : t : window, me = (t) => u(t) && [\"TABLE\", \"TD\", \"TH\"].includes(t.nodeName) || !1, ve = (t, e) => t.matches(e), D = (t) => f(t, \"position\") === \"static\", be = (t) => f(t, \"position\") === \"fixed\", Z = (t) => [\":popover-open\", \":modal\"].some((e) => {\n try {\n return ve(t, e);\n } catch {\n return !1;\n }\n}), _ = (t) => {\n const e = Xt(), n = i(t) ? getComputedStyle(t) : t;\n return n.transform !== \"none\" || n.perspective !== \"none\" || (n.containerType ? n.containerType !== \"normal\" : !1) || !e && (n.backdropFilter ? n.backdropFilter !== \"none\" : !1) || !e && (n.filter ? n.filter !== \"none\" : !1) || [\"transform\", \"perspective\", \"filter\"].some(\n (o) => (n.willChange || \"\").includes(o)\n ) || [\"paint\", \"layout\", \"strict\", \"content\"].some(\n (o) => (n.contain || \"\").includes(o)\n );\n}, Ee = (t) => {\n let e = k(t);\n for (; i(e) && !z(e); ) {\n if (_(e))\n return e;\n if (Z(e))\n return null;\n e = k(e);\n }\n return null;\n}, z = (t) => [\"html\", \"body\", \"#document\"].includes(fe(t)), F = (t) => {\n if (!b(t) || be(t))\n return null;\n let e = t.offsetParent;\n return w(t) === e && (e = e.ownerDocument.body), e;\n}, ko = (t) => {\n const e = ge(t);\n if (!u(t) || Z(t))\n return e;\n if (!b(t)) {\n let o = k(t);\n for (; o && !z(o); ) {\n if (i(o) && !D(o))\n return o;\n o = k(o);\n }\n return e;\n }\n let n = F(t);\n for (; n && me(n) && D(n); )\n n = F(n);\n return n && z(n) && D(n) && !_(n) ? e : n || Ee(t) || e;\n}, he = (t) => {\n if (!b(t)) return !1;\n const { width: e, height: n } = y(t), { offsetWidth: o, offsetHeight: s } = t;\n return Math.round(e) !== o || Math.round(n) !== s;\n}, No = (t, e, n) => {\n const o = b(e), s = y(\n t,\n o && he(e)\n ), r = { x: 0, y: 0 };\n if (o) {\n const a = y(e, !0);\n r.x = a.x + e.clientLeft, r.y = a.y + e.clientTop;\n }\n return {\n x: s.left + n.x - r.x,\n y: s.top + n.y - r.y,\n width: s.width,\n height: s.height\n };\n};\nlet B = 0, V = 0;\nconst h = /* @__PURE__ */ new Map(), ye = (t, e) => {\n let n = e ? B : V;\n if (e) {\n const o = ye(t), s = h.get(o) || /* @__PURE__ */ new Map();\n h.has(o) || h.set(o, s), O(s) && !s.has(e) ? (s.set(e, n), B += 1) : n = s.get(e);\n } else {\n const o = t.id || t;\n h.has(o) ? n = h.get(o) : (h.set(o, n), V += 1);\n }\n return n;\n}, we = (t) => Array.isArray(t) || !1, Co = (t) => u(t) && t.nodeName === \"CANVAS\" || !1, Ae = (t) => b(t) && !!t.shadowRoot || !1, To = (t) => {\n if (!u(t)) return !1;\n const { top: e, bottom: n } = y(t), { clientHeight: o } = w(t);\n return e <= o && n >= 0;\n}, Mo = (t) => {\n if (!i(t)) return !1;\n const { clientWidth: e, clientHeight: n } = w(t), { top: o, left: s, bottom: r, right: a } = y(t, !0);\n return o >= 0 && s >= 0 && r <= n && a <= e;\n}, Do = (t) => we(t) && t.every(i) || !1, Lo = (t) => typeof t == \"function\" || !1, Oo = (t) => v(t) && t.constructor.name === \"HTMLCollection\" || !1, xo = (t) => b(t) && t.tagName === \"IMG\" || !1, zo = (t) => {\n if (!N(t)) return !1;\n try {\n JSON.parse(t);\n } catch {\n return !1;\n }\n return !0;\n}, Io = (t) => v(t) && t.constructor.name === \"WeakMap\" || !1, Po = (t) => u(t) && [\"SVG\", \"Image\", \"Video\", \"Canvas\"].some(\n (e) => t.constructor.name.includes(e)\n) || !1, Fo = (t) => v(t) && t.constructor.name === \"NodeList\" || !1, Bo = (t) => w(t).dir === \"rtl\", Vo = (t) => u(t) && t.constructor.name.includes(\"SVG\") || !1, Se = (t, e) => !t || !e ? null : t.closest(e) || Se(t.getRootNode().host, e) || null, Ho = (t, e) => i(t) ? t : (i(e) ? e : d()).querySelector(t), ke = (t, e) => (u(e) ? e : d()).getElementsByTagName(\n t\n), Uo = (t) => [...ke(\"*\", t)].filter(Ae), Wo = (t, e) => d(e).getElementById(t), Ro = (t, e) => (e && u(e) ? e : d()).getElementsByClassName(\n t\n);\nexport {\n Jn as ArrayFrom,\n H as DOMContentLoadedEvent,\n nt as DOMMouseScrollEvent,\n L as Data,\n oo as Float32ArrayFrom,\n so as Float64ArrayFrom,\n C as ObjectAssign,\n S as ObjectEntries,\n fo as ObjectFromEntries,\n io as ObjectHasOwn,\n uo as ObjectKeys,\n lo as ObjectValues,\n bo as Timer,\n J as abortEvent,\n Kn as addClass,\n yn as addEventListener,\n Zt as animationDelay,\n Gt as animationDuration,\n T as animationEndEvent,\n U as animationName,\n Ce as ariaChecked,\n Me as ariaDescribedBy,\n Te as ariaDescription,\n De as ariaExpanded,\n Le as ariaHasPopup,\n $ as ariaHidden,\n Oe as ariaLabel,\n xe as ariaLabelledBy,\n ze as ariaModal,\n Ie as ariaPressed,\n Pe as ariaSelected,\n Be as ariaValueMax,\n Fe as ariaValueMin,\n Ve as ariaValueNow,\n He as ariaValueText,\n X as beforeunloadEvent,\n An as bezierEasings,\n Y as blurEvent,\n I as camelCase,\n Yn as capitalize,\n tt as changeEvent,\n Se as closest,\n et as contextmenuEvent,\n po as createCustomEvent,\n ne as createElement,\n oe as createElementNS,\n G as dispatchEvent,\n to as distinct,\n Zn as documentBody,\n _n as documentElement,\n $n as documentHead,\n We as dragEvent,\n qe as dragendEvent,\n Qe as dragenterEvent,\n je as dragleaveEvent,\n Ke as dragoverEvent,\n Re as dragstartEvent,\n eo as emulateAnimationEnd,\n no as emulateTransitionEnd,\n ot as errorEvent,\n ro as focus,\n st as focusEvent,\n Xe as focusEvents,\n qt as focusableSelector,\n rt as focusinEvent,\n ct as focusoutEvent,\n at as gesturechangeEvent,\n it as gestureendEvent,\n ut as gesturestartEvent,\n j as getAttribute,\n Hn as getAttributeNS,\n y as getBoundingClientRect,\n Uo as getCustomElements,\n d as getDocument,\n wo as getDocumentBody,\n w as getDocumentElement,\n Ao as getDocumentHead,\n se as getElementAnimationDelay,\n re as getElementAnimationDuration,\n Wo as getElementById,\n f as getElementStyle,\n ce as getElementTransitionDelay,\n ae as getElementTransitionDuration,\n Ro as getElementsByClassName,\n ke as getElementsByTagName,\n Xn as getInstance,\n fe as getNodeName,\n So as getNodeScroll,\n ko as getOffsetParent,\n k as getParentNode,\n No as getRectRelativeToOffsetParent,\n ye as getUID,\n ge as getWindow,\n ee as hasAttribute,\n Un as hasAttributeNS,\n Gn as hasClass,\n de as hasFocusTrap,\n On as isApple,\n we as isArray,\n Co as isCanvas,\n Ae as isCustomElement,\n q as isDocument,\n i as isElement,\n To as isElementInScrollRange,\n Mo as isElementInViewport,\n Do as isElementsArray,\n xn as isFirefox,\n Lo as isFunction,\n Oo as isHTMLCollection,\n b as isHTMLElement,\n xo as isHTMLImageElement,\n zo as isJSON,\n O as isMap,\n Po as isMedia,\n Ln as isMobile,\n u as isNode,\n Fo as isNodeList,\n ie as isNumber,\n v as isObject,\n Bo as isRTL,\n Vo as isSVGElement,\n he as isScaledElement,\n pe as isShadowRoot,\n N as isString,\n me as isTableElement,\n Io as isWeakMap,\n Xt as isWebKit,\n K as isWindow,\n co as kebabCase,\n tn as keyAlt,\n en as keyArrowDown,\n on as keyArrowLeft,\n sn as keyArrowRight,\n nn as keyArrowUp,\n rn as keyBackspace,\n cn as keyCapsLock,\n an as keyControl,\n un as keyDelete,\n ln as keyEnter,\n fn as keyEscape,\n pn as keyInsert,\n gn as keyMeta,\n dn as keyNumpadEnter,\n mn as keyPause,\n vn as keyScrollLock,\n bn as keyShift,\n En as keySpace,\n hn as keyTab,\n Ye as keyboardEventKeys,\n lt as keydownEvent,\n dt as keypressEvent,\n ft as keyupEvent,\n pt as loadEvent,\n Ge as loadstartEvent,\n ve as matches,\n _e as mouseClickEvents,\n $e as mouseHoverEvents,\n Ze as mouseSwipeEvents,\n gt as mouseclickEvent,\n mt as mousedblclickEvent,\n vt as mousedownEvent,\n ht as mouseenterEvent,\n Et as mousehoverEvent,\n wt as mouseinEvent,\n yt as mouseleaveEvent,\n kt as mousemoveEvent,\n At as mouseoutEvent,\n St as mouseoverEvent,\n bt as mouseupEvent,\n Nt as mousewheelEvent,\n Ct as moveEvent,\n Ue as nativeEvents,\n Yt as noop,\n ao as normalizeOptions,\n P as normalizeValue,\n Q as off,\n Sn as offsetHeight,\n kn as offsetWidth,\n R as on,\n te as one,\n Tt as orientationchangeEvent,\n go as passiveHandler,\n Mt as pointercancelEvent,\n Dt as pointerdownEvent,\n Lt as pointerleaveEvent,\n Ot as pointermoveEvent,\n xt as pointerupEvent,\n Ho as querySelector,\n ue as querySelectorAll,\n zt as readystatechangeEvent,\n mo as reflow,\n Qn as removeAttribute,\n jn as removeAttributeNS,\n qn as removeClass,\n wn as removeEventListener,\n It as resetEvent,\n Pt as resizeEvent,\n Ht as scrollEvent,\n Nn as scrollHeight,\n Cn as scrollWidth,\n Ft as selectEvent,\n Bt as selectendEvent,\n Vt as selectstartEvent,\n Wn as setAttribute,\n Rn as setAttributeNS,\n vo as setElementStyle,\n Ut as submitEvent,\n zn as support3DTransform,\n Bn as supportAnimation,\n In as supportPassive,\n Fn as supportTouch,\n Pn as supportTransform,\n Vn as supportTransition,\n Tn as tabindex,\n Eo as toLowerCase,\n ho as toUpperCase,\n yo as toggleFocusTrap,\n Je as touchEvents,\n Qt as touchcancelEvent,\n jt as touchendEvent,\n Rt as touchmoveEvent,\n Wt as touchstartEvent,\n $t as transitionDelay,\n _t as transitionDuration,\n M as transitionEndEvent,\n W as transitionProperty,\n Kt as unloadEvent,\n Dn as userAgent,\n Mn as userAgentData,\n Ne as version\n};\n//# sourceMappingURL=shorty.mjs.map\n","const g = \"2.0.8\", e = {}, f = (t) => {\n const { type: n, currentTarget: c } = t;\n e[n].forEach((a, s) => {\n c === s && a.forEach((o, i) => {\n i.apply(s, [t]), typeof o == \"object\" && o.once && r(s, n, i, o);\n });\n });\n}, E = (t, n, c, a) => {\n e[n] || (e[n] = /* @__PURE__ */ new Map());\n const s = e[n];\n s.has(t) || s.set(t, /* @__PURE__ */ new Map());\n const o = s.get(\n t\n ), { size: i } = o;\n o.set(c, a), i || t.addEventListener(\n n,\n f,\n a\n );\n}, r = (t, n, c, a) => {\n const s = e[n], o = s && s.get(t), i = o && o.get(c), d = i !== void 0 ? i : a;\n o && o.has(c) && o.delete(c), s && (!o || !o.size) && s.delete(t), (!s || !s.size) && delete e[n], (!o || !o.size) && t.removeEventListener(\n n,\n f,\n d\n );\n}, M = E, p = r;\nexport {\n E as addListener,\n f as globalListener,\n p as off,\n M as on,\n e as registry,\n r as removeListener,\n g as version\n};\n//# sourceMappingURL=event-listener.mjs.map\n","/**\n * Global namespace for most components `fade` class.\n */\nconst fadeClass = \"fade\";\nexport default fadeClass;\n","/**\n * Global namespace for most components `show` class.\n */\nconst showClass = \"show\";\nexport default showClass;\n","/**\n * Global namespace for most components `dismiss` option.\n */\nconst dataBsDismiss = \"data-bs-dismiss\";\nexport default dataBsDismiss;\n","/** @type {string} */\nconst alertString = \"alert\";\nexport default alertString;\n","/** @type {string} */\nconst alertComponent = \"Alert\";\nexport default alertComponent;\n","import { getAttribute, hasClass } from \"@thednp/shorty\";\n\n/**\n * Check if interactive element is disabled.\n * @param target either a `
',\n});\n\n/**\n * Static method which returns an existing `Popover` instance associated\n * to a target `Element`.\n */\nconst getPopoverInstance = (element: Element) =>\n getInstance(element, popoverComponent);\n\n/**\n * A `Popover` initialization callback.\n */\nconst popoverInitCallback = (element: Element) => new Popover(element);\n\n// POPOVER DEFINITION\n// ==================\n/** Returns a new `Popover` instance. */\nexport default class Popover extends Tooltip {\n static selector = popoverSelector;\n static init = popoverInitCallback;\n static getInstance = getPopoverInstance;\n static styleTip = styleTip;\n declare options: PopoverOptions;\n\n /**\n * @param target the target element\n * @param config the instance options\n */\n constructor(target: Element | string, config?: Partial) {\n super(target, config);\n }\n /**\n * Returns component name string.\n */\n get name() {\n return popoverComponent;\n }\n /**\n * Returns component default options.\n */\n get defaults() {\n return popoverDefaults;\n }\n\n /* extend original `show()` */\n show = () => {\n super.show();\n // btn only exists within dismissible popover\n const { options, btn } = this;\n // istanbul ignore else @preserve\n if (options.dismissible && btn) setTimeout(() => focus(btn), 17);\n };\n}\n","/** @type {string} */\nconst scrollspyString = \"scrollspy\";\nexport default scrollspyString;\n","/** @type {string} */\nconst scrollspyComponent = \"ScrollSpy\";\nexport default scrollspyComponent;\n","/* Native JavaScript for Bootstrap 5 | ScrollSpy\n------------------------------------------------ */\nimport {\n addClass,\n closest,\n createCustomEvent,\n dispatchEvent,\n getAttribute,\n getBoundingClientRect,\n getDocument,\n getDocumentElement,\n getElementById,\n getElementsByTagName,\n getInstance,\n hasClass,\n mouseclickEvent,\n MouseEvent,\n querySelector,\n removeClass,\n} from \"@thednp/shorty\";\n\nimport PositionObserver from \"@thednp/position-observer\";\nimport { addListener, removeListener } from \"@thednp/event-listener\";\n\nimport activeClass from \"~/strings/activeClass\";\nimport scrollspyString from \"~/strings/scrollspyString\";\nimport scrollspyComponent from \"~/strings/scrollspyComponent\";\nimport isDisabled from \"~/util/isDisabled\";\nimport BaseComponent from \"./base-component\";\nimport { ScrollSpyEvent, ScrollSpyOptions } from \"~/interface/scrollspy\";\n\n// SCROLLSPY PRIVATE GC\n// ====================\nconst scrollspySelector = '[data-bs-spy=\"scroll\"]';\nconst scrollSpyAnchorSelector = \"[href]\";\n\nconst scrollspyDefaults: Partial = {\n offset: 10,\n target: undefined,\n};\n\ntype ScrollSpyEventProps = {\n relatedTarget: HTMLElement;\n};\n\n/**\n * Static method which returns an existing `ScrollSpy` instance associated\n * to a target `Element`.\n */\nconst getScrollSpyInstance = (element: Element) =>\n getInstance(element, scrollspyComponent);\n\n/**\n * A `ScrollSpy` initialization callback.\n */\nconst scrollspyInitCallback = (element: Element) => new ScrollSpy(element);\n\n// SCROLLSPY CUSTOM EVENT\n// ======================\nconst activateScrollSpy = createCustomEvent<\n ScrollSpyEventProps,\n ScrollSpyEvent\n>(`activate.bs.${scrollspyString}`);\n\n// SCROLLSPY PRIVATE METHODS\n// =========================\n/**\n * Update the state of all items.\n *\n * @param self the `ScrollSpy` instance\n */\nconst updateSpyTargets = (self: ScrollSpy) => {\n const {\n target,\n _itemsLength,\n _observables,\n } = self;\n\n const links = getElementsByTagName(\"A\", target);\n const doc = getDocument(target);\n\n // only update items once or with each mutation\n // istanbul ignore else @preserve\n if (!links.length || _itemsLength === _observables.size) return;\n // reset arrays & update\n _observables.clear();\n\n Array.from(links).forEach((link) => {\n const hash = getAttribute(link, \"href\")?.slice(1);\n const targetItem = hash?.length ? doc.getElementById(hash) : null;\n\n if (targetItem && !isDisabled(link)) {\n self._observables.set(targetItem, link);\n }\n });\n self._itemsLength = self._observables.size;\n};\n\n/**\n * Clear all items of the target.\n *\n * @param target a single item\n */\nconst clear = (target: Element) => {\n Array.from(getElementsByTagName(\"A\", target)).forEach(\n (item) => {\n if (hasClass(item, activeClass)) removeClass(item, activeClass);\n },\n );\n};\n\n/**\n * Activates a new item.\n *\n * @param self the `ScrollSpy` instance\n * @param item a single item\n */\nconst activate = (self: ScrollSpy, item: HTMLElement) => {\n const { target, element } = self;\n\n // istanbul ignore else @preserve\n clear(target);\n\n self._activeItem = item;\n addClass(item, activeClass);\n\n // activate all parents\n let parentItem = item;\n while (parentItem !== target) {\n parentItem = parentItem.parentElement as HTMLElement;\n if (\n [\"nav\", \"dropdown-menu\", \"list-group\"].some((c) =>\n hasClass(parentItem, c)\n )\n ) {\n const parentLink = parentItem.previousElementSibling as\n | HTMLElement\n | null;\n\n // istanbul ignore else @preserve\n if (parentLink && !hasClass(parentLink, activeClass)) {\n addClass(parentLink, activeClass);\n }\n }\n }\n\n // dispatch\n activateScrollSpy.relatedTarget = item;\n dispatchEvent(element, activateScrollSpy);\n};\n\nconst getOffset = (self: ScrollSpy, target: HTMLElement) => {\n const { scrollTarget, element, options } = self;\n\n return (scrollTarget !== element\n ? getBoundingClientRect(target).top + scrollTarget.scrollTop\n : target.offsetTop) - (options.offset as number || 10);\n};\n\n// SCROLLSPY DEFINITION\n// ====================\n/** Returns a new `ScrollSpy` instance. */\nexport default class ScrollSpy extends BaseComponent {\n static selector = scrollspySelector;\n static init = scrollspyInitCallback;\n static getInstance = getScrollSpyInstance;\n declare element: HTMLElement;\n declare options: ScrollSpyOptions;\n declare target: HTMLElement;\n declare scrollTarget: HTMLElement;\n declare _itemsLength: number;\n declare _activeItem: HTMLElement | null;\n declare _observables: Map;\n declare _observer: PositionObserver; //| IntersectionObserver;\n\n /**\n * @param target the target element\n * @param config the instance options\n */\n constructor(\n target: Element | string,\n config?: Partial,\n ) {\n super(target, config);\n\n // initialization element & options\n const { element, options } = this;\n\n // get target\n const spyTarget = querySelector(\n options.target,\n getDocument(element),\n );\n\n // invalidate\n if (!spyTarget) return;\n this.target = spyTarget;\n\n // set initial state\n this.scrollTarget = element.clientHeight < element.scrollHeight\n ? element\n : getDocumentElement(element);\n this._observables = new Map();\n\n // run an initial burst, we need to know the targets\n this.refresh();\n // updateSpyTargets(this);\n\n // create observer\n this._observer = new PositionObserver(() => {\n requestAnimationFrame(() => this.refresh());\n }, {\n root: this.scrollTarget,\n });\n\n // add event handlers\n this._toggleEventListeners(true);\n }\n\n /* eslint-disable */\n /**\n * Returns component name string.\n */\n get name() {\n return scrollspyComponent;\n }\n /**\n * Returns component default options.\n */\n get defaults() {\n return scrollspyDefaults;\n }\n /* eslint-enable */\n\n // SCROLLSPY PUBLIC METHODS\n // ========================\n /** Updates all items. */\n refresh = () => {\n const { target, scrollTarget } = this;\n // check if target is visible and invalidate\n // istanbul ignore if @preserve\n if (!target || target.offsetHeight === 0) return;\n\n updateSpyTargets(this);\n const { _itemsLength, _observables, _activeItem } = this;\n\n // istanbul ignore if @preserve\n if (!_itemsLength) return;\n const entries = _observables.entries().toArray();\n\n const { scrollTop, scrollHeight, clientHeight } = scrollTarget;\n\n if (scrollTop >= scrollHeight - clientHeight) {\n const newActiveItem = entries[_itemsLength - 1]?.[1];\n\n // istanbul ignore else @preserve\n if (_activeItem !== newActiveItem) activate(this, newActiveItem);\n return;\n }\n\n const firstOffset = entries[0]?.[0]\n ? getOffset(this, entries[0][0])\n : /* istanbul ignore next */ null;\n if (\n firstOffset !== null && scrollTop < firstOffset &&\n firstOffset > 0\n ) {\n this._activeItem = null;\n clear(target);\n return;\n }\n\n for (let i = 0; i < _itemsLength; i += 1) {\n const [targetItem, item] = entries[i];\n const offsetTop = getOffset(this, targetItem);\n const nextTarget = entries[i + 1]?.[0];\n const nextOffsetTop = nextTarget\n ? getOffset(this, nextTarget)\n : /* istanbul ignore next */ null;\n\n // istanbul ignore else @preserve\n if (\n _activeItem !== item &&\n scrollTop >= offsetTop &&\n (nextOffsetTop === null || scrollTop < nextOffsetTop)\n ) {\n activate(this, item);\n break;\n }\n }\n };\n\n /**\n * This method provides an event handle\n * for scrollspy\n * @param e the event listener object\n */\n _scrollTo = (e: MouseEvent) => {\n const item = closest(e.target, scrollSpyAnchorSelector);\n const hash = item && getAttribute(item, \"href\")?.slice(1);\n const targetItem = hash && getElementById(hash, this.target);\n\n // istanbul ignore else @preserve\n if (targetItem) {\n this.scrollTarget.scrollTo({\n top: targetItem.offsetTop,\n behavior: \"smooth\",\n });\n e.preventDefault();\n }\n };\n\n /**\n * Toggles on/off the component observer.\n *\n * @param self the ScrollSpy instance\n * @param add when `true`, listener is added\n */\n _toggleEventListeners = (\n add?: boolean,\n ) => {\n const { target, _observables, _observer, _scrollTo } = this;\n const action = add ? addListener : removeListener;\n action(target, mouseclickEvent, _scrollTo);\n\n if (add) {\n _observables?.forEach((_, targetItem) => _observer.observe(targetItem));\n } else _observer.disconnect();\n };\n\n /** Removes `ScrollSpy` from the target element. */\n dispose() {\n this._toggleEventListeners();\n super.dispose();\n }\n}\n","/** @type {string} */\nconst tabString = \"tab\";\nexport default tabString;\n","/** @type {string} */\nconst tabComponent = \"Tab\";\nexport default tabComponent;\n","/* Native JavaScript for Bootstrap 5 | Tab\n------------------------------------------ */\nimport {\n addClass,\n ariaSelected,\n closest,\n createCustomEvent,\n dispatchEvent,\n emulateTransitionEnd,\n getElementsByClassName,\n getInstance,\n hasClass,\n isHTMLElement,\n mouseclickEvent,\n MouseEvent,\n querySelector,\n reflow,\n removeClass,\n setAttribute,\n Timer,\n} from \"@thednp/shorty\";\n\nimport { addListener, removeListener } from \"@thednp/event-listener\";\n\nimport collapsingClass from \"~/strings/collapsingClass\";\nimport activeClass from \"~/strings/activeClass\";\nimport fadeClass from \"~/strings/fadeClass\";\nimport showClass from \"~/strings/showClass\";\nimport dropdownClasses from \"~/strings/dropdownClasses\";\nimport dataBsToggle from \"~/strings/dataBsToggle\";\nimport tabString from \"~/strings/tabString\";\nimport tabComponent from \"~/strings/tabComponent\";\nimport getTargetElement from \"~/util/getTargetElement\";\nimport BaseComponent from \"./base-component\";\nimport type { /* TabOptions, */ TabEvent } from \"~/interface/tab\";\n\n// TAB PRIVATE GC\n// ================\nconst tabSelector = `[${dataBsToggle}=\"${tabString}\"]`;\n\n/**\n * Static method which returns an existing `Tab` instance associated\n * to a target `Element`.\n */\nconst getTabInstance = (element: Element) =>\n getInstance(element, tabComponent);\n\n/** A `Tab` initialization callback. */\nconst tabInitCallback = (element: Element) => new Tab(element);\n\ntype TabEventProps = {\n relatedTarget: Element & EventTarget | undefined;\n};\n\n// TAB CUSTOM EVENTS\n// =================\nconst showTabEvent = createCustomEvent(\n `show.bs.${tabString}`,\n);\nconst shownTabEvent = createCustomEvent(\n `shown.bs.${tabString}`,\n);\nconst hideTabEvent = createCustomEvent(\n `hide.bs.${tabString}`,\n);\nconst hiddenTabEvent = createCustomEvent(\n `hidden.bs.${tabString}`,\n);\n\ninterface TabPrivate {\n tab: HTMLElement | null;\n content: HTMLElement | null;\n currentHeight: number;\n nextHeight: number;\n}\n\n/**\n * Stores the current active tab and its content\n * for a given `.nav` element.\n */\nconst tabPrivate: Map = new Map();\n\n// TAB PRIVATE METHODS\n// ===================\n/**\n * Executes after tab transition has finished.\n *\n * @param self the `Tab` instance\n */\nconst triggerTabEnd = (self: Tab) => {\n const { tabContent, nav } = self;\n\n // istanbul ignore else @preserve\n if (tabContent && hasClass(tabContent, collapsingClass)) {\n tabContent.style.height = \"\";\n removeClass(tabContent, collapsingClass);\n }\n\n // istanbul ignore else @preserve\n if (nav) Timer.clear(nav);\n};\n\n/**\n * Executes before showing the tab content.\n *\n * @param self the `Tab` instance\n */\nconst triggerTabShow = (self: Tab) => {\n const { element, tabContent, content: nextContent, nav } = self;\n const { tab } = (isHTMLElement(nav) && tabPrivate.get(nav)) ||\n // istanbul ignore next @preserve\n { tab: null };\n\n // istanbul ignore else @preserve\n if (tabContent && nextContent && hasClass(nextContent, fadeClass)) {\n const { currentHeight, nextHeight } = tabPrivate.get(element) ||\n // istanbul ignore next @preserve\n { currentHeight: 0, nextHeight: 0 };\n // istanbul ignore else @preserve: vitest won't validate this branch\n if (currentHeight !== nextHeight) {\n // enables height animation\n setTimeout(() => {\n tabContent.style.height = `${nextHeight}px`;\n reflow(tabContent);\n emulateTransitionEnd(tabContent, () => triggerTabEnd(self));\n }, 50);\n } else {\n triggerTabEnd(self);\n }\n } else if (nav) Timer.clear(nav);\n\n shownTabEvent.relatedTarget = tab as HTMLElement | undefined;\n\n dispatchEvent(element, shownTabEvent);\n};\n\n/**\n * Executes before hiding the tab.\n *\n * @param self the `Tab` instance\n */\nconst triggerTabHide = (self: Tab) => {\n const { element, content: nextContent, tabContent, nav } = self;\n const { tab, content } = (nav && tabPrivate.get(nav)) ||\n // istanbul ignore next @preserve\n { tab: null, content: null };\n let currentHeight = 0;\n\n // istanbul ignore else @preserve\n if (tabContent && nextContent && hasClass(nextContent, fadeClass)) {\n [content, nextContent].forEach((c) => {\n // istanbul ignore else @preserve\n if (c) addClass(c, \"overflow-hidden\");\n });\n currentHeight = content\n ? content.scrollHeight\n : /* istanbul ignore next @preserve */ 0;\n }\n\n // update relatedTarget and dispatch event\n showTabEvent.relatedTarget = tab as HTMLElement | undefined;\n hiddenTabEvent.relatedTarget = element as HTMLElement;\n dispatchEvent(element, showTabEvent);\n\n // istanbul ignore if @preserve\n if (showTabEvent.defaultPrevented) return;\n // istanbul ignore else @preserve\n if (nextContent) addClass(nextContent, activeClass);\n // istanbul ignore else @preserve\n if (content) removeClass(content, activeClass);\n\n // istanbul ignore else @preserve\n if (tabContent && nextContent && hasClass(nextContent, fadeClass)) {\n const nextHeight = nextContent.scrollHeight;\n tabPrivate.set(element, {\n currentHeight,\n nextHeight,\n tab: null,\n content: null,\n });\n\n addClass(tabContent, collapsingClass);\n tabContent.style.height = `${currentHeight}px`;\n reflow(tabContent);\n [content, nextContent].forEach((c) => {\n // istanbul ignore else @preserve\n if (c) removeClass(c, \"overflow-hidden\");\n });\n }\n\n if (nextContent && nextContent && hasClass(nextContent, fadeClass)) {\n setTimeout(() => {\n addClass(nextContent, showClass);\n emulateTransitionEnd(nextContent, () => {\n triggerTabShow(self);\n });\n }, 1);\n } else {\n // istanbul ignore else @preserve\n if (nextContent) addClass(nextContent, showClass);\n triggerTabShow(self);\n }\n\n // istanbul ignore else @preserve\n if (tab) dispatchEvent(tab, hiddenTabEvent);\n};\n\n/**\n * Returns the current active tab and its target content.\n *\n * @param self the `Tab` instance\n * @returns the query result\n */\nconst getActiveTab = (\n self: Tab,\n): { tab: HTMLElement | null; content: HTMLElement | null } => {\n const { nav } = self;\n // istanbul ignore next @preserve\n if (!isHTMLElement(nav)) {\n return { tab: null, content: null };\n }\n\n const activeTabs = getElementsByClassName(\n activeClass,\n nav,\n );\n let tab: HTMLElement | null = null;\n // istanbul ignore else @preserve\n if (\n activeTabs.length === 1 &&\n !dropdownClasses.some((c) =>\n hasClass(activeTabs[0].parentElement as HTMLElement, c)\n )\n ) {\n [tab] = activeTabs;\n } else if (activeTabs.length > 1) {\n tab = activeTabs[activeTabs.length - 1];\n }\n const content = isHTMLElement(tab) ? getTargetElement(tab) : null;\n return { tab, content };\n};\n\n/**\n * Returns a parent dropdown.\n *\n * @param element the `Tab` element\n * @returns the parent dropdown\n */\nconst getParentDropdown = (element?: HTMLElement) => {\n // istanbul ignore next @preserve\n if (!isHTMLElement(element)) return null;\n const dropdown = closest(element, `.${dropdownClasses.join(\",.\")}`);\n return dropdown\n ? querySelector(`.${dropdownClasses[0]}-toggle`, dropdown)\n : null;\n};\n\n// TAB EVENT HANDLER\n// =================\n/**\n * Handles the `click` event listener.\n *\n * @param e the `Event` object\n */\nconst tabClickHandler = (e: MouseEvent) => {\n const element = closest(e.target, tabSelector);\n const self = element && getTabInstance(element);\n\n // istanbul ignore if @preserve\n if (!self) return;\n e.preventDefault();\n self.show();\n};\n\n// TAB DEFINITION\n// ==============\n/** Creates a new `Tab` instance. */\nexport default class Tab extends BaseComponent {\n static selector = tabSelector;\n static init = tabInitCallback;\n static getInstance = getTabInstance;\n declare element: HTMLElement;\n declare nav: HTMLElement | null;\n declare content: HTMLElement | null;\n declare tabContent: HTMLElement | null;\n declare nextContent: HTMLElement | null;\n declare dropdown: HTMLElement | null;\n\n /** @param target the target element */\n constructor(target: Element | string) {\n super(target);\n\n // initialization element\n const { element } = this;\n const content = getTargetElement(element);\n\n // no point initializing a tab without a corresponding content\n // istanbul ignore else @preserve\n if (!content) return;\n\n const nav = closest(element, \".nav\");\n const container = closest(\n content as HTMLElement,\n \".tab-content\",\n );\n\n this.nav = nav;\n this.content = content;\n this.tabContent = container;\n\n // event targets\n this.dropdown = getParentDropdown(element);\n\n // show first Tab instance of none is shown\n // suggested on #432\n const { tab } = getActiveTab(this);\n if (nav && !tab) {\n const firstTab = querySelector(tabSelector, nav);\n const firstTabContent = firstTab && getTargetElement(firstTab);\n\n // istanbul ignore else @preserve\n if (firstTabContent) {\n addClass(firstTab, activeClass);\n addClass(firstTabContent, showClass);\n addClass(firstTabContent, activeClass);\n setAttribute(element, ariaSelected, \"true\");\n }\n }\n\n // add event listener\n this._toggleEventListeners(true);\n }\n\n /**\n * Returns component name string.\n */\n get name() {\n return tabComponent;\n }\n\n // TAB PUBLIC METHODS\n // ==================\n /** Shows the tab to the user. */\n show() {\n const { element, content: nextContent, nav, dropdown } = this;\n\n // istanbul ignore else @preserve\n if ((nav && Timer.get(nav)) || hasClass(element, activeClass)) return;\n const { tab, content } = getActiveTab(this);\n\n // istanbul ignore else @preserve\n if (nav && tab) {\n tabPrivate.set(nav, { tab, content, currentHeight: 0, nextHeight: 0 });\n }\n\n // update relatedTarget and dispatch\n hideTabEvent.relatedTarget = element as HTMLElement;\n\n // istanbul ignore if @preserve\n if (!isHTMLElement(tab)) return;\n\n dispatchEvent(tab, hideTabEvent);\n\n // istanbul ignore else @preserve\n if (hideTabEvent.defaultPrevented) return;\n\n addClass(element, activeClass);\n setAttribute(element, ariaSelected, \"true\");\n\n const activeDropdown = isHTMLElement(tab) && getParentDropdown(tab);\n if (activeDropdown && hasClass(activeDropdown, activeClass)) {\n removeClass(activeDropdown, activeClass);\n }\n\n // istanbul ignore else @preserve\n if (nav) {\n const toggleTab = () => {\n // istanbul ignore else @preserve\n if (tab) {\n removeClass(tab, activeClass);\n setAttribute(tab, ariaSelected, \"false\");\n }\n if (dropdown && !hasClass(dropdown, activeClass)) {\n addClass(dropdown, activeClass);\n }\n };\n\n if (\n content &&\n (hasClass(content, fadeClass) ||\n (nextContent && hasClass(nextContent, fadeClass)))\n ) {\n Timer.set(nav, toggleTab, 1);\n } else toggleTab();\n }\n\n // istanbul ignore else @preserve\n if (content) {\n removeClass(content, showClass);\n if (hasClass(content, fadeClass)) {\n emulateTransitionEnd(content, () => triggerTabHide(this));\n } else {\n triggerTabHide(this);\n }\n }\n }\n\n /**\n * Toggles on/off the `click` event listener.\n *\n * @param add when `true`, event listener is added\n */\n _toggleEventListeners = (add?: boolean) => {\n const action = add ? addListener : removeListener;\n action(this.element, mouseclickEvent, tabClickHandler);\n };\n\n /** Removes the `Tab` component from the target element. */\n dispose() {\n this._toggleEventListeners();\n super.dispose();\n }\n}\n","/** @type {string} */\nconst toastString = \"toast\";\nexport default toastString;\n","/** @type {string} */\nconst toastComponent = \"Toast\";\nexport default toastComponent;\n","/* Native JavaScript for Bootstrap 5 | Toast\n-------------------------------------------- */\nimport {\n addClass,\n createCustomEvent,\n dispatchEvent,\n emulateTransitionEnd,\n focusinEvent,\n focusoutEvent,\n getDocument,\n getInstance,\n hasClass,\n mouseclickEvent,\n mouseenterEvent,\n MouseEvent,\n mouseleaveEvent,\n querySelector,\n querySelectorAll,\n reflow,\n removeClass,\n Timer,\n} from \"@thednp/shorty\";\n\nimport { addListener, removeListener } from \"@thednp/event-listener\";\n\nimport fadeClass from \"~/strings/fadeClass\";\nimport showClass from \"~/strings/showClass\";\nimport dataBsDismiss from \"~/strings/dataBsDismiss\";\nimport dataBsToggle from \"~/strings/dataBsToggle\";\nimport toastString from \"~/strings/toastString\";\nimport toastComponent from \"~/strings/toastComponent\";\nimport getTargetElement from \"~/util/getTargetElement\";\nimport isDisabled from \"~/util/isDisabled\";\nimport BaseComponent from \"./base-component\";\nimport { ToastEvent, ToastOptions } from \"~/interface/toast\";\n\n// TOAST PRIVATE GC\n// ================\nconst toastSelector = `.${toastString}`;\nconst toastDismissSelector = `[${dataBsDismiss}=\"${toastString}\"]`;\nconst toastToggleSelector = `[${dataBsToggle}=\"${toastString}\"]`;\nconst showingClass = \"showing\";\n/** @deprecated */\nconst hideClass = \"hide\";\n\nconst toastDefaults = {\n animation: true,\n autohide: true,\n delay: 5000,\n};\n\n/**\n * Static method which returns an existing `Toast` instance associated\n * to a target `Element`.\n */\nconst getToastInstance = (element: Element) =>\n getInstance(element, toastComponent);\n\n/**\n * A `Toast` initialization callback.\n */\nconst toastInitCallback = (element: Element) => new Toast(element);\n\n// TOAST CUSTOM EVENTS\n// ===================\nconst showToastEvent = createCustomEvent, ToastEvent>(\n `show.bs.${toastString}`,\n);\nconst shownToastEvent = createCustomEvent, ToastEvent>(\n `shown.bs.${toastString}`,\n);\nconst hideToastEvent = createCustomEvent, ToastEvent>(\n `hide.bs.${toastString}`,\n);\nconst hiddenToastEvent = createCustomEvent, ToastEvent>(\n `hidden.bs.${toastString}`,\n);\n\n// TOAST PRIVATE METHODS\n// =====================\n/**\n * Executes after the toast is shown to the user.\n *\n * @param self the `Toast` instance\n */\nconst showToastComplete = (self: Toast) => {\n const { element, options } = self;\n removeClass(element, showingClass);\n Timer.clear(element, showingClass);\n\n dispatchEvent(element, shownToastEvent);\n // istanbul ignore else @preserve\n if (options.autohide) {\n Timer.set(element, () => self.hide(), options.delay, toastString);\n }\n};\n\n/**\n * Executes after the toast is hidden to the user.\n *\n * @param self the `Toast` instance\n */\nconst hideToastComplete = (self: Toast) => {\n const { element } = self;\n removeClass(element, showingClass);\n removeClass(element, showClass);\n addClass(element, hideClass); // B/C\n Timer.clear(element, toastString);\n dispatchEvent(element, hiddenToastEvent);\n};\n\n/**\n * Executes before hiding the toast.\n *\n * @param self the `Toast` instance\n */\nconst hideToast = (self: Toast) => {\n const { element, options } = self;\n addClass(element, showingClass);\n\n if (options.animation) {\n reflow(element as HTMLElement);\n emulateTransitionEnd(element, () => hideToastComplete(self));\n } else {\n hideToastComplete(self);\n }\n};\n\n/**\n * Executes before showing the toast.\n *\n * @param self the `Toast` instance\n */\nconst showToast = (self: Toast) => {\n const { element, options } = self;\n Timer.set(\n element,\n () => {\n removeClass(element, hideClass); // B/C\n reflow(element as HTMLElement);\n addClass(element, showClass);\n addClass(element, showingClass);\n\n if (options.animation) {\n emulateTransitionEnd(element, () => showToastComplete(self));\n } else {\n showToastComplete(self);\n }\n },\n 17,\n showingClass,\n );\n};\n\n// TOAST EVENT HANDLERS\n// ====================\n/**\n * Handles the `click` event listener for toast.\n *\n * @param e the `Event` object\n */\nfunction toastClickHandler(this: HTMLElement, e: Event) {\n const element = getTargetElement(this);\n const self = element && getToastInstance(element);\n\n // istanbul ignore if @preserve\n if (isDisabled(this)) return;\n // istanbul ignore if @preserve\n if (!self) return;\n // istanbul ignore else @preserve\n if (this.tagName === \"A\") e.preventDefault();\n self.relatedTarget = this;\n self.show();\n}\n\n/**\n * Executes when user interacts with the toast without closing it,\n * usually by hovering or focusing it.\n *\n * @param e the `Toast` instance\n */\nconst interactiveToastHandler = (e: MouseEvent) => {\n const element = e.target;\n const self = getToastInstance(element);\n const { type, relatedTarget } = e;\n\n // istanbul ignore if @preserve: a solid filter is required\n if (\n !self || element === relatedTarget ||\n element.contains(relatedTarget as Node)\n ) return;\n\n if ([mouseenterEvent, focusinEvent].includes(type)) {\n Timer.clear(element, toastString);\n } else {\n Timer.set(element, () => self.hide(), self.options.delay, toastString);\n }\n};\n\n// TOAST DEFINITION\n// ================\n/** Creates a new `Toast` instance. */\nexport default class Toast extends BaseComponent {\n static selector = toastSelector;\n static init = toastInitCallback;\n static getInstance = getToastInstance;\n declare element: HTMLElement;\n declare options: ToastOptions;\n declare dismiss: HTMLElement | null;\n declare triggers: HTMLElement[];\n declare relatedTarget: HTMLElement | null;\n\n /**\n * @param target the target `.toast` element\n * @param config the instance options\n */\n constructor(target: Element | string, config?: Partial) {\n super(target, config);\n const { element, options } = this;\n\n // set fadeClass, the options.animation will override the markup\n if (options.animation && !hasClass(element, fadeClass)) {\n addClass(element, fadeClass);\n } else if (!options.animation && hasClass(element, fadeClass)) {\n removeClass(element, fadeClass);\n }\n\n // dismiss button\n this.dismiss = querySelector(toastDismissSelector, element);\n\n // toast can have multiple triggering elements\n this.triggers = [\n ...querySelectorAll(\n toastToggleSelector,\n getDocument(element),\n ),\n ].filter(\n (btn) => getTargetElement(btn) === element,\n );\n\n // add event listener\n this._toggleEventListeners(true);\n }\n /**\n * Returns component name string.\n */\n get name() {\n return toastComponent;\n }\n /**\n * Returns component default options.\n */\n get defaults() {\n return toastDefaults;\n }\n /**\n * Returns *true* when toast is visible.\n */\n get isShown() {\n return hasClass(this.element, showClass);\n }\n\n // TOAST PUBLIC METHODS\n // ====================\n /** Shows the toast. */\n show = () => {\n const { element, isShown } = this;\n\n // istanbul ignore if @preserve\n if (!element || isShown) return;\n\n dispatchEvent(element, showToastEvent);\n if (!showToastEvent.defaultPrevented) showToast(this);\n };\n\n /** Hides the toast. */\n hide = () => {\n const { element, isShown } = this;\n\n // istanbul ignore if @preserve\n if (!element || !isShown) return;\n\n dispatchEvent(element, hideToastEvent);\n if (!hideToastEvent.defaultPrevented) hideToast(this);\n };\n\n /**\n * Toggles on/off the `click` event listener.\n *\n * @param add when `true`, it will add the listener\n */\n _toggleEventListeners = (add?: boolean) => {\n const action = add ? addListener : removeListener;\n const { element, triggers, dismiss, options, hide } = this;\n\n // istanbul ignore else @preserve\n if (dismiss) {\n action(dismiss, mouseclickEvent, hide);\n }\n\n // istanbul ignore else @preserve\n if (options.autohide) {\n [focusinEvent, focusoutEvent, mouseenterEvent, mouseleaveEvent].forEach(\n (e) => action(element, e, interactiveToastHandler),\n );\n }\n // istanbul ignore else @preserve\n if (triggers.length) {\n triggers.forEach((btn) => {\n action(btn, mouseclickEvent, toastClickHandler);\n });\n }\n };\n\n /** Removes the `Toast` component from the target element. */\n dispose() {\n const { element, isShown } = this;\n this._toggleEventListeners();\n Timer.clear(element, toastString);\n\n if (isShown) removeClass(element, showClass);\n\n super.dispose();\n }\n}\n","import { Data, getElementsByTagName, matches } from \"@thednp/shorty\";\n\nimport { addListener } from \"@thednp/event-listener\";\n\nimport Alert from \"../components/alert\";\nimport Button from \"../components/button\";\nimport Carousel from \"../components/carousel\";\nimport Collapse from \"../components/collapse\";\nimport Dropdown from \"../components/dropdown\";\nimport Modal from \"../components/modal\";\nimport Offcanvas from \"../components/offcanvas\";\nimport Popover from \"../components/popover\";\nimport ScrollSpy from \"../components/scrollspy\";\nimport Tab from \"../components/tab\";\nimport Toast from \"../components/toast\";\nimport Tooltip from \"../components/tooltip\";\n\nconst componentsList = new Map<\n string,\n | typeof Alert\n | typeof Button\n | typeof Carousel\n | typeof Collapse\n | typeof Dropdown\n | typeof Modal\n | typeof Offcanvas\n | typeof Popover\n | typeof ScrollSpy\n | typeof Tab\n | typeof Toast\n | typeof Tooltip\n>();\n\ntype Component =\n | Alert\n | Button\n | Carousel\n | Collapse\n | Dropdown\n | Modal\n | Offcanvas\n | Popover\n | ScrollSpy\n | Tab\n | Toast\n | Tooltip;\n\n[\n Alert,\n Button,\n Carousel,\n Collapse,\n Dropdown,\n Modal,\n Offcanvas,\n Popover,\n ScrollSpy,\n Tab,\n Toast,\n Tooltip,\n].forEach((c) => componentsList.set(c.prototype.name, c));\n\n/**\n * Initialize all matched `Element`s for one component.\n *\n * @param callback\n * @param collection\n */\nconst initComponentDataAPI = (\n callback: (el: Element) => Component,\n collection: HTMLCollectionOf | Element[],\n) => {\n [...collection].forEach((x) => callback(x));\n};\n\n/**\n * Remove one component from a target container element or all in the page.\n *\n * @param component the component name\n * @param context parent `Node`\n */\nconst removeComponentDataAPI = (component: string, context: ParentNode) => {\n const compData = Data.getAllFor(component) as Map;\n\n if (compData) {\n [...compData].forEach(([element, instance]) => {\n if (context.contains(element)) {\n (instance as T & { dispose: () => void }).dispose();\n }\n });\n }\n};\n\n/**\n * Initialize all BSN components for a target container.\n *\n * @param context parent `Node`\n */\nexport const initCallback = (context?: ParentNode) => {\n const lookUp = context && context.nodeName ? context : document;\n const elemCollection = [...getElementsByTagName(\"*\", lookUp)];\n\n componentsList.forEach((cs) => {\n const { init, selector } = cs;\n initComponentDataAPI(\n init,\n elemCollection.filter((item) => matches(item, selector)),\n );\n });\n};\n\n/**\n * Remove all BSN components for a target container.\n *\n * @param context parent `Node`\n */\nexport const removeDataAPI = (context?: ParentNode) => {\n const lookUp = context && context.nodeName ? context : document;\n\n componentsList.forEach((comp) => {\n removeComponentDataAPI(comp.prototype.name, lookUp);\n });\n};\n\n// Bulk initialize all components\nif (document.body) initCallback();\nelse {\n addListener(document, \"DOMContentLoaded\", () => initCallback(), {\n once: true,\n });\n}\n"],"names":["Me","De","$","ze","Ie","Pe","st","rt","ct","lt","ft","gt","vt","Et","ht","yt","Dt","Ot","xt","Wt","Re","qt","en","nn","on","sn","fn","_t","$t","M","W","On","t","e","Yt","R","n","o","s","Q","j","ee","Wn","Qn","Kn","qn","Gn","v","u","i","E","L","Xn","I","N","K","q","d","C","ne","G","f","ce","ae","no","r","a","l","ro","P","S","ao","p","c","g","A","uo","po","go","mo","vo","O","ie","m","bo","Eo","ue","x","le","de","yo","b","y","wo","w","So","pe","k","ge","me","ve","he","No","B","V","h","ye","we","To","Lo","Fo","Bo","Se","Ho","ke","Wo","Ro","fadeClass","showClass","dataBsDismiss","alertString","alertComponent","isDisabled","target","hasClass","getAttribute","Version","BaseComponent","config","element","isElement","isString","querySelector","prevInstance","Data","ObjectKeys","normalizeOptions","prop","alertSelector","alertDismissSelector","getAlertInstance","getInstance","alertInitCallback","Alert","closeAlertEvent","createCustomEvent","closedAlertEvent","alertTransitionEnd","self","dispatchEvent","dismiss","removeClass","emulateTransitionEnd","add","action","addListener","removeListener","close","mouseclickEvent","activeClass","dataBsToggle","buttonString","buttonComponent","buttonSelector","getButtonInstance","buttonInitCallback","Button","setAttribute","ariaPressed","isActive","addClass","dataBsTarget","carouselString","carouselComponent","dataBsParent","dataBsContainer","getTargetElement","targetAttr","doc","getDocument","att","attValue","closest","carouselSelector","carouselItem","dataBsSlideTo","dataBsSlide","pausedClass","carouselDefaults","getCarouselInstance","carouselInitCallback","Carousel","startX","currentX","endX","carouselSlideEvent","carouselSlidEvent","carouselTransitionEndHandler","index","direction","slides","options","activeItem","getActiveIndex","orientation","directionClass","Timer","carouselPauseHandler","carouselResumeHandler","carouselIndicatorHandler","newIndex","carouselControlsHandler","carouselKeyHandler","code","querySelectorAll","isElementInScrollRange","RTL","isRTL","keyArrowRight","keyArrowLeft","carouselDragHandler","carouselPointerDownHandler","controls","indicators","el","toggleCarouselTouchHandlers","carouselPointerMoveHandler","carouselPointerUpHandler","activateCarouselIndicator","pointermoveEvent","passiveHandler","pointerupEvent","getElementsByClassName","activeIndex","transitionItem","matches","ar","isPaused","idx","next","eventProperties","ObjectAssign","getElementTransitionDuration","reflow","touch","pause","interval","keyboard","mouseenterEvent","mouseleaveEvent","pointerdownEvent","touchstartEvent","dragstartEvent","arrow","indicator","keydownEvent","isAnimating","clone","collapsingClass","collapseString","collapseComponent","collapseSelector","collapseToggleSelector","collapseDefaults","getCollapseInstance","collapseInitCallback","Collapse","showCollapseEvent","shownCollapseEvent","hideCollapseEvent","hiddenCollapseEvent","expandCollapse","parent","triggers","noop","setElementStyle","btn","ariaExpanded","collapseContent","collapseClickHandler","trigger","isHTMLElement","activeCollapse","activeCollapseInstance","_","dropdownMenuClasses","dropdownComponent","dropdownMenuClass","isEmptyAnchor","parentAnchor","hasAttribute","dropdownString","dropupString","dropstartString","dropendString","dropdownClasses","dropdownSelector","getDropdownInstance","dropdownInitCallback","Dropdown","dropdownMenuEndClass","verticalClass","horizontalClass","menuFocusTags","dropdownDefaults","showDropdownEvent","shownDropdownEvent","hideDropdownEvent","hiddenDropdownEvent","updatedDropdownEvent","styleDropdown","menu","parentElement","offset","getElementStyle","menuEnd","style","positionClass","dropdownMargin","dropdownPosition","menuWidth","menuHeight","clientWidth","clientHeight","getDocumentElement","targetLeft","targetTop","targetWidth","targetHeight","getBoundingClientRect","leftFullExceed","rightFullExceed","bottomExceed","bottomFullExceed","topExceed","leftExceed","rightExceed","posAjust","margins","getMenuItems","firstElementChild","toggleDropdownDismiss","dropdownDismissHandler","focusEvent","dropdownPreventScroll","keyupEvent","dropdownKeyHandler","getCurrentOpenDropdown","currentParent","type","isForm","mousedownEvent","dropdownClickHandler","keyArrowDown","keyArrowUp","activeElement","open","menuItems","focus","keyEscape","PositionObserver","currentElement","currentInstance","modalString","modalComponent","offcanvasComponent","fixedTopClass","fixedBottomClass","stickyTopClass","positionStickyClass","getFixedItems","resetScrollbar","bd","getDocumentBody","fixedItems","fixed","measureScrollbar","innerWidth","getWindow","setScrollbar","overflow","bodyPad","sbWidth","itemPadValue","itemMValue","offcanvasString","popupContainer","createElement","appendPopup","customContainer","containerIsBody","isNode","lookup","BODY","removePopup","hasPopup","backdropString","modalBackdropClass","offcanvasBackdropClass","modalActiveSelector","offcanvasActiveSelector","overlay","getCurrentOpen","toggleOverlayType","isModal","targetClass","appendOverlay","hasFade","showOverlay","hideOverlay","removeOverlay","isVisible","modalSelector","modalToggleSelector","modalDismissSelector","modalStaticClass","modalDefaults","getModalInstance","modalInitCallback","Modal","showModalEvent","shownModalEvent","hideModalEvent","hiddenModalEvent","setModalScrollbar","scrollbarWidth","scrollHeight","modalHeight","modalScrollHeight","modalOverflow","padStyle","toggleModalDismiss","modalDismissHandler","modalKeyHandler","afterModalHide","relatedTarget","focusElement","toggleFocusTrap","afterModalShow","beforeModalShow","removeAttribute","ariaHidden","ariaModal","beforeModalHide","modalClickHandler","currentTarget","isStatic","modalDialog","backdrop","selectedText","targetInsideDialog","staticTransitionEnd","duration","overlayDelay","currentOpen","that","callback","offcanvasSelector","offcanvasToggleSelector","offcanvasDismissSelector","offcanvasTogglingClass","offcanvasDefaults","getOffcanvasInstance","offcanvasInitCallback","Offcanvas","showOffcanvasEvent","shownOffcanvasEvent","hideOffcanvasEvent","hiddenOffcanvasEvent","setOffCanvasScrollbar","toggleOffCanvasDismiss","offcanvasKeyDismissHandler","offcanvasDismissHandler","beforeOffcanvasShow","showOffcanvasComplete","beforeOffcanvasHide","hideOffcanvasComplete","offcanvasTriggerHandler","offCanvasDismiss","selection","visibleTrigger","isOpen","popoverString","popoverComponent","tooltipString","getTipTemplate","tipType","isTooltip","bodyClass","header","body","tipClassPositions","styleTip","tipClasses","tooltip","container","offsetParent","scrollLeft","scrollTop","getNodeScroll","tipWidth","tipHeight","htmlcw","htmlch","htmlow","placement","parentCWidth","parentOWidth","fixedParent","leftBoundry","rightBoundry","observerEntry","elemWidth","elemHeight","elemRectLeft","elemRectRight","elemRectTop","elemOffsetLeft","elemOffsetTop","getRectRelativeToOffsetParent","topPosition","bottomPosition","leftPosition","rightPosition","arrowTop","arrowLeft","arrowRight","arrowWidth","arrowHeight","arrowAdjust","horizontals","verticals","updatedTooltipEvent","toLowerCase","tooltipDefaults","dataOriginalTitle","tooltipComponent","setHtml","content","sanitizeFn","dirty","isFunction","tempDocument","isNodeList","isArray","createTip","id","title","template","animation","customClass","dismissible","btnClose","tipString","tipPositions","titleParts","contentParts","placementClass","tooltipTemplate","htmlMarkup","tooltipHeader","tooltipBody","tempTitle","tempContent","tempBtn","getElementContainer","majorBlockTags","containers","parentNode","getParentNode","isShadowRoot","isTableElement","tooltipSelector","titleAttr","getTooltipInstance","tooltipInitCallback","Tooltip","removeTooltip","ariaDescribedBy","hasTip","disposeTooltipComplete","toggleTooltipTitle","toggleTooltipAction","tooltipShownAction","shownTooltipEvent","tooltipHiddenAction","hiddenTooltipEvent","toggleTooltipOpenHandlers","parentModal","parentOffcanvas","titleAtt","tipComponent","elem","getUID","position","outTimer","showTooltipEvent","delay","hideTooltipEvent","enabled","tr","mousehoverEvent","focusinEvent","focusoutEvent","isApple","popoverSelector","popoverDefaults","getPopoverInstance","popoverInitCallback","Popover","scrollspyString","scrollspyComponent","scrollspySelector","scrollSpyAnchorSelector","scrollspyDefaults","getScrollSpyInstance","scrollspyInitCallback","ScrollSpy","activateScrollSpy","updateSpyTargets","_itemsLength","_observables","links","getElementsByTagName","link","hash","targetItem","clear","item","activate","parentItem","parentLink","getOffset","scrollTarget","spyTarget","_activeItem","entries","newActiveItem","firstOffset","offsetTop","nextTarget","nextOffsetTop","getElementById","_observer","_scrollTo","tabString","tabComponent","tabSelector","getTabInstance","tabInitCallback","Tab","showTabEvent","shownTabEvent","hideTabEvent","hiddenTabEvent","tabPrivate","triggerTabEnd","tabContent","nav","triggerTabShow","nextContent","tab","currentHeight","nextHeight","triggerTabHide","getActiveTab","activeTabs","getParentDropdown","dropdown","tabClickHandler","firstTab","firstTabContent","ariaSelected","activeDropdown","toggleTab","toastString","toastComponent","toastSelector","toastDismissSelector","toastToggleSelector","showingClass","hideClass","toastDefaults","getToastInstance","toastInitCallback","Toast","showToastEvent","shownToastEvent","hideToastEvent","hiddenToastEvent","showToastComplete","hideToastComplete","hideToast","showToast","toastClickHandler","interactiveToastHandler","isShown","hide","componentsList","initComponentDataAPI","collection","removeComponentDataAPI","component","context","compData","instance","initCallback","lookUp","elemCollection","cs","init","selector","removeDataAPI","comp"],"mappings":"iCAAK,MAA6DA,GAAK,mBAAoBC,GAAK,gBAAuCC,GAAI,cAA0DC,GAAK,aAAcC,GAAK,eAAgBC,GAAK,gBAAuPC,GAAK,QAASC,GAAK,UAAWC,GAAK,WAA0EC,GAAK,UAA4BC,GAA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MN,CAAM,CAAA,CACnD,CACH,EAGA,OAAI,SAAS,KAAmBD,GAAA,EAE9BviB,EAAY,SAAU,mBAAoB,IAAMuiB,GAAA,EAAgB,CAC9D,KAAM,EAAA,CACP","x_google_ignoreList":[0,1,27]} \ No newline at end of file +{"version":3,"file":"bootstrap-native.js","sources":["../node_modules/.pnpm/@thednp+shorty@2.0.9/node_modules/@thednp/shorty/dist/shorty.mjs","../node_modules/.pnpm/@thednp+event-listener@2.0.8/node_modules/@thednp/event-listener/dist/event-listener.mjs","../src/strings/fadeClass.ts","../src/strings/showClass.ts","../src/strings/dataBsDismiss.ts","../src/strings/alertString.ts","../src/strings/alertComponent.ts","../src/util/isDisabled.ts","../src/version.ts","../src/components/base-component.ts","../src/components/alert.ts","../src/strings/activeClass.ts","../src/strings/dataBsToggle.ts","../src/strings/buttonString.ts","../src/strings/buttonComponent.ts","../src/components/button.ts","../src/strings/dataBsTarget.ts","../src/strings/carouselString.ts","../src/strings/carouselComponent.ts","../src/strings/dataBsParent.ts","../src/strings/dataBsContainer.ts","../src/util/getTargetElement.ts","../src/components/carousel.ts","../src/strings/collapsingClass.ts","../src/strings/collapseString.ts","../src/strings/collapseComponent.ts","../src/components/collapse.ts","../node_modules/.pnpm/@thednp+position-observer@1.0.4/node_modules/@thednp/position-observer/dist/index.mjs","../src/strings/dropdownClasses.ts","../src/strings/dropdownComponent.ts","../src/strings/dropdownMenuClass.ts","../src/util/isEmptyAnchor.ts","../src/components/dropdown.ts","../src/strings/modalString.ts","../src/strings/modalComponent.ts","../src/strings/offcanvasComponent.ts","../src/strings/fixedTopClass.ts","../src/strings/fixedBottomClass.ts","../src/strings/stickyTopClass.ts","../src/strings/positionStickyClass.ts","../src/util/scrollbar.ts","../src/strings/offcanvasString.ts","../src/util/popupContainer.ts","../src/util/backdrop.ts","../src/util/isVisible.ts","../src/components/modal.ts","../src/components/offcanvas.ts","../src/strings/popoverString.ts","../src/strings/popoverComponent.ts","../src/strings/tooltipString.ts","../src/util/getTipTemplate.ts","../src/util/tipClassPositions.ts","../src/util/styleTip.ts","../src/util/tooltipDefaults.ts","../src/strings/dataOriginalTitle.ts","../src/strings/tooltipComponent.ts","../src/util/setHtml.ts","../src/util/createTip.ts","../src/util/getElementContainer.ts","../src/components/tooltip.ts","../src/components/popover.ts","../src/strings/scrollspyString.ts","../src/strings/scrollspyComponent.ts","../src/components/scrollspy.ts","../src/strings/tabString.ts","../src/strings/tabComponent.ts","../src/components/tab.ts","../src/strings/toastString.ts","../src/strings/toastComponent.ts","../src/components/toast.ts","../src/util/init.ts"],"sourcesContent":["const Ne = \"2.0.9\", Ce = \"aria-checked\", Te = \"aria-description\", Me = \"aria-describedby\", De = \"aria-expanded\", Le = \"aria-haspopup\", $ = \"aria-hidden\", Oe = \"aria-label\", xe = \"aria-labelledby\", ze = \"aria-modal\", Ie = \"aria-pressed\", Pe = \"aria-selected\", Fe = \"aria-valuemin\", Be = \"aria-valuemax\", Ve = \"aria-valuenow\", He = \"aria-valuetext\", J = \"abort\", X = \"beforeunload\", Y = \"blur\", tt = \"change\", et = \"contextmenu\", H = \"DOMContentLoaded\", nt = \"DOMMouseScroll\", ot = \"error\", st = \"focus\", rt = \"focusin\", ct = \"focusout\", at = \"gesturechange\", it = \"gestureend\", ut = \"gesturestart\", lt = \"keydown\", dt = \"keypress\", ft = \"keyup\", pt = \"load\", gt = \"click\", mt = \"dblclick\", vt = \"mousedown\", bt = \"mouseup\", Et = \"hover\", ht = \"mouseenter\", yt = \"mouseleave\", wt = \"mousein\", At = \"mouseout\", St = \"mouseover\", kt = \"mousemove\", Nt = \"mousewheel\", Ct = \"move\", Tt = \"orientationchange\", Mt = \"pointercancel\", Dt = \"pointerdown\", Lt = \"pointerleave\", Ot = \"pointermove\", xt = \"pointerup\", zt = \"readystatechange\", It = \"reset\", Pt = \"resize\", Ft = \"select\", Bt = \"selectend\", Vt = \"selectstart\", Ht = \"scroll\", Ut = \"submit\", Wt = \"touchstart\", Rt = \"touchmove\", Qt = \"touchcancel\", jt = \"touchend\", Kt = \"unload\", Ue = {\n DOMContentLoaded: H,\n DOMMouseScroll: nt,\n abort: J,\n beforeunload: X,\n blur: Y,\n change: tt,\n click: gt,\n contextmenu: et,\n dblclick: mt,\n error: ot,\n focus: st,\n focusin: rt,\n focusout: ct,\n gesturechange: at,\n gestureend: it,\n gesturestart: ut,\n hover: Et,\n keydown: lt,\n keypress: dt,\n keyup: ft,\n load: pt,\n mousedown: vt,\n mousemove: kt,\n mousein: wt,\n mouseout: At,\n mouseenter: ht,\n mouseleave: yt,\n mouseover: St,\n mouseup: bt,\n mousewheel: Nt,\n move: Ct,\n orientationchange: Tt,\n pointercancel: Mt,\n pointerdown: Dt,\n pointerleave: Lt,\n pointermove: Ot,\n pointerup: xt,\n readystatechange: zt,\n reset: It,\n resize: Pt,\n scroll: Ht,\n select: Ft,\n selectend: Bt,\n selectstart: Vt,\n submit: Ut,\n touchcancel: Qt,\n touchend: jt,\n touchmove: Rt,\n touchstart: Wt,\n unload: Kt\n}, We = \"drag\", Re = \"dragstart\", Qe = \"dragenter\", je = \"dragleave\", Ke = \"dragover\", qe = \"dragend\", Ge = \"loadstart\", Ze = {\n start: \"mousedown\",\n end: \"mouseup\",\n move: \"mousemove\",\n cancel: \"mouseleave\"\n}, _e = { down: \"mousedown\", up: \"mouseup\" }, $e = \"onmouseleave\" in document ? [\"mouseenter\", \"mouseleave\"] : [\"mouseover\", \"mouseout\"], Je = {\n start: \"touchstart\",\n end: \"touchend\",\n move: \"touchmove\",\n cancel: \"touchcancel\"\n}, Xe = { in: \"focusin\", out: \"focusout\" }, qt = 'a[href], button, input, textarea, select, details, [tabindex]:not([tabindex=\"-1\"]', Ye = {\n Backspace: \"Backspace\",\n Tab: \"Tab\",\n Enter: \"Enter\",\n Shift: \"Shift\",\n Control: \"Control\",\n Alt: \"Alt\",\n Pause: \"Pause\",\n CapsLock: \"CapsLock\",\n Escape: \"Escape\",\n Scape: \"Space\",\n ArrowLeft: \"ArrowLeft\",\n ArrowUp: \"ArrowUp\",\n ArrowRight: \"ArrowRight\",\n ArrowDown: \"ArrowDown\",\n Insert: \"Insert\",\n Delete: \"Delete\",\n Meta: \"Meta\",\n ContextMenu: \"ContextMenu\",\n ScrollLock: \"ScrollLock\"\n}, tn = \"Alt\", en = \"ArrowDown\", nn = \"ArrowUp\", on = \"ArrowLeft\", sn = \"ArrowRight\", rn = \"Backspace\", cn = \"CapsLock\", an = \"Control\", un = \"Delete\", ln = \"Enter\", dn = \"NumpadEnter\", fn = \"Escape\", pn = \"Insert\", gn = \"Meta\", mn = \"Pause\", vn = \"ScrollLock\", bn = \"Shift\", En = \"Space\", hn = \"Tab\", Gt = \"animationDuration\", Zt = \"animationDelay\", U = \"animationName\", T = \"animationend\", _t = \"transitionDuration\", $t = \"transitionDelay\", M = \"transitionend\", W = \"transitionProperty\", yn = \"addEventListener\", wn = \"removeEventListener\", An = {\n linear: \"linear\",\n easingSinusoidalIn: \"cubic-bezier(0.47,0,0.745,0.715)\",\n easingSinusoidalOut: \"cubic-bezier(0.39,0.575,0.565,1)\",\n easingSinusoidalInOut: \"cubic-bezier(0.445,0.05,0.55,0.95)\",\n easingQuadraticIn: \"cubic-bezier(0.550,0.085,0.680,0.530)\",\n easingQuadraticOut: \"cubic-bezier(0.250,0.460,0.450,0.940)\",\n easingQuadraticInOut: \"cubic-bezier(0.455,0.030,0.515,0.955)\",\n easingCubicIn: \"cubic-bezier(0.55,0.055,0.675,0.19)\",\n easingCubicOut: \"cubic-bezier(0.215,0.61,0.355,1)\",\n easingCubicInOut: \"cubic-bezier(0.645,0.045,0.355,1)\",\n easingQuarticIn: \"cubic-bezier(0.895,0.03,0.685,0.22)\",\n easingQuarticOut: \"cubic-bezier(0.165,0.84,0.44,1)\",\n easingQuarticInOut: \"cubic-bezier(0.77,0,0.175,1)\",\n easingQuinticIn: \"cubic-bezier(0.755,0.05,0.855,0.06)\",\n easingQuinticOut: \"cubic-bezier(0.23,1,0.32,1)\",\n easingQuinticInOut: \"cubic-bezier(0.86,0,0.07,1)\",\n easingExponentialIn: \"cubic-bezier(0.95,0.05,0.795,0.035)\",\n easingExponentialOut: \"cubic-bezier(0.19,1,0.22,1)\",\n easingExponentialInOut: \"cubic-bezier(1,0,0,1)\",\n easingCircularIn: \"cubic-bezier(0.6,0.04,0.98,0.335)\",\n easingCircularOut: \"cubic-bezier(0.075,0.82,0.165,1)\",\n easingCircularInOut: \"cubic-bezier(0.785,0.135,0.15,0.86)\",\n easingBackIn: \"cubic-bezier(0.6,-0.28,0.735,0.045)\",\n easingBackOut: \"cubic-bezier(0.175,0.885,0.32,1.275)\",\n easingBackInOut: \"cubic-bezier(0.68,-0.55,0.265,1.55)\"\n}, Sn = \"offsetHeight\", kn = \"offsetWidth\", Nn = \"scrollHeight\", Cn = \"scrollWidth\", Tn = \"tabindex\", Mn = navigator.userAgentData, { userAgent: Jt } = navigator, Dn = Jt, Ln = () => {\n const t = /iPhone|iPad|iPod|Android/i;\n return navigator?.userAgentData?.brands.some(\n (e) => t.test(e.brand)\n ) || t.test(navigator?.userAgent) || !1;\n}, On = () => {\n const t = /(iPhone|iPod|iPad)/;\n return navigator?.userAgentData?.brands.some(\n (e) => t.test(e.brand)\n ) || t.test(\n navigator?.userAgent\n ) || !1;\n}, xn = () => navigator?.userAgent?.includes(\"Firefox\") || !1, Xt = () => typeof CSS > \"u\" || !CSS.supports ? !1 : CSS.supports(\"-webkit-backdrop-filter\", \"none\"), zn = () => [\"webkitPerspective\", \"perspective\"].some((t) => t in document.head.style), Yt = () => {\n}, R = (t, e, n, o) => {\n const s = o || !1;\n t.addEventListener(\n e,\n n,\n s\n );\n}, Q = (t, e, n, o) => {\n const s = o || !1;\n t.removeEventListener(\n e,\n n,\n s\n );\n}, te = (t, e, n, o) => {\n const s = (r) => {\n (r.target === t || r.currentTarget === t) && (n.apply(t, [r]), Q(t, e, s, o));\n };\n R(t, e, s, o);\n}, In = () => {\n let t = !1;\n try {\n const e = Object.defineProperty({}, \"passive\", {\n get: () => (t = !0, t)\n });\n te(document, H, Yt, e);\n } catch {\n }\n return t;\n}, Pn = () => [\"webkitTransform\", \"transform\"].some((t) => t in document.head.style), Fn = () => \"ontouchstart\" in window || \"msMaxTouchPoints\" in navigator, Bn = () => [\"webkitAnimation\", \"animation\"].some((t) => t in document.head.style), Vn = () => [\"webkitTransition\", \"transition\"].some((t) => t in document.head.style), j = (t, e) => t.getAttribute(e), Hn = (t, e, n) => e.getAttributeNS(t, n), ee = (t, e) => t.hasAttribute(e), Un = (t, e, n) => e.hasAttributeNS(t, n), Wn = (t, e, n) => t.setAttribute(e, n), Rn = (t, e, n, o) => e.setAttributeNS(t, n, o), Qn = (t, e) => t.removeAttribute(e), jn = (t, e, n) => e.removeAttributeNS(t, n), Kn = (t, ...e) => {\n t.classList.add(...e);\n}, qn = (t, ...e) => {\n t.classList.remove(...e);\n}, Gn = (t, e) => t.classList.contains(e), { body: Zn } = document, { documentElement: _n } = document, { head: $n } = document, Jn = (t) => Array.from(t), v = (t) => t != null && typeof t == \"object\" || !1, u = (t) => v(t) && typeof t.nodeType == \"number\" && [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11].some(\n (e) => t.nodeType === e\n) || !1, i = (t) => u(t) && t.nodeType === 1 || !1, E = /* @__PURE__ */ new Map(), L = {\n data: E,\n set: (t, e, n) => {\n if (!i(t)) return;\n E.has(e) || E.set(e, /* @__PURE__ */ new Map()), E.get(e).set(t, n);\n },\n getAllFor: (t) => E.get(t) || null,\n get: (t, e) => {\n if (!i(t) || !e) return null;\n const n = L.getAllFor(e);\n return t && n && n.get(t) || null;\n },\n remove: (t, e) => {\n const n = L.getAllFor(e);\n !n || !i(t) || (n.delete(t), n.size === 0 && E.delete(e));\n }\n}, Xn = (t, e) => L.get(t, e), Yn = (t) => t?.charAt(0).toUpperCase() + t?.slice(1), I = (t) => t?.trim().replace(\n /(?:^\\w|[A-Z]|\\b\\w)/g,\n (e, n) => n === 0 ? e.toLowerCase() : e.toUpperCase()\n).replace(/\\s+/g, \"\"), N = (t) => typeof t == \"string\" || !1, K = (t) => v(t) && t.constructor.name === \"Window\" || !1, q = (t) => u(t) && t.nodeType === 9 || !1, d = (t) => q(t) ? t : u(t) ? t.ownerDocument : K(t) ? t.document : globalThis.document, C = (t, ...e) => Object.assign(t, ...e), ne = (t) => {\n if (!t) return;\n if (N(t))\n return d().createElement(t);\n const { tagName: e } = t, n = ne(e);\n if (!n) return;\n const o = { ...t };\n return delete o.tagName, C(n, o);\n}, oe = (t, e) => {\n if (!t || !e) return;\n if (N(e))\n return d().createElementNS(t, e);\n const { tagName: n } = e, o = oe(t, n);\n if (!o) return;\n const s = { ...e };\n return delete s.tagName, C(o, s);\n}, G = (t, e) => t.dispatchEvent(e), to = (t, e, n) => n.indexOf(t) === e, f = (t, e, n) => {\n const o = getComputedStyle(t, n), s = e.replace(\"webkit\", \"Webkit\").replace(/([A-Z])/g, \"-$1\").toLowerCase();\n return o.getPropertyValue(s);\n}, se = (t) => {\n const e = f(t, U), n = f(t, Zt), o = n.includes(\"ms\") ? 1 : 1e3, s = e && e !== \"none\" ? parseFloat(n) * o : 0;\n return Number.isNaN(s) ? 0 : s;\n}, re = (t) => {\n const e = f(t, U), n = f(t, Gt), o = n.includes(\"ms\") ? 1 : 1e3, s = e && e !== \"none\" ? parseFloat(n) * o : 0;\n return Number.isNaN(s) ? 0 : s;\n}, eo = (t, e) => {\n let n = 0;\n const o = new Event(T), s = re(t), r = se(t);\n if (s) {\n const a = (l) => {\n l.target === t && (e.apply(t, [l]), t.removeEventListener(T, a), n = 1);\n };\n t.addEventListener(T, a), setTimeout(() => {\n n || G(t, o);\n }, s + r + 17);\n } else\n e.apply(t, [o]);\n}, ce = (t) => {\n const e = f(t, W), n = f(t, $t), o = n.includes(\"ms\") ? 1 : 1e3, s = e && e !== \"none\" ? parseFloat(n) * o : 0;\n return Number.isNaN(s) ? 0 : s;\n}, ae = (t) => {\n const e = f(t, W), n = f(t, _t), o = n.includes(\"ms\") ? 1 : 1e3, s = e && e !== \"none\" ? parseFloat(n) * o : 0;\n return Number.isNaN(s) ? 0 : s;\n}, no = (t, e) => {\n let n = 0;\n const o = new Event(M), s = ae(t), r = ce(t);\n if (s) {\n const a = (l) => {\n l.target === t && (e.apply(t, [l]), t.removeEventListener(M, a), n = 1);\n };\n t.addEventListener(M, a), setTimeout(() => {\n n || G(t, o);\n }, s + r + 17);\n } else\n e.apply(t, [o]);\n}, oo = (t) => Float32Array.from(Array.from(t)), so = (t) => Float64Array.from(Array.from(t)), ro = (t, e) => t.focus(e), co = (t) => t?.trim().replace(/([a-z])([A-Z])/g, \"$1-$2\").replace(/\\s+/g, \"-\").toLowerCase(), P = (t) => [\"true\", !0].includes(t) ? !0 : [\"false\", !1].includes(t) ? !1 : [\"null\", \"\", null, void 0].includes(t) ? null : t !== \"\" && !Number.isNaN(+t) ? +t : t, S = (t) => Object.entries(t), ao = (t, e, n, o) => {\n if (!i(t)) return e;\n const s = { ...n }, r = { ...t.dataset }, a = { ...e }, l = {}, p = \"title\";\n return S(r).forEach(([c, g]) => {\n const A = o && typeof c == \"string\" && c.includes(o) ? I(c.replace(o, \"\")) : I(c);\n l[A] = P(g);\n }), S(s).forEach(([c, g]) => {\n s[c] = P(g);\n }), S(e).forEach(([c, g]) => {\n c in s ? a[c] = s[c] : c in l ? a[c] = l[c] : a[c] = c === p ? j(t, p) : g;\n }), a;\n}, io = (t, e) => v(t) && (Object.hasOwn(t, e) || e in t), uo = (t) => Object.keys(t), lo = (t) => Object.values(t), fo = (t) => Object.fromEntries(t), po = (t, e) => {\n const n = new CustomEvent(t, {\n cancelable: !0,\n bubbles: !0\n });\n return v(e) && C(n, e), n;\n}, go = { passive: !0 }, mo = (t) => t.offsetHeight, vo = (t, e) => {\n S(e).forEach(([n, o]) => {\n if (o && N(n) && n.includes(\"--\"))\n t.style.setProperty(n, o);\n else {\n const s = {};\n s[n] = o, C(t.style, s);\n }\n });\n}, O = (t) => v(t) && t.constructor.name === \"Map\" || !1, ie = (t) => typeof t == \"number\" || !1, m = /* @__PURE__ */ new Map(), bo = {\n set: (t, e, n, o) => {\n i(t) && (o && o.length ? (m.has(t) || m.set(t, /* @__PURE__ */ new Map()), m.get(t).set(o, setTimeout(e, n))) : m.set(t, setTimeout(e, n)));\n },\n get: (t, e) => {\n if (!i(t)) return null;\n const n = m.get(t);\n return e && n && O(n) ? n.get(e) || null : ie(n) ? n : null;\n },\n clear: (t, e) => {\n if (!i(t)) return;\n const n = m.get(t);\n e && e.length && O(n) ? (clearTimeout(n.get(e)), n.delete(e), n.size === 0 && m.delete(t)) : (clearTimeout(n), m.delete(t));\n }\n}, Eo = (t) => t.toLowerCase(), ho = (t) => t.toUpperCase(), ue = (t, e) => (u(e) ? e : d()).querySelectorAll(t), x = /* @__PURE__ */ new Map();\nfunction le(t) {\n const { shiftKey: e, code: n } = t, o = d(this), s = [\n ...ue(qt, this)\n ].filter(\n (l) => !ee(l, \"disabled\") && !j(l, $)\n );\n if (!s.length) return;\n const r = s[0], a = s[s.length - 1];\n n === \"Tab\" && (e && o.activeElement === r ? (a.focus(), t.preventDefault()) : !e && o.activeElement === a && (r.focus(), t.preventDefault()));\n}\nconst de = (t) => x.has(t) === !0, yo = (t) => {\n const e = de(t);\n (e ? Q : R)(t, \"keydown\", le), e ? x.delete(t) : x.set(t, !0);\n}, b = (t) => i(t) && \"offsetWidth\" in t || !1, y = (t, e) => {\n const { width: n, height: o, top: s, right: r, bottom: a, left: l } = t.getBoundingClientRect();\n let p = 1, c = 1;\n if (e && b(t)) {\n const { offsetWidth: g, offsetHeight: A } = t;\n p = g > 0 ? Math.round(n) / g : 1, c = A > 0 ? Math.round(o) / A : 1;\n }\n return {\n width: n / p,\n height: o / c,\n top: s / c,\n right: r / p,\n bottom: a / c,\n left: l / p,\n x: l / p,\n y: s / c\n };\n}, wo = (t) => d(t).body, w = (t) => d(t).documentElement, Ao = (t) => d(t).head, fe = (t) => u(t) ? (t.nodeName || \"\").toLowerCase() : \"#document\", So = (t) => {\n const e = K(t), n = e ? t.scrollX : t.scrollLeft, o = e ? t.scrollY : t.scrollTop;\n return { x: n, y: o };\n}, pe = (t) => u(t) && t.constructor.name === \"ShadowRoot\" || !1, k = (t) => t.nodeName === \"HTML\" ? t : i(t) && t.assignedSlot || u(t) && t.parentNode || pe(t) && t.host || w(t), ge = (t) => t ? q(t) ? t.defaultView : u(t) ? t?.ownerDocument?.defaultView : t : window, me = (t) => u(t) && [\"TABLE\", \"TD\", \"TH\"].includes(t.nodeName) || !1, ve = (t, e) => t.matches(e), D = (t) => f(t, \"position\") === \"static\", be = (t) => f(t, \"position\") === \"fixed\", Z = (t) => [\":popover-open\", \":modal\"].some((e) => {\n try {\n return ve(t, e);\n } catch {\n return !1;\n }\n}), _ = (t) => {\n const e = Xt(), n = i(t) ? getComputedStyle(t) : t;\n return n.transform !== \"none\" || n.perspective !== \"none\" || (n.containerType ? n.containerType !== \"normal\" : !1) || !e && (n.backdropFilter ? n.backdropFilter !== \"none\" : !1) || !e && (n.filter ? n.filter !== \"none\" : !1) || [\"transform\", \"perspective\", \"filter\"].some(\n (o) => (n.willChange || \"\").includes(o)\n ) || [\"paint\", \"layout\", \"strict\", \"content\"].some(\n (o) => (n.contain || \"\").includes(o)\n );\n}, Ee = (t) => {\n let e = k(t);\n for (; i(e) && !z(e); ) {\n if (_(e))\n return e;\n if (Z(e))\n return null;\n e = k(e);\n }\n return null;\n}, z = (t) => [\"html\", \"body\", \"#document\"].includes(fe(t)), F = (t) => {\n if (!b(t) || be(t))\n return null;\n let e = t.offsetParent;\n return w(t) === e && (e = e.ownerDocument.body), e;\n}, ko = (t) => {\n const e = ge(t);\n if (!u(t) || Z(t))\n return e;\n if (!b(t)) {\n let o = k(t);\n for (; o && !z(o); ) {\n if (i(o) && !D(o))\n return o;\n o = k(o);\n }\n return e;\n }\n let n = F(t);\n for (; n && me(n) && D(n); )\n n = F(n);\n return n && z(n) && D(n) && !_(n) ? e : n || Ee(t) || e;\n}, he = (t) => {\n if (!b(t)) return !1;\n const { width: e, height: n } = y(t), { offsetWidth: o, offsetHeight: s } = t;\n return Math.round(e) !== o || Math.round(n) !== s;\n}, No = (t, e, n) => {\n const o = b(e), s = y(\n t,\n o && he(e)\n ), r = { x: 0, y: 0 };\n if (o) {\n const a = y(e, !0);\n r.x = a.x + e.clientLeft, r.y = a.y + e.clientTop;\n }\n return {\n x: s.left + n.x - r.x,\n y: s.top + n.y - r.y,\n width: s.width,\n height: s.height\n };\n};\nlet B = 0, V = 0;\nconst h = /* @__PURE__ */ new Map(), ye = (t, e) => {\n let n = e ? B : V;\n if (e) {\n const o = ye(t), s = h.get(o) || /* @__PURE__ */ new Map();\n h.has(o) || h.set(o, s), O(s) && !s.has(e) ? (s.set(e, n), B += 1) : n = s.get(e);\n } else {\n const o = t.id || t;\n h.has(o) ? n = h.get(o) : (h.set(o, n), V += 1);\n }\n return n;\n}, we = (t) => Array.isArray(t) || !1, Co = (t) => u(t) && t.nodeName === \"CANVAS\" || !1, Ae = (t) => b(t) && !!t.shadowRoot || !1, To = (t) => {\n if (!u(t)) return !1;\n const { top: e, bottom: n } = y(t), { clientHeight: o } = w(t);\n return e <= o && n >= 0;\n}, Mo = (t) => {\n if (!i(t)) return !1;\n const { clientWidth: e, clientHeight: n } = w(t), { top: o, left: s, bottom: r, right: a } = y(t, !0);\n return o >= 0 && s >= 0 && r <= n && a <= e;\n}, Do = (t) => we(t) && t.every(i) || !1, Lo = (t) => typeof t == \"function\" || !1, Oo = (t) => v(t) && t.constructor.name === \"HTMLCollection\" || !1, xo = (t) => b(t) && t.tagName === \"IMG\" || !1, zo = (t) => {\n if (!N(t)) return !1;\n try {\n JSON.parse(t);\n } catch {\n return !1;\n }\n return !0;\n}, Io = (t) => v(t) && t.constructor.name === \"WeakMap\" || !1, Po = (t) => u(t) && [\"SVG\", \"Image\", \"Video\", \"Canvas\"].some(\n (e) => t.constructor.name.includes(e)\n) || !1, Fo = (t) => v(t) && t.constructor.name === \"NodeList\" || !1, Bo = (t) => w(t).dir === \"rtl\", Vo = (t) => u(t) && t.constructor.name.includes(\"SVG\") || !1, Se = (t, e) => !t || !e ? null : t.closest(e) || Se(t.getRootNode().host, e) || null, Ho = (t, e) => i(t) ? t : (i(e) ? e : d()).querySelector(t), ke = (t, e) => (u(e) ? e : d()).getElementsByTagName(\n t\n), Uo = (t) => [...ke(\"*\", t)].filter(Ae), Wo = (t, e) => d(e).getElementById(t), Ro = (t, e) => (e && u(e) ? e : d()).getElementsByClassName(\n t\n);\nexport {\n Jn as ArrayFrom,\n H as DOMContentLoadedEvent,\n nt as DOMMouseScrollEvent,\n L as Data,\n oo as Float32ArrayFrom,\n so as Float64ArrayFrom,\n C as ObjectAssign,\n S as ObjectEntries,\n fo as ObjectFromEntries,\n io as ObjectHasOwn,\n uo as ObjectKeys,\n lo as ObjectValues,\n bo as Timer,\n J as abortEvent,\n Kn as addClass,\n yn as addEventListener,\n Zt as animationDelay,\n Gt as animationDuration,\n T as animationEndEvent,\n U as animationName,\n Ce as ariaChecked,\n Me as ariaDescribedBy,\n Te as ariaDescription,\n De as ariaExpanded,\n Le as ariaHasPopup,\n $ as ariaHidden,\n Oe as ariaLabel,\n xe as ariaLabelledBy,\n ze as ariaModal,\n Ie as ariaPressed,\n Pe as ariaSelected,\n Be as ariaValueMax,\n Fe as ariaValueMin,\n Ve as ariaValueNow,\n He as ariaValueText,\n X as beforeunloadEvent,\n An as bezierEasings,\n Y as blurEvent,\n I as camelCase,\n Yn as capitalize,\n tt as changeEvent,\n Se as closest,\n et as contextmenuEvent,\n po as createCustomEvent,\n ne as createElement,\n oe as createElementNS,\n G as dispatchEvent,\n to as distinct,\n Zn as documentBody,\n _n as documentElement,\n $n as documentHead,\n We as dragEvent,\n qe as dragendEvent,\n Qe as dragenterEvent,\n je as dragleaveEvent,\n Ke as dragoverEvent,\n Re as dragstartEvent,\n eo as emulateAnimationEnd,\n no as emulateTransitionEnd,\n ot as errorEvent,\n ro as focus,\n st as focusEvent,\n Xe as focusEvents,\n qt as focusableSelector,\n rt as focusinEvent,\n ct as focusoutEvent,\n at as gesturechangeEvent,\n it as gestureendEvent,\n ut as gesturestartEvent,\n j as getAttribute,\n Hn as getAttributeNS,\n y as getBoundingClientRect,\n Uo as getCustomElements,\n d as getDocument,\n wo as getDocumentBody,\n w as getDocumentElement,\n Ao as getDocumentHead,\n se as getElementAnimationDelay,\n re as getElementAnimationDuration,\n Wo as getElementById,\n f as getElementStyle,\n ce as getElementTransitionDelay,\n ae as getElementTransitionDuration,\n Ro as getElementsByClassName,\n ke as getElementsByTagName,\n Xn as getInstance,\n fe as getNodeName,\n So as getNodeScroll,\n ko as getOffsetParent,\n k as getParentNode,\n No as getRectRelativeToOffsetParent,\n ye as getUID,\n ge as getWindow,\n ee as hasAttribute,\n Un as hasAttributeNS,\n Gn as hasClass,\n de as hasFocusTrap,\n On as isApple,\n we as isArray,\n Co as isCanvas,\n Ae as isCustomElement,\n q as isDocument,\n i as isElement,\n To as isElementInScrollRange,\n Mo as isElementInViewport,\n Do as isElementsArray,\n xn as isFirefox,\n Lo as isFunction,\n Oo as isHTMLCollection,\n b as isHTMLElement,\n xo as isHTMLImageElement,\n zo as isJSON,\n O as isMap,\n Po as isMedia,\n Ln as isMobile,\n u as isNode,\n Fo as isNodeList,\n ie as isNumber,\n v as isObject,\n Bo as isRTL,\n Vo as isSVGElement,\n he as isScaledElement,\n pe as isShadowRoot,\n N as isString,\n me as isTableElement,\n Io as isWeakMap,\n Xt as isWebKit,\n K as isWindow,\n co as kebabCase,\n tn as keyAlt,\n en as keyArrowDown,\n on as keyArrowLeft,\n sn as keyArrowRight,\n nn as keyArrowUp,\n rn as keyBackspace,\n cn as keyCapsLock,\n an as keyControl,\n un as keyDelete,\n ln as keyEnter,\n fn as keyEscape,\n pn as keyInsert,\n gn as keyMeta,\n dn as keyNumpadEnter,\n mn as keyPause,\n vn as keyScrollLock,\n bn as keyShift,\n En as keySpace,\n hn as keyTab,\n Ye as keyboardEventKeys,\n lt as keydownEvent,\n dt as keypressEvent,\n ft as keyupEvent,\n pt as loadEvent,\n Ge as loadstartEvent,\n ve as matches,\n _e as mouseClickEvents,\n $e as mouseHoverEvents,\n Ze as mouseSwipeEvents,\n gt as mouseclickEvent,\n mt as mousedblclickEvent,\n vt as mousedownEvent,\n ht as mouseenterEvent,\n Et as mousehoverEvent,\n wt as mouseinEvent,\n yt as mouseleaveEvent,\n kt as mousemoveEvent,\n At as mouseoutEvent,\n St as mouseoverEvent,\n bt as mouseupEvent,\n Nt as mousewheelEvent,\n Ct as moveEvent,\n Ue as nativeEvents,\n Yt as noop,\n ao as normalizeOptions,\n P as normalizeValue,\n Q as off,\n Sn as offsetHeight,\n kn as offsetWidth,\n R as on,\n te as one,\n Tt as orientationchangeEvent,\n go as passiveHandler,\n Mt as pointercancelEvent,\n Dt as pointerdownEvent,\n Lt as pointerleaveEvent,\n Ot as pointermoveEvent,\n xt as pointerupEvent,\n Ho as querySelector,\n ue as querySelectorAll,\n zt as readystatechangeEvent,\n mo as reflow,\n Qn as removeAttribute,\n jn as removeAttributeNS,\n qn as removeClass,\n wn as removeEventListener,\n It as resetEvent,\n Pt as resizeEvent,\n Ht as scrollEvent,\n Nn as scrollHeight,\n Cn as scrollWidth,\n Ft as selectEvent,\n Bt as selectendEvent,\n Vt as selectstartEvent,\n Wn as setAttribute,\n Rn as setAttributeNS,\n vo as setElementStyle,\n Ut as submitEvent,\n zn as support3DTransform,\n Bn as supportAnimation,\n In as supportPassive,\n Fn as supportTouch,\n Pn as supportTransform,\n Vn as supportTransition,\n Tn as tabindex,\n Eo as toLowerCase,\n ho as toUpperCase,\n yo as toggleFocusTrap,\n Je as touchEvents,\n Qt as touchcancelEvent,\n jt as touchendEvent,\n Rt as touchmoveEvent,\n Wt as touchstartEvent,\n $t as transitionDelay,\n _t as transitionDuration,\n M as transitionEndEvent,\n W as transitionProperty,\n Kt as unloadEvent,\n Dn as userAgent,\n Mn as userAgentData,\n Ne as version\n};\n//# sourceMappingURL=shorty.mjs.map\n","const g = \"2.0.8\", e = {}, f = (t) => {\n const { type: n, currentTarget: c } = t;\n e[n].forEach((a, s) => {\n c === s && a.forEach((o, i) => {\n i.apply(s, [t]), typeof o == \"object\" && o.once && r(s, n, i, o);\n });\n });\n}, E = (t, n, c, a) => {\n e[n] || (e[n] = /* @__PURE__ */ new Map());\n const s = e[n];\n s.has(t) || s.set(t, /* @__PURE__ */ new Map());\n const o = s.get(\n t\n ), { size: i } = o;\n o.set(c, a), i || t.addEventListener(\n n,\n f,\n a\n );\n}, r = (t, n, c, a) => {\n const s = e[n], o = s && s.get(t), i = o && o.get(c), d = i !== void 0 ? i : a;\n o && o.has(c) && o.delete(c), s && (!o || !o.size) && s.delete(t), (!s || !s.size) && delete e[n], (!o || !o.size) && t.removeEventListener(\n n,\n f,\n d\n );\n}, M = E, p = r;\nexport {\n E as addListener,\n f as globalListener,\n p as off,\n M as on,\n e as registry,\n r as removeListener,\n g as version\n};\n//# sourceMappingURL=event-listener.mjs.map\n","/**\n * Global namespace for most components `fade` class.\n */\nconst fadeClass = \"fade\";\nexport default fadeClass;\n","/**\n * Global namespace for most components `show` class.\n */\nconst showClass = \"show\";\nexport default showClass;\n","/**\n * Global namespace for most components `dismiss` option.\n */\nconst dataBsDismiss = \"data-bs-dismiss\";\nexport default dataBsDismiss;\n","/** @type {string} */\nconst alertString = \"alert\";\nexport default alertString;\n","/** @type {string} */\nconst alertComponent = \"Alert\";\nexport default alertComponent;\n","import { getAttribute, hasClass } from \"@thednp/shorty\";\n\n/**\n * Check if interactive element is disabled.\n * @param target either a `',\n});\n\n/**\n * Static method which returns an existing `Popover` instance associated\n * to a target `Element`.\n */\nconst getPopoverInstance = (element: Element) =>\n getInstance(element, popoverComponent);\n\n/**\n * A `Popover` initialization callback.\n */\nconst popoverInitCallback = (element: Element) => new Popover(element);\n\n// POPOVER DEFINITION\n// ==================\n/** Returns a new `Popover` instance. */\nexport default class Popover extends Tooltip {\n static selector = popoverSelector;\n static init = popoverInitCallback;\n static getInstance = getPopoverInstance;\n static styleTip = styleTip;\n declare options: PopoverOptions;\n\n /**\n * @param target the target element\n * @param config the instance options\n */\n constructor(target: Element | string, config?: Partial) {\n super(target, config);\n }\n /**\n * Returns component name string.\n */\n get name() {\n return popoverComponent;\n }\n /**\n * Returns component default options.\n */\n get defaults() {\n return popoverDefaults;\n }\n\n /* extend original `show()` */\n show = () => {\n super.show();\n // btn only exists within dismissible popover\n const { options, btn } = this;\n // istanbul ignore else @preserve\n if (options.dismissible && btn) setTimeout(() => focus(btn), 17);\n };\n}\n","/** @type {string} */\nconst scrollspyString = \"scrollspy\";\nexport default scrollspyString;\n","/** @type {string} */\nconst scrollspyComponent = \"ScrollSpy\";\nexport default scrollspyComponent;\n","/* Native JavaScript for Bootstrap 5 | ScrollSpy\n------------------------------------------------ */\nimport {\n addClass,\n closest,\n createCustomEvent,\n dispatchEvent,\n getAttribute,\n getBoundingClientRect,\n getDocument,\n getDocumentElement,\n getElementById,\n getElementsByTagName,\n getInstance,\n hasClass,\n mouseclickEvent,\n MouseEvent,\n querySelector,\n removeClass,\n} from \"@thednp/shorty\";\n\nimport PositionObserver from \"@thednp/position-observer\";\nimport { addListener, removeListener } from \"@thednp/event-listener\";\n\nimport activeClass from \"~/strings/activeClass\";\nimport scrollspyString from \"~/strings/scrollspyString\";\nimport scrollspyComponent from \"~/strings/scrollspyComponent\";\nimport isDisabled from \"~/util/isDisabled\";\nimport BaseComponent from \"./base-component\";\nimport { ScrollSpyEvent, ScrollSpyOptions } from \"~/interface/scrollspy\";\n\n// SCROLLSPY PRIVATE GC\n// ====================\nconst scrollspySelector = '[data-bs-spy=\"scroll\"]';\nconst scrollSpyAnchorSelector = \"[href]\";\n\nconst scrollspyDefaults: Partial = {\n offset: 10,\n target: undefined,\n};\n\ntype ScrollSpyEventProps = {\n relatedTarget: HTMLElement;\n};\n\n/**\n * Static method which returns an existing `ScrollSpy` instance associated\n * to a target `Element`.\n */\nconst getScrollSpyInstance = (element: Element) =>\n getInstance(element, scrollspyComponent);\n\n/**\n * A `ScrollSpy` initialization callback.\n */\nconst scrollspyInitCallback = (element: Element) => new ScrollSpy(element);\n\n// SCROLLSPY CUSTOM EVENT\n// ======================\nconst activateScrollSpy = createCustomEvent<\n ScrollSpyEventProps,\n ScrollSpyEvent\n>(`activate.bs.${scrollspyString}`);\n\n// SCROLLSPY PRIVATE METHODS\n// =========================\n/**\n * Update the state of all items.\n *\n * @param self the `ScrollSpy` instance\n */\nconst updateSpyTargets = (self: ScrollSpy) => {\n const {\n target,\n _itemsLength,\n _observables,\n } = self;\n\n const links = getElementsByTagName(\"A\", target);\n const doc = getDocument(target);\n\n // only update items once or with each mutation\n // istanbul ignore else @preserve\n if (!links.length || _itemsLength === _observables.size) return;\n // reset arrays & update\n _observables.clear();\n\n Array.from(links).forEach((link) => {\n const hash = getAttribute(link, \"href\")?.slice(1);\n const targetItem = hash?.length ? doc.getElementById(hash) : null;\n\n if (targetItem && !isDisabled(link)) {\n self._observables.set(targetItem, link);\n }\n });\n self._itemsLength = self._observables.size;\n};\n\n/**\n * Clear all items of the target.\n *\n * @param target a single item\n */\nconst clear = (target: Element) => {\n Array.from(getElementsByTagName(\"A\", target)).forEach(\n (item) => {\n if (hasClass(item, activeClass)) removeClass(item, activeClass);\n },\n );\n};\n\n/**\n * Activates a new item.\n *\n * @param self the `ScrollSpy` instance\n * @param item a single item\n */\nconst activate = (self: ScrollSpy, item: HTMLElement) => {\n const { target, element } = self;\n\n // istanbul ignore else @preserve\n clear(target);\n\n self._activeItem = item;\n addClass(item, activeClass);\n\n // activate all parents\n let parentItem = item;\n while (parentItem !== target) {\n parentItem = parentItem.parentElement as HTMLElement;\n if (\n [\"nav\", \"dropdown-menu\", \"list-group\"].some((c) =>\n hasClass(parentItem, c)\n )\n ) {\n const parentLink = parentItem.previousElementSibling as\n | HTMLElement\n | null;\n\n // istanbul ignore else @preserve\n if (parentLink && !hasClass(parentLink, activeClass)) {\n addClass(parentLink, activeClass);\n }\n }\n }\n\n // dispatch\n activateScrollSpy.relatedTarget = item;\n dispatchEvent(element, activateScrollSpy);\n};\n\nconst getOffset = (self: ScrollSpy, target: HTMLElement) => {\n const { scrollTarget, element, options } = self;\n\n return (scrollTarget !== element\n ? getBoundingClientRect(target).top + scrollTarget.scrollTop\n : target.offsetTop) - (options.offset as number || 10);\n};\n\n// SCROLLSPY DEFINITION\n// ====================\n/** Returns a new `ScrollSpy` instance. */\nexport default class ScrollSpy extends BaseComponent {\n static selector = scrollspySelector;\n static init = scrollspyInitCallback;\n static getInstance = getScrollSpyInstance;\n declare element: HTMLElement;\n declare options: ScrollSpyOptions;\n declare target: HTMLElement;\n declare scrollTarget: HTMLElement;\n declare _itemsLength: number;\n declare _activeItem: HTMLElement | null;\n declare _observables: Map;\n declare _observer: PositionObserver; //| IntersectionObserver;\n\n /**\n * @param target the target element\n * @param config the instance options\n */\n constructor(\n target: Element | string,\n config?: Partial,\n ) {\n super(target, config);\n\n // initialization element & options\n const { element, options } = this;\n\n // get target\n const spyTarget = querySelector(\n options.target,\n getDocument(element),\n );\n\n // invalidate\n if (!spyTarget) return;\n this.target = spyTarget;\n\n // set initial state\n this.scrollTarget = element.clientHeight < element.scrollHeight\n ? element\n : getDocumentElement(element);\n this._observables = new Map();\n\n // run an initial burst, we need to know the targets\n this.refresh();\n // updateSpyTargets(this);\n\n // create observer\n this._observer = new PositionObserver(() => {\n requestAnimationFrame(() => this.refresh());\n }, {\n root: this.scrollTarget,\n });\n\n // add event handlers\n this._toggleEventListeners(true);\n }\n\n /* eslint-disable */\n /**\n * Returns component name string.\n */\n get name() {\n return scrollspyComponent;\n }\n /**\n * Returns component default options.\n */\n get defaults() {\n return scrollspyDefaults;\n }\n /* eslint-enable */\n\n // SCROLLSPY PUBLIC METHODS\n // ========================\n /** Updates all items. */\n refresh = () => {\n const { target, scrollTarget } = this;\n // check if target is visible and invalidate\n // istanbul ignore if @preserve\n if (!target || target.offsetHeight === 0) return;\n\n updateSpyTargets(this);\n const { _itemsLength, _observables, _activeItem } = this;\n\n // istanbul ignore if @preserve\n if (!_itemsLength) return;\n const entries = _observables.entries().toArray();\n\n const { scrollTop, scrollHeight, clientHeight } = scrollTarget;\n\n if (scrollTop >= scrollHeight - clientHeight) {\n const newActiveItem = entries[_itemsLength - 1]?.[1];\n\n // istanbul ignore else @preserve\n if (_activeItem !== newActiveItem) activate(this, newActiveItem);\n return;\n }\n\n const firstOffset = entries[0]?.[0]\n ? getOffset(this, entries[0][0])\n : /* istanbul ignore next */ null;\n if (\n firstOffset !== null && scrollTop < firstOffset &&\n firstOffset > 0\n ) {\n this._activeItem = null;\n clear(target);\n return;\n }\n\n for (let i = 0; i < _itemsLength; i += 1) {\n const [targetItem, item] = entries[i];\n const offsetTop = getOffset(this, targetItem);\n const nextTarget = entries[i + 1]?.[0];\n const nextOffsetTop = nextTarget\n ? getOffset(this, nextTarget)\n : /* istanbul ignore next */ null;\n\n // istanbul ignore else @preserve\n if (\n _activeItem !== item &&\n scrollTop >= offsetTop &&\n (nextOffsetTop === null || scrollTop < nextOffsetTop)\n ) {\n activate(this, item);\n break;\n }\n }\n };\n\n /**\n * This method provides an event handle\n * for scrollspy\n * @param e the event listener object\n */\n _scrollTo = (e: MouseEvent) => {\n const item = closest(e.target, scrollSpyAnchorSelector);\n const hash = item && getAttribute(item, \"href\")?.slice(1);\n const targetItem = hash && getElementById(hash, this.target);\n\n // istanbul ignore else @preserve\n if (targetItem) {\n this.scrollTarget.scrollTo({\n top: targetItem.offsetTop,\n behavior: \"smooth\",\n });\n e.preventDefault();\n }\n };\n\n /**\n * Toggles on/off the component observer.\n *\n * @param self the ScrollSpy instance\n * @param add when `true`, listener is added\n */\n _toggleEventListeners = (\n add?: boolean,\n ) => {\n const { target, _observables, _observer, _scrollTo } = this;\n const action = add ? addListener : removeListener;\n action(target, mouseclickEvent, _scrollTo);\n\n if (add) {\n _observables?.forEach((_, targetItem) => _observer.observe(targetItem));\n } else _observer.disconnect();\n };\n\n /** Removes `ScrollSpy` from the target element. */\n dispose() {\n this._toggleEventListeners();\n super.dispose();\n }\n}\n","/** @type {string} */\nconst tabString = \"tab\";\nexport default tabString;\n","/** @type {string} */\nconst tabComponent = \"Tab\";\nexport default tabComponent;\n","/* Native JavaScript for Bootstrap 5 | Tab\n------------------------------------------ */\nimport {\n addClass,\n ariaSelected,\n closest,\n createCustomEvent,\n dispatchEvent,\n emulateTransitionEnd,\n getElementsByClassName,\n getInstance,\n hasClass,\n isHTMLElement,\n mouseclickEvent,\n MouseEvent,\n querySelector,\n reflow,\n removeClass,\n setAttribute,\n Timer,\n} from \"@thednp/shorty\";\n\nimport { addListener, removeListener } from \"@thednp/event-listener\";\n\nimport collapsingClass from \"~/strings/collapsingClass\";\nimport activeClass from \"~/strings/activeClass\";\nimport fadeClass from \"~/strings/fadeClass\";\nimport showClass from \"~/strings/showClass\";\nimport dropdownClasses from \"~/strings/dropdownClasses\";\nimport dataBsToggle from \"~/strings/dataBsToggle\";\nimport tabString from \"~/strings/tabString\";\nimport tabComponent from \"~/strings/tabComponent\";\nimport getTargetElement from \"~/util/getTargetElement\";\nimport BaseComponent from \"./base-component\";\nimport type { /* TabOptions, */ TabEvent } from \"~/interface/tab\";\n\n// TAB PRIVATE GC\n// ================\nconst tabSelector = `[${dataBsToggle}=\"${tabString}\"]`;\n\n/**\n * Static method which returns an existing `Tab` instance associated\n * to a target `Element`.\n */\nconst getTabInstance = (element: Element) =>\n getInstance(element, tabComponent);\n\n/** A `Tab` initialization callback. */\nconst tabInitCallback = (element: Element) => new Tab(element);\n\ntype TabEventProps = {\n relatedTarget: Element & EventTarget | undefined;\n};\n\n// TAB CUSTOM EVENTS\n// =================\nconst showTabEvent = createCustomEvent(\n `show.bs.${tabString}`,\n);\nconst shownTabEvent = createCustomEvent(\n `shown.bs.${tabString}`,\n);\nconst hideTabEvent = createCustomEvent(\n `hide.bs.${tabString}`,\n);\nconst hiddenTabEvent = createCustomEvent(\n `hidden.bs.${tabString}`,\n);\n\ninterface TabPrivate {\n tab: HTMLElement | null;\n content: HTMLElement | null;\n currentHeight: number;\n nextHeight: number;\n}\n\n/**\n * Stores the current active tab and its content\n * for a given `.nav` element.\n */\nconst tabPrivate: Map = new Map();\n\n// TAB PRIVATE METHODS\n// ===================\n/**\n * Executes after tab transition has finished.\n *\n * @param self the `Tab` instance\n */\nconst triggerTabEnd = (self: Tab) => {\n const { tabContent, nav } = self;\n\n // istanbul ignore else @preserve\n if (tabContent && hasClass(tabContent, collapsingClass)) {\n tabContent.style.height = \"\";\n removeClass(tabContent, collapsingClass);\n }\n\n // istanbul ignore else @preserve\n if (nav) Timer.clear(nav);\n};\n\n/**\n * Executes before showing the tab content.\n *\n * @param self the `Tab` instance\n */\nconst triggerTabShow = (self: Tab) => {\n const { element, tabContent, content: nextContent, nav } = self;\n const { tab } = (isHTMLElement(nav) && tabPrivate.get(nav)) ||\n // istanbul ignore next @preserve\n { tab: null };\n\n // istanbul ignore else @preserve\n if (tabContent && nextContent && hasClass(nextContent, fadeClass)) {\n const { currentHeight, nextHeight } = tabPrivate.get(element) ||\n // istanbul ignore next @preserve\n { currentHeight: 0, nextHeight: 0 };\n // istanbul ignore else @preserve: vitest won't validate this branch\n if (currentHeight !== nextHeight) {\n // enables height animation\n setTimeout(() => {\n tabContent.style.height = `${nextHeight}px`;\n reflow(tabContent);\n emulateTransitionEnd(tabContent, () => triggerTabEnd(self));\n }, 50);\n } else {\n triggerTabEnd(self);\n }\n } else if (nav) Timer.clear(nav);\n\n shownTabEvent.relatedTarget = tab as HTMLElement | undefined;\n\n dispatchEvent(element, shownTabEvent);\n};\n\n/**\n * Executes before hiding the tab.\n *\n * @param self the `Tab` instance\n */\nconst triggerTabHide = (self: Tab) => {\n const { element, content: nextContent, tabContent, nav } = self;\n const { tab, content } = (nav && tabPrivate.get(nav)) ||\n // istanbul ignore next @preserve\n { tab: null, content: null };\n let currentHeight = 0;\n\n // istanbul ignore else @preserve\n if (tabContent && nextContent && hasClass(nextContent, fadeClass)) {\n [content, nextContent].forEach((c) => {\n // istanbul ignore else @preserve\n if (c) addClass(c, \"overflow-hidden\");\n });\n currentHeight = content\n ? content.scrollHeight\n : /* istanbul ignore next @preserve */ 0;\n }\n\n // update relatedTarget and dispatch event\n showTabEvent.relatedTarget = tab as HTMLElement | undefined;\n hiddenTabEvent.relatedTarget = element as HTMLElement;\n dispatchEvent(element, showTabEvent);\n\n // istanbul ignore if @preserve\n if (showTabEvent.defaultPrevented) return;\n // istanbul ignore else @preserve\n if (nextContent) addClass(nextContent, activeClass);\n // istanbul ignore else @preserve\n if (content) removeClass(content, activeClass);\n\n // istanbul ignore else @preserve\n if (tabContent && nextContent && hasClass(nextContent, fadeClass)) {\n const nextHeight = nextContent.scrollHeight;\n tabPrivate.set(element, {\n currentHeight,\n nextHeight,\n tab: null,\n content: null,\n });\n\n addClass(tabContent, collapsingClass);\n tabContent.style.height = `${currentHeight}px`;\n reflow(tabContent);\n [content, nextContent].forEach((c) => {\n // istanbul ignore else @preserve\n if (c) removeClass(c, \"overflow-hidden\");\n });\n }\n\n if (nextContent && nextContent && hasClass(nextContent, fadeClass)) {\n setTimeout(() => {\n addClass(nextContent, showClass);\n emulateTransitionEnd(nextContent, () => {\n triggerTabShow(self);\n });\n }, 1);\n } else {\n // istanbul ignore else @preserve\n if (nextContent) addClass(nextContent, showClass);\n triggerTabShow(self);\n }\n\n // istanbul ignore else @preserve\n if (tab) dispatchEvent(tab, hiddenTabEvent);\n};\n\n/**\n * Returns the current active tab and its target content.\n *\n * @param self the `Tab` instance\n * @returns the query result\n */\nconst getActiveTab = (\n self: Tab,\n): { tab: HTMLElement | null; content: HTMLElement | null } => {\n const { nav } = self;\n // istanbul ignore next @preserve\n if (!isHTMLElement(nav)) {\n return { tab: null, content: null };\n }\n\n const activeTabs = getElementsByClassName(\n activeClass,\n nav,\n );\n let tab: HTMLElement | null = null;\n // istanbul ignore else @preserve\n if (\n activeTabs.length === 1 &&\n !dropdownClasses.some((c) =>\n hasClass(activeTabs[0].parentElement as HTMLElement, c)\n )\n ) {\n [tab] = activeTabs;\n } else if (activeTabs.length > 1) {\n tab = activeTabs[activeTabs.length - 1];\n }\n const content = isHTMLElement(tab) ? getTargetElement(tab) : null;\n return { tab, content };\n};\n\n/**\n * Returns a parent dropdown.\n *\n * @param element the `Tab` element\n * @returns the parent dropdown\n */\nconst getParentDropdown = (element?: HTMLElement) => {\n // istanbul ignore next @preserve\n if (!isHTMLElement(element)) return null;\n const dropdown = closest(element, `.${dropdownClasses.join(\",.\")}`);\n return dropdown\n ? querySelector(`.${dropdownClasses[0]}-toggle`, dropdown)\n : null;\n};\n\n// TAB EVENT HANDLER\n// =================\n/**\n * Handles the `click` event listener.\n *\n * @param e the `Event` object\n */\nconst tabClickHandler = (e: MouseEvent) => {\n const element = closest(e.target, tabSelector);\n const self = element && getTabInstance(element);\n\n // istanbul ignore if @preserve\n if (!self) return;\n e.preventDefault();\n self.show();\n};\n\n// TAB DEFINITION\n// ==============\n/** Creates a new `Tab` instance. */\nexport default class Tab extends BaseComponent {\n static selector = tabSelector;\n static init = tabInitCallback;\n static getInstance = getTabInstance;\n declare element: HTMLElement;\n declare nav: HTMLElement | null;\n declare content: HTMLElement | null;\n declare tabContent: HTMLElement | null;\n declare nextContent: HTMLElement | null;\n declare dropdown: HTMLElement | null;\n\n /** @param target the target element */\n constructor(target: Element | string) {\n super(target);\n\n // initialization element\n const { element } = this;\n const content = getTargetElement(element);\n\n // no point initializing a tab without a corresponding content\n // istanbul ignore else @preserve\n if (!content) return;\n\n const nav = closest(element, \".nav\");\n const container = closest(\n content as HTMLElement,\n \".tab-content\",\n );\n\n this.nav = nav;\n this.content = content;\n this.tabContent = container;\n\n // event targets\n this.dropdown = getParentDropdown(element);\n\n // show first Tab instance of none is shown\n // suggested on #432\n const { tab } = getActiveTab(this);\n if (nav && !tab) {\n const firstTab = querySelector(tabSelector, nav);\n const firstTabContent = firstTab && getTargetElement(firstTab);\n\n // istanbul ignore else @preserve\n if (firstTabContent) {\n addClass(firstTab, activeClass);\n addClass(firstTabContent, showClass);\n addClass(firstTabContent, activeClass);\n setAttribute(element, ariaSelected, \"true\");\n }\n }\n\n // add event listener\n this._toggleEventListeners(true);\n }\n\n /**\n * Returns component name string.\n */\n get name() {\n return tabComponent;\n }\n\n // TAB PUBLIC METHODS\n // ==================\n /** Shows the tab to the user. */\n show() {\n const { element, content: nextContent, nav, dropdown } = this;\n\n // istanbul ignore else @preserve\n if ((nav && Timer.get(nav)) || hasClass(element, activeClass)) return;\n const { tab, content } = getActiveTab(this);\n\n // istanbul ignore else @preserve\n if (nav && tab) {\n tabPrivate.set(nav, { tab, content, currentHeight: 0, nextHeight: 0 });\n }\n\n // update relatedTarget and dispatch\n hideTabEvent.relatedTarget = element as HTMLElement;\n\n // istanbul ignore if @preserve\n if (!isHTMLElement(tab)) return;\n\n dispatchEvent(tab, hideTabEvent);\n\n // istanbul ignore else @preserve\n if (hideTabEvent.defaultPrevented) return;\n\n addClass(element, activeClass);\n setAttribute(element, ariaSelected, \"true\");\n\n const activeDropdown = isHTMLElement(tab) && getParentDropdown(tab);\n if (activeDropdown && hasClass(activeDropdown, activeClass)) {\n removeClass(activeDropdown, activeClass);\n }\n\n // istanbul ignore else @preserve\n if (nav) {\n const toggleTab = () => {\n // istanbul ignore else @preserve\n if (tab) {\n removeClass(tab, activeClass);\n setAttribute(tab, ariaSelected, \"false\");\n }\n if (dropdown && !hasClass(dropdown, activeClass)) {\n addClass(dropdown, activeClass);\n }\n };\n\n if (\n content &&\n (hasClass(content, fadeClass) ||\n (nextContent && hasClass(nextContent, fadeClass)))\n ) {\n Timer.set(nav, toggleTab, 1);\n } else toggleTab();\n }\n\n // istanbul ignore else @preserve\n if (content) {\n removeClass(content, showClass);\n if (hasClass(content, fadeClass)) {\n emulateTransitionEnd(content, () => triggerTabHide(this));\n } else {\n triggerTabHide(this);\n }\n }\n }\n\n /**\n * Toggles on/off the `click` event listener.\n *\n * @param add when `true`, event listener is added\n */\n _toggleEventListeners = (add?: boolean) => {\n const action = add ? addListener : removeListener;\n action(this.element, mouseclickEvent, tabClickHandler);\n };\n\n /** Removes the `Tab` component from the target element. */\n dispose() {\n this._toggleEventListeners();\n super.dispose();\n }\n}\n","/** @type {string} */\nconst toastString = \"toast\";\nexport default toastString;\n","/** @type {string} */\nconst toastComponent = \"Toast\";\nexport default toastComponent;\n","/* Native JavaScript for Bootstrap 5 | Toast\n-------------------------------------------- */\nimport {\n addClass,\n createCustomEvent,\n dispatchEvent,\n emulateTransitionEnd,\n focusinEvent,\n focusoutEvent,\n getDocument,\n getInstance,\n hasClass,\n mouseclickEvent,\n mouseenterEvent,\n MouseEvent,\n mouseleaveEvent,\n querySelector,\n querySelectorAll,\n reflow,\n removeClass,\n Timer,\n} from \"@thednp/shorty\";\n\nimport { addListener, removeListener } from \"@thednp/event-listener\";\n\nimport fadeClass from \"~/strings/fadeClass\";\nimport showClass from \"~/strings/showClass\";\nimport dataBsDismiss from \"~/strings/dataBsDismiss\";\nimport dataBsToggle from \"~/strings/dataBsToggle\";\nimport toastString from \"~/strings/toastString\";\nimport toastComponent from \"~/strings/toastComponent\";\nimport getTargetElement from \"~/util/getTargetElement\";\nimport isDisabled from \"~/util/isDisabled\";\nimport BaseComponent from \"./base-component\";\nimport { ToastEvent, ToastOptions } from \"~/interface/toast\";\n\n// TOAST PRIVATE GC\n// ================\nconst toastSelector = `.${toastString}`;\nconst toastDismissSelector = `[${dataBsDismiss}=\"${toastString}\"]`;\nconst toastToggleSelector = `[${dataBsToggle}=\"${toastString}\"]`;\nconst showingClass = \"showing\";\n/** @deprecated */\nconst hideClass = \"hide\";\n\nconst toastDefaults = {\n animation: true,\n autohide: true,\n delay: 5000,\n};\n\n/**\n * Static method which returns an existing `Toast` instance associated\n * to a target `Element`.\n */\nconst getToastInstance = (element: Element) =>\n getInstance(element, toastComponent);\n\n/**\n * A `Toast` initialization callback.\n */\nconst toastInitCallback = (element: Element) => new Toast(element);\n\n// TOAST CUSTOM EVENTS\n// ===================\nconst showToastEvent = createCustomEvent, ToastEvent>(\n `show.bs.${toastString}`,\n);\nconst shownToastEvent = createCustomEvent, ToastEvent>(\n `shown.bs.${toastString}`,\n);\nconst hideToastEvent = createCustomEvent, ToastEvent>(\n `hide.bs.${toastString}`,\n);\nconst hiddenToastEvent = createCustomEvent, ToastEvent>(\n `hidden.bs.${toastString}`,\n);\n\n// TOAST PRIVATE METHODS\n// =====================\n/**\n * Executes after the toast is shown to the user.\n *\n * @param self the `Toast` instance\n */\nconst showToastComplete = (self: Toast) => {\n const { element, options } = self;\n removeClass(element, showingClass);\n Timer.clear(element, showingClass);\n\n dispatchEvent(element, shownToastEvent);\n // istanbul ignore else @preserve\n if (options.autohide) {\n Timer.set(element, () => self.hide(), options.delay, toastString);\n }\n};\n\n/**\n * Executes after the toast is hidden to the user.\n *\n * @param self the `Toast` instance\n */\nconst hideToastComplete = (self: Toast) => {\n const { element } = self;\n removeClass(element, showingClass);\n removeClass(element, showClass);\n addClass(element, hideClass); // B/C\n Timer.clear(element, toastString);\n dispatchEvent(element, hiddenToastEvent);\n};\n\n/**\n * Executes before hiding the toast.\n *\n * @param self the `Toast` instance\n */\nconst hideToast = (self: Toast) => {\n const { element, options } = self;\n addClass(element, showingClass);\n\n if (options.animation) {\n reflow(element as HTMLElement);\n emulateTransitionEnd(element, () => hideToastComplete(self));\n } else {\n hideToastComplete(self);\n }\n};\n\n/**\n * Executes before showing the toast.\n *\n * @param self the `Toast` instance\n */\nconst showToast = (self: Toast) => {\n const { element, options } = self;\n Timer.set(\n element,\n () => {\n removeClass(element, hideClass); // B/C\n reflow(element as HTMLElement);\n addClass(element, showClass);\n addClass(element, showingClass);\n\n if (options.animation) {\n emulateTransitionEnd(element, () => showToastComplete(self));\n } else {\n showToastComplete(self);\n }\n },\n 17,\n showingClass,\n );\n};\n\n// TOAST EVENT HANDLERS\n// ====================\n/**\n * Handles the `click` event listener for toast.\n *\n * @param e the `Event` object\n */\nfunction toastClickHandler(this: HTMLElement, e: Event) {\n const element = getTargetElement(this);\n const self = element && getToastInstance(element);\n\n // istanbul ignore if @preserve\n if (isDisabled(this)) return;\n // istanbul ignore if @preserve\n if (!self) return;\n // istanbul ignore else @preserve\n if (this.tagName === \"A\") e.preventDefault();\n self.relatedTarget = this;\n self.show();\n}\n\n/**\n * Executes when user interacts with the toast without closing it,\n * usually by hovering or focusing it.\n *\n * @param e the `Toast` instance\n */\nconst interactiveToastHandler = (e: MouseEvent) => {\n const element = e.target;\n const self = getToastInstance(element);\n const { type, relatedTarget } = e;\n\n // istanbul ignore if @preserve: a solid filter is required\n if (\n !self || element === relatedTarget ||\n element.contains(relatedTarget as Node)\n ) return;\n\n if ([mouseenterEvent, focusinEvent].includes(type)) {\n Timer.clear(element, toastString);\n } else {\n Timer.set(element, () => self.hide(), self.options.delay, toastString);\n }\n};\n\n// TOAST DEFINITION\n// ================\n/** Creates a new `Toast` instance. */\nexport default class Toast extends BaseComponent {\n static selector = toastSelector;\n static init = toastInitCallback;\n static getInstance = getToastInstance;\n declare element: HTMLElement;\n declare options: ToastOptions;\n declare dismiss: HTMLElement | null;\n declare triggers: HTMLElement[];\n declare relatedTarget: HTMLElement | null;\n\n /**\n * @param target the target `.toast` element\n * @param config the instance options\n */\n constructor(target: Element | string, config?: Partial) {\n super(target, config);\n const { element, options } = this;\n\n // set fadeClass, the options.animation will override the markup\n if (options.animation && !hasClass(element, fadeClass)) {\n addClass(element, fadeClass);\n } else if (!options.animation && hasClass(element, fadeClass)) {\n removeClass(element, fadeClass);\n }\n\n // dismiss button\n this.dismiss = querySelector(toastDismissSelector, element);\n\n // toast can have multiple triggering elements\n this.triggers = [\n ...querySelectorAll(\n toastToggleSelector,\n getDocument(element),\n ),\n ].filter(\n (btn) => getTargetElement(btn) === element,\n );\n\n // add event listener\n this._toggleEventListeners(true);\n }\n /**\n * Returns component name string.\n */\n get name() {\n return toastComponent;\n }\n /**\n * Returns component default options.\n */\n get defaults() {\n return toastDefaults;\n }\n /**\n * Returns *true* when toast is visible.\n */\n get isShown() {\n return hasClass(this.element, showClass);\n }\n\n // TOAST PUBLIC METHODS\n // ====================\n /** Shows the toast. */\n show = () => {\n const { element, isShown } = this;\n\n // istanbul ignore if @preserve\n if (!element || isShown) return;\n\n dispatchEvent(element, showToastEvent);\n if (!showToastEvent.defaultPrevented) showToast(this);\n };\n\n /** Hides the toast. */\n hide = () => {\n const { element, isShown } = this;\n\n // istanbul ignore if @preserve\n if (!element || !isShown) return;\n\n dispatchEvent(element, hideToastEvent);\n if (!hideToastEvent.defaultPrevented) hideToast(this);\n };\n\n /**\n * Toggles on/off the `click` event listener.\n *\n * @param add when `true`, it will add the listener\n */\n _toggleEventListeners = (add?: boolean) => {\n const action = add ? addListener : removeListener;\n const { element, triggers, dismiss, options, hide } = this;\n\n // istanbul ignore else @preserve\n if (dismiss) {\n action(dismiss, mouseclickEvent, hide);\n }\n\n // istanbul ignore else @preserve\n if (options.autohide) {\n [focusinEvent, focusoutEvent, mouseenterEvent, mouseleaveEvent].forEach(\n (e) => action(element, e, interactiveToastHandler),\n );\n }\n // istanbul ignore else @preserve\n if (triggers.length) {\n triggers.forEach((btn) => {\n action(btn, mouseclickEvent, toastClickHandler);\n });\n }\n };\n\n /** Removes the `Toast` component from the target element. */\n dispose() {\n const { element, isShown } = this;\n this._toggleEventListeners();\n Timer.clear(element, toastString);\n\n if (isShown) removeClass(element, showClass);\n\n super.dispose();\n }\n}\n","import { Data, getElementsByTagName, matches } from \"@thednp/shorty\";\n\nimport { addListener } from \"@thednp/event-listener\";\n\nimport Alert from \"../components/alert\";\nimport Button from \"../components/button\";\nimport Carousel from \"../components/carousel\";\nimport Collapse from \"../components/collapse\";\nimport Dropdown from \"../components/dropdown\";\nimport Modal from \"../components/modal\";\nimport Offcanvas from \"../components/offcanvas\";\nimport Popover from \"../components/popover\";\nimport ScrollSpy from \"../components/scrollspy\";\nimport Tab from \"../components/tab\";\nimport Toast from \"../components/toast\";\nimport Tooltip from \"../components/tooltip\";\n\nconst componentsList = new Map<\n string,\n | typeof Alert\n | typeof Button\n | typeof Carousel\n | typeof Collapse\n | typeof Dropdown\n | typeof Modal\n | typeof Offcanvas\n | typeof Popover\n | typeof ScrollSpy\n | typeof Tab\n | typeof Toast\n | typeof Tooltip\n>();\n\ntype Component =\n | Alert\n | Button\n | Carousel\n | Collapse\n | Dropdown\n | Modal\n | Offcanvas\n | Popover\n | ScrollSpy\n | Tab\n | Toast\n | Tooltip;\n\n[\n Alert,\n Button,\n Carousel,\n Collapse,\n Dropdown,\n Modal,\n Offcanvas,\n Popover,\n ScrollSpy,\n Tab,\n Toast,\n Tooltip,\n].forEach((c) => componentsList.set(c.prototype.name, c));\n\n/**\n * Initialize all matched `Element`s for one component.\n *\n * @param callback\n * @param collection\n */\nconst initComponentDataAPI = (\n callback: (el: Element) => Component,\n collection: HTMLCollectionOf | Element[],\n) => {\n [...collection].forEach((x) => callback(x));\n};\n\n/**\n * Remove one component from a target container element or all in the page.\n *\n * @param component the component name\n * @param context parent `Node`\n */\nconst removeComponentDataAPI = (component: string, context: ParentNode) => {\n const compData = Data.getAllFor(component) as Map;\n\n if (compData) {\n [...compData].forEach(([element, instance]) => {\n if (context.contains(element)) {\n (instance as T & { dispose: () => void }).dispose();\n }\n });\n }\n};\n\n/**\n * Initialize all BSN components for a target container.\n *\n * @param context parent `Node`\n */\nexport const initCallback = (context?: ParentNode) => {\n const lookUp = context && context.nodeName ? context : document;\n const elemCollection = [...getElementsByTagName(\"*\", lookUp)];\n\n componentsList.forEach((cs) => {\n const { init, selector } = cs;\n initComponentDataAPI(\n init,\n elemCollection.filter((item) => matches(item, selector)),\n );\n });\n};\n\n/**\n * Remove all BSN components for a target container.\n *\n * @param context parent `Node`\n */\nexport const removeDataAPI = (context?: ParentNode) => {\n const lookUp = context && context.nodeName ? context : document;\n\n componentsList.forEach((comp) => {\n removeComponentDataAPI(comp.prototype.name, lookUp);\n });\n};\n\n// Bulk initialize all components\nif (document.body) initCallback();\nelse {\n addListener(document, \"DOMContentLoaded\", () => initCallback(), {\n once: true,\n });\n}\n"],"names":["Me","De","$","ze","Ie","Pe","st","rt","ct","lt","ft","gt","vt","Et","ht","yt","Dt","Ot","xt","Wt","Re","qt","en","nn","on","sn","fn","_t","$t","M","W","On","t","e","Yt","R","n","o","s","Q","j","ee","Wn","Qn","Kn","qn","Gn","v","u","i","E","L","Xn","I","N","K","q","d","C","ne","G","f","ce","ae","no","r","a","l","ro","P","S","ao","p","c","g","A","uo","po","go","mo","vo","O","ie","m","bo","Eo","ue","x","le","de","yo","b","y","wo","w","So","pe","k","ge","me","ve","he","No","B","V","h","ye","we","To","Lo","Fo","Bo","Se","Ho","ke","Wo","Ro","fadeClass","showClass","dataBsDismiss","alertString","alertComponent","isDisabled","target","hasClass","getAttribute","Version","BaseComponent","config","element","isElement","isString","querySelector","prevInstance","Data","ObjectKeys","normalizeOptions","prop","alertSelector","alertDismissSelector","getAlertInstance","getInstance","alertInitCallback","Alert","closeAlertEvent","createCustomEvent","closedAlertEvent","alertTransitionEnd","self","dispatchEvent","dismiss","removeClass","emulateTransitionEnd","add","action","addListener","removeListener","close","mouseclickEvent","activeClass","dataBsToggle","buttonString","buttonComponent","buttonSelector","getButtonInstance","buttonInitCallback","Button","setAttribute","ariaPressed","isActive","addClass","dataBsTarget","carouselString","carouselComponent","dataBsParent","dataBsContainer","getTargetElement","targetAttr","doc","getDocument","att","attValue","closest","carouselSelector","carouselItem","dataBsSlideTo","dataBsSlide","pausedClass","carouselDefaults","getCarouselInstance","carouselInitCallback","Carousel","startX","currentX","endX","carouselSlideEvent","carouselSlidEvent","carouselTransitionEndHandler","index","direction","slides","options","activeItem","getActiveIndex","orientation","directionClass","Timer","carouselPauseHandler","carouselResumeHandler","carouselIndicatorHandler","newIndex","carouselControlsHandler","carouselKeyHandler","code","querySelectorAll","isElementInScrollRange","RTL","isRTL","keyArrowRight","keyArrowLeft","carouselDragHandler","carouselPointerDownHandler","controls","indicators","el","toggleCarouselTouchHandlers","carouselPointerMoveHandler","carouselPointerUpHandler","activateCarouselIndicator","pointermoveEvent","passiveHandler","pointerupEvent","getElementsByClassName","activeIndex","transitionItem","matches","ar","isPaused","idx","next","eventProperties","ObjectAssign","getElementTransitionDuration","reflow","touch","pause","interval","keyboard","mouseenterEvent","mouseleaveEvent","pointerdownEvent","touchstartEvent","dragstartEvent","arrow","indicator","keydownEvent","isAnimating","clone","collapsingClass","collapseString","collapseComponent","collapseSelector","collapseToggleSelector","collapseDefaults","getCollapseInstance","collapseInitCallback","Collapse","showCollapseEvent","shownCollapseEvent","hideCollapseEvent","hiddenCollapseEvent","expandCollapse","parent","triggers","noop","setElementStyle","btn","ariaExpanded","collapseContent","collapseClickHandler","trigger","isHTMLElement","activeCollapse","activeCollapseInstance","_","dropdownMenuClasses","dropdownComponent","dropdownMenuClass","isEmptyAnchor","parentAnchor","hasAttribute","dropdownString","dropupString","dropstartString","dropendString","dropdownClasses","dropdownSelector","getDropdownInstance","dropdownInitCallback","Dropdown","dropdownMenuEndClass","verticalClass","horizontalClass","menuFocusTags","dropdownDefaults","showDropdownEvent","shownDropdownEvent","hideDropdownEvent","hiddenDropdownEvent","updatedDropdownEvent","styleDropdown","menu","parentElement","offset","getElementStyle","menuEnd","style","positionClass","dropdownMargin","dropdownPosition","menuWidth","menuHeight","clientWidth","clientHeight","getDocumentElement","targetLeft","targetTop","targetWidth","targetHeight","getBoundingClientRect","leftFullExceed","rightFullExceed","bottomExceed","bottomFullExceed","topExceed","leftExceed","rightExceed","posAjust","margins","getMenuItems","firstElementChild","toggleDropdownDismiss","dropdownDismissHandler","focusEvent","dropdownPreventScroll","keyupEvent","dropdownKeyHandler","getCurrentOpenDropdown","currentParent","type","isForm","mousedownEvent","dropdownClickHandler","keyArrowDown","keyArrowUp","activeElement","open","menuItems","focus","keyEscape","PositionObserver","currentElement","currentInstance","modalString","modalComponent","offcanvasComponent","fixedTopClass","fixedBottomClass","stickyTopClass","positionStickyClass","getFixedItems","resetScrollbar","bd","getDocumentBody","fixedItems","fixed","measureScrollbar","innerWidth","getWindow","setScrollbar","overflow","bodyPad","sbWidth","itemPadValue","itemMValue","offcanvasString","popupContainer","createElement","appendPopup","customContainer","containerIsBody","isNode","lookup","BODY","removePopup","hasPopup","backdropString","modalBackdropClass","offcanvasBackdropClass","modalActiveSelector","offcanvasActiveSelector","overlay","getCurrentOpen","toggleOverlayType","isModal","targetClass","appendOverlay","hasFade","showOverlay","hideOverlay","removeOverlay","isVisible","modalSelector","modalToggleSelector","modalDismissSelector","modalStaticClass","modalDefaults","getModalInstance","modalInitCallback","Modal","showModalEvent","shownModalEvent","hideModalEvent","hiddenModalEvent","setModalScrollbar","scrollbarWidth","scrollHeight","modalHeight","modalScrollHeight","modalOverflow","padStyle","toggleModalDismiss","modalDismissHandler","modalKeyHandler","afterModalHide","relatedTarget","focusElement","toggleFocusTrap","afterModalShow","beforeModalShow","removeAttribute","ariaHidden","ariaModal","beforeModalHide","modalClickHandler","currentTarget","isStatic","modalDialog","backdrop","selectedText","targetInsideDialog","staticTransitionEnd","duration","overlayDelay","currentOpen","that","callback","offcanvasSelector","offcanvasToggleSelector","offcanvasDismissSelector","offcanvasTogglingClass","offcanvasDefaults","getOffcanvasInstance","offcanvasInitCallback","Offcanvas","showOffcanvasEvent","shownOffcanvasEvent","hideOffcanvasEvent","hiddenOffcanvasEvent","setOffCanvasScrollbar","toggleOffCanvasDismiss","offcanvasKeyDismissHandler","offcanvasDismissHandler","beforeOffcanvasShow","showOffcanvasComplete","beforeOffcanvasHide","hideOffcanvasComplete","offcanvasTriggerHandler","offCanvasDismiss","selection","visibleTrigger","isOpen","popoverString","popoverComponent","tooltipString","getTipTemplate","tipType","isTooltip","bodyClass","header","body","tipClassPositions","styleTip","tipClasses","tooltip","container","offsetParent","scrollLeft","scrollTop","getNodeScroll","tipWidth","tipHeight","htmlcw","htmlch","htmlow","placement","parentCWidth","parentOWidth","fixedParent","leftBoundry","rightBoundry","observerEntry","elemWidth","elemHeight","elemRectLeft","elemRectRight","elemRectTop","elemOffsetLeft","elemOffsetTop","getRectRelativeToOffsetParent","topPosition","bottomPosition","leftPosition","rightPosition","arrowTop","arrowLeft","arrowRight","arrowWidth","arrowHeight","arrowAdjust","horizontals","verticals","updatedTooltipEvent","toLowerCase","tooltipDefaults","dataOriginalTitle","tooltipComponent","setHtml","content","sanitizeFn","dirty","isFunction","tempDocument","isNodeList","isArray","createTip","id","title","template","animation","customClass","dismissible","btnClose","tipString","tipPositions","titleParts","contentParts","placementClass","tooltipTemplate","htmlMarkup","tooltipHeader","tooltipBody","tempTitle","tempContent","tempBtn","getElementContainer","majorBlockTags","containers","parentNode","getParentNode","isShadowRoot","isTableElement","tooltipSelector","titleAttr","getTooltipInstance","tooltipInitCallback","Tooltip","removeTooltip","ariaDescribedBy","hasTip","disposeTooltipComplete","toggleTooltipTitle","toggleTooltipAction","tooltipShownAction","shownTooltipEvent","tooltipHiddenAction","hiddenTooltipEvent","toggleTooltipOpenHandlers","parentModal","parentOffcanvas","titleAtt","tipComponent","elem","getUID","position","outTimer","showTooltipEvent","delay","hideTooltipEvent","enabled","tr","mousehoverEvent","focusinEvent","focusoutEvent","isApple","popoverSelector","popoverDefaults","getPopoverInstance","popoverInitCallback","Popover","scrollspyString","scrollspyComponent","scrollspySelector","scrollSpyAnchorSelector","scrollspyDefaults","getScrollSpyInstance","scrollspyInitCallback","ScrollSpy","activateScrollSpy","updateSpyTargets","_itemsLength","_observables","links","getElementsByTagName","link","hash","targetItem","clear","item","activate","parentItem","parentLink","getOffset","scrollTarget","spyTarget","_activeItem","entries","newActiveItem","firstOffset","offsetTop","nextTarget","nextOffsetTop","getElementById","_observer","_scrollTo","tabString","tabComponent","tabSelector","getTabInstance","tabInitCallback","Tab","showTabEvent","shownTabEvent","hideTabEvent","hiddenTabEvent","tabPrivate","triggerTabEnd","tabContent","nav","triggerTabShow","nextContent","tab","currentHeight","nextHeight","triggerTabHide","getActiveTab","activeTabs","getParentDropdown","dropdown","tabClickHandler","firstTab","firstTabContent","ariaSelected","activeDropdown","toggleTab","toastString","toastComponent","toastSelector","toastDismissSelector","toastToggleSelector","showingClass","hideClass","toastDefaults","getToastInstance","toastInitCallback","Toast","showToastEvent","shownToastEvent","hideToastEvent","hiddenToastEvent","showToastComplete","hideToastComplete","hideToast","showToast","toastClickHandler","interactiveToastHandler","isShown","hide","componentsList","initComponentDataAPI","collection","removeComponentDataAPI","component","context","compData","instance","initCallback","lookUp","elemCollection","cs","init","selector","removeDataAPI","comp"],"mappings":"iCAAK,MAA6DA,GAAK,mBAAoBC,GAAK,gBAAuCC,GAAI,cAA0DC,GAAK,aAAcC,GAAK,eAAgBC,GAAK,gBAAuPC,GAAK,QAASC,GAAK,UAAWC,GAAK,WAA0EC,GAAK,UAA4BC,GAAK,QAAsBC,EAAK,QAA0BC,GAAK,YAA6BC,GAAK,QAASC,GAAK,aAAcC,GAAK,aAAmKC,GAAK,cAAoCC,GAAK,cAAeC,GAAK,YAAsJC,GAAK,aAmDzmCC,GAAK,YAUuBC,GAAK,oFAoBlCC,GAAK,YAAaC,GAAK,UAAWC,GAAK,YAAaC,GAAK,aAAkHC,GAAK,SAAyMC,GAAK,qBAAsBC,GAAK,kBAAmBC,GAAI,gBAAiBC,GAAI,qBA+BjdC,GAAK,IAAM,CACZ,MAAMC,EAAI,qBACV,OAAO,WAAW,eAAe,OAAO,KACrCC,GAAMD,EAAE,KAAKC,EAAE,KAAK,CACtB,GAAID,EAAE,KACL,WAAW,SACZ,GAAI,EACP,EAA2PE,GAAK,IAAM,CACtQ,EAAGC,GAAI,CAACH,EAAGC,EAAGG,EAAGC,IAAM,CACrB,MAAMC,EAAID,GAAK,GACfL,EAAE,iBACAC,EACAG,EACAE,CACD,CACH,EAAGC,GAAI,CAACP,EAAGC,EAAGG,EAAGC,IAAM,CACrB,MAAMC,EAAID,GAAK,GACfL,EAAE,oBACAC,EACAG,EACAE,CACD,CACH,EAesUE,EAAI,CAACR,EAAGC,IAAMD,EAAE,aAAaC,CAAC,EAA6CQ,GAAK,C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B,EAAyC,QAAQ,CACpD,CACD,CAEL,EAGaC,GAAgBH,GAAyB,CACpD,MAAMI,EAASJ,GAAWA,EAAQ,SAAWA,EAAU,SACjDK,EAAiB,CAAC,GAAGrF,GAA8B,IAAKoF,CAAM,CAAC,EAEtDT,GAAA,QAASW,GAAO,CACvB,KAAA,CAAE,KAAAC,EAAM,SAAAC,CAAA,EAAaF,EAC3BV,GACEW,EACAF,EAAe,OAAQhF,GAASzY,GAAQyY,EAAMmF,CAAQ,CAAC,CACzD,CAAA,CACD,CACH,EAGaC,GAAiBT,GAAyB,CACrD,MAAMI,EAASJ,GAAWA,EAAQ,SAAWA,EAAU,SAExCL,GAAA,QAASe,GAAS,CACRZ,GAAAY,EAAK,UAAU,KAAMN,CAAM,CAAA,CACnD,CACH,EAGA,OAAI,SAAS,KAAmBD,GAAA,EAE9BviB,EAAY,SAAU,mBAAoB,IAAMuiB,GAAA,EAAgB,CAC9D,KAAM,EAAA,CACP","x_google_ignoreList":[0,1,27]} \ No newline at end of file diff --git a/package.json b/package.json index 8f38bdec..c7796cfb 100755 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "bootstrap.native", - "version": "5.1.0", + "version": "5.1.1", "author": "thednp", "license": "MIT", "description": "Bootstrap components build with Typescript", @@ -110,19 +110,19 @@ ], "dependencies": { "@thednp/event-listener": "^2.0.8", - "@thednp/position-observer": "^1.0.2", - "@thednp/shorty": "^2.0.8" + "@thednp/position-observer": "^1.0.4", + "@thednp/shorty": "^2.0.9" }, "devDependencies": { - "@types/node": "^20.17.6", + "@types/node": "^20.17.7", "@vitest/browser": "^2.1.5", "@vitest/coverage-istanbul": "^2.1.5", "@vitest/ui": "^2.1.5", "playwright": "^1.49.0", - "typescript": "^5.6.3", + "typescript": "5.6.3", "vite": "^5.4.11", "vite-plugin-dts": "^4.3.0", - "vite-plugin-strip-comments": "^0.0.3", + "vite-plugin-strip-comments": "^0.0.4", "vitest": "^2.1.5" }, "packageManager": "pnpm@8.6.12", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 61e194d1..3f6179e1 100755 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -12,18 +12,18 @@ importers: specifier: ^2.0.8 version: 2.0.8 '@thednp/position-observer': - specifier: ^1.0.2 - version: 1.0.2 + specifier: ^1.0.4 + version: 1.0.4 '@thednp/shorty': - specifier: ^2.0.8 - version: 2.0.8 + specifier: ^2.0.9 + version: 2.0.9 devDependencies: '@types/node': - specifier: ^20.17.6 - version: 20.17.6 + specifier: ^20.17.7 + version: 20.17.7 '@vitest/browser': specifier: ^2.1.5 - version: 2.1.5(@types/node@20.17.6)(playwright@1.49.0)(typescript@5.6.3)(vite@5.4.11(@types/node@20.17.6))(vitest@2.1.5) + version: 2.1.5(@types/node@20.17.7)(playwright@1.49.0)(typescript@5.6.3)(vite@5.4.11(@types/node@20.17.7))(vitest@2.1.5) '@vitest/coverage-istanbul': specifier: ^2.1.5 version: 2.1.5(vitest@2.1.5) @@ -34,20 +34,20 @@ importers: specifier: ^1.49.0 version: 1.49.0 typescript: - specifier: ^5.6.3 + specifier: 5.6.3 version: 5.6.3 vite: specifier: ^5.4.11 - version: 5.4.11(@types/node@20.17.6) + version: 5.4.11(@types/node@20.17.7) vite-plugin-dts: specifier: ^4.3.0 - version: 4.3.0(@types/node@20.17.6)(rollup@4.27.3)(typescript@5.6.3)(vite@5.4.11(@types/node@20.17.6)) + version: 4.3.0(@types/node@20.17.7)(rollup@4.27.4)(typescript@5.6.3)(vite@5.4.11(@types/node@20.17.7)) vite-plugin-strip-comments: - specifier: ^0.0.3 - version: 0.0.3 + specifier: ^0.0.4 + version: 0.0.4 vitest: specifier: ^2.1.5 - version: 2.1.5(@types/node@20.17.6)(@vitest/browser@2.1.5)(@vitest/ui@2.1.5)(msw@2.6.5(@types/node@20.17.6)(typescript@5.6.3)) + version: 2.1.5(@types/node@20.17.7)(@vitest/browser@2.1.5)(@vitest/ui@2.1.5)(msw@2.6.6(@types/node@20.17.7)(typescript@5.6.3)) packages: @@ -315,18 +315,18 @@ packages: '@jridgewell/trace-mapping@0.3.25': resolution: {integrity: sha512-vNk6aEwybGtawWmy/PzwnGDOjCkLWSD2wqvjGGAgOAwCGWySYXfYoxt00IJkTF+8Lb57DwOb3Aa0o9CApepiYQ==} - '@microsoft/api-extractor-model@7.29.9': - resolution: {integrity: sha512-/DaMfUjiswmrnLjHCorVzWGbW5rmeTGDo+H0QcvcarJ14SjNVmFWiRKzscN4B2y9AyllqeXMPgwbtSFAdAkpMQ==} + '@microsoft/api-extractor-model@7.30.0': + resolution: {integrity: sha512-26/LJZBrsWDKAkOWRiQbdVgcfd1F3nyJnAiJzsAgpouPk7LtOIj7PK9aJtBaw/pUXrkotEg27RrT+Jm/q0bbug==} - '@microsoft/api-extractor@7.47.12': - resolution: {integrity: sha512-YE/h4vE9T1i3oGtgEZC7pHupH/drtGAuQ36iJ1Ua0gQ8NXmPXNKNilkCqzWnX/QvMnr1xSgEjHppWMXEi5YZKQ==} + '@microsoft/api-extractor@7.48.0': + resolution: {integrity: sha512-FMFgPjoilMUWeZXqYRlJ3gCVRhB7WU/HN88n8OLqEsmsG4zBdX/KQdtJfhq95LQTQ++zfu0Em1LLb73NqRCLYQ==} hasBin: true - '@microsoft/tsdoc-config@0.17.0': - resolution: {integrity: sha512-v/EYRXnCAIHxOHW+Plb6OWuUoMotxTN0GLatnpOb1xq0KuTNw/WI3pamJx/UbsoJP5k9MCw1QxvvhPcF9pH3Zg==} + '@microsoft/tsdoc-config@0.17.1': + resolution: {integrity: sha512-UtjIFe0C6oYgTnad4q1QP4qXwLhe6tIpNTRStJ2RZEPIkqQPREAwE5spzVxsdn9UaEMUqhh0AqSx3X4nWAKXWw==} - '@microsoft/tsdoc@0.15.0': - resolution: {integrity: sha512-HZpPoABogPvjeJOdzCOSJsXeL/SMCBgBZMVC3X3d7YYp2gf31MfxhUoYUNwf1ERPJOnQc0wkFn9trqI6ZEdZuA==} + '@microsoft/tsdoc@0.15.1': + resolution: {integrity: sha512-4aErSrCR/On/e5G2hDP0wjooqDdauzEbIq8hIkIe5pXV0rtWJZvdCEKL0ykZxex+IxIwBp0eGeV48hQN07dXtw==} '@mswjs/interceptors@0.37.1': resolution: {integrity: sha512-SvE+tSpcX884RJrPCskXxoS965Ky/pYABDEhWW6oeSRhpUDLrS5nTvT5n1LLSDVDYvty4imVmXsy+3/ROVuknA==} @@ -357,93 +357,93 @@ packages: rollup: optional: true - '@rollup/rollup-android-arm-eabi@4.27.3': - resolution: {integrity: sha512-EzxVSkIvCFxUd4Mgm4xR9YXrcp976qVaHnqom/Tgm+vU79k4vV4eYTjmRvGfeoW8m9LVcsAy/lGjcgVegKEhLQ==} + '@rollup/rollup-android-arm-eabi@4.27.4': + resolution: {integrity: sha512-2Y3JT6f5MrQkICUyRVCw4oa0sutfAsgaSsb0Lmmy1Wi2y7X5vT9Euqw4gOsCyy0YfKURBg35nhUKZS4mDcfULw==} cpu: [arm] os: [android] - '@rollup/rollup-android-arm64@4.27.3': - resolution: {integrity: sha512-LJc5pDf1wjlt9o/Giaw9Ofl+k/vLUaYsE2zeQGH85giX2F+wn/Cg8b3c5CDP3qmVmeO5NzwVUzQQxwZvC2eQKw==} + '@rollup/rollup-android-arm64@4.27.4': + resolution: {integrity: sha512-wzKRQXISyi9UdCVRqEd0H4cMpzvHYt1f/C3CoIjES6cG++RHKhrBj2+29nPF0IB5kpy9MS71vs07fvrNGAl/iA==} cpu: [arm64] os: [android] - '@rollup/rollup-darwin-arm64@4.27.3': - resolution: {integrity: sha512-OuRysZ1Mt7wpWJ+aYKblVbJWtVn3Cy52h8nLuNSzTqSesYw1EuN6wKp5NW/4eSre3mp12gqFRXOKTcN3AI3LqA==} + '@rollup/rollup-darwin-arm64@4.27.4': + resolution: {integrity: sha512-PlNiRQapift4LNS8DPUHuDX/IdXiLjf8mc5vdEmUR0fF/pyy2qWwzdLjB+iZquGr8LuN4LnUoSEvKRwjSVYz3Q==} cpu: [arm64] os: [darwin] - '@rollup/rollup-darwin-x64@4.27.3': - resolution: {integrity: sha512-xW//zjJMlJs2sOrCmXdB4d0uiilZsOdlGQIC/jjmMWT47lkLLoB1nsNhPUcnoqyi5YR6I4h+FjBpILxbEy8JRg==} + '@rollup/rollup-darwin-x64@4.27.4': + resolution: {integrity: sha512-o9bH2dbdgBDJaXWJCDTNDYa171ACUdzpxSZt+u/AAeQ20Nk5x+IhA+zsGmrQtpkLiumRJEYef68gcpn2ooXhSQ==} cpu: [x64] os: [darwin] - '@rollup/rollup-freebsd-arm64@4.27.3': - resolution: {integrity: sha512-58E0tIcwZ+12nK1WiLzHOD8I0d0kdrY/+o7yFVPRHuVGY3twBwzwDdTIBGRxLmyjciMYl1B/U515GJy+yn46qw==} + '@rollup/rollup-freebsd-arm64@4.27.4': + resolution: {integrity: sha512-NBI2/i2hT9Q+HySSHTBh52da7isru4aAAo6qC3I7QFVsuhxi2gM8t/EI9EVcILiHLj1vfi+VGGPaLOUENn7pmw==} cpu: [arm64] os: [freebsd] - '@rollup/rollup-freebsd-x64@4.27.3': - resolution: {integrity: sha512-78fohrpcVwTLxg1ZzBMlwEimoAJmY6B+5TsyAZ3Vok7YabRBUvjYTsRXPTjGEvv/mfgVBepbW28OlMEz4w8wGA==} + '@rollup/rollup-freebsd-x64@4.27.4': + resolution: {integrity: sha512-wYcC5ycW2zvqtDYrE7deary2P2UFmSh85PUpAx+dwTCO9uw3sgzD6Gv9n5X4vLaQKsrfTSZZ7Z7uynQozPVvWA==} cpu: [x64] os: [freebsd] - '@rollup/rollup-linux-arm-gnueabihf@4.27.3': - resolution: {integrity: sha512-h2Ay79YFXyQi+QZKo3ISZDyKaVD7uUvukEHTOft7kh00WF9mxAaxZsNs3o/eukbeKuH35jBvQqrT61fzKfAB/Q==} + '@rollup/rollup-linux-arm-gnueabihf@4.27.4': + resolution: {integrity: sha512-9OwUnK/xKw6DyRlgx8UizeqRFOfi9mf5TYCw1uolDaJSbUmBxP85DE6T4ouCMoN6pXw8ZoTeZCSEfSaYo+/s1w==} cpu: [arm] os: [linux] - '@rollup/rollup-linux-arm-musleabihf@4.27.3': - resolution: {integrity: sha512-Sv2GWmrJfRY57urktVLQ0VKZjNZGogVtASAgosDZ1aUB+ykPxSi3X1nWORL5Jk0sTIIwQiPH7iE3BMi9zGWfkg==} + '@rollup/rollup-linux-arm-musleabihf@4.27.4': + resolution: {integrity: sha512-Vgdo4fpuphS9V24WOV+KwkCVJ72u7idTgQaBoLRD0UxBAWTF9GWurJO9YD9yh00BzbkhpeXtm6na+MvJU7Z73A==} cpu: [arm] os: [linux] - '@rollup/rollup-linux-arm64-gnu@4.27.3': - resolution: {integrity: sha512-FPoJBLsPW2bDNWjSrwNuTPUt30VnfM8GPGRoLCYKZpPx0xiIEdFip3dH6CqgoT0RnoGXptaNziM0WlKgBc+OWQ==} + '@rollup/rollup-linux-arm64-gnu@4.27.4': + resolution: {integrity: sha512-pleyNgyd1kkBkw2kOqlBx+0atfIIkkExOTiifoODo6qKDSpnc6WzUY5RhHdmTdIJXBdSnh6JknnYTtmQyobrVg==} cpu: [arm64] os: [linux] - '@rollup/rollup-linux-arm64-musl@4.27.3': - resolution: {integrity: sha512-TKxiOvBorYq4sUpA0JT+Fkh+l+G9DScnG5Dqx7wiiqVMiRSkzTclP35pE6eQQYjP4Gc8yEkJGea6rz4qyWhp3g==} + '@rollup/rollup-linux-arm64-musl@4.27.4': + resolution: {integrity: sha512-caluiUXvUuVyCHr5DxL8ohaaFFzPGmgmMvwmqAITMpV/Q+tPoaHZ/PWa3t8B2WyoRcIIuu1hkaW5KkeTDNSnMA==} cpu: [arm64] os: [linux] - '@rollup/rollup-linux-powerpc64le-gnu@4.27.3': - resolution: {integrity: sha512-v2M/mPvVUKVOKITa0oCFksnQQ/TqGrT+yD0184/cWHIu0LoIuYHwox0Pm3ccXEz8cEQDLk6FPKd1CCm+PlsISw==} + '@rollup/rollup-linux-powerpc64le-gnu@4.27.4': + resolution: {integrity: sha512-FScrpHrO60hARyHh7s1zHE97u0KlT/RECzCKAdmI+LEoC1eDh/RDji9JgFqyO+wPDb86Oa/sXkily1+oi4FzJQ==} cpu: [ppc64] os: [linux] - '@rollup/rollup-linux-riscv64-gnu@4.27.3': - resolution: {integrity: sha512-LdrI4Yocb1a/tFVkzmOE5WyYRgEBOyEhWYJe4gsDWDiwnjYKjNs7PS6SGlTDB7maOHF4kxevsuNBl2iOcj3b4A==} + '@rollup/rollup-linux-riscv64-gnu@4.27.4': + resolution: {integrity: sha512-qyyprhyGb7+RBfMPeww9FlHwKkCXdKHeGgSqmIXw9VSUtvyFZ6WZRtnxgbuz76FK7LyoN8t/eINRbPUcvXB5fw==} cpu: [riscv64] os: [linux] - '@rollup/rollup-linux-s390x-gnu@4.27.3': - resolution: {integrity: sha512-d4wVu6SXij/jyiwPvI6C4KxdGzuZOvJ6y9VfrcleHTwo68fl8vZC5ZYHsCVPUi4tndCfMlFniWgwonQ5CUpQcA==} + '@rollup/rollup-linux-s390x-gnu@4.27.4': + resolution: {integrity: sha512-PFz+y2kb6tbh7m3A7nA9++eInGcDVZUACulf/KzDtovvdTizHpZaJty7Gp0lFwSQcrnebHOqxF1MaKZd7psVRg==} cpu: [s390x] os: [linux] - '@rollup/rollup-linux-x64-gnu@4.27.3': - resolution: {integrity: sha512-/6bn6pp1fsCGEY5n3yajmzZQAh+mW4QPItbiWxs69zskBzJuheb3tNynEjL+mKOsUSFK11X4LYF2BwwXnzWleA==} + '@rollup/rollup-linux-x64-gnu@4.27.4': + resolution: {integrity: sha512-Ni8mMtfo+o/G7DVtweXXV/Ol2TFf63KYjTtoZ5f078AUgJTmaIJnj4JFU7TK/9SVWTaSJGxPi5zMDgK4w+Ez7Q==} cpu: [x64] os: [linux] - '@rollup/rollup-linux-x64-musl@4.27.3': - resolution: {integrity: sha512-nBXOfJds8OzUT1qUreT/en3eyOXd2EH5b0wr2bVB5999qHdGKkzGzIyKYaKj02lXk6wpN71ltLIaQpu58YFBoQ==} + '@rollup/rollup-linux-x64-musl@4.27.4': + resolution: {integrity: sha512-5AeeAF1PB9TUzD+3cROzFTnAJAcVUGLuR8ng0E0WXGkYhp6RD6L+6szYVX+64Rs0r72019KHZS1ka1q+zU/wUw==} cpu: [x64] os: [linux] - '@rollup/rollup-win32-arm64-msvc@4.27.3': - resolution: {integrity: sha512-ogfbEVQgIZOz5WPWXF2HVb6En+kWzScuxJo/WdQTqEgeyGkaa2ui5sQav9Zkr7bnNCLK48uxmmK0TySm22eiuw==} + '@rollup/rollup-win32-arm64-msvc@4.27.4': + resolution: {integrity: sha512-yOpVsA4K5qVwu2CaS3hHxluWIK5HQTjNV4tWjQXluMiiiu4pJj4BN98CvxohNCpcjMeTXk/ZMJBRbgRg8HBB6A==} cpu: [arm64] os: [win32] - '@rollup/rollup-win32-ia32-msvc@4.27.3': - resolution: {integrity: sha512-ecE36ZBMLINqiTtSNQ1vzWc5pXLQHlf/oqGp/bSbi7iedcjcNb6QbCBNG73Euyy2C+l/fn8qKWEwxr+0SSfs3w==} + '@rollup/rollup-win32-ia32-msvc@4.27.4': + resolution: {integrity: sha512-KtwEJOaHAVJlxV92rNYiG9JQwQAdhBlrjNRp7P9L8Cb4Rer3in+0A+IPhJC9y68WAi9H0sX4AiG2NTsVlmqJeQ==} cpu: [ia32] os: [win32] - '@rollup/rollup-win32-x64-msvc@4.27.3': - resolution: {integrity: sha512-vliZLrDmYKyaUoMzEbMTg2JkerfBjn03KmAw9CykO0Zzkzoyd7o3iZNam/TpyWNjNT+Cz2iO3P9Smv2wgrR+Eg==} + '@rollup/rollup-win32-x64-msvc@4.27.4': + resolution: {integrity: sha512-3j4jx1TppORdTAoBJRd+/wJRGCPC0ETWkXOecJ6PPZLj6SptXkrXcNqdj0oclbKML6FkQltdz7bBA3rUSirZug==} cpu: [x64] os: [win32] @@ -483,17 +483,12 @@ packages: resolution: {integrity: sha512-bZY04sWSn2YWAqcuY/fYy03ynARYHwn8xzYgdqqcHBXsBXhOc+bbWwHyLwW28XAA2NjzjMPZZAM3N5D09i+zEQ==} engines: {node: '>=16', pnpm: '>=8.6.0'} - '@thednp/position-observer@1.0.2': - resolution: {integrity: sha512-7GaeyM2LlT5yvbL6V5BClyeE1e8Zev0fjKpSkPlub944HtV0knRf39jdFyNavvm1U/jyXjsq0xQjJQ7g8HjcPQ==} + '@thednp/position-observer@1.0.4': + resolution: {integrity: sha512-MdgKXweti1dTVXeyqaQUL4YhN4J4Wv5GP4Bnt+NpO10oksKLU2hW75ngFUkJs6PnHs4SjAo9slV/EX/T4oV4mg==} engines: {node: '>=16', pnpm: '>=8.6.0'} - '@thednp/shorty@2.0.8': - resolution: {integrity: sha512-SFuypeDaLrRmbmEpwIdeWfopLAeib3EqKNU5QOc+ZJgcWJnJZmbpLHRr99Sh27JWzqoaiRlKRsyegur/g31Yxw==} - engines: {node: '>=16', pnpm: '>=8.6.0'} - - '@thednp/shorty@https://codeload.github.com/thednp/shorty/tar.gz/9f11a7b428505a265ec6010877a119f6f3801fa7': - resolution: {tarball: https://codeload.github.com/thednp/shorty/tar.gz/9f11a7b428505a265ec6010877a119f6f3801fa7} - version: 2.0.8 + '@thednp/shorty@2.0.9': + resolution: {integrity: sha512-btulzTMSxSQxNipN5iLMtw6MaTrZ3P0feRUX/rl2fZ1m31RI56PC967lnN5bwUCpZLzry0pl9QoCKlT3GtU+mw==} engines: {node: '>=16', pnpm: '>=8.6.0'} '@types/argparse@1.0.38': @@ -508,8 +503,8 @@ packages: '@types/estree@1.0.6': resolution: {integrity: sha512-AYnb1nQyY49te+VRAVgmzfcgjYS91mY5P0TKUDCLEM+gNnA+3T6rWITXRLYCpahpqSQbN5cE+gHpnPyXjHWxcw==} - '@types/node@20.17.6': - resolution: {integrity: sha512-VEI7OdvK2wP7XHnsuXbAJnEpEkF6NjSN45QJlL4VGqZSXsnicpesdTWsg9RISeSdYd3yeRj/y3k5KGjUXYnFwQ==} + '@types/node@20.17.7': + resolution: {integrity: sha512-sZXXnpBFMKbao30dUAvzKbdwA2JM1fwUtVEq/kxKuPI5mMwZiRElCpTXb0Biq/LMEVpXDZL5G5V0RPnxKeyaYg==} '@types/statuses@2.0.5': resolution: {integrity: sha512-jmIUGWrAiwu3dZpxntxieC+1n/5c3mjrImkmOSQ2NC5uP6cYO4aAZDdSmRcI5C1oiTmqlZGHC+/NmJrKogbP5A==} @@ -993,8 +988,8 @@ packages: ms@2.1.3: resolution: {integrity: sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==} - msw@2.6.5: - resolution: {integrity: sha512-PnlnTpUlOrj441kYQzzFhzMzMCGFT6a2jKUBG7zSpLkYS5oh8Arrbc0dL8/rNAtxaoBy0EVs2mFqj2qdmWK7lQ==} + msw@2.6.6: + resolution: {integrity: sha512-npfIIVRHKQX3Lw4aLWX4wBh+lQwpqdZNyJYB5K/+ktK8NhtkdsTxGK7WDrgknozcVyRI7TOqY6yBS9j2FTR+YQ==} engines: {node: '>=18'} hasBin: true peerDependencies: @@ -1107,8 +1102,8 @@ packages: resolution: {integrity: sha512-oKWePCxqpd6FlLvGV1VU0x7bkPmmCNolxzjMf4NczoDnQcIWrAF+cPtZn5i6n+RfD2d9i0tzpKnG6Yk168yIyw==} hasBin: true - rollup@4.27.3: - resolution: {integrity: sha512-SLsCOnlmGt9VoZ9Ek8yBK8tAdmPHeppkw+Xa7yDlCEhDTvwYei03JlWo1fdc7YTfLZ4tD8riJCUyAgTbszk1fQ==} + rollup@4.27.4: + resolution: {integrity: sha512-RLKxqHEMjh/RGLsDxAEsaLO3mWgyoU6x9w6n1ikAzet4B3gI2/3yP6PWY2p9QzRTh6MfEIXB3MwsOY0Iv3vNrw==} engines: {node: '>=18.0.0', npm: '>=8.0.0'} hasBin: true @@ -1243,8 +1238,8 @@ packages: resolution: {integrity: sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w==} engines: {node: '>=10'} - type-fest@4.27.0: - resolution: {integrity: sha512-3IMSWgP7C5KSQqmo1wjhKrwsvXAtF33jO3QY+Uy++ia7hqvgSK6iXbbg5PbDBc1P2ZbNEDgejOrN4YooXvhwCw==} + type-fest@4.27.1: + resolution: {integrity: sha512-3Ta7CyV6daqpwuGJMJKABaUChZZejpzysZkQg1//bLRg2wKQ4duwsg3MMIsHuElq58iDqizg4DBUmK8H8wExJg==} engines: {node: '>=16'} typescript@5.4.2: @@ -1298,8 +1293,8 @@ packages: vite: optional: true - vite-plugin-strip-comments@0.0.3: - resolution: {integrity: sha512-lYth5USujjuY+tvmExlttAoJ/tuU/KY24Me4GvK5gqHLOi/F1o4hj3wjU6+nUcgVzZUvDCDQp3fF5+IpMo/+QA==} + vite-plugin-strip-comments@0.0.4: + resolution: {integrity: sha512-NaQjsbBUpOJLef9WDyaQQo+dDtLhsaHyXOVCjqWhnTkry2DU1pM5wGgSGuLzuNNss8QhMNq1Y4gZBxOHD4XnPg==} engines: {deno: '>=2.0.4', node: '>=20', pnpm: '>=9.10.0'} vite@5.4.11: @@ -1608,16 +1603,16 @@ snapshots: '@esbuild/win32-x64@0.21.5': optional: true - '@inquirer/confirm@5.0.2(@types/node@20.17.6)': + '@inquirer/confirm@5.0.2(@types/node@20.17.7)': dependencies: - '@inquirer/core': 10.1.0(@types/node@20.17.6) - '@inquirer/type': 3.0.1(@types/node@20.17.6) - '@types/node': 20.17.6 + '@inquirer/core': 10.1.0(@types/node@20.17.7) + '@inquirer/type': 3.0.1(@types/node@20.17.7) + '@types/node': 20.17.7 - '@inquirer/core@10.1.0(@types/node@20.17.6)': + '@inquirer/core@10.1.0(@types/node@20.17.7)': dependencies: '@inquirer/figures': 1.0.8 - '@inquirer/type': 3.0.1(@types/node@20.17.6) + '@inquirer/type': 3.0.1(@types/node@20.17.7) ansi-escapes: 4.3.2 cli-width: 4.1.0 mute-stream: 2.0.0 @@ -1630,9 +1625,9 @@ snapshots: '@inquirer/figures@1.0.8': {} - '@inquirer/type@3.0.1(@types/node@20.17.6)': + '@inquirer/type@3.0.1(@types/node@20.17.7)': dependencies: - '@types/node': 20.17.6 + '@types/node': 20.17.7 '@isaacs/cliui@8.0.2': dependencies: @@ -1662,23 +1657,23 @@ snapshots: '@jridgewell/resolve-uri': 3.1.2 '@jridgewell/sourcemap-codec': 1.5.0 - '@microsoft/api-extractor-model@7.29.9(@types/node@20.17.6)': + '@microsoft/api-extractor-model@7.30.0(@types/node@20.17.7)': dependencies: - '@microsoft/tsdoc': 0.15.0 - '@microsoft/tsdoc-config': 0.17.0 - '@rushstack/node-core-library': 5.10.0(@types/node@20.17.6) + '@microsoft/tsdoc': 0.15.1 + '@microsoft/tsdoc-config': 0.17.1 + '@rushstack/node-core-library': 5.10.0(@types/node@20.17.7) transitivePeerDependencies: - '@types/node' - '@microsoft/api-extractor@7.47.12(@types/node@20.17.6)': + '@microsoft/api-extractor@7.48.0(@types/node@20.17.7)': dependencies: - '@microsoft/api-extractor-model': 7.29.9(@types/node@20.17.6) - '@microsoft/tsdoc': 0.15.0 - '@microsoft/tsdoc-config': 0.17.0 - '@rushstack/node-core-library': 5.10.0(@types/node@20.17.6) + '@microsoft/api-extractor-model': 7.30.0(@types/node@20.17.7) + '@microsoft/tsdoc': 0.15.1 + '@microsoft/tsdoc-config': 0.17.1 + '@rushstack/node-core-library': 5.10.0(@types/node@20.17.7) '@rushstack/rig-package': 0.5.3 - '@rushstack/terminal': 0.14.3(@types/node@20.17.6) - '@rushstack/ts-command-line': 4.23.1(@types/node@20.17.6) + '@rushstack/terminal': 0.14.3(@types/node@20.17.7) + '@rushstack/ts-command-line': 4.23.1(@types/node@20.17.7) lodash: 4.17.21 minimatch: 3.0.8 resolve: 1.22.8 @@ -1688,14 +1683,14 @@ snapshots: transitivePeerDependencies: - '@types/node' - '@microsoft/tsdoc-config@0.17.0': + '@microsoft/tsdoc-config@0.17.1': dependencies: - '@microsoft/tsdoc': 0.15.0 + '@microsoft/tsdoc': 0.15.1 ajv: 8.12.0 jju: 1.4.0 resolve: 1.22.8 - '@microsoft/tsdoc@0.15.0': {} + '@microsoft/tsdoc@0.15.1': {} '@mswjs/interceptors@0.37.1': dependencies: @@ -1720,69 +1715,69 @@ snapshots: '@polka/url@1.0.0-next.28': {} - '@rollup/pluginutils@5.1.3(rollup@4.27.3)': + '@rollup/pluginutils@5.1.3(rollup@4.27.4)': dependencies: '@types/estree': 1.0.6 estree-walker: 2.0.2 picomatch: 4.0.2 optionalDependencies: - rollup: 4.27.3 + rollup: 4.27.4 - '@rollup/rollup-android-arm-eabi@4.27.3': + '@rollup/rollup-android-arm-eabi@4.27.4': optional: true - '@rollup/rollup-android-arm64@4.27.3': + '@rollup/rollup-android-arm64@4.27.4': optional: true - '@rollup/rollup-darwin-arm64@4.27.3': + '@rollup/rollup-darwin-arm64@4.27.4': optional: true - '@rollup/rollup-darwin-x64@4.27.3': + '@rollup/rollup-darwin-x64@4.27.4': optional: true - '@rollup/rollup-freebsd-arm64@4.27.3': + '@rollup/rollup-freebsd-arm64@4.27.4': optional: true - '@rollup/rollup-freebsd-x64@4.27.3': + '@rollup/rollup-freebsd-x64@4.27.4': optional: true - '@rollup/rollup-linux-arm-gnueabihf@4.27.3': + '@rollup/rollup-linux-arm-gnueabihf@4.27.4': optional: true - '@rollup/rollup-linux-arm-musleabihf@4.27.3': + '@rollup/rollup-linux-arm-musleabihf@4.27.4': optional: true - '@rollup/rollup-linux-arm64-gnu@4.27.3': + '@rollup/rollup-linux-arm64-gnu@4.27.4': optional: true - '@rollup/rollup-linux-arm64-musl@4.27.3': + '@rollup/rollup-linux-arm64-musl@4.27.4': optional: true - '@rollup/rollup-linux-powerpc64le-gnu@4.27.3': + '@rollup/rollup-linux-powerpc64le-gnu@4.27.4': optional: true - '@rollup/rollup-linux-riscv64-gnu@4.27.3': + '@rollup/rollup-linux-riscv64-gnu@4.27.4': optional: true - '@rollup/rollup-linux-s390x-gnu@4.27.3': + '@rollup/rollup-linux-s390x-gnu@4.27.4': optional: true - '@rollup/rollup-linux-x64-gnu@4.27.3': + '@rollup/rollup-linux-x64-gnu@4.27.4': optional: true - '@rollup/rollup-linux-x64-musl@4.27.3': + '@rollup/rollup-linux-x64-musl@4.27.4': optional: true - '@rollup/rollup-win32-arm64-msvc@4.27.3': + '@rollup/rollup-win32-arm64-msvc@4.27.4': optional: true - '@rollup/rollup-win32-ia32-msvc@4.27.3': + '@rollup/rollup-win32-ia32-msvc@4.27.4': optional: true - '@rollup/rollup-win32-x64-msvc@4.27.3': + '@rollup/rollup-win32-x64-msvc@4.27.4': optional: true - '@rushstack/node-core-library@5.10.0(@types/node@20.17.6)': + '@rushstack/node-core-library@5.10.0(@types/node@20.17.7)': dependencies: ajv: 8.13.0 ajv-draft-04: 1.0.0(ajv@8.13.0) @@ -1793,23 +1788,23 @@ snapshots: resolve: 1.22.8 semver: 7.5.4 optionalDependencies: - '@types/node': 20.17.6 + '@types/node': 20.17.7 '@rushstack/rig-package@0.5.3': dependencies: resolve: 1.22.8 strip-json-comments: 3.1.1 - '@rushstack/terminal@0.14.3(@types/node@20.17.6)': + '@rushstack/terminal@0.14.3(@types/node@20.17.7)': dependencies: - '@rushstack/node-core-library': 5.10.0(@types/node@20.17.6) + '@rushstack/node-core-library': 5.10.0(@types/node@20.17.7) supports-color: 8.1.1 optionalDependencies: - '@types/node': 20.17.6 + '@types/node': 20.17.7 - '@rushstack/ts-command-line@4.23.1(@types/node@20.17.6)': + '@rushstack/ts-command-line@4.23.1(@types/node@20.17.7)': dependencies: - '@rushstack/terminal': 0.14.3(@types/node@20.17.6) + '@rushstack/terminal': 0.14.3(@types/node@20.17.7) '@types/argparse': 1.0.38 argparse: 1.0.10 string-argv: 0.3.2 @@ -1833,13 +1828,11 @@ snapshots: '@thednp/event-listener@2.0.8': {} - '@thednp/position-observer@1.0.2': + '@thednp/position-observer@1.0.4': dependencies: - '@thednp/shorty': https://codeload.github.com/thednp/shorty/tar.gz/9f11a7b428505a265ec6010877a119f6f3801fa7 - - '@thednp/shorty@2.0.8': {} + '@thednp/shorty': 2.0.9 - '@thednp/shorty@https://codeload.github.com/thednp/shorty/tar.gz/9f11a7b428505a265ec6010877a119f6f3801fa7': {} + '@thednp/shorty@2.0.9': {} '@types/argparse@1.0.38': {} @@ -1849,7 +1842,7 @@ snapshots: '@types/estree@1.0.6': {} - '@types/node@20.17.6': + '@types/node@20.17.7': dependencies: undici-types: 6.19.8 @@ -1857,17 +1850,17 @@ snapshots: '@types/tough-cookie@4.0.5': {} - '@vitest/browser@2.1.5(@types/node@20.17.6)(playwright@1.49.0)(typescript@5.6.3)(vite@5.4.11(@types/node@20.17.6))(vitest@2.1.5)': + '@vitest/browser@2.1.5(@types/node@20.17.7)(playwright@1.49.0)(typescript@5.6.3)(vite@5.4.11(@types/node@20.17.7))(vitest@2.1.5)': dependencies: '@testing-library/dom': 10.4.0 '@testing-library/user-event': 14.5.2(@testing-library/dom@10.4.0) - '@vitest/mocker': 2.1.5(msw@2.6.5(@types/node@20.17.6)(typescript@5.6.3))(vite@5.4.11(@types/node@20.17.6)) + '@vitest/mocker': 2.1.5(msw@2.6.6(@types/node@20.17.7)(typescript@5.6.3))(vite@5.4.11(@types/node@20.17.7)) '@vitest/utils': 2.1.5 magic-string: 0.30.13 - msw: 2.6.5(@types/node@20.17.6)(typescript@5.6.3) + msw: 2.6.6(@types/node@20.17.7)(typescript@5.6.3) sirv: 3.0.0 tinyrainbow: 1.2.0 - vitest: 2.1.5(@types/node@20.17.6)(@vitest/browser@2.1.5)(@vitest/ui@2.1.5)(msw@2.6.5(@types/node@20.17.6)(typescript@5.6.3)) + vitest: 2.1.5(@types/node@20.17.7)(@vitest/browser@2.1.5)(@vitest/ui@2.1.5)(msw@2.6.6(@types/node@20.17.7)(typescript@5.6.3)) ws: 8.18.0 optionalDependencies: playwright: 1.49.0 @@ -1890,7 +1883,7 @@ snapshots: magicast: 0.3.5 test-exclude: 7.0.1 tinyrainbow: 1.2.0 - vitest: 2.1.5(@types/node@20.17.6)(@vitest/browser@2.1.5)(@vitest/ui@2.1.5)(msw@2.6.5(@types/node@20.17.6)(typescript@5.6.3)) + vitest: 2.1.5(@types/node@20.17.7)(@vitest/browser@2.1.5)(@vitest/ui@2.1.5)(msw@2.6.6(@types/node@20.17.7)(typescript@5.6.3)) transitivePeerDependencies: - supports-color @@ -1901,14 +1894,14 @@ snapshots: chai: 5.1.2 tinyrainbow: 1.2.0 - '@vitest/mocker@2.1.5(msw@2.6.5(@types/node@20.17.6)(typescript@5.6.3))(vite@5.4.11(@types/node@20.17.6))': + '@vitest/mocker@2.1.5(msw@2.6.6(@types/node@20.17.7)(typescript@5.6.3))(vite@5.4.11(@types/node@20.17.7))': dependencies: '@vitest/spy': 2.1.5 estree-walker: 3.0.3 magic-string: 0.30.13 optionalDependencies: - msw: 2.6.5(@types/node@20.17.6)(typescript@5.6.3) - vite: 5.4.11(@types/node@20.17.6) + msw: 2.6.6(@types/node@20.17.7)(typescript@5.6.3) + vite: 5.4.11(@types/node@20.17.7) '@vitest/pretty-format@2.1.5': dependencies: @@ -1938,7 +1931,7 @@ snapshots: sirv: 3.0.0 tinyglobby: 0.2.10 tinyrainbow: 1.2.0 - vitest: 2.1.5(@types/node@20.17.6)(@vitest/browser@2.1.5)(@vitest/ui@2.1.5)(msw@2.6.5(@types/node@20.17.6)(typescript@5.6.3)) + vitest: 2.1.5(@types/node@20.17.7)(@vitest/browser@2.1.5)(@vitest/ui@2.1.5)(msw@2.6.6(@types/node@20.17.7)(typescript@5.6.3)) '@vitest/utils@2.1.5': dependencies: @@ -2351,12 +2344,12 @@ snapshots: ms@2.1.3: {} - msw@2.6.5(@types/node@20.17.6)(typescript@5.6.3): + msw@2.6.6(@types/node@20.17.7)(typescript@5.6.3): dependencies: '@bundled-es-modules/cookie': 2.0.1 '@bundled-es-modules/statuses': 1.0.1 '@bundled-es-modules/tough-cookie': 0.1.6 - '@inquirer/confirm': 5.0.2(@types/node@20.17.6) + '@inquirer/confirm': 5.0.2(@types/node@20.17.7) '@mswjs/interceptors': 0.37.1 '@open-draft/deferred-promise': 2.2.0 '@open-draft/until': 2.1.0 @@ -2369,7 +2362,7 @@ snapshots: outvariant: 1.4.3 path-to-regexp: 6.3.0 strict-event-emitter: 0.5.1 - type-fest: 4.27.0 + type-fest: 4.27.1 yargs: 17.7.2 optionalDependencies: typescript: 5.6.3 @@ -2459,28 +2452,28 @@ snapshots: path-parse: 1.0.7 supports-preserve-symlinks-flag: 1.0.0 - rollup@4.27.3: + rollup@4.27.4: dependencies: '@types/estree': 1.0.6 optionalDependencies: - '@rollup/rollup-android-arm-eabi': 4.27.3 - '@rollup/rollup-android-arm64': 4.27.3 - '@rollup/rollup-darwin-arm64': 4.27.3 - '@rollup/rollup-darwin-x64': 4.27.3 - '@rollup/rollup-freebsd-arm64': 4.27.3 - '@rollup/rollup-freebsd-x64': 4.27.3 - '@rollup/rollup-linux-arm-gnueabihf': 4.27.3 - '@rollup/rollup-linux-arm-musleabihf': 4.27.3 - '@rollup/rollup-linux-arm64-gnu': 4.27.3 - '@rollup/rollup-linux-arm64-musl': 4.27.3 - '@rollup/rollup-linux-powerpc64le-gnu': 4.27.3 - '@rollup/rollup-linux-riscv64-gnu': 4.27.3 - '@rollup/rollup-linux-s390x-gnu': 4.27.3 - '@rollup/rollup-linux-x64-gnu': 4.27.3 - '@rollup/rollup-linux-x64-musl': 4.27.3 - '@rollup/rollup-win32-arm64-msvc': 4.27.3 - '@rollup/rollup-win32-ia32-msvc': 4.27.3 - '@rollup/rollup-win32-x64-msvc': 4.27.3 + '@rollup/rollup-android-arm-eabi': 4.27.4 + '@rollup/rollup-android-arm64': 4.27.4 + '@rollup/rollup-darwin-arm64': 4.27.4 + '@rollup/rollup-darwin-x64': 4.27.4 + '@rollup/rollup-freebsd-arm64': 4.27.4 + '@rollup/rollup-freebsd-x64': 4.27.4 + '@rollup/rollup-linux-arm-gnueabihf': 4.27.4 + '@rollup/rollup-linux-arm-musleabihf': 4.27.4 + '@rollup/rollup-linux-arm64-gnu': 4.27.4 + '@rollup/rollup-linux-arm64-musl': 4.27.4 + '@rollup/rollup-linux-powerpc64le-gnu': 4.27.4 + '@rollup/rollup-linux-riscv64-gnu': 4.27.4 + '@rollup/rollup-linux-s390x-gnu': 4.27.4 + '@rollup/rollup-linux-x64-gnu': 4.27.4 + '@rollup/rollup-linux-x64-musl': 4.27.4 + '@rollup/rollup-win32-arm64-msvc': 4.27.4 + '@rollup/rollup-win32-ia32-msvc': 4.27.4 + '@rollup/rollup-win32-x64-msvc': 4.27.4 fsevents: 2.3.3 semver@6.3.1: {} @@ -2587,7 +2580,7 @@ snapshots: type-fest@0.21.3: {} - type-fest@4.27.0: {} + type-fest@4.27.1: {} typescript@5.4.2: {} @@ -2616,13 +2609,13 @@ snapshots: querystringify: 2.2.0 requires-port: 1.0.0 - vite-node@2.1.5(@types/node@20.17.6): + vite-node@2.1.5(@types/node@20.17.7): dependencies: cac: 6.7.14 debug: 4.3.7 es-module-lexer: 1.5.4 pathe: 1.1.2 - vite: 5.4.11(@types/node@20.17.6) + vite: 5.4.11(@types/node@20.17.7) transitivePeerDependencies: - '@types/node' - less @@ -2634,10 +2627,10 @@ snapshots: - supports-color - terser - vite-plugin-dts@4.3.0(@types/node@20.17.6)(rollup@4.27.3)(typescript@5.6.3)(vite@5.4.11(@types/node@20.17.6)): + vite-plugin-dts@4.3.0(@types/node@20.17.7)(rollup@4.27.4)(typescript@5.6.3)(vite@5.4.11(@types/node@20.17.7)): dependencies: - '@microsoft/api-extractor': 7.47.12(@types/node@20.17.6) - '@rollup/pluginutils': 5.1.3(rollup@4.27.3) + '@microsoft/api-extractor': 7.48.0(@types/node@20.17.7) + '@rollup/pluginutils': 5.1.3(rollup@4.27.4) '@volar/typescript': 2.4.10 '@vue/language-core': 2.1.6(typescript@5.6.3) compare-versions: 6.1.1 @@ -2647,27 +2640,27 @@ snapshots: magic-string: 0.30.13 typescript: 5.6.3 optionalDependencies: - vite: 5.4.11(@types/node@20.17.6) + vite: 5.4.11(@types/node@20.17.7) transitivePeerDependencies: - '@types/node' - rollup - supports-color - vite-plugin-strip-comments@0.0.3: {} + vite-plugin-strip-comments@0.0.4: {} - vite@5.4.11(@types/node@20.17.6): + vite@5.4.11(@types/node@20.17.7): dependencies: esbuild: 0.21.5 postcss: 8.4.49 - rollup: 4.27.3 + rollup: 4.27.4 optionalDependencies: - '@types/node': 20.17.6 + '@types/node': 20.17.7 fsevents: 2.3.3 - vitest@2.1.5(@types/node@20.17.6)(@vitest/browser@2.1.5)(@vitest/ui@2.1.5)(msw@2.6.5(@types/node@20.17.6)(typescript@5.6.3)): + vitest@2.1.5(@types/node@20.17.7)(@vitest/browser@2.1.5)(@vitest/ui@2.1.5)(msw@2.6.6(@types/node@20.17.7)(typescript@5.6.3)): dependencies: '@vitest/expect': 2.1.5 - '@vitest/mocker': 2.1.5(msw@2.6.5(@types/node@20.17.6)(typescript@5.6.3))(vite@5.4.11(@types/node@20.17.6)) + '@vitest/mocker': 2.1.5(msw@2.6.6(@types/node@20.17.7)(typescript@5.6.3))(vite@5.4.11(@types/node@20.17.7)) '@vitest/pretty-format': 2.1.5 '@vitest/runner': 2.1.5 '@vitest/snapshot': 2.1.5 @@ -2683,12 +2676,12 @@ snapshots: tinyexec: 0.3.1 tinypool: 1.0.2 tinyrainbow: 1.2.0 - vite: 5.4.11(@types/node@20.17.6) - vite-node: 2.1.5(@types/node@20.17.6) + vite: 5.4.11(@types/node@20.17.7) + vite-node: 2.1.5(@types/node@20.17.7) why-is-node-running: 2.3.0 optionalDependencies: - '@types/node': 20.17.6 - '@vitest/browser': 2.1.5(@types/node@20.17.6)(playwright@1.49.0)(typescript@5.6.3)(vite@5.4.11(@types/node@20.17.6))(vitest@2.1.5) + '@types/node': 20.17.7 + '@vitest/browser': 2.1.5(@types/node@20.17.7)(playwright@1.49.0)(typescript@5.6.3)(vite@5.4.11(@types/node@20.17.7))(vitest@2.1.5) '@vitest/ui': 2.1.5(vitest@2.1.5) transitivePeerDependencies: - less