@esri/calcite-components
Version:
Web Components for Esri's Calcite Design System.
1 lines • 18.6 kB
JavaScript
import{g as t}from"./p-6b4b7af1.js";var n="top",e="bottom",r="right",o="left",i=[n,e,r,o],a=i.reduce((function(t,n){return t.concat([n+"-start",n+"-end"])}),[]),u=[].concat(i,["auto"]).reduce((function(t,n){return t.concat([n,n+"-start",n+"-end"])}),[]),f=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function c(t){return t?(t.nodeName||"").toLowerCase():null}function p(t){if(null==t)return window;if("[object Window]"!==t.toString()){var n=t.ownerDocument;return n&&n.defaultView||window}return t}function s(t){return t instanceof p(t).Element||t instanceof Element}function d(t){return t instanceof p(t).HTMLElement||t instanceof HTMLElement}function l(t){return"undefined"!=typeof ShadowRoot&&(t instanceof p(t).ShadowRoot||t instanceof ShadowRoot)}function v(t){return t.split("-")[0]}function b(t){var n=t.getBoundingClientRect();return{width:n.width,height:n.height,top:n.top,right:n.right,bottom:n.bottom,left:n.left,x:n.left,y:n.top}}function m(t){var n=b(t),e=t.offsetWidth,r=t.offsetHeight;return Math.abs(n.width-e)<=1&&(e=n.width),Math.abs(n.height-r)<=1&&(r=n.height),{x:t.offsetLeft,y:t.offsetTop,width:e,height:r}}function h(t,n){var e=n.getRootNode&&n.getRootNode();if(t.contains(n))return!0;if(e&&l(e)){var r=n;do{if(r&&t.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function y(t){return p(t).getComputedStyle(t)}function g(t){return["table","td","th"].indexOf(c(t))>=0}function w(t){return((s(t)?t.ownerDocument:t.document)||window.document).documentElement}function O(t){return"html"===c(t)?t:t.assignedSlot||t.parentNode||(l(t)?t.host:null)||w(t)}function x(t){return d(t)&&"fixed"!==y(t).position?t.offsetParent:null}function j(t){for(var n=p(t),e=x(t);e&&g(e)&&"static"===y(e).position;)e=x(e);return e&&("html"===c(e)||"body"===c(e)&&"static"===y(e).position)?n:e||function(t){var n=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");if(-1!==navigator.userAgent.indexOf("Trident")&&d(t)&&"fixed"===y(t).position)return null;for(var e=O(t);d(e)&&["html","body"].indexOf(c(e))<0;){var r=y(e);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||n&&"filter"===r.willChange||n&&r.filter&&"none"!==r.filter)return e;e=e.parentNode}return null}(t)||n}function M(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}var k=Math.max,E=Math.min,P=Math.round;function q(t,n,e){return k(t,E(n,e))}function B(t){return Object.assign({},{top:0,right:0,bottom:0,left:0},t)}function R(t,n){return n.reduce((function(n,e){return n[e]=t,n}),{})}var S={top:"auto",right:"auto",bottom:"auto",left:"auto"};function W(t){var i,a=t.popper,u=t.popperRect,f=t.placement,c=t.offsets,s=t.position,d=t.gpuAcceleration,l=t.adaptive,v=t.roundOffsets,b=!0===v?function(t){var n=t.y,e=window.devicePixelRatio||1;return{x:P(P(t.x*e)/e)||0,y:P(P(n*e)/e)||0}}(c):"function"==typeof v?v(c):c,m=b.x,h=void 0===m?0:m,g=b.y,O=void 0===g?0:g,x=c.hasOwnProperty("x"),M=c.hasOwnProperty("y"),k=o,E=n,q=window;if(l){var B=j(a),R="clientHeight",W="clientWidth";B===p(a)&&"static"!==y(B=w(a)).position&&(R="scrollHeight",W="scrollWidth"),B=B,f===n&&(E=e,O-=B[R]-u.height,O*=d?1:-1),f===o&&(k=r,h-=B[W]-u.width,h*=d?1:-1)}var L,T=Object.assign({position:s},l&&S);return Object.assign({},T,d?((L={})[E]=M?"0":"",L[k]=x?"0":"",L.transform=(q.devicePixelRatio||1)<2?"translate("+h+"px, "+O+"px)":"translate3d("+h+"px, "+O+"px, 0)",L):((i={})[E]=M?O+"px":"",i[k]=x?h+"px":"",i.transform="",i))}var L={passive:!0},T={left:"right",right:"left",bottom:"top",top:"bottom"};function A(t){return t.replace(/left|right|bottom|top/g,(function(t){return T[t]}))}var H={start:"end",end:"start"};function I(t){return t.replace(/start|end/g,(function(t){return H[t]}))}function C(t){var n=p(t);return{scrollLeft:n.pageXOffset,scrollTop:n.pageYOffset}}function z(t){return b(w(t)).left+C(t).scrollLeft}function $(t){var n=y(t);return/auto|scroll|overlay|hidden/.test(n.overflow+n.overflowY+n.overflowX)}function D(t){return["html","body","#document"].indexOf(c(t))>=0?t.ownerDocument.body:d(t)&&$(t)?t:D(O(t))}function U(t,n){var e;void 0===n&&(n=[]);var r=D(t),o=r===(null==(e=t.ownerDocument)?void 0:e.body),i=p(r),a=o?[i].concat(i.visualViewport||[],$(r)?r:[]):r,u=n.concat(a);return o?u:u.concat(U(O(a)))}function V(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function _(t,n){return"viewport"===n?V(function(t){var n=p(t),e=w(t),r=n.visualViewport,o=e.clientWidth,i=e.clientHeight,a=0,u=0;return r&&(o=r.width,i=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(a=r.offsetLeft,u=r.offsetTop)),{width:o,height:i,x:a+z(t),y:u}}(t)):d(n)?function(t){var n=b(t);return n.top=n.top+t.clientTop,n.left=n.left+t.clientLeft,n.bottom=n.top+t.clientHeight,n.right=n.left+t.clientWidth,n.width=t.clientWidth,n.height=t.clientHeight,n.x=n.left,n.y=n.top,n}(n):V(function(t){var n,e=w(t),r=C(t),o=null==(n=t.ownerDocument)?void 0:n.body,i=k(e.scrollWidth,e.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=k(e.scrollHeight,e.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),u=-r.scrollLeft+z(t),f=-r.scrollTop;return"rtl"===y(o||e).direction&&(u+=k(e.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:u,y:f}}(w(t)))}function F(t){return t.split("-")[1]}function G(t){var i,a=t.reference,u=t.element,f=t.placement,c=f?v(f):null,p=f?F(f):null,s=a.x+a.width/2-u.width/2,d=a.y+a.height/2-u.height/2;switch(c){case n:i={x:s,y:a.y-u.height};break;case e:i={x:s,y:a.y+a.height};break;case r:i={x:a.x+a.width,y:d};break;case o:i={x:a.x-u.width,y:d};break;default:i={x:a.x,y:a.y}}var l=c?M(c):null;if(null!=l){var b="y"===l?"height":"width";switch(p){case"start":i[l]=i[l]-(a[b]/2-u[b]/2);break;case"end":i[l]=i[l]+(a[b]/2-u[b]/2)}}return i}function J(t,o){void 0===o&&(o={});var a=o.placement,u=void 0===a?t.placement:a,f=o.boundary,p=void 0===f?"clippingParents":f,l=o.rootBoundary,v=void 0===l?"viewport":l,m=o.elementContext,g=void 0===m?"popper":m,x=o.altBoundary,M=void 0!==x&&x,P=o.padding,q=void 0===P?0:P,S=B("number"!=typeof q?q:R(q,i)),W=t.elements.reference,L=t.rects.popper,T=t.elements[M?"popper"===g?"reference":"popper":g],A=function(t,n,e){var r="clippingParents"===n?function(t){var n=U(O(t)),e=["absolute","fixed"].indexOf(y(t).position)>=0&&d(t)?j(t):t;return s(e)?n.filter((function(t){return s(t)&&h(t,e)&&"body"!==c(t)})):[]}(t):[].concat(n),o=[].concat(r,[e]),i=o.reduce((function(n,e){var r=_(t,e);return n.top=k(r.top,n.top),n.right=E(r.right,n.right),n.bottom=E(r.bottom,n.bottom),n.left=k(r.left,n.left),n}),_(t,o[0]));return i.width=i.right-i.left,i.height=i.bottom-i.top,i.x=i.left,i.y=i.top,i}(s(T)?T:T.contextElement||w(t.elements.popper),p,v),H=b(W),I=G({reference:H,element:L,strategy:"absolute",placement:u}),C=V(Object.assign({},L,I)),z="popper"===g?C:H,$={top:A.top-z.top+S.top,bottom:z.bottom-A.bottom+S.bottom,left:A.left-z.left+S.left,right:z.right-A.right+S.right},D=t.modifiersData.offset;if("popper"===g&&D){var F=D[u];Object.keys($).forEach((function(t){var o=[r,e].indexOf(t)>=0?1:-1,i=[n,e].indexOf(t)>=0?"y":"x";$[t]+=F[i]*o}))}return $}function K(t,n){void 0===n&&(n={});var e=n.boundary,r=n.rootBoundary,o=n.padding,f=n.flipVariations,c=n.allowedAutoPlacements,p=void 0===c?u:c,s=F(n.placement),d=s?f?a:a.filter((function(t){return F(t)===s})):i,l=d.filter((function(t){return p.indexOf(t)>=0}));0===l.length&&(l=d);var b=l.reduce((function(n,i){return n[i]=J(t,{placement:i,boundary:e,rootBoundary:r,padding:o})[v(i)],n}),{});return Object.keys(b).sort((function(t,n){return b[t]-b[n]}))}function N(t,n,e){return void 0===e&&(e={x:0,y:0}),{top:t.top-n.height-e.y,right:t.right-n.width+e.x,bottom:t.bottom-n.height+e.y,left:t.left-n.width-e.x}}function Q(t){return[n,r,e,o].some((function(n){return t[n]>=0}))}function X(t,n,e){void 0===e&&(e=!1);var r,o,i=w(n),a=b(t),u=d(n),f={scrollLeft:0,scrollTop:0},s={x:0,y:0};return(u||!u&&!e)&&(("body"!==c(n)||$(i))&&(f=(r=n)!==p(r)&&d(r)?{scrollLeft:(o=r).scrollLeft,scrollTop:o.scrollTop}:C(r)),d(n)?((s=b(n)).x+=n.clientLeft,s.y+=n.clientTop):i&&(s.x=z(i))),{x:a.left+f.scrollLeft-s.x,y:a.top+f.scrollTop-s.y,width:a.width,height:a.height}}function Y(t){var n=new Map,e=new Set,r=[];function o(t){e.add(t.name),[].concat(t.requires||[],t.requiresIfExists||[]).forEach((function(t){if(!e.has(t)){var r=n.get(t);r&&o(r)}})),r.push(t)}return t.forEach((function(t){n.set(t.name,t)})),t.forEach((function(t){e.has(t.name)||o(t)})),r}var Z={placement:"bottom",modifiers:[],strategy:"absolute"};function tt(){for(var t=arguments.length,n=new Array(t),e=0;e<t;e++)n[e]=arguments[e];return!n.some((function(t){return!(t&&"function"==typeof t.getBoundingClientRect)}))}function nt(t){void 0===t&&(t={});var n=t.defaultModifiers,e=void 0===n?[]:n,r=t.defaultOptions,o=void 0===r?Z:r;return function(t,n,r){void 0===r&&(r=o);var i,a,u={placement:"bottom",orderedModifiers:[],options:Object.assign({},Z,o),modifiersData:{},elements:{reference:t,popper:n},attributes:{},styles:{}},c=[],p=!1,d={state:u,setOptions:function(r){l(),u.options=Object.assign({},o,u.options,r),u.scrollParents={reference:s(t)?U(t):t.contextElement?U(t.contextElement):[],popper:U(n)};var i,a,p=function(t){var n=Y(t);return f.reduce((function(t,e){return t.concat(n.filter((function(t){return t.phase===e})))}),[])}((i=[].concat(e,u.options.modifiers),a=i.reduce((function(t,n){var e=t[n.name];return t[n.name]=e?Object.assign({},e,n,{options:Object.assign({},e.options,n.options),data:Object.assign({},e.data,n.data)}):n,t}),{}),Object.keys(a).map((function(t){return a[t]}))));return u.orderedModifiers=p.filter((function(t){return t.enabled})),u.orderedModifiers.forEach((function(t){var n=t.options,e=t.effect;if("function"==typeof e){var r=e({state:u,name:t.name,instance:d,options:void 0===n?{}:n});c.push(r||function(){})}})),d.update()},forceUpdate:function(){if(!p){var t=u.elements,n=t.reference,e=t.popper;if(tt(n,e)){u.rects={reference:X(n,j(e),"fixed"===u.options.strategy),popper:m(e)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach((function(t){return u.modifiersData[t.name]=Object.assign({},t.data)}));for(var r=0;r<u.orderedModifiers.length;r++)if(!0!==u.reset){var o=u.orderedModifiers[r],i=o.fn,a=o.options;"function"==typeof i&&(u=i({state:u,options:void 0===a?{}:a,name:o.name,instance:d})||u)}else u.reset=!1,r=-1}}},update:(i=function(){return new Promise((function(t){d.forceUpdate(),t(u)}))},function(){return a||(a=new Promise((function(t){Promise.resolve().then((function(){a=void 0,t(i())}))}))),a}),destroy:function(){l(),p=!0}};if(!tt(t,n))return d;function l(){c.forEach((function(t){return t()})),c=[]}return d.setOptions(r).then((function(t){!p&&r.onFirstUpdate&&r.onFirstUpdate(t)})),d}}var et=nt({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(t){var n=t.state,e=t.instance,r=t.options,o=r.scroll,i=void 0===o||o,a=r.resize,u=void 0===a||a,f=p(n.elements.popper),c=[].concat(n.scrollParents.reference,n.scrollParents.popper);return i&&c.forEach((function(t){t.addEventListener("scroll",e.update,L)})),u&&f.addEventListener("resize",e.update,L),function(){i&&c.forEach((function(t){t.removeEventListener("scroll",e.update,L)})),u&&f.removeEventListener("resize",e.update,L)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(t){var n=t.state;n.modifiersData[t.name]=G({reference:n.rects.reference,element:n.rects.popper,strategy:"absolute",placement:n.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(t){var n=t.state,e=t.options,r=e.gpuAcceleration,o=void 0===r||r,i=e.adaptive,a=void 0===i||i,u=e.roundOffsets,f=void 0===u||u,c={placement:v(n.placement),popper:n.elements.popper,popperRect:n.rects.popper,gpuAcceleration:o};null!=n.modifiersData.popperOffsets&&(n.styles.popper=Object.assign({},n.styles.popper,W(Object.assign({},c,{offsets:n.modifiersData.popperOffsets,position:n.options.strategy,adaptive:a,roundOffsets:f})))),null!=n.modifiersData.arrow&&(n.styles.arrow=Object.assign({},n.styles.arrow,W(Object.assign({},c,{offsets:n.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:f})))),n.attributes.popper=Object.assign({},n.attributes.popper,{"data-popper-placement":n.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function(t){var n=t.state;Object.keys(n.elements).forEach((function(t){var e=n.styles[t]||{},r=n.attributes[t]||{},o=n.elements[t];d(o)&&c(o)&&(Object.assign(o.style,e),Object.keys(r).forEach((function(t){var n=r[t];!1===n?o.removeAttribute(t):o.setAttribute(t,!0===n?"":n)})))}))},effect:function(t){var n=t.state,e={popper:{position:n.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(n.elements.popper.style,e.popper),n.styles=e,n.elements.arrow&&Object.assign(n.elements.arrow.style,e.arrow),function(){Object.keys(n.elements).forEach((function(t){var r=n.elements[t],o=n.attributes[t]||{},i=Object.keys(n.styles.hasOwnProperty(t)?n.styles[t]:e[t]).reduce((function(t,n){return t[n]="",t}),{});d(r)&&c(r)&&(Object.assign(r.style,i),Object.keys(o).forEach((function(t){r.removeAttribute(t)})))}))}},requires:["computeStyles"]},{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(t){var e=t.state,i=t.name,a=t.options.offset,f=void 0===a?[0,0]:a,c=u.reduce((function(t,i){return t[i]=function(t,e,i){var a=v(t),u=[o,n].indexOf(a)>=0?-1:1,f="function"==typeof i?i(Object.assign({},e,{placement:t})):i,c=f[0],p=f[1];return c=c||0,p=(p||0)*u,[o,r].indexOf(a)>=0?{x:p,y:c}:{x:c,y:p}}(i,e.rects,f),t}),{}),p=c[e.placement],s=p.y;null!=e.modifiersData.popperOffsets&&(e.modifiersData.popperOffsets.x+=p.x,e.modifiersData.popperOffsets.y+=s),e.modifiersData[i]=c}},{name:"flip",enabled:!0,phase:"main",fn:function(t){var i=t.state,a=t.options,u=t.name;if(!i.modifiersData[u]._skip){for(var f=a.mainAxis,c=void 0===f||f,p=a.altAxis,s=void 0===p||p,d=a.fallbackPlacements,l=a.padding,b=a.boundary,m=a.rootBoundary,h=a.altBoundary,y=a.flipVariations,g=void 0===y||y,w=a.allowedAutoPlacements,O=i.options.placement,x=v(O),j=d||(x!==O&&g?function(t){if("auto"===v(t))return[];var n=A(t);return[I(t),n,I(n)]}(O):[A(O)]),M=[O].concat(j).reduce((function(t,n){return t.concat("auto"===v(n)?K(i,{placement:n,boundary:b,rootBoundary:m,padding:l,flipVariations:g,allowedAutoPlacements:w}):n)}),[]),k=i.rects.reference,E=i.rects.popper,P=new Map,q=!0,B=M[0],R=0;R<M.length;R++){var S=M[R],W=v(S),L="start"===F(S),T=[n,e].indexOf(W)>=0,H=T?"width":"height",C=J(i,{placement:S,boundary:b,rootBoundary:m,altBoundary:h,padding:l}),z=T?L?r:o:L?e:n;k[H]>E[H]&&(z=A(z));var $=A(z),D=[];if(c&&D.push(C[W]<=0),s&&D.push(C[z]<=0,C[$]<=0),D.every((function(t){return t}))){B=S,q=!1;break}P.set(S,D)}if(q)for(var U=function(t){var n=M.find((function(n){var e=P.get(n);if(e)return e.slice(0,t).every((function(t){return t}))}));if(n)return B=n,"break"},V=g?3:1;V>0&&"break"!==U(V);V--);i.placement!==B&&(i.modifiersData[u]._skip=!0,i.placement=B,i.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function(t){var i=t.state,a=t.options,u=t.name,f=a.mainAxis,c=void 0===f||f,p=a.altAxis,s=void 0!==p&&p,d=a.tether,l=void 0===d||d,b=a.tetherOffset,h=void 0===b?0:b,y=J(i,{boundary:a.boundary,rootBoundary:a.rootBoundary,padding:a.padding,altBoundary:a.altBoundary}),g=v(i.placement),w=F(i.placement),O=!w,x=M(g),P="x"===x?"y":"x",B=i.modifiersData.popperOffsets,R=i.rects.reference,S=i.rects.popper,W="function"==typeof h?h(Object.assign({},i.rects,{placement:i.placement})):h,L={x:0,y:0};if(B){if(c||s){var T="y"===x?n:o,A="y"===x?e:r,H="y"===x?"height":"width",I=B[x],C=B[x]+y[T],z=B[x]-y[A],$=l?-S[H]/2:0,D="start"===w?R[H]:S[H],U="start"===w?-S[H]:-R[H],V=i.elements.arrow,_=l&&V?m(V):{width:0,height:0},G=i.modifiersData["arrow#persistent"]?i.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},K=G[T],N=G[A],Q=q(0,R[H],_[H]),X=O?R[H]/2-$-Q-K-W:D-Q-K-W,Y=O?-R[H]/2+$+Q+N+W:U+Q+N+W,Z=i.elements.arrow&&j(i.elements.arrow),tt=i.modifiersData.offset?i.modifiersData.offset[i.placement][x]:0,nt=B[x]+X-tt-(Z?"y"===x?Z.clientTop||0:Z.clientLeft||0:0),et=B[x]+Y-tt;if(c){var rt=q(l?E(C,nt):C,I,l?k(z,et):z);B[x]=rt,L[x]=rt-I}if(s){var ot=B[P],it=ot+y["x"===x?n:o],at=ot-y["x"===x?e:r],ut=q(l?E(it,nt):it,ot,l?k(at,et):at);B[P]=ut,L[P]=ut-ot}}i.modifiersData[u]=L}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(t){var a,u=t.state,f=t.name,c=t.options,p=u.elements.arrow,s=u.modifiersData.popperOffsets,d=v(u.placement),l=M(d),b=[o,r].indexOf(d)>=0?"height":"width";if(p&&s){var h=function(t,n){return B("number"!=typeof(t="function"==typeof t?t(Object.assign({},n.rects,{placement:n.placement})):t)?t:R(t,i))}(c.padding,u),y=m(p),g="y"===l?n:o,w="y"===l?e:r,O=u.rects.reference[b]+u.rects.reference[l]-s[l]-u.rects.popper[b],x=s[l]-u.rects.reference[l],k=j(p),E=k?"y"===l?k.clientHeight||0:k.clientWidth||0:0,P=E/2-y[b]/2+(O/2-x/2),S=q(h[g],P,E-y[b]-h[w]);u.modifiersData[f]=((a={})[l]=S,a.centerOffset=S-P,a)}},effect:function(t){var n=t.state,e=t.options.element,r=void 0===e?"[data-popper-arrow]":e;null!=r&&("string"!=typeof r||(r=n.elements.popper.querySelector(r)))&&h(n.elements.popper,r)&&(n.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(t){var n=t.state,e=t.name,r=n.rects.reference,o=n.rects.popper,i=n.modifiersData.preventOverflow,a=J(n,{elementContext:"reference"}),u=J(n,{altBoundary:!0}),f=N(a,r),c=N(u,o,i),p=Q(f),s=Q(c);n.modifiersData[e]={referenceClippingOffsets:f,popperEscapeOffsets:c,isReferenceHidden:p,hasPopperEscaped:s},n.attributes.popper=Object.assign({},n.attributes.popper,{"data-popper-reference-hidden":p,"data-popper-escaped":s})}}]});const rt={animation:"calcite-popper-anim",animationActive:"calcite-popper-anim--active"};function ot(n,e){const r=["left","right"],o=["start","end"];return"rtl"===t(n)&&(r.reverse(),o.reverse()),e.replace(/-leading/gi,`-${o[0]}`).replace(/-trailing/gi,`-${o[1]}`).replace(/leading/gi,r[0]).replace(/trailing/gi,r[1])}function it({referenceEl:t,el:n,placement:e,overlayPositioning:r="absolute",modifiers:o}){return t?et(t,n,{strategy:r,placement:ot(n,e),modifiers:o}):null}function at({el:t,modifiers:n,placement:e,popper:r}){const o=ot(t,e);r.setOptions({modifiers:n,placement:o})}const ut=Math.ceil((4,Math.sqrt(Math.pow(4,2)+Math.pow(4,2))));export{rt as C,it as c,ut as d,at as u}