var e="top",t="bottom",n="right",r="left",o="auto",i=[e,t,n,r],a="start",s="end",f="clippingParents",c="viewport",p="popper",u="reference",l=i.reduce((function(e,t){return e.concat([t+"-"+a,t+"-"+s])}),[]),d=[].concat(i,[o]).reduce((function(e,t){return e.concat([t,t+"-"+a,t+"-"+s])}),[]),h="beforeRead",m="read",v="afterRead",g="beforeMain",y="main",b="afterMain",w="beforeWrite",x="write",O="afterWrite",j=[h,m,v,g,y,b,w,x,O];function E(e){return e?(e.nodeName||"").toLowerCase():null}function D(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function A(e){return e instanceof D(e).Element||e instanceof Element}function L(e){return e instanceof D(e).HTMLElement||e instanceof HTMLElement}function k(e){return"undefined"!=typeof ShadowRoot&&(e instanceof D(e).ShadowRoot||e instanceof ShadowRoot)}var P={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},o=t.elements[e];L(o)&&E(o)&&(Object.assign(o.style,n),Object.keys(r).forEach((function(e){var t=r[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var r=t.elements[e],o=t.attributes[e]||{},i=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});L(r)&&E(r)&&(Object.assign(r.style,i),Object.keys(o).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]};function M(e){return e.split("-")[0]}var W=Math.max,B=Math.min,H=Math.round;function R(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function T(){return!/^((?!chrome|android).)*safari/i.test(R())}function S(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&L(e)&&(o=e.offsetWidth>0&&H(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&H(r.height)/e.offsetHeight||1);var a=(A(e)?D(e):window).visualViewport,s=!T()&&n,f=(r.left+(s&&a?a.offsetLeft:0))/o,c=(r.top+(s&&a?a.offsetTop:0))/i,p=r.width/o,u=r.height/i;return{width:p,height:u,top:c,right:f+p,bottom:c+u,left:f,x:f,y:c}}function V(e){var t=S(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function q(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&k(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function C(e){return D(e).getComputedStyle(e)}function N(e){return["table","td","th"].indexOf(E(e))>=0}function I(e){return((A(e)?e.ownerDocument:e.document)||window.document).documentElement}function F(e){return"html"===E(e)?e:e.assignedSlot||e.parentNode||(k(e)?e.host:null)||I(e)}function U(e){return L(e)&&"fixed"!==C(e).position?e.offsetParent:null}function z(e){for(var t=D(e),n=U(e);n&&N(n)&&"static"===C(n).position;)n=U(n);return n&&("html"===E(n)||"body"===E(n)&&"static"===C(n).position)?t:n||function(e){var t=/firefox/i.test(R());if(/Trident/i.test(R())&&L(e)&&"fixed"===C(e).position)return null;var n=F(e);for(k(n)&&(n=n.host);L(n)&&["html","body"].indexOf(E(n))<0;){var r=C(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}function _(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function X(e,t,n){return W(e,B(t,n))}function Y(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function G(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}var J={name:"arrow",enabled:!0,phase:"main",fn:function(o){var a,s=o.state,f=o.name,c=o.options,p=s.elements.arrow,u=s.modifiersData.popperOffsets,l=M(s.placement),d=_(l),h=[r,n].indexOf(l)>=0?"height":"width";if(p&&u){var m=function(e,t){return Y("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:G(e,i))}(c.padding,s),v=V(p),g="y"===d?e:r,y="y"===d?t:n,b=s.rects.reference[h]+s.rects.reference[d]-u[d]-s.rects.popper[h],w=u[d]-s.rects.reference[d],x=z(p),O=x?"y"===d?x.clientHeight||0:x.clientWidth||0:0,j=b/2-w/2,E=m[g],D=O-v[h]-m[y],A=O/2-v[h]/2+j,L=X(E,A,D),k=d;s.modifiersData[f]=((a={})[k]=L,a.centerOffset=L-A,a)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&q(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function K(e){return e.split("-")[1]}var Q={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Z(o){var i,a=o.popper,f=o.popperRect,c=o.placement,p=o.variation,u=o.offsets,l=o.position,d=o.gpuAcceleration,h=o.adaptive,m=o.roundOffsets,v=o.isFixed,g=u.x,y=void 0===g?0:g,b=u.y,w=void 0===b?0:b,x="function"==typeof m?m({x:y,y:w}):{x:y,y:w};y=x.x,w=x.y;var O=u.hasOwnProperty("x"),j=u.hasOwnProperty("y"),E=r,A=e,L=window;if(h){var k=z(a),P="clientHeight",M="clientWidth";if(k===D(a)&&"static"!==C(k=I(a)).position&&"absolute"===l&&(P="scrollHeight",M="scrollWidth"),c===e||(c===r||c===n)&&p===s)A=t,w-=(v&&k===L&&L.visualViewport?L.visualViewport.height:k[P])-f.height,w*=d?1:-1;if(c===r||(c===e||c===t)&&p===s)E=n,y-=(v&&k===L&&L.visualViewport?L.visualViewport.width:k[M])-f.width,y*=d?1:-1}var W,B=Object.assign({position:l},h&&Q),R=!0===m?function(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:H(n*o)/o||0,y:H(r*o)/o||0}}({x:y,y:w},D(a)):{x:y,y:w};return y=R.x,w=R.y,d?Object.assign({},B,((W={})[A]=j?"0":"",W[E]=O?"0":"",W.transform=(L.devicePixelRatio||1)<=1?"translate("+y+"px, "+w+"px)":"translate3d("+y+"px, "+w+"px, 0)",W)):Object.assign({},B,((i={})[A]=j?w+"px":"",i[E]=O?y+"px":"",i.transform="",i))}var $={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=void 0===r||r,i=n.adaptive,a=void 0===i||i,s=n.roundOffsets,f=void 0===s||s,c={placement:M(t.placement),variation:K(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,Z(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:f})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,Z(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:f})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},ee={passive:!0};var te={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=void 0===o||o,a=r.resize,s=void 0===a||a,f=D(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&c.forEach((function(e){e.addEventListener("scroll",n.update,ee)})),s&&f.addEventListener("resize",n.update,ee),function(){i&&c.forEach((function(e){e.removeEventListener("scroll",n.update,ee)})),s&&f.removeEventListener("resize",n.update,ee)}},data:{}},ne={left:"right",right:"left",bottom:"top",top:"bottom"};function re(e){return e.replace(/left|right|bottom|top/g,(function(e){return ne[e]}))}var oe={start:"end",end:"start"};function ie(e){return e.replace(/start|end/g,(function(e){return oe[e]}))}function ae(e){var t=D(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function se(e){return S(I(e)).left+ae(e).scrollLeft}function fe(e){var t=C(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function ce(e){return["html","body","#document"].indexOf(E(e))>=0?e.ownerDocument.body:L(e)&&fe(e)?e:ce(F(e))}function pe(e,t){var n;void 0===t&&(t=[]);var r=ce(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=D(r),a=o?[i].concat(i.visualViewport||[],fe(r)?r:[]):r,s=t.concat(a);return o?s:s.concat(pe(F(a)))}function ue(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function le(e,t,n){return t===c?ue(function(e,t){var n=D(e),r=I(e),o=n.visualViewport,i=r.clientWidth,a=r.clientHeight,s=0,f=0;if(o){i=o.width,a=o.height;var c=T();(c||!c&&"fixed"===t)&&(s=o.offsetLeft,f=o.offsetTop)}return{width:i,height:a,x:s+se(e),y:f}}(e,n)):A(t)?function(e,t){var n=S(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):ue(function(e){var t,n=I(e),r=ae(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=W(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=W(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-r.scrollLeft+se(e),f=-r.scrollTop;return"rtl"===C(o||n).direction&&(s+=W(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:s,y:f}}(I(e)))}function de(e,t,n,r){var o="clippingParents"===t?function(e){var t=pe(F(e)),n=["absolute","fixed"].indexOf(C(e).position)>=0&&L(e)?z(e):e;return A(n)?t.filter((function(e){return A(e)&&q(e,n)&&"body"!==E(e)})):[]}(e):[].concat(t),i=[].concat(o,[n]),a=i[0],s=i.reduce((function(t,n){var o=le(e,n,r);return t.top=W(o.top,t.top),t.right=B(o.right,t.right),t.bottom=B(o.bottom,t.bottom),t.left=W(o.left,t.left),t}),le(e,a,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function he(o){var i,f=o.reference,c=o.element,p=o.placement,u=p?M(p):null,l=p?K(p):null,d=f.x+f.width/2-c.width/2,h=f.y+f.height/2-c.height/2;switch(u){case e:i={x:d,y:f.y-c.height};break;case t:i={x:d,y:f.y+f.height};break;case n:i={x:f.x+f.width,y:h};break;case r:i={x:f.x-c.width,y:h};break;default:i={x:f.x,y:f.y}}var m=u?_(u):null;if(null!=m){var v="y"===m?"height":"width";switch(l){case a:i[m]=i[m]-(f[v]/2-c[v]/2);break;case s:i[m]=i[m]+(f[v]/2-c[v]/2)}}return i}function me(r,o){void 0===o&&(o={});var a=o,s=a.placement,l=void 0===s?r.placement:s,d=a.strategy,h=void 0===d?r.strategy:d,m=a.boundary,v=void 0===m?f:m,g=a.rootBoundary,y=void 0===g?c:g,b=a.elementContext,w=void 0===b?p:b,x=a.altBoundary,O=void 0!==x&&x,j=a.padding,E=void 0===j?0:j,D=Y("number"!=typeof E?E:G(E,i)),L=w===p?u:p,k=r.rects.popper,P=r.elements[O?L:w],M=de(A(P)?P:P.contextElement||I(r.elements.popper),v,y,h),W=S(r.elements.reference),B=he({reference:W,element:k,strategy:"absolute",placement:l}),H=ue(Object.assign({},k,B)),R=w===p?H:W,T={top:M.top-R.top+D.top,bottom:R.bottom-M.bottom+D.bottom,left:M.left-R.left+D.left,right:R.right-M.right+D.right},V=r.modifiersData.offset;if(w===p&&V){var q=V[l];Object.keys(T).forEach((function(r){var o=[n,t].indexOf(r)>=0?1:-1,i=[e,t].indexOf(r)>=0?"y":"x";T[r]+=q[i]*o}))}return T}function ve(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=n.boundary,a=n.rootBoundary,s=n.padding,f=n.flipVariations,c=n.allowedAutoPlacements,p=void 0===c?d:c,u=K(r),h=u?f?l:l.filter((function(e){return K(e)===u})):i,m=h.filter((function(e){return p.indexOf(e)>=0}));0===m.length&&(m=h);var v=m.reduce((function(t,n){return t[n]=me(e,{placement:n,boundary:o,rootBoundary:a,padding:s})[M(n)],t}),{});return Object.keys(v).sort((function(e,t){return v[e]-v[t]}))}var ge={name:"flip",enabled:!0,phase:"main",fn:function(i){var s=i.state,f=i.options,c=i.name;if(!s.modifiersData[c]._skip){for(var p=f.mainAxis,u=void 0===p||p,l=f.altAxis,d=void 0===l||l,h=f.fallbackPlacements,m=f.padding,v=f.boundary,g=f.rootBoundary,y=f.altBoundary,b=f.flipVariations,w=void 0===b||b,x=f.allowedAutoPlacements,O=s.options.placement,j=M(O),E=h||(j===O||!w?[re(O)]:function(e){if(M(e)===o)return[];var t=re(e);return[ie(e),t,ie(t)]}(O)),D=[O].concat(E).reduce((function(e,t){return e.concat(M(t)===o?ve(s,{placement:t,boundary:v,rootBoundary:g,padding:m,flipVariations:w,allowedAutoPlacements:x}):t)}),[]),A=s.rects.reference,L=s.rects.popper,k=new Map,P=!0,W=D[0],B=0;B=0,V=S?"width":"height",q=me(s,{placement:H,boundary:v,rootBoundary:g,altBoundary:y,padding:m}),C=S?T?n:r:T?t:e;A[V]>L[V]&&(C=re(C));var N=re(C),I=[];if(u&&I.push(q[R]<=0),d&&I.push(q[C]<=0,q[N]<=0),I.every((function(e){return e}))){W=H,P=!1;break}k.set(H,I)}if(P)for(var F=function(e){var t=D.find((function(t){var n=k.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return W=t,"break"},U=w?3:1;U>0;U--){if("break"===F(U))break}s.placement!==W&&(s.modifiersData[c]._skip=!0,s.placement=W,s.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function ye(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function be(o){return[e,n,t,r].some((function(e){return o[e]>=0}))}var we={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=me(t,{elementContext:"reference"}),s=me(t,{altBoundary:!0}),f=ye(a,r),c=ye(s,o,i),p=be(f),u=be(c);t.modifiersData[n]={referenceClippingOffsets:f,popperEscapeOffsets:c,isReferenceHidden:p,hasPopperEscaped:u},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":p,"data-popper-escaped":u})}};var xe={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(t){var o=t.state,i=t.options,a=t.name,s=i.offset,f=void 0===s?[0,0]:s,c=d.reduce((function(t,i){return t[i]=function(t,o,i){var a=M(t),s=[r,e].indexOf(a)>=0?-1:1,f="function"==typeof i?i(Object.assign({},o,{placement:t})):i,c=f[0],p=f[1];return c=c||0,p=(p||0)*s,[r,n].indexOf(a)>=0?{x:p,y:c}:{x:c,y:p}}(i,o.rects,f),t}),{}),p=c[o.placement],u=p.x,l=p.y;null!=o.modifiersData.popperOffsets&&(o.modifiersData.popperOffsets.x+=u,o.modifiersData.popperOffsets.y+=l),o.modifiersData[a]=c}};var Oe={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=he({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}};var je={name:"preventOverflow",enabled:!0,phase:"main",fn:function(o){var i=o.state,s=o.options,f=o.name,c=s.mainAxis,p=void 0===c||c,u=s.altAxis,l=void 0!==u&&u,d=s.boundary,h=s.rootBoundary,m=s.altBoundary,v=s.padding,g=s.tether,y=void 0===g||g,b=s.tetherOffset,w=void 0===b?0:b,x=me(i,{boundary:d,rootBoundary:h,padding:v,altBoundary:m}),O=M(i.placement),j=K(i.placement),E=!j,D=_(O),A="x"===D?"y":"x",L=i.modifiersData.popperOffsets,k=i.rects.reference,P=i.rects.popper,H="function"==typeof w?w(Object.assign({},i.rects,{placement:i.placement})):w,R="number"==typeof H?{mainAxis:H,altAxis:H}:Object.assign({mainAxis:0,altAxis:0},H),T=i.modifiersData.offset?i.modifiersData.offset[i.placement]:null,S={x:0,y:0};if(L){if(p){var q,C="y"===D?e:r,N="y"===D?t:n,I="y"===D?"height":"width",F=L[D],U=F+x[C],Y=F-x[N],G=y?-P[I]/2:0,J=j===a?k[I]:P[I],Q=j===a?-P[I]:-k[I],Z=i.elements.arrow,$=y&&Z?V(Z):{width:0,height:0},ee=i.modifiersData["arrow#persistent"]?i.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},te=ee[C],ne=ee[N],re=X(0,k[I],$[I]),oe=E?k[I]/2-G-re-te-R.mainAxis:J-re-te-R.mainAxis,ie=E?-k[I]/2+G+re+ne+R.mainAxis:Q+re+ne+R.mainAxis,ae=i.elements.arrow&&z(i.elements.arrow),se=ae?"y"===D?ae.clientTop||0:ae.clientLeft||0:0,fe=null!=(q=null==T?void 0:T[D])?q:0,ce=F+ie-fe,pe=X(y?B(U,F+oe-fe-se):U,F,y?W(Y,ce):Y);L[D]=pe,S[D]=pe-F}if(l){var ue,le="x"===D?e:r,de="x"===D?t:n,he=L[A],ve="y"===A?"height":"width",ge=he+x[le],ye=he-x[de],be=-1!==[e,r].indexOf(O),we=null!=(ue=null==T?void 0:T[A])?ue:0,xe=be?ge:he-k[ve]-P[ve]-we+R.altAxis,Oe=be?he+k[ve]+P[ve]-we-R.altAxis:ye,je=y&&be?function(e,t,n){var r=X(e,t,n);return r>n?n:r}(xe,he,Oe):X(y?xe:ge,he,y?Oe:ye);L[A]=je,S[A]=je-he}i.modifiersData[f]=S}},requiresIfExists:["offset"]};function Ee(e,t,n){void 0===n&&(n=!1);var r,o,i=L(t),a=L(t)&&function(e){var t=e.getBoundingClientRect(),n=H(t.width)/e.offsetWidth||1,r=H(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),s=I(t),f=S(e,a,n),c={scrollLeft:0,scrollTop:0},p={x:0,y:0};return(i||!i&&!n)&&(("body"!==E(t)||fe(s))&&(c=(r=t)!==D(r)&&L(r)?{scrollLeft:(o=r).scrollLeft,scrollTop:o.scrollTop}:ae(r)),L(t)?((p=S(t,!0)).x+=t.clientLeft,p.y+=t.clientTop):s&&(p.x=se(s))),{x:f.left+c.scrollLeft-p.x,y:f.top+c.scrollTop-p.y,width:f.width,height:f.height}}function De(e){var t=new Map,n=new Set,r=[];function o(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var r=t.get(e);r&&o(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||o(e)})),r}var Ae={placement:"bottom",modifiers:[],strategy:"absolute"};function Le(){for(var e=arguments.length,t=new Array(e),n=0;n