@zuii/booking 0.1.1 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,94 +1,67 @@
1
- 'use strict';var react=require('react'),dateFns=require('date-fns'),locale=require('date-fns/locale'),calendar=require('@zuii/calendar'),jsxRuntime=require('react/jsx-runtime');var Pr=Object.defineProperty;var Mr=(i,t)=>{for(var e in t)Pr(i,e,{get:t[e],enumerable:true});};var Pe={};Mr(Pe,{afterMain:()=>cn,afterRead:()=>sn,afterWrite:()=>fn,applyStyles:()=>Bt,arrow:()=>Ce,auto:()=>ne,basePlacements:()=>it,beforeMain:()=>an,beforeRead:()=>rn,beforeWrite:()=>un,bottom:()=>L,clippingParents:()=>si,computeStyles:()=>jt,createPopper:()=>fe,createPopperBase:()=>yn,createPopperLite:()=>An,detectOverflow:()=>W,end:()=>ct,eventListeners:()=>Ft,flip:()=>Le,hide:()=>$e,left:()=>C,main:()=>ln,modifierPhases:()=>li,offset:()=>xe,placements:()=>oe,popper:()=>wt,popperGenerator:()=>xt,popperOffsets:()=>Ut,preventOverflow:()=>Ie,read:()=>on,reference:()=>ai,right:()=>D,start:()=>et,top:()=>w,variationPlacements:()=>Oe,viewport:()=>re,write:()=>dn});var w="top",L="bottom",D="right",C="left",ne="auto",it=[w,L,D,C],et="start",ct="end",si="clippingParents",re="viewport",wt="popper",ai="reference",Oe=it.reduce(function(i,t){return i.concat([t+"-"+et,t+"-"+ct])},[]),oe=[].concat(it,[ne]).reduce(function(i,t){return i.concat([t,t+"-"+et,t+"-"+ct])},[]),rn="beforeRead",on="read",sn="afterRead",an="beforeMain",ln="main",cn="afterMain",un="beforeWrite",dn="write",fn="afterWrite",li=[rn,on,sn,an,ln,cn,un,dn,fn];function P(i){return i?(i.nodeName||"").toLowerCase():null}function T(i){if(i==null)return window;if(i.toString()!=="[object Window]"){var t=i.ownerDocument;return t&&t.defaultView||window}return i}function Y(i){var t=T(i).Element;return i instanceof t||i instanceof Element}function x(i){var t=T(i).HTMLElement;return i instanceof t||i instanceof HTMLElement}function Ht(i){if(typeof ShadowRoot>"u")return false;var t=T(i).ShadowRoot;return i instanceof t||i instanceof ShadowRoot}function Rr(i){var t=i.state;Object.keys(t.elements).forEach(function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},o=t.elements[e];!x(o)||!P(o)||(Object.assign(o.style,n),Object.keys(r).forEach(function(s){var a=r[s];a===false?o.removeAttribute(s):o.setAttribute(s,a===true?"":a);}));});}function kr(i){var t=i.state,e={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,e.popper),t.styles=e,t.elements.arrow&&Object.assign(t.elements.arrow.style,e.arrow),function(){Object.keys(t.elements).forEach(function(n){var r=t.elements[n],o=t.attributes[n]||{},s=Object.keys(t.styles.hasOwnProperty(n)?t.styles[n]:e[n]),a=s.reduce(function(c,d){return c[d]="",c},{});!x(r)||!P(r)||(Object.assign(r.style,a),Object.keys(o).forEach(function(c){r.removeAttribute(c);}));});}}var Bt={name:"applyStyles",enabled:true,phase:"write",fn:Rr,effect:kr,requires:["computeStyles"]};function M(i){return i.split("-")[0]}var J=Math.max,Ot=Math.min,nt=Math.round;function Wt(){var i=navigator.userAgentData;return i!=null&&i.brands&&Array.isArray(i.brands)?i.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function se(){return !/^((?!chrome|android).)*safari/i.test(Wt())}function U(i,t,e){t===void 0&&(t=false),e===void 0&&(e=false);var n=i.getBoundingClientRect(),r=1,o=1;t&&x(i)&&(r=i.offsetWidth>0&&nt(n.width)/i.offsetWidth||1,o=i.offsetHeight>0&&nt(n.height)/i.offsetHeight||1);var s=Y(i)?T(i):window,a=s.visualViewport,c=!se()&&e,d=(n.left+(c&&a?a.offsetLeft:0))/r,u=(n.top+(c&&a?a.offsetTop:0))/o,h=n.width/r,p=n.height/o;return {width:h,height:p,top:u,right:d+h,bottom:u+p,left:d,x:d,y:u}}function Ct(i){var t=U(i),e=i.offsetWidth,n=i.offsetHeight;return Math.abs(t.width-e)<=1&&(e=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:i.offsetLeft,y:i.offsetTop,width:e,height:n}}function ae(i,t){var e=t.getRootNode&&t.getRootNode();if(i.contains(t))return true;if(e&&Ht(e)){var n=t;do{if(n&&i.isSameNode(n))return true;n=n.parentNode||n.host;}while(n)}return false}function B(i){return T(i).getComputedStyle(i)}function ci(i){return ["table","td","th"].indexOf(P(i))>=0}function k(i){return ((Y(i)?i.ownerDocument:i.document)||window.document).documentElement}function rt(i){return P(i)==="html"?i:i.assignedSlot||i.parentNode||(Ht(i)?i.host:null)||k(i)}function pn(i){return !x(i)||B(i).position==="fixed"?null:i.offsetParent}function Vr(i){var t=/firefox/i.test(Wt()),e=/Trident/i.test(Wt());if(e&&x(i)){var n=B(i);if(n.position==="fixed")return null}var r=rt(i);for(Ht(r)&&(r=r.host);x(r)&&["html","body"].indexOf(P(r))<0;){var o=B(r);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||t&&o.willChange==="filter"||t&&o.filter&&o.filter!=="none")return r;r=r.parentNode;}return null}function tt(i){for(var t=T(i),e=pn(i);e&&ci(e)&&B(e).position==="static";)e=pn(e);return e&&(P(e)==="html"||P(e)==="body"&&B(e).position==="static")?t:e||Vr(i)||t}function St(i){return ["top","bottom"].indexOf(i)>=0?"x":"y"}function Nt(i,t,e){return J(i,Ot(t,e))}function hn(i,t,e){var n=Nt(i,t,e);return n>e?e:n}function le(){return {top:0,right:0,bottom:0,left:0}}function ce(i){return Object.assign({},le(),i)}function ue(i,t){return t.reduce(function(e,n){return e[n]=i,e},{})}var Hr=function(t,e){return t=typeof t=="function"?t(Object.assign({},e.rects,{placement:e.placement})):t,ce(typeof t!="number"?t:ue(t,it))};function Br(i){var t,e=i.state,n=i.name,r=i.options,o=e.elements.arrow,s=e.modifiersData.popperOffsets,a=M(e.placement),c=St(a),d=[C,D].indexOf(a)>=0,u=d?"height":"width";if(!(!o||!s)){var h=Hr(r.padding,e),p=Ct(o),m=c==="y"?w:C,v=c==="y"?L:D,_=e.rects.reference[u]+e.rects.reference[c]-s[c]-e.rects.popper[u],E=s[c]-e.rects.reference[c],A=tt(o),S=A?c==="y"?A.clientHeight||0:A.clientWidth||0:0,N=_/2-E/2,g=h[m],b=S-p[u]-h[v],y=S/2-p[u]/2+N,O=Nt(g,y,b),R=c;e.modifiersData[n]=(t={},t[R]=O,t.centerOffset=O-y,t);}}function Wr(i){var t=i.state,e=i.options,n=e.element,r=n===void 0?"[data-popper-arrow]":n;r!=null&&(typeof r=="string"&&(r=t.elements.popper.querySelector(r),!r)||ae(t.elements.popper,r)&&(t.elements.arrow=r));}var Ce={name:"arrow",enabled:true,phase:"main",fn:Br,effect:Wr,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function z(i){return i.split("-")[1]}var jr={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Fr(i,t){var e=i.x,n=i.y,r=t.devicePixelRatio||1;return {x:nt(e*r)/r||0,y:nt(n*r)/r||0}}function mn(i){var t,e=i.popper,n=i.popperRect,r=i.placement,o=i.variation,s=i.offsets,a=i.position,c=i.gpuAcceleration,d=i.adaptive,u=i.roundOffsets,h=i.isFixed,p=s.x,m=p===void 0?0:p,v=s.y,_=v===void 0?0:v,E=typeof u=="function"?u({x:m,y:_}):{x:m,y:_};m=E.x,_=E.y;var A=s.hasOwnProperty("x"),S=s.hasOwnProperty("y"),N=C,g=w,b=window;if(d){var y=tt(e),O="clientHeight",R="clientWidth";if(y===T(e)&&(y=k(e),B(y).position!=="static"&&a==="absolute"&&(O="scrollHeight",R="scrollWidth")),y=y,r===w||(r===C||r===D)&&o===ct){g=L;var I=h&&y===b&&b.visualViewport?b.visualViewport.height:y[O];_-=I-n.height,_*=c?1:-1;}if(r===C||(r===w||r===L)&&o===ct){N=D;var $=h&&y===b&&b.visualViewport?b.visualViewport.width:y[R];m-=$-n.width,m*=c?1:-1;}}var V=Object.assign({position:a},d&&jr),Q=u===true?Fr({x:m,y:_},T(e)):{x:m,y:_};if(m=Q.x,_=Q.y,c){var H;return Object.assign({},V,(H={},H[g]=S?"0":"",H[N]=A?"0":"",H.transform=(b.devicePixelRatio||1)<=1?"translate("+m+"px, "+_+"px)":"translate3d("+m+"px, "+_+"px, 0)",H))}return Object.assign({},V,(t={},t[g]=S?_+"px":"",t[N]=A?m+"px":"",t.transform="",t))}function Kr(i){var t=i.state,e=i.options,n=e.gpuAcceleration,r=n===void 0?true:n,o=e.adaptive,s=o===void 0?true:o,a=e.roundOffsets,c=a===void 0?true:a,d={placement:M(t.placement),variation:z(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:r,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,mn(Object.assign({},d,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,mn(Object.assign({},d,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:false,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement});}var jt={name:"computeStyles",enabled:true,phase:"beforeWrite",fn:Kr,data:{}};var Se={passive:true};function Yr(i){var t=i.state,e=i.instance,n=i.options,r=n.scroll,o=r===void 0?true:r,s=n.resize,a=s===void 0?true:s,c=T(t.elements.popper),d=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&d.forEach(function(u){u.addEventListener("scroll",e.update,Se);}),a&&c.addEventListener("resize",e.update,Se),function(){o&&d.forEach(function(u){u.removeEventListener("scroll",e.update,Se);}),a&&c.removeEventListener("resize",e.update,Se);}}var Ft={name:"eventListeners",enabled:true,phase:"write",fn:function(){},effect:Yr,data:{}};var Ur={left:"right",right:"left",bottom:"top",top:"bottom"};function Kt(i){return i.replace(/left|right|bottom|top/g,function(t){return Ur[t]})}var zr={start:"end",end:"start"};function Ne(i){return i.replace(/start|end/g,function(t){return zr[t]})}function Dt(i){var t=T(i),e=t.pageXOffset,n=t.pageYOffset;return {scrollLeft:e,scrollTop:n}}function Lt(i){return U(k(i)).left+Dt(i).scrollLeft}function ui(i,t){var e=T(i),n=k(i),r=e.visualViewport,o=n.clientWidth,s=n.clientHeight,a=0,c=0;if(r){o=r.width,s=r.height;var d=se();(d||!d&&t==="fixed")&&(a=r.offsetLeft,c=r.offsetTop);}return {width:o,height:s,x:a+Lt(i),y:c}}function di(i){var t,e=k(i),n=Dt(i),r=(t=i.ownerDocument)==null?void 0:t.body,o=J(e.scrollWidth,e.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),s=J(e.scrollHeight,e.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),a=-n.scrollLeft+Lt(i),c=-n.scrollTop;return B(r||e).direction==="rtl"&&(a+=J(e.clientWidth,r?r.clientWidth:0)-o),{width:o,height:s,x:a,y:c}}function $t(i){var t=B(i),e=t.overflow,n=t.overflowX,r=t.overflowY;return /auto|scroll|overlay|hidden/.test(e+r+n)}function De(i){return ["html","body","#document"].indexOf(P(i))>=0?i.ownerDocument.body:x(i)&&$t(i)?i:De(rt(i))}function ut(i,t){var e;t===void 0&&(t=[]);var n=De(i),r=n===((e=i.ownerDocument)==null?void 0:e.body),o=T(n),s=r?[o].concat(o.visualViewport||[],$t(n)?n:[]):n,a=t.concat(s);return r?a:a.concat(ut(rt(s)))}function Yt(i){return Object.assign({},i,{left:i.x,top:i.y,right:i.x+i.width,bottom:i.y+i.height})}function qr(i,t){var e=U(i,false,t==="fixed");return e.top=e.top+i.clientTop,e.left=e.left+i.clientLeft,e.bottom=e.top+i.clientHeight,e.right=e.left+i.clientWidth,e.width=i.clientWidth,e.height=i.clientHeight,e.x=e.left,e.y=e.top,e}function _n(i,t,e){return t===re?Yt(ui(i,e)):Y(t)?qr(t,e):Yt(di(k(i)))}function Gr(i){var t=ut(rt(i)),e=["absolute","fixed"].indexOf(B(i).position)>=0,n=e&&x(i)?tt(i):i;return Y(n)?t.filter(function(r){return Y(r)&&ae(r,n)&&P(r)!=="body"}):[]}function fi(i,t,e,n){var r=t==="clippingParents"?Gr(i):[].concat(t),o=[].concat(r,[e]),s=o[0],a=o.reduce(function(c,d){var u=_n(i,d,n);return c.top=J(u.top,c.top),c.right=Ot(u.right,c.right),c.bottom=Ot(u.bottom,c.bottom),c.left=J(u.left,c.left),c},_n(i,s,n));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function de(i){var t=i.reference,e=i.element,n=i.placement,r=n?M(n):null,o=n?z(n):null,s=t.x+t.width/2-e.width/2,a=t.y+t.height/2-e.height/2,c;switch(r){case w:c={x:s,y:t.y-e.height};break;case L:c={x:s,y:t.y+t.height};break;case D:c={x:t.x+t.width,y:a};break;case C:c={x:t.x-e.width,y:a};break;default:c={x:t.x,y:t.y};}var d=r?St(r):null;if(d!=null){var u=d==="y"?"height":"width";switch(o){case et:c[d]=c[d]-(t[u]/2-e[u]/2);break;case ct:c[d]=c[d]+(t[u]/2-e[u]/2);break;}}return c}function W(i,t){t===void 0&&(t={});var e=t,n=e.placement,r=n===void 0?i.placement:n,o=e.strategy,s=o===void 0?i.strategy:o,a=e.boundary,c=a===void 0?si:a,d=e.rootBoundary,u=d===void 0?re:d,h=e.elementContext,p=h===void 0?wt:h,m=e.altBoundary,v=m===void 0?false:m,_=e.padding,E=_===void 0?0:_,A=ce(typeof E!="number"?E:ue(E,it)),S=p===wt?ai:wt,N=i.rects.popper,g=i.elements[v?S:p],b=fi(Y(g)?g:g.contextElement||k(i.elements.popper),c,u,s),y=U(i.elements.reference),O=de({reference:y,element:N,placement:r}),R=Yt(Object.assign({},N,O)),I=p===wt?R:y,$={top:b.top-I.top+A.top,bottom:I.bottom-b.bottom+A.bottom,left:b.left-I.left+A.left,right:I.right-b.right+A.right},V=i.modifiersData.offset;if(p===wt&&V){var Q=V[r];Object.keys($).forEach(function(H){var vt=[D,L].indexOf(H)>=0?1:-1,bt=[w,L].indexOf(H)>=0?"y":"x";$[H]+=Q[bt]*vt;});}return $}function pi(i,t){t===void 0&&(t={});var e=t,n=e.placement,r=e.boundary,o=e.rootBoundary,s=e.padding,a=e.flipVariations,c=e.allowedAutoPlacements,d=c===void 0?oe:c,u=z(n),h=u?a?Oe:Oe.filter(function(v){return z(v)===u}):it,p=h.filter(function(v){return d.indexOf(v)>=0});p.length===0&&(p=h);var m=p.reduce(function(v,_){return v[_]=W(i,{placement:_,boundary:r,rootBoundary:o,padding:s})[M(_)],v},{});return Object.keys(m).sort(function(v,_){return m[v]-m[_]})}function Xr(i){if(M(i)===ne)return [];var t=Kt(i);return [Ne(i),t,Ne(t)]}function Qr(i){var t=i.state,e=i.options,n=i.name;if(!t.modifiersData[n]._skip){for(var r=e.mainAxis,o=r===void 0?true:r,s=e.altAxis,a=s===void 0?true:s,c=e.fallbackPlacements,d=e.padding,u=e.boundary,h=e.rootBoundary,p=e.altBoundary,m=e.flipVariations,v=m===void 0?true:m,_=e.allowedAutoPlacements,E=t.options.placement,A=M(E),S=A===E,N=c||(S||!v?[Kt(E)]:Xr(E)),g=[E].concat(N).reduce(function(Vt,lt){return Vt.concat(M(lt)===ne?pi(t,{placement:lt,boundary:u,rootBoundary:h,padding:d,flipVariations:v,allowedAutoPlacements:_}):lt)},[]),b=t.rects.reference,y=t.rects.popper,O=new Map,R=true,I=g[0],$=0;$<g.length;$++){var V=g[$],Q=M(V),H=z(V)===et,vt=[w,L].indexOf(Q)>=0,bt=vt?"width":"height",F=W(t,{placement:V,boundary:u,rootBoundary:h,altBoundary:p,padding:d}),Z=vt?H?D:C:H?L:w;b[bt]>y[bt]&&(Z=Kt(Z));var be=Kt(Z),yt=[];if(o&&yt.push(F[Q]<=0),a&&yt.push(F[Z]<=0,F[be]<=0),yt.every(function(Vt){return Vt})){I=V,R=false;break}O.set(V,yt);}if(R)for(var ye=v?3:1,ii=function(lt){var ie=g.find(function(Te){var At=O.get(Te);if(At)return At.slice(0,lt).every(function(ni){return ni})});if(ie)return I=ie,"break"},ee=ye;ee>0;ee--){var Ae=ii(ee);if(Ae==="break")break}t.placement!==I&&(t.modifiersData[n]._skip=true,t.placement=I,t.reset=true);}}var Le={name:"flip",enabled:true,phase:"main",fn:Qr,requiresIfExists:["offset"],data:{_skip:false}};function gn(i,t,e){return e===void 0&&(e={x:0,y:0}),{top:i.top-t.height-e.y,right:i.right-t.width+e.x,bottom:i.bottom-t.height+e.y,left:i.left-t.width-e.x}}function En(i){return [w,D,L,C].some(function(t){return i[t]>=0})}function Zr(i){var t=i.state,e=i.name,n=t.rects.reference,r=t.rects.popper,o=t.modifiersData.preventOverflow,s=W(t,{elementContext:"reference"}),a=W(t,{altBoundary:true}),c=gn(s,n),d=gn(a,r,o),u=En(c),h=En(d);t.modifiersData[e]={referenceClippingOffsets:c,popperEscapeOffsets:d,isReferenceHidden:u,hasPopperEscaped:h},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":h});}var $e={name:"hide",enabled:true,phase:"main",requiresIfExists:["preventOverflow"],fn:Zr};function Jr(i,t,e){var n=M(i),r=[C,w].indexOf(n)>=0?-1:1,o=typeof e=="function"?e(Object.assign({},t,{placement:i})):e,s=o[0],a=o[1];return s=s||0,a=(a||0)*r,[C,D].indexOf(n)>=0?{x:a,y:s}:{x:s,y:a}}function to(i){var t=i.state,e=i.options,n=i.name,r=e.offset,o=r===void 0?[0,0]:r,s=oe.reduce(function(u,h){return u[h]=Jr(h,t.rects,o),u},{}),a=s[t.placement],c=a.x,d=a.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=d),t.modifiersData[n]=s;}var xe={name:"offset",enabled:true,phase:"main",requires:["popperOffsets"],fn:to};function eo(i){var t=i.state,e=i.name;t.modifiersData[e]=de({reference:t.rects.reference,element:t.rects.popper,placement:t.placement});}var Ut={name:"popperOffsets",enabled:true,phase:"read",fn:eo,data:{}};function hi(i){return i==="x"?"y":"x"}function io(i){var t=i.state,e=i.options,n=i.name,r=e.mainAxis,o=r===void 0?true:r,s=e.altAxis,a=s===void 0?false:s,c=e.boundary,d=e.rootBoundary,u=e.altBoundary,h=e.padding,p=e.tether,m=p===void 0?true:p,v=e.tetherOffset,_=v===void 0?0:v,E=W(t,{boundary:c,rootBoundary:d,padding:h,altBoundary:u}),A=M(t.placement),S=z(t.placement),N=!S,g=St(A),b=hi(g),y=t.modifiersData.popperOffsets,O=t.rects.reference,R=t.rects.popper,I=typeof _=="function"?_(Object.assign({},t.rects,{placement:t.placement})):_,$=typeof I=="number"?{mainAxis:I,altAxis:I}:Object.assign({mainAxis:0,altAxis:0},I),V=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,Q={x:0,y:0};if(y){if(o){var H,vt=g==="y"?w:C,bt=g==="y"?L:D,F=g==="y"?"height":"width",Z=y[g],be=Z+E[vt],yt=Z-E[bt],ye=m?-R[F]/2:0,ii=S===et?O[F]:R[F],ee=S===et?-R[F]:-O[F],Ae=t.elements.arrow,Vt=m&&Ae?Ct(Ae):{width:0,height:0},lt=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:le(),ie=lt[vt],Te=lt[bt],At=Nt(0,O[F],Vt[F]),ni=N?O[F]/2-ye-At-ie-$.mainAxis:ii-At-ie-$.mainAxis,Nr=N?-O[F]/2+ye+At+Te+$.mainAxis:ee+At+Te+$.mainAxis,ri=t.elements.arrow&&tt(t.elements.arrow),Dr=ri?g==="y"?ri.clientTop||0:ri.clientLeft||0:0,qi=(H=V?.[g])!=null?H:0,Lr=Z+ni-qi-Dr,$r=Z+Nr-qi,Gi=Nt(m?Ot(be,Lr):be,Z,m?J(yt,$r):yt);y[g]=Gi,Q[g]=Gi-Z;}if(a){var Xi,xr=g==="x"?w:C,Ir=g==="x"?L:D,Tt=y[b],we=b==="y"?"height":"width",Qi=Tt+E[xr],Zi=Tt-E[Ir],oi=[w,C].indexOf(A)!==-1,Ji=(Xi=V?.[b])!=null?Xi:0,tn=oi?Qi:Tt-O[we]-R[we]-Ji+$.altAxis,en=oi?Tt+O[we]+R[we]-Ji-$.altAxis:Zi,nn=m&&oi?hn(tn,Tt,en):Nt(m?tn:Qi,Tt,m?en:Zi);y[b]=nn,Q[b]=nn-Tt;}t.modifiersData[n]=Q;}}var Ie={name:"preventOverflow",enabled:true,phase:"main",fn:io,requiresIfExists:["offset"]};function mi(i){return {scrollLeft:i.scrollLeft,scrollTop:i.scrollTop}}function _i(i){return i===T(i)||!x(i)?Dt(i):mi(i)}function no(i){var t=i.getBoundingClientRect(),e=nt(t.width)/i.offsetWidth||1,n=nt(t.height)/i.offsetHeight||1;return e!==1||n!==1}function gi(i,t,e){e===void 0&&(e=false);var n=x(t),r=x(t)&&no(t),o=k(t),s=U(i,r,e),a={scrollLeft:0,scrollTop:0},c={x:0,y:0};return (n||!n&&!e)&&((P(t)!=="body"||$t(o))&&(a=_i(t)),x(t)?(c=U(t,true),c.x+=t.clientLeft,c.y+=t.clientTop):o&&(c.x=Lt(o))),{x:s.left+a.scrollLeft-c.x,y:s.top+a.scrollTop-c.y,width:s.width,height:s.height}}function ro(i){var t=new Map,e=new Set,n=[];i.forEach(function(o){t.set(o.name,o);});function r(o){e.add(o.name);var s=[].concat(o.requires||[],o.requiresIfExists||[]);s.forEach(function(a){if(!e.has(a)){var c=t.get(a);c&&r(c);}}),n.push(o);}return i.forEach(function(o){e.has(o.name)||r(o);}),n}function Ei(i){var t=ro(i);return li.reduce(function(e,n){return e.concat(t.filter(function(r){return r.phase===n}))},[])}function vi(i){var t;return function(){return t||(t=new Promise(function(e){Promise.resolve().then(function(){t=void 0,e(i());});})),t}}function bi(i){var t=i.reduce(function(e,n){var r=e[n.name];return e[n.name]=r?Object.assign({},r,n,{options:Object.assign({},r.options,n.options),data:Object.assign({},r.data,n.data)}):n,e},{});return Object.keys(t).map(function(e){return t[e]})}var vn={placement:"bottom",modifiers:[],strategy:"absolute"};function bn(){for(var i=arguments.length,t=new Array(i),e=0;e<i;e++)t[e]=arguments[e];return !t.some(function(n){return !(n&&typeof n.getBoundingClientRect=="function")})}function xt(i){i===void 0&&(i={});var t=i,e=t.defaultModifiers,n=e===void 0?[]:e,r=t.defaultOptions,o=r===void 0?vn:r;return function(a,c,d){d===void 0&&(d=o);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},vn,o),modifiersData:{},elements:{reference:a,popper:c},attributes:{},styles:{}},h=[],p=false,m={state:u,setOptions:function(A){var S=typeof A=="function"?A(u.options):A;_(),u.options=Object.assign({},o,u.options,S),u.scrollParents={reference:Y(a)?ut(a):a.contextElement?ut(a.contextElement):[],popper:ut(c)};var N=Ei(bi([].concat(n,u.options.modifiers)));return u.orderedModifiers=N.filter(function(g){return g.enabled}),v(),m.update()},forceUpdate:function(){if(!p){var A=u.elements,S=A.reference,N=A.popper;if(bn(S,N)){u.rects={reference:gi(S,tt(N),u.options.strategy==="fixed"),popper:Ct(N)},u.reset=false,u.placement=u.options.placement,u.orderedModifiers.forEach(function($){return u.modifiersData[$.name]=Object.assign({},$.data)});for(var g=0;g<u.orderedModifiers.length;g++){if(u.reset===true){u.reset=false,g=-1;continue}var b=u.orderedModifiers[g],y=b.fn,O=b.options,R=O===void 0?{}:O,I=b.name;typeof y=="function"&&(u=y({state:u,options:R,name:I,instance:m})||u);}}}},update:vi(function(){return new Promise(function(E){m.forceUpdate(),E(u);})}),destroy:function(){_(),p=true;}};if(!bn(a,c))return m;m.setOptions(d).then(function(E){!p&&d.onFirstUpdate&&d.onFirstUpdate(E);});function v(){u.orderedModifiers.forEach(function(E){var A=E.name,S=E.options,N=S===void 0?{}:S,g=E.effect;if(typeof g=="function"){var b=g({state:u,name:A,instance:m,options:N}),y=function(){};h.push(b||y);}});}function _(){h.forEach(function(E){return E()}),h=[];}return m}}var yn=xt();var oo=[Ft,Ut,jt,Bt],An=xt({defaultModifiers:oo});var so=[Ft,Ut,jt,Bt,xe,Le,Ie,Ce,$e],fe=xt({defaultModifiers:so});var dt=new Map,yi={set(i,t,e){dt.has(i)||dt.set(i,new Map);let n=dt.get(i);if(!n.has(t)&&n.size!==0){console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(n.keys())[0]}.`);return}n.set(t,e);},get(i,t){return dt.has(i)&&dt.get(i).get(t)||null},remove(i,t){if(!dt.has(i))return;let e=dt.get(i);e.delete(t),e.size===0&&dt.delete(i);}},ao=1e6,lo=1e3,ki="transitionend",Qn=i=>(i&&window.CSS&&window.CSS.escape&&(i=i.replace(/#([^\s"#']+)/g,(t,e)=>`#${CSS.escape(e)}`)),i),co=i=>i==null?`${i}`:Object.prototype.toString.call(i).match(/\s([a-z]+)/i)[1].toLowerCase(),uo=i=>{do i+=Math.floor(Math.random()*ao);while(document.getElementById(i));return i},fo=i=>{if(!i)return 0;let{transitionDuration:t,transitionDelay:e}=window.getComputedStyle(i),n=Number.parseFloat(t),r=Number.parseFloat(e);return !n&&!r?0:(t=t.split(",")[0],e=e.split(",")[0],(Number.parseFloat(t)+Number.parseFloat(e))*lo)},Zn=i=>{i.dispatchEvent(new Event(ki));},ot=i=>!i||typeof i!="object"?false:(typeof i.jquery<"u"&&(i=i[0]),typeof i.nodeType<"u"),ft=i=>ot(i)?i.jquery?i[0]:i:typeof i=="string"&&i.length>0?document.querySelector(Qn(i)):null,Jt=i=>{if(!ot(i)||i.getClientRects().length===0)return false;let t=getComputedStyle(i).getPropertyValue("visibility")==="visible",e=i.closest("details:not([open])");if(!e)return t;if(e!==i){let n=i.closest("summary");if(n&&n.parentNode!==e||n===null)return false}return t},pt=i=>!i||i.nodeType!==Node.ELEMENT_NODE||i.classList.contains("disabled")?true:typeof i.disabled<"u"?i.disabled:i.hasAttribute("disabled")&&i.getAttribute("disabled")!=="false",Jn=i=>{if(!document.documentElement.attachShadow)return null;if(typeof i.getRootNode=="function"){let t=i.getRootNode();return t instanceof ShadowRoot?t:null}return i instanceof ShadowRoot?i:i.parentNode?Jn(i.parentNode):null},Fe=()=>{},Ee=i=>{i.offsetHeight;},tr=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,Ai=[],po=i=>{document.readyState==="loading"?(Ai.length||document.addEventListener("DOMContentLoaded",()=>{for(let t of Ai)t();}),Ai.push(i)):i();},q=()=>document.documentElement.dir==="rtl",X=i=>{po(()=>{let t=tr();if(t){let e=i.NAME,n=t.fn[e];t.fn[e]=i.jQueryInterface,t.fn[e].Constructor=i,t.fn[e].noConflict=()=>(t.fn[e]=n,i.jQueryInterface);}});},j=(i,t=[],e=i)=>typeof i=="function"?i.call(...t):e,er=(i,t,e=true)=>{if(!e){j(i);return}let r=fo(t)+5,o=false,s=({target:a})=>{a===t&&(o=true,t.removeEventListener(ki,s),j(i));};t.addEventListener(ki,s),setTimeout(()=>{o||Zn(t);},r);},ji=(i,t,e,n)=>{let r=i.length,o=i.indexOf(t);return o===-1?!e&&n?i[r-1]:i[0]:(o+=e?1:-1,n&&(o=(o+r)%r),i[Math.max(0,Math.min(o,r-1))])},ho=/[^.]*(?=\..*)\.|.*/,mo=/\..*/,_o=/::\d+$/,Ti={},Tn=1,ir={mouseenter:"mouseover",mouseleave:"mouseout"},go=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 nr(i,t){return t&&`${t}::${Tn++}`||i.uidEvent||Tn++}function rr(i){let t=nr(i);return i.uidEvent=t,Ti[t]=Ti[t]||{},Ti[t]}function Eo(i,t){return function e(n){return Fi(n,{delegateTarget:i}),e.oneOff&&l.off(i,n.type,t),t.apply(i,[n])}}function vo(i,t,e){return function n(r){let o=i.querySelectorAll(t);for(let{target:s}=r;s&&s!==this;s=s.parentNode)for(let a of o)if(a===s)return Fi(r,{delegateTarget:s}),n.oneOff&&l.off(i,r.type,t,e),e.apply(s,[r])}}function or(i,t,e=null){return Object.values(i).find(n=>n.callable===t&&n.delegationSelector===e)}function sr(i,t,e){let n=typeof t=="string",r=n?e:t||e,o=ar(i);return go.has(o)||(o=i),[n,r,o]}function wn(i,t,e,n,r){if(typeof t!="string"||!i)return;let[o,s,a]=sr(t,e,n);t in ir&&(s=(v=>function(_){if(!_.relatedTarget||_.relatedTarget!==_.delegateTarget&&!_.delegateTarget.contains(_.relatedTarget))return v.call(this,_)})(s));let c=rr(i),d=c[a]||(c[a]={}),u=or(d,s,o?e:null);if(u){u.oneOff=u.oneOff&&r;return}let h=nr(s,t.replace(ho,"")),p=o?vo(i,e,s):Eo(i,s);p.delegationSelector=o?e:null,p.callable=s,p.oneOff=r,p.uidEvent=h,d[h]=p,i.addEventListener(a,p,o);}function Vi(i,t,e,n,r){let o=or(t[e],n,r);o&&(i.removeEventListener(e,o,!!r),delete t[e][o.uidEvent]);}function bo(i,t,e,n){let r=t[e]||{};for(let[o,s]of Object.entries(r))o.includes(n)&&Vi(i,t,e,s.callable,s.delegationSelector);}function ar(i){return i=i.replace(mo,""),ir[i]||i}var l={on(i,t,e,n){wn(i,t,e,n,false);},one(i,t,e,n){wn(i,t,e,n,true);},off(i,t,e,n){if(typeof t!="string"||!i)return;let[r,o,s]=sr(t,e,n),a=s!==t,c=rr(i),d=c[s]||{},u=t.startsWith(".");if(typeof o<"u"){if(!Object.keys(d).length)return;Vi(i,c,s,o,r?e:null);return}if(u)for(let h of Object.keys(c))bo(i,c,h,t.slice(1));for(let[h,p]of Object.entries(d)){let m=h.replace(_o,"");(!a||t.includes(m))&&Vi(i,c,s,p.callable,p.delegationSelector);}},trigger(i,t,e){if(typeof t!="string"||!i)return null;let n=tr(),r=ar(t),o=t!==r,s=null,a=true,c=true,d=false;o&&n&&(s=n.Event(t,e),n(i).trigger(s),a=!s.isPropagationStopped(),c=!s.isImmediatePropagationStopped(),d=s.isDefaultPrevented());let u=Fi(new Event(t,{bubbles:a,cancelable:true}),e);return d&&u.preventDefault(),c&&i.dispatchEvent(u),u.defaultPrevented&&s&&s.preventDefault(),u}};function Fi(i,t={}){for(let[e,n]of Object.entries(t))try{i[e]=n;}catch{Object.defineProperty(i,e,{configurable:true,get(){return n}});}return i}function On(i){if(i==="true")return true;if(i==="false")return false;if(i===Number(i).toString())return Number(i);if(i===""||i==="null")return null;if(typeof i!="string")return i;try{return JSON.parse(decodeURIComponent(i))}catch{return i}}function wi(i){return i.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}var st={setDataAttribute(i,t,e){i.setAttribute(`data-bs-${wi(t)}`,e);},removeDataAttribute(i,t){i.removeAttribute(`data-bs-${wi(t)}`);},getDataAttributes(i){if(!i)return {};let t={},e=Object.keys(i.dataset).filter(n=>n.startsWith("bs")&&!n.startsWith("bsConfig"));for(let n of e){let r=n.replace(/^bs/,"");r=r.charAt(0).toLowerCase()+r.slice(1),t[r]=On(i.dataset[n]);}return t},getDataAttribute(i,t){return On(i.getAttribute(`data-bs-${wi(t)}`))}},Mt=class{static get Default(){return {}}static get DefaultType(){return {}}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}_getConfig(t){return t=this._mergeConfigObj(t),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}_configAfterMerge(t){return t}_mergeConfigObj(t,e){let n=ot(e)?st.getDataAttribute(e,"config"):{};return {...this.constructor.Default,...typeof n=="object"?n:{},...ot(e)?st.getDataAttributes(e):{},...typeof t=="object"?t:{}}}_typeCheckConfig(t,e=this.constructor.DefaultType){for(let[n,r]of Object.entries(e)){let o=t[n],s=ot(o)?"element":co(o);if(!new RegExp(r).test(s))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${n}" provided type "${s}" but expected type "${r}".`)}}},yo="5.3.8",K=class extends Mt{constructor(t,e){super(),t=ft(t),t&&(this._element=t,this._config=this._getConfig(e),yi.set(this._element,this.constructor.DATA_KEY,this));}dispose(){yi.remove(this._element,this.constructor.DATA_KEY),l.off(this._element,this.constructor.EVENT_KEY);for(let t of Object.getOwnPropertyNames(this))this[t]=null;}_queueCallback(t,e,n=true){er(t,e,n);}_getConfig(t){return t=this._mergeConfigObj(t,this._element),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}static getInstance(t){return yi.get(ft(t),this.DATA_KEY)}static getOrCreateInstance(t,e={}){return this.getInstance(t)||new this(t,typeof e=="object"?e:null)}static get VERSION(){return yo}static get DATA_KEY(){return `bs.${this.NAME}`}static get EVENT_KEY(){return `.${this.DATA_KEY}`}static eventName(t){return `${t}${this.EVENT_KEY}`}},Oi=i=>{let t=i.getAttribute("data-bs-target");if(!t||t==="#"){let e=i.getAttribute("href");if(!e||!e.includes("#")&&!e.startsWith("."))return null;e.includes("#")&&!e.startsWith("#")&&(e=`#${e.split("#")[1]}`),t=e&&e!=="#"?e.trim():null;}return t?t.split(",").map(e=>Qn(e)).join(","):null},f={find(i,t=document.documentElement){return [].concat(...Element.prototype.querySelectorAll.call(t,i))},findOne(i,t=document.documentElement){return Element.prototype.querySelector.call(t,i)},children(i,t){return [].concat(...i.children).filter(e=>e.matches(t))},parents(i,t){let e=[],n=i.parentNode.closest(t);for(;n;)e.push(n),n=n.parentNode.closest(t);return e},prev(i,t){let e=i.previousElementSibling;for(;e;){if(e.matches(t))return [e];e=e.previousElementSibling;}return []},next(i,t){let e=i.nextElementSibling;for(;e;){if(e.matches(t))return [e];e=e.nextElementSibling;}return []},focusableChildren(i){let t=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map(e=>`${e}:not([tabindex^="-"])`).join(",");return this.find(t,i).filter(e=>!pt(e)&&Jt(e))},getSelectorFromElement(i){let t=Oi(i);return t&&f.findOne(t)?t:null},getElementFromSelector(i){let t=Oi(i);return t?f.findOne(t):null},getMultipleElementsFromSelector(i){let t=Oi(i);return t?f.find(t):[]}},Je=(i,t="hide")=>{let e=`click.dismiss${i.EVENT_KEY}`,n=i.NAME;l.on(document,e,`[data-bs-dismiss="${n}"]`,function(r){if(["A","AREA"].includes(this.tagName)&&r.preventDefault(),pt(this))return;let o=f.getElementFromSelector(this)||this.closest(`.${n}`);i.getOrCreateInstance(o)[t]();});},Ao="alert",To="bs.alert",lr=`.${To}`,wo=`close${lr}`,Oo=`closed${lr}`,Co="fade",So="show",Ke=class i extends K{static get NAME(){return Ao}close(){if(l.trigger(this._element,wo).defaultPrevented)return;this._element.classList.remove(So);let e=this._element.classList.contains(Co);this._queueCallback(()=>this._destroyElement(),this._element,e);}_destroyElement(){this._element.remove(),l.trigger(this._element,Oo),this.dispose();}static jQueryInterface(t){return this.each(function(){let e=i.getOrCreateInstance(this);if(typeof t=="string"){if(e[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method named "${t}"`);e[t](this);}})}};Je(Ke,"close");X(Ke);var No="button",Do="bs.button",Lo=`.${Do}`,$o=".data-api",xo="active",Cn='[data-bs-toggle="button"]',Io=`click${Lo}${$o}`,Ye=class i extends K{static get NAME(){return No}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle(xo));}static jQueryInterface(t){return this.each(function(){let e=i.getOrCreateInstance(this);t==="toggle"&&e[t]();})}};l.on(document,Io,Cn,i=>{i.preventDefault();let t=i.target.closest(Cn);Ye.getOrCreateInstance(t).toggle();});X(Ye);var Po="swipe",te=".bs.swipe",Mo=`touchstart${te}`,Ro=`touchmove${te}`,ko=`touchend${te}`,Vo=`pointerdown${te}`,Ho=`pointerup${te}`,Bo="touch",Wo="pen",jo="pointer-event",Fo=40,Ko={endCallback:null,leftCallback:null,rightCallback:null},Yo={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"},Ue=class i extends Mt{constructor(t,e){super(),this._element=t,!(!t||!i.isSupported())&&(this._config=this._getConfig(e),this._deltaX=0,this._supportPointerEvents=!!window.PointerEvent,this._initEvents());}static get Default(){return Ko}static get DefaultType(){return Yo}static get NAME(){return Po}dispose(){l.off(this._element,te);}_start(t){if(!this._supportPointerEvents){this._deltaX=t.touches[0].clientX;return}this._eventIsPointerPenTouch(t)&&(this._deltaX=t.clientX);}_end(t){this._eventIsPointerPenTouch(t)&&(this._deltaX=t.clientX-this._deltaX),this._handleSwipe(),j(this._config.endCallback);}_move(t){this._deltaX=t.touches&&t.touches.length>1?0:t.touches[0].clientX-this._deltaX;}_handleSwipe(){let t=Math.abs(this._deltaX);if(t<=Fo)return;let e=t/this._deltaX;this._deltaX=0,e&&j(e>0?this._config.rightCallback:this._config.leftCallback);}_initEvents(){this._supportPointerEvents?(l.on(this._element,Vo,t=>this._start(t)),l.on(this._element,Ho,t=>this._end(t)),this._element.classList.add(jo)):(l.on(this._element,Mo,t=>this._start(t)),l.on(this._element,Ro,t=>this._move(t)),l.on(this._element,ko,t=>this._end(t)));}_eventIsPointerPenTouch(t){return this._supportPointerEvents&&(t.pointerType===Wo||t.pointerType===Bo)}static isSupported(){return "ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}},Uo="carousel",zo="bs.carousel",gt=`.${zo}`,cr=".data-api",qo="ArrowLeft",Go="ArrowRight",Xo=500,pe="next",zt="prev",Gt="left",We="right",Qo=`slide${gt}`,Ci=`slid${gt}`,Zo=`keydown${gt}`,Jo=`mouseenter${gt}`,ts=`mouseleave${gt}`,es=`dragstart${gt}`,is=`load${gt}${cr}`,ns=`click${gt}${cr}`,ur="carousel",Me="active",rs="slide",os="carousel-item-end",ss="carousel-item-start",as="carousel-item-next",ls="carousel-item-prev",dr=".active",fr=".carousel-item",cs=dr+fr,us=".carousel-item img",ds=".carousel-indicators",fs="[data-bs-slide], [data-bs-slide-to]",ps='[data-bs-ride="carousel"]',hs={[qo]:We,[Go]:Gt},ms={interval:5e3,keyboard:true,pause:"hover",ride:false,touch:true,wrap:true},_s={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"},me=class i extends K{constructor(t,e){super(t,e),this._interval=null,this._activeElement=null,this._isSliding=false,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=f.findOne(ds,this._element),this._addEventListeners(),this._config.ride===ur&&this.cycle();}static get Default(){return ms}static get DefaultType(){return _s}static get NAME(){return Uo}next(){this._slide(pe);}nextWhenVisible(){!document.hidden&&Jt(this._element)&&this.next();}prev(){this._slide(zt);}pause(){this._isSliding&&Zn(this._element),this._clearInterval();}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval(()=>this.nextWhenVisible(),this._config.interval);}_maybeEnableCycle(){if(this._config.ride){if(this._isSliding){l.one(this._element,Ci,()=>this.cycle());return}this.cycle();}}to(t){let e=this._getItems();if(t>e.length-1||t<0)return;if(this._isSliding){l.one(this._element,Ci,()=>this.to(t));return}let n=this._getItemIndex(this._getActive());if(n===t)return;let r=t>n?pe:zt;this._slide(r,e[t]);}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose();}_configAfterMerge(t){return t.defaultInterval=t.interval,t}_addEventListeners(){this._config.keyboard&&l.on(this._element,Zo,t=>this._keydown(t)),this._config.pause==="hover"&&(l.on(this._element,Jo,()=>this.pause()),l.on(this._element,ts,()=>this._maybeEnableCycle())),this._config.touch&&Ue.isSupported()&&this._addTouchEventListeners();}_addTouchEventListeners(){for(let n of f.find(us,this._element))l.on(n,es,r=>r.preventDefault());let e={leftCallback:()=>this._slide(this._directionToOrder(Gt)),rightCallback:()=>this._slide(this._directionToOrder(We)),endCallback:()=>{this._config.pause==="hover"&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(()=>this._maybeEnableCycle(),Xo+this._config.interval));}};this._swipeHelper=new Ue(this._element,e);}_keydown(t){if(/input|textarea/i.test(t.target.tagName))return;let e=hs[t.key];e&&(t.preventDefault(),this._slide(this._directionToOrder(e)));}_getItemIndex(t){return this._getItems().indexOf(t)}_setActiveIndicatorElement(t){if(!this._indicatorsElement)return;let e=f.findOne(dr,this._indicatorsElement);e.classList.remove(Me),e.removeAttribute("aria-current");let n=f.findOne(`[data-bs-slide-to="${t}"]`,this._indicatorsElement);n&&(n.classList.add(Me),n.setAttribute("aria-current","true"));}_updateInterval(){let t=this._activeElement||this._getActive();if(!t)return;let e=Number.parseInt(t.getAttribute("data-bs-interval"),10);this._config.interval=e||this._config.defaultInterval;}_slide(t,e=null){if(this._isSliding)return;let n=this._getActive(),r=t===pe,o=e||ji(this._getItems(),n,r,this._config.wrap);if(o===n)return;let s=this._getItemIndex(o),a=m=>l.trigger(this._element,m,{relatedTarget:o,direction:this._orderToDirection(t),from:this._getItemIndex(n),to:s});if(a(Qo).defaultPrevented||!n||!o)return;let d=!!this._interval;this.pause(),this._isSliding=true,this._setActiveIndicatorElement(s),this._activeElement=o;let u=r?ss:os,h=r?as:ls;o.classList.add(h),Ee(o),n.classList.add(u),o.classList.add(u);let p=()=>{o.classList.remove(u,h),o.classList.add(Me),n.classList.remove(Me,h,u),this._isSliding=false,a(Ci);};this._queueCallback(p,n,this._isAnimated()),d&&this.cycle();}_isAnimated(){return this._element.classList.contains(rs)}_getActive(){return f.findOne(cs,this._element)}_getItems(){return f.find(fr,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null);}_directionToOrder(t){return q()?t===Gt?zt:pe:t===Gt?pe:zt}_orderToDirection(t){return q()?t===zt?Gt:We:t===zt?We:Gt}static jQueryInterface(t){return this.each(function(){let e=i.getOrCreateInstance(this,t);if(typeof t=="number"){e.to(t);return}if(typeof t=="string"){if(e[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method named "${t}"`);e[t]();}})}};l.on(document,ns,fs,function(i){let t=f.getElementFromSelector(this);if(!t||!t.classList.contains(ur))return;i.preventDefault();let e=me.getOrCreateInstance(t),n=this.getAttribute("data-bs-slide-to");if(n){e.to(n),e._maybeEnableCycle();return}if(st.getDataAttribute(this,"slide")==="next"){e.next(),e._maybeEnableCycle();return}e.prev(),e._maybeEnableCycle();});l.on(window,is,()=>{let i=f.find(ps);for(let t of i)me.getOrCreateInstance(t);});X(me);var gs="collapse",Es="bs.collapse",ve=`.${Es}`,vs=".data-api",bs=`show${ve}`,ys=`shown${ve}`,As=`hide${ve}`,Ts=`hidden${ve}`,ws=`click${ve}${vs}`,Si="show",Qt="collapse",Re="collapsing",Os="collapsed",Cs=`:scope .${Qt} .${Qt}`,Ss="collapse-horizontal",Ns="width",Ds="height",Ls=".collapse.show, .collapse.collapsing",Hi='[data-bs-toggle="collapse"]',$s={parent:null,toggle:true},xs={parent:"(null|element)",toggle:"boolean"},ze=class i extends K{constructor(t,e){super(t,e),this._isTransitioning=false,this._triggerArray=[];let n=f.find(Hi);for(let r of n){let o=f.getSelectorFromElement(r),s=f.find(o).filter(a=>a===this._element);o!==null&&s.length&&this._triggerArray.push(r);}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle();}static get Default(){return $s}static get DefaultType(){return xs}static get NAME(){return gs}toggle(){this._isShown()?this.hide():this.show();}show(){if(this._isTransitioning||this._isShown())return;let t=[];if(this._config.parent&&(t=this._getFirstLevelChildren(Ls).filter(a=>a!==this._element).map(a=>i.getOrCreateInstance(a,{toggle:false}))),t.length&&t[0]._isTransitioning||l.trigger(this._element,bs).defaultPrevented)return;for(let a of t)a.hide();let n=this._getDimension();this._element.classList.remove(Qt),this._element.classList.add(Re),this._element.style[n]=0,this._addAriaAndCollapsedClass(this._triggerArray,true),this._isTransitioning=true;let r=()=>{this._isTransitioning=false,this._element.classList.remove(Re),this._element.classList.add(Qt,Si),this._element.style[n]="",l.trigger(this._element,ys);},s=`scroll${n[0].toUpperCase()+n.slice(1)}`;this._queueCallback(r,this._element,true),this._element.style[n]=`${this._element[s]}px`;}hide(){if(this._isTransitioning||!this._isShown()||l.trigger(this._element,As).defaultPrevented)return;let e=this._getDimension();this._element.style[e]=`${this._element.getBoundingClientRect()[e]}px`,Ee(this._element),this._element.classList.add(Re),this._element.classList.remove(Qt,Si);for(let r of this._triggerArray){let o=f.getElementFromSelector(r);o&&!this._isShown(o)&&this._addAriaAndCollapsedClass([r],false);}this._isTransitioning=true;let n=()=>{this._isTransitioning=false,this._element.classList.remove(Re),this._element.classList.add(Qt),l.trigger(this._element,Ts);};this._element.style[e]="",this._queueCallback(n,this._element,true);}_isShown(t=this._element){return t.classList.contains(Si)}_configAfterMerge(t){return t.toggle=!!t.toggle,t.parent=ft(t.parent),t}_getDimension(){return this._element.classList.contains(Ss)?Ns:Ds}_initializeChildren(){if(!this._config.parent)return;let t=this._getFirstLevelChildren(Hi);for(let e of t){let n=f.getElementFromSelector(e);n&&this._addAriaAndCollapsedClass([e],this._isShown(n));}}_getFirstLevelChildren(t){let e=f.find(Cs,this._config.parent);return f.find(t,this._config.parent).filter(n=>!e.includes(n))}_addAriaAndCollapsedClass(t,e){if(t.length)for(let n of t)n.classList.toggle(Os,!e),n.setAttribute("aria-expanded",e);}static jQueryInterface(t){let e={};return typeof t=="string"&&/show|hide/.test(t)&&(e.toggle=false),this.each(function(){let n=i.getOrCreateInstance(this,e);if(typeof t=="string"){if(typeof n[t]>"u")throw new TypeError(`No method named "${t}"`);n[t]();}})}};l.on(document,ws,Hi,function(i){(i.target.tagName==="A"||i.delegateTarget&&i.delegateTarget.tagName==="A")&&i.preventDefault();for(let t of f.getMultipleElementsFromSelector(this))ze.getOrCreateInstance(t,{toggle:false}).toggle();});X(ze);var Sn="dropdown",Is="bs.dropdown",Rt=`.${Is}`,Ki=".data-api",Ps="Escape",Nn="Tab",Ms="ArrowUp",Dn="ArrowDown",Rs=2,ks=`hide${Rt}`,Vs=`hidden${Rt}`,Hs=`show${Rt}`,Bs=`shown${Rt}`,pr=`click${Rt}${Ki}`,hr=`keydown${Rt}${Ki}`,Ws=`keyup${Rt}${Ki}`,Xt="show",js="dropup",Fs="dropend",Ks="dropstart",Ys="dropup-center",Us="dropdown-center",It='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',zs=`${It}.${Xt}`,je=".dropdown-menu",qs=".navbar",Gs=".navbar-nav",Xs=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",Qs=q()?"top-end":"top-start",Zs=q()?"top-start":"top-end",Js=q()?"bottom-end":"bottom-start",ta=q()?"bottom-start":"bottom-end",ea=q()?"left-start":"right-start",ia=q()?"right-start":"left-start",na="top",ra="bottom",oa={autoClose:true,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},sa={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"},ht=class i extends K{constructor(t,e){super(t,e),this._popper=null,this._parent=this._element.parentNode,this._menu=f.next(this._element,je)[0]||f.prev(this._element,je)[0]||f.findOne(je,this._parent),this._inNavbar=this._detectNavbar();}static get Default(){return oa}static get DefaultType(){return sa}static get NAME(){return Sn}toggle(){return this._isShown()?this.hide():this.show()}show(){if(pt(this._element)||this._isShown())return;let t={relatedTarget:this._element};if(!l.trigger(this._element,Hs,t).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(Gs))for(let n of [].concat(...document.body.children))l.on(n,"mouseover",Fe);this._element.focus(),this._element.setAttribute("aria-expanded",true),this._menu.classList.add(Xt),this._element.classList.add(Xt),l.trigger(this._element,Bs,t);}}hide(){if(pt(this._element)||!this._isShown())return;let t={relatedTarget:this._element};this._completeHide(t);}dispose(){this._popper&&this._popper.destroy(),super.dispose();}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update();}_completeHide(t){if(!l.trigger(this._element,ks,t).defaultPrevented){if("ontouchstart"in document.documentElement)for(let n of [].concat(...document.body.children))l.off(n,"mouseover",Fe);this._popper&&this._popper.destroy(),this._menu.classList.remove(Xt),this._element.classList.remove(Xt),this._element.setAttribute("aria-expanded","false"),st.removeDataAttribute(this._menu,"popper"),l.trigger(this._element,Vs,t);}}_getConfig(t){if(t=super._getConfig(t),typeof t.reference=="object"&&!ot(t.reference)&&typeof t.reference.getBoundingClientRect!="function")throw new TypeError(`${Sn.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return t}_createPopper(){if(typeof Pe>"u")throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org/docs/v2/)");let t=this._element;this._config.reference==="parent"?t=this._parent:ot(this._config.reference)?t=ft(this._config.reference):typeof this._config.reference=="object"&&(t=this._config.reference);let e=this._getPopperConfig();this._popper=fe(t,this._menu,e);}_isShown(){return this._menu.classList.contains(Xt)}_getPlacement(){let t=this._parent;if(t.classList.contains(Fs))return ea;if(t.classList.contains(Ks))return ia;if(t.classList.contains(Ys))return na;if(t.classList.contains(Us))return ra;let e=getComputedStyle(this._menu).getPropertyValue("--bs-position").trim()==="end";return t.classList.contains(js)?e?Zs:Qs:e?ta:Js}_detectNavbar(){return this._element.closest(qs)!==null}_getOffset(){let{offset:t}=this._config;return typeof t=="string"?t.split(",").map(e=>Number.parseInt(e,10)):typeof t=="function"?e=>t(e,this._element):t}_getPopperConfig(){let t={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return (this._inNavbar||this._config.display==="static")&&(st.setDataAttribute(this._menu,"popper","static"),t.modifiers=[{name:"applyStyles",enabled:false}]),{...t,...j(this._config.popperConfig,[void 0,t])}}_selectMenuItem({key:t,target:e}){let n=f.find(Xs,this._menu).filter(r=>Jt(r));n.length&&ji(n,e,t===Dn,!n.includes(e)).focus();}static jQueryInterface(t){return this.each(function(){let e=i.getOrCreateInstance(this,t);if(typeof t=="string"){if(typeof e[t]>"u")throw new TypeError(`No method named "${t}"`);e[t]();}})}static clearMenus(t){if(t.button===Rs||t.type==="keyup"&&t.key!==Nn)return;let e=f.find(zs);for(let n of e){let r=i.getInstance(n);if(!r||r._config.autoClose===false)continue;let o=t.composedPath(),s=o.includes(r._menu);if(o.includes(r._element)||r._config.autoClose==="inside"&&!s||r._config.autoClose==="outside"&&s||r._menu.contains(t.target)&&(t.type==="keyup"&&t.key===Nn||/input|select|option|textarea|form/i.test(t.target.tagName)))continue;let a={relatedTarget:r._element};t.type==="click"&&(a.clickEvent=t),r._completeHide(a);}}static dataApiKeydownHandler(t){let e=/input|textarea/i.test(t.target.tagName),n=t.key===Ps,r=[Ms,Dn].includes(t.key);if(!r&&!n||e&&!n)return;t.preventDefault();let o=this.matches(It)?this:f.prev(this,It)[0]||f.next(this,It)[0]||f.findOne(It,t.delegateTarget.parentNode),s=i.getOrCreateInstance(o);if(r){t.stopPropagation(),s.show(),s._selectMenuItem(t);return}s._isShown()&&(t.stopPropagation(),s.hide(),o.focus());}};l.on(document,hr,It,ht.dataApiKeydownHandler);l.on(document,hr,je,ht.dataApiKeydownHandler);l.on(document,pr,ht.clearMenus);l.on(document,Ws,ht.clearMenus);l.on(document,pr,It,function(i){i.preventDefault(),ht.getOrCreateInstance(this).toggle();});X(ht);var mr="backdrop",aa="fade",Ln="show",$n=`mousedown.bs.${mr}`,la={className:"modal-backdrop",clickCallback:null,isAnimated:false,isVisible:true,rootElement:"body"},ca={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"},qe=class extends Mt{constructor(t){super(),this._config=this._getConfig(t),this._isAppended=false,this._element=null;}static get Default(){return la}static get DefaultType(){return ca}static get NAME(){return mr}show(t){if(!this._config.isVisible){j(t);return}this._append();let e=this._getElement();this._config.isAnimated&&Ee(e),e.classList.add(Ln),this._emulateAnimation(()=>{j(t);});}hide(t){if(!this._config.isVisible){j(t);return}this._getElement().classList.remove(Ln),this._emulateAnimation(()=>{this.dispose(),j(t);});}dispose(){this._isAppended&&(l.off(this._element,$n),this._element.remove(),this._isAppended=false);}_getElement(){if(!this._element){let t=document.createElement("div");t.className=this._config.className,this._config.isAnimated&&t.classList.add(aa),this._element=t;}return this._element}_configAfterMerge(t){return t.rootElement=ft(t.rootElement),t}_append(){if(this._isAppended)return;let t=this._getElement();this._config.rootElement.append(t),l.on(t,$n,()=>{j(this._config.clickCallback);}),this._isAppended=true;}_emulateAnimation(t){er(t,this._getElement(),this._config.isAnimated);}},ua="focustrap",da="bs.focustrap",Ge=`.${da}`,fa=`focusin${Ge}`,pa=`keydown.tab${Ge}`,ha="Tab",ma="forward",xn="backward",_a={autofocus:true,trapElement:null},ga={autofocus:"boolean",trapElement:"element"},Xe=class extends Mt{constructor(t){super(),this._config=this._getConfig(t),this._isActive=false,this._lastTabNavDirection=null;}static get Default(){return _a}static get DefaultType(){return ga}static get NAME(){return ua}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),l.off(document,Ge),l.on(document,fa,t=>this._handleFocusin(t)),l.on(document,pa,t=>this._handleKeydown(t)),this._isActive=true);}deactivate(){this._isActive&&(this._isActive=false,l.off(document,Ge));}_handleFocusin(t){let{trapElement:e}=this._config;if(t.target===document||t.target===e||e.contains(t.target))return;let n=f.focusableChildren(e);n.length===0?e.focus():this._lastTabNavDirection===xn?n[n.length-1].focus():n[0].focus();}_handleKeydown(t){t.key===ha&&(this._lastTabNavDirection=t.shiftKey?xn:ma);}},In=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",Pn=".sticky-top",ke="padding-right",Mn="margin-right",_e=class{constructor(){this._element=document.body;}getWidth(){let t=document.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}hide(){let t=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,ke,e=>e+t),this._setElementAttributes(In,ke,e=>e+t),this._setElementAttributes(Pn,Mn,e=>e-t);}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,ke),this._resetElementAttributes(In,ke),this._resetElementAttributes(Pn,Mn);}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden";}_setElementAttributes(t,e,n){let r=this.getWidth(),o=s=>{if(s!==this._element&&window.innerWidth>s.clientWidth+r)return;this._saveInitialAttribute(s,e);let a=window.getComputedStyle(s).getPropertyValue(e);s.style.setProperty(e,`${n(Number.parseFloat(a))}px`);};this._applyManipulationCallback(t,o);}_saveInitialAttribute(t,e){let n=t.style.getPropertyValue(e);n&&st.setDataAttribute(t,e,n);}_resetElementAttributes(t,e){let n=r=>{let o=st.getDataAttribute(r,e);if(o===null){r.style.removeProperty(e);return}st.removeDataAttribute(r,e),r.style.setProperty(e,o);};this._applyManipulationCallback(t,n);}_applyManipulationCallback(t,e){if(ot(t)){e(t);return}for(let n of f.find(t,this._element))e(n);}},Ea="modal",va="bs.modal",G=`.${va}`,ba=".data-api",ya="Escape",Aa=`hide${G}`,Ta=`hidePrevented${G}`,_r=`hidden${G}`,gr=`show${G}`,wa=`shown${G}`,Oa=`resize${G}`,Ca=`click.dismiss${G}`,Sa=`mousedown.dismiss${G}`,Na=`keydown.dismiss${G}`,Da=`click${G}${ba}`,Rn="modal-open",La="fade",kn="show",Ni="modal-static",$a=".modal.show",xa=".modal-dialog",Ia=".modal-body",Pa='[data-bs-toggle="modal"]',Ma={backdrop:true,focus:true,keyboard:true},Ra={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"},mt=class i extends K{constructor(t,e){super(t,e),this._dialog=f.findOne(xa,this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=false,this._isTransitioning=false,this._scrollBar=new _e,this._addEventListeners();}static get Default(){return Ma}static get DefaultType(){return Ra}static get NAME(){return Ea}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){this._isShown||this._isTransitioning||l.trigger(this._element,gr,{relatedTarget:t}).defaultPrevented||(this._isShown=true,this._isTransitioning=true,this._scrollBar.hide(),document.body.classList.add(Rn),this._adjustDialog(),this._backdrop.show(()=>this._showElement(t)));}hide(){!this._isShown||this._isTransitioning||l.trigger(this._element,Aa).defaultPrevented||(this._isShown=false,this._isTransitioning=true,this._focustrap.deactivate(),this._element.classList.remove(kn),this._queueCallback(()=>this._hideModal(),this._element,this._isAnimated()));}dispose(){l.off(window,G),l.off(this._dialog,G),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose();}handleUpdate(){this._adjustDialog();}_initializeBackDrop(){return new qe({isVisible:!!this._config.backdrop,isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new Xe({trapElement:this._element})}_showElement(t){document.body.contains(this._element)||document.body.append(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",true),this._element.setAttribute("role","dialog"),this._element.scrollTop=0;let e=f.findOne(Ia,this._dialog);e&&(e.scrollTop=0),Ee(this._element),this._element.classList.add(kn);let n=()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=false,l.trigger(this._element,wa,{relatedTarget:t});};this._queueCallback(n,this._dialog,this._isAnimated());}_addEventListeners(){l.on(this._element,Na,t=>{if(t.key===ya){if(this._config.keyboard){this.hide();return}this._triggerBackdropTransition();}}),l.on(window,Oa,()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog();}),l.on(this._element,Sa,t=>{l.one(this._element,Ca,e=>{if(!(this._element!==t.target||this._element!==e.target)){if(this._config.backdrop==="static"){this._triggerBackdropTransition();return}this._config.backdrop&&this.hide();}});});}_hideModal(){this._element.style.display="none",this._element.setAttribute("aria-hidden",true),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=false,this._backdrop.hide(()=>{document.body.classList.remove(Rn),this._resetAdjustments(),this._scrollBar.reset(),l.trigger(this._element,_r);});}_isAnimated(){return this._element.classList.contains(La)}_triggerBackdropTransition(){if(l.trigger(this._element,Ta).defaultPrevented)return;let e=this._element.scrollHeight>document.documentElement.clientHeight,n=this._element.style.overflowY;n==="hidden"||this._element.classList.contains(Ni)||(e||(this._element.style.overflowY="hidden"),this._element.classList.add(Ni),this._queueCallback(()=>{this._element.classList.remove(Ni),this._queueCallback(()=>{this._element.style.overflowY=n;},this._dialog);},this._dialog),this._element.focus());}_adjustDialog(){let t=this._element.scrollHeight>document.documentElement.clientHeight,e=this._scrollBar.getWidth(),n=e>0;if(n&&!t){let r=q()?"paddingLeft":"paddingRight";this._element.style[r]=`${e}px`;}if(!n&&t){let r=q()?"paddingRight":"paddingLeft";this._element.style[r]=`${e}px`;}}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight="";}static jQueryInterface(t,e){return this.each(function(){let n=i.getOrCreateInstance(this,t);if(typeof t=="string"){if(typeof n[t]>"u")throw new TypeError(`No method named "${t}"`);n[t](e);}})}};l.on(document,Da,Pa,function(i){let t=f.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&i.preventDefault(),l.one(t,gr,r=>{r.defaultPrevented||l.one(t,_r,()=>{Jt(this)&&this.focus();});});let e=f.findOne($a);e&&mt.getInstance(e).hide(),mt.getOrCreateInstance(t).toggle(this);});Je(mt);X(mt);var ka="offcanvas",Va="bs.offcanvas",at=`.${Va}`,Er=".data-api",Ha=`load${at}${Er}`,Ba="Escape",Vn="show",Hn="showing",Bn="hiding",Wa="offcanvas-backdrop",vr=".offcanvas.show",ja=`show${at}`,Fa=`shown${at}`,Ka=`hide${at}`,Wn=`hidePrevented${at}`,br=`hidden${at}`,Ya=`resize${at}`,Ua=`click${at}${Er}`,za=`keydown.dismiss${at}`,qa='[data-bs-toggle="offcanvas"]',Ga={backdrop:true,keyboard:true,scroll:false},Xa={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"},_t=class i extends K{constructor(t,e){super(t,e),this._isShown=false,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners();}static get Default(){return Ga}static get DefaultType(){return Xa}static get NAME(){return ka}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){if(this._isShown||l.trigger(this._element,ja,{relatedTarget:t}).defaultPrevented)return;this._isShown=true,this._backdrop.show(),this._config.scroll||new _e().hide(),this._element.setAttribute("aria-modal",true),this._element.setAttribute("role","dialog"),this._element.classList.add(Hn);let n=()=>{(!this._config.scroll||this._config.backdrop)&&this._focustrap.activate(),this._element.classList.add(Vn),this._element.classList.remove(Hn),l.trigger(this._element,Fa,{relatedTarget:t});};this._queueCallback(n,this._element,true);}hide(){if(!this._isShown||l.trigger(this._element,Ka).defaultPrevented)return;this._focustrap.deactivate(),this._element.blur(),this._isShown=false,this._element.classList.add(Bn),this._backdrop.hide();let e=()=>{this._element.classList.remove(Vn,Bn),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||new _e().reset(),l.trigger(this._element,br);};this._queueCallback(e,this._element,true);}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose();}_initializeBackDrop(){let t=()=>{if(this._config.backdrop==="static"){l.trigger(this._element,Wn);return}this.hide();},e=!!this._config.backdrop;return new qe({className:Wa,isVisible:e,isAnimated:true,rootElement:this._element.parentNode,clickCallback:e?t:null})}_initializeFocusTrap(){return new Xe({trapElement:this._element})}_addEventListeners(){l.on(this._element,za,t=>{if(t.key===Ba){if(this._config.keyboard){this.hide();return}l.trigger(this._element,Wn);}});}static jQueryInterface(t){return this.each(function(){let e=i.getOrCreateInstance(this,t);if(typeof t=="string"){if(e[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method named "${t}"`);e[t](this);}})}};l.on(document,Ua,qa,function(i){let t=f.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&i.preventDefault(),pt(this))return;l.one(t,br,()=>{Jt(this)&&this.focus();});let e=f.findOne(vr);e&&e!==t&&_t.getInstance(e).hide(),_t.getOrCreateInstance(t).toggle(this);});l.on(window,Ha,()=>{for(let i of f.find(vr))_t.getOrCreateInstance(i).show();});l.on(window,Ya,()=>{for(let i of f.find("[aria-modal][class*=show][class*=offcanvas-]"))getComputedStyle(i).position!=="fixed"&&_t.getOrCreateInstance(i).hide();});Je(_t);X(_t);var Qa=/^aria-[\w-]*$/i,yr={"*":["class","dir","id","lang","role",Qa],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],dd:[],div:[],dl:[],dt:[],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:[]},Za=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),Ja=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,tl=(i,t)=>{let e=i.nodeName.toLowerCase();return t.includes(e)?Za.has(e)?!!Ja.test(i.nodeValue):true:t.filter(n=>n instanceof RegExp).some(n=>n.test(e))};function el(i,t,e){if(!i.length)return i;if(e&&typeof e=="function")return e(i);let r=new window.DOMParser().parseFromString(i,"text/html"),o=[].concat(...r.body.querySelectorAll("*"));for(let s of o){let a=s.nodeName.toLowerCase();if(!Object.keys(t).includes(a)){s.remove();continue}let c=[].concat(...s.attributes),d=[].concat(t["*"]||[],t[a]||[]);for(let u of c)tl(u,d)||s.removeAttribute(u.nodeName);}return r.body.innerHTML}var il="TemplateFactory",nl={allowList:yr,content:{},extraClass:"",html:false,sanitize:true,sanitizeFn:null,template:"<div></div>"},rl={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},ol={entry:"(string|element|function|null)",selector:"(string|element)"},Bi=class extends Mt{constructor(t){super(),this._config=this._getConfig(t);}static get Default(){return nl}static get DefaultType(){return rl}static get NAME(){return il}getContent(){return Object.values(this._config.content).map(t=>this._resolvePossibleFunction(t)).filter(Boolean)}hasContent(){return this.getContent().length>0}changeContent(t){return this._checkContent(t),this._config.content={...this._config.content,...t},this}toHtml(){let t=document.createElement("div");t.innerHTML=this._maybeSanitize(this._config.template);for(let[r,o]of Object.entries(this._config.content))this._setContent(t,o,r);let e=t.children[0],n=this._resolvePossibleFunction(this._config.extraClass);return n&&e.classList.add(...n.split(" ")),e}_typeCheckConfig(t){super._typeCheckConfig(t),this._checkContent(t.content);}_checkContent(t){for(let[e,n]of Object.entries(t))super._typeCheckConfig({selector:e,entry:n},ol);}_setContent(t,e,n){let r=f.findOne(n,t);if(r){if(e=this._resolvePossibleFunction(e),!e){r.remove();return}if(ot(e)){this._putElementInTemplate(ft(e),r);return}if(this._config.html){r.innerHTML=this._maybeSanitize(e);return}r.textContent=e;}}_maybeSanitize(t){return this._config.sanitize?el(t,this._config.allowList,this._config.sanitizeFn):t}_resolvePossibleFunction(t){return j(t,[void 0,this])}_putElementInTemplate(t,e){if(this._config.html){e.innerHTML="",e.append(t);return}e.textContent=t.textContent;}},sl="tooltip",al=new Set(["sanitize","allowList","sanitizeFn"]),Di="fade",ll="modal",Ve="show",cl=".tooltip-inner",jn=`.${ll}`,Fn="hide.bs.modal",he="hover",Li="focus",$i="click",ul="manual",dl="hide",fl="hidden",pl="show",hl="shown",ml="inserted",_l="click",gl="focusin",El="focusout",vl="mouseenter",bl="mouseleave",yl={AUTO:"auto",TOP:"top",RIGHT:q()?"left":"right",BOTTOM:"bottom",LEFT:q()?"right":"left"},Al={allowList:yr,animation:true,boundary:"clippingParents",container:false,customClass:"",delay:0,fallbackPlacements:["top","right","bottom","left"],html:false,offset:[0,6],placement:"top",popperConfig:null,sanitize:true,sanitizeFn:null,selector:false,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',title:"",trigger:"hover focus"},Tl={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"},Zt=class i extends K{constructor(t,e){if(typeof Pe>"u")throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org/docs/v2/)");super(t,e),this._isEnabled=true,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 Al}static get DefaultType(){return Tl}static get NAME(){return sl}enable(){this._isEnabled=true;}disable(){this._isEnabled=false;}toggleEnabled(){this._isEnabled=!this._isEnabled;}toggle(){if(this._isEnabled){if(this._isShown()){this._leave();return}this._enter();}}dispose(){clearTimeout(this._timeout),l.off(this._element.closest(jn),Fn,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;let t=l.trigger(this._element,this.constructor.eventName(pl)),n=(Jn(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(t.defaultPrevented||!n)return;this._disposePopper();let r=this._getTipElement();this._element.setAttribute("aria-describedby",r.getAttribute("id"));let{container:o}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(o.append(r),l.trigger(this._element,this.constructor.eventName(ml))),this._popper=this._createPopper(r),r.classList.add(Ve),"ontouchstart"in document.documentElement)for(let a of [].concat(...document.body.children))l.on(a,"mouseover",Fe);let s=()=>{l.trigger(this._element,this.constructor.eventName(hl)),this._isHovered===false&&this._leave(),this._isHovered=false;};this._queueCallback(s,this.tip,this._isAnimated());}hide(){if(!this._isShown()||l.trigger(this._element,this.constructor.eventName(dl)).defaultPrevented)return;if(this._getTipElement().classList.remove(Ve),"ontouchstart"in document.documentElement)for(let r of [].concat(...document.body.children))l.off(r,"mouseover",Fe);this._activeTrigger[$i]=false,this._activeTrigger[Li]=false,this._activeTrigger[he]=false,this._isHovered=null;let n=()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),l.trigger(this._element,this.constructor.eventName(fl)));};this._queueCallback(n,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(t){let e=this._getTemplateFactory(t).toHtml();if(!e)return null;e.classList.remove(Di,Ve),e.classList.add(`bs-${this.constructor.NAME}-auto`);let n=uo(this.constructor.NAME).toString();return e.setAttribute("id",n),this._isAnimated()&&e.classList.add(Di),e}setContent(t){this._newContent=t,this._isShown()&&(this._disposePopper(),this.show());}_getTemplateFactory(t){return this._templateFactory?this._templateFactory.changeContent(t):this._templateFactory=new Bi({...this._config,content:t,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return {[cl]:this._getTitle()}}_getTitle(){return this._resolvePossibleFunction(this._config.title)||this._element.getAttribute("data-bs-original-title")}_initializeOnDelegatedTarget(t){return this.constructor.getOrCreateInstance(t.delegateTarget,this._getDelegateConfig())}_isAnimated(){return this._config.animation||this.tip&&this.tip.classList.contains(Di)}_isShown(){return this.tip&&this.tip.classList.contains(Ve)}_createPopper(t){let e=j(this._config.placement,[this,t,this._element]),n=yl[e.toUpperCase()];return fe(this._element,t,this._getPopperConfig(n))}_getOffset(){let{offset:t}=this._config;return typeof t=="string"?t.split(",").map(e=>Number.parseInt(e,10)):typeof t=="function"?e=>t(e,this._element):t}_resolvePossibleFunction(t){return j(t,[this._element,this._element])}_getPopperConfig(t){let e={placement:t,modifiers:[{name:"flip",options:{fallbackPlacements:this._config.fallbackPlacements}},{name:"offset",options:{offset:this._getOffset()}},{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"arrow",options:{element:`.${this.constructor.NAME}-arrow`}},{name:"preSetPlacement",enabled:true,phase:"beforeMain",fn:n=>{this._getTipElement().setAttribute("data-popper-placement",n.state.placement);}}]};return {...e,...j(this._config.popperConfig,[void 0,e])}}_setListeners(){let t=this._config.trigger.split(" ");for(let e of t)if(e==="click")l.on(this._element,this.constructor.eventName(_l),this._config.selector,n=>{let r=this._initializeOnDelegatedTarget(n);r._activeTrigger[$i]=!(r._isShown()&&r._activeTrigger[$i]),r.toggle();});else if(e!==ul){let n=e===he?this.constructor.eventName(vl):this.constructor.eventName(gl),r=e===he?this.constructor.eventName(bl):this.constructor.eventName(El);l.on(this._element,n,this._config.selector,o=>{let s=this._initializeOnDelegatedTarget(o);s._activeTrigger[o.type==="focusin"?Li:he]=true,s._enter();}),l.on(this._element,r,this._config.selector,o=>{let s=this._initializeOnDelegatedTarget(o);s._activeTrigger[o.type==="focusout"?Li:he]=s._element.contains(o.relatedTarget),s._leave();});}this._hideModalHandler=()=>{this._element&&this.hide();},l.on(this._element.closest(jn),Fn,this._hideModalHandler);}_fixTitle(){let t=this._element.getAttribute("title");t&&(!this._element.getAttribute("aria-label")&&!this._element.textContent.trim()&&this._element.setAttribute("aria-label",t),this._element.setAttribute("data-bs-original-title",t),this._element.removeAttribute("title"));}_enter(){if(this._isShown()||this._isHovered){this._isHovered=true;return}this._isHovered=true,this._setTimeout(()=>{this._isHovered&&this.show();},this._config.delay.show);}_leave(){this._isWithActiveTrigger()||(this._isHovered=false,this._setTimeout(()=>{this._isHovered||this.hide();},this._config.delay.hide));}_setTimeout(t,e){clearTimeout(this._timeout),this._timeout=setTimeout(t,e);}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(true)}_getConfig(t){let e=st.getDataAttributes(this._element);for(let n of Object.keys(e))al.has(n)&&delete e[n];return t={...e,...typeof t=="object"&&t?t:{}},t=this._mergeConfigObj(t),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}_configAfterMerge(t){return t.container=t.container===false?document.body:ft(t.container),typeof t.delay=="number"&&(t.delay={show:t.delay,hide:t.delay}),typeof t.title=="number"&&(t.title=t.title.toString()),typeof t.content=="number"&&(t.content=t.content.toString()),t}_getDelegateConfig(){let t={};for(let[e,n]of Object.entries(this._config))this.constructor.Default[e]!==n&&(t[e]=n);return t.selector=false,t.trigger="manual",t}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null),this.tip&&(this.tip.remove(),this.tip=null);}static jQueryInterface(t){return this.each(function(){let e=i.getOrCreateInstance(this,t);if(typeof t=="string"){if(typeof e[t]>"u")throw new TypeError(`No method named "${t}"`);e[t]();}})}};X(Zt);var wl="popover",Ol=".popover-header",Cl=".popover-body",Sl={...Zt.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"},Nl={...Zt.DefaultType,content:"(null|string|element|function)"},Wi=class i extends Zt{static get Default(){return Sl}static get DefaultType(){return Nl}static get NAME(){return wl}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return {[Ol]:this._getTitle(),[Cl]:this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(t){return this.each(function(){let e=i.getOrCreateInstance(this,t);if(typeof t=="string"){if(typeof e[t]>"u")throw new TypeError(`No method named "${t}"`);e[t]();}})}};X(Wi);var Dl="scrollspy",Ll="bs.scrollspy",Yi=`.${Ll}`,$l=".data-api",xl=`activate${Yi}`,Kn=`click${Yi}`,Il=`load${Yi}${$l}`,Pl="dropdown-item",qt="active",Ml='[data-bs-spy="scroll"]',xi="[href]",Rl=".nav, .list-group",Yn=".nav-link",kl=".nav-item",Vl=".list-group-item",Hl=`${Yn}, ${kl} > ${Yn}, ${Vl}`,Bl=".dropdown",Wl=".dropdown-toggle",jl={offset:null,rootMargin:"0px 0px -25%",smoothScroll:false,target:null,threshold:[.1,.5,1]},Fl={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"},Qe=class i extends K{constructor(t,e){super(t,e),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 jl}static get DefaultType(){return Fl}static get NAME(){return Dl}refresh(){this._initializeTargetsAndObservables(),this._maybeEnableSmoothScroll(),this._observer?this._observer.disconnect():this._observer=this._getNewObserver();for(let t of this._observableSections.values())this._observer.observe(t);}dispose(){this._observer.disconnect(),super.dispose();}_configAfterMerge(t){return t.target=ft(t.target)||document.body,t.rootMargin=t.offset?`${t.offset}px 0px -30%`:t.rootMargin,typeof t.threshold=="string"&&(t.threshold=t.threshold.split(",").map(e=>Number.parseFloat(e))),t}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(l.off(this._config.target,Kn),l.on(this._config.target,Kn,xi,t=>{let e=this._observableSections.get(t.target.hash);if(e){t.preventDefault();let n=this._rootElement||window,r=e.offsetTop-this._element.offsetTop;if(n.scrollTo){n.scrollTo({top:r,behavior:"smooth"});return}n.scrollTop=r;}}));}_getNewObserver(){let t={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver(e=>this._observerCallback(e),t)}_observerCallback(t){let e=s=>this._targetLinks.get(`#${s.target.id}`),n=s=>{this._previousScrollData.visibleEntryTop=s.target.offsetTop,this._process(e(s));},r=(this._rootElement||document.documentElement).scrollTop,o=r>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=r;for(let s of t){if(!s.isIntersecting){this._activeTarget=null,this._clearActiveClass(e(s));continue}let a=s.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(o&&a){if(n(s),!r)return;continue}!o&&!a&&n(s);}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;let t=f.find(xi,this._config.target);for(let e of t){if(!e.hash||pt(e))continue;let n=f.findOne(decodeURI(e.hash),this._element);Jt(n)&&(this._targetLinks.set(decodeURI(e.hash),e),this._observableSections.set(e.hash,n));}}_process(t){this._activeTarget!==t&&(this._clearActiveClass(this._config.target),this._activeTarget=t,t.classList.add(qt),this._activateParents(t),l.trigger(this._element,xl,{relatedTarget:t}));}_activateParents(t){if(t.classList.contains(Pl)){f.findOne(Wl,t.closest(Bl)).classList.add(qt);return}for(let e of f.parents(t,Rl))for(let n of f.prev(e,Hl))n.classList.add(qt);}_clearActiveClass(t){t.classList.remove(qt);let e=f.find(`${xi}.${qt}`,t);for(let n of e)n.classList.remove(qt);}static jQueryInterface(t){return this.each(function(){let e=i.getOrCreateInstance(this,t);if(typeof t=="string"){if(e[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method named "${t}"`);e[t]();}})}};l.on(window,Il,()=>{for(let i of f.find(Ml))Qe.getOrCreateInstance(i);});X(Qe);var Kl="tab",Yl="bs.tab",kt=`.${Yl}`,Ul=`hide${kt}`,zl=`hidden${kt}`,ql=`show${kt}`,Gl=`shown${kt}`,Xl=`click${kt}`,Ql=`keydown${kt}`,Zl=`load${kt}`,Jl="ArrowLeft",Un="ArrowRight",tc="ArrowUp",zn="ArrowDown",Ii="Home",qn="End",Pt="active",Gn="fade",Pi="show",ec="dropdown",Ar=".dropdown-toggle",ic=".dropdown-menu",Mi=`:not(${Ar})`,nc='.list-group, .nav, [role="tablist"]',rc=".nav-item, .list-group-item",oc=`.nav-link${Mi}, .list-group-item${Mi}, [role="tab"]${Mi}`,Tr='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',Ri=`${oc}, ${Tr}`,sc=`.${Pt}[data-bs-toggle="tab"], .${Pt}[data-bs-toggle="pill"], .${Pt}[data-bs-toggle="list"]`,ge=class i extends K{constructor(t){super(t),this._parent=this._element.closest(nc),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),l.on(this._element,Ql,e=>this._keydown(e)));}static get NAME(){return Kl}show(){let t=this._element;if(this._elemIsActive(t))return;let e=this._getActiveElem(),n=e?l.trigger(e,Ul,{relatedTarget:t}):null;l.trigger(t,ql,{relatedTarget:e}).defaultPrevented||n&&n.defaultPrevented||(this._deactivate(e,t),this._activate(t,e));}_activate(t,e){if(!t)return;t.classList.add(Pt),this._activate(f.getElementFromSelector(t));let n=()=>{if(t.getAttribute("role")!=="tab"){t.classList.add(Pi);return}t.removeAttribute("tabindex"),t.setAttribute("aria-selected",true),this._toggleDropDown(t,true),l.trigger(t,Gl,{relatedTarget:e});};this._queueCallback(n,t,t.classList.contains(Gn));}_deactivate(t,e){if(!t)return;t.classList.remove(Pt),t.blur(),this._deactivate(f.getElementFromSelector(t));let n=()=>{if(t.getAttribute("role")!=="tab"){t.classList.remove(Pi);return}t.setAttribute("aria-selected",false),t.setAttribute("tabindex","-1"),this._toggleDropDown(t,false),l.trigger(t,zl,{relatedTarget:e});};this._queueCallback(n,t,t.classList.contains(Gn));}_keydown(t){if(![Jl,Un,tc,zn,Ii,qn].includes(t.key))return;t.stopPropagation(),t.preventDefault();let e=this._getChildren().filter(r=>!pt(r)),n;if([Ii,qn].includes(t.key))n=e[t.key===Ii?0:e.length-1];else {let r=[Un,zn].includes(t.key);n=ji(e,t.target,r,true);}n&&(n.focus({preventScroll:true}),i.getOrCreateInstance(n).show());}_getChildren(){return f.find(Ri,this._parent)}_getActiveElem(){return this._getChildren().find(t=>this._elemIsActive(t))||null}_setInitialAttributes(t,e){this._setAttributeIfNotExists(t,"role","tablist");for(let n of e)this._setInitialAttributesOnChild(n);}_setInitialAttributesOnChild(t){t=this._getInnerElement(t);let e=this._elemIsActive(t),n=this._getOuterElement(t);t.setAttribute("aria-selected",e),n!==t&&this._setAttributeIfNotExists(n,"role","presentation"),e||t.setAttribute("tabindex","-1"),this._setAttributeIfNotExists(t,"role","tab"),this._setInitialAttributesOnTargetPanel(t);}_setInitialAttributesOnTargetPanel(t){let e=f.getElementFromSelector(t);e&&(this._setAttributeIfNotExists(e,"role","tabpanel"),t.id&&this._setAttributeIfNotExists(e,"aria-labelledby",`${t.id}`));}_toggleDropDown(t,e){let n=this._getOuterElement(t);if(!n.classList.contains(ec))return;let r=(o,s)=>{let a=f.findOne(o,n);a&&a.classList.toggle(s,e);};r(Ar,Pt),r(ic,Pi),n.setAttribute("aria-expanded",e);}_setAttributeIfNotExists(t,e,n){t.hasAttribute(e)||t.setAttribute(e,n);}_elemIsActive(t){return t.classList.contains(Pt)}_getInnerElement(t){return t.matches(Ri)?t:f.findOne(Ri,t)}_getOuterElement(t){return t.closest(rc)||t}static jQueryInterface(t){return this.each(function(){let e=i.getOrCreateInstance(this);if(typeof t=="string"){if(e[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method named "${t}"`);e[t]();}})}};l.on(document,Xl,Tr,function(i){["A","AREA"].includes(this.tagName)&&i.preventDefault(),!pt(this)&&ge.getOrCreateInstance(this).show();});l.on(window,Zl,()=>{for(let i of f.find(sc))ge.getOrCreateInstance(i);});X(ge);var ac="toast",lc="bs.toast",Et=`.${lc}`,cc=`mouseover${Et}`,uc=`mouseout${Et}`,dc=`focusin${Et}`,fc=`focusout${Et}`,pc=`hide${Et}`,hc=`hidden${Et}`,mc=`show${Et}`,_c=`shown${Et}`,gc="fade",Xn="hide",He="show",Be="showing",Ec={animation:"boolean",autohide:"boolean",delay:"number"},vc={animation:true,autohide:true,delay:5e3},Ze=class i extends K{constructor(t,e){super(t,e),this._timeout=null,this._hasMouseInteraction=false,this._hasKeyboardInteraction=false,this._setListeners();}static get Default(){return vc}static get DefaultType(){return Ec}static get NAME(){return ac}show(){if(l.trigger(this._element,mc).defaultPrevented)return;this._clearTimeout(),this._config.animation&&this._element.classList.add(gc);let e=()=>{this._element.classList.remove(Be),l.trigger(this._element,_c),this._maybeScheduleHide();};this._element.classList.remove(Xn),Ee(this._element),this._element.classList.add(He,Be),this._queueCallback(e,this._element,this._config.animation);}hide(){if(!this.isShown()||l.trigger(this._element,pc).defaultPrevented)return;let e=()=>{this._element.classList.add(Xn),this._element.classList.remove(Be,He),l.trigger(this._element,hc);};this._element.classList.add(Be),this._queueCallback(e,this._element,this._config.animation);}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(He),super.dispose();}isShown(){return this._element.classList.contains(He)}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout(()=>{this.hide();},this._config.delay)));}_onInteraction(t,e){switch(t.type){case "mouseover":case "mouseout":{this._hasMouseInteraction=e;break}case "focusin":case "focusout":{this._hasKeyboardInteraction=e;break}}if(e){this._clearTimeout();return}let n=t.relatedTarget;this._element===n||this._element.contains(n)||this._maybeScheduleHide();}_setListeners(){l.on(this._element,cc,t=>this._onInteraction(t,true)),l.on(this._element,uc,t=>this._onInteraction(t,false)),l.on(this._element,dc,t=>this._onInteraction(t,true)),l.on(this._element,fc,t=>this._onInteraction(t,false));}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null;}static jQueryInterface(t){return this.each(function(){let e=i.getOrCreateInstance(this,t);if(typeof t=="string"){if(typeof e[t]>"u")throw new TypeError(`No method named "${t}"`);e[t](this);}})}};Je(Ze);X(Ze);var ti=class i{element=null;instance=null;static open(t){let e=new i;return e.create(t),e.show(),e}create(t){let e=`modal-${Math.random().toString(36).substr(2,9)}`,n=`
2
- <div class="modal fade" id="${e}" tabindex="-1" aria-hidden="true">
3
- <div class="modal-dialog ${t.size?`modal-${t.size}`:""} ${t.centered?"modal-dialog-centered":""}">
4
- <div class="modal-content">
5
- ${t.title?`
6
- <div class="modal-header">
7
- <h5 class="modal-title">${t.title}</h5>
8
- <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
9
- </div>
10
- `:""}
11
- <div class="modal-body">
12
- ${t.body||""}
13
- </div>
14
- ${t.footer?`
15
- <div class="modal-footer">
16
- ${t.footer}
17
- </div>
18
- `:""}
19
- </div>
20
- </div>
21
- </div>
22
- `;document.body.insertAdjacentHTML("beforeend",n),this.element=document.getElementById(e),this.element&&(this.instance=new mt(this.element),this.element.addEventListener("hidden.bs.modal",()=>{this.destroy();}));}show(){this.instance?.show();}hide(){this.instance?.hide();}destroy(){this.element&&(this.element.remove(),this.element=null,this.instance=null);}};var Cr={fr:{selectSlot:"Vous avez s\xE9lectionn\xE9 le",noSlots:"Pas de cr\xE9neaux disponibles pour cette date.",selectDay:"S\xE9lectionnez un jour dans le calendrier",selectTime:"S\xE9lectionner un horaire pour le",confirmTitle:"Confirmer la r\xE9servation",confirmBody:"Vous avez s\xE9lectionn\xE9 le <strong>{date}</strong> \xE0 <strong>{slot}</strong>.",confirmBtn:"R\xE9server ce cr\xE9neau",cancelBtn:"Annuler"},en:{selectSlot:"You have selected",noSlots:"No slots available for this date.",selectDay:"Please select a day in the calendar",selectTime:"Select a time slot for",confirmTitle:"Confirm Booking",confirmBody:"You selected <strong>{date}</strong> at <strong>{slot}</strong>.",confirmBtn:"Book this slot",cancelBtn:"Cancel"}},ei=class{container;calendarContainer=null;slotsContainer=null;calendarInstance=null;selectedDate=null;selectedSlot=null;options;currentTrads;constructor(t,e){this.container=t,this.options={lang:"fr",selectedDate:null,inputName:"booking_datetime",onSlotSelect:()=>{},mode:"single",disablePast:false,onRangeSelect:()=>{},initialDate:new Date,fields:[{name:"firstname",label:e?.lang==="en"?"Firstname":"Pr\xE9nom",type:"text",required:true},{name:"lastname",label:e?.lang==="en"?"Lastname":"Nom",type:"text",required:true},{name:"email",label:"Email",type:"email",required:true}],...e},this.selectedDate=this.options.selectedDate,this.currentTrads=Cr[this.options.lang],this.initLayout(),this.render();}initLayout(){this.container.innerHTML=`
1
+ 'use strict';var react=require('react'),dateFns=require('date-fns'),locale=require('date-fns/locale'),calendar=require('@zuii/calendar'),modal=require('@zuii/modal'),jsxRuntime=require('react/jsx-runtime');var v={fr:{selectSlot:"Vous avez s\xE9lectionn\xE9 le",noSlots:"Pas de cr\xE9neaux disponibles pour cette date.",selectDay:"S\xE9lectionnez un jour dans le calendrier",selectTime:"S\xE9lectionner un horaire pour le",confirmTitle:"Confirmer la r\xE9servation",confirmBody:"Vous avez s\xE9lectionn\xE9 le <strong>{date}</strong> {prep} <strong>{slot}</strong>.",confirmBtn:"R\xE9server ce cr\xE9neau",cancelBtn:"Annuler"},en:{selectSlot:"You have selected",noSlots:"No slots available for this date.",selectDay:"Please select a day in the calendar",selectTime:"Select a time slot for",confirmTitle:"Confirm Booking",confirmBody:"You selected <strong>{date}</strong> {prep} <strong>{slot}</strong>.",confirmBtn:"Book this slot",cancelBtn:"Cancel"}},c=class{container;calendarContainer=null;slotsContainer=null;calendarInstance=null;selectedDate=null;selectedSlot=null;options;currentTrads;constructor(t,n){this.container=t,this.options={lang:"fr",selectedDate:null,inputName:"booking_datetime",onSlotSelect:()=>{},mode:"single",disablePast:false,onRangeSelect:()=>{},initialDate:new Date,...n},this.options.fields||(this.options.fields=[{name:"firstname",label:this.options.lang==="en"?"Firstname":"Pr\xE9nom",type:"text",required:true},{name:"lastname",label:this.options.lang==="en"?"Lastname":"Nom",type:"text",required:true},{name:"email",label:"Email",type:"email",required:true}]),this.selectedDate=this.options.selectedDate,this.currentTrads=v[this.options.lang],this.initLayout(),this.render();}initLayout(){this.container.innerHTML=`
23
2
  <div class="booking-wrapper">
24
3
  <div class="booking__calendar-column"></div>
25
4
  <div class="booking__slots-column"></div>
26
5
  </div>
27
- `,this.calendarContainer=this.container.querySelector(".booking__calendar-column"),this.slotsContainer=this.container.querySelector(".booking__slots-column"),this.calendarContainer&&(this.calendarInstance=new calendar.Calendar(this.calendarContainer,{lang:this.options.lang,mode:this.options.mode,disablePast:this.options.disablePast,availability:this.options.availability,initialDate:this.options.initialDate,onDateSelect:t=>{this.updateDate(t);}}));}updateDate(t){this.selectedDate=t,this.selectedSlot=null,this.render();}setLanguage(t){this.options.lang=t,this.currentTrads=Cr[t],this.calendarInstance&&this.calendarInstance.setLanguage(t),this.render();}render(){if(!this.slotsContainer)return;if(!this.selectedDate){this.slotsContainer.innerHTML=`
6
+ `,this.calendarContainer=this.container.querySelector(".booking__calendar-column"),this.slotsContainer=this.container.querySelector(".booking__slots-column"),this.calendarContainer&&(this.calendarInstance=new calendar.Calendar(this.calendarContainer,{lang:this.options.lang,mode:this.options.mode,disablePast:this.options.disablePast,availability:this.options.availability,initialDate:this.options.initialDate,onDateSelect:t=>{this.updateDate(t);}}));}updateDate(t){this.selectedDate=t,this.selectedSlot=null,this.render();}setLanguage(t){this.options.lang=t,this.currentTrads=v[t],this.calendarInstance&&this.calendarInstance.setLanguage(t),this.render();}render(){if(!this.slotsContainer)return;if(!this.selectedDate){this.slotsContainer.innerHTML=`
28
7
  <div class="booking--empty">
29
8
  <div class="booking__empty-message">
30
9
  <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect width="18" height="18" x="3" y="4" rx="2" ry="2"/><line x1="16" y1="2" x2="16" y2="6"/><line x1="8" y1="2" x2="8" y2="6"/><line x1="3" y1="10" x2="21" y2="10"/></svg>
31
10
  <p>${this.currentTrads.selectDay}</p>
32
11
  </div>
33
12
  </div>
34
- `;return}let t=dateFns.format(this.selectedDate,"yyyy-MM-dd"),e=this.options.availability[t]||[],n=this.options.lang==="fr"?locale.fr:locale.enUS,r=dateFns.format(this.selectedDate,"EEEE d MMMM yyyy",{locale:n});this.slotsContainer.innerHTML=`
13
+ `;return}let t=dateFns.format(this.selectedDate,"yyyy-MM-dd"),n=this.options.availability[t]||[],o=this.options.lang==="fr"?locale.fr:locale.enUS,a=dateFns.format(this.selectedDate,"EEEE d MMMM yyyy",{locale:o});this.slotsContainer.innerHTML=`
35
14
  <div class="booking">
36
- <h3 class="booking__title">${this.currentTrads.selectTime} ${r}</h3>
15
+ <h3 class="booking__title">${this.currentTrads.selectTime} ${a}</h3>
37
16
  <div class="booking__slots">
38
- ${e.map(o=>`
39
- <button class="booking__slot ${this.selectedSlot===o?"booking__slot--selected":""}" data-slot="${o}">
40
- ${o.includes(":")?o.replace(":","h"):o}
17
+ ${n.map(i=>`
18
+ <button class="booking__slot ${this.selectedSlot===i?"booking__slot--selected":""}" data-slot="${i}">
19
+ ${i.includes(":")?i.replace(":","h"):i}
41
20
  </button>
42
21
  `).join("")}
43
- ${e.length===0?`<p class="booking__empty">${this.currentTrads.noSlots}</p>`:""}
22
+ ${n.length===0?`<p class="booking__empty">${this.currentTrads.noSlots}</p>`:""}
44
23
  </div>
45
24
 
46
25
  <input type="hidden" name="${this.options.inputName}[date]" value="${this.selectedSlot?t:""}" />
47
26
  <input type="hidden" name="${this.options.inputName}[slot]" value="${this.selectedSlot||""}" />
48
27
  </div>
49
- `,this.bindEvents();}bindEvents(){if(!this.slotsContainer)return;this.slotsContainer.querySelectorAll(".booking__slot").forEach(e=>{e.addEventListener("click",n=>{n.preventDefault();let r=e.getAttribute("data-slot");r&&this.selectedDate&&this.openConfirmationModal(this.selectedDate,r);});});}openConfirmationModal(t,e){let n=this.options.lang==="fr"?locale.fr:locale.enUS,r=dateFns.format(t,"EEEE d MMMM yyyy",{locale:n}),o=e.includes(":")?e.replace(":","h"):e,s=`
50
- <p>${this.currentTrads.confirmBody.replace("{date}",r).replace("{slot}",o)}</p>
51
- <form id="booking-confirmation-form" class="mt-4">
52
- ${this.options.fields.map(d=>`
53
- <div class="mb-3">
54
- <label for="field-${d.name}" class="form-label">
55
- ${d.label}${d.required?' <span class="text-danger">*</span>':""}
28
+ `,this.bindEvents();}bindEvents(){if(!this.slotsContainer)return;this.slotsContainer.querySelectorAll(".booking__slot").forEach(n=>{n.addEventListener("click",o=>{o.preventDefault();let a=n.getAttribute("data-slot");a&&this.selectedDate&&this.openConfirmationModal(this.selectedDate,a);});});}openConfirmationModal(t,n){let o=this.options.lang==="fr"?locale.fr:locale.enUS,a=dateFns.format(t,"EEEE d MMMM yyyy",{locale:o}),i=n.includes(":")?n.replace(":","h"):n,d=this.options.lang==="fr"?n.includes(":")?"\xE0":"le":n.includes(":")?"at":"on",p=`
29
+ <p class="booking-modal__text">${this.currentTrads.confirmBody.replace("{date}",a).replace("{slot}",i).replace("{prep}",d)}</p>
30
+ <form id="booking-confirmation-form" class="form booking-form">
31
+ ${this.options.fields.map(e=>`
32
+ <div class="form__group booking-form-group booking-form-group--${e.name}">
33
+ <label for="field-${e.name}" class="form-label">
34
+ ${e.label}${e.required?' <span class="text-danger">*</span>':""}
56
35
  </label>
57
- ${d.type==="textarea"?`
58
- <textarea
59
- id="field-${d.name}"
60
- name="${d.name}"
61
- class="form-control"
62
- ${d.required?"required":""}
63
- placeholder="${d.placeholder||""}"
64
- ></textarea>
65
- `:`
66
- <input
67
- type="${d.type}"
68
- id="field-${d.name}"
69
- name="${d.name}"
70
- class="form-control"
71
- ${d.required?"required":""}
72
- placeholder="${d.placeholder||""}"
73
- />
74
- `}
36
+ <div class="form__input">
37
+ ${e.type==="textarea"?`
38
+ <textarea
39
+ id="field-${e.name}"
40
+ name="${e.name}"
41
+ class="form-control"
42
+ ${e.required?"required":""}
43
+ placeholder="${e.placeholder||""}"
44
+ ></textarea>
45
+ `:`
46
+ <input
47
+ type="${e.type}"
48
+ id="field-${e.name}"
49
+ name="${e.name}"
50
+ class="form-control"
51
+ ${e.required?"required":""}
52
+ placeholder="${e.placeholder||""}"
53
+ />
54
+ `}
55
+ </div>
75
56
  </div>
76
57
  `).join("")}
77
58
  </form>
78
- `,a=`
59
+ `,u=`
79
60
  <button type="button" class="btn btn-secondary" data-bs-dismiss="modal">
80
61
  ${this.currentTrads.cancelBtn}
81
62
  </button>
82
63
  <button type="submit" form="booking-confirmation-form" class="btn btn-primary" id="confirm-booking-btn">
83
64
  ${this.currentTrads.confirmBtn}
84
65
  </button>
85
- `,c=ti.open({title:this.currentTrads.confirmTitle,body:s,footer:a,centered:true});setTimeout(()=>{let d=document.getElementById("booking-confirmation-form");d&&d.addEventListener("submit",u=>{u.preventDefault();let h=new FormData(d),p={};h.forEach((m,v)=>{p[v]=m;}),this.selectedSlot=e,this.render(),c.hide(),this.options.onSlotSelect&&this.options.onSlotSelect(t,e,p);});},0);}};var Yp=({lang:i="fr",availability:t={},onSlotSelect:e,selectedDate:n=null,inputName:r="booking_datetime",className:o="",mode:s="single",disablePast:a=false,initialDate:c=new Date,onRangeSelect:d,fields:u})=>{let h=react.useRef(null),p=react.useRef(null);return react.useEffect(()=>{h.current&&!p.current&&(p.current=new ei(h.current,{lang:i,availability:t,selectedDate:n,inputName:r,onSlotSelect:e,mode:s,disablePast:a,initialDate:c,onRangeSelect:d,fields:u}));},[]),react.useEffect(()=>{p.current&&p.current.setLanguage(i);},[i]),react.useEffect(()=>{p.current&&(n?p.current.updateDate(n):n===null&&p.current.updateDate(null));},[n]),jsxRuntime.jsx("div",{ref:h,className:`booking ${o}`})};/*! Bundled license information:
86
-
87
- bootstrap/dist/js/bootstrap.esm.js:
88
- (*!
89
- * Bootstrap v5.3.8 (https://getbootstrap.com/)
90
- * Copyright 2011-2025 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
91
- * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
92
- *)
93
- */exports.Booking=Yp;//# sourceMappingURL=index.cjs.map
66
+ `,m=modal.Modal.open({title:this.currentTrads.confirmTitle,body:p,footer:u,centered:true});setTimeout(()=>{let e=document.getElementById("booking-confirmation-form");e&&e.addEventListener("submit",r=>{r.preventDefault();let s=new FormData(e),f={};s.forEach((D,$)=>{f[$]=D;}),this.selectedSlot=n,this.render(),m.hide(),this.options.onSlotSelect&&this.options.onSlotSelect(t,n,f);});},0);}};var w=({lang:l="fr",availability:t={},onSlotSelect:n,selectedDate:o=null,inputName:a="booking_datetime",className:i="",mode:d="single",disablePast:p=false,initialDate:u=new Date,onRangeSelect:m,fields:e})=>{let r=react.useRef(null),s=react.useRef(null);return react.useEffect(()=>{r.current&&!s.current&&(s.current=new c(r.current,{lang:l,availability:t,selectedDate:o,inputName:a,onSlotSelect:n,mode:d,disablePast:p,initialDate:u,onRangeSelect:m,fields:e}));},[]),react.useEffect(()=>{s.current&&s.current.setLanguage(l);},[l]),react.useEffect(()=>{s.current&&(o?s.current.updateDate(o):o===null&&s.current.updateDate(null));},[o]),jsxRuntime.jsx("div",{ref:r,className:`booking ${i}`})};exports.Booking=w;//# sourceMappingURL=index.cjs.map
94
67
  //# sourceMappingURL=index.cjs.map