!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).Popper={})}(this,function(t){"use strict";function e(t){if(null==t)return window;if("[object Window]"!==t.toString()){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function i(t){return t instanceof e(t).Element||t instanceof Element}function n(t){return t instanceof e(t).HTMLElement||t instanceof HTMLElement}function s(t){return"undefined"!=typeof ShadowRoot&&(t instanceof e(t).ShadowRoot||t instanceof ShadowRoot)}var o=Math.max,r=Math.min,a=Math.round;function l(){var t=navigator.userAgentData;return null!=t&&t.brands&&Array.isArray(t.brands)?t.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function c(){return!/^((?!chrome|android).)*safari/i.test(l())}function h(t,s,o){void 0===s&&(s=!1),void 0===o&&(o=!1);var r=t.getBoundingClientRect(),l=1,h=1;s&&n(t)&&(l=t.offsetWidth>0&&a(r.width)/t.offsetWidth||1,h=t.offsetHeight>0&&a(r.height)/t.offsetHeight||1);var d=(i(t)?e(t):window).visualViewport,u=!c()&&o,f=(r.left+(u&&d?d.offsetLeft:0))/l,p=(r.top+(u&&d?d.offsetTop:0))/h,m=r.width/l,g=r.height/h;return{width:m,height:g,top:p,right:f+m,bottom:p+g,left:f,x:f,y:p}}function d(t){var i=e(t);return{scrollLeft:i.pageXOffset,scrollTop:i.pageYOffset}}function u(t){return t?(t.nodeName||"").toLowerCase():null}function f(t){return((i(t)?t.ownerDocument:t.document)||window.document).documentElement}function p(t){return h(f(t)).left+d(t).scrollLeft}function m(t){return e(t).getComputedStyle(t)}function g(t){var e=m(t),i=e.overflow,n=e.overflowX,s=e.overflowY;return/auto|scroll|overlay|hidden/.test(i+s+n)}function _(t,i,s){void 0===s&&(s=!1);var o,r,l=n(i),c=n(i)&&function(t){var e=t.getBoundingClientRect(),i=a(e.width)/t.offsetWidth||1,n=a(e.height)/t.offsetHeight||1;return 1!==i||1!==n}(i),m=f(i),_=h(t,c,s),b={scrollLeft:0,scrollTop:0},v={x:0,y:0};return(l||!l&&!s)&&(("body"!==u(i)||g(m))&&(b=(o=i)!==e(o)&&n(o)?{scrollLeft:(r=o).scrollLeft,scrollTop:r.scrollTop}:d(o)),n(i)?((v=h(i,!0)).x+=i.clientLeft,v.y+=i.clientTop):m&&(v.x=p(m))),{x:_.left+b.scrollLeft-v.x,y:_.top+b.scrollTop-v.y,width:_.width,height:_.height}}function b(t){var e=h(t),i=t.offsetWidth,n=t.offsetHeight;return Math.abs(e.width-i)<=1&&(i=e.width),Math.abs(e.height-n)<=1&&(n=e.height),{x:t.offsetLeft,y:t.offsetTop,width:i,height:n}}function v(t){return"html"===u(t)?t:t.assignedSlot||t.parentNode||(s(t)?t.host:null)||f(t)}function y(t){return["html","body","#document"].indexOf(u(t))>=0?t.ownerDocument.body:n(t)&&g(t)?t:y(v(t))}function w(t,i){var n;void 0===i&&(i=[]);var s=y(t),o=s===(null==(n=t.ownerDocument)?void 0:n.body),r=e(s),a=o?[r].concat(r.visualViewport||[],g(s)?s:[]):s,l=i.concat(a);return o?l:l.concat(w(v(a)))}function E(t){return["table","td","th"].indexOf(u(t))>=0}function A(t){return n(t)&&"fixed"!==m(t).position?t.offsetParent:null}function C(t){for(var i=e(t),o=A(t);o&&E(o)&&"static"===m(o).position;)o=A(o);return o&&("html"===u(o)||"body"===u(o)&&"static"===m(o).position)?i:o||function(t){var e=/firefox/i.test(l());if(/Trident/i.test(l())&&n(t)&&"fixed"===m(t).position)return null;var i=v(t);for(s(i)&&(i=i.host);n(i)&&["html","body"].indexOf(u(i))<0;){var o=m(i);if("none"!==o.transform||"none"!==o.perspective||"paint"===o.contain||-1!==["transform","perspective"].indexOf(o.willChange)||e&&"filter"===o.willChange||e&&o.filter&&"none"!==o.filter)return i;i=i.parentNode}return null}(t)||i}var T="top",O="bottom",x="right",k="left",L="auto",S=[T,O,x,k],D="start",I="end",N="viewport",P="popper",j=S.reduce(function(t,e){return t.concat([e+"-"+D,e+"-"+I])},[]),M=[].concat(S,[L]).reduce(function(t,e){return t.concat([e,e+"-"+D,e+"-"+I])},[]),H=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function F(t){var e=new Map,i=new Set,n=[];return t.forEach(function(t){e.set(t.name,t)}),t.forEach(function(t){i.has(t.name)||function t(s){i.add(s.name),[].concat(s.requires||[],s.requiresIfExists||[]).forEach(function(n){if(!i.has(n)){var s=e.get(n);s&&t(s)}}),n.push(s)}(t)}),n}function B(t,e){var i=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(i&&s(i)){var n=e;do{if(n&&t.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function z(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function $(t,n,s){return n===N?z(function(t,i){var n=e(t),s=f(t),o=n.visualViewport,r=s.clientWidth,a=s.clientHeight,l=0,h=0;if(o){r=o.width,a=o.height;var d=c();(d||!d&&"fixed"===i)&&(l=o.offsetLeft,h=o.offsetTop)}return{width:r,height:a,x:l+p(t),y:h}}(t,s)):i(n)?function(t,e){var i=h(t,!1,"fixed"===s);return i.top=i.top+t.clientTop,i.left=i.left+t.clientLeft,i.bottom=i.top+t.clientHeight,i.right=i.left+t.clientWidth,i.width=t.clientWidth,i.height=t.clientHeight,i.x=i.left,i.y=i.top,i}(n):z(function(t){var e,i=f(t),n=d(t),s=null==(e=t.ownerDocument)?void 0:e.body,r=o(i.scrollWidth,i.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),a=o(i.scrollHeight,i.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0),l=-n.scrollLeft+p(t),c=-n.scrollTop;return"rtl"===m(s||i).direction&&(l+=o(i.clientWidth,s?s.clientWidth:0)-r),{width:r,height:a,x:l,y:c}}(f(t)))}function W(t,e,s,a){var l="clippingParents"===e?function(t){var e=w(v(t)),s=["absolute","fixed"].indexOf(m(t).position)>=0&&n(t)?C(t):t;return i(s)?e.filter(function(t){return i(t)&&B(t,s)&&"body"!==u(t)}):[]}(t):[].concat(e),c=[].concat(l,[s]),h=c[0],d=c.reduce(function(e,i){var n=$(t,i,a);return e.top=o(n.top,e.top),e.right=r(n.right,e.right),e.bottom=r(n.bottom,e.bottom),e.left=o(n.left,e.left),e},$(t,h,a));return d.width=d.right-d.left,d.height=d.bottom-d.top,d.x=d.left,d.y=d.top,d}function q(t){return t.split("-")[0]}function R(t){return t.split("-")[1]}function V(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function Y(t){var e,i=t.reference,n=t.element,s=t.placement,o=s?q(s):null,r=s?R(s):null,a=i.x+i.width/2-n.width/2,l=i.y+i.height/2-n.height/2;switch(o){case T:e={x:a,y:i.y-n.height};break;case O:e={x:a,y:i.y+i.height};break;case x:e={x:i.x+i.width,y:l};break;case k:e={x:i.x-n.width,y:l};break;default:e={x:i.x,y:i.y}}var c=o?V(o):null;if(null!=c){var h="y"===c?"height":"width";switch(r){case D:e[c]=e[c]-(i[h]/2-n[h]/2);break;case I:e[c]=e[c]+(i[h]/2-n[h]/2)}}return e}function U(t){return Object.assign({},{top:0,right:0,bottom:0,left:0},t)}function K(t,e){return e.reduce(function(e,i){return e[i]=t,e},{})}function Q(t,e){void 0===e&&(e={});var n=e,s=n.placement,o=void 0===s?t.placement:s,r=n.strategy,a=void 0===r?t.strategy:r,l=n.boundary,c=void 0===l?"clippingParents":l,d=n.rootBoundary,u=void 0===d?N:d,p=n.elementContext,m=void 0===p?P:p,g=n.altBoundary,_=void 0!==g&&g,b=n.padding,v=void 0===b?0:b,y=U("number"!=typeof v?v:K(v,S)),w=m===P?"reference":P,E=t.rects.popper,A=t.elements[_?w:m],C=W(i(A)?A:A.contextElement||f(t.elements.popper),c,u,a),k=h(t.elements.reference),L=Y({reference:k,element:E,strategy:"absolute",placement:o}),D=z(Object.assign({},E,L)),I=m===P?D:k,j={top:C.top-I.top+y.top,bottom:I.bottom-C.bottom+y.bottom,left:C.left-I.left+y.left,right:I.right-C.right+y.right},M=t.modifiersData.offset;if(m===P&&M){var H=M[o];Object.keys(j).forEach(function(t){var e=[x,O].indexOf(t)>=0?1:-1,i=[T,O].indexOf(t)>=0?"y":"x";j[t]+=H[i]*e})}return j}var X={placement:"bottom",modifiers:[],strategy:"absolute"};function G(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return!e.some(function(t){return!(t&&"function"==typeof t.getBoundingClientRect)})}function J(t){void 0===t&&(t={});var e=t,n=e.defaultModifiers,s=void 0===n?[]:n,o=e.defaultOptions,r=void 0===o?X:o;return function(t,e,n){void 0===n&&(n=r);var o,a,l={placement:"bottom",orderedModifiers:[],options:Object.assign({},X,r),modifiersData:{},elements:{reference:t,popper:e},attributes:{},styles:{}},c=[],h=!1,d={state:l,setOptions:function(n){var o="function"==typeof n?n(l.options):n;u(),l.options=Object.assign({},r,l.options,o),l.scrollParents={reference:i(t)?w(t):t.contextElement?w(t.contextElement):[],popper:w(e)};var a,h,f=function(t){var e=F(t);return H.reduce(function(t,i){return t.concat(e.filter(function(t){return t.phase===i}))},[])}((a=[].concat(s,l.options.modifiers),h=a.reduce(function(t,e){var i=t[e.name];return t[e.name]=i?Object.assign({},i,e,{options:Object.assign({},i.options,e.options),data:Object.assign({},i.data,e.data)}):e,t},{}),Object.keys(h).map(function(t){return h[t]})));return l.orderedModifiers=f.filter(function(t){return t.enabled}),l.orderedModifiers.forEach(function(t){var e=t.name,i=t.options,n=void 0===i?{}:i,s=t.effect;if("function"==typeof s){var o=s({state:l,name:e,instance:d,options:n});c.push(o||function(){})}}),d.update()},forceUpdate:function(){if(!h){var t=l.elements,e=t.reference,i=t.popper;if(G(e,i)){l.rects={reference:_(e,C(i),"fixed"===l.options.strategy),popper:b(i)},l.reset=!1,l.placement=l.options.placement,l.orderedModifiers.forEach(function(t){return l.modifiersData[t.name]=Object.assign({},t.data)});for(var n=0;n<l.orderedModifiers.length;n++)if(!0!==l.reset){var s=l.orderedModifiers[n],o=s.fn,r=s.options,a=void 0===r?{}:r,c=s.name;"function"==typeof o&&(l=o({state:l,options:a,name:c,instance:d})||l)}else l.reset=!1,n=-1}}},update:(o=function(){return new Promise(function(t){d.forceUpdate(),t(l)})},function(){return a||(a=new Promise(function(t){Promise.resolve().then(function(){a=void 0,t(o())})})),a}),destroy:function(){u(),h=!0}};if(!G(t,e))return d;function u(){c.forEach(function(t){return t()}),c=[]}return d.setOptions(n).then(function(t){!h&&n.onFirstUpdate&&n.onFirstUpdate(t)}),d}}var Z={passive:!0},tt={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(t){var i=t.state,n=t.instance,s=t.options,o=s.scroll,r=void 0===o||o,a=s.resize,l=void 0===a||a,c=e(i.elements.popper),h=[].concat(i.scrollParents.reference,i.scrollParents.popper);return r&&h.forEach(function(t){t.addEventListener("scroll",n.update,Z)}),l&&c.addEventListener("resize",n.update,Z),function(){r&&h.forEach(function(t){t.removeEventListener("scroll",n.update,Z)}),l&&c.removeEventListener("resize",n.update,Z)}},data:{}},et={name:"popperOffsets",enabled:!0,phase:"read",fn:function(t){var e=t.state,i=t.name;e.modifiersData[i]=Y({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})},data:{}},it={top:"auto",right:"auto",bottom:"auto",left:"auto"};function nt(t){var i,n=t.popper,s=t.popperRect,o=t.placement,r=t.variation,l=t.offsets,c=t.position,h=t.gpuAcceleration,d=t.adaptive,u=t.roundOffsets,p=t.isFixed,g=l.x,_=void 0===g?0:g,b=l.y,v=void 0===b?0:b,y="function"==typeof u?u({x:_,y:v}):{x:_,y:v};_=y.x,v=y.y;var w=l.hasOwnProperty("x"),E=l.hasOwnProperty("y"),A=k,L=T,S=window;if(d){var D=C(n),N="clientHeight",P="clientWidth";D===e(n)&&"static"!==m(D=f(n)).position&&"absolute"===c&&(N="scrollHeight",P="scrollWidth"),D=D,(o===T||(o===k||o===x)&&r===I)&&(L=O,v-=(p&&D===S&&S.visualViewport?S.visualViewport.height:D[N])-s.height,v*=h?1:-1),o!==k&&(o!==T&&o!==O||r!==I)||(A=x,_-=(p&&D===S&&S.visualViewport?S.visualViewport.width:D[P])-s.width,_*=h?1:-1)}var j,M=Object.assign({position:c},d&&it),H=!0===u?function(t,e){var i=t.x,n=t.y,s=e.devicePixelRatio||1;return{x:a(i*s)/s||0,y:a(n*s)/s||0}}({x:_,y:v},e(n)):{x:_,y:v};return _=H.x,v=H.y,h?Object.assign({},M,((j={})[L]=E?"0":"",j[A]=w?"0":"",j.transform=(S.devicePixelRatio||1)<=1?"translate("+_+"px, "+v+"px)":"translate3d("+_+"px, "+v+"px, 0)",j)):Object.assign({},M,((i={})[L]=E?v+"px":"",i[A]=w?_+"px":"",i.transform="",i))}var st={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(t){var e=t.state,i=t.options,n=i.gpuAcceleration,s=void 0===n||n,o=i.adaptive,r=void 0===o||o,a=i.roundOffsets,l=void 0===a||a,c={placement:q(e.placement),variation:R(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:s,isFixed:"fixed"===e.options.strategy};null!=e.modifiersData.popperOffsets&&(e.styles.popper=Object.assign({},e.styles.popper,nt(Object.assign({},c,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:r,roundOffsets:l})))),null!=e.modifiersData.arrow&&(e.styles.arrow=Object.assign({},e.styles.arrow,nt(Object.assign({},c,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})},data:{}},ot={name:"applyStyles",enabled:!0,phase:"write",fn:function(t){var e=t.state;Object.keys(e.elements).forEach(function(t){var i=e.styles[t]||{},s=e.attributes[t]||{},o=e.elements[t];n(o)&&u(o)&&(Object.assign(o.style,i),Object.keys(s).forEach(function(t){var e=s[t];!1===e?o.removeAttribute(t):o.setAttribute(t,!0===e?"":e)}))})},effect:function(t){var e=t.state,i={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,i.popper),e.styles=i,e.elements.arrow&&Object.assign(e.elements.arrow.style,i.arrow),function(){Object.keys(e.elements).forEach(function(t){var s=e.elements[t],o=e.attributes[t]||{},r=Object.keys(e.styles.hasOwnProperty(t)?e.styles[t]:i[t]).reduce(function(t,e){return t[e]="",t},{});n(s)&&u(s)&&(Object.assign(s.style,r),Object.keys(o).forEach(function(t){s.removeAttribute(t)}))})}},requires:["computeStyles"]},rt={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(t){var e=t.state,i=t.options,n=t.name,s=i.offset,o=void 0===s?[0,0]:s,r=M.reduce(function(t,i){return t[i]=function(t,e,i){var n=q(t),s=[k,T].indexOf(n)>=0?-1:1,o="function"==typeof i?i(Object.assign({},e,{placement:t})):i,r=o[0],a=o[1];return r=r||0,a=(a||0)*s,[k,x].indexOf(n)>=0?{x:a,y:r}:{x:r,y:a}}(i,e.rects,o),t},{}),a=r[e.placement],l=a.x,c=a.y;null!=e.modifiersData.popperOffsets&&(e.modifiersData.popperOffsets.x+=l,e.modifiersData.popperOffsets.y+=c),e.modifiersData[n]=r}},at={left:"right",right:"left",bottom:"top",top:"bottom"};function lt(t){return t.replace(/left|right|bottom|top/g,function(t){return at[t]})}var ct={start:"end",end:"start"};function ht(t){return t.replace(/start|end/g,function(t){return ct[t]})}function dt(t,e){void 0===e&&(e={});var i=e,n=i.placement,s=i.boundary,o=i.rootBoundary,r=i.padding,a=i.flipVariations,l=i.allowedAutoPlacements,c=void 0===l?M:l,h=R(n),d=h?a?j:j.filter(function(t){return R(t)===h}):S,u=d.filter(function(t){return c.indexOf(t)>=0});0===u.length&&(u=d);var f=u.reduce(function(e,i){return e[i]=Q(t,{placement:i,boundary:s,rootBoundary:o,padding:r})[q(i)],e},{});return Object.keys(f).sort(function(t,e){return f[t]-f[e]})}var ut={name:"flip",enabled:!0,phase:"main",fn:function(t){var e=t.state,i=t.options,n=t.name;if(!e.modifiersData[n]._skip){for(var s=i.mainAxis,o=void 0===s||s,r=i.altAxis,a=void 0===r||r,l=i.fallbackPlacements,c=i.padding,h=i.boundary,d=i.rootBoundary,u=i.altBoundary,f=i.flipVariations,p=void 0===f||f,m=i.allowedAutoPlacements,g=e.options.placement,_=q(g),b=l||(_!==g&&p?function(t){if(q(t)===L)return[];var e=lt(t);return[ht(t),e,ht(e)]}(g):[lt(g)]),v=[g].concat(b).reduce(function(t,i){return t.concat(q(i)===L?dt(e,{placement:i,boundary:h,rootBoundary:d,padding:c,flipVariations:p,allowedAutoPlacements:m}):i)},[]),y=e.rects.reference,w=e.rects.popper,E=new Map,A=!0,C=v[0],S=0;S<v.length;S++){var I=v[S],N=q(I),P=R(I)===D,j=[T,O].indexOf(N)>=0,M=j?"width":"height",H=Q(e,{placement:I,boundary:h,rootBoundary:d,altBoundary:u,padding:c}),F=j?P?x:k:P?O:T;y[M]>w[M]&&(F=lt(F));var B=lt(F),z=[];if(o&&z.push(H[N]<=0),a&&z.push(H[F]<=0,H[B]<=0),z.every(function(t){return t})){C=I,A=!1;break}E.set(I,z)}if(A)for(var $=function(t){var e=v.find(function(e){var i=E.get(e);if(i)return i.slice(0,t).every(function(t){return t})});if(e)return C=e,"break"},W=p?3:1;W>0&&"break"!==$(W);W--);e.placement!==C&&(e.modifiersData[n]._skip=!0,e.placement=C,e.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function ft(t,e,i){return o(t,r(e,i))}var pt={name:"preventOverflow",enabled:!0,phase:"main",fn:function(t){var e=t.state,i=t.options,n=t.name,s=i.mainAxis,a=void 0===s||s,l=i.altAxis,c=void 0!==l&&l,h=i.boundary,d=i.rootBoundary,u=i.altBoundary,f=i.padding,p=i.tether,m=void 0===p||p,g=i.tetherOffset,_=void 0===g?0:g,v=Q(e,{boundary:h,rootBoundary:d,padding:f,altBoundary:u}),y=q(e.placement),w=R(e.placement),E=!w,A=V(y),L="x"===A?"y":"x",S=e.modifiersData.popperOffsets,I=e.rects.reference,N=e.rects.popper,P="function"==typeof _?_(Object.assign({},e.rects,{placement:e.placement})):_,j="number"==typeof P?{mainAxis:P,altAxis:P}:Object.assign({mainAxis:0,altAxis:0},P),M=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,H={x:0,y:0};if(S){if(a){var F,B="y"===A?T:k,z="y"===A?O:x,$="y"===A?"height":"width",W=S[A],Y=W+v[B],U=W-v[z],K=m?-N[$]/2:0,X=w===D?I[$]:N[$],G=w===D?-N[$]:-I[$],J=e.elements.arrow,Z=m&&J?b(J):{width:0,height:0},tt=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},et=tt[B],it=tt[z],nt=ft(0,I[$],Z[$]),st=E?I[$]/2-K-nt-et-j.mainAxis:X-nt-et-j.mainAxis,ot=E?-I[$]/2+K+nt+it+j.mainAxis:G+nt+it+j.mainAxis,rt=e.elements.arrow&&C(e.elements.arrow),at=rt?"y"===A?rt.clientTop||0:rt.clientLeft||0:0,lt=null!=(F=null==M?void 0:M[A])?F:0,ct=W+ot-lt,ht=ft(m?r(Y,W+st-lt-at):Y,W,m?o(U,ct):U);S[A]=ht,H[A]=ht-W}if(c){var dt,ut="x"===A?T:k,pt="x"===A?O:x,mt=S[L],gt="y"===L?"height":"width",_t=mt+v[ut],bt=mt-v[pt],vt=-1!==[T,k].indexOf(y),yt=null!=(dt=null==M?void 0:M[L])?dt:0,wt=vt?_t:mt-I[gt]-N[gt]-yt+j.altAxis,Et=vt?mt+I[gt]+N[gt]-yt-j.altAxis:bt,At=m&&vt?function(t,e,i){var n=ft(wt,mt,i);return n>i?i:n}(0,0,Et):ft(m?wt:_t,mt,m?Et:bt);S[L]=At,H[L]=At-mt}e.modifiersData[n]=H}},requiresIfExists:["offset"]},mt={name:"arrow",enabled:!0,phase:"main",fn:function(t){var e,i=t.state,n=t.name,s=t.options,o=i.elements.arrow,r=i.modifiersData.popperOffsets,a=q(i.placement),l=V(a),c=[k,x].indexOf(a)>=0?"height":"width";if(o&&r){var h=function(t,e){return U("number"!=typeof(t="function"==typeof t?t(Object.assign({},e.rects,{placement:e.placement})):t)?t:K(t,S))}(s.padding,i),d=b(o),u="y"===l?T:k,f="y"===l?O:x,p=i.rects.reference[c]+i.rects.reference[l]-r[l]-i.rects.popper[c],m=r[l]-i.rects.reference[l],g=C(o),_=g?"y"===l?g.clientHeight||0:g.clientWidth||0:0,v=p/2-m/2,y=h[u],w=_-d[c]-h[f],E=_/2-d[c]/2+v,A=ft(y,E,w),L=l;i.modifiersData[n]=((e={})[L]=A,e.centerOffset=A-E,e)}},effect:function(t){var e=t.state,i=t.options.element,n=void 0===i?"[data-popper-arrow]":i;null!=n&&("string"!=typeof n||(n=e.elements.popper.querySelector(n)))&&B(e.elements.popper,n)&&(e.elements.arrow=n)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function gt(t,e,i){return void 0===i&&(i={x:0,y:0}),{top:t.top-e.height-i.y,right:t.right-e.width+i.x,bottom:t.bottom-e.height+i.y,left:t.left-e.width-i.x}}function _t(t){return[T,x,O,k].some(function(e){return t[e]>=0})}var bt={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(t){var e=t.state,i=t.name,n=e.rects.reference,s=e.rects.popper,o=e.modifiersData.preventOverflow,r=Q(e,{elementContext:"reference"}),a=Q(e,{altBoundary:!0}),l=gt(r,n),c=gt(a,s,o),h=_t(l),d=_t(c);e.modifiersData[i]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:h,hasPopperEscaped:d},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":h,"data-popper-escaped":d})}},vt=J({defaultModifiers:[tt,et,st,ot]}),yt=[tt,et,st,ot,rt,ut,pt,mt,bt],wt=J({defaultModifiers:yt});t.applyStyles=ot,t.arrow=mt,t.computeStyles=st,t.createPopper=wt,t.createPopperLite=vt,t.defaultModifiers=yt,t.detectOverflow=Q,t.eventListeners=tt,t.flip=ut,t.hide=bt,t.offset=rt,t.popperGenerator=J,t.popperOffsets=et,t.preventOverflow=pt,Object.defineProperty(t,"__esModule",{value:!0})}),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(require("@popperjs/core")):"function"==typeof define&&define.amd?define(["@popperjs/core"],e):(t="undefined"!=typeof globalThis?globalThis:t||self).bootstrap=e(t.Popper)}(this,function(t){"use strict";const e=function(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t)for(const i in t)if("default"!==i){const n=Object.getOwnPropertyDescriptor(t,i);Object.defineProperty(e,i,n.get?n:{enumerable:!0,get:()=>t[i]})}return e.default=t,Object.freeze(e)}(t),i=new Map,n={set(t,e,n){i.has(t)||i.set(t,new Map);const s=i.get(t);s.has(e)||0===s.size?s.set(e,n):console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(s.keys())[0]}.`)},get:(t,e)=>i.has(t)&&i.get(t).get(e)||null,remove(t,e){if(!i.has(t))return;const n=i.get(t);n.delete(e),0===n.size&&i.delete(t)}},s="transitionend",o=t=>(t&&window.CSS&&window.CSS.escape&&(t=t.replace(/#([^\s"#']+)/g,(t,e)=>`#${CSS.escape(e)}`)),t),r=t=>{t.dispatchEvent(new Event(s))},a=t=>!(!t||"object"!=typeof t)&&(void 0!==t.jquery&&(t=t[0]),void 0!==t.nodeType),l=t=>a(t)?t.jquery?t[0]:t:"string"==typeof t&&t.length>0?document.querySelector(o(t)):null,c=t=>{if(!a(t)||0===t.getClientRects().length)return!1;const e="visible"===getComputedStyle(t).getPropertyValue("visibility"),i=t.closest("details:not([open])");if(!i)return e;if(i!==t){const e=t.closest("summary");if(e&&e.parentNode!==i)return!1;if(null===e)return!1}return e},h=t=>!t||t.nodeType!==Node.ELEMENT_NODE||!!t.classList.contains("disabled")||(void 0!==t.disabled?t.disabled:t.hasAttribute("disabled")&&"false"!==t.getAttribute("disabled")),d=t=>{if(!document.documentElement.attachShadow)return null;if("function"==typeof t.getRootNode){const e=t.getRootNode();return e instanceof ShadowRoot?e:null}return t instanceof ShadowRoot?t:t.parentNode?d(t.parentNode):null},u=()=>{},f=t=>{t.offsetHeight},p=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,m=[],g=()=>"rtl"===document.documentElement.dir,_=t=>{var e;e=(()=>{const e=p();if(e){const i=t.NAME,n=e.fn[i];e.fn[i]=t.jQueryInterface,e.fn[i].Constructor=t,e.fn[i].noConflict=(()=>(e.fn[i]=n,t.jQueryInterface))}}),"loading"===document.readyState?(m.length||document.addEventListener("DOMContentLoaded",()=>{for(const t of m)t()}),m.push(e)):e()},b=(t,e=[],i=t)=>"function"==typeof t?t(...e):i,v=(t,e,i=!0)=>{if(!i)return void b(t);const n=(t=>{if(!t)return 0;let{transitionDuration:e,transitionDelay:i}=window.getComputedStyle(t);const n=Number.parseFloat(e),s=Number.parseFloat(i);return n||s?(e=e.split(",")[0],i=i.split(",")[0],1e3*(Number.parseFloat(e)+Number.parseFloat(i))):0})(e)+5;let o=!1;const a=({target:i})=>{i===e&&(o=!0,e.removeEventListener(s,a),b(t))};e.addEventListener(s,a),setTimeout(()=>{o||r(e)},n)},y=(t,e,i,n)=>{const s=t.length;let o=t.indexOf(e);return-1===o?!i&&n?t[s-1]:t[0]:(o+=i?1:-1,n&&(o=(o+s)%s),t[Math.max(0,Math.min(o,s-1))])},w=/[^.]*(?=\..*)\.|.*/,E=/\..*/,A=/::\d+$/,C={};let T=1;const O={mouseenter:"mouseover",mouseleave:"mouseout"},x=new Set(["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"]);function k(t,e){return e&&`${e}::${T++}`||t.uidEvent||T++}function L(t){const e=k(t);return t.uidEvent=e,C[e]=C[e]||{},C[e]}function S(t,e,i=null){return Object.values(t).find(t=>t.callable===e&&t.delegationSelector===i)}function D(t,e,i){const n="string"==typeof e,s=n?i:e||i;let o=j(t);return x.has(o)||(o=t),[n,s,o]}function I(t,e,i,n,s){if("string"!=typeof e||!t)return;let[o,r,a]=D(e,i,n);if(e in O){r=(t=>(function(e){if(!e.relatedTarget||e.relatedTarget!==e.delegateTarget&&!e.delegateTarget.contains(e.relatedTarget))return t.call(this,e)}))(r)}const l=L(t),c=l[a]||(l[a]={}),h=S(c,r,o?i:null);if(h)return void(h.oneOff=h.oneOff&&s);const d=k(r,e.replace(w,"")),u=o?function(t,e,i){return function n(s){const o=t.querySelectorAll(e);for(let{target:r}=s;r&&r!==this;r=r.parentNode)for(const a of o)if(a===r)return H(s,{delegateTarget:r}),n.oneOff&&M.off(t,s.type,e,i),i.apply(r,[s])}}(t,i,r):function(t,e){return function i(n){return H(n,{delegateTarget:t}),i.oneOff&&M.off(t,n.type,e),e.apply(t,[n])}}(t,r);u.delegationSelector=o?i:null,u.callable=r,u.oneOff=s,u.uidEvent=d,c[d]=u,t.addEventListener(a,u,o)}function N(t,e,i,n,s){const o=S(e[i],n,s);o&&(t.removeEventListener(i,o,Boolean(s)),delete e[i][o.uidEvent])}function P(t,e,i,n){const s=e[i]||{};for(const[o,r]of Object.entries(s))o.includes(n)&&N(t,e,i,r.callable,r.delegationSelector)}function j(t){return t=t.replace(E,""),O[t]||t}const M={on(t,e,i,n){I(t,e,i,n,!1)},one(t,e,i,n){I(t,e,i,n,!0)},off(t,e,i,n){if("string"!=typeof e||!t)return;const[s,o,r]=D(e,i,n),a=r!==e,l=L(t),c=l[r]||{},h=e.startsWith(".");if(void 0===o){if(h)for(const i of Object.keys(l))P(t,l,i,e.slice(1));for(const[i,n]of Object.entries(c)){const s=i.replace(A,"");a&&!e.includes(s)||N(t,l,r,n.callable,n.delegationSelector)}}else{if(!Object.keys(c).length)return;N(t,l,r,o,s?i:null)}},trigger(t,e,i){if("string"!=typeof e||!t)return null;const n=p();let s=null,o=!0,r=!0,a=!1;e!==j(e)&&n&&(s=n.Event(e,i),n(t).trigger(s),o=!s.isPropagationStopped(),r=!s.isImmediatePropagationStopped(),a=s.isDefaultPrevented());const l=H(new Event(e,{bubbles:o,cancelable:!0}),i);return a&&l.preventDefault(),r&&t.dispatchEvent(l),l.defaultPrevented&&s&&s.preventDefault(),l}};function H(t,e={}){for(const[i,n]of Object.entries(e))try{t[i]=n}catch(e){Object.defineProperty(t,i,{configurable:!0,get:()=>n})}return t}function F(t){if("true"===t)return!0;if("false"===t)return!1;if(t===Number(t).toString())return Number(t);if(""===t||"null"===t)return null;if("string"!=typeof t)return t;try{return JSON.parse(decodeURIComponent(t))}catch(e){return t}}function B(t){return t.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}const z={setDataAttribute(t,e,i){t.setAttribute(`data-bs-${B(e)}`,i)},removeDataAttribute(t,e){t.removeAttribute(`data-bs-${B(e)}`)},getDataAttributes(t){if(!t)return{};const e={},i=Object.keys(t.dataset).filter(t=>t.startsWith("bs")&&!t.startsWith("bsConfig"));for(const n of i){let i=n.replace(/^bs/,"");e[i=i.charAt(0).toLowerCase()+i.slice(1,i.length)]=F(t.dataset[n])}return e},getDataAttribute:(t,e)=>F(t.getAttribute(`data-bs-${B(e)}`))};class ${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=a(e)?z.getDataAttribute(e,"config"):{};return{...this.constructor.Default,..."object"==typeof i?i:{},...a(e)?z.getDataAttributes(e):{},..."object"==typeof t?t:{}}}_typeCheckConfig(t,e=this.constructor.DefaultType){for(const[n,s]of Object.entries(e)){const e=t[n],o=a(e)?"element":null==(i=e)?`${i}`:Object.prototype.toString.call(i).match(/\s([a-z]+)/i)[1].toLowerCase();if(!new RegExp(s).test(o))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${n}" provided type "${o}" but expected type "${s}".`)}var i}}class W extends ${constructor(t,e){super(),(t=l(t))&&(this._element=t,this._config=this._getConfig(e),n.set(this._element,this.constructor.DATA_KEY,this))}dispose(){n.remove(this._element,this.constructor.DATA_KEY),M.off(this._element,this.constructor.EVENT_KEY);for(const t of Object.getOwnPropertyNames(this))this[t]=null}_queueCallback(t,e,i=!0){v(t,e,i)}_getConfig(t){return t=this._mergeConfigObj(t,this._element),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}static getInstance(t){return n.get(l(t),this.DATA_KEY)}static getOrCreateInstance(t,e={}){return this.getInstance(t)||new this(t,"object"==typeof e?e:null)}static get VERSION(){return"5.3.0"}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 q=t=>{let e=t.getAttribute("data-bs-target");if(!e||"#"===e){let i=t.getAttribute("href");if(!i||!i.includes("#")&&!i.startsWith("."))return null;i.includes("#")&&!i.startsWith("#")&&(i=`#${i.split("#")[1]}`),e=i&&"#"!==i?i.trim():null}return o(e)},R={find:(t,e=document.documentElement)=>[].concat(...Element.prototype.querySelectorAll.call(e,t)),findOne:(t,e=document.documentElement)=>Element.prototype.querySelector.call(e,t),children:(t,e)=>[].concat(...t.children).filter(t=>t.matches(e)),parents(t,e){const i=[];let n=t.parentNode.closest(e);for(;n;)i.push(n),n=n.parentNode.closest(e);return i},prev(t,e){let i=t.previousElementSibling;for(;i;){if(i.matches(e))return[i];i=i.previousElementSibling}return[]},next(t,e){let i=t.nextElementSibling;for(;i;){if(i.matches(e))return[i];i=i.nextElementSibling}return[]},focusableChildren(t){const e=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map(t=>`${t}:not([tabindex^="-"])`).join(",");return this.find(e,t).filter(t=>!h(t)&&c(t))},getSelectorFromElement(t){const e=q(t);return e&&R.findOne(e)?e:null},getElementFromSelector(t){const e=q(t);return e?R.findOne(e):null},getMultipleElementsFromSelector(t){const e=q(t);return e?R.find(e):[]}},V=(t,e="hide")=>{const i=`click.dismiss${t.EVENT_KEY}`,n=t.NAME;M.on(document,i,`[data-bs-dismiss="${n}"]`,function(i){if(["A","AREA"].includes(this.tagName)&&i.preventDefault(),h(this))return;const s=R.getElementFromSelector(this)||this.closest(`.${n}`);t.getOrCreateInstance(s)[e]()})};class Y extends W{static get NAME(){return"alert"}close(){if(M.trigger(this._element,"close.bs.alert").defaultPrevented)return;this._element.classList.remove("show");const t=this._element.classList.contains("fade");this._queueCallback(()=>this._destroyElement(),this._element,t)}_destroyElement(){this._element.remove(),M.trigger(this._element,"closed.bs.alert"),this.dispose()}static jQueryInterface(t){return this.each(function(){const e=Y.getOrCreateInstance(this);if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method named "${t}"`);e[t](this)}})}}V(Y,"close"),_(Y);const U='[data-bs-toggle="button"]';class K extends W{static get NAME(){return"button"}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle("active"))}static jQueryInterface(t){return this.each(function(){const e=K.getOrCreateInstance(this);"toggle"===t&&e[t]()})}}M.on(document,"click.bs.button.data-api",U,t=>{t.preventDefault();const e=t.target.closest(U);K.getOrCreateInstance(e).toggle()}),_(K);const Q={endCallback:null,leftCallback:null,rightCallback:null},X={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class G extends ${constructor(t,e){super(),this._element=t,t&&G.isSupported()&&(this._config=this._getConfig(e),this._deltaX=0,this._supportPointerEvents=Boolean(window.PointerEvent),this._initEvents())}static get Default(){return Q}static get DefaultType(){return X}static get NAME(){return"swipe"}dispose(){M.off(this._element,".bs.swipe")}_start(t){this._supportPointerEvents?this._eventIsPointerPenTouch(t)&&(this._deltaX=t.clientX):this._deltaX=t.touches[0].clientX}_end(t){this._eventIsPointerPenTouch(t)&&(this._deltaX=t.clientX-this._deltaX),this._handleSwipe(),b(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<=40)return;const e=t/this._deltaX;this._deltaX=0,e&&b(e>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(M.on(this._element,"pointerdown.bs.swipe",t=>this._start(t)),M.on(this._element,"pointerup.bs.swipe",t=>this._end(t)),this._element.classList.add("pointer-event")):(M.on(this._element,"touchstart.bs.swipe",t=>this._start(t)),M.on(this._element,"touchmove.bs.swipe",t=>this._move(t)),M.on(this._element,"touchend.bs.swipe",t=>this._end(t)))}_eventIsPointerPenTouch(t){return this._supportPointerEvents&&("pen"===t.pointerType||"touch"===t.pointerType)}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}}const J="next",Z="prev",tt="left",et="right",it="slid.bs.carousel",nt="carousel",st="active",ot={ArrowLeft:et,ArrowRight:tt},rt={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},at={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class lt extends W{constructor(t,e){super(t,e),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=R.findOne(".carousel-indicators",this._element),this._addEventListeners(),this._config.ride===nt&&this.cycle()}static get Default(){return rt}static get DefaultType(){return at}static get NAME(){return"carousel"}next(){this._slide(J)}nextWhenVisible(){!document.hidden&&c(this._element)&&this.next()}prev(){this._slide(Z)}pause(){this._isSliding&&r(this._element),this._clearInterval()}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval(()=>this.nextWhenVisible(),this._config.interval)}_maybeEnableCycle(){this._config.ride&&(this._isSliding?M.one(this._element,it,()=>this.cycle()):this.cycle())}to(t){const e=this._getItems();if(t>e.length-1||t<0)return;if(this._isSliding)return void M.one(this._element,it,()=>this.to(t));const i=this._getItemIndex(this._getActive());if(i===t)return;const n=t>i?J:Z;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&&M.on(this._element,"keydown.bs.carousel",t=>this._keydown(t)),"hover"===this._config.pause&&(M.on(this._element,"mouseenter.bs.carousel",()=>this.pause()),M.on(this._element,"mouseleave.bs.carousel",()=>this._maybeEnableCycle())),this._config.touch&&G.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const t of R.find(".carousel-item img",this._element))M.on(t,"dragstart.bs.carousel",t=>t.preventDefault());const t={leftCallback:()=>this._slide(this._directionToOrder(tt)),rightCallback:()=>this._slide(this._directionToOrder(et)),endCallback:()=>{"hover"===this._config.pause&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(()=>this._maybeEnableCycle(),500+this._config.interval))}};this._swipeHelper=new G(this._element,t)}_keydown(t){if(/input|textarea/i.test(t.target.tagName))return;const e=ot[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=R.findOne(".active",this._indicatorsElement);e.classList.remove(st),e.removeAttribute("aria-current");const i=R.findOne(`[data-bs-slide-to="${t}"]`,this._indicatorsElement);i&&(i.classList.add(st),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===J,s=e||y(this._getItems(),i,n,this._config.wrap);if(s===i)return;const o=this._getItemIndex(s),r=e=>M.trigger(this._element,e,{relatedTarget:s,direction:this._orderToDirection(t),from:this._getItemIndex(i),to:o});if(r("slide.bs.carousel").defaultPrevented)return;if(!i||!s)return;const a=Boolean(this._interval);this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(o),this._activeElement=s;const l=n?"carousel-item-start":"carousel-item-end",c=n?"carousel-item-next":"carousel-item-prev";s.classList.add(c),f(s),i.classList.add(l),s.classList.add(l),this._queueCallback(()=>{s.classList.remove(l,c),s.classList.add(st),i.classList.remove(st,c,l),this._isSliding=!1,r(it)},i,this._isAnimated()),a&&this.cycle()}_isAnimated(){return this._element.classList.contains("slide")}_getActive(){return R.findOne(".active.carousel-item",this._element)}_getItems(){return R.find(".carousel-item",this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(t){return g()?t===tt?Z:J:t===tt?J:Z}_orderToDirection(t){return g()?t===Z?tt:et:t===Z?et:tt}static jQueryInterface(t){return this.each(function(){const e=lt.getOrCreateInstance(this,t);if("number"!=typeof t){if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method named "${t}"`);e[t]()}}else e.to(t)})}}M.on(document,"click.bs.carousel.data-api","[data-bs-slide], [data-bs-slide-to]",function(t){const e=R.getElementFromSelector(this);if(!e||!e.classList.contains(nt))return;t.preventDefault();const i=lt.getOrCreateInstance(e),n=this.getAttribute("data-bs-slide-to");return n?(i.to(n),void i._maybeEnableCycle()):"next"===z.getDataAttribute(this,"slide")?(i.next(),void i._maybeEnableCycle()):(i.prev(),void i._maybeEnableCycle())}),M.on(window,"load.bs.carousel.data-api",()=>{const t=R.find('[data-bs-ride="carousel"]');for(const e of t)lt.getOrCreateInstance(e)}),_(lt);const ct="show",ht="collapse",dt="collapsing",ut='[data-bs-toggle="collapse"]',ft={parent:null,toggle:!0},pt={parent:"(null|element)",toggle:"boolean"};class mt extends W{constructor(t,e){super(t,e),this._isTransitioning=!1,this._triggerArray=[];const i=R.find(ut);for(const t of i){const e=R.getSelectorFromElement(t),i=R.find(e).filter(t=>t===this._element);null!==e&&i.length&&this._triggerArray.push(t)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return ft}static get DefaultType(){return pt}static get NAME(){return"collapse"}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let t=[];if(this._config.parent&&(t=this._getFirstLevelChildren(".collapse.show, .collapse.collapsing").filter(t=>t!==this._element).map(t=>mt.getOrCreateInstance(t,{toggle:!1}))),t.length&&t[0]._isTransitioning)return;if(M.trigger(this._element,"show.bs.collapse").defaultPrevented)return;for(const e of t)e.hide();const e=this._getDimension();this._element.classList.remove(ht),this._element.classList.add(dt),this._element.style[e]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const i=`scroll${e[0].toUpperCase()+e.slice(1)}`;this._queueCallback(()=>{this._isTransitioning=!1,this._element.classList.remove(dt),this._element.classList.add(ht,ct),this._element.style[e]="",M.trigger(this._element,"shown.bs.collapse")},this._element,!0),this._element.style[e]=`${this._element[i]}px`}hide(){if(this._isTransitioning||!this._isShown())return;if(M.trigger(this._element,"hide.bs.collapse").defaultPrevented)return;const t=this._getDimension();this._element.style[t]=`${this._element.getBoundingClientRect()[t]}px`,f(this._element),this._element.classList.add(dt),this._element.classList.remove(ht,ct);for(const t of this._triggerArray){const e=R.getElementFromSelector(t);e&&!this._isShown(e)&&this._addAriaAndCollapsedClass([t],!1)}this._isTransitioning=!0,this._element.style[t]="",this._queueCallback(()=>{this._isTransitioning=!1,this._element.classList.remove(dt),this._element.classList.add(ht),M.trigger(this._element,"hidden.bs.collapse")},this._element,!0)}_isShown(t=this._element){return t.classList.contains(ct)}_configAfterMerge(t){return t.toggle=Boolean(t.toggle),t.parent=l(t.parent),t}_getDimension(){return this._element.classList.contains("collapse-horizontal")?"width":"height"}_initializeChildren(){if(!this._config.parent)return;const t=this._getFirstLevelChildren(ut);for(const e of t){const t=R.getElementFromSelector(e);t&&this._addAriaAndCollapsedClass([e],this._isShown(t))}}_getFirstLevelChildren(t){const e=R.find(":scope .collapse .collapse",this._config.parent);return R.find(t,this._config.parent).filter(t=>!e.includes(t))}_addAriaAndCollapsedClass(t,e){if(t.length)for(const i of t)i.classList.toggle("collapsed",!e),i.setAttribute("aria-expanded",e)}static jQueryInterface(t){const e={};return"string"==typeof t&&/show|hide/.test(t)&&(e.toggle=!1),this.each(function(){const i=mt.getOrCreateInstance(this,e);if("string"==typeof t){if(void 0===i[t])throw new TypeError(`No method named "${t}"`);i[t]()}})}}M.on(document,"click.bs.collapse.data-api",ut,function(t){("A"===t.target.tagName||t.delegateTarget&&"A"===t.delegateTarget.tagName)&&t.preventDefault();for(const t of R.getMultipleElementsFromSelector(this))mt.getOrCreateInstance(t,{toggle:!1}).toggle()}),_(mt);const gt="dropdown",_t="ArrowUp",bt="ArrowDown",vt="click.bs.dropdown.data-api",yt="keydown.bs.dropdown.data-api",wt="show",Et='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',At=`${Et}.show`,Ct=".dropdown-menu",Tt=g()?"top-end":"top-start",Ot=g()?"top-start":"top-end",xt=g()?"bottom-end":"bottom-start",kt=g()?"bottom-start":"bottom-end",Lt=g()?"left-start":"right-start",St=g()?"right-start":"left-start",Dt={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},It={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class Nt extends W{constructor(t,e){super(t,e),this._popper=null,this._parent=this._element.parentNode,this._menu=R.next(this._element,Ct)[0]||R.prev(this._element,Ct)[0]||R.findOne(Ct,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return Dt}static get DefaultType(){return It}static get NAME(){return gt}toggle(){return this._isShown()?this.hide():this.show()}show(){if(h(this._element)||this._isShown())return;const t={relatedTarget:this._element};if(!M.trigger(this._element,"show.bs.dropdown",t).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(".navbar-nav"))for(const t of[].concat(...document.body.children))M.on(t,"mouseover",u);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(wt),this._element.classList.add(wt),M.trigger(this._element,"shown.bs.dropdown",t)}}hide(){if(h(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(!M.trigger(this._element,"hide.bs.dropdown",t).defaultPrevented){if("ontouchstart"in document.documentElement)for(const t of[].concat(...document.body.children))M.off(t,"mouseover",u);this._popper&&this._popper.destroy(),this._menu.classList.remove(wt),this._element.classList.remove(wt),this._element.setAttribute("aria-expanded","false"),z.removeDataAttribute(this._menu,"popper"),M.trigger(this._element,"hidden.bs.dropdown",t)}}_getConfig(t){if("object"==typeof(t=super._getConfig(t)).reference&&!a(t.reference)&&"function"!=typeof t.reference.getBoundingClientRect)throw new TypeError(`${gt.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return t}_createPopper(){if(void 0===e)throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");let t=this._element;"parent"===this._config.reference?t=this._parent:a(this._config.reference)?t=l(this._config.reference):"object"==typeof this._config.reference&&(t=this._config.reference);const i=this._getPopperConfig();this._popper=e.createPopper(t,this._menu,i)}_isShown(){return this._menu.classList.contains(wt)}_getPlacement(){const t=this._parent;if(t.classList.contains("dropend"))return Lt;if(t.classList.contains("dropstart"))return St;if(t.classList.contains("dropup-center"))return"top";if(t.classList.contains("dropdown-center"))return"bottom";const e="end"===getComputedStyle(this._menu).getPropertyValue("--bs-position").trim();return t.classList.contains("dropup")?e?Ot:Tt:e?kt:xt}_detectNavbar(){return null!==this._element.closest(".navbar")}_getOffset(){const{offset:t}=this._config;return"string"==typeof t?t.split(",").map(t=>Number.parseInt(t,10)):"function"==typeof t?e=>t(e,this._element):t}_getPopperConfig(){const t={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return(this._inNavbar||"static"===this._config.display)&&(z.setDataAttribute(this._menu,"popper","static"),t.modifiers=[{name:"applyStyles",enabled:!1}]),{...t,...b(this._config.popperConfig,[t])}}_selectMenuItem({key:t,target:e}){const i=R.find(".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",this._menu).filter(t=>c(t));i.length&&y(i,e,t===bt,!i.includes(e)).focus()}static jQueryInterface(t){return this.each(function(){const e=Nt.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}})}static clearMenus(t){if(2===t.button||"keyup"===t.type&&"Tab"!==t.key)return;const e=R.find(At);for(const i of e){const e=Nt.getInstance(i);if(!e||!1===e._config.autoClose)continue;const n=t.composedPath(),s=n.includes(e._menu);if(n.includes(e._element)||"inside"===e._config.autoClose&&!s||"outside"===e._config.autoClose&&s)continue;if(e._menu.contains(t.target)&&("keyup"===t.type&&"Tab"===t.key||/input|select|option|textarea|form/i.test(t.target.tagName)))continue;const o={relatedTarget:e._element};"click"===t.type&&(o.clickEvent=t),e._completeHide(o)}}static dataApiKeydownHandler(t){const e=/input|textarea/i.test(t.target.tagName),i="Escape"===t.key,n=[_t,bt].includes(t.key);if(!n&&!i)return;if(e&&!i)return;t.preventDefault();const s=this.matches(Et)?this:R.prev(this,Et)[0]||R.next(this,Et)[0]||R.findOne(Et,t.delegateTarget.parentNode),o=Nt.getOrCreateInstance(s);if(n)return t.stopPropagation(),o.show(),void o._selectMenuItem(t);o._isShown()&&(t.stopPropagation(),o.hide(),s.focus())}}M.on(document,yt,Et,Nt.dataApiKeydownHandler),M.on(document,yt,Ct,Nt.dataApiKeydownHandler),M.on(document,vt,Nt.clearMenus),M.on(document,"keyup.bs.dropdown.data-api",Nt.clearMenus),M.on(document,vt,Et,function(t){t.preventDefault(),Nt.getOrCreateInstance(this).toggle()}),_(Nt);const Pt="show",jt="mousedown.bs.backdrop",Mt={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},Ht={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class Ft extends ${constructor(t){super(),this._config=this._getConfig(t),this._isAppended=!1,this._element=null}static get Default(){return Mt}static get DefaultType(){return Ht}static get NAME(){return"backdrop"}show(t){if(!this._config.isVisible)return void b(t);this._append();const e=this._getElement();this._config.isAnimated&&f(e),e.classList.add(Pt),this._emulateAnimation(()=>{b(t)})}hide(t){this._config.isVisible?(this._getElement().classList.remove(Pt),this._emulateAnimation(()=>{this.dispose(),b(t)})):b(t)}dispose(){this._isAppended&&(M.off(this._element,jt),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("fade"),this._element=t}return this._element}_configAfterMerge(t){return t.rootElement=l(t.rootElement),t}_append(){if(this._isAppended)return;const t=this._getElement();this._config.rootElement.append(t),M.on(t,jt,()=>{b(this._config.clickCallback)}),this._isAppended=!0}_emulateAnimation(t){v(t,this._getElement(),this._config.isAnimated)}}const Bt=".bs.focustrap",zt="backward",$t={autofocus:!0,trapElement:null},Wt={autofocus:"boolean",trapElement:"element"};class qt extends ${constructor(t){super(),this._config=this._getConfig(t),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return $t}static get DefaultType(){return Wt}static get NAME(){return"focustrap"}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),M.off(document,Bt),M.on(document,"focusin.bs.focustrap",t=>this._handleFocusin(t)),M.on(document,"keydown.tab.bs.focustrap",t=>this._handleKeydown(t)),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,M.off(document,Bt))}_handleFocusin(t){const{trapElement:e}=this._config;if(t.target===document||t.target===e||e.contains(t.target))return;const i=R.focusableChildren(e);0===i.length?e.focus():this._lastTabNavDirection===zt?i[i.length-1].focus():i[0].focus()}_handleKeydown(t){"Tab"===t.key&&(this._lastTabNavDirection=t.shiftKey?zt:"forward")}}const Rt=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",Vt=".sticky-top",Yt="padding-right",Ut="margin-right";class Kt{constructor(){this._element=document.body}getWidth(){const t=document.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}hide(){const t=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,Yt,e=>e+t),this._setElementAttributes(Rt,Yt,e=>e+t),this._setElementAttributes(Vt,Ut,e=>e-t)}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,Yt),this._resetElementAttributes(Rt,Yt),this._resetElementAttributes(Vt,Ut)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(t,e,i){const n=this.getWidth();this._applyManipulationCallback(t,t=>{if(t!==this._element&&window.innerWidth>t.clientWidth+n)return;this._saveInitialAttribute(t,e);const s=window.getComputedStyle(t).getPropertyValue(e);t.style.setProperty(e,`${i(Number.parseFloat(s))}px`)})}_saveInitialAttribute(t,e){const i=t.style.getPropertyValue(e);i&&z.setDataAttribute(t,e,i)}_resetElementAttributes(t,e){this._applyManipulationCallback(t,t=>{const i=z.getDataAttribute(t,e);null!==i?(z.removeDataAttribute(t,e),t.style.setProperty(e,i)):t.style.removeProperty(e)})}_applyManipulationCallback(t,e){if(a(t))e(t);else for(const i of R.find(t,this._element))e(i)}}const Qt=".bs.modal",Xt="hidden.bs.modal",Gt="show.bs.modal",Jt="modal-open",Zt="show",te="modal-static",ee={backdrop:!0,focus:!0,keyboard:!0},ie={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class ne extends W{constructor(t,e){super(t,e),this._dialog=R.findOne(".modal-dialog",this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new Kt,this._addEventListeners()}static get Default(){return ee}static get DefaultType(){return ie}static get NAME(){return"modal"}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){this._isShown||this._isTransitioning||M.trigger(this._element,Gt,{relatedTarget:t}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(Jt),this._adjustDialog(),this._backdrop.show(()=>this._showElement(t)))}hide(){this._isShown&&!this._isTransitioning&&(M.trigger(this._element,"hide.bs.modal").defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(Zt),this._queueCallback(()=>this._hideModal(),this._element,this._isAnimated())))}dispose(){M.off(window,Qt),M.off(this._dialog,Qt),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new Ft({isVisible:Boolean(this._config.backdrop),isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new qt({trapElement:this._element})}_showElement(t){document.body.contains(this._element)||document.body.append(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.scrollTop=0;const e=R.findOne(".modal-body",this._dialog);e&&(e.scrollTop=0),f(this._element),this._element.classList.add(Zt),this._queueCallback(()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,M.trigger(this._element,"shown.bs.modal",{relatedTarget:t})},this._dialog,this._isAnimated())}_addEventListeners(){M.on(this._element,"keydown.dismiss.bs.modal",t=>{"Escape"===t.key&&(this._config.keyboard?this.hide():this._triggerBackdropTransition())}),M.on(window,"resize.bs.modal",()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()}),M.on(this._element,"mousedown.dismiss.bs.modal",t=>{M.one(this._element,"click.dismiss.bs.modal",e=>{this._element===t.target&&this._element===e.target&&("static"!==this._config.backdrop?this._config.backdrop&&this.hide():this._triggerBackdropTransition())})})}_hideModal(){this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._backdrop.hide(()=>{document.body.classList.remove(Jt),this._resetAdjustments(),this._scrollBar.reset(),M.trigger(this._element,Xt)})}_isAnimated(){return this._element.classList.contains("fade")}_triggerBackdropTransition(){if(M.trigger(this._element,"hidePrevented.bs.modal").defaultPrevented)return;const t=this._element.scrollHeight>document.documentElement.clientHeight,e=this._element.style.overflowY;"hidden"===e||this._element.classList.contains(te)||(t||(this._element.style.overflowY="hidden"),this._element.classList.add(te),this._queueCallback(()=>{this._element.classList.remove(te),this._queueCallback(()=>{this._element.style.overflowY=e},this._dialog)},this._dialog),this._element.focus())}_adjustDialog(){const t=this._element.scrollHeight>document.documentElement.clientHeight,e=this._scrollBar.getWidth(),i=e>0;if(i&&!t){const t=g()?"paddingLeft":"paddingRight";this._element.style[t]=`${e}px`}if(!i&&t){const t=g()?"paddingRight":"paddingLeft";this._element.style[t]=`${e}px`}}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(t,e){return this.each(function(){const i=ne.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===i[t])throw new TypeError(`No method named "${t}"`);i[t](e)}})}}M.on(document,"click.bs.modal.data-api",'[data-bs-toggle="modal"]',function(t){const e=R.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&t.preventDefault(),M.one(e,Gt,t=>{t.defaultPrevented||M.one(e,Xt,()=>{c(this)&&this.focus()})});const i=R.findOne(".modal.show");i&&ne.getInstance(i).hide(),ne.getOrCreateInstance(e).toggle(this)}),V(ne),_(ne);const se="show",oe="showing",re="hiding",ae=".offcanvas.show",le="hidePrevented.bs.offcanvas",ce="hidden.bs.offcanvas",he={backdrop:!0,keyboard:!0,scroll:!1},de={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};class ue extends W{constructor(t,e){super(t,e),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return he}static get DefaultType(){return de}static get NAME(){return"offcanvas"}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){this._isShown||M.trigger(this._element,"show.bs.offcanvas",{relatedTarget:t}).defaultPrevented||(this._isShown=!0,this._backdrop.show(),this._config.scroll||(new Kt).hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(oe),this._queueCallback(()=>{this._config.scroll&&!this._config.backdrop||this._focustrap.activate(),this._element.classList.add(se),this._element.classList.remove(oe),M.trigger(this._element,"shown.bs.offcanvas",{relatedTarget:t})},this._element,!0))}hide(){this._isShown&&(M.trigger(this._element,"hide.bs.offcanvas").defaultPrevented||(this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(re),this._backdrop.hide(),this._queueCallback(()=>{this._element.classList.remove(se,re),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||(new Kt).reset(),M.trigger(this._element,ce)},this._element,!0)))}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){const t=Boolean(this._config.backdrop);return new Ft({className:"offcanvas-backdrop",isVisible:t,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:t?()=>{"static"!==this._config.backdrop?this.hide():M.trigger(this._element,le)}:null})}_initializeFocusTrap(){return new qt({trapElement:this._element})}_addEventListeners(){M.on(this._element,"keydown.dismiss.bs.offcanvas",t=>{"Escape"===t.key&&(this._config.keyboard?this.hide():M.trigger(this._element,le))})}static jQueryInterface(t){return this.each(function(){const e=ue.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method named "${t}"`);e[t](this)}})}}M.on(document,"click.bs.offcanvas.data-api",'[data-bs-toggle="offcanvas"]',function(t){const e=R.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&t.preventDefault(),h(this))return;M.one(e,ce,()=>{c(this)&&this.focus()});const i=R.findOne(ae);i&&i!==e&&ue.getInstance(i).hide(),ue.getOrCreateInstance(e).toggle(this)}),M.on(window,"load.bs.offcanvas.data-api",()=>{for(const t of R.find(ae))ue.getOrCreateInstance(t).show()}),M.on(window,"resize.bs.offcanvas",()=>{for(const t of R.find("[aria-modal][class*=show][class*=offcanvas-]"))"fixed"!==getComputedStyle(t).position&&ue.getOrCreateInstance(t).hide()}),V(ue),_(ue);const fe={"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},pe=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),me=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,ge=(t,e)=>{const i=t.nodeName.toLowerCase();return e.includes(i)?!pe.has(i)||Boolean(me.test(t.nodeValue)):e.filter(t=>t instanceof RegExp).some(t=>t.test(i))},_e={allowList:fe,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"<div></div>"},be={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},ve={entry:"(string|element|function|null)",selector:"(string|element)"};class ye extends ${constructor(t){super(),this._config=this._getConfig(t)}static get Default(){return _e}static get DefaultType(){return be}static get NAME(){return"TemplateFactory"}getContent(){return Object.values(this._config.content).map(t=>this._resolvePossibleFunction(t)).filter(Boolean)}hasContent(){return this.getContent().length>0}changeContent(t){return this._checkContent(t),this._config.content={...this._config.content,...t},this}toHtml(){const t=document.createElement("div");t.innerHTML=this._maybeSanitize(this._config.template);for(const[e,i]of Object.entries(this._config.content))this._setContent(t,i,e);const e=t.children[0],i=this._resolvePossibleFunction(this._config.extraClass);return i&&e.classList.add(...i.split(" ")),e}_typeCheckConfig(t){super._typeCheckConfig(t),this._checkContent(t.content)}_checkContent(t){for(const[e,i]of Object.entries(t))super._typeCheckConfig({selector:e,entry:i},ve)}_setContent(t,e,i){const n=R.findOne(i,t);n&&((e=this._resolvePossibleFunction(e))?a(e)?this._putElementInTemplate(l(e),n):this._config.html?n.innerHTML=this._maybeSanitize(e):n.textContent=e:n.remove())}_maybeSanitize(t){return this._config.sanitize?function(t,e,i){if(!t.length)return t;if(i&&"function"==typeof i)return i(t);const n=(new window.DOMParser).parseFromString(t,"text/html"),s=[].concat(...n.body.querySelectorAll("*"));for(const t of s){const i=t.nodeName.toLowerCase();if(!Object.keys(e).includes(i)){t.remove();continue}const n=[].concat(...t.attributes),s=[].concat(e["*"]||[],e[i]||[]);for(const e of n)ge(e,s)||t.removeAttribute(e.nodeName)}return n.body.innerHTML}(t,this._config.allowList,this._config.sanitizeFn):t}_resolvePossibleFunction(t){return b(t,[this])}_putElementInTemplate(t,e){if(this._config.html)return e.innerHTML="",void e.append(t);e.textContent=t.textContent}}const we=new Set(["sanitize","allowList","sanitizeFn"]),Ee="fade",Ae="show",Ce=".modal",Te="hide.bs.modal",Oe="hover",xe="focus",ke={AUTO:"auto",TOP:"top",RIGHT:g()?"left":"right",BOTTOM:"bottom",LEFT:g()?"right":"left"},Le={allowList:fe,animation:!0,boundary:"clippingParents",container:!1,customClass:"",delay:0,fallbackPlacements:["top","right","bottom","left"],html:!1,offset:[0,6],placement:"top",popperConfig:null,sanitize:!0,sanitizeFn:null,selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',title:"",trigger:"hover focus"},Se={allowList:"object",animation:"boolean",boundary:"(string|element)",container:"(string|element|boolean)",customClass:"(string|function)",delay:"(number|object)",fallbackPlacements:"array",html:"boolean",offset:"(array|string|function)",placement:"(string|function)",popperConfig:"(null|object|function)",sanitize:"boolean",sanitizeFn:"(null|function)",selector:"(string|boolean)",template:"string",title:"(string|element|function)",trigger:"string"};class De extends W{constructor(t,i){if(void 0===e)throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");super(t,i),this._isEnabled=!0,this._timeout=0,this._isHovered=null,this._activeTrigger={},this._popper=null,this._templateFactory=null,this._newContent=null,this.tip=null,this._setListeners(),this._config.selector||this._fixTitle()}static get Default(){return Le}static get DefaultType(){return Se}static get NAME(){return"tooltip"}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){this._isEnabled&&(this._activeTrigger.click=!this._activeTrigger.click,this._isShown()?this._leave():this._enter())}dispose(){clearTimeout(this._timeout),M.off(this._element.closest(Ce),Te,this._hideModalHandler),this._element.getAttribute("data-bs-original-title")&&this._element.setAttribute("title",this._element.getAttribute("data-bs-original-title")),this._disposePopper(),super.dispose()}show(){if("none"===this._element.style.display)throw new Error("Please use show on visible elements");if(!this._isWithContent()||!this._isEnabled)return;const t=M.trigger(this._element,this.constructor.eventName("show")),e=(d(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(t.defaultPrevented||!e)return;this._disposePopper();const i=this._getTipElement();this._element.setAttribute("aria-describedby",i.getAttribute("id"));const{container:n}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(n.append(i),M.trigger(this._element,this.constructor.eventName("inserted"))),this._popper=this._createPopper(i),i.classList.add(Ae),"ontouchstart"in document.documentElement)for(const t of[].concat(...document.body.children))M.on(t,"mouseover",u);this._queueCallback(()=>{M.trigger(this._element,this.constructor.eventName("shown")),!1===this._isHovered&&this._leave(),this._isHovered=!1},this.tip,this._isAnimated())}hide(){if(this._isShown()&&!M.trigger(this._element,this.constructor.eventName("hide")).defaultPrevented){if(this._getTipElement().classList.remove(Ae),"ontouchstart"in document.documentElement)for(const t of[].concat(...document.body.children))M.off(t,"mouseover",u);this._activeTrigger.click=!1,this._activeTrigger.focus=!1,this._activeTrigger.hover=!1,this._isHovered=null,this._queueCallback(()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),M.trigger(this._element,this.constructor.eventName("hidden")))},this.tip,this._isAnimated())}}update(){this._popper&&this._popper.update()}_isWithContent(){return Boolean(this._getTitle())}_getTipElement(){return this.tip||(this.tip=this._createTipElement(this._newContent||this._getContentForTemplate())),this.tip}_createTipElement(t){const e=this._getTemplateFactory(t).toHtml();if(!e)return null;e.classList.remove(Ee,Ae),e.classList.add(`bs-${this.constructor.NAME}-auto`);const i=(t=>{do{t+=Math.floor(1e6*Math.random())}while(document.getElementById(t));return t})(this.constructor.NAME).toString();return e.setAttribute("id",i),this._isAnimated()&&e.classList.add(Ee),e}setContent(t){this._newContent=t,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(t){return this._templateFactory?this._templateFactory.changeContent(t):this._templateFactory=new ye({...this._config,content:t,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{".tooltip-inner":this._getTitle()}}_getTitle(){return this._resolvePossibleFunction(this._config.title)||this._element.getAttribute("data-bs-original-title")}_initializeOnDelegatedTarget(t){return this.constructor.getOrCreateInstance(t.delegateTarget,this._getDelegateConfig())}_isAnimated(){return this._config.animation||this.tip&&this.tip.classList.contains(Ee)}_isShown(){return this.tip&&this.tip.classList.contains(Ae)}_createPopper(t){const i=b(this._config.placement,[this,t,this._element]),n=ke[i.toUpperCase()];return e.createPopper(this._element,t,this._getPopperConfig(n))}_getOffset(){const{offset:t}=this._config;return"string"==typeof t?t.split(",").map(t=>Number.parseInt(t,10)):"function"==typeof t?e=>t(e,this._element):t}_resolvePossibleFunction(t){return b(t,[this._element])}_getPopperConfig(t){const e={placement:t,modifiers:[{name:"flip",options:{fallbackPlacements:this._config.fallbackPlacements}},{name:"offset",options:{offset:this._getOffset()}},{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"arrow",options:{element:`.${this.constructor.NAME}-arrow`}},{name:"preSetPlacement",enabled:!0,phase:"beforeMain",fn:t=>{this._getTipElement().setAttribute("data-popper-placement",t.state.placement)}}]};return{...e,...b(this._config.popperConfig,[e])}}_setListeners(){const t=this._config.trigger.split(" ");for(const e of t)if("click"===e)M.on(this._element,this.constructor.eventName("click"),this._config.selector,t=>{this._initializeOnDelegatedTarget(t).toggle()});else if("manual"!==e){const t=e===Oe?this.constructor.eventName("mouseenter"):this.constructor.eventName("focusin"),i=e===Oe?this.constructor.eventName("mouseleave"):this.constructor.eventName("focusout");M.on(this._element,t,this._config.selector,t=>{const e=this._initializeOnDelegatedTarget(t);e._activeTrigger["focusin"===t.type?xe:Oe]=!0,e._enter()}),M.on(this._element,i,this._config.selector,t=>{const e=this._initializeOnDelegatedTarget(t);e._activeTrigger["focusout"===t.type?xe:Oe]=e._element.contains(t.relatedTarget),e._leave()})}this._hideModalHandler=(()=>{this._element&&this.hide()}),M.on(this._element.closest(Ce),Te,this._hideModalHandler)}_fixTitle(){const t=this._element.getAttribute("title");t&&(this._element.getAttribute("aria-label")||this._element.textContent.trim()||this._element.setAttribute("aria-label",t),this._element.setAttribute("data-bs-original-title",t),this._element.removeAttribute("title"))}_enter(){this._isShown()||this._isHovered?this._isHovered=!0:(this._isHovered=!0,this._setTimeout(()=>{this._isHovered&&this.show()},this._config.delay.show))}_leave(){this._isWithActiveTrigger()||(this._isHovered=!1,this._setTimeout(()=>{this._isHovered||this.hide()},this._config.delay.hide))}_setTimeout(t,e){clearTimeout(this._timeout),this._timeout=setTimeout(t,e)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(t){const e=z.getDataAttributes(this._element);for(const t of Object.keys(e))we.has(t)&&delete e[t];return t={...e,..."object"==typeof t&&t?t:{}},t=this._mergeConfigObj(t),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}_configAfterMerge(t){return t.container=!1===t.container?document.body:l(t.container),"number"==typeof t.delay&&(t.delay={show:t.delay,hide:t.delay}),"number"==typeof t.title&&(t.title=t.title.toString()),"number"==typeof t.content&&(t.content=t.content.toString()),t}_getDelegateConfig(){const t={};for(const[e,i]of Object.entries(this._config))this.constructor.Default[e]!==i&&(t[e]=i);return t.selector=!1,t.trigger="manual",t}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null),this.tip&&(this.tip.remove(),this.tip=null)}static jQueryInterface(t){return this.each(function(){const e=De.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}})}}_(De);const Ie={...De.Default,content:"",offset:[0,8],placement:"right",template:'<div class="popover" role="tooltip"><div class="popover-arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>',trigger:"click"},Ne={...De.DefaultType,content:"(null|string|element|function)"};class Pe extends De{static get Default(){return Ie}static get DefaultType(){return Ne}static get NAME(){return"popover"}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{".popover-header":this._getTitle(),".popover-body":this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(t){return this.each(function(){const e=Pe.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}})}}_(Pe);const je="click.bs.scrollspy",Me="active",He="[href]",Fe={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},Be={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};class ze extends W{constructor(t,e){super(t,e),this._targetLinks=new Map,this._observableSections=new Map,this._rootElement="visible"===getComputedStyle(this._element).overflowY?null:this._element,this._activeTarget=null,this._observer=null,this._previousScrollData={visibleEntryTop:0,parentScrollTop:0},this.refresh()}static get Default(){return Fe}static get DefaultType(){return Be}static get NAME(){return"scrollspy"}refresh(){this._initializeTargetsAndObservables(),this._maybeEnableSmoothScroll(),this._observer?this._observer.disconnect():this._observer=this._getNewObserver();for(const t of this._observableSections.values())this._observer.observe(t)}dispose(){this._observer.disconnect(),super.dispose()}_configAfterMerge(t){return t.target=l(t.target)||document.body,t.rootMargin=t.offset?`${t.offset}px 0px -30%`:t.rootMargin,"string"==typeof t.threshold&&(t.threshold=t.threshold.split(",").map(t=>Number.parseFloat(t))),t}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(M.off(this._config.target,je),M.on(this._config.target,je,He,t=>{const e=this._observableSections.get(t.target.hash);if(e){t.preventDefault();const i=this._rootElement||window,n=e.offsetTop-this._element.offsetTop;if(i.scrollTo)return void i.scrollTo({top:n,behavior:"smooth"});i.scrollTop=n}}))}_getNewObserver(){const t={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver(t=>this._observerCallback(t),t)}_observerCallback(t){const e=t=>this._targetLinks.get(`#${t.target.id}`),i=t=>{this._previousScrollData.visibleEntryTop=t.target.offsetTop,this._process(e(t))},n=(this._rootElement||document.documentElement).scrollTop,s=n>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=n;for(const o of t){if(!o.isIntersecting){this._activeTarget=null,this._clearActiveClass(e(o));continue}const t=o.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(s&&t){if(i(o),!n)return}else s||t||i(o)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;const t=R.find(He,this._config.target);for(const e of t){if(!e.hash||h(e))continue;const t=R.findOne(decodeURI(e.hash),this._element);c(t)&&(this._targetLinks.set(decodeURI(e.hash),e),this._observableSections.set(e.hash,t))}}_process(t){this._activeTarget!==t&&(this._clearActiveClass(this._config.target),this._activeTarget=t,t.classList.add(Me),this._activateParents(t),M.trigger(this._element,"activate.bs.scrollspy",{relatedTarget:t}))}_activateParents(t){if(t.classList.contains("dropdown-item"))R.findOne(".dropdown-toggle",t.closest(".dropdown")).classList.add(Me);else for(const e of R.parents(t,".nav, .list-group"))for(const t of R.prev(e,".nav-link, .nav-item > .nav-link, .list-group-item"))t.classList.add(Me)}_clearActiveClass(t){t.classList.remove(Me);const e=R.find("[href].active",t);for(const t of e)t.classList.remove(Me)}static jQueryInterface(t){return this.each(function(){const e=ze.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method named "${t}"`);e[t]()}})}}M.on(window,"load.bs.scrollspy.data-api",()=>{for(const t of R.find('[data-bs-spy="scroll"]'))ze.getOrCreateInstance(t)}),_(ze);const $e="ArrowLeft",We="ArrowRight",qe="ArrowUp",Re="ArrowDown",Ve="active",Ye="fade",Ue="show",Ke='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',Qe=`.nav-link:not(.dropdown-toggle), .list-group-item:not(.dropdown-toggle), [role="tab"]:not(.dropdown-toggle), ${Ke}`;class Xe extends W{constructor(t){super(t),this._parent=this._element.closest('.list-group, .nav, [role="tablist"]'),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),M.on(this._element,"keydown.bs.tab",t=>this._keydown(t)))}static get NAME(){return"tab"}show(){const t=this._element;if(this._elemIsActive(t))return;const e=this._getActiveElem(),i=e?M.trigger(e,"hide.bs.tab",{relatedTarget:t}):null;M.trigger(t,"show.bs.tab",{relatedTarget:e}).defaultPrevented||i&&i.defaultPrevented||(this._deactivate(e,t),this._activate(t,e))}_activate(t,e){t&&(t.classList.add(Ve),this._activate(R.getElementFromSelector(t)),this._queueCallback(()=>{"tab"===t.getAttribute("role")?(t.removeAttribute("tabindex"),t.setAttribute("aria-selected",!0),this._toggleDropDown(t,!0),M.trigger(t,"shown.bs.tab",{relatedTarget:e})):t.classList.add(Ue)},t,t.classList.contains(Ye)))}_deactivate(t,e){t&&(t.classList.remove(Ve),t.blur(),this._deactivate(R.getElementFromSelector(t)),this._queueCallback(()=>{"tab"===t.getAttribute("role")?(t.setAttribute("aria-selected",!1),t.setAttribute("tabindex","-1"),this._toggleDropDown(t,!1),M.trigger(t,"hidden.bs.tab",{relatedTarget:e})):t.classList.remove(Ue)},t,t.classList.contains(Ye)))}_keydown(t){if(![$e,We,qe,Re].includes(t.key))return;t.stopPropagation(),t.preventDefault();const e=[We,Re].includes(t.key),i=y(this._getChildren().filter(t=>!h(t)),t.target,e,!0);i&&(i.focus({preventScroll:!0}),Xe.getOrCreateInstance(i).show())}_getChildren(){return R.find(Qe,this._parent)}_getActiveElem(){return this._getChildren().find(t=>this._elemIsActive(t))||null}_setInitialAttributes(t,e){this._setAttributeIfNotExists(t,"role","tablist");for(const t of e)this._setInitialAttributesOnChild(t)}_setInitialAttributesOnChild(t){t=this._getInnerElement(t);const e=this._elemIsActive(t),i=this._getOuterElement(t);t.setAttribute("aria-selected",e),i!==t&&this._setAttributeIfNotExists(i,"role","presentation"),e||t.setAttribute("tabindex","-1"),this._setAttributeIfNotExists(t,"role","tab"),this._setInitialAttributesOnTargetPanel(t)}_setInitialAttributesOnTargetPanel(t){const e=R.getElementFromSelector(t);e&&(this._setAttributeIfNotExists(e,"role","tabpanel"),t.id&&this._setAttributeIfNotExists(e,"aria-labelledby",`${t.id}`))}_toggleDropDown(t,e){const i=this._getOuterElement(t);if(!i.classList.contains("dropdown"))return;const n=(t,n)=>{const s=R.findOne(t,i);s&&s.classList.toggle(n,e)};n(".dropdown-toggle",Ve),n(".dropdown-menu",Ue),i.setAttribute("aria-expanded",e)}_setAttributeIfNotExists(t,e,i){t.hasAttribute(e)||t.setAttribute(e,i)}_elemIsActive(t){return t.classList.contains(Ve)}_getInnerElement(t){return t.matches(Qe)?t:R.findOne(Qe,t)}_getOuterElement(t){return t.closest(".nav-item, .list-group-item")||t}static jQueryInterface(t){return this.each(function(){const e=Xe.getOrCreateInstance(this);if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method named "${t}"`);e[t]()}})}}M.on(document,"click.bs.tab",Ke,function(t){["A","AREA"].includes(this.tagName)&&t.preventDefault(),h(this)||Xe.getOrCreateInstance(this).show()}),M.on(window,"load.bs.tab",()=>{for(const t of R.find('.active[data-bs-toggle="tab"], .active[data-bs-toggle="pill"], .active[data-bs-toggle="list"]'))Xe.getOrCreateInstance(t)}),_(Xe);const Ge="hide",Je="show",Ze="showing",ti={animation:"boolean",autohide:"boolean",delay:"number"},ei={animation:!0,autohide:!0,delay:5e3};class ii extends W{constructor(t,e){super(t,e),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return ei}static get DefaultType(){return ti}static get NAME(){return"toast"}show(){M.trigger(this._element,"show.bs.toast").defaultPrevented||(this._clearTimeout(),this._config.animation&&this._element.classList.add("fade"),this._element.classList.remove(Ge),f(this._element),this._element.classList.add(Je,Ze),this._queueCallback(()=>{this._element.classList.remove(Ze),M.trigger(this._element,"shown.bs.toast"),this._maybeScheduleHide()},this._element,this._config.animation))}hide(){this.isShown()&&(M.trigger(this._element,"hide.bs.toast").defaultPrevented||(this._element.classList.add(Ze),this._queueCallback(()=>{this._element.classList.add(Ge),this._element.classList.remove(Ze,Je),M.trigger(this._element,"hidden.bs.toast")},this._element,this._config.animation)))}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(Je),super.dispose()}isShown(){return this._element.classList.contains(Je)}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout(()=>{this.hide()},this._config.delay)))}_onInteraction(t,e){switch(t.type){case"mouseover":case"mouseout":this._hasMouseInteraction=e;break;case"focusin":case"focusout":this._hasKeyboardInteraction=e}if(e)return void this._clearTimeout();const i=t.relatedTarget;this._element===i||this._element.contains(i)||this._maybeScheduleHide()}_setListeners(){M.on(this._element,"mouseover.bs.toast",t=>this._onInteraction(t,!0)),M.on(this._element,"mouseout.bs.toast",t=>this._onInteraction(t,!1)),M.on(this._element,"focusin.bs.toast",t=>this._onInteraction(t,!0)),M.on(this._element,"focusout.bs.toast",t=>this._onInteraction(t,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(t){return this.each(function(){const e=ii.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t](this)}})}}return V(ii),_(ii),{Alert:Y,Button:K,Carousel:lt,Collapse:mt,Dropdown:Nt,Modal:ne,Offcanvas:ue,Popover:Pe,ScrollSpy:ze,Tab:Xe,Toast:ii,Tooltip:De}}),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t=t||self).Headroom=e()}(this,function(){"use strict";function t(){return"undefined"!=typeof window}function e(t,e,i){var n,s=function(){var t=!1;try{var e={get passive(){t=!0}};window.addEventListener("test",e,e),window.removeEventListener("test",e,e)}catch(e){t=!1}return t}(),o=!1,r=function(t){return function(t){return t&&t.document&&function(t){return 9===t.nodeType}(t.document)}(t)?function(t){var e=t.document,i=e.body,n=e.documentElement;return{scrollHeight:function(){return Math.max(i.scrollHeight,n.scrollHeight,i.offsetHeight,n.offsetHeight,i.clientHeight,n.clientHeight)},height:function(){return t.innerHeight||n.clientHeight||i.clientHeight},scrollY:function(){return void 0!==t.pageYOffset?t.pageYOffset:(n||i.parentNode||i).scrollTop}}}(t):function(t){return{scrollHeight:function(){return Math.max(t.scrollHeight,t.offsetHeight,t.clientHeight)},height:function(){return Math.max(t.offsetHeight,t.clientHeight)},scrollY:function(){return t.scrollTop}}}(t)}(t),a=r.scrollY(),l={};function c(){var t=Math.round(r.scrollY()),n=r.height(),s=r.scrollHeight();l.scrollY=t,l.lastScrollY=a,l.direction=a<t?"down":"up",l.distance=Math.abs(t-a),l.isOutOfBounds=t<0||s<t+n,l.top=t<=e.offset[l.direction],l.bottom=s<=t+n,l.toleranceExceeded=l.distance>e.tolerance[l.direction],i(l),a=t,o=!1}function h(){o||(o=!0,n=requestAnimationFrame(c))}var d=!!s&&{passive:!0,capture:!1};return t.addEventListener("scroll",h,d),c(),{destroy:function(){cancelAnimationFrame(n),t.removeEventListener("scroll",h,d)}}}function i(t){return t===Object(t)?t:{down:t,up:t}}function n(t,e){e=e||{},Object.assign(this,n.options,e),this.classes=Object.assign({},n.options.classes,e.classes),this.elem=t,this.tolerance=i(this.tolerance),this.offset=i(this.offset),this.initialised=!1,this.frozen=!1}return n.prototype={constructor:n,init:function(){return n.cutsTheMustard&&!this.initialised&&(this.addClass("initial"),this.initialised=!0,setTimeout(function(t){t.scrollTracker=e(t.scroller,{offset:t.offset,tolerance:t.tolerance},t.update.bind(t))},100,this)),this},destroy:function(){this.initialised=!1,Object.keys(this.classes).forEach(this.removeClass,this),this.scrollTracker.destroy()},unpin:function(){!this.hasClass("pinned")&&this.hasClass("unpinned")||(this.addClass("unpinned"),this.removeClass("pinned"),this.onUnpin&&this.onUnpin.call(this))},pin:function(){this.hasClass("unpinned")&&(this.addClass("pinned"),this.removeClass("unpinned"),this.onPin&&this.onPin.call(this))},freeze:function(){this.frozen=!0,this.addClass("frozen")},unfreeze:function(){this.frozen=!1,this.removeClass("frozen")},top:function(){this.hasClass("top")||(this.addClass("top"),this.removeClass("notTop"),this.onTop&&this.onTop.call(this))},notTop:function(){this.hasClass("notTop")||(this.addClass("notTop"),this.removeClass("top"),this.onNotTop&&this.onNotTop.call(this))},bottom:function(){this.hasClass("bottom")||(this.addClass("bottom"),this.removeClass("notBottom"),this.onBottom&&this.onBottom.call(this))},notBottom:function(){this.hasClass("notBottom")||(this.addClass("notBottom"),this.removeClass("bottom"),this.onNotBottom&&this.onNotBottom.call(this))},shouldUnpin:function(t){return"down"===t.direction&&!t.top&&t.toleranceExceeded},shouldPin:function(t){return"up"===t.direction&&t.toleranceExceeded||t.top},addClass:function(t){this.elem.classList.add.apply(this.elem.classList,this.classes[t].split(" "))},removeClass:function(t){this.elem.classList.remove.apply(this.elem.classList,this.classes[t].split(" "))},hasClass:function(t){return this.classes[t].split(" ").every(function(t){return this.classList.contains(t)},this.elem)},update:function(t){t.isOutOfBounds||!0!==this.frozen&&(t.top?this.top():this.notTop(),t.bottom?this.bottom():this.notBottom(),this.shouldUnpin(t)?this.unpin():this.shouldPin(t)&&this.pin())}},n.options={tolerance:{up:0,down:0},offset:0,scroller:t()?window:null,classes:{frozen:"headroom--frozen",pinned:"headroom--pinned",unpinned:"headroom--unpinned",top:"headroom--top",notTop:"headroom--not-top",bottom:"headroom--bottom",notBottom:"headroom--not-bottom",initial:"headroom"}},n.cutsTheMustard=!!(t()&&function(){}.bind&&"classList"in document.documentElement&&Object.assign&&Object.keys&&requestAnimationFrame),n}),function(){function t(){this.init=function(){const t=document.getElementById("navbar-front"),e=document.getElementById("navbar"),i=document.getElementById("nav-submenu"),n=document.querySelectorAll(".section-index");if(window.addEventListener("scroll",function(){let t=window.pageYOffset;n.forEach(e=>{const i=e.offsetHeight,n=e.offsetTop-30;sectionId=e.getAttribute("id"),t>n&&t<=n+i?document.querySelector(".nav-submenu a[href*="+sectionId+"]").classList.add("active"):document.querySelector(".nav-submenu a[href*="+sectionId+"]").classList.remove("active")})}),void 0!==t&&null!=t){new Headroom(t,{offset:100,classes:{notTop:"headroom--not-top bg-primary shadow-sm"}}).init()}if(void 0!==e&&null!=e){new Headroom(e,{offset:100}).init()}if(void 0!==i&&null!=i){new Headroom(i,{offset:100}).init()}},this.init()}window.addEventListener("load",function(){new t})}()