Module 528346

1,081 characters · in no known chunk
Dependencies
Required by (4)
Lazily required by (0)none
Lazily requires (0)none
Source Raw
function(e,t,n){"use strict";n.d(t,{A:()=>_});var r=n(420474),i=n(688899),s=n(514467),a=n(638704),o=n(395177),l=n(140851),u=n(444746),c=n(125685),d=n(658614);function _(e,t){void 0===t&&(t={});var n=t,_=n.placement,f=void 0===_?e.placement:_,p=n.strategy,h=void 0===p?e.strategy:p,m=n.boundary,E=void 0===m?l.WY:m,g=n.rootBoundary,A=void 0===g?l.R9:g,I=n.elementContext,T=void 0===I?l.xf:I,S=n.altBoundary,y=void 0!==S&&S,v=n.padding,N=void 0===v?0:v,C=(0,c.A)("number"!=typeof N?N:(0,d.A)(N,l.OM)),R=T===l.xf?l.ir:l.xf,O=e.rects.popper,b=e.elements[y?R:T],D=(0,r.A)((0,u.vq)(b)?b:b.contextElement||(0,i.A)(e.elements.popper),E,A,h),L=(0,s.A)(e.elements.reference),w=(0,a.A)({reference:L,element:O,strategy:"absolute",placement:f}),M=(0,o.A)(Object.assign({},O,w)),P=T===l.xf?M:L,x={top:D.top-P.top+C.top,bottom:P.bottom-D.bottom+C.bottom,left:D.left-P.left+C.left,right:P.right-D.right+C.right},k=e.modifiersData.offset;if(T===l.xf&&k){var U=k[f];Object.keys(x).forEach(function(e){var t=[l.pG,l.sQ].indexOf(e)>=0?1:-1,n=[l.Mn,l.sQ].indexOf(e)>=0?"y":"x";x[e]+=U[n]*t})}return x}}