//popper.js@1.16.1 import"./__shared_chunk_Y7BFQXXC.js";var T=typeof window!="undefined"&&typeof document!="undefined"&&typeof navigator!="undefined",ce=function(){for(var e=["Edge","Trident","Firefox"],t=0;t=0)return 1;return 0}();function de(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then(function(){t=!1,e()}))}}function he(e){var t=!1;return function(){t||(t=!0,setTimeout(function(){t=!1,e()},ce))}}var ve=T&&window.Promise,me=ve?de:he;function K(e){var t={};return e&&t.toString.call(e)==="[object Function]"}function O(e,t){if(e.nodeType!==1)return[];var r=e.ownerDocument.defaultView,n=r.getComputedStyle(e,null);return t?n[t]:n}function I(e){return e.nodeName==="HTML"?e:e.parentNode||e.host}function C(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=O(e),r=t.overflow,n=t.overflowX,o=t.overflowY;return/(auto|scroll|overlay)/.test(r+o+n)?e:C(I(e))}function X(e){return e&&e.referenceNode?e.referenceNode:e}var z=T&&!!(window.MSInputMethodContext&&document.documentMode),Y=T&&/MSIE 10/.test(navigator.userAgent);function S(e){return e===11?z:e===10?Y:z||Y}function x(e){if(!e)return document.documentElement;for(var t=S(10)?document.body:null,r=e.offsetParent||null;r===t&&e.nextElementSibling;)r=(e=e.nextElementSibling).offsetParent;var n=r&&r.nodeName;return!n||n==="BODY"||n==="HTML"?e?e.ownerDocument.documentElement:document.documentElement:["TH","TD","TABLE"].indexOf(r.nodeName)!==-1&&O(r,"position")==="static"?x(r):r}function ge(e){var t=e.nodeName;return t==="BODY"?!1:t==="HTML"||x(e.firstElementChild)===e}function R(e){return e.parentNode!==null?R(e.parentNode):e}function D(e,t){if(!e||!e.nodeType||!t||!t.nodeType)return document.documentElement;var r=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,n=r?e:t,o=r?t:e,i=document.createRange();i.setStart(n,0),i.setEnd(o,0);var f=i.commonAncestorContainer;if(e!==f&&t!==f||n.contains(o))return ge(f)?f:x(f);var s=R(e);return s.host?D(s.host,t):D(e,R(t).host)}function P(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"top",r=t==="top"?"scrollTop":"scrollLeft",n=e.nodeName;if(n==="BODY"||n==="HTML"){var o=e.ownerDocument.documentElement,i=e.ownerDocument.scrollingElement||o;return i[r]}return e[r]}function be(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,n=P(t,"top"),o=P(t,"left"),i=r?-1:1;return e.top+=n*i,e.bottom+=n*i,e.left+=o*i,e.right+=o*i,e}function q(e,t){var r=t==="x"?"Left":"Top",n=r==="Left"?"Right":"Bottom";return parseFloat(e["border"+r+"Width"])+parseFloat(e["border"+n+"Width"])}function _(e,t,r,n){return Math.max(t["offset"+e],t["scroll"+e],r["client"+e],r["offset"+e],r["scroll"+e],S(10)?parseInt(r["offset"+e])+parseInt(n["margin"+(e==="Height"?"Top":"Left")])+parseInt(n["margin"+(e==="Height"?"Bottom":"Right")]):0)}function J(e){var t=e.body,r=e.documentElement,n=S(10)&&getComputedStyle(r);return{height:_("Height",t,r,n),width:_("Width",t,r,n)}}var we=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},ye=function(){function e(t,r){for(var n=0;n2&&arguments[2]!==void 0?arguments[2]:!1,n=S(10),o=t.nodeName==="HTML",i=W(e),f=W(t),s=C(e),a=O(t),l=parseFloat(a.borderTopWidth),p=parseFloat(a.borderLeftWidth);r&&o&&(f.top=Math.max(f.top,0),f.left=Math.max(f.left,0));var u=y({top:i.top-f.top-l,left:i.left-f.left-p,width:i.width,height:i.height});if(u.marginTop=0,u.marginLeft=0,!n&&o){var d=parseFloat(a.marginTop),c=parseFloat(a.marginLeft);u.top-=l-d,u.bottom-=l-d,u.left-=p-c,u.right-=p-c,u.marginTop=d,u.marginLeft=c}return(n&&!r?t.contains(s):t===s&&s.nodeName!=="BODY")&&(u=be(u,t)),u}function Ee(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=e.ownerDocument.documentElement,n=k(e,r),o=Math.max(r.clientWidth,window.innerWidth||0),i=Math.max(r.clientHeight,window.innerHeight||0),f=t?0:P(r),s=t?0:P(r,"left"),a={top:f-n.top+n.marginTop,left:s-n.left+n.marginLeft,width:o,height:i};return y(a)}function Q(e){var t=e.nodeName;if(t==="BODY"||t==="HTML")return!1;if(O(e,"position")==="fixed")return!0;var r=I(e);return r?Q(r):!1}function Z(e){if(!e||!e.parentElement||S())return document.documentElement;for(var t=e.parentElement;t&&O(t,"transform")==="none";)t=t.parentElement;return t||document.documentElement}function V(e,t,r,n){var o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1,i={top:0,left:0},f=o?Z(e):D(e,X(t));if(n==="viewport")i=Ee(f,o);else{var s=void 0;n==="scrollParent"?(s=C(I(t)),s.nodeName==="BODY"&&(s=e.ownerDocument.documentElement)):n==="window"?s=e.ownerDocument.documentElement:s=n;var a=k(s,f,o);if(s.nodeName==="HTML"&&!Q(f)){var l=J(e.ownerDocument),p=l.height,u=l.width;i.top+=a.top-a.marginTop,i.bottom=p+a.top,i.left+=a.left-a.marginLeft,i.right=u+a.left}else i=a}r=r||0;var d=typeof r=="number";return i.left+=d?r:r.left||0,i.top+=d?r:r.top||0,i.right-=d?r:r.right||0,i.bottom-=d?r:r.bottom||0,i}function Oe(e){var t=e.width,r=e.height;return t*r}function ee(e,t,r,n,o){var i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:0;if(e.indexOf("auto")===-1)return e;var f=V(r,n,i,o),s={top:{width:f.width,height:t.top-f.top},right:{width:f.right-t.right,height:f.height},bottom:{width:f.width,height:f.bottom-t.bottom},left:{width:t.left-f.left,height:f.height}},a=Object.keys(s).map(function(d){return g({key:d},s[d],{area:Oe(s[d])})}).sort(function(d,c){return c.area-d.area}),l=a.filter(function(d){var c=d.width,h=d.height;return c>=r.clientWidth&&h>=r.clientHeight}),p=l.length>0?l[0].key:a[0].key,u=e.split("-")[1];return p+(u?"-"+u:"")}function te(e,t,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,o=n?Z(t):D(t,X(r));return k(r,o,n)}function re(e){var t=e.ownerDocument.defaultView,r=t.getComputedStyle(e),n=parseFloat(r.marginTop||0)+parseFloat(r.marginBottom||0),o=parseFloat(r.marginLeft||0)+parseFloat(r.marginRight||0),i={width:e.offsetWidth+o,height:e.offsetHeight+n};return i}function N(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,function(r){return t[r]})}function ne(e,t,r){r=r.split("-")[0];var n=re(e),o={width:n.width,height:n.height},i=["right","left"].indexOf(r)!==-1,f=i?"top":"left",s=i?"left":"top",a=i?"height":"width",l=i?"width":"height";return o[f]=t[f]+t[a]/2-n[a]/2,r===s?o[s]=t[s]-n[l]:o[s]=t[N(s)],o}function M(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function xe(e,t,r){if(Array.prototype.findIndex)return e.findIndex(function(o){return o[t]===r});var n=M(e,function(o){return o[t]===r});return e.indexOf(n)}function ie(e,t,r){var n=r===void 0?e:e.slice(0,xe(e,"name",r));return n.forEach(function(o){o.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var i=o.function||o.fn;o.enabled&&K(i)&&(t.offsets.popper=y(t.offsets.popper),t.offsets.reference=y(t.offsets.reference),t=i(t,o))}),t}function Pe(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=te(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=ee(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=ne(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=ie(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function oe(e,t){return e.some(function(r){var n=r.name,o=r.enabled;return o&&n===t})}function $(e){for(var t=[!1,"ms","Webkit","Moz","O"],r=e.charAt(0).toUpperCase()+e.slice(1),n=0;nf[c]&&(e.offsets.popper[u]+=s[u]+h-f[c]),e.offsets.popper=y(e.offsets.popper);var v=s[u]+s[l]/2-h/2,b=O(e.instance.popper),w=parseFloat(b["margin"+p]),m=parseFloat(b["border"+p+"Width"]),E=v-e.offsets.popper[u]-w-m;return E=Math.max(Math.min(f[l]-h,E),0),e.arrowElement=n,e.offsets.arrow=(r={},L(r,u,Math.round(E)),L(r,d,""),r),e}function He(e){return e==="end"?"start":e==="start"?"end":e}var ue=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],F=ue.slice(3);function G(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=F.indexOf(e),n=F.slice(r+1).concat(F.slice(0,r));return t?n.reverse():n}var A={FLIP:"flip",CLOCKWISE:"clockwise",COUNTERCLOCKWISE:"counterclockwise"};function Ie(e,t){if(oe(e.instance.modifiers,"inner")||e.flipped&&e.placement===e.originalPlacement)return e;var r=V(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),n=e.placement.split("-")[0],o=N(n),i=e.placement.split("-")[1]||"",f=[];switch(t.behavior){case A.FLIP:f=[n,o];break;case A.CLOCKWISE:f=G(n);break;case A.COUNTERCLOCKWISE:f=G(n,!0);break;default:f=t.behavior}return f.forEach(function(s,a){if(n!==s||f.length===a+1)return e;n=e.placement.split("-")[0],o=N(n);var l=e.offsets.popper,p=e.offsets.reference,u=Math.floor,d=n==="left"&&u(l.right)>u(p.left)||n==="right"&&u(l.left)u(p.top)||n==="bottom"&&u(l.top)u(r.right),v=u(l.top)u(r.bottom),w=n==="left"&&c||n==="right"&&h||n==="top"&&v||n==="bottom"&&b,m=["top","bottom"].indexOf(n)!==-1,E=!!t.flipVariations&&(m&&i==="start"&&c||m&&i==="end"&&h||!m&&i==="start"&&v||!m&&i==="end"&&b),pe=!!t.flipVariationsByContent&&(m&&i==="start"&&h||m&&i==="end"&&c||!m&&i==="start"&&b||!m&&i==="end"&&v),j=E||pe;(d||w||j)&&(e.flipped=!0,(d||w)&&(n=f[a+1]),j&&(i=He(i)),e.placement=n+(i?"-"+i:""),e.offsets.popper=g({},e.offsets.popper,ne(e.instance.popper,e.offsets.reference,e.placement)),e=ie(e.instance.modifiers,e,"flip"))}),e}function ke(e){var t=e.offsets,r=t.popper,n=t.reference,o=e.placement.split("-")[0],i=Math.floor,f=["top","bottom"].indexOf(o)!==-1,s=f?"right":"bottom",a=f?"left":"top",l=f?"width":"height";return r[s]i(n[s])&&(e.offsets.popper[a]=i(n[s])),e}function Ve(e,t,r,n){var o=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),i=+o[1],f=o[2];if(!i)return e;if(f.indexOf("%")===0){var s=void 0;switch(f){case"%p":s=r;break;case"%":case"%r":default:s=n}var a=y(s);return a[t]/100*i}else if(f==="vh"||f==="vw"){var l=void 0;return f==="vh"?l=Math.max(document.documentElement.clientHeight,window.innerHeight||0):l=Math.max(document.documentElement.clientWidth,window.innerWidth||0),l/100*i}else return i}function $e(e,t,r,n){var o=[0,0],i=["right","left"].indexOf(n)!==-1,f=e.split(/(\+|\-)/).map(function(p){return p.trim()}),s=f.indexOf(M(f,function(p){return p.search(/,|\s/)!==-1}));f[s]&&f[s].indexOf(",")===-1&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var a=/\s*,\s*|\s+/,l=s!==-1?[f.slice(0,s).concat([f[s].split(a)[0]]),[f[s].split(a)[1]].concat(f.slice(s+1))]:[f];return l=l.map(function(p,u){var d=(u===1?!i:i)?"height":"width",c=!1;return p.reduce(function(h,v){return h[h.length-1]===""&&["+","-"].indexOf(v)!==-1?(h[h.length-1]=v,c=!0,h):c?(h[h.length-1]+=v,c=!1,h):h.concat(v)},[]).map(function(h){return Ve(h,d,t,r)})}),l.forEach(function(p,u){p.forEach(function(d,c){U(d)&&(o[u]+=d*(p[c-1]==="-"?-1:1))})}),o}function Ue(e,t){var r=t.offset,n=e.placement,o=e.offsets,i=o.popper,f=o.reference,s=n.split("-")[0],a=void 0;return U(+r)?a=[+r,0]:a=$e(r,i,f,s),s==="left"?(i.top+=a[0],i.left-=a[1]):s==="right"?(i.top+=a[0],i.left+=a[1]):s==="top"?(i.left+=a[0],i.top-=a[1]):s==="bottom"&&(i.left+=a[0],i.top+=a[1]),e.popper=i,e}function je(e,t){var r=t.boundariesElement||x(e.instance.popper);e.instance.reference===r&&(r=x(r));var n=$("transform"),o=e.instance.popper.style,i=o.top,f=o.left,s=o[n];o.top="",o.left="",o[n]="";var a=V(e.instance.popper,e.instance.reference,t.padding,r,e.positionFixed);o.top=i,o.left=f,o[n]=s,t.boundaries=a;var l=t.priority,p=e.offsets.popper,u={primary:function(c){var h=p[c];return p[c]a[c]&&!t.escapeWithReference&&(v=Math.min(p[h],a[c]-(c==="right"?p.width:p.height))),L({},h,v)}};return l.forEach(function(d){var c=["left","top"].indexOf(d)!==-1?"primary":"secondary";p=g({},p,u[c](d))}),e.offsets.popper=p,e}function ze(e){var t=e.placement,r=t.split("-")[0],n=t.split("-")[1];if(n){var o=e.offsets,i=o.reference,f=o.popper,s=["bottom","top"].indexOf(r)!==-1,a=s?"left":"top",l=s?"width":"height",p={start:L({},a,i[a]),end:L({},a,i[a]+i[l]-f[l])};e.offsets.popper=g({},f,p[n])}return e}function Ye(e){if(!ae(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,r=M(e.instance.modifiers,function(n){return n.name==="preventOverflow"}).boundaries;if(t.bottomr.right||t.top>r.bottom||t.right2&&arguments[2]!==void 0?arguments[2]:{};we(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(n.update)},this.update=me(this.update.bind(this)),this.options=g({},e.Defaults,o),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t&&t.jquery?t[0]:t,this.popper=r&&r.jquery?r[0]:r,this.options.modifiers={},Object.keys(g({},e.Defaults.modifiers,o.modifiers)).forEach(function(f){n.options.modifiers[f]=g({},e.Defaults.modifiers[f]||{},o.modifiers?o.modifiers[f]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(f){return g({name:f},n.options.modifiers[f])}).sort(function(f,s){return f.order-s.order}),this.modifiers.forEach(function(f){f.enabled&&K(f.onLoad)&&f.onLoad(n.reference,n.popper,n.options,f,n.state)}),this.update();var i=this.options.eventsEnabled;i&&this.enableEventListeners(),this.state.eventsEnabled=i}return ye(e,[{key:"update",value:function(){return Pe.call(this)}},{key:"destroy",value:function(){return Le.call(this)}},{key:"enableEventListeners",value:function(){return Te.call(this)}},{key:"disableEventListeners",value:function(){return Me.call(this)}}]),e}();B.Utils=(typeof window!="undefined"?window:global).PopperUtils;B.placements=ue;B.Defaults=Ge;var le=B;var Je=le;export{Je as default};