Kryukov_A.I_PIbd-21_IP/lab_3/dist/assets/mainPage-9f6cc184.js
Алексей Крюков 2bde88b3c7 лаба 3
2023-12-22 06:24:28 +04:00

62 lines
109 KiB
JavaScript

/* empty css */(function(){const i=document.createElement("link").relList;if(i&&i.supports&&i.supports("modulepreload"))return;for(const c of document.querySelectorAll('link[rel="modulepreload"]'))u(c);new MutationObserver(c=>{for(const f of c)if(f.type==="childList")for(const E of f.addedNodes)E.tagName==="LINK"&&E.rel==="modulepreload"&&u(E)}).observe(document,{childList:!0,subtree:!0});function r(c){const f={};return c.integrity&&(f.integrity=c.integrity),c.referrerPolicy&&(f.referrerPolicy=c.referrerPolicy),c.crossOrigin==="use-credentials"?f.credentials="include":c.crossOrigin==="anonymous"?f.credentials="omit":f.credentials="same-origin",f}function u(c){if(c.ep)return;c.ep=!0;const f=r(c);fetch(c.href,f)}})();var nr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function js(n){if(n.__esModule)return n;var i=n.default;if(typeof i=="function"){var r=function u(){return this instanceof u?Reflect.construct(i,arguments,this.constructor):i.apply(this,arguments)};r.prototype=i.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(n).forEach(function(u){var c=Object.getOwnPropertyDescriptor(n,u);Object.defineProperty(r,u,c.get?c:{enumerable:!0,get:function(){return n[u]}})}),r}var Yn={exports:{}};(function(n,i){(function(r,u){u(i)})(nr,function(r){function u(l){if(l==null)return window;if(l.toString()!=="[object Window]"){var a=l.ownerDocument;return a&&a.defaultView||window}return l}function c(l){return l instanceof u(l).Element||l instanceof Element}function f(l){return l instanceof u(l).HTMLElement||l instanceof HTMLElement}function E(l){return typeof ShadowRoot<"u"&&(l instanceof u(l).ShadowRoot||l instanceof ShadowRoot)}var g=Math.max,_=Math.min,C=Math.round;function y(){var l=navigator.userAgentData;return l!=null&&l.brands&&Array.isArray(l.brands)?l.brands.map(function(a){return a.brand+"/"+a.version}).join(" "):navigator.userAgent}function B(){return!/^((?!chrome|android).)*safari/i.test(y())}function H(l,a,d){a===void 0&&(a=!1),d===void 0&&(d=!1);var h=l.getBoundingClientRect(),O=1,v=1;a&&f(l)&&(O=l.offsetWidth>0&&C(h.width)/l.offsetWidth||1,v=l.offsetHeight>0&&C(h.height)/l.offsetHeight||1);var A=(c(l)?u(l):window).visualViewport,b=!B()&&d,w=(h.left+(b&&A?A.offsetLeft:0))/O,L=(h.top+(b&&A?A.offsetTop:0))/v,D=h.width/O,T=h.height/v;return{width:D,height:T,top:L,right:w+D,bottom:L+T,left:w,x:w,y:L}}function P(l){var a=u(l);return{scrollLeft:a.pageXOffset,scrollTop:a.pageYOffset}}function z(l){return l?(l.nodeName||"").toLowerCase():null}function I(l){return((c(l)?l.ownerDocument:l.document)||window.document).documentElement}function R(l){return H(I(l)).left+P(l).scrollLeft}function V(l){return u(l).getComputedStyle(l)}function se(l){var a=V(l),d=a.overflow,h=a.overflowX,O=a.overflowY;return/auto|scroll|overlay|hidden/.test(d+O+h)}function U(l,a,d){d===void 0&&(d=!1);var h,O,v=f(a),A=f(a)&&function(T){var Z=T.getBoundingClientRect(),W=C(Z.width)/T.offsetWidth||1,q=C(Z.height)/T.offsetHeight||1;return W!==1||q!==1}(a),b=I(a),w=H(l,A,d),L={scrollLeft:0,scrollTop:0},D={x:0,y:0};return(v||!v&&!d)&&((z(a)!=="body"||se(b))&&(L=(h=a)!==u(h)&&f(h)?{scrollLeft:(O=h).scrollLeft,scrollTop:O.scrollTop}:P(h)),f(a)?((D=H(a,!0)).x+=a.clientLeft,D.y+=a.clientTop):b&&(D.x=R(b))),{x:w.left+L.scrollLeft-D.x,y:w.top+L.scrollTop-D.y,width:w.width,height:w.height}}function S(l){var a=H(l),d=l.offsetWidth,h=l.offsetHeight;return Math.abs(a.width-d)<=1&&(d=a.width),Math.abs(a.height-h)<=1&&(h=a.height),{x:l.offsetLeft,y:l.offsetTop,width:d,height:h}}function j(l){return z(l)==="html"?l:l.assignedSlot||l.parentNode||(E(l)?l.host:null)||I(l)}function G(l){return["html","body","#document"].indexOf(z(l))>=0?l.ownerDocument.body:f(l)&&se(l)?l:G(j(l))}function te(l,a){var d;a===void 0&&(a=[]);var h=G(l),O=h===((d=l.ownerDocument)==null?void 0:d.body),v=u(h),A=O?[v].concat(v.visualViewport||[],se(h)?h:[]):h,b=a.concat(A);return O?b:b.concat(te(j(A)))}function ve(l){return["table","td","th"].indexOf(z(l))>=0}function fe(l){return f(l)&&V(l).position!=="fixed"?l.offsetParent:null}function ae(l){for(var a=u(l),d=fe(l);d&&ve(d)&&V(d).position==="static";)d=fe(d);return d&&(z(d)==="html"||z(d)==="body"&&V(d).position==="static")?a:d||function(h){var O=/firefox/i.test(y());if(/Trident/i.test(y())&&f(h)&&V(h).position==="fixed")return null;var v=j(h);for(E(v)&&(v=v.host);f(v)&&["html","body"].indexOf(z(v))<0;){var A=V(v);if(A.transform!=="none"||A.perspective!=="none"||A.contain==="paint"||["transform","perspective"].indexOf(A.willChange)!==-1||O&&A.willChange==="filter"||O&&A.filter&&A.filter!=="none")return v;v=v.parentNode}return null}(l)||a}var K="top",le="bottom",ne="right",de="left",ke="auto",me=[K,le,ne,de],_e="start",Pe="end",je="viewport",$e="popper",bt=me.reduce(function(l,a){return l.concat([a+"-"+_e,a+"-"+Pe])},[]),Ke=[].concat(me,[ke]).reduce(function(l,a){return l.concat([a,a+"-"+_e,a+"-"+Pe])},[]),m=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function qe(l){var a=new Map,d=new Set,h=[];function O(v){d.add(v.name),[].concat(v.requires||[],v.requiresIfExists||[]).forEach(function(A){if(!d.has(A)){var b=a.get(A);b&&O(b)}}),h.push(v)}return l.forEach(function(v){a.set(v.name,v)}),l.forEach(function(v){d.has(v.name)||O(v)}),h}function Le(l,a){var d=a.getRootNode&&a.getRootNode();if(l.contains(a))return!0;if(d&&E(d)){var h=a;do{if(h&&l.isSameNode(h))return!0;h=h.parentNode||h.host}while(h)}return!1}function Ie(l){return Object.assign({},l,{left:l.x,top:l.y,right:l.x+l.width,bottom:l.y+l.height})}function ye(l,a,d){return a===je?Ie(function(h,O){var v=u(h),A=I(h),b=v.visualViewport,w=A.clientWidth,L=A.clientHeight,D=0,T=0;if(b){w=b.width,L=b.height;var Z=B();(Z||!Z&&O==="fixed")&&(D=b.offsetLeft,T=b.offsetTop)}return{width:w,height:L,x:D+R(h),y:T}}(l,d)):c(a)?function(h,O){var v=H(h,!1,O==="fixed");return v.top=v.top+h.clientTop,v.left=v.left+h.clientLeft,v.bottom=v.top+h.clientHeight,v.right=v.left+h.clientWidth,v.width=h.clientWidth,v.height=h.clientHeight,v.x=v.left,v.y=v.top,v}(a,d):Ie(function(h){var O,v=I(h),A=P(h),b=(O=h.ownerDocument)==null?void 0:O.body,w=g(v.scrollWidth,v.clientWidth,b?b.scrollWidth:0,b?b.clientWidth:0),L=g(v.scrollHeight,v.clientHeight,b?b.scrollHeight:0,b?b.clientHeight:0),D=-A.scrollLeft+R(h),T=-A.scrollTop;return V(b||v).direction==="rtl"&&(D+=g(v.clientWidth,b?b.clientWidth:0)-w),{width:w,height:L,x:D,y:T}}(I(l)))}function Oe(l,a,d,h){var O=a==="clippingParents"?function(w){var L=te(j(w)),D=["absolute","fixed"].indexOf(V(w).position)>=0&&f(w)?ae(w):w;return c(D)?L.filter(function(T){return c(T)&&Le(T,D)&&z(T)!=="body"}):[]}(l):[].concat(a),v=[].concat(O,[d]),A=v[0],b=v.reduce(function(w,L){var D=ye(l,L,h);return w.top=g(D.top,w.top),w.right=_(D.right,w.right),w.bottom=_(D.bottom,w.bottom),w.left=g(D.left,w.left),w},ye(l,A,h));return b.width=b.right-b.left,b.height=b.bottom-b.top,b.x=b.left,b.y=b.top,b}function ce(l){return l.split("-")[0]}function Xe(l){return l.split("-")[1]}function $(l){return["top","bottom"].indexOf(l)>=0?"x":"y"}function lt(l){var a,d=l.reference,h=l.element,O=l.placement,v=O?ce(O):null,A=O?Xe(O):null,b=d.x+d.width/2-h.width/2,w=d.y+d.height/2-h.height/2;switch(v){case K:a={x:b,y:d.y-h.height};break;case le:a={x:b,y:d.y+d.height};break;case ne:a={x:d.x+d.width,y:w};break;case de:a={x:d.x-h.width,y:w};break;default:a={x:d.x,y:d.y}}var L=v?$(v):null;if(L!=null){var D=L==="y"?"height":"width";switch(A){case _e:a[L]=a[L]-(d[D]/2-h[D]/2);break;case Pe:a[L]=a[L]+(d[D]/2-h[D]/2)}}return a}function yt(l){return Object.assign({},{top:0,right:0,bottom:0,left:0},l)}function Ft(l,a){return a.reduce(function(d,h){return d[h]=l,d},{})}function nt(l,a){a===void 0&&(a={});var d=a,h=d.placement,O=h===void 0?l.placement:h,v=d.strategy,A=v===void 0?l.strategy:v,b=d.boundary,w=b===void 0?"clippingParents":b,L=d.rootBoundary,D=L===void 0?je:L,T=d.elementContext,Z=T===void 0?$e:T,W=d.altBoundary,q=W!==void 0&&W,X=d.padding,M=X===void 0?0:X,oe=yt(typeof M!="number"?M:Ft(M,me)),ue=Z===$e?"reference":$e,J=l.rects.popper,re=l.elements[q?ue:Z],F=Oe(c(re)?re:re.contextElement||I(l.elements.popper),w,D,A),N=H(l.elements.reference),ie=lt({reference:N,element:J,strategy:"absolute",placement:O}),Y=Ie(Object.assign({},J,ie)),ee=Z===$e?Y:N,he={top:F.top-ee.top+oe.top,bottom:ee.bottom-F.bottom+oe.bottom,left:F.left-ee.left+oe.left,right:ee.right-F.right+oe.right},be=l.modifiersData.offset;if(Z===$e&&be){var Be=be[O];Object.keys(he).forEach(function(He){var Je=[ne,le].indexOf(He)>=0?1:-1,Ue=[K,le].indexOf(He)>=0?"y":"x";he[He]+=Be[Ue]*Je})}return he}var Qe={placement:"bottom",modifiers:[],strategy:"absolute"};function wt(){for(var l=arguments.length,a=new Array(l),d=0;d<l;d++)a[d]=arguments[d];return!a.some(function(h){return!(h&&typeof h.getBoundingClientRect=="function")})}function Ge(l){l===void 0&&(l={});var a=l,d=a.defaultModifiers,h=d===void 0?[]:d,O=a.defaultOptions,v=O===void 0?Qe:O;return function(A,b,w){w===void 0&&(w=v);var L,D,T={placement:"bottom",orderedModifiers:[],options:Object.assign({},Qe,v),modifiersData:{},elements:{reference:A,popper:b},attributes:{},styles:{}},Z=[],W=!1,q={state:T,setOptions:function(M){var oe=typeof M=="function"?M(T.options):M;X(),T.options=Object.assign({},v,T.options,oe),T.scrollParents={reference:c(A)?te(A):A.contextElement?te(A.contextElement):[],popper:te(b)};var ue,J,re=function(F){var N=qe(F);return m.reduce(function(ie,Y){return ie.concat(N.filter(function(ee){return ee.phase===Y}))},[])}((ue=[].concat(h,T.options.modifiers),J=ue.reduce(function(F,N){var ie=F[N.name];return F[N.name]=ie?Object.assign({},ie,N,{options:Object.assign({},ie.options,N.options),data:Object.assign({},ie.data,N.data)}):N,F},{}),Object.keys(J).map(function(F){return J[F]})));return T.orderedModifiers=re.filter(function(F){return F.enabled}),T.orderedModifiers.forEach(function(F){var N=F.name,ie=F.options,Y=ie===void 0?{}:ie,ee=F.effect;if(typeof ee=="function"){var he=ee({state:T,name:N,instance:q,options:Y}),be=function(){};Z.push(he||be)}}),q.update()},forceUpdate:function(){if(!W){var M=T.elements,oe=M.reference,ue=M.popper;if(wt(oe,ue)){T.rects={reference:U(oe,ae(ue),T.options.strategy==="fixed"),popper:S(ue)},T.reset=!1,T.placement=T.options.placement,T.orderedModifiers.forEach(function(ee){return T.modifiersData[ee.name]=Object.assign({},ee.data)});for(var J=0;J<T.orderedModifiers.length;J++)if(T.reset!==!0){var re=T.orderedModifiers[J],F=re.fn,N=re.options,ie=N===void 0?{}:N,Y=re.name;typeof F=="function"&&(T=F({state:T,options:ie,name:Y,instance:q})||T)}else T.reset=!1,J=-1}}},update:(L=function(){return new Promise(function(M){q.forceUpdate(),M(T)})},function(){return D||(D=new Promise(function(M){Promise.resolve().then(function(){D=void 0,M(L())})})),D}),destroy:function(){X(),W=!0}};if(!wt(A,b))return q;function X(){Z.forEach(function(M){return M()}),Z=[]}return q.setOptions(w).then(function(M){!W&&w.onFirstUpdate&&w.onFirstUpdate(M)}),q}}var Me={passive:!0},Ne={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(l){var a=l.state,d=l.instance,h=l.options,O=h.scroll,v=O===void 0||O,A=h.resize,b=A===void 0||A,w=u(a.elements.popper),L=[].concat(a.scrollParents.reference,a.scrollParents.popper);return v&&L.forEach(function(D){D.addEventListener("scroll",d.update,Me)}),b&&w.addEventListener("resize",d.update,Me),function(){v&&L.forEach(function(D){D.removeEventListener("scroll",d.update,Me)}),b&&w.removeEventListener("resize",d.update,Me)}},data:{}},rt={name:"popperOffsets",enabled:!0,phase:"read",fn:function(l){var a=l.state,d=l.name;a.modifiersData[d]=lt({reference:a.rects.reference,element:a.rects.popper,strategy:"absolute",placement:a.placement})},data:{}},Wt={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Ct(l){var a,d=l.popper,h=l.popperRect,O=l.placement,v=l.variation,A=l.offsets,b=l.position,w=l.gpuAcceleration,L=l.adaptive,D=l.roundOffsets,T=l.isFixed,Z=A.x,W=Z===void 0?0:Z,q=A.y,X=q===void 0?0:q,M=typeof D=="function"?D({x:W,y:X}):{x:W,y:X};W=M.x,X=M.y;var oe=A.hasOwnProperty("x"),ue=A.hasOwnProperty("y"),J=de,re=K,F=window;if(L){var N=ae(d),ie="clientHeight",Y="clientWidth";N===u(d)&&V(N=I(d)).position!=="static"&&b==="absolute"&&(ie="scrollHeight",Y="scrollWidth"),N=N,(O===K||(O===de||O===ne)&&v===Pe)&&(re=le,X-=(T&&N===F&&F.visualViewport?F.visualViewport.height:N[ie])-h.height,X*=w?1:-1),(O===de||(O===K||O===le)&&v===Pe)&&(J=ne,W-=(T&&N===F&&F.visualViewport?F.visualViewport.width:N[Y])-h.width,W*=w?1:-1)}var ee,he=Object.assign({position:b},L&&Wt),be=D===!0?function(Be,He){var Je=Be.x,Ue=Be.y,ge=He.devicePixelRatio||1;return{x:C(Je*ge)/ge||0,y:C(Ue*ge)/ge||0}}({x:W,y:X},u(d)):{x:W,y:X};return W=be.x,X=be.y,w?Object.assign({},he,((ee={})[re]=ue?"0":"",ee[J]=oe?"0":"",ee.transform=(F.devicePixelRatio||1)<=1?"translate("+W+"px, "+X+"px)":"translate3d("+W+"px, "+X+"px, 0)",ee)):Object.assign({},he,((a={})[re]=ue?X+"px":"",a[J]=oe?W+"px":"",a.transform="",a))}var ct={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(l){var a=l.state,d=l.options,h=d.gpuAcceleration,O=h===void 0||h,v=d.adaptive,A=v===void 0||v,b=d.roundOffsets,w=b===void 0||b,L={placement:ce(a.placement),variation:Xe(a.placement),popper:a.elements.popper,popperRect:a.rects.popper,gpuAcceleration:O,isFixed:a.options.strategy==="fixed"};a.modifiersData.popperOffsets!=null&&(a.styles.popper=Object.assign({},a.styles.popper,Ct(Object.assign({},L,{offsets:a.modifiersData.popperOffsets,position:a.options.strategy,adaptive:A,roundOffsets:w})))),a.modifiersData.arrow!=null&&(a.styles.arrow=Object.assign({},a.styles.arrow,Ct(Object.assign({},L,{offsets:a.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:w})))),a.attributes.popper=Object.assign({},a.attributes.popper,{"data-popper-placement":a.placement})},data:{}},Et={name:"applyStyles",enabled:!0,phase:"write",fn:function(l){var a=l.state;Object.keys(a.elements).forEach(function(d){var h=a.styles[d]||{},O=a.attributes[d]||{},v=a.elements[d];f(v)&&z(v)&&(Object.assign(v.style,h),Object.keys(O).forEach(function(A){var b=O[A];b===!1?v.removeAttribute(A):v.setAttribute(A,b===!0?"":b)}))})},effect:function(l){var a=l.state,d={popper:{position:a.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(a.elements.popper.style,d.popper),a.styles=d,a.elements.arrow&&Object.assign(a.elements.arrow.style,d.arrow),function(){Object.keys(a.elements).forEach(function(h){var O=a.elements[h],v=a.attributes[h]||{},A=Object.keys(a.styles.hasOwnProperty(h)?a.styles[h]:d[h]).reduce(function(b,w){return b[w]="",b},{});f(O)&&z(O)&&(Object.assign(O.style,A),Object.keys(v).forEach(function(b){O.removeAttribute(b)}))})}},requires:["computeStyles"]},kt={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(l){var a=l.state,d=l.options,h=l.name,O=d.offset,v=O===void 0?[0,0]:O,A=Ke.reduce(function(D,T){return D[T]=function(Z,W,q){var X=ce(Z),M=[de,K].indexOf(X)>=0?-1:1,oe=typeof q=="function"?q(Object.assign({},W,{placement:Z})):q,ue=oe[0],J=oe[1];return ue=ue||0,J=(J||0)*M,[de,ne].indexOf(X)>=0?{x:J,y:ue}:{x:ue,y:J}}(T,a.rects,v),D},{}),b=A[a.placement],w=b.x,L=b.y;a.modifiersData.popperOffsets!=null&&(a.modifiersData.popperOffsets.x+=w,a.modifiersData.popperOffsets.y+=L),a.modifiersData[h]=A}},ut={left:"right",right:"left",bottom:"top",top:"bottom"};function we(l){return l.replace(/left|right|bottom|top/g,function(a){return ut[a]})}var yi={start:"end",end:"start"};function xt(l){return l.replace(/start|end/g,function(a){return yi[a]})}function Ot(l,a){a===void 0&&(a={});var d=a,h=d.placement,O=d.boundary,v=d.rootBoundary,A=d.padding,b=d.flipVariations,w=d.allowedAutoPlacements,L=w===void 0?Ke:w,D=Xe(h),T=D?b?bt:bt.filter(function(q){return Xe(q)===D}):me,Z=T.filter(function(q){return L.indexOf(q)>=0});Z.length===0&&(Z=T);var W=Z.reduce(function(q,X){return q[X]=nt(l,{placement:X,boundary:O,rootBoundary:v,padding:A})[ce(X)],q},{});return Object.keys(W).sort(function(q,X){return W[q]-W[X]})}var dt={name:"flip",enabled:!0,phase:"main",fn:function(l){var a=l.state,d=l.options,h=l.name;if(!a.modifiersData[h]._skip){for(var O=d.mainAxis,v=O===void 0||O,A=d.altAxis,b=A===void 0||A,w=d.fallbackPlacements,L=d.padding,D=d.boundary,T=d.rootBoundary,Z=d.altBoundary,W=d.flipVariations,q=W===void 0||W,X=d.allowedAutoPlacements,M=a.options.placement,oe=ce(M),ue=w||(oe===M||!q?[we(M)]:function(Re){if(ce(Re)===ke)return[];var Ee=we(Re);return[xt(Re),Ee,xt(Ee)]}(M)),J=[M].concat(ue).reduce(function(Re,Ee){return Re.concat(ce(Ee)===ke?Ot(a,{placement:Ee,boundary:D,rootBoundary:T,padding:L,flipVariations:q,allowedAutoPlacements:X}):Ee)},[]),re=a.rects.reference,F=a.rects.popper,N=new Map,ie=!0,Y=J[0],ee=0;ee<J.length;ee++){var he=J[ee],be=ce(he),Be=Xe(he)===_e,He=[K,le].indexOf(be)>=0,Je=He?"width":"height",Ue=nt(a,{placement:he,boundary:D,rootBoundary:T,altBoundary:Z,padding:L}),ge=He?Be?ne:de:Be?le:K;re[Je]>F[Je]&&(ge=we(ge));var Ze=we(ge),ft=[];if(v&&ft.push(Ue[be]<=0),b&&ft.push(Ue[ge]<=0,Ue[Ze]<=0),ft.every(function(Re){return Re})){Y=he,ie=!1;break}N.set(he,ft)}if(ie)for(var et=function(Re){var Ee=J.find(function(Vt){var qt=N.get(Vt);if(qt)return qt.slice(0,Re).every(function(Xt){return Xt})});if(Ee)return Y=Ee,"break"},De=q?3:1;De>0&&et(De)!=="break";De--);a.placement!==Y&&(a.modifiersData[h]._skip=!0,a.placement=Y,a.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function st(l,a,d){return g(l,_(a,d))}var wi={name:"preventOverflow",enabled:!0,phase:"main",fn:function(l){var a=l.state,d=l.options,h=l.name,O=d.mainAxis,v=O===void 0||O,A=d.altAxis,b=A!==void 0&&A,w=d.boundary,L=d.rootBoundary,D=d.altBoundary,T=d.padding,Z=d.tether,W=Z===void 0||Z,q=d.tetherOffset,X=q===void 0?0:q,M=nt(a,{boundary:w,rootBoundary:L,padding:T,altBoundary:D}),oe=ce(a.placement),ue=Xe(a.placement),J=!ue,re=$(oe),F=re==="x"?"y":"x",N=a.modifiersData.popperOffsets,ie=a.rects.reference,Y=a.rects.popper,ee=typeof X=="function"?X(Object.assign({},a.rects,{placement:a.placement})):X,he=typeof ee=="number"?{mainAxis:ee,altAxis:ee}:Object.assign({mainAxis:0,altAxis:0},ee),be=a.modifiersData.offset?a.modifiersData.offset[a.placement]:null,Be={x:0,y:0};if(N){if(v){var He,Je=re==="y"?K:de,Ue=re==="y"?le:ne,ge=re==="y"?"height":"width",Ze=N[re],ft=Ze+M[Je],et=Ze-M[Ue],De=W?-Y[ge]/2:0,Re=ue===_e?ie[ge]:Y[ge],Ee=ue===_e?-Y[ge]:-ie[ge],Vt=a.elements.arrow,qt=W&&Vt?S(Vt):{width:0,height:0},Xt=a.modifiersData["arrow#persistent"]?a.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},Ti=Xt[Je],Ci=Xt[Ue],Ut=st(0,ie[ge],qt[ge]),Ki=J?ie[ge]/2-De-Ut-Ti-he.mainAxis:Re-Ut-Ti-he.mainAxis,Qi=J?-ie[ge]/2+De+Ut+Ci+he.mainAxis:Ee+Ut+Ci+he.mainAxis,Ae=a.elements.arrow&&ae(a.elements.arrow),ki=Ae?re==="y"?Ae.clientTop||0:Ae.clientLeft||0:0,si=(He=be==null?void 0:be[re])!=null?He:0,$i=Ze+Qi-si,Li=st(W?_(ft,Ze+Ki-si-ki):ft,Ze,W?g(et,$i):et);N[re]=Li,Be[re]=Li-Ze}if(b){var Di,Si=re==="x"?K:de,Yt=re==="x"?le:ne,ht=N[F],Kt=F==="y"?"height":"width",oi=ht+M[Si],Pi=ht-M[Yt],ai=[K,de].indexOf(oe)!==-1,li=(Di=be==null?void 0:be[F])!=null?Di:0,ci=ai?oi:ht-ie[Kt]-Y[Kt]-li+he.altAxis,ui=ai?ht+ie[Kt]+Y[Kt]-li-he.altAxis:Pi,$t=W&&ai?function(ji,di,xe){var Ii=st(ji,di,xe);return Ii>xe?xe:Ii}(ci,ht,ui):st(W?ci:oi,ht,W?ui:Pi);N[F]=$t,Be[F]=$t-ht}a.modifiersData[h]=Be}},requiresIfExists:["offset"]},zt={name:"arrow",enabled:!0,phase:"main",fn:function(l){var a,d=l.state,h=l.name,O=l.options,v=d.elements.arrow,A=d.modifiersData.popperOffsets,b=ce(d.placement),w=$(b),L=[de,ne].indexOf(b)>=0?"height":"width";if(v&&A){var D=function(Y,ee){return yt(typeof(Y=typeof Y=="function"?Y(Object.assign({},ee.rects,{placement:ee.placement})):Y)!="number"?Y:Ft(Y,me))}(O.padding,d),T=S(v),Z=w==="y"?K:de,W=w==="y"?le:ne,q=d.rects.reference[L]+d.rects.reference[w]-A[w]-d.rects.popper[L],X=A[w]-d.rects.reference[w],M=ae(v),oe=M?w==="y"?M.clientHeight||0:M.clientWidth||0:0,ue=q/2-X/2,J=D[Z],re=oe-T[L]-D[W],F=oe/2-T[L]/2+ue,N=st(J,F,re),ie=w;d.modifiersData[h]=((a={})[ie]=N,a.centerOffset=N-F,a)}},effect:function(l){var a=l.state,d=l.options.element,h=d===void 0?"[data-popper-arrow]":d;h!=null&&(typeof h!="string"||(h=a.elements.popper.querySelector(h)))&&Le(a.elements.popper,h)&&(a.elements.arrow=h)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Ei(l,a,d){return d===void 0&&(d={x:0,y:0}),{top:l.top-a.height-d.y,right:l.right-a.width+d.x,bottom:l.bottom-a.height+d.y,left:l.left-a.width-d.x}}function xi(l){return[K,ne,le,de].some(function(a){return l[a]>=0})}var Oi={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(l){var a=l.state,d=l.name,h=a.rects.reference,O=a.rects.popper,v=a.modifiersData.preventOverflow,A=nt(a,{elementContext:"reference"}),b=nt(a,{altBoundary:!0}),w=Ei(A,h),L=Ei(b,O,v),D=xi(w),T=xi(L);a.modifiersData[d]={referenceClippingOffsets:w,popperEscapeOffsets:L,isReferenceHidden:D,hasPopperEscaped:T},a.attributes.popper=Object.assign({},a.attributes.popper,{"data-popper-reference-hidden":D,"data-popper-escaped":T})}},Ui=Ge({defaultModifiers:[Ne,rt,ct,Et]}),Ai=[Ne,rt,ct,Et,kt,dt,wi,zt,Oi],Yi=Ge({defaultModifiers:Ai});r.applyStyles=Et,r.arrow=zt,r.computeStyles=ct,r.createPopper=Yi,r.createPopperLite=Ui,r.defaultModifiers=Ai,r.detectOverflow=nt,r.eventListeners=Ne,r.flip=dt,r.hide=Oi,r.offset=kt,r.popperGenerator=Ge,r.popperOffsets=rt,r.preventOverflow=wi,Object.defineProperty(r,"__esModule",{value:!0})})})(Yn,Yn.exports);var Is={exports:{}},Te="top",We="bottom",ze="right",Ce="left",Vi="auto",ri=[Te,We,ze,Ce],Ht="start",Jt="end",rr="clippingParents",dn="viewport",Gt="popper",sr="reference",an=ri.reduce(function(n,i){return n.concat([i+"-"+Ht,i+"-"+Jt])},[]),fn=[].concat(ri,[Vi]).reduce(function(n,i){return n.concat([i,i+"-"+Ht,i+"-"+Jt])},[]),or="beforeRead",ar="read",lr="afterRead",cr="beforeMain",ur="main",dr="afterMain",fr="beforeWrite",hr="write",pr="afterWrite",mr=[or,ar,lr,cr,ur,dr,fr,hr,pr];function at(n){return n?(n.nodeName||"").toLowerCase():null}function Ve(n){if(n==null)return window;if(n.toString()!=="[object Window]"){var i=n.ownerDocument;return i&&i.defaultView||window}return n}function Rt(n){var i=Ve(n).Element;return n instanceof i||n instanceof Element}function Ye(n){var i=Ve(n).HTMLElement;return n instanceof i||n instanceof HTMLElement}function hn(n){if(typeof ShadowRoot>"u")return!1;var i=Ve(n).ShadowRoot;return n instanceof i||n instanceof ShadowRoot}function Ms(n){var i=n.state;Object.keys(i.elements).forEach(function(r){var u=i.styles[r]||{},c=i.attributes[r]||{},f=i.elements[r];!Ye(f)||!at(f)||(Object.assign(f.style,u),Object.keys(c).forEach(function(E){var g=c[E];g===!1?f.removeAttribute(E):f.setAttribute(E,g===!0?"":g)}))})}function Ns(n){var i=n.state,r={popper:{position:i.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(i.elements.popper.style,r.popper),i.styles=r,i.elements.arrow&&Object.assign(i.elements.arrow.style,r.arrow),function(){Object.keys(i.elements).forEach(function(u){var c=i.elements[u],f=i.attributes[u]||{},E=Object.keys(i.styles.hasOwnProperty(u)?i.styles[u]:r[u]),g=E.reduce(function(_,C){return _[C]="",_},{});!Ye(c)||!at(c)||(Object.assign(c.style,g),Object.keys(f).forEach(function(_){c.removeAttribute(_)}))})}}const pn={name:"applyStyles",enabled:!0,phase:"write",fn:Ms,effect:Ns,requires:["computeStyles"]};function ot(n){return n.split("-")[0]}var Bt=Math.max,zi=Math.min,Zt=Math.round;function ln(){var n=navigator.userAgentData;return n!=null&&n.brands&&Array.isArray(n.brands)?n.brands.map(function(i){return i.brand+"/"+i.version}).join(" "):navigator.userAgent}function gr(){return!/^((?!chrome|android).)*safari/i.test(ln())}function ei(n,i,r){i===void 0&&(i=!1),r===void 0&&(r=!1);var u=n.getBoundingClientRect(),c=1,f=1;i&&Ye(n)&&(c=n.offsetWidth>0&&Zt(u.width)/n.offsetWidth||1,f=n.offsetHeight>0&&Zt(u.height)/n.offsetHeight||1);var E=Rt(n)?Ve(n):window,g=E.visualViewport,_=!gr()&&r,C=(u.left+(_&&g?g.offsetLeft:0))/c,y=(u.top+(_&&g?g.offsetTop:0))/f,B=u.width/c,H=u.height/f;return{width:B,height:H,top:y,right:C+B,bottom:y+H,left:C,x:C,y}}function mn(n){var i=ei(n),r=n.offsetWidth,u=n.offsetHeight;return Math.abs(i.width-r)<=1&&(r=i.width),Math.abs(i.height-u)<=1&&(u=i.height),{x:n.offsetLeft,y:n.offsetTop,width:r,height:u}}function vr(n,i){var r=i.getRootNode&&i.getRootNode();if(n.contains(i))return!0;if(r&&hn(r)){var u=i;do{if(u&&n.isSameNode(u))return!0;u=u.parentNode||u.host}while(u)}return!1}function _t(n){return Ve(n).getComputedStyle(n)}function Bs(n){return["table","td","th"].indexOf(at(n))>=0}function Tt(n){return((Rt(n)?n.ownerDocument:n.document)||window.document).documentElement}function qi(n){return at(n)==="html"?n:n.assignedSlot||n.parentNode||(hn(n)?n.host:null)||Tt(n)}function Kn(n){return!Ye(n)||_t(n).position==="fixed"?null:n.offsetParent}function Hs(n){var i=/firefox/i.test(ln()),r=/Trident/i.test(ln());if(r&&Ye(n)){var u=_t(n);if(u.position==="fixed")return null}var c=qi(n);for(hn(c)&&(c=c.host);Ye(c)&&["html","body"].indexOf(at(c))<0;){var f=_t(c);if(f.transform!=="none"||f.perspective!=="none"||f.contain==="paint"||["transform","perspective"].indexOf(f.willChange)!==-1||i&&f.willChange==="filter"||i&&f.filter&&f.filter!=="none")return c;c=c.parentNode}return null}function bi(n){for(var i=Ve(n),r=Kn(n);r&&Bs(r)&&_t(r).position==="static";)r=Kn(r);return r&&(at(r)==="html"||at(r)==="body"&&_t(r).position==="static")?i:r||Hs(n)||i}function gn(n){return["top","bottom"].indexOf(n)>=0?"x":"y"}function vi(n,i,r){return Bt(n,zi(i,r))}function Rs(n,i,r){var u=vi(n,i,r);return u>r?r:u}function _r(){return{top:0,right:0,bottom:0,left:0}}function br(n){return Object.assign({},_r(),n)}function yr(n,i){return i.reduce(function(r,u){return r[u]=n,r},{})}var Fs=function(i,r){return i=typeof i=="function"?i(Object.assign({},r.rects,{placement:r.placement})):i,br(typeof i!="number"?i:yr(i,ri))};function Ws(n){var i,r=n.state,u=n.name,c=n.options,f=r.elements.arrow,E=r.modifiersData.popperOffsets,g=ot(r.placement),_=gn(g),C=[Ce,ze].indexOf(g)>=0,y=C?"height":"width";if(!(!f||!E)){var B=Fs(c.padding,r),H=mn(f),P=_==="y"?Te:Ce,z=_==="y"?We:ze,I=r.rects.reference[y]+r.rects.reference[_]-E[_]-r.rects.popper[y],R=E[_]-r.rects.reference[_],V=bi(f),se=V?_==="y"?V.clientHeight||0:V.clientWidth||0:0,U=I/2-R/2,S=B[P],j=se-H[y]-B[z],G=se/2-H[y]/2+U,te=vi(S,G,j),ve=_;r.modifiersData[u]=(i={},i[ve]=te,i.centerOffset=te-G,i)}}function zs(n){var i=n.state,r=n.options,u=r.element,c=u===void 0?"[data-popper-arrow]":u;c!=null&&(typeof c=="string"&&(c=i.elements.popper.querySelector(c),!c)||vr(i.elements.popper,c)&&(i.elements.arrow=c))}const wr={name:"arrow",enabled:!0,phase:"main",fn:Ws,effect:zs,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ti(n){return n.split("-")[1]}var Vs={top:"auto",right:"auto",bottom:"auto",left:"auto"};function qs(n,i){var r=n.x,u=n.y,c=i.devicePixelRatio||1;return{x:Zt(r*c)/c||0,y:Zt(u*c)/c||0}}function Qn(n){var i,r=n.popper,u=n.popperRect,c=n.placement,f=n.variation,E=n.offsets,g=n.position,_=n.gpuAcceleration,C=n.adaptive,y=n.roundOffsets,B=n.isFixed,H=E.x,P=H===void 0?0:H,z=E.y,I=z===void 0?0:z,R=typeof y=="function"?y({x:P,y:I}):{x:P,y:I};P=R.x,I=R.y;var V=E.hasOwnProperty("x"),se=E.hasOwnProperty("y"),U=Ce,S=Te,j=window;if(C){var G=bi(r),te="clientHeight",ve="clientWidth";if(G===Ve(r)&&(G=Tt(r),_t(G).position!=="static"&&g==="absolute"&&(te="scrollHeight",ve="scrollWidth")),G=G,c===Te||(c===Ce||c===ze)&&f===Jt){S=We;var fe=B&&G===j&&j.visualViewport?j.visualViewport.height:G[te];I-=fe-u.height,I*=_?1:-1}if(c===Ce||(c===Te||c===We)&&f===Jt){U=ze;var ae=B&&G===j&&j.visualViewport?j.visualViewport.width:G[ve];P-=ae-u.width,P*=_?1:-1}}var K=Object.assign({position:g},C&&Vs),le=y===!0?qs({x:P,y:I},Ve(r)):{x:P,y:I};if(P=le.x,I=le.y,_){var ne;return Object.assign({},K,(ne={},ne[S]=se?"0":"",ne[U]=V?"0":"",ne.transform=(j.devicePixelRatio||1)<=1?"translate("+P+"px, "+I+"px)":"translate3d("+P+"px, "+I+"px, 0)",ne))}return Object.assign({},K,(i={},i[S]=se?I+"px":"",i[U]=V?P+"px":"",i.transform="",i))}function Xs(n){var i=n.state,r=n.options,u=r.gpuAcceleration,c=u===void 0?!0:u,f=r.adaptive,E=f===void 0?!0:f,g=r.roundOffsets,_=g===void 0?!0:g,C={placement:ot(i.placement),variation:ti(i.placement),popper:i.elements.popper,popperRect:i.rects.popper,gpuAcceleration:c,isFixed:i.options.strategy==="fixed"};i.modifiersData.popperOffsets!=null&&(i.styles.popper=Object.assign({},i.styles.popper,Qn(Object.assign({},C,{offsets:i.modifiersData.popperOffsets,position:i.options.strategy,adaptive:E,roundOffsets:_})))),i.modifiersData.arrow!=null&&(i.styles.arrow=Object.assign({},i.styles.arrow,Qn(Object.assign({},C,{offsets:i.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:_})))),i.attributes.popper=Object.assign({},i.attributes.popper,{"data-popper-placement":i.placement})}const vn={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Xs,data:{}};var Fi={passive:!0};function Us(n){var i=n.state,r=n.instance,u=n.options,c=u.scroll,f=c===void 0?!0:c,E=u.resize,g=E===void 0?!0:E,_=Ve(i.elements.popper),C=[].concat(i.scrollParents.reference,i.scrollParents.popper);return f&&C.forEach(function(y){y.addEventListener("scroll",r.update,Fi)}),g&&_.addEventListener("resize",r.update,Fi),function(){f&&C.forEach(function(y){y.removeEventListener("scroll",r.update,Fi)}),g&&_.removeEventListener("resize",r.update,Fi)}}const _n={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Us,data:{}};var Ys={left:"right",right:"left",bottom:"top",top:"bottom"};function Wi(n){return n.replace(/left|right|bottom|top/g,function(i){return Ys[i]})}var Ks={start:"end",end:"start"};function Gn(n){return n.replace(/start|end/g,function(i){return Ks[i]})}function bn(n){var i=Ve(n),r=i.pageXOffset,u=i.pageYOffset;return{scrollLeft:r,scrollTop:u}}function yn(n){return ei(Tt(n)).left+bn(n).scrollLeft}function Qs(n,i){var r=Ve(n),u=Tt(n),c=r.visualViewport,f=u.clientWidth,E=u.clientHeight,g=0,_=0;if(c){f=c.width,E=c.height;var C=gr();(C||!C&&i==="fixed")&&(g=c.offsetLeft,_=c.offsetTop)}return{width:f,height:E,x:g+yn(n),y:_}}function Gs(n){var i,r=Tt(n),u=bn(n),c=(i=n.ownerDocument)==null?void 0:i.body,f=Bt(r.scrollWidth,r.clientWidth,c?c.scrollWidth:0,c?c.clientWidth:0),E=Bt(r.scrollHeight,r.clientHeight,c?c.scrollHeight:0,c?c.clientHeight:0),g=-u.scrollLeft+yn(n),_=-u.scrollTop;return _t(c||r).direction==="rtl"&&(g+=Bt(r.clientWidth,c?c.clientWidth:0)-f),{width:f,height:E,x:g,y:_}}function wn(n){var i=_t(n),r=i.overflow,u=i.overflowX,c=i.overflowY;return/auto|scroll|overlay|hidden/.test(r+c+u)}function Er(n){return["html","body","#document"].indexOf(at(n))>=0?n.ownerDocument.body:Ye(n)&&wn(n)?n:Er(qi(n))}function _i(n,i){var r;i===void 0&&(i=[]);var u=Er(n),c=u===((r=n.ownerDocument)==null?void 0:r.body),f=Ve(u),E=c?[f].concat(f.visualViewport||[],wn(u)?u:[]):u,g=i.concat(E);return c?g:g.concat(_i(qi(E)))}function cn(n){return Object.assign({},n,{left:n.x,top:n.y,right:n.x+n.width,bottom:n.y+n.height})}function Js(n,i){var r=ei(n,!1,i==="fixed");return r.top=r.top+n.clientTop,r.left=r.left+n.clientLeft,r.bottom=r.top+n.clientHeight,r.right=r.left+n.clientWidth,r.width=n.clientWidth,r.height=n.clientHeight,r.x=r.left,r.y=r.top,r}function Jn(n,i,r){return i===dn?cn(Qs(n,r)):Rt(i)?Js(i,r):cn(Gs(Tt(n)))}function Zs(n){var i=_i(qi(n)),r=["absolute","fixed"].indexOf(_t(n).position)>=0,u=r&&Ye(n)?bi(n):n;return Rt(u)?i.filter(function(c){return Rt(c)&&vr(c,u)&&at(c)!=="body"}):[]}function eo(n,i,r,u){var c=i==="clippingParents"?Zs(n):[].concat(i),f=[].concat(c,[r]),E=f[0],g=f.reduce(function(_,C){var y=Jn(n,C,u);return _.top=Bt(y.top,_.top),_.right=zi(y.right,_.right),_.bottom=zi(y.bottom,_.bottom),_.left=Bt(y.left,_.left),_},Jn(n,E,u));return g.width=g.right-g.left,g.height=g.bottom-g.top,g.x=g.left,g.y=g.top,g}function xr(n){var i=n.reference,r=n.element,u=n.placement,c=u?ot(u):null,f=u?ti(u):null,E=i.x+i.width/2-r.width/2,g=i.y+i.height/2-r.height/2,_;switch(c){case Te:_={x:E,y:i.y-r.height};break;case We:_={x:E,y:i.y+i.height};break;case ze:_={x:i.x+i.width,y:g};break;case Ce:_={x:i.x-r.width,y:g};break;default:_={x:i.x,y:i.y}}var C=c?gn(c):null;if(C!=null){var y=C==="y"?"height":"width";switch(f){case Ht:_[C]=_[C]-(i[y]/2-r[y]/2);break;case Jt:_[C]=_[C]+(i[y]/2-r[y]/2);break}}return _}function ii(n,i){i===void 0&&(i={});var r=i,u=r.placement,c=u===void 0?n.placement:u,f=r.strategy,E=f===void 0?n.strategy:f,g=r.boundary,_=g===void 0?rr:g,C=r.rootBoundary,y=C===void 0?dn:C,B=r.elementContext,H=B===void 0?Gt:B,P=r.altBoundary,z=P===void 0?!1:P,I=r.padding,R=I===void 0?0:I,V=br(typeof R!="number"?R:yr(R,ri)),se=H===Gt?sr:Gt,U=n.rects.popper,S=n.elements[z?se:H],j=eo(Rt(S)?S:S.contextElement||Tt(n.elements.popper),_,y,E),G=ei(n.elements.reference),te=xr({reference:G,element:U,strategy:"absolute",placement:c}),ve=cn(Object.assign({},U,te)),fe=H===Gt?ve:G,ae={top:j.top-fe.top+V.top,bottom:fe.bottom-j.bottom+V.bottom,left:j.left-fe.left+V.left,right:fe.right-j.right+V.right},K=n.modifiersData.offset;if(H===Gt&&K){var le=K[c];Object.keys(ae).forEach(function(ne){var de=[ze,We].indexOf(ne)>=0?1:-1,ke=[Te,We].indexOf(ne)>=0?"y":"x";ae[ne]+=le[ke]*de})}return ae}function to(n,i){i===void 0&&(i={});var r=i,u=r.placement,c=r.boundary,f=r.rootBoundary,E=r.padding,g=r.flipVariations,_=r.allowedAutoPlacements,C=_===void 0?fn:_,y=ti(u),B=y?g?an:an.filter(function(z){return ti(z)===y}):ri,H=B.filter(function(z){return C.indexOf(z)>=0});H.length===0&&(H=B);var P=H.reduce(function(z,I){return z[I]=ii(n,{placement:I,boundary:c,rootBoundary:f,padding:E})[ot(I)],z},{});return Object.keys(P).sort(function(z,I){return P[z]-P[I]})}function io(n){if(ot(n)===Vi)return[];var i=Wi(n);return[Gn(n),i,Gn(i)]}function no(n){var i=n.state,r=n.options,u=n.name;if(!i.modifiersData[u]._skip){for(var c=r.mainAxis,f=c===void 0?!0:c,E=r.altAxis,g=E===void 0?!0:E,_=r.fallbackPlacements,C=r.padding,y=r.boundary,B=r.rootBoundary,H=r.altBoundary,P=r.flipVariations,z=P===void 0?!0:P,I=r.allowedAutoPlacements,R=i.options.placement,V=ot(R),se=V===R,U=_||(se||!z?[Wi(R)]:io(R)),S=[R].concat(U).reduce(function(qe,Le){return qe.concat(ot(Le)===Vi?to(i,{placement:Le,boundary:y,rootBoundary:B,padding:C,flipVariations:z,allowedAutoPlacements:I}):Le)},[]),j=i.rects.reference,G=i.rects.popper,te=new Map,ve=!0,fe=S[0],ae=0;ae<S.length;ae++){var K=S[ae],le=ot(K),ne=ti(K)===Ht,de=[Te,We].indexOf(le)>=0,ke=de?"width":"height",me=ii(i,{placement:K,boundary:y,rootBoundary:B,altBoundary:H,padding:C}),_e=de?ne?ze:Ce:ne?We:Te;j[ke]>G[ke]&&(_e=Wi(_e));var Pe=Wi(_e),je=[];if(f&&je.push(me[le]<=0),g&&je.push(me[_e]<=0,me[Pe]<=0),je.every(function(qe){return qe})){fe=K,ve=!1;break}te.set(K,je)}if(ve)for(var $e=z?3:1,bt=function(Le){var Ie=S.find(function(ye){var Oe=te.get(ye);if(Oe)return Oe.slice(0,Le).every(function(ce){return ce})});if(Ie)return fe=Ie,"break"},Ke=$e;Ke>0;Ke--){var m=bt(Ke);if(m==="break")break}i.placement!==fe&&(i.modifiersData[u]._skip=!0,i.placement=fe,i.reset=!0)}}const Or={name:"flip",enabled:!0,phase:"main",fn:no,requiresIfExists:["offset"],data:{_skip:!1}};function Zn(n,i,r){return r===void 0&&(r={x:0,y:0}),{top:n.top-i.height-r.y,right:n.right-i.width+r.x,bottom:n.bottom-i.height+r.y,left:n.left-i.width-r.x}}function er(n){return[Te,ze,We,Ce].some(function(i){return n[i]>=0})}function ro(n){var i=n.state,r=n.name,u=i.rects.reference,c=i.rects.popper,f=i.modifiersData.preventOverflow,E=ii(i,{elementContext:"reference"}),g=ii(i,{altBoundary:!0}),_=Zn(E,u),C=Zn(g,c,f),y=er(_),B=er(C);i.modifiersData[r]={referenceClippingOffsets:_,popperEscapeOffsets:C,isReferenceHidden:y,hasPopperEscaped:B},i.attributes.popper=Object.assign({},i.attributes.popper,{"data-popper-reference-hidden":y,"data-popper-escaped":B})}const Ar={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:ro};function so(n,i,r){var u=ot(n),c=[Ce,Te].indexOf(u)>=0?-1:1,f=typeof r=="function"?r(Object.assign({},i,{placement:n})):r,E=f[0],g=f[1];return E=E||0,g=(g||0)*c,[Ce,ze].indexOf(u)>=0?{x:g,y:E}:{x:E,y:g}}function oo(n){var i=n.state,r=n.options,u=n.name,c=r.offset,f=c===void 0?[0,0]:c,E=fn.reduce(function(y,B){return y[B]=so(B,i.rects,f),y},{}),g=E[i.placement],_=g.x,C=g.y;i.modifiersData.popperOffsets!=null&&(i.modifiersData.popperOffsets.x+=_,i.modifiersData.popperOffsets.y+=C),i.modifiersData[u]=E}const Tr={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:oo};function ao(n){var i=n.state,r=n.name;i.modifiersData[r]=xr({reference:i.rects.reference,element:i.rects.popper,strategy:"absolute",placement:i.placement})}const En={name:"popperOffsets",enabled:!0,phase:"read",fn:ao,data:{}};function lo(n){return n==="x"?"y":"x"}function co(n){var i=n.state,r=n.options,u=n.name,c=r.mainAxis,f=c===void 0?!0:c,E=r.altAxis,g=E===void 0?!1:E,_=r.boundary,C=r.rootBoundary,y=r.altBoundary,B=r.padding,H=r.tether,P=H===void 0?!0:H,z=r.tetherOffset,I=z===void 0?0:z,R=ii(i,{boundary:_,rootBoundary:C,padding:B,altBoundary:y}),V=ot(i.placement),se=ti(i.placement),U=!se,S=gn(V),j=lo(S),G=i.modifiersData.popperOffsets,te=i.rects.reference,ve=i.rects.popper,fe=typeof I=="function"?I(Object.assign({},i.rects,{placement:i.placement})):I,ae=typeof fe=="number"?{mainAxis:fe,altAxis:fe}:Object.assign({mainAxis:0,altAxis:0},fe),K=i.modifiersData.offset?i.modifiersData.offset[i.placement]:null,le={x:0,y:0};if(G){if(f){var ne,de=S==="y"?Te:Ce,ke=S==="y"?We:ze,me=S==="y"?"height":"width",_e=G[S],Pe=_e+R[de],je=_e-R[ke],$e=P?-ve[me]/2:0,bt=se===Ht?te[me]:ve[me],Ke=se===Ht?-ve[me]:-te[me],m=i.elements.arrow,qe=P&&m?mn(m):{width:0,height:0},Le=i.modifiersData["arrow#persistent"]?i.modifiersData["arrow#persistent"].padding:_r(),Ie=Le[de],ye=Le[ke],Oe=vi(0,te[me],qe[me]),ce=U?te[me]/2-$e-Oe-Ie-ae.mainAxis:bt-Oe-Ie-ae.mainAxis,Xe=U?-te[me]/2+$e+Oe+ye+ae.mainAxis:Ke+Oe+ye+ae.mainAxis,$=i.elements.arrow&&bi(i.elements.arrow),lt=$?S==="y"?$.clientTop||0:$.clientLeft||0:0,yt=(ne=K==null?void 0:K[S])!=null?ne:0,Ft=_e+ce-yt-lt,nt=_e+Xe-yt,Qe=vi(P?zi(Pe,Ft):Pe,_e,P?Bt(je,nt):je);G[S]=Qe,le[S]=Qe-_e}if(g){var wt,Ge=S==="x"?Te:Ce,Me=S==="x"?We:ze,Ne=G[j],rt=j==="y"?"height":"width",Wt=Ne+R[Ge],Ct=Ne-R[Me],ct=[Te,Ce].indexOf(V)!==-1,Et=(wt=K==null?void 0:K[j])!=null?wt:0,kt=ct?Wt:Ne-te[rt]-ve[rt]-Et+ae.altAxis,ut=ct?Ne+te[rt]+ve[rt]-Et-ae.altAxis:Ct,we=P&&ct?Rs(kt,Ne,ut):vi(P?kt:Wt,Ne,P?ut:Ct);G[j]=we,le[j]=we-Ne}i.modifiersData[u]=le}}const Cr={name:"preventOverflow",enabled:!0,phase:"main",fn:co,requiresIfExists:["offset"]};function uo(n){return{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}}function fo(n){return n===Ve(n)||!Ye(n)?bn(n):uo(n)}function ho(n){var i=n.getBoundingClientRect(),r=Zt(i.width)/n.offsetWidth||1,u=Zt(i.height)/n.offsetHeight||1;return r!==1||u!==1}function po(n,i,r){r===void 0&&(r=!1);var u=Ye(i),c=Ye(i)&&ho(i),f=Tt(i),E=ei(n,c,r),g={scrollLeft:0,scrollTop:0},_={x:0,y:0};return(u||!u&&!r)&&((at(i)!=="body"||wn(f))&&(g=fo(i)),Ye(i)?(_=ei(i,!0),_.x+=i.clientLeft,_.y+=i.clientTop):f&&(_.x=yn(f))),{x:E.left+g.scrollLeft-_.x,y:E.top+g.scrollTop-_.y,width:E.width,height:E.height}}function mo(n){var i=new Map,r=new Set,u=[];n.forEach(function(f){i.set(f.name,f)});function c(f){r.add(f.name);var E=[].concat(f.requires||[],f.requiresIfExists||[]);E.forEach(function(g){if(!r.has(g)){var _=i.get(g);_&&c(_)}}),u.push(f)}return n.forEach(function(f){r.has(f.name)||c(f)}),u}function go(n){var i=mo(n);return mr.reduce(function(r,u){return r.concat(i.filter(function(c){return c.phase===u}))},[])}function vo(n){var i;return function(){return i||(i=new Promise(function(r){Promise.resolve().then(function(){i=void 0,r(n())})})),i}}function _o(n){var i=n.reduce(function(r,u){var c=r[u.name];return r[u.name]=c?Object.assign({},c,u,{options:Object.assign({},c.options,u.options),data:Object.assign({},c.data,u.data)}):u,r},{});return Object.keys(i).map(function(r){return i[r]})}var tr={placement:"bottom",modifiers:[],strategy:"absolute"};function ir(){for(var n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];return!i.some(function(u){return!(u&&typeof u.getBoundingClientRect=="function")})}function Xi(n){n===void 0&&(n={});var i=n,r=i.defaultModifiers,u=r===void 0?[]:r,c=i.defaultOptions,f=c===void 0?tr:c;return function(g,_,C){C===void 0&&(C=f);var y={placement:"bottom",orderedModifiers:[],options:Object.assign({},tr,f),modifiersData:{},elements:{reference:g,popper:_},attributes:{},styles:{}},B=[],H=!1,P={state:y,setOptions:function(V){var se=typeof V=="function"?V(y.options):V;I(),y.options=Object.assign({},f,y.options,se),y.scrollParents={reference:Rt(g)?_i(g):g.contextElement?_i(g.contextElement):[],popper:_i(_)};var U=go(_o([].concat(u,y.options.modifiers)));return y.orderedModifiers=U.filter(function(S){return S.enabled}),z(),P.update()},forceUpdate:function(){if(!H){var V=y.elements,se=V.reference,U=V.popper;if(ir(se,U)){y.rects={reference:po(se,bi(U),y.options.strategy==="fixed"),popper:mn(U)},y.reset=!1,y.placement=y.options.placement,y.orderedModifiers.forEach(function(ae){return y.modifiersData[ae.name]=Object.assign({},ae.data)});for(var S=0;S<y.orderedModifiers.length;S++){if(y.reset===!0){y.reset=!1,S=-1;continue}var j=y.orderedModifiers[S],G=j.fn,te=j.options,ve=te===void 0?{}:te,fe=j.name;typeof G=="function"&&(y=G({state:y,options:ve,name:fe,instance:P})||y)}}}},update:vo(function(){return new Promise(function(R){P.forceUpdate(),R(y)})}),destroy:function(){I(),H=!0}};if(!ir(g,_))return P;P.setOptions(C).then(function(R){!H&&C.onFirstUpdate&&C.onFirstUpdate(R)});function z(){y.orderedModifiers.forEach(function(R){var V=R.name,se=R.options,U=se===void 0?{}:se,S=R.effect;if(typeof S=="function"){var j=S({state:y,name:V,instance:P,options:U}),G=function(){};B.push(j||G)}})}function I(){B.forEach(function(R){return R()}),B=[]}return P}}var bo=Xi(),yo=[_n,En,vn,pn],wo=Xi({defaultModifiers:yo}),Eo=[_n,En,vn,pn,Tr,Or,Cr,wr,Ar],xo=Xi({defaultModifiers:Eo});const Oo=Object.freeze(Object.defineProperty({__proto__:null,afterMain:dr,afterRead:lr,afterWrite:pr,applyStyles:pn,arrow:wr,auto:Vi,basePlacements:ri,beforeMain:cr,beforeRead:or,beforeWrite:fr,bottom:We,clippingParents:rr,computeStyles:vn,createPopper:xo,createPopperBase:bo,createPopperLite:wo,detectOverflow:ii,end:Jt,eventListeners:_n,flip:Or,hide:Ar,left:Ce,main:ur,modifierPhases:mr,offset:Tr,placements:fn,popper:Gt,popperGenerator:Xi,popperOffsets:En,preventOverflow:Cr,read:ar,reference:sr,right:ze,start:Ht,top:Te,variationPlacements:an,viewport:dn,write:hr},Symbol.toStringTag,{value:"Module"})),Ao=js(Oo);/*!
* Bootstrap v5.3.2 (https://getbootstrap.com/)
* Copyright 2011-2023 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
*/(function(n,i){(function(r,u){n.exports=u(Ao)})(nr,function(r){function u(o){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(o){for(const t in o)if(t!=="default"){const s=Object.getOwnPropertyDescriptor(o,t);Object.defineProperty(e,t,s.get?s:{enumerable:!0,get:()=>o[t]})}}return e.default=o,Object.freeze(e)}const c=u(r),f=new Map,E={set(o,e,t){f.has(o)||f.set(o,new Map);const s=f.get(o);s.has(e)||s.size===0?s.set(e,t):console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(s.keys())[0]}.`)},get:(o,e)=>f.has(o)&&f.get(o).get(e)||null,remove(o,e){if(!f.has(o))return;const t=f.get(o);t.delete(e),t.size===0&&f.delete(o)}},g="transitionend",_=o=>(o&&window.CSS&&window.CSS.escape&&(o=o.replace(/#([^\s"#']+)/g,(e,t)=>`#${CSS.escape(t)}`)),o),C=o=>{o.dispatchEvent(new Event(g))},y=o=>!(!o||typeof o!="object")&&(o.jquery!==void 0&&(o=o[0]),o.nodeType!==void 0),B=o=>y(o)?o.jquery?o[0]:o:typeof o=="string"&&o.length>0?document.querySelector(_(o)):null,H=o=>{if(!y(o)||o.getClientRects().length===0)return!1;const e=getComputedStyle(o).getPropertyValue("visibility")==="visible",t=o.closest("details:not([open])");if(!t)return e;if(t!==o){const s=o.closest("summary");if(s&&s.parentNode!==t||s===null)return!1}return e},P=o=>!o||o.nodeType!==Node.ELEMENT_NODE||!!o.classList.contains("disabled")||(o.disabled!==void 0?o.disabled:o.hasAttribute("disabled")&&o.getAttribute("disabled")!=="false"),z=o=>{if(!document.documentElement.attachShadow)return null;if(typeof o.getRootNode=="function"){const e=o.getRootNode();return e instanceof ShadowRoot?e:null}return o instanceof ShadowRoot?o:o.parentNode?z(o.parentNode):null},I=()=>{},R=o=>{o.offsetHeight},V=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,se=[],U=()=>document.documentElement.dir==="rtl",S=o=>{var e;e=()=>{const t=V();if(t){const s=o.NAME,p=t.fn[s];t.fn[s]=o.jQueryInterface,t.fn[s].Constructor=o,t.fn[s].noConflict=()=>(t.fn[s]=p,o.jQueryInterface)}},document.readyState==="loading"?(se.length||document.addEventListener("DOMContentLoaded",()=>{for(const t of se)t()}),se.push(e)):e()},j=(o,e=[],t=o)=>typeof o=="function"?o(...e):t,G=(o,e,t=!0)=>{if(!t)return void j(o);const s=(k=>{if(!k)return 0;let{transitionDuration:Q,transitionDelay:pe}=window.getComputedStyle(k);const Se=Number.parseFloat(Q),Fe=Number.parseFloat(pe);return Se||Fe?(Q=Q.split(",")[0],pe=pe.split(",")[0],1e3*(Number.parseFloat(Q)+Number.parseFloat(pe))):0})(e)+5;let p=!1;const x=({target:k})=>{k===e&&(p=!0,e.removeEventListener(g,x),j(o))};e.addEventListener(g,x),setTimeout(()=>{p||C(e)},s)},te=(o,e,t,s)=>{const p=o.length;let x=o.indexOf(e);return x===-1?!t&&s?o[p-1]:o[0]:(x+=t?1:-1,s&&(x=(x+p)%p),o[Math.max(0,Math.min(x,p-1))])},ve=/[^.]*(?=\..*)\.|.*/,fe=/\..*/,ae=/::\d+$/,K={};let le=1;const ne={mouseenter:"mouseover",mouseleave:"mouseout"},de=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 ke(o,e){return e&&`${e}::${le++}`||o.uidEvent||le++}function me(o){const e=ke(o);return o.uidEvent=e,K[e]=K[e]||{},K[e]}function _e(o,e,t=null){return Object.values(o).find(s=>s.callable===e&&s.delegationSelector===t)}function Pe(o,e,t){const s=typeof e=="string",p=s?t:e||t;let x=Ke(o);return de.has(x)||(x=o),[s,p,x]}function je(o,e,t,s,p){if(typeof e!="string"||!o)return;let[x,k,Q]=Pe(e,t,s);e in ne&&(k=(It=>function(it){if(!it.relatedTarget||it.relatedTarget!==it.delegateTarget&&!it.delegateTarget.contains(it.relatedTarget))return It.call(this,it)})(k));const pe=me(o),Se=pe[Q]||(pe[Q]={}),Fe=_e(Se,k,x?t:null);if(Fe)return void(Fe.oneOff=Fe.oneOff&&p);const tt=ke(k,e.replace(ve,"")),gt=x?function(vt,It,it){return function mi(Ri){const Ss=vt.querySelectorAll(It);for(let{target:Mt}=Ri;Mt&&Mt!==this;Mt=Mt.parentNode)for(const Ps of Ss)if(Ps===Mt)return qe(Ri,{delegateTarget:Mt}),mi.oneOff&&m.off(vt,Ri.type,It,it),it.apply(Mt,[Ri])}}(o,t,k):function(vt,It){return function it(mi){return qe(mi,{delegateTarget:vt}),it.oneOff&&m.off(vt,mi.type,It),It.apply(vt,[mi])}}(o,k);gt.delegationSelector=x?t:null,gt.callable=k,gt.oneOff=p,gt.uidEvent=tt,Se[tt]=gt,o.addEventListener(Q,gt,x)}function $e(o,e,t,s,p){const x=_e(e[t],s,p);x&&(o.removeEventListener(t,x,!!p),delete e[t][x.uidEvent])}function bt(o,e,t,s){const p=e[t]||{};for(const[x,k]of Object.entries(p))x.includes(s)&&$e(o,e,t,k.callable,k.delegationSelector)}function Ke(o){return o=o.replace(fe,""),ne[o]||o}const m={on(o,e,t,s){je(o,e,t,s,!1)},one(o,e,t,s){je(o,e,t,s,!0)},off(o,e,t,s){if(typeof e!="string"||!o)return;const[p,x,k]=Pe(e,t,s),Q=k!==e,pe=me(o),Se=pe[k]||{},Fe=e.startsWith(".");if(x===void 0){if(Fe)for(const tt of Object.keys(pe))bt(o,pe,tt,e.slice(1));for(const[tt,gt]of Object.entries(Se)){const vt=tt.replace(ae,"");Q&&!e.includes(vt)||$e(o,pe,k,gt.callable,gt.delegationSelector)}}else{if(!Object.keys(Se).length)return;$e(o,pe,k,x,p?t:null)}},trigger(o,e,t){if(typeof e!="string"||!o)return null;const s=V();let p=null,x=!0,k=!0,Q=!1;e!==Ke(e)&&s&&(p=s.Event(e,t),s(o).trigger(p),x=!p.isPropagationStopped(),k=!p.isImmediatePropagationStopped(),Q=p.isDefaultPrevented());const pe=qe(new Event(e,{bubbles:x,cancelable:!0}),t);return Q&&pe.preventDefault(),k&&o.dispatchEvent(pe),pe.defaultPrevented&&p&&p.preventDefault(),pe}};function qe(o,e={}){for(const[t,s]of Object.entries(e))try{o[t]=s}catch{Object.defineProperty(o,t,{configurable:!0,get:()=>s})}return o}function Le(o){if(o==="true")return!0;if(o==="false")return!1;if(o===Number(o).toString())return Number(o);if(o===""||o==="null")return null;if(typeof o!="string")return o;try{return JSON.parse(decodeURIComponent(o))}catch{return o}}function Ie(o){return o.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}const ye={setDataAttribute(o,e,t){o.setAttribute(`data-bs-${Ie(e)}`,t)},removeDataAttribute(o,e){o.removeAttribute(`data-bs-${Ie(e)}`)},getDataAttributes(o){if(!o)return{};const e={},t=Object.keys(o.dataset).filter(s=>s.startsWith("bs")&&!s.startsWith("bsConfig"));for(const s of t){let p=s.replace(/^bs/,"");p=p.charAt(0).toLowerCase()+p.slice(1,p.length),e[p]=Le(o.dataset[s])}return e},getDataAttribute:(o,e)=>Le(o.getAttribute(`data-bs-${Ie(e)}`))};class Oe{static get Default(){return{}}static get DefaultType(){return{}}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}_getConfig(e){return e=this._mergeConfigObj(e),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}_configAfterMerge(e){return e}_mergeConfigObj(e,t){const s=y(t)?ye.getDataAttribute(t,"config"):{};return{...this.constructor.Default,...typeof s=="object"?s:{},...y(t)?ye.getDataAttributes(t):{},...typeof e=="object"?e:{}}}_typeCheckConfig(e,t=this.constructor.DefaultType){for(const[p,x]of Object.entries(t)){const k=e[p],Q=y(k)?"element":(s=k)==null?`${s}`:Object.prototype.toString.call(s).match(/\s([a-z]+)/i)[1].toLowerCase();if(!new RegExp(x).test(Q))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${p}" provided type "${Q}" but expected type "${x}".`)}var s}}class ce extends Oe{constructor(e,t){super(),(e=B(e))&&(this._element=e,this._config=this._getConfig(t),E.set(this._element,this.constructor.DATA_KEY,this))}dispose(){E.remove(this._element,this.constructor.DATA_KEY),m.off(this._element,this.constructor.EVENT_KEY);for(const e of Object.getOwnPropertyNames(this))this[e]=null}_queueCallback(e,t,s=!0){G(e,t,s)}_getConfig(e){return e=this._mergeConfigObj(e,this._element),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}static getInstance(e){return E.get(B(e),this.DATA_KEY)}static getOrCreateInstance(e,t={}){return this.getInstance(e)||new this(e,typeof t=="object"?t:null)}static get VERSION(){return"5.3.2"}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(e){return`${e}${this.EVENT_KEY}`}}const Xe=o=>{let e=o.getAttribute("data-bs-target");if(!e||e==="#"){let t=o.getAttribute("href");if(!t||!t.includes("#")&&!t.startsWith("."))return null;t.includes("#")&&!t.startsWith("#")&&(t=`#${t.split("#")[1]}`),e=t&&t!=="#"?_(t.trim()):null}return e},$={find:(o,e=document.documentElement)=>[].concat(...Element.prototype.querySelectorAll.call(e,o)),findOne:(o,e=document.documentElement)=>Element.prototype.querySelector.call(e,o),children:(o,e)=>[].concat(...o.children).filter(t=>t.matches(e)),parents(o,e){const t=[];let s=o.parentNode.closest(e);for(;s;)t.push(s),s=s.parentNode.closest(e);return t},prev(o,e){let t=o.previousElementSibling;for(;t;){if(t.matches(e))return[t];t=t.previousElementSibling}return[]},next(o,e){let t=o.nextElementSibling;for(;t;){if(t.matches(e))return[t];t=t.nextElementSibling}return[]},focusableChildren(o){const e=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map(t=>`${t}:not([tabindex^="-"])`).join(",");return this.find(e,o).filter(t=>!P(t)&&H(t))},getSelectorFromElement(o){const e=Xe(o);return e&&$.findOne(e)?e:null},getElementFromSelector(o){const e=Xe(o);return e?$.findOne(e):null},getMultipleElementsFromSelector(o){const e=Xe(o);return e?$.find(e):[]}},lt=(o,e="hide")=>{const t=`click.dismiss${o.EVENT_KEY}`,s=o.NAME;m.on(document,t,`[data-bs-dismiss="${s}"]`,function(p){if(["A","AREA"].includes(this.tagName)&&p.preventDefault(),P(this))return;const x=$.getElementFromSelector(this)||this.closest(`.${s}`);o.getOrCreateInstance(x)[e]()})},yt=".bs.alert",Ft=`close${yt}`,nt=`closed${yt}`;class Qe extends ce{static get NAME(){return"alert"}close(){if(m.trigger(this._element,Ft).defaultPrevented)return;this._element.classList.remove("show");const e=this._element.classList.contains("fade");this._queueCallback(()=>this._destroyElement(),this._element,e)}_destroyElement(){this._element.remove(),m.trigger(this._element,nt),this.dispose()}static jQueryInterface(e){return this.each(function(){const t=Qe.getOrCreateInstance(this);if(typeof e=="string"){if(t[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);t[e](this)}})}}lt(Qe,"close"),S(Qe);const wt='[data-bs-toggle="button"]';class Ge extends ce{static get NAME(){return"button"}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle("active"))}static jQueryInterface(e){return this.each(function(){const t=Ge.getOrCreateInstance(this);e==="toggle"&&t[e]()})}}m.on(document,"click.bs.button.data-api",wt,o=>{o.preventDefault();const e=o.target.closest(wt);Ge.getOrCreateInstance(e).toggle()}),S(Ge);const Me=".bs.swipe",Ne=`touchstart${Me}`,rt=`touchmove${Me}`,Wt=`touchend${Me}`,Ct=`pointerdown${Me}`,ct=`pointerup${Me}`,Et={endCallback:null,leftCallback:null,rightCallback:null},kt={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class ut extends Oe{constructor(e,t){super(),this._element=e,e&&ut.isSupported()&&(this._config=this._getConfig(t),this._deltaX=0,this._supportPointerEvents=!!window.PointerEvent,this._initEvents())}static get Default(){return Et}static get DefaultType(){return kt}static get NAME(){return"swipe"}dispose(){m.off(this._element,Me)}_start(e){this._supportPointerEvents?this._eventIsPointerPenTouch(e)&&(this._deltaX=e.clientX):this._deltaX=e.touches[0].clientX}_end(e){this._eventIsPointerPenTouch(e)&&(this._deltaX=e.clientX-this._deltaX),this._handleSwipe(),j(this._config.endCallback)}_move(e){this._deltaX=e.touches&&e.touches.length>1?0:e.touches[0].clientX-this._deltaX}_handleSwipe(){const e=Math.abs(this._deltaX);if(e<=40)return;const t=e/this._deltaX;this._deltaX=0,t&&j(t>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(m.on(this._element,Ct,e=>this._start(e)),m.on(this._element,ct,e=>this._end(e)),this._element.classList.add("pointer-event")):(m.on(this._element,Ne,e=>this._start(e)),m.on(this._element,rt,e=>this._move(e)),m.on(this._element,Wt,e=>this._end(e)))}_eventIsPointerPenTouch(e){return this._supportPointerEvents&&(e.pointerType==="pen"||e.pointerType==="touch")}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}}const we=".bs.carousel",yi=".data-api",xt="next",Ot="prev",dt="left",st="right",wi=`slide${we}`,zt=`slid${we}`,Ei=`keydown${we}`,xi=`mouseenter${we}`,Oi=`mouseleave${we}`,Ui=`dragstart${we}`,Ai=`load${we}${yi}`,Yi=`click${we}${yi}`,l="carousel",a="active",d=".active",h=".carousel-item",O=d+h,v={ArrowLeft:st,ArrowRight:dt},A={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},b={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class w extends ce{constructor(e,t){super(e,t),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=$.findOne(".carousel-indicators",this._element),this._addEventListeners(),this._config.ride===l&&this.cycle()}static get Default(){return A}static get DefaultType(){return b}static get NAME(){return"carousel"}next(){this._slide(xt)}nextWhenVisible(){!document.hidden&&H(this._element)&&this.next()}prev(){this._slide(Ot)}pause(){this._isSliding&&C(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,zt,()=>this.cycle()):this.cycle())}to(e){const t=this._getItems();if(e>t.length-1||e<0)return;if(this._isSliding)return void m.one(this._element,zt,()=>this.to(e));const s=this._getItemIndex(this._getActive());if(s===e)return;const p=e>s?xt:Ot;this._slide(p,t[e])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(e){return e.defaultInterval=e.interval,e}_addEventListeners(){this._config.keyboard&&m.on(this._element,Ei,e=>this._keydown(e)),this._config.pause==="hover"&&(m.on(this._element,xi,()=>this.pause()),m.on(this._element,Oi,()=>this._maybeEnableCycle())),this._config.touch&&ut.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const t of $.find(".carousel-item img",this._element))m.on(t,Ui,s=>s.preventDefault());const e={leftCallback:()=>this._slide(this._directionToOrder(dt)),rightCallback:()=>this._slide(this._directionToOrder(st)),endCallback:()=>{this._config.pause==="hover"&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(()=>this._maybeEnableCycle(),500+this._config.interval))}};this._swipeHelper=new ut(this._element,e)}_keydown(e){if(/input|textarea/i.test(e.target.tagName))return;const t=v[e.key];t&&(e.preventDefault(),this._slide(this._directionToOrder(t)))}_getItemIndex(e){return this._getItems().indexOf(e)}_setActiveIndicatorElement(e){if(!this._indicatorsElement)return;const t=$.findOne(d,this._indicatorsElement);t.classList.remove(a),t.removeAttribute("aria-current");const s=$.findOne(`[data-bs-slide-to="${e}"]`,this._indicatorsElement);s&&(s.classList.add(a),s.setAttribute("aria-current","true"))}_updateInterval(){const e=this._activeElement||this._getActive();if(!e)return;const t=Number.parseInt(e.getAttribute("data-bs-interval"),10);this._config.interval=t||this._config.defaultInterval}_slide(e,t=null){if(this._isSliding)return;const s=this._getActive(),p=e===xt,x=t||te(this._getItems(),s,p,this._config.wrap);if(x===s)return;const k=this._getItemIndex(x),Q=tt=>m.trigger(this._element,tt,{relatedTarget:x,direction:this._orderToDirection(e),from:this._getItemIndex(s),to:k});if(Q(wi).defaultPrevented||!s||!x)return;const pe=!!this._interval;this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(k),this._activeElement=x;const Se=p?"carousel-item-start":"carousel-item-end",Fe=p?"carousel-item-next":"carousel-item-prev";x.classList.add(Fe),R(x),s.classList.add(Se),x.classList.add(Se),this._queueCallback(()=>{x.classList.remove(Se,Fe),x.classList.add(a),s.classList.remove(a,Fe,Se),this._isSliding=!1,Q(zt)},s,this._isAnimated()),pe&&this.cycle()}_isAnimated(){return this._element.classList.contains("slide")}_getActive(){return $.findOne(O,this._element)}_getItems(){return $.find(h,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(e){return U()?e===dt?Ot:xt:e===dt?xt:Ot}_orderToDirection(e){return U()?e===Ot?dt:st:e===Ot?st:dt}static jQueryInterface(e){return this.each(function(){const t=w.getOrCreateInstance(this,e);if(typeof e!="number"){if(typeof e=="string"){if(t[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);t[e]()}}else t.to(e)})}}m.on(document,Yi,"[data-bs-slide], [data-bs-slide-to]",function(o){const e=$.getElementFromSelector(this);if(!e||!e.classList.contains(l))return;o.preventDefault();const t=w.getOrCreateInstance(e),s=this.getAttribute("data-bs-slide-to");return s?(t.to(s),void t._maybeEnableCycle()):ye.getDataAttribute(this,"slide")==="next"?(t.next(),void t._maybeEnableCycle()):(t.prev(),void t._maybeEnableCycle())}),m.on(window,Ai,()=>{const o=$.find('[data-bs-ride="carousel"]');for(const e of o)w.getOrCreateInstance(e)}),S(w);const L=".bs.collapse",D=`show${L}`,T=`shown${L}`,Z=`hide${L}`,W=`hidden${L}`,q=`click${L}.data-api`,X="show",M="collapse",oe="collapsing",ue=`:scope .${M} .${M}`,J='[data-bs-toggle="collapse"]',re={parent:null,toggle:!0},F={parent:"(null|element)",toggle:"boolean"};class N extends ce{constructor(e,t){super(e,t),this._isTransitioning=!1,this._triggerArray=[];const s=$.find(J);for(const p of s){const x=$.getSelectorFromElement(p),k=$.find(x).filter(Q=>Q===this._element);x!==null&&k.length&&this._triggerArray.push(p)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return re}static get DefaultType(){return F}static get NAME(){return"collapse"}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let e=[];if(this._config.parent&&(e=this._getFirstLevelChildren(".collapse.show, .collapse.collapsing").filter(p=>p!==this._element).map(p=>N.getOrCreateInstance(p,{toggle:!1}))),e.length&&e[0]._isTransitioning||m.trigger(this._element,D).defaultPrevented)return;for(const p of e)p.hide();const t=this._getDimension();this._element.classList.remove(M),this._element.classList.add(oe),this._element.style[t]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const s=`scroll${t[0].toUpperCase()+t.slice(1)}`;this._queueCallback(()=>{this._isTransitioning=!1,this._element.classList.remove(oe),this._element.classList.add(M,X),this._element.style[t]="",m.trigger(this._element,T)},this._element,!0),this._element.style[t]=`${this._element[s]}px`}hide(){if(this._isTransitioning||!this._isShown()||m.trigger(this._element,Z).defaultPrevented)return;const e=this._getDimension();this._element.style[e]=`${this._element.getBoundingClientRect()[e]}px`,R(this._element),this._element.classList.add(oe),this._element.classList.remove(M,X);for(const t of this._triggerArray){const s=$.getElementFromSelector(t);s&&!this._isShown(s)&&this._addAriaAndCollapsedClass([t],!1)}this._isTransitioning=!0,this._element.style[e]="",this._queueCallback(()=>{this._isTransitioning=!1,this._element.classList.remove(oe),this._element.classList.add(M),m.trigger(this._element,W)},this._element,!0)}_isShown(e=this._element){return e.classList.contains(X)}_configAfterMerge(e){return e.toggle=!!e.toggle,e.parent=B(e.parent),e}_getDimension(){return this._element.classList.contains("collapse-horizontal")?"width":"height"}_initializeChildren(){if(!this._config.parent)return;const e=this._getFirstLevelChildren(J);for(const t of e){const s=$.getElementFromSelector(t);s&&this._addAriaAndCollapsedClass([t],this._isShown(s))}}_getFirstLevelChildren(e){const t=$.find(ue,this._config.parent);return $.find(e,this._config.parent).filter(s=>!t.includes(s))}_addAriaAndCollapsedClass(e,t){if(e.length)for(const s of e)s.classList.toggle("collapsed",!t),s.setAttribute("aria-expanded",t)}static jQueryInterface(e){const t={};return typeof e=="string"&&/show|hide/.test(e)&&(t.toggle=!1),this.each(function(){const s=N.getOrCreateInstance(this,t);if(typeof e=="string"){if(s[e]===void 0)throw new TypeError(`No method named "${e}"`);s[e]()}})}}m.on(document,q,J,function(o){(o.target.tagName==="A"||o.delegateTarget&&o.delegateTarget.tagName==="A")&&o.preventDefault();for(const e of $.getMultipleElementsFromSelector(this))N.getOrCreateInstance(e,{toggle:!1}).toggle()}),S(N);const ie="dropdown",Y=".bs.dropdown",ee=".data-api",he="ArrowUp",be="ArrowDown",Be=`hide${Y}`,He=`hidden${Y}`,Je=`show${Y}`,Ue=`shown${Y}`,ge=`click${Y}${ee}`,Ze=`keydown${Y}${ee}`,ft=`keyup${Y}${ee}`,et="show",De='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',Re=`${De}.${et}`,Ee=".dropdown-menu",Vt=U()?"top-end":"top-start",qt=U()?"top-start":"top-end",Xt=U()?"bottom-end":"bottom-start",Ti=U()?"bottom-start":"bottom-end",Ci=U()?"left-start":"right-start",Ut=U()?"right-start":"left-start",Ki={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},Qi={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class Ae extends ce{constructor(e,t){super(e,t),this._popper=null,this._parent=this._element.parentNode,this._menu=$.next(this._element,Ee)[0]||$.prev(this._element,Ee)[0]||$.findOne(Ee,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return Ki}static get DefaultType(){return Qi}static get NAME(){return ie}toggle(){return this._isShown()?this.hide():this.show()}show(){if(P(this._element)||this._isShown())return;const e={relatedTarget:this._element};if(!m.trigger(this._element,Je,e).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",I);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(et),this._element.classList.add(et),m.trigger(this._element,Ue,e)}}hide(){if(P(this._element)||!this._isShown())return;const e={relatedTarget:this._element};this._completeHide(e)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(e){if(!m.trigger(this._element,Be,e).defaultPrevented){if("ontouchstart"in document.documentElement)for(const t of[].concat(...document.body.children))m.off(t,"mouseover",I);this._popper&&this._popper.destroy(),this._menu.classList.remove(et),this._element.classList.remove(et),this._element.setAttribute("aria-expanded","false"),ye.removeDataAttribute(this._menu,"popper"),m.trigger(this._element,He,e)}}_getConfig(e){if(typeof(e=super._getConfig(e)).reference=="object"&&!y(e.reference)&&typeof e.reference.getBoundingClientRect!="function")throw new TypeError(`${ie.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return e}_createPopper(){if(c===void 0)throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");let e=this._element;this._config.reference==="parent"?e=this._parent:y(this._config.reference)?e=B(this._config.reference):typeof this._config.reference=="object"&&(e=this._config.reference);const t=this._getPopperConfig();this._popper=c.createPopper(e,this._menu,t)}_isShown(){return this._menu.classList.contains(et)}_getPlacement(){const e=this._parent;if(e.classList.contains("dropend"))return Ci;if(e.classList.contains("dropstart"))return Ut;if(e.classList.contains("dropup-center"))return"top";if(e.classList.contains("dropdown-center"))return"bottom";const t=getComputedStyle(this._menu).getPropertyValue("--bs-position").trim()==="end";return e.classList.contains("dropup")?t?qt:Vt:t?Ti:Xt}_detectNavbar(){return this._element.closest(".navbar")!==null}_getOffset(){const{offset:e}=this._config;return typeof e=="string"?e.split(",").map(t=>Number.parseInt(t,10)):typeof e=="function"?t=>e(t,this._element):e}_getPopperConfig(){const e={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return(this._inNavbar||this._config.display==="static")&&(ye.setDataAttribute(this._menu,"popper","static"),e.modifiers=[{name:"applyStyles",enabled:!1}]),{...e,...j(this._config.popperConfig,[e])}}_selectMenuItem({key:e,target:t}){const s=$.find(".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",this._menu).filter(p=>H(p));s.length&&te(s,t,e===be,!s.includes(t)).focus()}static jQueryInterface(e){return this.each(function(){const t=Ae.getOrCreateInstance(this,e);if(typeof e=="string"){if(t[e]===void 0)throw new TypeError(`No method named "${e}"`);t[e]()}})}static clearMenus(e){if(e.button===2||e.type==="keyup"&&e.key!=="Tab")return;const t=$.find(Re);for(const s of t){const p=Ae.getInstance(s);if(!p||p._config.autoClose===!1)continue;const x=e.composedPath(),k=x.includes(p._menu);if(x.includes(p._element)||p._config.autoClose==="inside"&&!k||p._config.autoClose==="outside"&&k||p._menu.contains(e.target)&&(e.type==="keyup"&&e.key==="Tab"||/input|select|option|textarea|form/i.test(e.target.tagName)))continue;const Q={relatedTarget:p._element};e.type==="click"&&(Q.clickEvent=e),p._completeHide(Q)}}static dataApiKeydownHandler(e){const t=/input|textarea/i.test(e.target.tagName),s=e.key==="Escape",p=[he,be].includes(e.key);if(!p&&!s||t&&!s)return;e.preventDefault();const x=this.matches(De)?this:$.prev(this,De)[0]||$.next(this,De)[0]||$.findOne(De,e.delegateTarget.parentNode),k=Ae.getOrCreateInstance(x);if(p)return e.stopPropagation(),k.show(),void k._selectMenuItem(e);k._isShown()&&(e.stopPropagation(),k.hide(),x.focus())}}m.on(document,Ze,De,Ae.dataApiKeydownHandler),m.on(document,Ze,Ee,Ae.dataApiKeydownHandler),m.on(document,ge,Ae.clearMenus),m.on(document,ft,Ae.clearMenus),m.on(document,ge,De,function(o){o.preventDefault(),Ae.getOrCreateInstance(this).toggle()}),S(Ae);const ki="backdrop",si="show",$i=`mousedown.bs.${ki}`,Li={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},Di={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class Si extends Oe{constructor(e){super(),this._config=this._getConfig(e),this._isAppended=!1,this._element=null}static get Default(){return Li}static get DefaultType(){return Di}static get NAME(){return ki}show(e){if(!this._config.isVisible)return void j(e);this._append();const t=this._getElement();this._config.isAnimated&&R(t),t.classList.add(si),this._emulateAnimation(()=>{j(e)})}hide(e){this._config.isVisible?(this._getElement().classList.remove(si),this._emulateAnimation(()=>{this.dispose(),j(e)})):j(e)}dispose(){this._isAppended&&(m.off(this._element,$i),this._element.remove(),this._isAppended=!1)}_getElement(){if(!this._element){const e=document.createElement("div");e.className=this._config.className,this._config.isAnimated&&e.classList.add("fade"),this._element=e}return this._element}_configAfterMerge(e){return e.rootElement=B(e.rootElement),e}_append(){if(this._isAppended)return;const e=this._getElement();this._config.rootElement.append(e),m.on(e,$i,()=>{j(this._config.clickCallback)}),this._isAppended=!0}_emulateAnimation(e){G(e,this._getElement(),this._config.isAnimated)}}const Yt=".bs.focustrap",ht=`focusin${Yt}`,Kt=`keydown.tab${Yt}`,oi="backward",Pi={autofocus:!0,trapElement:null},ai={autofocus:"boolean",trapElement:"element"};class li extends Oe{constructor(e){super(),this._config=this._getConfig(e),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return Pi}static get DefaultType(){return ai}static get NAME(){return"focustrap"}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),m.off(document,Yt),m.on(document,ht,e=>this._handleFocusin(e)),m.on(document,Kt,e=>this._handleKeydown(e)),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,m.off(document,Yt))}_handleFocusin(e){const{trapElement:t}=this._config;if(e.target===document||e.target===t||t.contains(e.target))return;const s=$.focusableChildren(t);s.length===0?t.focus():this._lastTabNavDirection===oi?s[s.length-1].focus():s[0].focus()}_handleKeydown(e){e.key==="Tab"&&(this._lastTabNavDirection=e.shiftKey?oi:"forward")}}const ci=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",ui=".sticky-top",$t="padding-right",ji="margin-right";class di{constructor(){this._element=document.body}getWidth(){const e=document.documentElement.clientWidth;return Math.abs(window.innerWidth-e)}hide(){const e=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,$t,t=>t+e),this._setElementAttributes(ci,$t,t=>t+e),this._setElementAttributes(ui,ji,t=>t-e)}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,$t),this._resetElementAttributes(ci,$t),this._resetElementAttributes(ui,ji)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(e,t,s){const p=this.getWidth();this._applyManipulationCallback(e,x=>{if(x!==this._element&&window.innerWidth>x.clientWidth+p)return;this._saveInitialAttribute(x,t);const k=window.getComputedStyle(x).getPropertyValue(t);x.style.setProperty(t,`${s(Number.parseFloat(k))}px`)})}_saveInitialAttribute(e,t){const s=e.style.getPropertyValue(t);s&&ye.setDataAttribute(e,t,s)}_resetElementAttributes(e,t){this._applyManipulationCallback(e,s=>{const p=ye.getDataAttribute(s,t);p!==null?(ye.removeDataAttribute(s,t),s.style.setProperty(t,p)):s.style.removeProperty(t)})}_applyManipulationCallback(e,t){if(y(e))t(e);else for(const s of $.find(e,this._element))t(s)}}const xe=".bs.modal",Ii=`hide${xe}`,Lr=`hidePrevented${xe}`,An=`hidden${xe}`,Tn=`show${xe}`,Dr=`shown${xe}`,Sr=`resize${xe}`,Pr=`click.dismiss${xe}`,jr=`mousedown.dismiss${xe}`,Ir=`keydown.dismiss${xe}`,Mr=`click${xe}.data-api`,Cn="modal-open",kn="show",Gi="modal-static",Nr={backdrop:!0,focus:!0,keyboard:!0},Br={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class Lt extends ce{constructor(e,t){super(e,t),this._dialog=$.findOne(".modal-dialog",this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new di,this._addEventListeners()}static get Default(){return Nr}static get DefaultType(){return Br}static get NAME(){return"modal"}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){this._isShown||this._isTransitioning||m.trigger(this._element,Tn,{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(Cn),this._adjustDialog(),this._backdrop.show(()=>this._showElement(e)))}hide(){this._isShown&&!this._isTransitioning&&(m.trigger(this._element,Ii).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(kn),this._queueCallback(()=>this._hideModal(),this._element,this._isAnimated())))}dispose(){m.off(window,xe),m.off(this._dialog,xe),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new Si({isVisible:!!this._config.backdrop,isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new li({trapElement:this._element})}_showElement(e){document.body.contains(this._element)||document.body.append(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.scrollTop=0;const t=$.findOne(".modal-body",this._dialog);t&&(t.scrollTop=0),R(this._element),this._element.classList.add(kn),this._queueCallback(()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,m.trigger(this._element,Dr,{relatedTarget:e})},this._dialog,this._isAnimated())}_addEventListeners(){m.on(this._element,Ir,e=>{e.key==="Escape"&&(this._config.keyboard?this.hide():this._triggerBackdropTransition())}),m.on(window,Sr,()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()}),m.on(this._element,jr,e=>{m.one(this._element,Pr,t=>{this._element===e.target&&this._element===t.target&&(this._config.backdrop!=="static"?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(Cn),this._resetAdjustments(),this._scrollBar.reset(),m.trigger(this._element,An)})}_isAnimated(){return this._element.classList.contains("fade")}_triggerBackdropTransition(){if(m.trigger(this._element,Lr).defaultPrevented)return;const e=this._element.scrollHeight>document.documentElement.clientHeight,t=this._element.style.overflowY;t==="hidden"||this._element.classList.contains(Gi)||(e||(this._element.style.overflowY="hidden"),this._element.classList.add(Gi),this._queueCallback(()=>{this._element.classList.remove(Gi),this._queueCallback(()=>{this._element.style.overflowY=t},this._dialog)},this._dialog),this._element.focus())}_adjustDialog(){const e=this._element.scrollHeight>document.documentElement.clientHeight,t=this._scrollBar.getWidth(),s=t>0;if(s&&!e){const p=U()?"paddingLeft":"paddingRight";this._element.style[p]=`${t}px`}if(!s&&e){const p=U()?"paddingRight":"paddingLeft";this._element.style[p]=`${t}px`}}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(e,t){return this.each(function(){const s=Lt.getOrCreateInstance(this,e);if(typeof e=="string"){if(s[e]===void 0)throw new TypeError(`No method named "${e}"`);s[e](t)}})}}m.on(document,Mr,'[data-bs-toggle="modal"]',function(o){const e=$.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&o.preventDefault(),m.one(e,Tn,s=>{s.defaultPrevented||m.one(e,An,()=>{H(this)&&this.focus()})});const t=$.findOne(".modal.show");t&&Lt.getInstance(t).hide(),Lt.getOrCreateInstance(e).toggle(this)}),lt(Lt),S(Lt);const pt=".bs.offcanvas",$n=".data-api",Hr=`load${pt}${$n}`,Ln="show",Dn="showing",Sn="hiding",Pn=".offcanvas.show",Rr=`show${pt}`,Fr=`shown${pt}`,Wr=`hide${pt}`,jn=`hidePrevented${pt}`,In=`hidden${pt}`,zr=`resize${pt}`,Vr=`click${pt}${$n}`,qr=`keydown.dismiss${pt}`,Xr={backdrop:!0,keyboard:!0,scroll:!1},Ur={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};class mt extends ce{constructor(e,t){super(e,t),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return Xr}static get DefaultType(){return Ur}static get NAME(){return"offcanvas"}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){this._isShown||m.trigger(this._element,Rr,{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._backdrop.show(),this._config.scroll||new di().hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(Dn),this._queueCallback(()=>{this._config.scroll&&!this._config.backdrop||this._focustrap.activate(),this._element.classList.add(Ln),this._element.classList.remove(Dn),m.trigger(this._element,Fr,{relatedTarget:e})},this._element,!0))}hide(){this._isShown&&(m.trigger(this._element,Wr).defaultPrevented||(this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(Sn),this._backdrop.hide(),this._queueCallback(()=>{this._element.classList.remove(Ln,Sn),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||new di().reset(),m.trigger(this._element,In)},this._element,!0)))}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){const e=!!this._config.backdrop;return new Si({className:"offcanvas-backdrop",isVisible:e,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:e?()=>{this._config.backdrop!=="static"?this.hide():m.trigger(this._element,jn)}:null})}_initializeFocusTrap(){return new li({trapElement:this._element})}_addEventListeners(){m.on(this._element,qr,e=>{e.key==="Escape"&&(this._config.keyboard?this.hide():m.trigger(this._element,jn))})}static jQueryInterface(e){return this.each(function(){const t=mt.getOrCreateInstance(this,e);if(typeof e=="string"){if(t[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);t[e](this)}})}}m.on(document,Vr,'[data-bs-toggle="offcanvas"]',function(o){const e=$.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&o.preventDefault(),P(this))return;m.one(e,In,()=>{H(this)&&this.focus()});const t=$.findOne(Pn);t&&t!==e&&mt.getInstance(t).hide(),mt.getOrCreateInstance(e).toggle(this)}),m.on(window,Hr,()=>{for(const o of $.find(Pn))mt.getOrCreateInstance(o).show()}),m.on(window,zr,()=>{for(const o of $.find("[aria-modal][class*=show][class*=offcanvas-]"))getComputedStyle(o).position!=="fixed"&&mt.getOrCreateInstance(o).hide()}),lt(mt),S(mt);const Mn={"*":["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:[]},Yr=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),Kr=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,Qr=(o,e)=>{const t=o.nodeName.toLowerCase();return e.includes(t)?!Yr.has(t)||!!Kr.test(o.nodeValue):e.filter(s=>s instanceof RegExp).some(s=>s.test(t))},Gr={allowList:Mn,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"<div></div>"},Jr={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},Zr={entry:"(string|element|function|null)",selector:"(string|element)"};class es extends Oe{constructor(e){super(),this._config=this._getConfig(e)}static get Default(){return Gr}static get DefaultType(){return Jr}static get NAME(){return"TemplateFactory"}getContent(){return Object.values(this._config.content).map(e=>this._resolvePossibleFunction(e)).filter(Boolean)}hasContent(){return this.getContent().length>0}changeContent(e){return this._checkContent(e),this._config.content={...this._config.content,...e},this}toHtml(){const e=document.createElement("div");e.innerHTML=this._maybeSanitize(this._config.template);for(const[p,x]of Object.entries(this._config.content))this._setContent(e,x,p);const t=e.children[0],s=this._resolvePossibleFunction(this._config.extraClass);return s&&t.classList.add(...s.split(" ")),t}_typeCheckConfig(e){super._typeCheckConfig(e),this._checkContent(e.content)}_checkContent(e){for(const[t,s]of Object.entries(e))super._typeCheckConfig({selector:t,entry:s},Zr)}_setContent(e,t,s){const p=$.findOne(s,e);p&&((t=this._resolvePossibleFunction(t))?y(t)?this._putElementInTemplate(B(t),p):this._config.html?p.innerHTML=this._maybeSanitize(t):p.textContent=t:p.remove())}_maybeSanitize(e){return this._config.sanitize?function(t,s,p){if(!t.length)return t;if(p&&typeof p=="function")return p(t);const x=new window.DOMParser().parseFromString(t,"text/html"),k=[].concat(...x.body.querySelectorAll("*"));for(const Q of k){const pe=Q.nodeName.toLowerCase();if(!Object.keys(s).includes(pe)){Q.remove();continue}const Se=[].concat(...Q.attributes),Fe=[].concat(s["*"]||[],s[pe]||[]);for(const tt of Se)Qr(tt,Fe)||Q.removeAttribute(tt.nodeName)}return x.body.innerHTML}(e,this._config.allowList,this._config.sanitizeFn):e}_resolvePossibleFunction(e){return j(e,[this])}_putElementInTemplate(e,t){if(this._config.html)return t.innerHTML="",void t.append(e);t.textContent=e.textContent}}const ts=new Set(["sanitize","allowList","sanitizeFn"]),Ji="fade",Mi="show",Nn=".modal",Bn="hide.bs.modal",fi="hover",Zi="focus",is={AUTO:"auto",TOP:"top",RIGHT:U()?"left":"right",BOTTOM:"bottom",LEFT:U()?"right":"left"},ns={allowList:Mn,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"},rs={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 Dt extends ce{constructor(e,t){if(c===void 0)throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");super(e,t),this._isEnabled=!0,this._timeout=0,this._isHovered=null,this._activeTrigger={},this._popper=null,this._templateFactory=null,this._newContent=null,this.tip=null,this._setListeners(),this._config.selector||this._fixTitle()}static get Default(){return ns}static get DefaultType(){return rs}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(Nn),Bn,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(this._element.style.display==="none")throw new Error("Please use show on visible elements");if(!this._isWithContent()||!this._isEnabled)return;const e=m.trigger(this._element,this.constructor.eventName("show")),t=(z(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(e.defaultPrevented||!t)return;this._disposePopper();const s=this._getTipElement();this._element.setAttribute("aria-describedby",s.getAttribute("id"));const{container:p}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(p.append(s),m.trigger(this._element,this.constructor.eventName("inserted"))),this._popper=this._createPopper(s),s.classList.add(Mi),"ontouchstart"in document.documentElement)for(const x of[].concat(...document.body.children))m.on(x,"mouseover",I);this._queueCallback(()=>{m.trigger(this._element,this.constructor.eventName("shown")),this._isHovered===!1&&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(Mi),"ontouchstart"in document.documentElement)for(const e of[].concat(...document.body.children))m.off(e,"mouseover",I);this._activeTrigger.click=!1,this._activeTrigger[Zi]=!1,this._activeTrigger[fi]=!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!!this._getTitle()}_getTipElement(){return this.tip||(this.tip=this._createTipElement(this._newContent||this._getContentForTemplate())),this.tip}_createTipElement(e){const t=this._getTemplateFactory(e).toHtml();if(!t)return null;t.classList.remove(Ji,Mi),t.classList.add(`bs-${this.constructor.NAME}-auto`);const s=(p=>{do p+=Math.floor(1e6*Math.random());while(document.getElementById(p));return p})(this.constructor.NAME).toString();return t.setAttribute("id",s),this._isAnimated()&&t.classList.add(Ji),t}setContent(e){this._newContent=e,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(e){return this._templateFactory?this._templateFactory.changeContent(e):this._templateFactory=new es({...this._config,content:e,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{".tooltip-inner":this._getTitle()}}_getTitle(){return this._resolvePossibleFunction(this._config.title)||this._element.getAttribute("data-bs-original-title")}_initializeOnDelegatedTarget(e){return this.constructor.getOrCreateInstance(e.delegateTarget,this._getDelegateConfig())}_isAnimated(){return this._config.animation||this.tip&&this.tip.classList.contains(Ji)}_isShown(){return this.tip&&this.tip.classList.contains(Mi)}_createPopper(e){const t=j(this._config.placement,[this,e,this._element]),s=is[t.toUpperCase()];return c.createPopper(this._element,e,this._getPopperConfig(s))}_getOffset(){const{offset:e}=this._config;return typeof e=="string"?e.split(",").map(t=>Number.parseInt(t,10)):typeof e=="function"?t=>e(t,this._element):e}_resolvePossibleFunction(e){return j(e,[this._element])}_getPopperConfig(e){const t={placement:e,modifiers:[{name:"flip",options:{fallbackPlacements:this._config.fallbackPlacements}},{name:"offset",options:{offset:this._getOffset()}},{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"arrow",options:{element:`.${this.constructor.NAME}-arrow`}},{name:"preSetPlacement",enabled:!0,phase:"beforeMain",fn:s=>{this._getTipElement().setAttribute("data-popper-placement",s.state.placement)}}]};return{...t,...j(this._config.popperConfig,[t])}}_setListeners(){const e=this._config.trigger.split(" ");for(const t of e)if(t==="click")m.on(this._element,this.constructor.eventName("click"),this._config.selector,s=>{this._initializeOnDelegatedTarget(s).toggle()});else if(t!=="manual"){const s=t===fi?this.constructor.eventName("mouseenter"):this.constructor.eventName("focusin"),p=t===fi?this.constructor.eventName("mouseleave"):this.constructor.eventName("focusout");m.on(this._element,s,this._config.selector,x=>{const k=this._initializeOnDelegatedTarget(x);k._activeTrigger[x.type==="focusin"?Zi:fi]=!0,k._enter()}),m.on(this._element,p,this._config.selector,x=>{const k=this._initializeOnDelegatedTarget(x);k._activeTrigger[x.type==="focusout"?Zi:fi]=k._element.contains(x.relatedTarget),k._leave()})}this._hideModalHandler=()=>{this._element&&this.hide()},m.on(this._element.closest(Nn),Bn,this._hideModalHandler)}_fixTitle(){const e=this._element.getAttribute("title");e&&(this._element.getAttribute("aria-label")||this._element.textContent.trim()||this._element.setAttribute("aria-label",e),this._element.setAttribute("data-bs-original-title",e),this._element.removeAttribute("title"))}_enter(){this._isShown()||this._isHovered?this._isHovered=!0:(this._isHovered=!0,this._setTimeout(()=>{this._isHovered&&this.show()},this._config.delay.show))}_leave(){this._isWithActiveTrigger()||(this._isHovered=!1,this._setTimeout(()=>{this._isHovered||this.hide()},this._config.delay.hide))}_setTimeout(e,t){clearTimeout(this._timeout),this._timeout=setTimeout(e,t)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(e){const t=ye.getDataAttributes(this._element);for(const s of Object.keys(t))ts.has(s)&&delete t[s];return e={...t,...typeof e=="object"&&e?e:{}},e=this._mergeConfigObj(e),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}_configAfterMerge(e){return e.container=e.container===!1?document.body:B(e.container),typeof e.delay=="number"&&(e.delay={show:e.delay,hide:e.delay}),typeof e.title=="number"&&(e.title=e.title.toString()),typeof e.content=="number"&&(e.content=e.content.toString()),e}_getDelegateConfig(){const e={};for(const[t,s]of Object.entries(this._config))this.constructor.Default[t]!==s&&(e[t]=s);return e.selector=!1,e.trigger="manual",e}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null),this.tip&&(this.tip.remove(),this.tip=null)}static jQueryInterface(e){return this.each(function(){const t=Dt.getOrCreateInstance(this,e);if(typeof e=="string"){if(t[e]===void 0)throw new TypeError(`No method named "${e}"`);t[e]()}})}}S(Dt);const ss={...Dt.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"},os={...Dt.DefaultType,content:"(null|string|element|function)"};class Ni extends Dt{static get Default(){return ss}static get DefaultType(){return os}static get NAME(){return"popover"}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{".popover-header":this._getTitle(),".popover-body":this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(e){return this.each(function(){const t=Ni.getOrCreateInstance(this,e);if(typeof e=="string"){if(t[e]===void 0)throw new TypeError(`No method named "${e}"`);t[e]()}})}}S(Ni);const en=".bs.scrollspy",as=`activate${en}`,Hn=`click${en}`,ls=`load${en}.data-api`,Qt="active",tn="[href]",Rn=".nav-link",cs=`${Rn}, .nav-item > ${Rn}, .list-group-item`,us={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},ds={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};class hi extends ce{constructor(e,t){super(e,t),this._targetLinks=new Map,this._observableSections=new Map,this._rootElement=getComputedStyle(this._element).overflowY==="visible"?null:this._element,this._activeTarget=null,this._observer=null,this._previousScrollData={visibleEntryTop:0,parentScrollTop:0},this.refresh()}static get Default(){return us}static get DefaultType(){return ds}static get NAME(){return"scrollspy"}refresh(){this._initializeTargetsAndObservables(),this._maybeEnableSmoothScroll(),this._observer?this._observer.disconnect():this._observer=this._getNewObserver();for(const e of this._observableSections.values())this._observer.observe(e)}dispose(){this._observer.disconnect(),super.dispose()}_configAfterMerge(e){return e.target=B(e.target)||document.body,e.rootMargin=e.offset?`${e.offset}px 0px -30%`:e.rootMargin,typeof e.threshold=="string"&&(e.threshold=e.threshold.split(",").map(t=>Number.parseFloat(t))),e}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(m.off(this._config.target,Hn),m.on(this._config.target,Hn,tn,e=>{const t=this._observableSections.get(e.target.hash);if(t){e.preventDefault();const s=this._rootElement||window,p=t.offsetTop-this._element.offsetTop;if(s.scrollTo)return void s.scrollTo({top:p,behavior:"smooth"});s.scrollTop=p}}))}_getNewObserver(){const e={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver(t=>this._observerCallback(t),e)}_observerCallback(e){const t=k=>this._targetLinks.get(`#${k.target.id}`),s=k=>{this._previousScrollData.visibleEntryTop=k.target.offsetTop,this._process(t(k))},p=(this._rootElement||document.documentElement).scrollTop,x=p>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=p;for(const k of e){if(!k.isIntersecting){this._activeTarget=null,this._clearActiveClass(t(k));continue}const Q=k.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(x&&Q){if(s(k),!p)return}else x||Q||s(k)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;const e=$.find(tn,this._config.target);for(const t of e){if(!t.hash||P(t))continue;const s=$.findOne(decodeURI(t.hash),this._element);H(s)&&(this._targetLinks.set(decodeURI(t.hash),t),this._observableSections.set(t.hash,s))}}_process(e){this._activeTarget!==e&&(this._clearActiveClass(this._config.target),this._activeTarget=e,e.classList.add(Qt),this._activateParents(e),m.trigger(this._element,as,{relatedTarget:e}))}_activateParents(e){if(e.classList.contains("dropdown-item"))$.findOne(".dropdown-toggle",e.closest(".dropdown")).classList.add(Qt);else for(const t of $.parents(e,".nav, .list-group"))for(const s of $.prev(t,cs))s.classList.add(Qt)}_clearActiveClass(e){e.classList.remove(Qt);const t=$.find(`${tn}.${Qt}`,e);for(const s of t)s.classList.remove(Qt)}static jQueryInterface(e){return this.each(function(){const t=hi.getOrCreateInstance(this,e);if(typeof e=="string"){if(t[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);t[e]()}})}}m.on(window,ls,()=>{for(const o of $.find('[data-bs-spy="scroll"]'))hi.getOrCreateInstance(o)}),S(hi);const St=".bs.tab",fs=`hide${St}`,hs=`hidden${St}`,ps=`show${St}`,ms=`shown${St}`,gs=`click${St}`,vs=`keydown${St}`,_s=`load${St}`,bs="ArrowLeft",Fn="ArrowRight",ys="ArrowUp",Wn="ArrowDown",nn="Home",zn="End",Pt="active",Vn="fade",rn="show",qn=".dropdown-toggle",sn=`:not(${qn})`,Xn='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',on=`.nav-link${sn}, .list-group-item${sn}, [role="tab"]${sn}, ${Xn}`,ws=`.${Pt}[data-bs-toggle="tab"], .${Pt}[data-bs-toggle="pill"], .${Pt}[data-bs-toggle="list"]`;class jt extends ce{constructor(e){super(e),this._parent=this._element.closest('.list-group, .nav, [role="tablist"]'),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),m.on(this._element,vs,t=>this._keydown(t)))}static get NAME(){return"tab"}show(){const e=this._element;if(this._elemIsActive(e))return;const t=this._getActiveElem(),s=t?m.trigger(t,fs,{relatedTarget:e}):null;m.trigger(e,ps,{relatedTarget:t}).defaultPrevented||s&&s.defaultPrevented||(this._deactivate(t,e),this._activate(e,t))}_activate(e,t){e&&(e.classList.add(Pt),this._activate($.getElementFromSelector(e)),this._queueCallback(()=>{e.getAttribute("role")==="tab"?(e.removeAttribute("tabindex"),e.setAttribute("aria-selected",!0),this._toggleDropDown(e,!0),m.trigger(e,ms,{relatedTarget:t})):e.classList.add(rn)},e,e.classList.contains(Vn)))}_deactivate(e,t){e&&(e.classList.remove(Pt),e.blur(),this._deactivate($.getElementFromSelector(e)),this._queueCallback(()=>{e.getAttribute("role")==="tab"?(e.setAttribute("aria-selected",!1),e.setAttribute("tabindex","-1"),this._toggleDropDown(e,!1),m.trigger(e,hs,{relatedTarget:t})):e.classList.remove(rn)},e,e.classList.contains(Vn)))}_keydown(e){if(![bs,Fn,ys,Wn,nn,zn].includes(e.key))return;e.stopPropagation(),e.preventDefault();const t=this._getChildren().filter(p=>!P(p));let s;if([nn,zn].includes(e.key))s=t[e.key===nn?0:t.length-1];else{const p=[Fn,Wn].includes(e.key);s=te(t,e.target,p,!0)}s&&(s.focus({preventScroll:!0}),jt.getOrCreateInstance(s).show())}_getChildren(){return $.find(on,this._parent)}_getActiveElem(){return this._getChildren().find(e=>this._elemIsActive(e))||null}_setInitialAttributes(e,t){this._setAttributeIfNotExists(e,"role","tablist");for(const s of t)this._setInitialAttributesOnChild(s)}_setInitialAttributesOnChild(e){e=this._getInnerElement(e);const t=this._elemIsActive(e),s=this._getOuterElement(e);e.setAttribute("aria-selected",t),s!==e&&this._setAttributeIfNotExists(s,"role","presentation"),t||e.setAttribute("tabindex","-1"),this._setAttributeIfNotExists(e,"role","tab"),this._setInitialAttributesOnTargetPanel(e)}_setInitialAttributesOnTargetPanel(e){const t=$.getElementFromSelector(e);t&&(this._setAttributeIfNotExists(t,"role","tabpanel"),e.id&&this._setAttributeIfNotExists(t,"aria-labelledby",`${e.id}`))}_toggleDropDown(e,t){const s=this._getOuterElement(e);if(!s.classList.contains("dropdown"))return;const p=(x,k)=>{const Q=$.findOne(x,s);Q&&Q.classList.toggle(k,t)};p(qn,Pt),p(".dropdown-menu",rn),s.setAttribute("aria-expanded",t)}_setAttributeIfNotExists(e,t,s){e.hasAttribute(t)||e.setAttribute(t,s)}_elemIsActive(e){return e.classList.contains(Pt)}_getInnerElement(e){return e.matches(on)?e:$.findOne(on,e)}_getOuterElement(e){return e.closest(".nav-item, .list-group-item")||e}static jQueryInterface(e){return this.each(function(){const t=jt.getOrCreateInstance(this);if(typeof e=="string"){if(t[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);t[e]()}})}}m.on(document,gs,Xn,function(o){["A","AREA"].includes(this.tagName)&&o.preventDefault(),P(this)||jt.getOrCreateInstance(this).show()}),m.on(window,_s,()=>{for(const o of $.find(ws))jt.getOrCreateInstance(o)}),S(jt);const At=".bs.toast",Es=`mouseover${At}`,xs=`mouseout${At}`,Os=`focusin${At}`,As=`focusout${At}`,Ts=`hide${At}`,Cs=`hidden${At}`,ks=`show${At}`,$s=`shown${At}`,Un="hide",Bi="show",Hi="showing",Ls={animation:"boolean",autohide:"boolean",delay:"number"},Ds={animation:!0,autohide:!0,delay:5e3};class pi extends ce{constructor(e,t){super(e,t),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return Ds}static get DefaultType(){return Ls}static get NAME(){return"toast"}show(){m.trigger(this._element,ks).defaultPrevented||(this._clearTimeout(),this._config.animation&&this._element.classList.add("fade"),this._element.classList.remove(Un),R(this._element),this._element.classList.add(Bi,Hi),this._queueCallback(()=>{this._element.classList.remove(Hi),m.trigger(this._element,$s),this._maybeScheduleHide()},this._element,this._config.animation))}hide(){this.isShown()&&(m.trigger(this._element,Ts).defaultPrevented||(this._element.classList.add(Hi),this._queueCallback(()=>{this._element.classList.add(Un),this._element.classList.remove(Hi,Bi),m.trigger(this._element,Cs)},this._element,this._config.animation)))}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(Bi),super.dispose()}isShown(){return this._element.classList.contains(Bi)}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout(()=>{this.hide()},this._config.delay)))}_onInteraction(e,t){switch(e.type){case"mouseover":case"mouseout":this._hasMouseInteraction=t;break;case"focusin":case"focusout":this._hasKeyboardInteraction=t}if(t)return void this._clearTimeout();const s=e.relatedTarget;this._element===s||this._element.contains(s)||this._maybeScheduleHide()}_setListeners(){m.on(this._element,Es,e=>this._onInteraction(e,!0)),m.on(this._element,xs,e=>this._onInteraction(e,!1)),m.on(this._element,Os,e=>this._onInteraction(e,!0)),m.on(this._element,As,e=>this._onInteraction(e,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(e){return this.each(function(){const t=pi.getOrCreateInstance(this,e);if(typeof e=="string"){if(t[e]===void 0)throw new TypeError(`No method named "${e}"`);t[e](this)}})}}return lt(pi),S(pi),{Alert:Qe,Button:Ge,Carousel:w,Collapse:N,Dropdown:Ae,Modal:Lt,Offcanvas:mt,Popover:Ni,ScrollSpy:hi,Tab:jt,Toast:pi,Tooltip:Dt}})})(Is);const gi="http://localhost:8081";function To(n,i,r,u){return{userId:n,createdDateTime:i,text:r,img:u}}class kr{constructor(i){this.endpoint=i}async getObjects(){const i=await fetch(`${gi}/${this.endpoint}`);if(!i.ok)throw i.statusText;return i.json()}async getObject(i){const r=await fetch(`${gi}/${this.endpoint}/${i}`);if(!r.ok)throw r.statusText;return r.json()}async createObject(i){const r={method:"POST",body:JSON.stringify(i),headers:{Accept:"application/json","Content-Type":"application/json"}},u=await fetch(`${gi}/${this.endpoint}`,r);if(!u.ok)throw u.statusText;return u.json()}async updateObject(i){const r={method:"PUT",body:JSON.stringify(i),headers:{Accept:"application/json","Content-Type":"application/json"}},u=await fetch(`${gi}/${this.endpoint}/${i.id}`,r);if(!u.ok)throw u.statusText;return u.json()}async deleteObject(i){const r={method:"DELETE"},u=await fetch(`${gi}/${this.endpoint}/${i}`,r);if(!u.ok)throw u.statusText;return u.json()}}function Co(n,i){const r=n.text!==null?`<div class="post-body-text m-2">${n.text}</div>`:"",u=n.img!==null?`<img src="${n.img}" class="post-body-img img-fluid"></img>`:"",c={year:"numeric",month:"long",day:"numeric",hour:"numeric",minute:"numeric"},f=new Date(n.createdDateTime);return`<div class="post mb-2 mb-sm-4 w-100 d-flex flex-column border rounded-2 border-dark" id="post-${n.id}">
<div class="post-header py-1 px-2 d-flex border-bottom border-dark justify-content-between align-items-center">
<a class="d-flex justify-content-start align-items-center">
<img src="./static/img/${i.avatarImg}" class="post-author-avatar avatar-small rounded-circle">
<div class="post-meta ms-2 d-flex flex-column justify-content-center">
<div class="post-author-name">
${i.firstName} ${i.lastName}
</div>
<div class="post-publication-datetime">
${f.toLocaleDateString("ru-RU",c)}
</div>
</div>
</a>
<a>
<div class="dropdown">
<i class="bi bi-three-dots fs-4" data-bs-toggle="dropdown" aria-expanded="false"></i>
<ul class="dropdown-menu dropdown-menu-end">
<li><a class="dropdown-item post-delete-button" id="delete-post-${n.id}"><i class="bi bi-trash3"></i> Удалить</a></li>
<li><a class="dropdown-item post-edit-button" id="edit-post-${n.id}"><i class="bi bi-pencil"></i> Редактировать</a></li>
</ul>
</div>
</a>
</div>
<div class="post-body">
${r}
${u}
</div>
<div class="post-footer py-1 px-2 border-top border-dark d-flex">
<div class="counter-block likes-block px-2 me-1 d-flex align-items-center rounded-4">
<svg height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg">
<g fill="none" fill-rule="evenodd">
<path d="M0 0h24v24H0z"></path>
<path d="M16 4a5.95 5.95 0 0 0-3.89 1.7l-.12.11-.12-.11A5.96 5.96 0 0 0 7.73 4 5.73 5.73 0 0 0 2 9.72c0 3.08 1.13 4.55 6.18 8.54l2.69 2.1c.66.52 1.6.52 2.26 0l2.36-1.84.94-.74c4.53-3.64 5.57-5.1 5.57-8.06A5.73 5.73 0 0 0 16.27 4zm.27 1.8a3.93 3.93 0 0 1 3.93 3.92v.3c-.08 2.15-1.07 3.33-5.51 6.84l-2.67 2.08a.04.04 0 0 1-.04 0L9.6 17.1l-.87-.7C4.6 13.1 3.8 11.98 3.8 9.73A3.93 3.93 0 0 1 7.73 5.8c1.34 0 2.51.62 3.57 1.92a.9.9 0 0 0 1.4-.01c1.04-1.3 2.2-1.91 3.57-1.91z" fill="currentColor" fill-rule="nonzero"></path>
</g>
</svg>
<span class="count ms-1">0</span>
</div>
<div class="counter-block comments-block px-2 me-1 d-flex align-items-center rounded-4">
<svg height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg">
<g fill="none" fill-rule="evenodd">
<path d="M0 0h24v24H0z"></path>
<path d="M16.9 4H7.1c-1.15 0-1.73.11-2.35.44-.56.3-1 .75-1.31 1.31C3.11 6.37 3 6.95 3 8.1v5.8c0 1.15.11 1.73.44 2.35.3.56.75 1 1.31 1.31l.15.07c.51.25 1.04.35 1.95.37h.25v2.21c0 .44.17.85.47 1.16l.12.1c.64.55 1.6.52 2.21-.08L13.37 18h3.53c1.15 0 1.73-.11 2.35-.44.56-.3 1-.75 1.31-1.31.33-.62.44-1.2.44-2.35V8.1c0-1.15-.11-1.73-.44-2.35a3.17 3.17 0 0 0-1.31-1.31A4.51 4.51 0 0 0 16.9 4zM6.9 5.8h9.99c.88 0 1.18.06 1.5.23.25.13.44.32.57.57.17.32.23.62.23 1.5v6.16c-.02.61-.09.87-.23 1.14-.13.25-.32.44-.57.57-.32.17-.62.23-1.5.23h-4.02a.9.9 0 0 0-.51.26l-3.47 3.4V17.1c0-.5-.4-.9-.9-.9H6.74a2.3 2.3 0 0 1-1.14-.23 1.37 1.37 0 0 1-.57-.57c-.17-.32-.23-.62-.23-1.5V7.74c.02-.61.09-.87.23-1.14.13-.25.32-.44.57-.57.3-.16.58-.22 1.31-.23z" fill="currentColor" fill-rule="nonzero"></path>
</g>
</svg>
<span class="count ms-1">0</span>
</div>
<div class="counter-block replies-block px-2 d-flex align-items-center rounded-4">
<svg height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg">
<g fill="none" fill-rule="evenodd">
<path d="M0 0h24v24H0z"></path>
<path d="M12 3.73c-1.12.07-2 1-2 2.14v2.12h-.02a9.9 9.9 0 0 0-7.83 10.72.9.9 0 0 0 1.61.46l.19-.24a9.08 9.08 0 0 1 5.84-3.26l.2-.03.01 2.5a2.15 2.15 0 0 0 3.48 1.69l7.82-6.14a2.15 2.15 0 0 0 0-3.38l-7.82-6.13c-.38-.3-.85-.46-1.33-.46zm.15 1.79c.08 0 .15.03.22.07l7.82 6.14a.35.35 0 0 1 0 .55l-7.82 6.13a.35.35 0 0 1-.57-.28V14.7a.9.9 0 0 0-.92-.9h-.23l-.34.02c-2.28.14-4.4.98-6.12 2.36l-.17.15.02-.14a8.1 8.1 0 0 1 6.97-6.53.9.9 0 0 0 .79-.9V5.87c0-.2.16-.35.35-.35z" fill="currentColor" fill-rule="nonzero"></path>
</g>
</svg>
<span class="count ms-1">0</span>
</div>
</div>
</div>`}const ni=new kr("posts"),ko=new kr("users");document.addEventListener("DOMContentLoaded",xn);async function $r(n){const i=new FileReader;return new Promise((r,u)=>{i.onloadend=()=>{const c=i.result;r(c)},i.onerror=()=>{u(new Error("oops, something went wrong with the file reader."))},i.readAsDataURL(n)})}let un=null;async function $o(){var n=To(1,new Date,i,c);let i=document.getElementById("post-editor").value.trim();const r=document.getElementById("input-title-image").files[0];var u=document.getElementById("check-title-image").checked;if(i===""&&u)return;let c=null;r!=null&&(c=await $r(r)),i===""&&(i=null),await ni.createObject(n),On(null),document.getElementById("post-editor").value="",await xn()}async function Lo(){var n=await ni.getObject(un);let i=document.getElementById("post-editor").value.trim();const r=document.getElementById("input-title-image").files[0];var u=document.getElementById("check-title-image").checked;if(i===""&&!u)return;let c=null;r!=null&&(c=await $r(r)),i===""&&(i=null),n.text=i,u&&(n.img=c),await ni.updateObject(n),document.getElementById("edit-block").style.display="none",document.getElementById("post-publication-button").style.display="block",un=null,On(null),document.getElementById("post-editor").value="",await xn()}async function Do(n){var i=document.getElementById("post-editor");const r=n.target.id,u=parseInt(r.split("-")[2]),c=await ni.getObject(u);document.getElementById("post-editor").value=c.text==null?"":c.text,i.style.height="auto",i.style.height=`${i.scrollHeight+2}px`,On(c.img),scrollTo(0,0),document.getElementById("edit-block").style.display="flex",document.getElementById("post-publication-button").style.display="none",un=u}async function xn(){var n=await ni.getObjects();document.getElementById("edit-block").style.display="none",document.getElementById("edit-post-button-cancel").addEventListener("click",()=>{location.reload()}),document.getElementById("edit-post-button-accept").addEventListener("click",Lo),n.sort((g,_)=>g.createdDateTime<_.createdDateTime?1:-1);const i=document.getElementsByClassName("posts-wrapper")[0];i.innerHTML="";for(let g=0;g<n.length;g++){const _=n[g],C=await ko.getObject(_.userId);i.innerHTML+=Co(_,C)}const r=document.getElementsByClassName("post-delete-button");for(let g=0;g<r.length;g++)r[g].addEventListener("click",C=>{var y=document.getElementById(`post-${H}`);const B=C.target.id,H=parseInt(B.split("-")[2]);ni.deleteObject(H),y.parentNode.removeChild(y)});const u=document.getElementsByClassName("post-edit-button");for(let g=0;g<u.length;g++)u[g].addEventListener("click",Do);var c=document.getElementById("post-editor");function f(){if(c.value===""){c.style.height="calc(1em + 26px)";return}c.style.height="auto",c.style.height=`${c.scrollHeight+2}px`}function E(){window.setTimeout(f,0)}Nt(c,"change",f),Nt(c,"cut",E),Nt(c,"paste",E),Nt(c,"drop",E),Nt(c,"keydown",E),c.focus(),c.select(),f(),document.getElementById("post-publication-button").addEventListener("click",$o)}var Nt;window.attachEvent?Nt=function(n,i,r){n.attachEvent(`on${i}`,r)}:Nt=function(n,i,r){n.addEventListener(i,r,!1)};function On(n){var i=document.getElementById("empty-title-image"),r=document.getElementById("selected-title-image"),u=document.getElementById("check-title-image"),c=document.getElementById("title-image-preview");if(u!=null&&(u.checked=!1),n!=null){var f=n;i.style.display="none",r.style.display="block",r.style.opacity="1.0",r.src=f,c.title="Редактировать изображение"}else i.style.display="block",r.style.display="none",r.style.opacity="1.0",r.src="",c.title="Добавить изображение"}