@columbia-libraries/cul-toolkit
Version:
CUL customized Bootstrap 5 with Vite! Intended only for CUL projects and therefore unsupported.
5 lines • 91 kB
JavaScript
(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const n of document.querySelectorAll('link[rel="modulepreload"]'))i(n);new MutationObserver(n=>{for(const r of n)if(r.type==="childList")for(const o of r.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&i(o)}).observe(document,{childList:!0,subtree:!0});function e(n){const r={};return n.integrity&&(r.integrity=n.integrity),n.referrerPolicy&&(r.referrerPolicy=n.referrerPolicy),n.crossOrigin==="use-credentials"?r.credentials="include":n.crossOrigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function i(n){if(n.ep)return;n.ep=!0;const r=e(n);fetch(n.href,r)}})();var $="top",P="bottom",R="right",I="left",fe="auto",It=[$,P,R,I],pt="start",Ct="end",Js="clippingParents",ze="viewport",yt="popper",Zs="reference",We=It.reduce(function(s,t){return s.concat([t+"-"+pt,t+"-"+Ct])},[]),Ge=[].concat(It,[fe]).reduce(function(s,t){return s.concat([t,t+"-"+pt,t+"-"+Ct])},[]),ti="beforeRead",ei="read",si="afterRead",ii="beforeMain",ni="main",ri="afterMain",oi="beforeWrite",ai="write",li="afterWrite",ci=[ti,ei,si,ii,ni,ri,oi,ai,li];function z(s){return s?(s.nodeName||"").toLowerCase():null}function k(s){if(s==null)return window;if(s.toString()!=="[object Window]"){var t=s.ownerDocument;return t&&t.defaultView||window}return s}function mt(s){var t=k(s).Element;return s instanceof t||s instanceof Element}function V(s){var t=k(s).HTMLElement;return s instanceof t||s instanceof HTMLElement}function qe(s){if(typeof ShadowRoot>"u")return!1;var t=k(s).ShadowRoot;return s instanceof t||s instanceof ShadowRoot}function dn(s){var t=s.state;Object.keys(t.elements).forEach(function(e){var i=t.styles[e]||{},n=t.attributes[e]||{},r=t.elements[e];!V(r)||!z(r)||(Object.assign(r.style,i),Object.keys(n).forEach(function(o){var a=n[o];a===!1?r.removeAttribute(o):r.setAttribute(o,a===!0?"":a)}))})}function fn(s){var t=s.state,e={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,e.popper),t.styles=e,t.elements.arrow&&Object.assign(t.elements.arrow.style,e.arrow),function(){Object.keys(t.elements).forEach(function(i){var n=t.elements[i],r=t.attributes[i]||{},o=Object.keys(t.styles.hasOwnProperty(i)?t.styles[i]:e[i]),a=o.reduce(function(l,h){return l[h]="",l},{});!V(n)||!z(n)||(Object.assign(n.style,a),Object.keys(r).forEach(function(l){n.removeAttribute(l)}))})}}const ui={name:"applyStyles",enabled:!0,phase:"write",fn:dn,effect:fn,requires:["computeStyles"]};function Y(s){return s.split("-")[0]}var ft=Math.max,ce=Math.min,Ot=Math.round;function je(){var s=navigator.userAgentData;return s!=null&&s.brands&&Array.isArray(s.brands)?s.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function hi(){return!/^((?!chrome|android).)*safari/i.test(je())}function Nt(s,t,e){t===void 0&&(t=!1),e===void 0&&(e=!1);var i=s.getBoundingClientRect(),n=1,r=1;t&&V(s)&&(n=s.offsetWidth>0&&Ot(i.width)/s.offsetWidth||1,r=s.offsetHeight>0&&Ot(i.height)/s.offsetHeight||1);var o=mt(s)?k(s):window,a=o.visualViewport,l=!hi()&&e,h=(i.left+(l&&a?a.offsetLeft:0))/n,u=(i.top+(l&&a?a.offsetTop:0))/r,f=i.width/n,m=i.height/r;return{width:f,height:m,top:u,right:h+f,bottom:u+m,left:h,x:h,y:u}}function Xe(s){var t=Nt(s),e=s.offsetWidth,i=s.offsetHeight;return Math.abs(t.width-e)<=1&&(e=t.width),Math.abs(t.height-i)<=1&&(i=t.height),{x:s.offsetLeft,y:s.offsetTop,width:e,height:i}}function di(s,t){var e=t.getRootNode&&t.getRootNode();if(s.contains(t))return!0;if(e&&qe(e)){var i=t;do{if(i&&s.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function X(s){return k(s).getComputedStyle(s)}function pn(s){return["table","td","th"].indexOf(z(s))>=0}function it(s){return((mt(s)?s.ownerDocument:s.document)||window.document).documentElement}function pe(s){return z(s)==="html"?s:s.assignedSlot||s.parentNode||(qe(s)?s.host:null)||it(s)}function _s(s){return!V(s)||X(s).position==="fixed"?null:s.offsetParent}function mn(s){var t=/firefox/i.test(je()),e=/Trident/i.test(je());if(e&&V(s)){var i=X(s);if(i.position==="fixed")return null}var n=pe(s);for(qe(n)&&(n=n.host);V(n)&&["html","body"].indexOf(z(n))<0;){var r=X(n);if(r.transform!=="none"||r.perspective!=="none"||r.contain==="paint"||["transform","perspective"].indexOf(r.willChange)!==-1||t&&r.willChange==="filter"||t&&r.filter&&r.filter!=="none")return n;n=n.parentNode}return null}function Ft(s){for(var t=k(s),e=_s(s);e&&pn(e)&&X(e).position==="static";)e=_s(e);return e&&(z(e)==="html"||z(e)==="body"&&X(e).position==="static")?t:e||mn(s)||t}function Qe(s){return["top","bottom"].indexOf(s)>=0?"x":"y"}function Wt(s,t,e){return ft(s,ce(t,e))}function _n(s,t,e){var i=Wt(s,t,e);return i>e?e:i}function fi(){return{top:0,right:0,bottom:0,left:0}}function pi(s){return Object.assign({},fi(),s)}function mi(s,t){return t.reduce(function(e,i){return e[i]=s,e},{})}var gn=function(t,e){return t=typeof t=="function"?t(Object.assign({},e.rects,{placement:e.placement})):t,pi(typeof t!="number"?t:mi(t,It))};function En(s){var t,e=s.state,i=s.name,n=s.options,r=e.elements.arrow,o=e.modifiersData.popperOffsets,a=Y(e.placement),l=Qe(a),h=[I,R].indexOf(a)>=0,u=h?"height":"width";if(!(!r||!o)){var f=gn(n.padding,e),m=Xe(r),p=l==="y"?$:I,y=l==="y"?P:R,_=e.rects.reference[u]+e.rects.reference[l]-o[l]-e.rects.popper[u],E=o[l]-e.rects.reference[l],A=Ft(r),w=A?l==="y"?A.clientHeight||0:A.clientWidth||0:0,C=_/2-E/2,g=f[p],v=w-m[u]-f[y],b=w/2-m[u]/2+C,T=Wt(g,b,v),S=l;e.modifiersData[i]=(t={},t[S]=T,t.centerOffset=T-b,t)}}function vn(s){var t=s.state,e=s.options,i=e.element,n=i===void 0?"[data-popper-arrow]":i;n!=null&&(typeof n=="string"&&(n=t.elements.popper.querySelector(n),!n)||di(t.elements.popper,n)&&(t.elements.arrow=n))}const _i={name:"arrow",enabled:!0,phase:"main",fn:En,effect:vn,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function St(s){return s.split("-")[1]}var bn={top:"auto",right:"auto",bottom:"auto",left:"auto"};function yn(s,t){var e=s.x,i=s.y,n=t.devicePixelRatio||1;return{x:Ot(e*n)/n||0,y:Ot(i*n)/n||0}}function gs(s){var t,e=s.popper,i=s.popperRect,n=s.placement,r=s.variation,o=s.offsets,a=s.position,l=s.gpuAcceleration,h=s.adaptive,u=s.roundOffsets,f=s.isFixed,m=o.x,p=m===void 0?0:m,y=o.y,_=y===void 0?0:y,E=typeof u=="function"?u({x:p,y:_}):{x:p,y:_};p=E.x,_=E.y;var A=o.hasOwnProperty("x"),w=o.hasOwnProperty("y"),C=I,g=$,v=window;if(h){var b=Ft(e),T="clientHeight",S="clientWidth";if(b===k(e)&&(b=it(e),X(b).position!=="static"&&a==="absolute"&&(T="scrollHeight",S="scrollWidth")),b=b,n===$||(n===I||n===R)&&r===Ct){g=P;var N=f&&b===v&&v.visualViewport?v.visualViewport.height:b[T];_-=N-i.height,_*=l?1:-1}if(n===I||(n===$||n===P)&&r===Ct){C=R;var O=f&&b===v&&v.visualViewport?v.visualViewport.width:b[S];p-=O-i.width,p*=l?1:-1}}var L=Object.assign({position:a},h&&bn),B=u===!0?yn({x:p,y:_},k(e)):{x:p,y:_};if(p=B.x,_=B.y,l){var D;return Object.assign({},L,(D={},D[g]=w?"0":"",D[C]=A?"0":"",D.transform=(v.devicePixelRatio||1)<=1?"translate("+p+"px, "+_+"px)":"translate3d("+p+"px, "+_+"px, 0)",D))}return Object.assign({},L,(t={},t[g]=w?_+"px":"",t[C]=A?p+"px":"",t.transform="",t))}function An(s){var t=s.state,e=s.options,i=e.gpuAcceleration,n=i===void 0?!0:i,r=e.adaptive,o=r===void 0?!0:r,a=e.roundOffsets,l=a===void 0?!0:a,h={placement:Y(t.placement),variation:St(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:n,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,gs(Object.assign({},h,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:o,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,gs(Object.assign({},h,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const gi={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:An,data:{}};var Zt={passive:!0};function Tn(s){var t=s.state,e=s.instance,i=s.options,n=i.scroll,r=n===void 0?!0:n,o=i.resize,a=o===void 0?!0:o,l=k(t.elements.popper),h=[].concat(t.scrollParents.reference,t.scrollParents.popper);return r&&h.forEach(function(u){u.addEventListener("scroll",e.update,Zt)}),a&&l.addEventListener("resize",e.update,Zt),function(){r&&h.forEach(function(u){u.removeEventListener("scroll",e.update,Zt)}),a&&l.removeEventListener("resize",e.update,Zt)}}const Ei={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Tn,data:{}};var wn={left:"right",right:"left",bottom:"top",top:"bottom"};function oe(s){return s.replace(/left|right|bottom|top/g,function(t){return wn[t]})}var Cn={start:"end",end:"start"};function Es(s){return s.replace(/start|end/g,function(t){return Cn[t]})}function Je(s){var t=k(s),e=t.pageXOffset,i=t.pageYOffset;return{scrollLeft:e,scrollTop:i}}function Ze(s){return Nt(it(s)).left+Je(s).scrollLeft}function On(s,t){var e=k(s),i=it(s),n=e.visualViewport,r=i.clientWidth,o=i.clientHeight,a=0,l=0;if(n){r=n.width,o=n.height;var h=hi();(h||!h&&t==="fixed")&&(a=n.offsetLeft,l=n.offsetTop)}return{width:r,height:o,x:a+Ze(s),y:l}}function Nn(s){var t,e=it(s),i=Je(s),n=(t=s.ownerDocument)==null?void 0:t.body,r=ft(e.scrollWidth,e.clientWidth,n?n.scrollWidth:0,n?n.clientWidth:0),o=ft(e.scrollHeight,e.clientHeight,n?n.scrollHeight:0,n?n.clientHeight:0),a=-i.scrollLeft+Ze(s),l=-i.scrollTop;return X(n||e).direction==="rtl"&&(a+=ft(e.clientWidth,n?n.clientWidth:0)-r),{width:r,height:o,x:a,y:l}}function ts(s){var t=X(s),e=t.overflow,i=t.overflowX,n=t.overflowY;return/auto|scroll|overlay|hidden/.test(e+n+i)}function vi(s){return["html","body","#document"].indexOf(z(s))>=0?s.ownerDocument.body:V(s)&&ts(s)?s:vi(pe(s))}function jt(s,t){var e;t===void 0&&(t=[]);var i=vi(s),n=i===((e=s.ownerDocument)==null?void 0:e.body),r=k(i),o=n?[r].concat(r.visualViewport||[],ts(i)?i:[]):i,a=t.concat(o);return n?a:a.concat(jt(pe(o)))}function Be(s){return Object.assign({},s,{left:s.x,top:s.y,right:s.x+s.width,bottom:s.y+s.height})}function Sn(s,t){var e=Nt(s,!1,t==="fixed");return e.top=e.top+s.clientTop,e.left=e.left+s.clientLeft,e.bottom=e.top+s.clientHeight,e.right=e.left+s.clientWidth,e.width=s.clientWidth,e.height=s.clientHeight,e.x=e.left,e.y=e.top,e}function vs(s,t,e){return t===ze?Be(On(s,e)):mt(t)?Sn(t,e):Be(Nn(it(s)))}function Ln(s){var t=jt(pe(s)),e=["absolute","fixed"].indexOf(X(s).position)>=0,i=e&&V(s)?Ft(s):s;return mt(i)?t.filter(function(n){return mt(n)&&di(n,i)&&z(n)!=="body"}):[]}function Dn(s,t,e,i){var n=t==="clippingParents"?Ln(s):[].concat(t),r=[].concat(n,[e]),o=r[0],a=r.reduce(function(l,h){var u=vs(s,h,i);return l.top=ft(u.top,l.top),l.right=ce(u.right,l.right),l.bottom=ce(u.bottom,l.bottom),l.left=ft(u.left,l.left),l},vs(s,o,i));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function bi(s){var t=s.reference,e=s.element,i=s.placement,n=i?Y(i):null,r=i?St(i):null,o=t.x+t.width/2-e.width/2,a=t.y+t.height/2-e.height/2,l;switch(n){case $:l={x:o,y:t.y-e.height};break;case P:l={x:o,y:t.y+t.height};break;case R:l={x:t.x+t.width,y:a};break;case I:l={x:t.x-e.width,y:a};break;default:l={x:t.x,y:t.y}}var h=n?Qe(n):null;if(h!=null){var u=h==="y"?"height":"width";switch(r){case pt:l[h]=l[h]-(t[u]/2-e[u]/2);break;case Ct:l[h]=l[h]+(t[u]/2-e[u]/2);break}}return l}function Lt(s,t){t===void 0&&(t={});var e=t,i=e.placement,n=i===void 0?s.placement:i,r=e.strategy,o=r===void 0?s.strategy:r,a=e.boundary,l=a===void 0?Js:a,h=e.rootBoundary,u=h===void 0?ze:h,f=e.elementContext,m=f===void 0?yt:f,p=e.altBoundary,y=p===void 0?!1:p,_=e.padding,E=_===void 0?0:_,A=pi(typeof E!="number"?E:mi(E,It)),w=m===yt?Zs:yt,C=s.rects.popper,g=s.elements[y?w:m],v=Dn(mt(g)?g:g.contextElement||it(s.elements.popper),l,u,o),b=Nt(s.elements.reference),T=bi({reference:b,element:C,placement:n}),S=Be(Object.assign({},C,T)),N=m===yt?S:b,O={top:v.top-N.top+A.top,bottom:N.bottom-v.bottom+A.bottom,left:v.left-N.left+A.left,right:N.right-v.right+A.right},L=s.modifiersData.offset;if(m===yt&&L){var B=L[n];Object.keys(O).forEach(function(D){var ot=[R,P].indexOf(D)>=0?1:-1,at=[$,P].indexOf(D)>=0?"y":"x";O[D]+=B[at]*ot})}return O}function $n(s,t){t===void 0&&(t={});var e=t,i=e.placement,n=e.boundary,r=e.rootBoundary,o=e.padding,a=e.flipVariations,l=e.allowedAutoPlacements,h=l===void 0?Ge:l,u=St(i),f=u?a?We:We.filter(function(y){return St(y)===u}):It,m=f.filter(function(y){return h.indexOf(y)>=0});m.length===0&&(m=f);var p=m.reduce(function(y,_){return y[_]=Lt(s,{placement:_,boundary:n,rootBoundary:r,padding:o})[Y(_)],y},{});return Object.keys(p).sort(function(y,_){return p[y]-p[_]})}function In(s){if(Y(s)===fe)return[];var t=oe(s);return[Es(s),t,Es(t)]}function Mn(s){var t=s.state,e=s.options,i=s.name;if(!t.modifiersData[i]._skip){for(var n=e.mainAxis,r=n===void 0?!0:n,o=e.altAxis,a=o===void 0?!0:o,l=e.fallbackPlacements,h=e.padding,u=e.boundary,f=e.rootBoundary,m=e.altBoundary,p=e.flipVariations,y=p===void 0?!0:p,_=e.allowedAutoPlacements,E=t.options.placement,A=Y(E),w=A===E,C=l||(w||!y?[oe(E)]:In(E)),g=[E].concat(C).reduce(function(Et,J){return Et.concat(Y(J)===fe?$n(t,{placement:J,boundary:u,rootBoundary:f,padding:h,flipVariations:y,allowedAutoPlacements:_}):J)},[]),v=t.rects.reference,b=t.rects.popper,T=new Map,S=!0,N=g[0],O=0;O<g.length;O++){var L=g[O],B=Y(L),D=St(L)===pt,ot=[$,P].indexOf(B)>=0,at=ot?"width":"height",x=Lt(t,{placement:L,boundary:u,rootBoundary:f,altBoundary:m,padding:h}),F=ot?D?R:I:D?P:$;v[at]>b[at]&&(F=oe(F));var Gt=oe(F),lt=[];if(r&<.push(x[B]<=0),a&<.push(x[F]<=0,x[Gt]<=0),lt.every(function(Et){return Et})){N=L,S=!1;break}T.set(L,lt)}if(S)for(var qt=y?3:1,be=function(J){var kt=g.find(function(Qt){var ct=T.get(Qt);if(ct)return ct.slice(0,J).every(function(ye){return ye})});if(kt)return N=kt,"break"},Rt=qt;Rt>0;Rt--){var Xt=be(Rt);if(Xt==="break")break}t.placement!==N&&(t.modifiersData[i]._skip=!0,t.placement=N,t.reset=!0)}}const yi={name:"flip",enabled:!0,phase:"main",fn:Mn,requiresIfExists:["offset"],data:{_skip:!1}};function bs(s,t,e){return e===void 0&&(e={x:0,y:0}),{top:s.top-t.height-e.y,right:s.right-t.width+e.x,bottom:s.bottom-t.height+e.y,left:s.left-t.width-e.x}}function ys(s){return[$,R,P,I].some(function(t){return s[t]>=0})}function xn(s){var t=s.state,e=s.name,i=t.rects.reference,n=t.rects.popper,r=t.modifiersData.preventOverflow,o=Lt(t,{elementContext:"reference"}),a=Lt(t,{altBoundary:!0}),l=bs(o,i),h=bs(a,n,r),u=ys(l),f=ys(h);t.modifiersData[e]={referenceClippingOffsets:l,popperEscapeOffsets:h,isReferenceHidden:u,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":f})}const Ai={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:xn};function Pn(s,t,e){var i=Y(s),n=[I,$].indexOf(i)>=0?-1:1,r=typeof e=="function"?e(Object.assign({},t,{placement:s})):e,o=r[0],a=r[1];return o=o||0,a=(a||0)*n,[I,R].indexOf(i)>=0?{x:a,y:o}:{x:o,y:a}}function Rn(s){var t=s.state,e=s.options,i=s.name,n=e.offset,r=n===void 0?[0,0]:n,o=Ge.reduce(function(u,f){return u[f]=Pn(f,t.rects,r),u},{}),a=o[t.placement],l=a.x,h=a.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=h),t.modifiersData[i]=o}const Ti={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Rn};function kn(s){var t=s.state,e=s.name;t.modifiersData[e]=bi({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const wi={name:"popperOffsets",enabled:!0,phase:"read",fn:kn,data:{}};function Vn(s){return s==="x"?"y":"x"}function Hn(s){var t=s.state,e=s.options,i=s.name,n=e.mainAxis,r=n===void 0?!0:n,o=e.altAxis,a=o===void 0?!1:o,l=e.boundary,h=e.rootBoundary,u=e.altBoundary,f=e.padding,m=e.tether,p=m===void 0?!0:m,y=e.tetherOffset,_=y===void 0?0:y,E=Lt(t,{boundary:l,rootBoundary:h,padding:f,altBoundary:u}),A=Y(t.placement),w=St(t.placement),C=!w,g=Qe(A),v=Vn(g),b=t.modifiersData.popperOffsets,T=t.rects.reference,S=t.rects.popper,N=typeof _=="function"?_(Object.assign({},t.rects,{placement:t.placement})):_,O=typeof N=="number"?{mainAxis:N,altAxis:N}:Object.assign({mainAxis:0,altAxis:0},N),L=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,B={x:0,y:0};if(b){if(r){var D,ot=g==="y"?$:I,at=g==="y"?P:R,x=g==="y"?"height":"width",F=b[g],Gt=F+E[ot],lt=F-E[at],qt=p?-S[x]/2:0,be=w===pt?T[x]:S[x],Rt=w===pt?-S[x]:-T[x],Xt=t.elements.arrow,Et=p&&Xt?Xe(Xt):{width:0,height:0},J=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:fi(),kt=J[ot],Qt=J[at],ct=Wt(0,T[x],Et[x]),ye=C?T[x]/2-qt-ct-kt-O.mainAxis:be-ct-kt-O.mainAxis,on=C?-T[x]/2+qt+ct+Qt+O.mainAxis:Rt+ct+Qt+O.mainAxis,Ae=t.elements.arrow&&Ft(t.elements.arrow),an=Ae?g==="y"?Ae.clientTop||0:Ae.clientLeft||0:0,as=(D=L==null?void 0:L[g])!=null?D:0,ln=F+ye-as-an,cn=F+on-as,ls=Wt(p?ce(Gt,ln):Gt,F,p?ft(lt,cn):lt);b[g]=ls,B[g]=ls-F}if(a){var cs,un=g==="x"?$:I,hn=g==="x"?P:R,ut=b[v],Jt=v==="y"?"height":"width",us=ut+E[un],hs=ut-E[hn],Te=[$,I].indexOf(A)!==-1,ds=(cs=L==null?void 0:L[v])!=null?cs:0,fs=Te?us:ut-T[Jt]-S[Jt]-ds+O.altAxis,ps=Te?ut+T[Jt]+S[Jt]-ds-O.altAxis:hs,ms=p&&Te?_n(fs,ut,ps):Wt(p?fs:us,ut,p?ps:hs);b[v]=ms,B[v]=ms-ut}t.modifiersData[i]=B}}const Ci={name:"preventOverflow",enabled:!0,phase:"main",fn:Hn,requiresIfExists:["offset"]};function Wn(s){return{scrollLeft:s.scrollLeft,scrollTop:s.scrollTop}}function jn(s){return s===k(s)||!V(s)?Je(s):Wn(s)}function Bn(s){var t=s.getBoundingClientRect(),e=Ot(t.width)/s.offsetWidth||1,i=Ot(t.height)/s.offsetHeight||1;return e!==1||i!==1}function Fn(s,t,e){e===void 0&&(e=!1);var i=V(t),n=V(t)&&Bn(t),r=it(t),o=Nt(s,n,e),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(i||!i&&!e)&&((z(t)!=="body"||ts(r))&&(a=jn(t)),V(t)?(l=Nt(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):r&&(l.x=Ze(r))),{x:o.left+a.scrollLeft-l.x,y:o.top+a.scrollTop-l.y,width:o.width,height:o.height}}function Kn(s){var t=new Map,e=new Set,i=[];s.forEach(function(r){t.set(r.name,r)});function n(r){e.add(r.name);var o=[].concat(r.requires||[],r.requiresIfExists||[]);o.forEach(function(a){if(!e.has(a)){var l=t.get(a);l&&n(l)}}),i.push(r)}return s.forEach(function(r){e.has(r.name)||n(r)}),i}function Yn(s){var t=Kn(s);return ci.reduce(function(e,i){return e.concat(t.filter(function(n){return n.phase===i}))},[])}function Un(s){var t;return function(){return t||(t=new Promise(function(e){Promise.resolve().then(function(){t=void 0,e(s())})})),t}}function zn(s){var t=s.reduce(function(e,i){var n=e[i.name];return e[i.name]=n?Object.assign({},n,i,{options:Object.assign({},n.options,i.options),data:Object.assign({},n.data,i.data)}):i,e},{});return Object.keys(t).map(function(e){return t[e]})}var As={placement:"bottom",modifiers:[],strategy:"absolute"};function Ts(){for(var s=arguments.length,t=new Array(s),e=0;e<s;e++)t[e]=arguments[e];return!t.some(function(i){return!(i&&typeof i.getBoundingClientRect=="function")})}function Oi(s){s===void 0&&(s={});var t=s,e=t.defaultModifiers,i=e===void 0?[]:e,n=t.defaultOptions,r=n===void 0?As:n;return function(a,l,h){h===void 0&&(h=r);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},As,r),modifiersData:{},elements:{reference:a,popper:l},attributes:{},styles:{}},f=[],m=!1,p={state:u,setOptions:function(A){var w=typeof A=="function"?A(u.options):A;_(),u.options=Object.assign({},r,u.options,w),u.scrollParents={reference:mt(a)?jt(a):a.contextElement?jt(a.contextElement):[],popper:jt(l)};var C=Yn(zn([].concat(i,u.options.modifiers)));return u.orderedModifiers=C.filter(function(g){return g.enabled}),y(),p.update()},forceUpdate:function(){if(!m){var A=u.elements,w=A.reference,C=A.popper;if(Ts(w,C)){u.rects={reference:Fn(w,Ft(C),u.options.strategy==="fixed"),popper:Xe(C)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(O){return u.modifiersData[O.name]=Object.assign({},O.data)});for(var g=0;g<u.orderedModifiers.length;g++){if(u.reset===!0){u.reset=!1,g=-1;continue}var v=u.orderedModifiers[g],b=v.fn,T=v.options,S=T===void 0?{}:T,N=v.name;typeof b=="function"&&(u=b({state:u,options:S,name:N,instance:p})||u)}}}},update:Un(function(){return new Promise(function(E){p.forceUpdate(),E(u)})}),destroy:function(){_(),m=!0}};if(!Ts(a,l))return p;p.setOptions(h).then(function(E){!m&&h.onFirstUpdate&&h.onFirstUpdate(E)});function y(){u.orderedModifiers.forEach(function(E){var A=E.name,w=E.options,C=w===void 0?{}:w,g=E.effect;if(typeof g=="function"){var v=g({state:u,name:A,instance:p,options:C}),b=function(){};f.push(v||b)}})}function _(){f.forEach(function(E){return E()}),f=[]}return p}}var Gn=[Ei,wi,gi,ui,Ti,yi,Ci,_i,Ai],es=Oi({defaultModifiers:Gn});const Ni=Object.freeze(Object.defineProperty({__proto__:null,afterMain:ri,afterRead:si,afterWrite:li,applyStyles:ui,arrow:_i,auto:fe,basePlacements:It,beforeMain:ii,beforeRead:ti,beforeWrite:oi,bottom:P,clippingParents:Js,computeStyles:gi,createPopper:es,detectOverflow:Lt,end:Ct,eventListeners:Ei,flip:yi,hide:Ai,left:I,main:ni,modifierPhases:ci,offset:Ti,placements:Ge,popper:yt,popperGenerator:Oi,popperOffsets:wi,preventOverflow:Ci,read:ei,reference:Zs,right:R,start:pt,top:$,variationPlacements:We,viewport:ze,write:ai},Symbol.toStringTag,{value:"Module"}));/*!
* Bootstrap v5.3.8 (https://getbootstrap.com/)
* Copyright 2011-2025 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
*/const Z=new Map,we={set(s,t,e){Z.has(s)||Z.set(s,new Map);const i=Z.get(s);if(!i.has(t)&&i.size!==0){console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(i.keys())[0]}.`);return}i.set(t,e)},get(s,t){return Z.has(s)&&Z.get(s).get(t)||null},remove(s,t){if(!Z.has(s))return;const e=Z.get(s);e.delete(t),e.size===0&&Z.delete(s)}},qn=1e6,Xn=1e3,Fe="transitionend",Si=s=>(s&&window.CSS&&window.CSS.escape&&(s=s.replace(/#([^\s"#']+)/g,(t,e)=>`#${CSS.escape(e)}`)),s),Qn=s=>s==null?`${s}`:Object.prototype.toString.call(s).match(/\s([a-z]+)/i)[1].toLowerCase(),Jn=s=>{do s+=Math.floor(Math.random()*qn);while(document.getElementById(s));return s},Zn=s=>{if(!s)return 0;let{transitionDuration:t,transitionDelay:e}=window.getComputedStyle(s);const i=Number.parseFloat(t),n=Number.parseFloat(e);return!i&&!n?0:(t=t.split(",")[0],e=e.split(",")[0],(Number.parseFloat(t)+Number.parseFloat(e))*Xn)},Li=s=>{s.dispatchEvent(new Event(Fe))},G=s=>!s||typeof s!="object"?!1:(typeof s.jquery<"u"&&(s=s[0]),typeof s.nodeType<"u"),tt=s=>G(s)?s.jquery?s[0]:s:typeof s=="string"&&s.length>0?document.querySelector(Si(s)):null,Mt=s=>{if(!G(s)||s.getClientRects().length===0)return!1;const t=getComputedStyle(s).getPropertyValue("visibility")==="visible",e=s.closest("details:not([open])");if(!e)return t;if(e!==s){const i=s.closest("summary");if(i&&i.parentNode!==e||i===null)return!1}return t},et=s=>!s||s.nodeType!==Node.ELEMENT_NODE||s.classList.contains("disabled")?!0:typeof s.disabled<"u"?s.disabled:s.hasAttribute("disabled")&&s.getAttribute("disabled")!=="false",Di=s=>{if(!document.documentElement.attachShadow)return null;if(typeof s.getRootNode=="function"){const t=s.getRootNode();return t instanceof ShadowRoot?t:null}return s instanceof ShadowRoot?s:s.parentNode?Di(s.parentNode):null},ue=()=>{},Kt=s=>{s.offsetHeight},$i=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,Ce=[],tr=s=>{document.readyState==="loading"?(Ce.length||document.addEventListener("DOMContentLoaded",()=>{for(const t of Ce)t()}),Ce.push(s)):s()},H=()=>document.documentElement.dir==="rtl",j=s=>{tr(()=>{const t=$i();if(t){const e=s.NAME,i=t.fn[e];t.fn[e]=s.jQueryInterface,t.fn[e].Constructor=s,t.fn[e].noConflict=()=>(t.fn[e]=i,s.jQueryInterface)}})},M=(s,t=[],e=s)=>typeof s=="function"?s.call(...t):e,Ii=(s,t,e=!0)=>{if(!e){M(s);return}const n=Zn(t)+5;let r=!1;const o=({target:a})=>{a===t&&(r=!0,t.removeEventListener(Fe,o),M(s))};t.addEventListener(Fe,o),setTimeout(()=>{r||Li(t)},n)},ss=(s,t,e,i)=>{const n=s.length;let r=s.indexOf(t);return r===-1?!e&&i?s[n-1]:s[0]:(r+=e?1:-1,i&&(r=(r+n)%n),s[Math.max(0,Math.min(r,n-1))])},er=/[^.]*(?=\..*)\.|.*/,sr=/\..*/,ir=/::\d+$/,Oe={};let ws=1;const Mi={mouseenter:"mouseover",mouseleave:"mouseout"},nr=new Set(["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"]);function xi(s,t){return t&&`${t}::${ws++}`||s.uidEvent||ws++}function Pi(s){const t=xi(s);return s.uidEvent=t,Oe[t]=Oe[t]||{},Oe[t]}function rr(s,t){return function e(i){return is(i,{delegateTarget:s}),e.oneOff&&c.off(s,i.type,t),t.apply(s,[i])}}function or(s,t,e){return function i(n){const r=s.querySelectorAll(t);for(let{target:o}=n;o&&o!==this;o=o.parentNode)for(const a of r)if(a===o)return is(n,{delegateTarget:o}),i.oneOff&&c.off(s,n.type,t,e),e.apply(o,[n])}}function Ri(s,t,e=null){return Object.values(s).find(i=>i.callable===t&&i.delegationSelector===e)}function ki(s,t,e){const i=typeof t=="string",n=i?e:t||e;let r=Vi(s);return nr.has(r)||(r=s),[i,n,r]}function Cs(s,t,e,i,n){if(typeof t!="string"||!s)return;let[r,o,a]=ki(t,e,i);t in Mi&&(o=(y=>function(_){if(!_.relatedTarget||_.relatedTarget!==_.delegateTarget&&!_.delegateTarget.contains(_.relatedTarget))return y.call(this,_)})(o));const l=Pi(s),h=l[a]||(l[a]={}),u=Ri(h,o,r?e:null);if(u){u.oneOff=u.oneOff&&n;return}const f=xi(o,t.replace(er,"")),m=r?or(s,e,o):rr(s,o);m.delegationSelector=r?e:null,m.callable=o,m.oneOff=n,m.uidEvent=f,h[f]=m,s.addEventListener(a,m,r)}function Ke(s,t,e,i,n){const r=Ri(t[e],i,n);r&&(s.removeEventListener(e,r,!!n),delete t[e][r.uidEvent])}function ar(s,t,e,i){const n=t[e]||{};for(const[r,o]of Object.entries(n))r.includes(i)&&Ke(s,t,e,o.callable,o.delegationSelector)}function Vi(s){return s=s.replace(sr,""),Mi[s]||s}const c={on(s,t,e,i){Cs(s,t,e,i,!1)},one(s,t,e,i){Cs(s,t,e,i,!0)},off(s,t,e,i){if(typeof t!="string"||!s)return;const[n,r,o]=ki(t,e,i),a=o!==t,l=Pi(s),h=l[o]||{},u=t.startsWith(".");if(typeof r<"u"){if(!Object.keys(h).length)return;Ke(s,l,o,r,n?e:null);return}if(u)for(const f of Object.keys(l))ar(s,l,f,t.slice(1));for(const[f,m]of Object.entries(h)){const p=f.replace(ir,"");(!a||t.includes(p))&&Ke(s,l,o,m.callable,m.delegationSelector)}},trigger(s,t,e){if(typeof t!="string"||!s)return null;const i=$i(),n=Vi(t),r=t!==n;let o=null,a=!0,l=!0,h=!1;r&&i&&(o=i.Event(t,e),i(s).trigger(o),a=!o.isPropagationStopped(),l=!o.isImmediatePropagationStopped(),h=o.isDefaultPrevented());const u=is(new Event(t,{bubbles:a,cancelable:!0}),e);return h&&u.preventDefault(),l&&s.dispatchEvent(u),u.defaultPrevented&&o&&o.preventDefault(),u}};function is(s,t={}){for(const[e,i]of Object.entries(t))try{s[e]=i}catch{Object.defineProperty(s,e,{configurable:!0,get(){return i}})}return s}function Os(s){if(s==="true")return!0;if(s==="false")return!1;if(s===Number(s).toString())return Number(s);if(s===""||s==="null")return null;if(typeof s!="string")return s;try{return JSON.parse(decodeURIComponent(s))}catch{return s}}function Ne(s){return s.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}const q={setDataAttribute(s,t,e){s.setAttribute(`data-bs-${Ne(t)}`,e)},removeDataAttribute(s,t){s.removeAttribute(`data-bs-${Ne(t)}`)},getDataAttributes(s){if(!s)return{};const t={},e=Object.keys(s.dataset).filter(i=>i.startsWith("bs")&&!i.startsWith("bsConfig"));for(const i of e){let n=i.replace(/^bs/,"");n=n.charAt(0).toLowerCase()+n.slice(1),t[n]=Os(s.dataset[i])}return t},getDataAttribute(s,t){return Os(s.getAttribute(`data-bs-${Ne(t)}`))}};class Yt{static get Default(){return{}}static get DefaultType(){return{}}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}_getConfig(t){return t=this._mergeConfigObj(t),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}_configAfterMerge(t){return t}_mergeConfigObj(t,e){const i=G(e)?q.getDataAttribute(e,"config"):{};return{...this.constructor.Default,...typeof i=="object"?i:{},...G(e)?q.getDataAttributes(e):{},...typeof t=="object"?t:{}}}_typeCheckConfig(t,e=this.constructor.DefaultType){for(const[i,n]of Object.entries(e)){const r=t[i],o=G(r)?"element":Qn(r);if(!new RegExp(n).test(o))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${i}" provided type "${o}" but expected type "${n}".`)}}}const lr="5.3.8";class K extends Yt{constructor(t,e){super(),t=tt(t),t&&(this._element=t,this._config=this._getConfig(e),we.set(this._element,this.constructor.DATA_KEY,this))}dispose(){we.remove(this._element,this.constructor.DATA_KEY),c.off(this._element,this.constructor.EVENT_KEY);for(const t of Object.getOwnPropertyNames(this))this[t]=null}_queueCallback(t,e,i=!0){Ii(t,e,i)}_getConfig(t){return t=this._mergeConfigObj(t,this._element),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}static getInstance(t){return we.get(tt(t),this.DATA_KEY)}static getOrCreateInstance(t,e={}){return this.getInstance(t)||new this(t,typeof e=="object"?e:null)}static get VERSION(){return lr}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(t){return`${t}${this.EVENT_KEY}`}}const Se=s=>{let t=s.getAttribute("data-bs-target");if(!t||t==="#"){let e=s.getAttribute("href");if(!e||!e.includes("#")&&!e.startsWith("."))return null;e.includes("#")&&!e.startsWith("#")&&(e=`#${e.split("#")[1]}`),t=e&&e!=="#"?e.trim():null}return t?t.split(",").map(e=>Si(e)).join(","):null},d={find(s,t=document.documentElement){return[].concat(...Element.prototype.querySelectorAll.call(t,s))},findOne(s,t=document.documentElement){return Element.prototype.querySelector.call(t,s)},children(s,t){return[].concat(...s.children).filter(e=>e.matches(t))},parents(s,t){const e=[];let i=s.parentNode.closest(t);for(;i;)e.push(i),i=i.parentNode.closest(t);return e},prev(s,t){let e=s.previousElementSibling;for(;e;){if(e.matches(t))return[e];e=e.previousElementSibling}return[]},next(s,t){let e=s.nextElementSibling;for(;e;){if(e.matches(t))return[e];e=e.nextElementSibling}return[]},focusableChildren(s){const t=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map(e=>`${e}:not([tabindex^="-"])`).join(",");return this.find(t,s).filter(e=>!et(e)&&Mt(e))},getSelectorFromElement(s){const t=Se(s);return t&&d.findOne(t)?t:null},getElementFromSelector(s){const t=Se(s);return t?d.findOne(t):null},getMultipleElementsFromSelector(s){const t=Se(s);return t?d.find(t):[]}},me=(s,t="hide")=>{const e=`click.dismiss${s.EVENT_KEY}`,i=s.NAME;c.on(document,e,`[data-bs-dismiss="${i}"]`,function(n){if(["A","AREA"].includes(this.tagName)&&n.preventDefault(),et(this))return;const r=d.getElementFromSelector(this)||this.closest(`.${i}`);s.getOrCreateInstance(r)[t]()})},cr="alert",ur="bs.alert",Hi=`.${ur}`,hr=`close${Hi}`,dr=`closed${Hi}`,fr="fade",pr="show";class _e extends K{static get NAME(){return cr}close(){if(c.trigger(this._element,hr).defaultPrevented)return;this._element.classList.remove(pr);const e=this._element.classList.contains(fr);this._queueCallback(()=>this._destroyElement(),this._element,e)}_destroyElement(){this._element.remove(),c.trigger(this._element,dr),this.dispose()}static jQueryInterface(t){return this.each(function(){const e=_e.getOrCreateInstance(this);if(typeof t=="string"){if(e[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method named "${t}"`);e[t](this)}})}}me(_e,"close");j(_e);const mr="button",_r="bs.button",gr=`.${_r}`,Er=".data-api",vr="active",Ns='[data-bs-toggle="button"]',br=`click${gr}${Er}`;class ge extends K{static get NAME(){return mr}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle(vr))}static jQueryInterface(t){return this.each(function(){const e=ge.getOrCreateInstance(this);t==="toggle"&&e[t]()})}}c.on(document,br,Ns,s=>{s.preventDefault();const t=s.target.closest(Ns);ge.getOrCreateInstance(t).toggle()});j(ge);const yr="swipe",xt=".bs.swipe",Ar=`touchstart${xt}`,Tr=`touchmove${xt}`,wr=`touchend${xt}`,Cr=`pointerdown${xt}`,Or=`pointerup${xt}`,Nr="touch",Sr="pen",Lr="pointer-event",Dr=40,$r={endCallback:null,leftCallback:null,rightCallback:null},Ir={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class he extends Yt{constructor(t,e){super(),this._element=t,!(!t||!he.isSupported())&&(this._config=this._getConfig(e),this._deltaX=0,this._supportPointerEvents=!!window.PointerEvent,this._initEvents())}static get Default(){return $r}static get DefaultType(){return Ir}static get NAME(){return yr}dispose(){c.off(this._element,xt)}_start(t){if(!this._supportPointerEvents){this._deltaX=t.touches[0].clientX;return}this._eventIsPointerPenTouch(t)&&(this._deltaX=t.clientX)}_end(t){this._eventIsPointerPenTouch(t)&&(this._deltaX=t.clientX-this._deltaX),this._handleSwipe(),M(this._config.endCallback)}_move(t){this._deltaX=t.touches&&t.touches.length>1?0:t.touches[0].clientX-this._deltaX}_handleSwipe(){const t=Math.abs(this._deltaX);if(t<=Dr)return;const e=t/this._deltaX;this._deltaX=0,e&&M(e>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(c.on(this._element,Cr,t=>this._start(t)),c.on(this._element,Or,t=>this._end(t)),this._element.classList.add(Lr)):(c.on(this._element,Ar,t=>this._start(t)),c.on(this._element,Tr,t=>this._move(t)),c.on(this._element,wr,t=>this._end(t)))}_eventIsPointerPenTouch(t){return this._supportPointerEvents&&(t.pointerType===Sr||t.pointerType===Nr)}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}}const Mr="carousel",xr="bs.carousel",nt=`.${xr}`,Wi=".data-api",Pr="ArrowLeft",Rr="ArrowRight",kr=500,Vt="next",vt="prev",At="left",ae="right",Vr=`slide${nt}`,Le=`slid${nt}`,Hr=`keydown${nt}`,Wr=`mouseenter${nt}`,jr=`mouseleave${nt}`,Br=`dragstart${nt}`,Fr=`load${nt}${Wi}`,Kr=`click${nt}${Wi}`,ji="carousel",te="active",Yr="slide",Ur="carousel-item-end",zr="carousel-item-start",Gr="carousel-item-next",qr="carousel-item-prev",Bi=".active",Fi=".carousel-item",Xr=Bi+Fi,Qr=".carousel-item img",Jr=".carousel-indicators",Zr="[data-bs-slide], [data-bs-slide-to]",to='[data-bs-ride="carousel"]',eo={[Pr]:ae,[Rr]:At},so={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},io={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class Ut extends K{constructor(t,e){super(t,e),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=d.findOne(Jr,this._element),this._addEventListeners(),this._config.ride===ji&&this.cycle()}static get Default(){return so}static get DefaultType(){return io}static get NAME(){return Mr}next(){this._slide(Vt)}nextWhenVisible(){!document.hidden&&Mt(this._element)&&this.next()}prev(){this._slide(vt)}pause(){this._isSliding&&Li(this._element),this._clearInterval()}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval(()=>this.nextWhenVisible(),this._config.interval)}_maybeEnableCycle(){if(this._config.ride){if(this._isSliding){c.one(this._element,Le,()=>this.cycle());return}this.cycle()}}to(t){const e=this._getItems();if(t>e.length-1||t<0)return;if(this._isSliding){c.one(this._element,Le,()=>this.to(t));return}const i=this._getItemIndex(this._getActive());if(i===t)return;const n=t>i?Vt:vt;this._slide(n,e[t])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(t){return t.defaultInterval=t.interval,t}_addEventListeners(){this._config.keyboard&&c.on(this._element,Hr,t=>this._keydown(t)),this._config.pause==="hover"&&(c.on(this._element,Wr,()=>this.pause()),c.on(this._element,jr,()=>this._maybeEnableCycle())),this._config.touch&&he.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const i of d.find(Qr,this._element))c.on(i,Br,n=>n.preventDefault());const e={leftCallback:()=>this._slide(this._directionToOrder(At)),rightCallback:()=>this._slide(this._directionToOrder(ae)),endCallback:()=>{this._config.pause==="hover"&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(()=>this._maybeEnableCycle(),kr+this._config.interval))}};this._swipeHelper=new he(this._element,e)}_keydown(t){if(/input|textarea/i.test(t.target.tagName))return;const e=eo[t.key];e&&(t.preventDefault(),this._slide(this._directionToOrder(e)))}_getItemIndex(t){return this._getItems().indexOf(t)}_setActiveIndicatorElement(t){if(!this._indicatorsElement)return;const e=d.findOne(Bi,this._indicatorsElement);e.classList.remove(te),e.removeAttribute("aria-current");const i=d.findOne(`[data-bs-slide-to="${t}"]`,this._indicatorsElement);i&&(i.classList.add(te),i.setAttribute("aria-current","true"))}_updateInterval(){const t=this._activeElement||this._getActive();if(!t)return;const e=Number.parseInt(t.getAttribute("data-bs-interval"),10);this._config.interval=e||this._config.defaultInterval}_slide(t,e=null){if(this._isSliding)return;const i=this._getActive(),n=t===Vt,r=e||ss(this._getItems(),i,n,this._config.wrap);if(r===i)return;const o=this._getItemIndex(r),a=p=>c.trigger(this._element,p,{relatedTarget:r,direction:this._orderToDirection(t),from:this._getItemIndex(i),to:o});if(a(Vr).defaultPrevented||!i||!r)return;const h=!!this._interval;this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(o),this._activeElement=r;const u=n?zr:Ur,f=n?Gr:qr;r.classList.add(f),Kt(r),i.classList.add(u),r.classList.add(u);const m=()=>{r.classList.remove(u,f),r.classList.add(te),i.classList.remove(te,f,u),this._isSliding=!1,a(Le)};this._queueCallback(m,i,this._isAnimated()),h&&this.cycle()}_isAnimated(){return this._element.classList.contains(Yr)}_getActive(){return d.findOne(Xr,this._element)}_getItems(){return d.find(Fi,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(t){return H()?t===At?vt:Vt:t===At?Vt:vt}_orderToDirection(t){return H()?t===vt?At:ae:t===vt?ae:At}static jQueryInterface(t){return this.each(function(){const e=Ut.getOrCreateInstance(this,t);if(typeof t=="number"){e.to(t);return}if(typeof t=="string"){if(e[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method named "${t}"`);e[t]()}})}}c.on(document,Kr,Zr,function(s){const t=d.getElementFromSelector(this);if(!t||!t.classList.contains(ji))return;s.preventDefault();const e=Ut.getOrCreateInstance(t),i=this.getAttribute("data-bs-slide-to");if(i){e.to(i),e._maybeEnableCycle();return}if(q.getDataAttribute(this,"slide")==="next"){e.next(),e._maybeEnableCycle();return}e.prev(),e._maybeEnableCycle()});c.on(window,Fr,()=>{const s=d.find(to);for(const t of s)Ut.getOrCreateInstance(t)});j(Ut);const no="collapse",ro="bs.collapse",zt=`.${ro}`,oo=".data-api",ao=`show${zt}`,lo=`shown${zt}`,co=`hide${zt}`,uo=`hidden${zt}`,ho=`click${zt}${oo}`,De="show",wt="collapse",ee="collapsing",fo="collapsed",po=`:scope .${wt} .${wt}`,mo="collapse-horizontal",_o="width",go="height",Eo=".collapse.show, .collapse.collapsing",Ye='[data-bs-toggle="collapse"]',vo={parent:null,toggle:!0},bo={parent:"(null|element)",toggle:"boolean"};class Bt extends K{constructor(t,e){super(t,e),this._isTransitioning=!1,this._triggerArray=[];const i=d.find(Ye);for(const n of i){const r=d.getSelectorFromElement(n),o=d.find(r).filter(a=>a===this._element);r!==null&&o.length&&this._triggerArray.push(n)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return vo}static get DefaultType(){return bo}static get NAME(){return no}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let t=[];if(this._config.parent&&(t=this._getFirstLevelChildren(Eo).filter(a=>a!==this._element).map(a=>Bt.getOrCreateInstance(a,{toggle:!1}))),t.length&&t[0]._isTransitioning||c.trigger(this._element,ao).defaultPrevented)return;for(const a of t)a.hide();const i=this._getDimension();this._element.classList.remove(wt),this._element.classList.add(ee),this._element.style[i]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const n=()=>{this._isTransitioning=!1,this._element.classList.remove(ee),this._element.classList.add(wt,De),this._element.style[i]="",c.trigger(this._element,lo)},o=`scroll${i[0].toUpperCase()+i.slice(1)}`;this._queueCallback(n,this._element,!0),this._element.style[i]=`${this._element[o]}px`}hide(){if(this._isTransitioning||!this._isShown()||c.trigger(this._element,co).defaultPrevented)return;const e=this._getDimension();this._element.style[e]=`${this._element.getBoundingClientRect()[e]}px`,Kt(this._element),this._element.classList.add(ee),this._element.classList.remove(wt,De);for(const n of this._triggerArray){const r=d.getElementFromSelector(n);r&&!this._isShown(r)&&this._addAriaAndCollapsedClass([n],!1)}this._isTransitioning=!0;const i=()=>{this._isTransitioning=!1,this._element.classList.remove(ee),this._element.classList.add(wt),c.trigger(this._element,uo)};this._element.style[e]="",this._queueCallback(i,this._element,!0)}_isShown(t=this._element){return t.classList.contains(De)}_configAfterMerge(t){return t.toggle=!!t.toggle,t.parent=tt(t.parent),t}_getDimension(){return this._element.classList.contains(mo)?_o:go}_initializeChildren(){if(!this._config.parent)return;const t=this._getFirstLevelChildren(Ye);for(const e of t){const i=d.getElementFromSelector(e);i&&this._addAriaAndCollapsedClass([e],this._isShown(i))}}_getFirstLevelChildren(t){const e=d.find(po,this._config.parent);return d.find(t,this._config.parent).filter(i=>!e.includes(i))}_addAriaAndCollapsedClass(t,e){if(t.length)for(const i of t)i.classList.toggle(fo,!e),i.setAttribute("aria-expanded",e)}static jQueryInterface(t){const e={};return typeof t=="string"&&/show|hide/.test(t)&&(e.toggle=!1),this.each(function(){const i=Bt.getOrCreateInstance(this,e);if(typeof t=="string"){if(typeof i[t]>"u")throw new TypeError(`No method named "${t}"`);i[t]()}})}}c.on(document,ho,Ye,function(s){(s.target.tagName==="A"||s.delegateTarget&&s.delegateTarget.tagName==="A")&&s.preventDefault();for(const t of d.getMultipleElementsFromSelector(this))Bt.getOrCreateInstance(t,{toggle:!1}).toggle()});j(Bt);const Ss="dropdown",yo="bs.dropdown",_t=`.${yo}`,ns=".data-api",Ao="Escape",Ls="Tab",To="ArrowUp",Ds="ArrowDown",wo=2,Co=`hide${_t}`,Oo=`hidden${_t}`,No=`show${_t}`,So=`shown${_t}`,Ki=`click${_t}${ns}`,Yi=`keydown${_t}${ns}`,Lo=`keyup${_t}${ns}`,Tt="show",Do="dropup",$o="dropend",Io="dropstart",Mo="dropup-center",xo="dropdown-center",ht='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',Po=`${ht}.${Tt}`,le=".dropdown-menu",Ro=".navbar",ko=".navbar-nav",Vo=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",Ho=H()?"top-end":"top-start",Wo=H()?"top-start":"top-end",jo=H()?"bottom-end":"bottom-start",Bo=H()?"bottom-start":"bottom-end",Fo=H()?"left-start":"right-start",Ko=H()?"right-start":"left-start",Yo="top",Uo="bottom",zo={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},Go={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class U extends K{constructor(t,e){super(t,e),this._popper=null,this._parent=this._element.parentNode,this._menu=d.next(this._element,le)[0]||d.prev(this._element,le)[0]||d.findOne(le,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return zo}static get DefaultType(){return Go}static get NAME(){return Ss}toggle(){return this._isShown()?this.hide():this.show()}show(){if(et(this._element)||this._isShown())return;const t={relatedTarget:this._element};if(!c.trigger(this._element,No,t).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(ko))for(const i of[].concat(...document.body.children))c.on(i,"mouseover",ue);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(Tt),this._element.classList.add(Tt),c.trigger(this._element,So,t)}}hide(){if(et(this._element)||!this._isShown())return;const t={relatedTarget:this._element};this._completeHide(t)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(t){if(!c.trigger(this._element,Co,t).defaultPrevented){if("ontouchstart"in document.documentElement)for(const i of[].concat(...document.body.children))c.off(i,"mouseover",ue);this._popper&&this._popper.destroy(),this._menu.classList.remove(Tt),this._element.classList.remove(Tt),this._element.setAttribute("aria-expanded","false"),q.removeDataAttribute(this._menu,"popper"),c.trigger(this._element,Oo,t)}}_getConfig(t){if(t=super._getConfig(t),typeof t.reference=="object"&&!G(t.reference)&&typeof t.reference.getBoundingClientRect!="function")throw new TypeError(`${Ss.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return t}_createPopper(){if(typeof Ni>"u")throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org/docs/v2/)");let t=this._element;this._config.reference==="parent"?t=this._parent:G(this._config.reference)?t=tt(this._config.reference):typeof this._config.reference=="object"&&(t=this._config.reference);const e=this._getPopperConfig();this._popper=es(t,this._menu,e)}_isShown(){return this._menu.classList.contains(Tt)}_getPlacement(){const t=this._parent;if(t.classList.contains($o))return Fo;if(t.classList.contains(Io))return Ko;if(t.classList.contains(Mo))return Yo;if(t.classList.contains(xo))return Uo;const e=getComputedStyle(this._menu).getPropertyValue("--bs-position").trim()==="end";return t.classList.contains(Do)?e?Wo:Ho:e?Bo:jo}_detectNavbar(){return this._element.closest(Ro)!==null}_getOffset(){const{offset:t}=this._config;return typeof t=="string"?t.split(",").map(e=>Number.parseInt(e,10)):typeof t=="function"?e=>t(e,this._element):t}_getPopperConfig(){const t={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return(this._inNavbar||this._config.display==="static")&&(q.setDataAttribute(this._menu,"popper","static"),t.modifiers=[{name:"applyStyles",enabled:!1}]),{...t,...M(this._config.popperConfig,[void 0,t])}}_selectMenuItem({key:t,target:e}){const i=d.find(Vo,this._menu).filter(n=>Mt(n));i.length&&ss(i,e,t===Ds,!i.includes(e)).focus()}static jQueryInterface(t){return this.each(function(){const e=U.getOrCreateInstance(this,t);if(typeof t=="string"){if(typeof e[t]>"u")throw new TypeError(`No method named "${t}"`);e[t]()}})}static clearMenus(t){if(t.button===wo||t.type==="keyup"&&t.key!==Ls)return;const e=d.find(Po);for(const i of e){const n=U.getInstance(i);if(!n||n._config.autoClose===!1)continue;const r=t.composedPath(),o=r.includes(n._menu);if(r.includes(n._element)||n._config.autoClose==="inside"&&!o||n._config.autoClose==="outside"&&o||n._menu.contains(t.target)&&(t.type==="keyup"&&t.key===Ls||/input|select|option|textarea|form/i.test(t.target.tagName)))continue;const a={relatedTarget:n._element};t.type==="click"&&(a.clickEvent=t),n._completeHide(a)}}static dataApiKeydownHandler(t){const e=/input|textarea/i.test(t.target.tagName),i=t.key===Ao,n=[To,Ds].includes(t.key);if(!n&&!i||e&&!i)return;t.preventDefault();const r=this.matches(ht)?this:d.prev(this,ht)[0]||d.next(this,ht)[0]||d.findOne(ht,t.delegateTarget.parentNode),o=U.getOrCreateInstance(r);if(n){t.stopPropagation(),o.show(),o._selectMenuItem(t);return}o._isShown()&&(t.stopPropagation(),o.hide(),r.focus())}}c.on(document,Yi,ht,U.dataApiKeydownHandler);c.on(document,Yi,le,U.dataApiKeydownHandler);c.on(document,Ki,U.clearMenus);c.on(document,Lo,U.clearMenus);c.on(document,Ki,ht,function(s){s.preventDefault(),U.getOrCreateInstance(this).toggle()});j(U);const Ui="backdrop",qo="fade",$s="show",Is=`mousedown.bs.${Ui}`,Xo={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},Qo={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class zi extends Yt{constructor(t){super(),this._config=this._getConfig(t),this._isAppended=!1,this._element=null}static get Default(){return Xo}static get DefaultType(){return Qo}static get NAME(){return Ui}show(t){if(!this._config.isVisible){M(t);return}this._append();const e=this._getElement();this._config.isAnimated&&Kt(e),e.classList.add($s),this._emulateAnimation(()=>{M(t)})}hide(t){if(!this._config.isVisible){M(t);return}this._getElement().classList.remove($s),this._emulateAnimation(()=>{this.dispose(),M(t)})}dispose(){this._isAppended&&(c.off(this._element,Is),this._element.remove(),this._isAppended=!1)}_getElement(){if(!this._element){const t=document.createElement("div");t.className=this._config.className,this._config.isAnimated&&t.classList.add(qo),this._element=t}return this._element}_configAfterMerge(t){return t.rootElement=tt(t.rootElement),t}_append(){if(this._isAppended)return;const t=this._getElement();this._config.rootElement.append(t),c.on(t,Is,()=>{M(this._config.clickCallback)}),this._isAppended=!0}_e