@visitscotland/component-library
Version:
VisitScotland Component Library
1 lines • 165 kB
JavaScript
"use strict";(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[4352],{34352:function(e,t,l){l.d(t,{D7:function(){return En},GJ:function(){return so},Gk:function(){return ka},Go:function(){return ha},HS:function(){return ya},H_:function(){return Ua},JR:function(){return Lo},MR:function(){return ma},NC:function(){return Tn},NI:function(){return Ln},Nt:function(){return On},PF:function(){return aa},RB:function(){return ua},Su:function(){return gn},T5:function(){return Ka},UV:function(){return Ya},Uw:function(){return Ea},Wj:function(){return Eo},XY:function(){return Ul},a3:function(){return wo},a_:function(){return Qn},bF:function(){return dn},bL:function(){return Co},by:function(){return An},i3:function(){return Jl},jJ:function(){return Xn},jb:function(){return So},n_:function(){return _n},rH:function(){return Jn},tu:function(){return ja},u$:function(){return Ft},un:function(){return Sa},vm:function(){return za},zl:function(){return co}});var a=l(20641),o=l(50953),n=l(90033),i=l(53751),r=l(96763),u=Object.defineProperty,d=(e,t,l)=>(((e,t,l)=>{t in e?u(e,t,{enumerable:!0,configurable:!0,writable:!0,value:l}):e[t]=l})(e,"symbol"!=typeof t?t+"":t,l),l);const s=e=>(0,a.EW)((()=>{const t=(0,o.BA)(e);return t?`justify-content-${t}`:""})),v=(e,t)=>(0,a.EW)((()=>{const l=(0,o.BA)(e),a=(0,o.BA)(t);return!0===l?"true":"string"==typeof l?l:!1===a?"true":!1===l?"false":void 0}));class f{constructor(e,t={}){if(d(this,"cancelable",!0),d(this,"componentId",null),d(this,"_defaultPrevented",!1),d(this,"eventType",""),d(this,"nativeEvent",null),d(this,"_preventDefault"),d(this,"relatedTarget",null),d(this,"target",null),!e)throw new TypeError(`Failed to construct '${this.constructor.name}'. 1 argument required, ${arguments.length} given.`);Object.assign(this,f.Defaults,t,{eventType:e}),this._preventDefault=function(){this.cancelable&&(this.defaultPrevented=!0)}}get defaultPrevented(){return this._defaultPrevented}set defaultPrevented(e){this._defaultPrevented=e}get preventDefault(){return this._preventDefault}set preventDefault(e){this._preventDefault=e}static get Defaults(){return{cancelable:!0,componentId:null,eventType:"",nativeEvent:null,relatedTarget:null,target:null}}}class c extends f{constructor(e,t={}){super(e,t),d(this,"trigger",null),Object.assign(this,f.Defaults,t,{eventType:e})}static get Defaults(){return{...super.Defaults,trigger:null}}}class p extends f{constructor(e,t){super(e,t),d(this,"from"),d(this,"to"),d(this,"direction"),Object.assign(this,f.Defaults,t,{eventType:e});const{from:l,direction:a,to:o}=t;this.from=l,this.to=o,this.direction=a}static get Defaults(){return{...super.Defaults}}}const m=e=>0===((null==e?void 0:e())??[]).length,y=e=>{if("none"===e.getAttribute("display"))return!1;const t=e.getBoundingClientRect();return!!(t&&t.height>0&&t.width>0)},b=e=>{const t=window.getComputedStyle(e),l=t.transitionDelay.split(",")[0]||"",a=t.transitionDuration.split(",")[0]||"";return 1e3*Number(l.slice(0,-1))+1e3*Number(a.slice(0,-1))},g=typeof window<"u"&&typeof document<"u"&&typeof navigator<"u",h=(e,t,l,a)=>{e&&e.addEventListener&&e.addEventListener(t,l,(e=>(()=>{let e=!1;if(g)try{const t={get passive(){e=!0}};WINDOW.addEventListener("test",t,t),WINDOW.removeEventListener("test",t,t)}catch{e=!1}return e})()?"object"==typeof e?e:{capture:!!e||!1}:"object"==typeof e?e.capture:e)(a))},B=(e,t,l,a)=>{e&&e.removeEventListener&&e.removeEventListener(t,l,a)},w=(e,t)=>{(e?h:B)(...t)},k=["TD","TH","TR"],C=["a","a *","button","button *","input:not(.disabled):not([disabled])","select:not(.disabled):not([disabled])","textarea:not(.disabled):not([disabled])",'[role="link"]','[role="link"] *','[role="button"]','[role="button"] *',"[tabindex]:not(.disabled):not([disabled])"].join(","),x=e=>{if(!e||!e.target)return!1;const t=e.target;if("disabled"in t&&t.disabled||-1!==k.indexOf(t.tagName))return!1;if(t.closest(".dropdown-menu"))return!0;const l="LABEL"===t.tagName?t:t.closest("label");if(l){const e=l.getAttribute("for"),t=e?document.getElementById(e):l.querySelector("input, select, textarea");if(t&&!t.disabled)return!0}return t.matches(C)},W=["top","right","bottom","left"],E=["start","end"],$=W.reduce(((e,t)=>e.concat(t,t+"-"+E[0],t+"-"+E[1])),[]),R=Math.min,S=Math.max,_=Math.round,z=Math.floor,V=e=>({x:e,y:e}),T={left:"right",right:"left",bottom:"top",top:"bottom"},A={start:"end",end:"start"};function F(e,t,l){return S(e,R(t,l))}function N(e,t){return"function"==typeof e?e(t):e}function L(e){return e.split("-")[0]}function X(e){return e.split("-")[1]}function O(e){return"x"===e?"y":"x"}function M(e){return"y"===e?"height":"width"}function H(e){return["top","bottom"].includes(L(e))?"y":"x"}function D(e){return O(H(e))}function I(e,t,l){void 0===l&&(l=!1);const a=X(e),o=D(e),n=M(o);let i="x"===o?a===(l?"end":"start")?"right":"left":"start"===a?"bottom":"top";return t.reference[n]>t.floating[n]&&(i=P(i)),[i,P(i)]}function G(e){return e.replace(/start|end/g,(e=>A[e]))}function P(e){return e.replace(/left|right|bottom|top/g,(e=>T[e]))}function K(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function j(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function q(e,t,l){let{reference:a,floating:o}=e;const n=H(t),i=D(t),r=M(i),u=L(t),d="y"===n,s=a.x+a.width/2-o.width/2,v=a.y+a.height/2-o.height/2,f=a[r]/2-o[r]/2;let c;switch(u){case"top":c={x:s,y:a.y-o.height};break;case"bottom":c={x:s,y:a.y+a.height};break;case"right":c={x:a.x+a.width,y:v};break;case"left":c={x:a.x-o.width,y:v};break;default:c={x:a.x,y:a.y}}switch(X(t)){case"start":c[i]-=f*(l&&d?-1:1);break;case"end":c[i]+=f*(l&&d?-1:1)}return c}async function Q(e,t){var l;void 0===t&&(t={});const{x:a,y:o,platform:n,rects:i,elements:r,strategy:u}=e,{boundary:d="clippingAncestors",rootBoundary:s="viewport",elementContext:v="floating",altBoundary:f=!1,padding:c=0}=N(t,e),p=K(c),m=r[f?"floating"===v?"reference":"floating":v],y=j(await n.getClippingRect({element:null==(l=await(null==n.isElement?void 0:n.isElement(m)))||l?m:m.contextElement||await(null==n.getDocumentElement?void 0:n.getDocumentElement(r.floating)),boundary:d,rootBoundary:s,strategy:u})),b="floating"===v?{...i.floating,x:a,y:o}:i.reference,g=await(null==n.getOffsetParent?void 0:n.getOffsetParent(r.floating)),h=await(null==n.isElement?void 0:n.isElement(g))&&await(null==n.getScale?void 0:n.getScale(g))||{x:1,y:1},B=j(n.convertOffsetParentRelativeRectToViewportRelativeRect?await n.convertOffsetParentRelativeRectToViewportRelativeRect({elements:r,rect:b,offsetParent:g,strategy:u}):b);return{top:(y.top-B.top+p.top)/h.y,bottom:(B.bottom-y.bottom+p.bottom)/h.y,left:(y.left-B.left+p.left)/h.x,right:(B.right-y.right+p.right)/h.x}}function Y(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function U(e){return W.some((t=>e[t]>=0))}function J(e){const t=R(...e.map((e=>e.left))),l=R(...e.map((e=>e.top)));return{x:t,y:l,width:S(...e.map((e=>e.right)))-t,height:S(...e.map((e=>e.bottom)))-l}}const Z=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var l,a;const{x:o,y:n,placement:i,middlewareData:r}=t,u=await async function(e,t){const{placement:l,platform:a,elements:o}=e,n=await(null==a.isRTL?void 0:a.isRTL(o.floating)),i=L(l),r=X(l),u="y"===H(l),d=["left","top"].includes(i)?-1:1,s=n&&u?-1:1,v=N(t,e);let{mainAxis:f,crossAxis:c,alignmentAxis:p}="number"==typeof v?{mainAxis:v,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...v};return r&&"number"==typeof p&&(c="end"===r?-1*p:p),u?{x:c*s,y:f*d}:{x:f*d,y:c*s}}(t,e);return i===(null==(l=r.offset)?void 0:l.placement)&&null!=(a=r.arrow)&&a.alignmentOffset?{}:{x:o+u.x,y:n+u.y,data:{...u,placement:i}}}}};function ee(e){return ae(e)?(e.nodeName||"").toLowerCase():"#document"}function te(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function le(e){var t;return null==(t=(ae(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function ae(e){return e instanceof Node||e instanceof te(e).Node}function oe(e){return e instanceof Element||e instanceof te(e).Element}function ne(e){return e instanceof HTMLElement||e instanceof te(e).HTMLElement}function ie(e){return!(typeof ShadowRoot>"u")&&(e instanceof ShadowRoot||e instanceof te(e).ShadowRoot)}function re(e){const{overflow:t,overflowX:l,overflowY:a,display:o}=fe(e);return/auto|scroll|overlay|hidden|clip/.test(t+a+l)&&!["inline","contents"].includes(o)}function ue(e){return["table","td","th"].includes(ee(e))}function de(e){const t=se(),l=fe(e);return"none"!==l.transform||"none"!==l.perspective||!!l.containerType&&"normal"!==l.containerType||!t&&!!l.backdropFilter&&"none"!==l.backdropFilter||!t&&!!l.filter&&"none"!==l.filter||["transform","perspective","filter"].some((e=>(l.willChange||"").includes(e)))||["paint","layout","strict","content"].some((e=>(l.contain||"").includes(e)))}function se(){return!(typeof CSS>"u"||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function ve(e){return["html","body","#document"].includes(ee(e))}function fe(e){return te(e).getComputedStyle(e)}function ce(e){return oe(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function pe(e){if("html"===ee(e))return e;const t=e.assignedSlot||e.parentNode||ie(e)&&e.host||le(e);return ie(t)?t.host:t}function me(e){const t=pe(e);return ve(t)?e.ownerDocument?e.ownerDocument.body:e.body:ne(t)&&re(t)?t:me(t)}function ye(e,t,l){var a;void 0===t&&(t=[]),void 0===l&&(l=!0);const o=me(e),n=o===(null==(a=e.ownerDocument)?void 0:a.body),i=te(o);return n?t.concat(i,i.visualViewport||[],re(o)?o:[],i.frameElement&&l?ye(i.frameElement):[]):t.concat(o,ye(o,[],l))}function be(e){const t=fe(e);let l=parseFloat(t.width)||0,a=parseFloat(t.height)||0;const o=ne(e),n=o?e.offsetWidth:l,i=o?e.offsetHeight:a,r=_(l)!==n||_(a)!==i;return r&&(l=n,a=i),{width:l,height:a,$:r}}function ge(e){return oe(e)?e:e.contextElement}function he(e){const t=ge(e);if(!ne(t))return V(1);const l=t.getBoundingClientRect(),{width:a,height:o,$:n}=be(t);let i=(n?_(l.width):l.width)/a,r=(n?_(l.height):l.height)/o;return(!i||!Number.isFinite(i))&&(i=1),(!r||!Number.isFinite(r))&&(r=1),{x:i,y:r}}const Be=V(0);function we(e){const t=te(e);return se()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:Be}function ke(e,t,l,a){void 0===t&&(t=!1),void 0===l&&(l=!1);const o=e.getBoundingClientRect(),n=ge(e);let i=V(1);t&&(a?oe(a)&&(i=he(a)):i=he(e));const r=function(e,t,l){return void 0===t&&(t=!1),!(!l||t&&l!==te(e))&&t}(n,l,a)?we(n):V(0);let u=(o.left+r.x)/i.x,d=(o.top+r.y)/i.y,s=o.width/i.x,v=o.height/i.y;if(n){const e=te(n),t=a&&oe(a)?te(a):a;let l=e,o=l.frameElement;for(;o&&a&&t!==l;){const e=he(o),t=o.getBoundingClientRect(),a=fe(o),n=t.left+(o.clientLeft+parseFloat(a.paddingLeft))*e.x,i=t.top+(o.clientTop+parseFloat(a.paddingTop))*e.y;u*=e.x,d*=e.y,s*=e.x,v*=e.y,u+=n,d+=i,l=te(o),o=l.frameElement}}return j({width:s,height:v,x:u,y:d})}const Ce=[":popover-open",":modal"];function xe(e){return Ce.some((t=>{try{return e.matches(t)}catch{return!1}}))}function We(e){return ke(le(e)).left+ce(e).scrollLeft}function Ee(e,t,l){let a;if("viewport"===t)a=function(e,t){const l=te(e),a=le(e),o=l.visualViewport;let n=a.clientWidth,i=a.clientHeight,r=0,u=0;if(o){n=o.width,i=o.height;const e=se();(!e||e&&"fixed"===t)&&(r=o.offsetLeft,u=o.offsetTop)}return{width:n,height:i,x:r,y:u}}(e,l);else if("document"===t)a=function(e){const t=le(e),l=ce(e),a=e.ownerDocument.body,o=S(t.scrollWidth,t.clientWidth,a.scrollWidth,a.clientWidth),n=S(t.scrollHeight,t.clientHeight,a.scrollHeight,a.clientHeight);let i=-l.scrollLeft+We(e);const r=-l.scrollTop;return"rtl"===fe(a).direction&&(i+=S(t.clientWidth,a.clientWidth)-o),{width:o,height:n,x:i,y:r}}(le(e));else if(oe(t))a=function(e,t){const l=ke(e,!0,"fixed"===t),a=l.top+e.clientTop,o=l.left+e.clientLeft,n=ne(e)?he(e):V(1);return{width:e.clientWidth*n.x,height:e.clientHeight*n.y,x:o*n.x,y:a*n.y}}(t,l);else{const l=we(e);a={...t,x:t.x-l.x,y:t.y-l.y}}return j(a)}function $e(e,t){const l=pe(e);return!(l===t||!oe(l)||ve(l))&&("fixed"===fe(l).position||$e(l,t))}function Re(e,t){const l=t.get(e);if(l)return l;let a=ye(e,[],!1).filter((e=>oe(e)&&"body"!==ee(e))),o=null;const n="fixed"===fe(e).position;let i=n?pe(e):e;for(;oe(i)&&!ve(i);){const t=fe(i),l=de(i);!l&&"fixed"===t.position&&(o=null),(n?!l&&!o:!l&&"static"===t.position&&o&&["absolute","fixed"].includes(o.position)||re(i)&&!l&&$e(e,i))?a=a.filter((e=>e!==i)):o=t,i=pe(i)}return t.set(e,a),a}function Se(e,t,l){const a=ne(t),o=le(t),n="fixed"===l,i=ke(e,!0,n,t);let r={scrollLeft:0,scrollTop:0};const u=V(0);if(a||!a&&!n)if(("body"!==ee(t)||re(o))&&(r=ce(t)),a){const e=ke(t,!0,n,t);u.x=e.x+t.clientLeft,u.y=e.y+t.clientTop}else o&&(u.x=We(o));return{x:i.left+r.scrollLeft-u.x,y:i.top+r.scrollTop-u.y,width:i.width,height:i.height}}function _e(e,t){return ne(e)&&"fixed"!==fe(e).position?t?t(e):e.offsetParent:null}function ze(e,t){const l=te(e);if(!ne(e)||xe(e))return l;let a=_e(e,t);for(;a&&ue(a)&&"static"===fe(a).position;)a=_e(a,t);return a&&("html"===ee(a)||"body"===ee(a)&&"static"===fe(a).position&&!de(a))?l:a||function(e){let t=pe(e);for(;ne(t)&&!ve(t);){if(de(t))return t;t=pe(t)}return null}(e)||l}const Ve={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:l,offsetParent:a,strategy:o}=e;const n="fixed"===o,i=le(a),r=!!t&&xe(t.floating);if(a===i||r&&n)return l;let u={scrollLeft:0,scrollTop:0},d=V(1);const s=V(0),v=ne(a);if((v||!v&&!n)&&(("body"!==ee(a)||re(i))&&(u=ce(a)),ne(a))){const e=ke(a);d=he(a),s.x=e.x+a.clientLeft,s.y=e.y+a.clientTop}return{width:l.width*d.x,height:l.height*d.y,x:l.x*d.x-u.scrollLeft*d.x+s.x,y:l.y*d.y-u.scrollTop*d.y+s.y}},getDocumentElement:le,getClippingRect:function(e){let{element:t,boundary:l,rootBoundary:a,strategy:o}=e;const n=[..."clippingAncestors"===l?Re(t,this._c):[].concat(l),a],i=n[0],r=n.reduce(((e,l)=>{const a=Ee(t,l,o);return e.top=S(a.top,e.top),e.right=R(a.right,e.right),e.bottom=R(a.bottom,e.bottom),e.left=S(a.left,e.left),e}),Ee(t,i,o));return{width:r.right-r.left,height:r.bottom-r.top,x:r.left,y:r.top}},getOffsetParent:ze,getElementRects:async function(e){const t=this.getOffsetParent||ze,l=this.getDimensions;return{reference:Se(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,...await l(e.floating)}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:l}=be(e);return{width:t,height:l}},getScale:he,isElement:oe,isRTL:function(e){return"rtl"===fe(e).direction}};function Te(e,t,l,a){void 0===a&&(a={});const{ancestorScroll:o=!0,ancestorResize:n=!0,elementResize:i="function"==typeof ResizeObserver,layoutShift:r="function"==typeof IntersectionObserver,animationFrame:u=!1}=a,d=ge(e),s=o||n?[...d?ye(d):[],...ye(t)]:[];s.forEach((e=>{o&&e.addEventListener("scroll",l,{passive:!0}),n&&e.addEventListener("resize",l)}));const v=d&&r?function(e,t){let l,a=null;const o=le(e);function n(){var e;clearTimeout(l),null==(e=a)||e.disconnect(),a=null}return function i(r,u){void 0===r&&(r=!1),void 0===u&&(u=1),n();const{left:d,top:s,width:v,height:f}=e.getBoundingClientRect();if(r||t(),!v||!f)return;const c={rootMargin:-z(s)+"px "+-z(o.clientWidth-(d+v))+"px "+-z(o.clientHeight-(s+f))+"px "+-z(d)+"px",threshold:S(0,R(1,u))||1};let p=!0;function m(e){const t=e[0].intersectionRatio;if(t!==u){if(!p)return i();t?i(!1,t):l=setTimeout((()=>{i(!1,1e-7)}),100)}p=!1}try{a=new IntersectionObserver(m,{...c,root:o.ownerDocument})}catch{a=new IntersectionObserver(m,c)}a.observe(e)}(!0),n}(d,l):null;let f=-1,c=null;i&&(c=new ResizeObserver((e=>{let[a]=e;a&&a.target===d&&c&&(c.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame((()=>{var e;null==(e=c)||e.observe(t)}))),l()})),d&&!u&&c.observe(d),c.observe(t));let p,m=u?ke(e):null;return u&&function t(){const a=ke(e);m&&(a.x!==m.x||a.y!==m.y||a.width!==m.width||a.height!==m.height)&&l(),m=a,p=requestAnimationFrame(t)}(),l(),()=>{var e;s.forEach((e=>{o&&e.removeEventListener("scroll",l),n&&e.removeEventListener("resize",l)})),null==v||v(),null==(e=c)||e.disconnect(),c=null,u&&cancelAnimationFrame(p)}}const Ae=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:l,y:a,placement:o}=t,{mainAxis:n=!0,crossAxis:i=!1,limiter:r={fn:e=>{let{x:t,y:l}=e;return{x:t,y:l}}},...u}=N(e,t),d={x:l,y:a},s=await Q(t,u),v=H(L(o)),f=O(v);let c=d[f],p=d[v];if(n){const e="y"===f?"bottom":"right";c=F(c+s["y"===f?"top":"left"],c,c-s[e])}if(i){const e="y"===v?"bottom":"right";p=F(p+s["y"===v?"top":"left"],p,p-s[e])}const m=r.fn({...t,[f]:c,[v]:p});return{...m,data:{x:m.x-l,y:m.y-a}}}}},Fe=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var l,a;const{placement:o,middlewareData:n,rects:i,initialPlacement:r,platform:u,elements:d}=t,{mainAxis:s=!0,crossAxis:v=!0,fallbackPlacements:f,fallbackStrategy:c="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:m=!0,...y}=N(e,t);if(null!=(l=n.arrow)&&l.alignmentOffset)return{};const b=L(o),g=L(r)===r,h=await(null==u.isRTL?void 0:u.isRTL(d.floating)),B=f||(g||!m?[P(r)]:function(e){const t=P(e);return[G(e),t,G(t)]}(r));!f&&"none"!==p&&B.push(...function(e,t,l,a){const o=X(e);let n=function(e,t,l){const a=["left","right"],o=["right","left"],n=["top","bottom"],i=["bottom","top"];switch(e){case"top":case"bottom":return l?t?o:a:t?a:o;case"left":case"right":return t?n:i;default:return[]}}(L(e),"start"===l,a);return o&&(n=n.map((e=>e+"-"+o)),t&&(n=n.concat(n.map(G)))),n}(r,m,p,h));const w=[r,...B],k=await Q(t,y),C=[];let x=(null==(a=n.flip)?void 0:a.overflows)||[];if(s&&C.push(k[b]),v){const e=I(o,i,h);C.push(k[e[0]],k[e[1]])}if(x=[...x,{placement:o,overflows:C}],!C.every((e=>e<=0))){var W,E;const e=((null==(W=n.flip)?void 0:W.index)||0)+1,t=w[e];if(t)return{data:{index:e,overflows:x},reset:{placement:t}};let l=null==(E=x.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:E.placement;if(!l)switch(c){case"bestFit":{var $;const e=null==($=x.map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:$[0];e&&(l=e);break}case"initialPlacement":l=r}if(o!==l)return{reset:{placement:l}}}return{}}}},Ne=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){const{placement:l,rects:a,platform:o,elements:n}=t,{apply:i=()=>{},...r}=N(e,t),u=await Q(t,r),d=L(l),s=X(l),v="y"===H(l),{width:f,height:c}=a.floating;let p,m;"top"===d||"bottom"===d?(p=d,m=s===(await(null==o.isRTL?void 0:o.isRTL(n.floating))?"start":"end")?"left":"right"):(m=d,p="end"===s?"top":"bottom");const y=c-u[p],b=f-u[m],g=!t.middlewareData.shift;let h=y,B=b;if(v){const e=f-u.left-u.right;B=s||g?R(b,e):e}else{const e=c-u.top-u.bottom;h=s||g?R(y,e):e}if(g&&!s){const e=S(u.left,0),t=S(u.right,0),l=S(u.top,0),a=S(u.bottom,0);v?B=f-2*(0!==e||0!==t?e+t:S(u.left,u.right)):h=c-2*(0!==l||0!==a?l+a:S(u.top,u.bottom))}await i({...t,availableWidth:B,availableHeight:h});const w=await o.getDimensions(n.floating);return f!==w.width||c!==w.height?{reset:{rects:!0}}:{}}}};function Le(e){if(function(e){return null!=e&&"object"==typeof e&&"$el"in e}(e)){const t=e.$el;return ae(t)&&"#comment"===ee(t)?null:t}return e}function Xe(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Oe(e,t){const l=Xe(e);return Math.round(t*l)/l}function Me(e,t,l){void 0===l&&(l={});const n=l.whileElementsMounted,i=(0,a.EW)((()=>{var e;return null==(e=(0,o.R1)(l.open))||e})),r=(0,a.EW)((()=>(0,o.R1)(l.middleware))),u=(0,a.EW)((()=>{var e;return null!=(e=(0,o.R1)(l.placement))?e:"bottom"})),d=(0,a.EW)((()=>{var e;return null!=(e=(0,o.R1)(l.strategy))?e:"absolute"})),s=(0,a.EW)((()=>{var e;return null==(e=(0,o.R1)(l.transform))||e})),v=(0,a.EW)((()=>Le(e.value))),f=(0,a.EW)((()=>Le(t.value))),c=(0,o.KR)(0),p=(0,o.KR)(0),m=(0,o.KR)(d.value),y=(0,o.KR)(u.value),b=(0,o.IJ)({}),g=(0,o.KR)(!1),h=(0,a.EW)((()=>{const e={position:m.value,left:"0",top:"0"};if(!f.value)return e;const t=Oe(f.value,c.value),l=Oe(f.value,p.value);return s.value?{...e,transform:"translate("+t+"px, "+l+"px)",...Xe(f.value)>=1.5&&{willChange:"transform"}}:{position:m.value,left:t+"px",top:l+"px"}}));let B;function w(){null==v.value||null==f.value||((e,t,l)=>{const a=new Map,o={platform:Ve,...l},n={...o.platform,_c:a};return(async(e,t,l)=>{const{placement:a="bottom",strategy:o="absolute",middleware:n=[],platform:i}=l,r=n.filter(Boolean),u=await(null==i.isRTL?void 0:i.isRTL(t));let d=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:s,y:v}=q(d,a,u),f=a,c={},p=0;for(let l=0;l<r.length;l++){const{name:n,fn:m}=r[l],{x:y,y:b,data:g,reset:h}=await m({x:s,y:v,initialPlacement:a,placement:f,strategy:o,middlewareData:c,rects:d,platform:i,elements:{reference:e,floating:t}});s=y??s,v=b??v,c={...c,[n]:{...c[n],...g}},h&&p<=50&&(p++,"object"==typeof h&&(h.placement&&(f=h.placement),h.rects&&(d=!0===h.rects?await i.getElementRects({reference:e,floating:t,strategy:o}):h.rects),({x:s,y:v}=q(d,f,u))),l=-1)}return{x:s,y:v,placement:f,strategy:o,middlewareData:c}})(e,t,{...o,platform:n})})(v.value,f.value,{middleware:r.value,placement:u.value,strategy:d.value}).then((e=>{c.value=e.x,p.value=e.y,m.value=e.strategy,y.value=e.placement,b.value=e.middlewareData,g.value=!0}))}function k(){"function"==typeof B&&(B(),B=void 0)}return(0,a.wB)([r,u,d],w,{flush:"sync"}),(0,a.wB)([v,f],(function(){k(),void 0!==n?null==v.value||null==f.value||(B=n(v.value,f.value,w)):w()}),{flush:"sync"}),(0,a.wB)(i,(function(){i.value||(g.value=!1)}),{flush:"sync"}),(0,o.o5)()&&(0,o.jr)(k),{x:(0,o.nD)(c),y:(0,o.nD)(p),strategy:(0,o.nD)(m),placement:(0,o.nD)(y),middlewareData:(0,o.nD)(b),isPositioned:(0,o.nD)(g),floatingStyles:h,update:w}}const He=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),De=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^#&/:?]*(?:[#/?]|$))/i,Ie=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[\d+/a-z]+=*$/i,Ge=(e,t)=>{const l=e.nodeName.toLowerCase();return t.includes(l)?!He.has(l)||!(!De.test(e.nodeValue||"")&&!Ie.test(e.nodeValue||"")):t.filter((e=>e instanceof RegExp)).some((e=>e.test(l)))},Pe={"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},Ke=(e,t,l)=>{if(!e.length)return e;if(l&&"function"==typeof l)return l(e);const a=(new window.DOMParser).parseFromString(e,"text/html"),o=a.body.querySelectorAll("*");for(const e of o){const l=e.nodeName.toLowerCase();if(!Object.keys(t).includes(l)){e.remove();continue}const a=e.attributes,o=[...t["*"]||[],...t[l]||[]];for(const t of a)Ge(t,o)||e.removeAttribute(t.nodeName)}return a.body.innerHTML};function je(e){return!!(0,o.o5)()&&((0,o.jr)(e),!0)}function qe(e){return"function"==typeof e?e():(0,o.R1)(e)}const Qe=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&(globalThis,WorkerGlobalScope);const Ye=Object.prototype.toString,Ue=()=>{},Je=Ze();function Ze(){var e,t;return Qe&&(null==(e=null==window?void 0:window.navigator)?void 0:e.userAgent)&&(/iP(ad|hone|od)/.test(window.navigator.userAgent)||(null==(t=null==window?void 0:window.navigator)?void 0:t.maxTouchPoints)>2&&/iPad|Macintosh/.test(null==window?void 0:window.navigator.userAgent))}function et(e,t){return function(...l){return new Promise(((a,o)=>{Promise.resolve(e((()=>t.apply(this,l)),{fn:t,thisArg:this,args:l})).then(a).catch(o)}))}}const tt=e=>e(),lt=/-(\w)/g,at=function(){const e=Object.create(null);return t=>e[t]||(e[t]=(e=>e.replace(lt,((e,t)=>t?t.toUpperCase():"")))(t))}();function ot(e,t,l={}){const{eventFilter:o=tt,...n}=l;return(0,a.wB)(e,et(o,t),n)}function nt(e,t,l={}){const{eventFilter:a,...n}=l,{eventFilter:i,pause:r,resume:u,isActive:d}=function(e=tt){const t=(0,o.KR)(!0);return{isActive:(0,o.tB)(t),pause:function(){t.value=!1},resume:function(){t.value=!0},eventFilter:(...l)=>{t.value&&e(...l)}}}(a);return{stop:ot(e,t,{...n,eventFilter:i}),pause:r,resume:u,isActive:d}}function it(e,t,...[l]){const{flush:a="sync",deep:o=!1,immediate:n=!0,direction:i="both",transform:r={}}=l||{},u=[],d="ltr"in r&&r.ltr||(e=>e),s="rtl"in r&&r.rtl||(e=>e);return("both"===i||"ltr"===i)&&u.push(nt(e,(e=>{u.forEach((e=>e.pause())),t.value=d(e),u.forEach((e=>e.resume()))}),{flush:a,deep:o,immediate:n})),("both"===i||"rtl"===i)&&u.push(nt(t,(t=>{u.forEach((e=>e.pause())),e.value=s(t),u.forEach((e=>e.resume()))}),{flush:a,deep:o,immediate:n})),()=>{u.forEach((e=>e.stop()))}}function rt(e,t=1e3,l={}){const{immediate:n=!0,immediateCallback:i=!1}=l;let r=null;const u=(0,o.KR)(!1);function d(){r&&(clearInterval(r),r=null)}function s(){u.value=!1,d()}function v(){const l=qe(t);l<=0||(u.value=!0,i&&e(),d(),r=setInterval(e,l))}return n&&Qe&&v(),((0,o.i9)(t)||"function"==typeof t)&&je((0,a.wB)(t,(()=>{u.value&&Qe&&v()}))),je(s),{isActive:u,pause:s,resume:v}}function ut(e,t={}){const{method:l="parseFloat",radix:o,nanToZero:n}=t;return(0,a.EW)((()=>{let t=qe(e);return"string"==typeof t&&(t=Number[l](t,o)),n&&Number.isNaN(t)&&(t=0),t}))}function dt(e={}){const{inheritAttrs:t=!0}=e,l=(0,o.IJ)(),n=(0,a.pM)({setup(e,{slots:t}){return()=>{l.value=t.default}}}),i=(0,a.pM)({inheritAttrs:t,setup(e,{attrs:a,slots:o}){return()=>{var e;l.value;const n=null==(e=l.value)?void 0:e.call(l,{...st(a),$slots:o});return t&&1===(null==n?void 0:n.length)?n[0]:n}}});return function(e,t){if(typeof Symbol<"u"){const l={...e};return Object.defineProperty(l,Symbol.iterator,{enumerable:!1,value(){let e=0;return{next:()=>({value:t[e++],done:e>t.length})}}}),l}return Object.assign([...t],e)}({define:n,reuse:i},[n,i])}function st(e){const t={};for(const l in e)t[at(l)]=e[l];return t}function vt(e){var t;const l=qe(e);return null!=(t=null==l?void 0:l.$el)?t:l}const ft=Qe?window:void 0;function ct(...e){let t,l,o,n;if("string"==typeof e[0]||Array.isArray(e[0])?([l,o,n]=e,t=ft):[t,l,o,n]=e,!t)return Ue;Array.isArray(l)||(l=[l]),Array.isArray(o)||(o=[o]);const i=[],r=()=>{i.forEach((e=>e())),i.length=0},u=(0,a.wB)((()=>[vt(t),qe(n)]),(([e,t])=>{if(r(),!e)return;const a=(e=>"[object Object]"===Ye.call(e))(t)?{...t}:t;i.push(...l.flatMap((t=>o.map((l=>((e,t,l,a)=>(e.addEventListener(t,l,a),()=>e.removeEventListener(t,l,a)))(e,t,l,a))))))}),{immediate:!0,flush:"post"}),d=()=>{u(),r()};return je(d),d}let pt=!1;function mt(e,t,l={}){const{window:a=ft,ignore:o=[],capture:n=!0,detectIframe:i=!1}=l;if(!a)return Ue;Je&&!pt&&(pt=!0,Array.from(a.document.body.children).forEach((e=>e.addEventListener("click",Ue))),a.document.documentElement.addEventListener("click",Ue));let r=!0;const u=e=>o.some((t=>{if("string"==typeof t)return Array.from(a.document.querySelectorAll(t)).some((t=>t===e.target||e.composedPath().includes(t)));{const l=vt(t);return l&&(e.target===l||e.composedPath().includes(l))}})),d=[ct(a,"click",(l=>{const a=vt(e);if(a&&a!==l.target&&!l.composedPath().includes(a)){if(0===l.detail&&(r=!u(l)),!r)return void(r=!0);t(l)}}),{passive:!0,capture:n}),ct(a,"pointerdown",(t=>{const l=vt(e);r=!u(t)&&!(!l||t.composedPath().includes(l))}),{passive:!0}),i&&ct(a,"blur",(l=>{setTimeout((()=>{var o;const n=vt(e);"IFRAME"===(null==(o=a.document.activeElement)?void 0:o.tagName)&&(null==n||!n.contains(a.document.activeElement))&&t(l)}),0)}))].filter(Boolean);return()=>d.forEach((e=>e()))}function yt(...e){let t,l,a={};3===e.length?(t=e[0],l=e[1],a=e[2]):2===e.length?"object"==typeof e[1]?(t=!0,l=e[0],a=e[1]):(t=e[0],l=e[1]):(t=!0,l=e[0]);const{target:o=ft,eventName:n="keydown",passive:i=!1,dedupe:r=!1}=a,u=function(e){return"function"==typeof e?e:"string"==typeof e?t=>t.key===e:Array.isArray(e)?t=>e.includes(t.key):()=>!0}(t);return ct(o,n,(e=>{e.repeat&&qe(r)||u(e)&&l(e)}),i)}const bt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},gt="__vueuse_ssr_handlers__",ht=Bt();function Bt(){return gt in bt||(bt[gt]=bt[gt]||{}),bt[gt]}function wt(e,t){return ht[e]||t}function kt(e,t={}){const{delayEnter:l=0,delayLeave:a=0,window:n=ft}=t,i=(0,o.KR)(!1);let r;const u=e=>{const t=e?l:a;r&&(clearTimeout(r),r=void 0),t?r=setTimeout((()=>i.value=e),t):i.value=e};return n&&(ct(e,"mouseenter",(()=>u(!0)),{passive:!0}),ct(e,"mouseleave",(()=>u(!1)),{passive:!0})),i}function Ct(e,t={}){const{initialValue:l=!1,focusVisible:n=!1}=t,i=(0,o.KR)(!1),r=(0,a.EW)((()=>vt(e)));ct(r,"focus",(e=>{var t,l;(!n||null!=(l=(t=e.target).matches)&&l.call(t,":focus-visible"))&&(i.value=!0)})),ct(r,"blur",(()=>i.value=!1));const u=(0,a.EW)({get:()=>i.value,set(e){var t,l;!e&&i.value?null==(t=r.value)||t.blur():e&&!i.value&&(null==(l=r.value)||l.focus())}});return(0,a.wB)(r,(()=>{u.value=l}),{immediate:!0,flush:"post"}),{focused:u}}function xt(e){return typeof Window<"u"&&e instanceof Window?e.document.documentElement:typeof Document<"u"&&e instanceof Document?e.documentElement:e}const Wt={page:e=>[e.pageX,e.pageY],client:e=>[e.clientX,e.clientY],screen:e=>[e.screenX,e.screenY],movement:e=>e instanceof Touch?null:[e.movementX,e.movementY]};function Et(e,t={}){const{handleOutside:l=!0,window:n=ft}=t,i=t.type||"page",{x:r,y:u,sourceType:d}=function(e={}){const{type:t="page",touch:l=!0,resetOnTouchEnds:a=!1,initialValue:n={x:0,y:0},window:i=ft,target:r=i,scroll:u=!0,eventFilter:d}=e;let s=null;const v=(0,o.KR)(n.x),f=(0,o.KR)(n.y),c=(0,o.KR)(null),p="function"==typeof t?t:Wt[t],m=e=>{const t=p(e);s=e,t&&([v.value,f.value]=t,c.value="mouse")},y=e=>{if(e.touches.length>0){const t=p(e.touches[0]);t&&([v.value,f.value]=t,c.value="touch")}},b=()=>{if(!s||!i)return;const e=p(s);s instanceof MouseEvent&&e&&(v.value=e[0]+i.scrollX,f.value=e[1]+i.scrollY)},g=()=>{v.value=n.x,f.value=n.y},h=d?e=>d((()=>m(e)),{}):e=>m(e),B=d?e=>d((()=>y(e)),{}):e=>y(e),w=d?()=>d((()=>b()),{}):()=>b();if(r){const e={passive:!0};ct(r,["mousemove","dragover"],h,e),l&&"movement"!==t&&(ct(r,["touchstart","touchmove"],B,e),a&&ct(r,"touchend",g,e)),u&&"page"===t&&ct(i,"scroll",w,{passive:!0})}return{x:v,y:f,sourceType:c}}(t),s=(0,o.KR)(e??(null==n?void 0:n.document.body)),v=(0,o.KR)(0),f=(0,o.KR)(0),c=(0,o.KR)(0),p=(0,o.KR)(0),m=(0,o.KR)(0),y=(0,o.KR)(0),b=(0,o.KR)(!0);let g=()=>{};return n&&(g=(0,a.wB)([s,r,u],(()=>{const e=vt(s);if(!e)return;const{left:t,top:a,width:o,height:d}=e.getBoundingClientRect();c.value=t+("page"===i?n.pageXOffset:0),p.value=a+("page"===i?n.pageYOffset:0),m.value=d,y.value=o;const g=r.value-c.value,h=u.value-p.value;b.value=0===o||0===d||g<0||h<0||g>o||h>d,(l||!b.value)&&(v.value=g,f.value=h)}),{immediate:!0}),ct(document,"mouseleave",(()=>{b.value=!0}))),{x:r,y:u,sourceType:d,elementX:v,elementY:f,elementPositionX:c,elementPositionY:p,elementHeight:m,elementWidth:y,isOutside:b,stop:g}}function $t(e){const t=window.getComputedStyle(e);if("scroll"===t.overflowX||"scroll"===t.overflowY||"auto"===t.overflowX&&e.clientWidth<e.scrollWidth||"auto"===t.overflowY&&e.clientHeight<e.scrollHeight)return!0;{const t=e.parentNode;return!(!t||"BODY"===t.tagName)&&$t(t)}}function Rt(e){const t=e||window.event;return!$t(t.target)&&(t.touches.length>1||(t.preventDefault&&t.preventDefault(),!1))}const St=new WeakMap;function _t(e,t=!1){const l=(0,o.KR)(t);let n=null;(0,a.wB)(function(...e){if(1!==e.length)return(0,o.lW)(...e);const t=e[0];return"function"==typeof t?(0,o.tB)((0,o.rY)((()=>({get:t,set:Ue})))):(0,o.KR)(t)}(e),(e=>{const t=xt(qe(e));if(t){const e=t;St.get(e)||St.set(e,e.style.overflow),l.value&&(e.style.overflow="hidden")}}),{immediate:!0});const i=()=>{var t;const a=xt(qe(e));!a||!l.value||(Je&&(null==n||n()),a.style.overflow=null!=(t=St.get(a))?t:"",St.delete(a),l.value=!1)};return je(i),(0,a.EW)({get(){return l.value},set(t){t?(()=>{const t=xt(qe(e));!t||l.value||(Je&&(n=ct(t,"touchmove",(e=>{Rt(e)}),{passive:!1})),t.style.overflow="hidden",l.value=!0)})():i()}})}const zt=["id"],Vt=["id"],Tt=["innerHTML"],At=["innerHTML"],Ft=(0,a.pM)({inheritAttrs:!1,__name:"BPopover",props:(0,a.zz)({boundary:{default:"clippingAncestors"},boundaryPadding:{default:void 0},click:{type:Boolean,default:!1},content:{default:void 0},customClass:{default:""},delay:{default:()=>({show:100,hide:300})},floatingMiddleware:{default:void 0},hide:{type:Boolean,default:void 0},html:{type:Boolean,default:!1},id:{default:void 0},inline:{type:Boolean,default:!1},manual:{type:Boolean,default:!1},modelValue:{type:Boolean},noAutoClose:{type:Boolean,default:!1},noFade:{type:Boolean,default:!1},noFlip:{type:Boolean,default:!1},noHide:{type:Boolean,default:!1},noShift:{type:Boolean,default:!1},noSize:{type:Boolean,default:!1},noninteractive:{type:Boolean,default:!1},offset:{default:null},placement:{default:"top"},persistent:{type:Boolean,default:!1},realtime:{type:Boolean,default:!1},reference:{default:null},strategy:{default:"absolute"},target:{default:null},title:{default:void 0},tooltip:{type:Boolean,default:!1},variant:{default:null},teleportDisabled:{default:!1},teleportTo:{default:void 0}},{modelValue:{type:Boolean,default:!1},modelModifiers:{}}),emits:(0,a.zz)(["hidden","hide","hide-prevented","show","show-prevented","shown"],["update:modelValue"]),setup(e,{expose:t,emit:l}){const i=e,u=l,d=(0,a.fn)(e,"modelValue"),s=(0,o.KR)(d.value),v=(0,o.KR)(d.value);(0,a.nT)((()=>{d.value=s.value})),(0,a.wB)(d,(e=>{e!==s.value&&(e?re():ue(new Event("update:modelValue")))}));const f=Nl((()=>i.id),"popover"),p=(0,o.KR)(!1),m=(0,o.KR)(null),y=(0,o.KR)(null),h=(0,o.KR)(null),B=(0,o.KR)(null),w=(0,o.KR)(null),k=(0,a.EW)((()=>i.title?Ke(i.title,Pe):"")),C=(0,a.EW)((()=>i.content?Ke(i.content,Pe):"")),x=(0,o.lW)((()=>i.placement.startsWith("auto"))),W=ut((()=>i.offset??NaN)),E=(0,a.EW)((()=>"document"===i.boundary||"viewport"===i.boundary?void 0:i.boundary)),_=(0,a.EW)((()=>"document"===i.boundary||"viewport"===i.boundary?i.boundary:void 0)),z=(0,o.KR)({}),V=(0,a.EW)((()=>{if(void 0!==i.floatingMiddleware)return i.floatingMiddleware;const e=null!==i.offset?W.value:i.tooltip?6:8,t=[Z(e)];return!1===i.noFlip&&!x.value&&t.push(Fe({boundary:E.value,rootBoundary:_.value,padding:i.boundaryPadding})),x.value&&t.push(function(e){return void 0===e&&(e={}),{name:"autoPlacement",options:e,async fn(t){var l,a,o;const{rects:n,middlewareData:i,placement:r,platform:u,elements:d}=t,{crossAxis:s=!1,alignment:v,allowedPlacements:f=$,autoAlignment:c=!0,...p}=N(e,t),m=void 0!==v||f===$?function(e,t,l){return(e?[...l.filter((t=>X(t)===e)),...l.filter((t=>X(t)!==e))]:l.filter((e=>L(e)===e))).filter((l=>!e||X(l)===e||!!t&&G(l)!==l))}(v||null,c,f):f,y=await Q(t,p),b=(null==(l=i.autoPlacement)?void 0:l.index)||0,g=m[b];if(null==g)return{};const h=I(g,n,await(null==u.isRTL?void 0:u.isRTL(d.floating)));if(r!==g)return{reset:{placement:m[0]}};const B=[y[L(g)],y[h[0]],y[h[1]]],w=[...(null==(a=i.autoPlacement)?void 0:a.overflows)||[],{placement:g,overflows:B}],k=m[b+1];if(k)return{data:{index:b+1,overflows:w},reset:{placement:k}};const C=w.map((e=>{const t=X(e.placement);return[e.placement,t&&s?e.overflows.slice(0,2).reduce(((e,t)=>e+t),0):e.overflows[0],e.overflows]})).sort(((e,t)=>e[1]-t[1])),x=(null==(o=C.filter((e=>e[2].slice(0,X(e[0])?2:3).every((e=>e<=0))))[0])?void 0:o[0])||C[0][0];return x!==r?{data:{index:b+1,overflows:w},reset:{placement:x}}:{}}}}({alignment:i.placement.split("-")[1]||void 0,boundary:E.value,rootBoundary:_.value,padding:i.boundaryPadding})),!1===i.noShift&&t.push(Ae({boundary:E.value,rootBoundary:_.value,padding:i.boundaryPadding})),!1===i.noHide&&t.push(function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){const{rects:l}=t,{strategy:a="referenceHidden",...o}=N(e,t);switch(a){case"referenceHidden":{const e=Y(await Q(t,{...o,elementContext:"reference"}),l.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:U(e)}}}case"escaped":{const e=Y(await Q(t,{...o,altBoundary:!0}),l.floating);return{data:{escapedOffsets:e,escaped:U(e)}}}default:return{}}}}}({boundary:E.value,rootBoundary:_.value,padding:i.boundaryPadding})),!0===i.inline&&t.push(function(e){return void 0===e&&(e={}),{name:"inline",options:e,async fn(t){const{placement:l,elements:a,rects:o,platform:n,strategy:i}=t,{padding:r=2,x:u,y:d}=N(e,t),s=Array.from(await(null==n.getClientRects?void 0:n.getClientRects(a.reference))||[]),v=function(e){const t=e.slice().sort(((e,t)=>e.y-t.y)),l=[];let a=null;for(let e=0;e<t.length;e++){const o=t[e];!a||o.y-a.y>a.height/2?l.push([o]):l[l.length-1].push(o),a=o}return l.map((e=>j(J(e))))}(s),f=j(J(s)),c=K(r),p=await n.getElementRects({reference:{getBoundingClientRect:function(){if(2===v.length&&v[0].left>v[1].right&&null!=u&&null!=d)return v.find((e=>u>e.left-c.left&&u<e.right+c.right&&d>e.top-c.top&&d<e.bottom+c.bottom))||f;if(v.length>=2){if("y"===H(l)){const e=v[0],t=v[v.length-1],a="top"===L(l),o=e.top,n=t.bottom,i=a?e.left:t.left,r=a?e.right:t.right;return{top:o,bottom:n,left:i,right:r,width:r-i,height:n-o,x:i,y:o}}const e="left"===L(l),t=S(...v.map((e=>e.right))),a=R(...v.map((e=>e.left))),o=v.filter((l=>e?l.left===a:l.right===t)),n=o[0].top,i=o[o.length-1].bottom;return{top:n,bottom:i,left:a,right:t,width:t-a,height:i-n,x:a,y:n}}return f}},floating:a.floating,strategy:i});return o.reference.x!==p.reference.x||o.reference.y!==p.reference.y||o.reference.width!==p.reference.width||o.reference.height!==p.reference.height?{reset:{rects:p}}:{}}}}()),t.push(function(e){return{name:"arrow",options:e,fn(t){const l=Le((0,o.R1)(e.element));return null==l?{}:(e=>({name:"arrow",options:e,async fn(t){const{x:l,y:a,placement:o,rects:n,platform:i,elements:r,middlewareData:u}=t,{element:d,padding:s=0}=N(e,t)||{};if(null==d)return{};const v=K(s),f={x:l,y:a},c=D(o),p=M(c),m=await i.getDimensions(d),y="y"===c,b=y?"top":"left",g=y?"bottom":"right",h=y?"clientHeight":"clientWidth",B=n.reference[p]+n.reference[c]-f[c]-n.floating[p],w=f[c]-n.reference[c],k=await(null==i.getOffsetParent?void 0:i.getOffsetParent(d));let C=k?k[h]:0;(!C||!await(null==i.isElement?void 0:i.isElement(k)))&&(C=r.floating[h]||n.floating[p]);const x=B/2-w/2,W=C/2-m[p]/2-1,E=R(v[b],W),$=R(v[g],W),S=E,_=C-m[p]-$,z=C/2-m[p]/2+x,V=F(S,z,_),T=!u.arrow&&null!=X(o)&&z!==V&&n.reference[p]/2-(z<S?E:$)-m[p]/2<0,A=T?z<S?z-S:z-_:0;return{[c]:f[c]+A,data:{[c]:V,centerOffset:z-V-A,...T&&{alignmentOffset:A}},reset:T}}}))({element:l,padding:e.padding}).fn(t)}}}({element:h,padding:10})),!1===i.noSize&&t.push(Ne({boundary:E.value,rootBoundary:_.value,padding:i.boundaryPadding,apply({availableWidth:e,availableHeight:t}){z.value={maxHeight:t?`${t}px`:void 0,maxWidth:e?`${e}px`:void 0}}})),t})),T=(0,o.lW)((()=>x.value?void 0:i.placement)),{floatingStyles:A,middlewareData:O,placement:P,update:q}=Me(y,m,{placement:T,middleware:V,strategy:(0,o.lW)((()=>i.strategy)),whileElementsMounted:(...e)=>Te(...e,{animationFrame:i.realtime})}),ee=(0,o.KR)({position:"absolute"});(0,a.wB)(O,(()=>{var e;if(!1===i.noHide&&(null!=(e=O.value.hide)&&e.referenceHidden?p.value=!0:p.value=!1),O.value.arrow){const{x:e,y:t}=O.value.arrow;ee.value={position:"absolute",top:t?`${t}px`:"",left:e?`${e}px`:""}}}));const te=(0,a.EW)((()=>{const e=i.tooltip?"tooltip":"popover";return[e,`b-${e}`,{[`b-${e}-${i.variant}`]:null!==i.variant,show:s.value&&!p.value,"pe-none":!s.value,fade:!i.noFade,"d-none":!s.value&&i.noFade,[`${i.customClass}`]:void 0!==i.customClass,[`bs-${e}-${Nt(P.value)}`]:void 0!==P.value}]})),{isOutside:le}=Et(m),{isOutside:ae}=Et(B),oe=e=>{const t=e??new Event("click");s.value?ue(t):re()},ne=(e,t={})=>new c(e,{cancelable:!1,target:m.value||null,relatedTarget:null,trigger:null,...t,componentId:f.value});let ie;const re=()=>{const e=ne("show",{cancelable:!0});u("show",e),e.defaultPrevented?u("show-prevented"):(v.value=!0,(0,a.dY)((()=>{var e;q(),ie=setTimeout((()=>{q(),s.value=!0,(0,a.dY)((()=>{u("shown",ne("shown"))}))}),"number"==typeof i.delay?i.delay:(null==(e=i.delay)?void 0:e.show)||0)})))},ue=e=>{var t;const l=ne("hide",{cancelable:!0});if(u("hide",l),l.defaultPrevented)return void u("hide-prevented");ie&&(clearTimeout(ie),ie=void 0);const o="number"==typeof i.delay?i.delay:(null==(t=i.delay)?void 0:t.hide)||0;setTimeout((()=>{var t,l;"click"===(null==e?void 0:e.type)||"forceHide"===(null==e?void 0:e.type)||"update:modelValue"===(null==e?void 0:e.type)&&i.manual||!i.noninteractive&&le.value&&ae.value&&(null==(t=m.value)||!t.contains(null==document?void 0:document.activeElement))&&(null==(l=B.value)||!l.contains(null==document?void 0:document.activeElement))||i.noninteractive&&ae.value?(s.value=!1,(0,a.dY)((()=>{setTimeout((()=>{v.value=!1}),m.value?b(m.value):150),u("hidden",ne("hidden"))}))):setTimeout((()=>{ue(e)}),o<50?50:o)}),o)};t({hide:ue,show:re,toggle:oe});const de=()=>{var e;if(i.target){const e=Pt(i.target);e?B.value=e:r.warn("Target element not found",i.target)}else B.value=null==(e=w.value)?void 0:e.nextElementSibling;if(i.reference){const e=Pt(i.reference);e?y.value=e:r.warn("Reference element not found",i.reference)}else y.value=B.value;if(B.value&&!i.manual&&g){if(B.value.addEventListener("forceHide",ue),i.click)return void B.value.addEventListener("click",oe);B.value.addEventListener("pointerenter",re),B.value.addEventListener("pointerleave",ue),B.value.addEventListener("focus",re),B.value.addEventListener("blur",ue)}},se=()=>{B.value&&(B.value.removeEventListener("forceHide",ue),B.value.removeEventListener("click",oe),B.value.removeEventListener("pointerenter",re),B.value.removeEventListener("pointerleave",ue),B.value.removeEventListener("focus",re),B.value.removeEventListener("blur",ue))};return mt(m,(()=>{s.value&&i.click&&!i.noAutoClose&&!i.manual&&ue(new Event("clickOutside"))}),{ignore:[B]}),(0,a.wB)([()=>i.click,()=>i.target,()=>i.reference],(()=>{se(),de()})),(0,a.sV)(de),(0,a.xo)(se),(e,t)=>((0,a.uX)(),(0,a.CE)(a.FK,null,[(0,a.Lk)("span",{id:(0,o.R1)(f)+"_placeholder",ref_key:"placeholder",ref:w},null,8,zt),(0,a.RG)(e.$slots,"target",{show:re,hide:ue,toggle:oe,showState:s.value}),((0,a.uX)(),(0,a.Wv)(a.Im,{to:e.teleportTo,disabled:!e.teleportTo||e.teleportDisabled},[v.value||i.persistent?((0,a.uX)(),(0,a.CE)("div",(0,a.v6)({key:0,id:(0,o.R1)(f)},e.$attrs,{ref_key:"element",ref:m,class:te.value,role:"tooltip",tabindex:"-1",style:(0,o.R1)(A)}),[(0,a.Lk)("div",{ref_key:"arrow",ref:h,class:(0,n.normalizeClass)((i.tooltip?"tooltip":"popover")+"-arrow"),style:(0,n.normalizeStyle)(ee.value),"data-popper-arrow":""},null,6),(0,a.Lk)("div",{class:"overflow-auto",style:(0,n.normalizeStyle)(z.value)},[e.title||e.$slots.title?((0,a.uX)(),(0,a.CE)(a.FK,{key:0},[i.html?((0,a.uX)(),(0,a.CE)("div",{key:1,class:(0,n.normalizeClass)(["position-sticky top-0",i.tooltip?"tooltip-inner":"popover-header"]),innerHTML:k.value},null,10,Tt)):((0,a.uX)(),(0,a.CE)("div",{key:0,class:(0,n.normalizeClass)(["position-sticky top-0",i.tooltip?"tooltip-inner":"popover-header"])},[(0,a.RG)(e.$slots,"title",{},(()=>[(0,a.eW)((0,n.toDisplayString)(e.title),1)]))],2))],64)):(0,a.Q3)("",!0),i.tooltip&&!e.$slots.title&&!e.title||!i.tooltip?((0,a.uX)(),(0,a.CE)(a.FK,{key:1},[i.html?((0,a.uX)(),(0,a.CE)("div",{key:1,class:(0,n.normalizeClass)(i.tooltip?"tooltip-inner":"popover-body"),innerHTML:C.value},null,10,At)):((0,a.uX)(),(0,a.CE)("div",{key:0,class:(0,n.normalizeClass)(i.tooltip?"tooltip-inner":"popover-body")},[(0,a.RG)(e.$slots,"default",{},(()=>[(0,a.eW)((0,n.toDisplayString)(e.content),1)]))],2))],64)):(0,a.Q3)("",!0)],4)],16,Vt)):(0,a.Q3)("",!0)],8,["to","disabled"]))],64))}}),Nt=e=>{const[t]=e.split("-");switch(t){case"left":return"start";case"right":return"end";default:return t}},Lt=e=>"object"!=typeof e||!1!==e.active,Xt=(e,t)=>{if(!Lt(e))return{};const l=typeof e>"u"||"object"==typeof e&&!e.title&&!e.content,a=t.getAttribute("title")||t.getAttribute("data-original-title");return l?a?(t.removeAttribute("title"),t.setAttribute("data-original-title",a),{content:Ke(a,Pe)}):{}:"string"==typeof e?{content:Ke(e,Pe)}:{title:null!=e&&e.title?Ke(null==e?void 0:e.title,Pe):void 0,content:null!=e&&e.content?Ke(null==e?void 0:e.content,Pe):void 0}},Ot=(e,t)=>({target:t,modelValue:e.modifiers.show,inline:e.modifiers.inline,click:e.modifiers.click,realtime:e.modifiers.realtime,persistent:e.modifiers.persistent,placement:e.modifiers.left?"left":e.modifiers.right?"right":e.modifiers.bottom?"bottom":e.modifiers.top?"top":void 0,html:!0,..."object"==typeof e.value?e.value:{},...e.modifiers.interactive?{noninteractive:!1}:{},title:null,content:null}),Mt=(e,t,l)=>{var o;const n=document.createElement("span");t.modifiers.body?document.body.appendChild(n):t.modifiers.child?e.appendChild(n):null==(o=e.parentNode)||o.insertBefore(n,e.nextSibling),(0,i.render)((0,a.h)(Ft,l),n),e.$__element=n},Ht=e=>{const t=e.$__element;t&&(0,i.render)(null,t),setTimeout((()=>{null==t||t.remove()}),0),delete e.$__element},Dt=(e,t,l)=>{const a=xl(e,t);return l&&"function"==typeof l?l(a,t,e):a},It=(e,t,l)=>t.concat(["sm","md","lg","xl","xxl"]).reduce(((t,a)=>(t[e?`${e}${a.charAt(0).toUpperCase()+a.slice(1)}`:a]=l,t)),{}),Gt=(e,t,l,a=l)=>Object.keys(t).reduce(((t,o)=>(e[o]&&t.push([a,o.replace(l,""),e[o]].filter((e=>e&&"boolean"!=typeof e)).join("-").toLowerCase()),t)),[]),Pt=e=>{if(e)return"string"==typeof e?typeof document>"u"?void 0:document.getElementById(e)??document.querySelector(e)??void 0:e.$el??e},Kt=/_/g,jt=/([a-z])([A-Z])/g,qt=/^[0-9]*\.?[0-9]+$/,Qt=/(\s|^)(\w)/g,Yt=/(\s|^)(\w)/,Ut=/\s+/,Jt=/^#/,Zt=/^#[A-Za-z]+[\w\-:.]*$/,el=/[-/\\^$*+?.()|[\]{}]/g,tl=/[\s\uFEFF\xA0]+/g,ll=e=>e.replace(Kt," ").replace(jt,((e,t,l)=>`${t} ${l}`)).replace(Yt,((e,t,l)=>t+l.toUpperCase())),al=e=>e.replace(Kt," ").replace(jt,((e,t,l)=>`${t} ${l}`)).replace(Qt,((e,t,l)=>t+l.toUpperCase())),ol=e=>"string"==typeof e?al(e):void 0!==e.label?e.label:"string"==typeof e.key?al(e.key):e.key,nl=Symbol("carousel"),il=Symbol("tabs"),rl=Symbol("progress"),ul=Symbol("listGroup"),dl=Symbol("avatarGroup"),sl=Symbol("accordion"),vl=Symbol("checkboxGroup"),fl=Symbol("radioGroup"),cl=Symbol("collapse"),pl=Symbol("collapse"),ml=Symbol("navbar"),yl=Symbol("toastPlugin"),bl=Symbol("rtlPlugin"),gl=Symbol("breadcrumbPlugin"),hl=(Symbol("modalControllerPlugin"),Symbol("modalManagerPlugin")),Bl=Symbol("idPluginKey"),wl=(e,t={},l={})=>{const a=[e];let o;for(let e=0;e<a.length&&!o;e++)o=l[a[e]];return o&&"function"==typeof o?o(t):o},kl=(e,t)=>Object.keys(e).filter((e=>!t.map((e=>e.toString())).includes(e))).reduce(((t,l)=>({...t,[l]:e[l]})),{}),Cl=(e,t)=>[...t].reduce(((t,l)=>(t[l]=e[l],t)),{}),xl=(e,t,l)=>{const a=t.split(/[.[\]]/g);let o=e;for(const e of a){if(null==o)return l;""!==e.trim()&&(o=o[e])}return void 0===o?l:o},Wl=(e,t,l)=>{if(!e)return{};if(!t||void 0===l)return e;const a=t.split(/[.[\]]/g).filter((e=>!!e.trim())),o=e=>{if(a.length>1){const t=a.shift(),l=null!==(e=>{if(null==e)return null;const t=Number.parseInt(e);return Number.isNaN(t)?null:t})(a[0]);e[t]=void 0===e[t]?l?[]:{}:e[t],o(e[t])}else e[a[0]]=l},n=(e=>{if(null==(t=e)||"object"!=typeof t&&"function"!=typeof t)return e;var t;if("function"==typeof e)return e.bind({});const l=new e.constructor;return Object.getOwnPropertyNames(e).forEach((t=>{l[t]=e[t]})),l})(e);return o(n),n},El=(e,t)=>t+(e?(e=>{const t=e.trim();return t.charAt(0).toUpperCase()+t.slice(1)})(e):""),$l=(e,t)=>{const l=(0,o.lW)(t),n=(0,o.lW)(e),i=(0,o.lW)((()=>(e=>!(!e.href&&!e.to))(n.value))),r=(0,a.EW)((()=>i.value?Cl(n.value,l.value??["active","activeClass","append","href","rel","replace","routerComponentName","target","to","variant","opacity","opacityHover","underlineVariant","underlineOffset","underlineOffsetHover","underlineOpacity","underlineOpacityHover"]):{}));return{computedLink:i,computedLinkProps:r}},Rl=e=>(0,a.EW)((()=>{let t=(0,o.BA)(e);return t={...t,variant:t.variant??null,bgVariant:t.bgVariant??null,textVariant:t.textVariant??null},{[`text-bg-${t.variant}`]:null!==t.variant,[`text-${t.textVariant}`]:null!==t.textVariant&&null===t.variant,[`bg-${t.bgVariant}`]:null!==t.bgVariant&&null===t.variant}})),Sl=(e,t=(0,o.KR)(1e3),l={})=>{const n=(0,o.tB)((0,o.lW)(e)),i=(0,o.tB)((0,o.lW)(t)),r=(0,o.KR)(!1),u=(0,o.KR)(0),d=(0,o.lW)((()=>Math.ceil(n.value/i.value))),s=(0,o.lW)((()=>c.value||r.value?Math.round(n.value-u.value*i.value):0)),{pause:v,resume:f,isActive:c}=rt((()=>{u.value=u.value+1}),t,l),p=()=>{r.value=!1,u.value=0,f()},m=()=>{r.value=!1,u.value=d.value};return(0,a.nT)((()=>{u.value>d.value&&(u.value=d.value),u.value===d.value&&v()})),(0,a.wB)([i,n],(()=>{m(),p()})),{isActive:(0,o.tB)(c),isPaused:(0,o.tB)(r),restart:p,stop:m,pause:()=>{!1!==c.value&&(r.value=!0,v())},resume:()=>{u.value!==d.value&&(r.value=!1,f())},value:s}},_l=e=>(0,a.EW)((()=>{const t=(0,o.BA)(e);return!0===t?"is-valid":!1===t?"is-invalid":null})),zl=e=>(0,a.EW)((()=>{const t=(0,o.BA)(e);return{"form-check":!1===t.plain&&!1===t.button&&t.hasDefaultSlot,"form-check-reverse":!0===t.reverse,"form-check-inline":!0===t.inline,"form-switch":!0===t.switch,[`form-control-${t.size}`]:void 0!==t.size&&"md"!==t.size&&!1===t.button}})),Vl=e=>{const t=(0,o.lW)(e),l=_l((()=>t.value.state??null));return(0,a.EW)((()=>[l.value,{"form-check-input":!1===t.value.plain&&!1===t.value.button,"btn-check":!0===t.value.button}]))},Tl=e=>(0,a.EW)((()=>{const t=(0,o.BA)(e);return{"form-check-label":!1===t.plain&&!1===t.button,btn:!0===t.button,[`btn-${t.buttonVariant}`]:!0===t.button&&void 0!==t.buttonVariant&&null!==t.buttonVariant,[`btn-${t.size}`]:t.button&&t.size&&"md"!==t.size}})),Al=e=>{const t=(0,o.lW)(e),l=v((()=>t.value.ariaInvalid),(()=>t.value.state));return(0,a.EW)((()=>({"aria-invalid":l.value,"aria-required":!0===t.value.required||void 0})))},Fl=e=>(0,a.EW)((()=>{const t=(0,o.BA)(e);return{"was-validated":!0===t.validated,"btn-group":!0===t.buttons&&!1===t.stacked,"btn-group-vertical":!0===t