/*! NanoPop 2.2.0 MIT | https://github.com/Simonwep/nanopop */ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).NanoPop={})}(this,(function(e){"use strict";const t={variantFlipOrder:{start:"sme",middle:"mse",end:"ems"},positionFlipOrder:{top:"tbrl",right:"rltb",bottom:"btrl",left:"lrbt"},position:"bottom",margin:8,padding:0},o=(e,o,n)=>{const{container:r,margin:i,padding:p,position:s,variantFlipOrder:f,positionFlipOrder:l}={container:document.documentElement.getBoundingClientRect(),...t,...n},{left:c,top:d}=o.style;o.style.left="0",o.style.top="0";const m=e.getBoundingClientRect(),a=o.getBoundingClientRect(),u={t:m.top-a.height-i,b:m.bottom+i,r:m.right+i,l:m.left-a.width-i},b={vs:m.left,vm:m.left+m.width/2+-a.width/2,ve:m.left+m.width-a.width,hs:m.top,hm:m.bottom-m.height/2-a.height/2,he:m.bottom-a.height},[h,g="middle"]=s.split("-"),v=l[h],O=f[g],{top:x,left:y,bottom:j,right:F}=r;for(const e of v){const t="t"===e||"b"===e,n=u[e],[r,i]=t?["top","left"]:["left","top"],[s,f]=t?[a.height,a.width]:[a.width,a.height],[l,c]=t?[j,F]:[F,j],[d,m]=t?[x,y]:[y,x];if(!(nl))for(const s of O){const l=b[(t?"v":"h")+s];if(!(lc))return o.style[i]=l-a[i]+"px",o.style[r]=n-a[r]+"px",e+s}}return o.style.left=c,o.style.top=d,null};e.createPopper=(e,t,n)=>{const r="object"!=typeof e||e instanceof HTMLElement?{reference:e,popper:t,...n}:e;return{update(e=r){const{reference:t,popper:n}=Object.assign(r,e);if(!n||!t)throw new Error("Popper- or reference-element missing.");return o(t,n,r)}}},e.defaults=t,e.reposition=o,e.version="2.2.0",Object.defineProperty(e,"o",{value:!0})})); //# sourceMappingURL=nanopop.min.js.map