vue3-popper
Advanced tools
Comparing version 0.4.0 to 0.5.0-0
@@ -1,1 +0,1 @@ | ||
var Popper=function(e){"use strict";function t(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function r(e){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{};r%2?t(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):t(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function n(e,t,r,n,o,a,i){try{var p=e[a](i),c=p.value}catch(e){return void r(e)}p.done?t(c):Promise.resolve(c).then(n,o)}function o(e){return function(){var t=this,r=arguments;return new Promise((function(o,a){var i=e.apply(t,r);function p(e){n(i,o,a,p,c,"next",e)}function c(e){n(i,o,a,p,c,"throw",e)}p(void 0)}))}}function a(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null==r)return;var n,o,a=[],i=!0,p=!1;try{for(r=r.call(e);!(i=(n=r.next()).done)&&(a.push(n.value),!t||a.length!==t);i=!0);}catch(e){p=!0,o=e}finally{try{i||null==r.return||r.return()}finally{if(p)throw o}}return a}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return p(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return p(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function c(e){var t=e.getBoundingClientRect();return{width:t.width,height:t.height,top:t.top,right:t.right,bottom:t.bottom,left:t.left,x:t.left,y:t.top}}function s(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function f(e){var t=s(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function u(e){return e instanceof s(e).Element||e instanceof Element}function l(e){return e instanceof s(e).HTMLElement||e instanceof HTMLElement}function d(e){return"undefined"!=typeof ShadowRoot&&(e instanceof s(e).ShadowRoot||e instanceof ShadowRoot)}function v(e){return e?(e.nodeName||"").toLowerCase():null}function h(e){return((u(e)?e.ownerDocument:e.document)||window.document).documentElement}function m(e){return c(h(e)).left+f(e).scrollLeft}function b(e){return s(e).getComputedStyle(e)}function y(e){var t=b(e),r=t.overflow,n=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+o+n)}function g(e,t,r){void 0===r&&(r=!1);var n,o,a=h(t),i=c(e),p=l(t),u={scrollLeft:0,scrollTop:0},d={x:0,y:0};return(p||!p&&!r)&&(("body"!==v(t)||y(a))&&(u=(n=t)!==s(n)&&l(n)?{scrollLeft:(o=n).scrollLeft,scrollTop:o.scrollTop}:f(n)),l(t)?((d=c(t)).x+=t.clientLeft,d.y+=t.clientTop):a&&(d.x=m(a))),{x:i.left+u.scrollLeft-d.x,y:i.top+u.scrollTop-d.y,width:i.width,height:i.height}}function w(e){var t=c(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function O(e){return"html"===v(e)?e:e.assignedSlot||e.parentNode||(d(e)?e.host:null)||h(e)}function x(e){return["html","body","#document"].indexOf(v(e))>=0?e.ownerDocument.body:l(e)&&y(e)?e:x(O(e))}function k(e,t){var r;void 0===t&&(t=[]);var n=x(e),o=n===(null==(r=e.ownerDocument)?void 0:r.body),a=s(n),i=o?[a].concat(a.visualViewport||[],y(n)?n:[]):n,p=t.concat(i);return o?p:p.concat(k(O(i)))}function j(e){return["table","td","th"].indexOf(v(e))>=0}function P(e){return l(e)&&"fixed"!==b(e).position?e.offsetParent:null}function E(e){for(var t=s(e),r=P(e);r&&j(r)&&"static"===b(r).position;)r=P(r);return r&&("html"===v(r)||"body"===v(r)&&"static"===b(r).position)?t:r||function(e){var t=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");if(-1!==navigator.userAgent.indexOf("Trident")&&l(e)&&"fixed"===b(e).position)return null;for(var r=O(e);l(r)&&["html","body"].indexOf(v(r))<0;){var n=b(r);if("none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||-1!==["transform","perspective"].indexOf(n.willChange)||t&&"filter"===n.willChange||t&&n.filter&&"none"!==n.filter)return r;r=r.parentNode}return null}(e)||t}var D="top",S="bottom",A="right",B="left",C="auto",T=[D,S,A,B],L="start",M="end",N="viewport",R="popper",W=T.reduce((function(e,t){return e.concat([t+"-"+L,t+"-"+M])}),[]),I=[].concat(T,[C]).reduce((function(e,t){return e.concat([t,t+"-"+L,t+"-"+M])}),[]),H=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function V(e){var t=new Map,r=new Set,n=[];function o(e){r.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!r.has(e)){var n=t.get(e);n&&o(n)}})),n.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){r.has(e.name)||o(e)})),n}function _(e){return e.split("-")[0]}var q=Math.max,U=Math.min,Y=Math.round;function X(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&d(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function z(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function F(e,t){return t===N?z(function(e){var t=s(e),r=h(e),n=t.visualViewport,o=r.clientWidth,a=r.clientHeight,i=0,p=0;return n&&(o=n.width,a=n.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(i=n.offsetLeft,p=n.offsetTop)),{width:o,height:a,x:i+m(e),y:p}}(e)):l(t)?function(e){var t=c(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}(t):z(function(e){var t,r=h(e),n=f(e),o=null==(t=e.ownerDocument)?void 0:t.body,a=q(r.scrollWidth,r.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),i=q(r.scrollHeight,r.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),p=-n.scrollLeft+m(e),c=-n.scrollTop;return"rtl"===b(o||r).direction&&(p+=q(r.clientWidth,o?o.clientWidth:0)-a),{width:a,height:i,x:p,y:c}}(h(e)))}function $(e,t,r){var n="clippingParents"===t?function(e){var t=k(O(e)),r=["absolute","fixed"].indexOf(b(e).position)>=0&&l(e)?E(e):e;return u(r)?t.filter((function(e){return u(e)&&X(e,r)&&"body"!==v(e)})):[]}(e):[].concat(t),o=[].concat(n,[r]),a=o[0],i=o.reduce((function(t,r){var n=F(e,r);return t.top=q(n.top,t.top),t.right=U(n.right,t.right),t.bottom=U(n.bottom,t.bottom),t.left=q(n.left,t.left),t}),F(e,a));return i.width=i.right-i.left,i.height=i.bottom-i.top,i.x=i.left,i.y=i.top,i}function K(e){return e.split("-")[1]}function G(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function J(e){var t,r=e.reference,n=e.element,o=e.placement,a=o?_(o):null,i=o?K(o):null,p=r.x+r.width/2-n.width/2,c=r.y+r.height/2-n.height/2;switch(a){case D:t={x:p,y:r.y-n.height};break;case S:t={x:p,y:r.y+r.height};break;case A:t={x:r.x+r.width,y:c};break;case B:t={x:r.x-n.width,y:c};break;default:t={x:r.x,y:r.y}}var s=a?G(a):null;if(null!=s){var f="y"===s?"height":"width";switch(i){case L:t[s]=t[s]-(r[f]/2-n[f]/2);break;case M:t[s]=t[s]+(r[f]/2-n[f]/2)}}return t}function Q(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function Z(e,t){return t.reduce((function(t,r){return t[r]=e,t}),{})}function ee(e,t){void 0===t&&(t={});var r=t,n=r.placement,o=void 0===n?e.placement:n,a=r.boundary,i=void 0===a?"clippingParents":a,p=r.rootBoundary,s=void 0===p?N:p,f=r.elementContext,l=void 0===f?R:f,d=r.altBoundary,v=void 0!==d&&d,m=r.padding,b=void 0===m?0:m,y=Q("number"!=typeof b?b:Z(b,T)),g=l===R?"reference":R,w=e.elements.reference,O=e.rects.popper,x=e.elements[v?g:l],k=$(u(x)?x:x.contextElement||h(e.elements.popper),i,s),j=c(w),P=J({reference:j,element:O,strategy:"absolute",placement:o}),E=z(Object.assign({},O,P)),B=l===R?E:j,C={top:k.top-B.top+y.top,bottom:B.bottom-k.bottom+y.bottom,left:k.left-B.left+y.left,right:B.right-k.right+y.right},L=e.modifiersData.offset;if(l===R&&L){var M=L[o];Object.keys(C).forEach((function(e){var t=[A,S].indexOf(e)>=0?1:-1,r=[D,S].indexOf(e)>=0?"y":"x";C[e]+=M[r]*t}))}return C}var te={placement:"bottom",modifiers:[],strategy:"absolute"};function re(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function ne(e){void 0===e&&(e={});var t=e,r=t.defaultModifiers,n=void 0===r?[]:r,o=t.defaultOptions,a=void 0===o?te:o;return function(e,t,r){void 0===r&&(r=a);var o,i,p={placement:"bottom",orderedModifiers:[],options:Object.assign({},te,a),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},c=[],s=!1,f={state:p,setOptions:function(r){l(),p.options=Object.assign({},a,p.options,r),p.scrollParents={reference:u(e)?k(e):e.contextElement?k(e.contextElement):[],popper:k(t)};var o,i,s=function(e){var t=V(e);return H.reduce((function(e,r){return e.concat(t.filter((function(e){return e.phase===r})))}),[])}((o=[].concat(n,p.options.modifiers),i=o.reduce((function(e,t){var r=e[t.name];return e[t.name]=r?Object.assign({},r,t,{options:Object.assign({},r.options,t.options),data:Object.assign({},r.data,t.data)}):t,e}),{}),Object.keys(i).map((function(e){return i[e]}))));return p.orderedModifiers=s.filter((function(e){return e.enabled})),p.orderedModifiers.forEach((function(e){var t=e.name,r=e.options,n=void 0===r?{}:r,o=e.effect;if("function"==typeof o){var a=o({state:p,name:t,instance:f,options:n}),i=function(){};c.push(a||i)}})),f.update()},forceUpdate:function(){if(!s){var e=p.elements,t=e.reference,r=e.popper;if(re(t,r)){p.rects={reference:g(t,E(r),"fixed"===p.options.strategy),popper:w(r)},p.reset=!1,p.placement=p.options.placement,p.orderedModifiers.forEach((function(e){return p.modifiersData[e.name]=Object.assign({},e.data)}));for(var n=0;n<p.orderedModifiers.length;n++)if(!0!==p.reset){var o=p.orderedModifiers[n],a=o.fn,i=o.options,c=void 0===i?{}:i,u=o.name;"function"==typeof a&&(p=a({state:p,options:c,name:u,instance:f})||p)}else p.reset=!1,n=-1}}},update:(o=function(){return new Promise((function(e){f.forceUpdate(),e(p)}))},function(){return i||(i=new Promise((function(e){Promise.resolve().then((function(){i=void 0,e(o())}))}))),i}),destroy:function(){l(),s=!0}};if(!re(e,t))return f;function l(){c.forEach((function(e){return e()})),c=[]}return f.setOptions(r).then((function(e){!s&&r.onFirstUpdate&&r.onFirstUpdate(e)})),f}}var oe={passive:!0};var ae={top:"auto",right:"auto",bottom:"auto",left:"auto"};function ie(e){var t,r=e.popper,n=e.popperRect,o=e.placement,a=e.offsets,i=e.position,p=e.gpuAcceleration,c=e.adaptive,f=e.roundOffsets,u=!0===f?function(e){var t=e.x,r=e.y,n=window.devicePixelRatio||1;return{x:Y(Y(t*n)/n)||0,y:Y(Y(r*n)/n)||0}}(a):"function"==typeof f?f(a):a,l=u.x,d=void 0===l?0:l,v=u.y,m=void 0===v?0:v,y=a.hasOwnProperty("x"),g=a.hasOwnProperty("y"),w=B,O=D,x=window;if(c){var k=E(r),j="clientHeight",P="clientWidth";k===s(r)&&"static"!==b(k=h(r)).position&&(j="scrollHeight",P="scrollWidth"),k=k,o===D&&(O=S,m-=k[j]-n.height,m*=p?1:-1),o===B&&(w=A,d-=k[P]-n.width,d*=p?1:-1)}var C,T=Object.assign({position:i},c&&ae);return p?Object.assign({},T,((C={})[O]=g?"0":"",C[w]=y?"0":"",C.transform=(x.devicePixelRatio||1)<2?"translate("+d+"px, "+m+"px)":"translate3d("+d+"px, "+m+"px, 0)",C)):Object.assign({},T,((t={})[O]=g?m+"px":"",t[w]=y?d+"px":"",t.transform="",t))}var pe=ne({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,r=e.instance,n=e.options,o=n.scroll,a=void 0===o||o,i=n.resize,p=void 0===i||i,c=s(t.elements.popper),f=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&f.forEach((function(e){e.addEventListener("scroll",r.update,oe)})),p&&c.addEventListener("resize",r.update,oe),function(){a&&f.forEach((function(e){e.removeEventListener("scroll",r.update,oe)})),p&&c.removeEventListener("resize",r.update,oe)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,r=e.name;t.modifiersData[r]=J({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,r=e.options,n=r.gpuAcceleration,o=void 0===n||n,a=r.adaptive,i=void 0===a||a,p=r.roundOffsets,c=void 0===p||p,s={placement:_(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,ie(Object.assign({},s,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:i,roundOffsets:c})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,ie(Object.assign({},s,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var r=t.styles[e]||{},n=t.attributes[e]||{},o=t.elements[e];l(o)&&v(o)&&(Object.assign(o.style,r),Object.keys(n).forEach((function(e){var t=n[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach((function(e){var n=t.elements[e],o=t.attributes[e]||{},a=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:r[e]).reduce((function(e,t){return e[t]="",e}),{});l(n)&&v(n)&&(Object.assign(n.style,a),Object.keys(o).forEach((function(e){n.removeAttribute(e)})))}))}},requires:["computeStyles"]}]});function ce(e,t,r){return q(e,U(t,r))}var se={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,r=e.options,n=e.name,o=r.mainAxis,a=void 0===o||o,i=r.altAxis,p=void 0!==i&&i,c=r.boundary,s=r.rootBoundary,f=r.altBoundary,u=r.padding,l=r.tether,d=void 0===l||l,v=r.tetherOffset,h=void 0===v?0:v,m=ee(t,{boundary:c,rootBoundary:s,padding:u,altBoundary:f}),b=_(t.placement),y=K(t.placement),g=!y,O=G(b),x="x"===O?"y":"x",k=t.modifiersData.popperOffsets,j=t.rects.reference,P=t.rects.popper,C="function"==typeof h?h(Object.assign({},t.rects,{placement:t.placement})):h,T={x:0,y:0};if(k){if(a||p){var M="y"===O?D:B,N="y"===O?S:A,R="y"===O?"height":"width",W=k[O],I=k[O]+m[M],H=k[O]-m[N],V=d?-P[R]/2:0,Y=y===L?j[R]:P[R],X=y===L?-P[R]:-j[R],z=t.elements.arrow,F=d&&z?w(z):{width:0,height:0},$=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},J=$[M],Q=$[N],Z=ce(0,j[R],F[R]),te=g?j[R]/2-V-Z-J-C:Y-Z-J-C,re=g?-j[R]/2+V+Z+Q+C:X+Z+Q+C,ne=t.elements.arrow&&E(t.elements.arrow),oe=ne?"y"===O?ne.clientTop||0:ne.clientLeft||0:0,ae=t.modifiersData.offset?t.modifiersData.offset[t.placement][O]:0,ie=k[O]+te-ae-oe,pe=k[O]+re-ae;if(a){var se=ce(d?U(I,ie):I,W,d?q(H,pe):H);k[O]=se,T[O]=se-W}if(p){var fe="x"===O?D:B,ue="x"===O?S:A,le=k[x],de=le+m[fe],ve=le-m[ue],he=ce(d?U(de,ie):de,le,d?q(ve,pe):ve);k[x]=he,T[x]=he-le}}t.modifiersData[n]=T}},requiresIfExists:["offset"]},fe={left:"right",right:"left",bottom:"top",top:"bottom"};function ue(e){return e.replace(/left|right|bottom|top/g,(function(e){return fe[e]}))}var le={start:"end",end:"start"};function de(e){return e.replace(/start|end/g,(function(e){return le[e]}))}function ve(e,t){void 0===t&&(t={});var r=t,n=r.placement,o=r.boundary,a=r.rootBoundary,i=r.padding,p=r.flipVariations,c=r.allowedAutoPlacements,s=void 0===c?I:c,f=K(n),u=f?p?W:W.filter((function(e){return K(e)===f})):T,l=u.filter((function(e){return s.indexOf(e)>=0}));0===l.length&&(l=u);var d=l.reduce((function(t,r){return t[r]=ee(e,{placement:r,boundary:o,rootBoundary:a,padding:i})[_(r)],t}),{});return Object.keys(d).sort((function(e,t){return d[e]-d[t]}))}var he={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var o=r.mainAxis,a=void 0===o||o,i=r.altAxis,p=void 0===i||i,c=r.fallbackPlacements,s=r.padding,f=r.boundary,u=r.rootBoundary,l=r.altBoundary,d=r.flipVariations,v=void 0===d||d,h=r.allowedAutoPlacements,m=t.options.placement,b=_(m),y=c||(b===m||!v?[ue(m)]:function(e){if(_(e)===C)return[];var t=ue(e);return[de(e),t,de(t)]}(m)),g=[m].concat(y).reduce((function(e,r){return e.concat(_(r)===C?ve(t,{placement:r,boundary:f,rootBoundary:u,padding:s,flipVariations:v,allowedAutoPlacements:h}):r)}),[]),w=t.rects.reference,O=t.rects.popper,x=new Map,k=!0,j=g[0],P=0;P<g.length;P++){var E=g[P],T=_(E),M=K(E)===L,N=[D,S].indexOf(T)>=0,R=N?"width":"height",W=ee(t,{placement:E,boundary:f,rootBoundary:u,altBoundary:l,padding:s}),I=N?M?A:B:M?S:D;w[R]>O[R]&&(I=ue(I));var H=ue(I),V=[];if(a&&V.push(W[T]<=0),p&&V.push(W[I]<=0,W[H]<=0),V.every((function(e){return e}))){j=E,k=!1;break}x.set(E,V)}if(k)for(var q=function(e){var t=g.find((function(t){var r=x.get(t);if(r)return r.slice(0,e).every((function(e){return e}))}));if(t)return j=t,"break"},U=v?3:1;U>0;U--){if("break"===q(U))break}t.placement!==j&&(t.modifiersData[n]._skip=!0,t.placement=j,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};var me={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,r=e.options,n=e.name,o=r.offset,a=void 0===o?[0,0]:o,i=I.reduce((function(e,r){return e[r]=function(e,t,r){var n=_(e),o=[B,D].indexOf(n)>=0?-1:1,a="function"==typeof r?r(Object.assign({},t,{placement:e})):r,i=a[0],p=a[1];return i=i||0,p=(p||0)*o,[B,A].indexOf(n)>=0?{x:p,y:i}:{x:i,y:p}}(r,t.rects,a),e}),{}),p=i[t.placement],c=p.x,s=p.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=s),t.modifiersData[n]=i}};var be={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,r=e.state,n=e.name,o=e.options,a=r.elements.arrow,i=r.modifiersData.popperOffsets,p=_(r.placement),c=G(p),s=[B,A].indexOf(p)>=0?"height":"width";if(a&&i){var f=function(e,t){return Q("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:Z(e,T))}(o.padding,r),u=w(a),l="y"===c?D:B,d="y"===c?S:A,v=r.rects.reference[s]+r.rects.reference[c]-i[c]-r.rects.popper[s],h=i[c]-r.rects.reference[c],m=E(a),b=m?"y"===c?m.clientHeight||0:m.clientWidth||0:0,y=v/2-h/2,g=f[l],O=b-u[s]-f[d],x=b/2-u[s]/2+y,k=ce(g,x,O),j=c;r.modifiersData[n]=((t={})[j]=k,t.centerOffset=k-x,t)}},effect:function(e){var t=e.state,r=e.options.element,n=void 0===r?"[data-popper-arrow]":r;null!=n&&("string"!=typeof n||(n=t.elements.popper.querySelector(n)))&&X(t.elements.popper,n)&&(t.elements.arrow=n)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},ye=function(e){return parseInt(e,10)};var ge={beforeMount:function(e,t){e.clickAwayEvent=function(r){e!=r.target&&!e.contains(r.target)&&t.value.enabled&&t.value.handler()},document.addEventListener("click",e.clickAwayEvent)},unmounted:function(e){document.removeEventListener("click",e.clickAwayEvent)}},we=function(e){return new Promise((function(t){return setTimeout(t,e)}))},Oe=e.defineComponent({name:"Popper",emits:["open:popper","close:popper"],directives:{clickAway:ge},props:{placement:{type:String,default:"bottom",validator:function(e){return["auto","auto-start","auto-end","top","top-start","top-end","bottom","bottom-start","bottom-end","right","right-start","right-end","left","left-start","left-end"].includes(e)}},disableClickAway:{type:Boolean,default:!1},offsetX:{type:String,default:"0"},offsetY:{type:String,default:"12"},hover:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},openDelay:{type:[Number,String],default:0},closeDelay:{type:[Number,String],default:0},arrow:{type:Boolean,default:!1},arrowPadding:{type:String,default:"0"}},setup:function(t,n){var a=n.slots,p=n.emit,c=a.default();if(c&&c.length>1)return console.error("[Popper]: The <Popper> component expects only one child element at its root. You passed ".concat(c.length," child nodes."));var s=e.toRefs(t),f=s.offsetX,u=s.offsetY,l=s.arrowPadding,d=s.placement,v=s.disabled,h=s.disableClickAway,m=s.openDelay,b=s.closeDelay,y=function(t){var n=t.placement,a=t.arrowPadding,p=t.offsetX,c=t.offsetY,s=t.emit,f=e.reactive({isOpen:!1,popperInstance:null,popperNode:null,triggerNode:null});e.watch([function(){return f.isOpen},n],function(){var t=o(regeneratorRuntime.mark((function t(r){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!i(r,1)[0]){t.next=5;break}return t.next=4,e.nextTick();case 4:u();case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());var u=function(){f.popperInstance=pe(f.triggerNode,f.popperNode,{placement:n.value,modifiers:[se,he,be,{name:"arrow",options:{padding:ye(a.value)}},me,{name:"offset",options:{offset:[ye(p.value),ye(c.value)]}}]}),f.popperInstance.update()};return e.onBeforeUnmount((function(){var e;null===(e=f.popperInstance)||void 0===e||e.destroy()})),r(r({},e.toRefs(f)),{},{open:function(){f.isOpen||(f.isOpen=!0,s("open:popper"))},close:function(){f.isOpen&&(f.isOpen=!1,s("close:popper"))}})}({offsetX:f,offsetY:u,arrowPadding:l,placement:d,emit:p}),g=y.popperNode,w=y.triggerNode,O=y.isOpen,x=y.open,k=y.close,j=function(t,r){var n=e.ref(null),o=e.ref(!1);e.onMounted((function(){void 0!==t.content&&(o.value=!0),n.value=new MutationObserver(a),n.value.observe(r.value,{childList:!0,subtree:!0})})),e.onBeforeUnmount((function(){return n.value.disconnect()}));var a=function(){t.content?o.value=!0:o.value=!1};return{hasContent:o}}(a,g).hasContent;e.watch([j,v],(function(e){var t=i(e,2),r=t[0],n=t[1];!O.value||r&&!n||k()}));var P=function(){var e=o(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!D.value){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,we(m.value);case 4:x();case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),E=function(){var e=o(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,we(b.value);case 2:k();case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),D=e.computed((function(){return v.value||!j.value})),S=e.computed((function(){return O.value&&!D.value})),A=e.computed((function(){return!h.value}));return{popperNode:g,triggerNode:w,isOpen:O,close:k,handleToggle:function(){O.value?E():P()},handleOpen:P,handleClose:E,shouldShowPopper:S,enableClickAway:A}}}),xe=e.withScopeId("data-v-2677458a");e.pushScopeId("data-v-2677458a");var ke={key:0,id:"arrow","data-popper-arrow":""};e.popScopeId();var je=xe((function(t,r,n,o,a,i){var p=e.resolveDirective("click-away");return e.withDirectives((e.openBlock(),e.createBlock("div",null,[e.createVNode("div",{ref:"triggerNode",onMouseover:r[1]||(r[1]=function(e){return t.hover&&t.handleOpen()}),onMouseleave:r[2]||(r[2]=function(e){return t.hover&&t.handleClose()}),onClick:r[3]||(r[3]=function(){return t.handleToggle&&t.handleToggle.apply(t,arguments)}),onFocus:r[4]||(r[4]=function(){return t.handleOpen&&t.handleOpen.apply(t,arguments)}),onBlur:r[5]||(r[5]=function(){return t.handleClose&&t.handleClose.apply(t,arguments)}),onKeyup:r[6]||(r[6]=e.withKeys((function(){return t.handleClose&&t.handleClose.apply(t,arguments)}),["esc"])),class:"inline-block"},[e.renderSlot(t.$slots,"default")],544),e.createVNode(e.Transition,{name:"fade"},{default:xe((function(){return[e.withDirectives(e.createVNode("div",{class:["popper",t.shouldShowPopper?"inline-block":null],ref:"popperNode"},[e.renderSlot(t.$slots,"content",{close:t.close}),t.arrow?(e.openBlock(),e.createBlock("div",ke)):e.createCommentVNode("",!0)],2),[[e.vShow,t.shouldShowPopper]])]})),_:3})],512)),[[p,{handler:t.handleClose,enabled:t.enableClickAway}]])}));!function(e,t){void 0===t&&(t={});var r=t.insertAt;if(e&&"undefined"!=typeof document){var n=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===r&&n.firstChild?n.insertBefore(o,n.firstChild):n.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}('\n#arrow[data-v-2677458a],\n #arrow[data-v-2677458a]::before {\n transition: background 250ms ease-in-out;\n position: absolute;\n width: calc(10px - var(--popper-theme-border-width, 0px));\n height: calc(10px - var(--popper-theme-border-width, 0px));\n box-sizing: border-box;\n background: var(--popper-theme-background-color);\n}\n#arrow[data-v-2677458a] {\n visibility: hidden;\n}\n#arrow[data-v-2677458a]::before {\n visibility: visible;\n content: "";\n transform: rotate(45deg);\n}\n\n /* Top arrow */\n.popper[data-popper-placement^="top"] > #arrow[data-v-2677458a] {\n bottom: -5px;\n}\n.popper[data-popper-placement^="top"] > #arrow[data-v-2677458a]::before {\n border-right: var(--popper-theme-border-width)\n var(--popper-theme-border-style) var(--popper-theme-border-color);\n border-bottom: var(--popper-theme-border-width)\n var(--popper-theme-border-style) var(--popper-theme-border-color);\n}\n\n /* Bottom arrow */\n.popper[data-popper-placement^="bottom"] > #arrow[data-v-2677458a] {\n top: -5px;\n}\n.popper[data-popper-placement^="bottom"] > #arrow[data-v-2677458a]::before {\n border-left: var(--popper-theme-border-width)\n var(--popper-theme-border-style) var(--popper-theme-border-color);\n border-top: var(--popper-theme-border-width)\n var(--popper-theme-border-style) var(--popper-theme-border-color);\n}\n\n /* Left arrow */\n.popper[data-popper-placement^="left"] > #arrow[data-v-2677458a] {\n right: -5px;\n}\n.popper[data-popper-placement^="left"] > #arrow[data-v-2677458a]::before {\n border-right: var(--popper-theme-border-width)\n var(--popper-theme-border-style) var(--popper-theme-border-color);\n border-top: var(--popper-theme-border-width)\n var(--popper-theme-border-style) var(--popper-theme-border-color);\n}\n\n /* Right arrow */\n.popper[data-popper-placement^="right"] > #arrow[data-v-2677458a] {\n left: -5px;\n}\n.popper[data-popper-placement^="right"] > #arrow[data-v-2677458a]::before {\n border-left: var(--popper-theme-border-width)\n var(--popper-theme-border-style) var(--popper-theme-border-color);\n border-bottom: var(--popper-theme-border-width)\n var(--popper-theme-border-style) var(--popper-theme-border-color);\n}\n.popper[data-v-2677458a] {\n transition: background 250ms ease-in-out;\n background: var(--popper-theme-background-color);\n padding: var(--popper-theme-padding);\n color: var(--popper-theme-text-color);\n border-radius: var(--popper-theme-border-radius);\n border-width: var(--popper-theme-border-width);\n border-style: var(--popper-theme-border-style);\n border-color: var(--popper-theme-border-color);\n box-shadow: var(--popper-theme-box-shadow);\n}\n.popper[data-v-2677458a]:hover,\n .popper:hover > #arrow[data-v-2677458a]::before {\n background: var(--popper-theme-background-color-hover);\n}\n.inline-block[data-v-2677458a] {\n display: inline-block;\n}\n.fade-enter-active[data-v-2677458a],\n .fade-leave-active[data-v-2677458a] {\n transition: opacity 0.2s ease;\n}\n.fade-enter-from[data-v-2677458a],\n .fade-leave-to[data-v-2677458a] {\n opacity: 0;\n}\n'),Oe.render=je,Oe.__scopeId="data-v-2677458a";var Pe=function(){var e=Oe;return e.install=function(t){t.component("Popper",e)},e}(),Ee=Object.freeze({__proto__:null,default:Pe});return Object.entries(Ee).forEach((function(e){var t=i(e,2),r=t[0],n=t[1];"default"!==r&&(Pe[r]=n)})),Pe}(Vue); | ||
var Popper=function(e){"use strict";function t(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function r(e){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{};r%2?t(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):t(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function n(e,t,r,n,o,a,i){try{var p=e[a](i),c=p.value}catch(e){return void r(e)}p.done?t(c):Promise.resolve(c).then(n,o)}function o(e){return function(){var t=this,r=arguments;return new Promise((function(o,a){var i=e.apply(t,r);function p(e){n(i,o,a,p,c,"next",e)}function c(e){n(i,o,a,p,c,"throw",e)}p(void 0)}))}}function a(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=e&&("undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"]);if(null==r)return;var n,o,a=[],i=!0,p=!1;try{for(r=r.call(e);!(i=(n=r.next()).done)&&(a.push(n.value),!t||a.length!==t);i=!0);}catch(e){p=!0,o=e}finally{try{i||null==r.return||r.return()}finally{if(p)throw o}}return a}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return p(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return p(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function c(e,t,r){var n,o,a,i,p;function c(){var s=Date.now()-i;s<t&&s>=0?n=setTimeout(c,t-s):(n=null,r||(p=e.apply(a,o),a=o=null))}null==t&&(t=100);var s=function(){a=this,o=arguments,i=Date.now();var s=r&&!n;return n||(n=setTimeout(c,t)),s&&(p=e.apply(a,o),a=o=null),p};return s.clear=function(){n&&(clearTimeout(n),n=null)},s.flush=function(){n&&(p=e.apply(a,o),a=o=null,clearTimeout(n),n=null)},s}c.debounce=c;var s=c;function f(e){var t=e.getBoundingClientRect();return{width:t.width,height:t.height,top:t.top,right:t.right,bottom:t.bottom,left:t.left,x:t.left,y:t.top}}function u(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function l(e){var t=u(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function d(e){return e instanceof u(e).Element||e instanceof Element}function v(e){return e instanceof u(e).HTMLElement||e instanceof HTMLElement}function h(e){return"undefined"!=typeof ShadowRoot&&(e instanceof u(e).ShadowRoot||e instanceof ShadowRoot)}function m(e){return e?(e.nodeName||"").toLowerCase():null}function b(e){return((d(e)?e.ownerDocument:e.document)||window.document).documentElement}function y(e){return f(b(e)).left+l(e).scrollLeft}function g(e){return u(e).getComputedStyle(e)}function w(e){var t=g(e),r=t.overflow,n=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+o+n)}function O(e,t,r){void 0===r&&(r=!1);var n,o,a=b(t),i=f(e),p=v(t),c={scrollLeft:0,scrollTop:0},s={x:0,y:0};return(p||!p&&!r)&&(("body"!==m(t)||w(a))&&(c=(n=t)!==u(n)&&v(n)?{scrollLeft:(o=n).scrollLeft,scrollTop:o.scrollTop}:l(n)),v(t)?((s=f(t)).x+=t.clientLeft,s.y+=t.clientTop):a&&(s.x=y(a))),{x:i.left+c.scrollLeft-s.x,y:i.top+c.scrollTop-s.y,width:i.width,height:i.height}}function x(e){var t=f(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function k(e){return"html"===m(e)?e:e.assignedSlot||e.parentNode||(h(e)?e.host:null)||b(e)}function j(e){return["html","body","#document"].indexOf(m(e))>=0?e.ownerDocument.body:v(e)&&w(e)?e:j(k(e))}function P(e,t){var r;void 0===t&&(t=[]);var n=j(e),o=n===(null==(r=e.ownerDocument)?void 0:r.body),a=u(n),i=o?[a].concat(a.visualViewport||[],w(n)?n:[]):n,p=t.concat(i);return o?p:p.concat(P(k(i)))}function D(e){return["table","td","th"].indexOf(m(e))>=0}function E(e){return v(e)&&"fixed"!==g(e).position?e.offsetParent:null}function S(e){for(var t=u(e),r=E(e);r&&D(r)&&"static"===g(r).position;)r=E(r);return r&&("html"===m(r)||"body"===m(r)&&"static"===g(r).position)?t:r||function(e){var t=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");if(-1!==navigator.userAgent.indexOf("Trident")&&v(e)&&"fixed"===g(e).position)return null;for(var r=k(e);v(r)&&["html","body"].indexOf(m(r))<0;){var n=g(r);if("none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||-1!==["transform","perspective"].indexOf(n.willChange)||t&&"filter"===n.willChange||t&&n.filter&&"none"!==n.filter)return r;r=r.parentNode}return null}(e)||t}var A="top",T="bottom",B="right",C="left",L="auto",M=[A,T,B,C],N="start",R="end",I="viewport",W="popper",H=M.reduce((function(e,t){return e.concat([t+"-"+N,t+"-"+R])}),[]),V=[].concat(M,[L]).reduce((function(e,t){return e.concat([t,t+"-"+N,t+"-"+R])}),[]),_=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function q(e){var t=new Map,r=new Set,n=[];function o(e){r.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!r.has(e)){var n=t.get(e);n&&o(n)}})),n.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){r.has(e.name)||o(e)})),n}function U(e){return e.split("-")[0]}var Y=Math.max,X=Math.min,z=Math.round;function F(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&h(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function $(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function K(e,t){return t===I?$(function(e){var t=u(e),r=b(e),n=t.visualViewport,o=r.clientWidth,a=r.clientHeight,i=0,p=0;return n&&(o=n.width,a=n.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(i=n.offsetLeft,p=n.offsetTop)),{width:o,height:a,x:i+y(e),y:p}}(e)):v(t)?function(e){var t=f(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}(t):$(function(e){var t,r=b(e),n=l(e),o=null==(t=e.ownerDocument)?void 0:t.body,a=Y(r.scrollWidth,r.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),i=Y(r.scrollHeight,r.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),p=-n.scrollLeft+y(e),c=-n.scrollTop;return"rtl"===g(o||r).direction&&(p+=Y(r.clientWidth,o?o.clientWidth:0)-a),{width:a,height:i,x:p,y:c}}(b(e)))}function G(e,t,r){var n="clippingParents"===t?function(e){var t=P(k(e)),r=["absolute","fixed"].indexOf(g(e).position)>=0&&v(e)?S(e):e;return d(r)?t.filter((function(e){return d(e)&&F(e,r)&&"body"!==m(e)})):[]}(e):[].concat(t),o=[].concat(n,[r]),a=o[0],i=o.reduce((function(t,r){var n=K(e,r);return t.top=Y(n.top,t.top),t.right=X(n.right,t.right),t.bottom=X(n.bottom,t.bottom),t.left=Y(n.left,t.left),t}),K(e,a));return i.width=i.right-i.left,i.height=i.bottom-i.top,i.x=i.left,i.y=i.top,i}function J(e){return e.split("-")[1]}function Q(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Z(e){var t,r=e.reference,n=e.element,o=e.placement,a=o?U(o):null,i=o?J(o):null,p=r.x+r.width/2-n.width/2,c=r.y+r.height/2-n.height/2;switch(a){case A:t={x:p,y:r.y-n.height};break;case T:t={x:p,y:r.y+r.height};break;case B:t={x:r.x+r.width,y:c};break;case C:t={x:r.x-n.width,y:c};break;default:t={x:r.x,y:r.y}}var s=a?Q(a):null;if(null!=s){var f="y"===s?"height":"width";switch(i){case N:t[s]=t[s]-(r[f]/2-n[f]/2);break;case R:t[s]=t[s]+(r[f]/2-n[f]/2)}}return t}function ee(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function te(e,t){return t.reduce((function(t,r){return t[r]=e,t}),{})}function re(e,t){void 0===t&&(t={});var r=t,n=r.placement,o=void 0===n?e.placement:n,a=r.boundary,i=void 0===a?"clippingParents":a,p=r.rootBoundary,c=void 0===p?I:p,s=r.elementContext,u=void 0===s?W:s,l=r.altBoundary,v=void 0!==l&&l,h=r.padding,m=void 0===h?0:h,y=ee("number"!=typeof m?m:te(m,M)),g=u===W?"reference":W,w=e.elements.reference,O=e.rects.popper,x=e.elements[v?g:u],k=G(d(x)?x:x.contextElement||b(e.elements.popper),i,c),j=f(w),P=Z({reference:j,element:O,strategy:"absolute",placement:o}),D=$(Object.assign({},O,P)),E=u===W?D:j,S={top:k.top-E.top+y.top,bottom:E.bottom-k.bottom+y.bottom,left:k.left-E.left+y.left,right:E.right-k.right+y.right},C=e.modifiersData.offset;if(u===W&&C){var L=C[o];Object.keys(S).forEach((function(e){var t=[B,T].indexOf(e)>=0?1:-1,r=[A,T].indexOf(e)>=0?"y":"x";S[e]+=L[r]*t}))}return S}var ne={placement:"bottom",modifiers:[],strategy:"absolute"};function oe(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function ae(e){void 0===e&&(e={});var t=e,r=t.defaultModifiers,n=void 0===r?[]:r,o=t.defaultOptions,a=void 0===o?ne:o;return function(e,t,r){void 0===r&&(r=a);var o,i,p={placement:"bottom",orderedModifiers:[],options:Object.assign({},ne,a),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},c=[],s=!1,f={state:p,setOptions:function(r){u(),p.options=Object.assign({},a,p.options,r),p.scrollParents={reference:d(e)?P(e):e.contextElement?P(e.contextElement):[],popper:P(t)};var o,i,s=function(e){var t=q(e);return _.reduce((function(e,r){return e.concat(t.filter((function(e){return e.phase===r})))}),[])}((o=[].concat(n,p.options.modifiers),i=o.reduce((function(e,t){var r=e[t.name];return e[t.name]=r?Object.assign({},r,t,{options:Object.assign({},r.options,t.options),data:Object.assign({},r.data,t.data)}):t,e}),{}),Object.keys(i).map((function(e){return i[e]}))));return p.orderedModifiers=s.filter((function(e){return e.enabled})),p.orderedModifiers.forEach((function(e){var t=e.name,r=e.options,n=void 0===r?{}:r,o=e.effect;if("function"==typeof o){var a=o({state:p,name:t,instance:f,options:n}),i=function(){};c.push(a||i)}})),f.update()},forceUpdate:function(){if(!s){var e=p.elements,t=e.reference,r=e.popper;if(oe(t,r)){p.rects={reference:O(t,S(r),"fixed"===p.options.strategy),popper:x(r)},p.reset=!1,p.placement=p.options.placement,p.orderedModifiers.forEach((function(e){return p.modifiersData[e.name]=Object.assign({},e.data)}));for(var n=0;n<p.orderedModifiers.length;n++)if(!0!==p.reset){var o=p.orderedModifiers[n],a=o.fn,i=o.options,c=void 0===i?{}:i,u=o.name;"function"==typeof a&&(p=a({state:p,options:c,name:u,instance:f})||p)}else p.reset=!1,n=-1}}},update:(o=function(){return new Promise((function(e){f.forceUpdate(),e(p)}))},function(){return i||(i=new Promise((function(e){Promise.resolve().then((function(){i=void 0,e(o())}))}))),i}),destroy:function(){u(),s=!0}};if(!oe(e,t))return f;function u(){c.forEach((function(e){return e()})),c=[]}return f.setOptions(r).then((function(e){!s&&r.onFirstUpdate&&r.onFirstUpdate(e)})),f}}var ie={passive:!0};var pe={top:"auto",right:"auto",bottom:"auto",left:"auto"};function ce(e){var t,r=e.popper,n=e.popperRect,o=e.placement,a=e.offsets,i=e.position,p=e.gpuAcceleration,c=e.adaptive,s=e.roundOffsets,f=!0===s?function(e){var t=e.x,r=e.y,n=window.devicePixelRatio||1;return{x:z(z(t*n)/n)||0,y:z(z(r*n)/n)||0}}(a):"function"==typeof s?s(a):a,l=f.x,d=void 0===l?0:l,v=f.y,h=void 0===v?0:v,m=a.hasOwnProperty("x"),y=a.hasOwnProperty("y"),w=C,O=A,x=window;if(c){var k=S(r),j="clientHeight",P="clientWidth";k===u(r)&&"static"!==g(k=b(r)).position&&(j="scrollHeight",P="scrollWidth"),k=k,o===A&&(O=T,h-=k[j]-n.height,h*=p?1:-1),o===C&&(w=B,d-=k[P]-n.width,d*=p?1:-1)}var D,E=Object.assign({position:i},c&&pe);return p?Object.assign({},E,((D={})[O]=y?"0":"",D[w]=m?"0":"",D.transform=(x.devicePixelRatio||1)<2?"translate("+d+"px, "+h+"px)":"translate3d("+d+"px, "+h+"px, 0)",D)):Object.assign({},E,((t={})[O]=y?h+"px":"",t[w]=m?d+"px":"",t.transform="",t))}var se=ae({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,r=e.instance,n=e.options,o=n.scroll,a=void 0===o||o,i=n.resize,p=void 0===i||i,c=u(t.elements.popper),s=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&s.forEach((function(e){e.addEventListener("scroll",r.update,ie)})),p&&c.addEventListener("resize",r.update,ie),function(){a&&s.forEach((function(e){e.removeEventListener("scroll",r.update,ie)})),p&&c.removeEventListener("resize",r.update,ie)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,r=e.name;t.modifiersData[r]=Z({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,r=e.options,n=r.gpuAcceleration,o=void 0===n||n,a=r.adaptive,i=void 0===a||a,p=r.roundOffsets,c=void 0===p||p,s={placement:U(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,ce(Object.assign({},s,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:i,roundOffsets:c})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,ce(Object.assign({},s,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var r=t.styles[e]||{},n=t.attributes[e]||{},o=t.elements[e];v(o)&&m(o)&&(Object.assign(o.style,r),Object.keys(n).forEach((function(e){var t=n[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach((function(e){var n=t.elements[e],o=t.attributes[e]||{},a=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:r[e]).reduce((function(e,t){return e[t]="",e}),{});v(n)&&m(n)&&(Object.assign(n.style,a),Object.keys(o).forEach((function(e){n.removeAttribute(e)})))}))}},requires:["computeStyles"]}]});function fe(e,t,r){return Y(e,X(t,r))}var ue={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,r=e.options,n=e.name,o=r.mainAxis,a=void 0===o||o,i=r.altAxis,p=void 0!==i&&i,c=r.boundary,s=r.rootBoundary,f=r.altBoundary,u=r.padding,l=r.tether,d=void 0===l||l,v=r.tetherOffset,h=void 0===v?0:v,m=re(t,{boundary:c,rootBoundary:s,padding:u,altBoundary:f}),b=U(t.placement),y=J(t.placement),g=!y,w=Q(b),O="x"===w?"y":"x",k=t.modifiersData.popperOffsets,j=t.rects.reference,P=t.rects.popper,D="function"==typeof h?h(Object.assign({},t.rects,{placement:t.placement})):h,E={x:0,y:0};if(k){if(a||p){var L="y"===w?A:C,M="y"===w?T:B,R="y"===w?"height":"width",I=k[w],W=k[w]+m[L],H=k[w]-m[M],V=d?-P[R]/2:0,_=y===N?j[R]:P[R],q=y===N?-P[R]:-j[R],z=t.elements.arrow,F=d&&z?x(z):{width:0,height:0},$=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},K=$[L],G=$[M],Z=fe(0,j[R],F[R]),ee=g?j[R]/2-V-Z-K-D:_-Z-K-D,te=g?-j[R]/2+V+Z+G+D:q+Z+G+D,ne=t.elements.arrow&&S(t.elements.arrow),oe=ne?"y"===w?ne.clientTop||0:ne.clientLeft||0:0,ae=t.modifiersData.offset?t.modifiersData.offset[t.placement][w]:0,ie=k[w]+ee-ae-oe,pe=k[w]+te-ae;if(a){var ce=fe(d?X(W,ie):W,I,d?Y(H,pe):H);k[w]=ce,E[w]=ce-I}if(p){var se="x"===w?A:C,ue="x"===w?T:B,le=k[O],de=le+m[se],ve=le-m[ue],he=fe(d?X(de,ie):de,le,d?Y(ve,pe):ve);k[O]=he,E[O]=he-le}}t.modifiersData[n]=E}},requiresIfExists:["offset"]},le={left:"right",right:"left",bottom:"top",top:"bottom"};function de(e){return e.replace(/left|right|bottom|top/g,(function(e){return le[e]}))}var ve={start:"end",end:"start"};function he(e){return e.replace(/start|end/g,(function(e){return ve[e]}))}function me(e,t){void 0===t&&(t={});var r=t,n=r.placement,o=r.boundary,a=r.rootBoundary,i=r.padding,p=r.flipVariations,c=r.allowedAutoPlacements,s=void 0===c?V:c,f=J(n),u=f?p?H:H.filter((function(e){return J(e)===f})):M,l=u.filter((function(e){return s.indexOf(e)>=0}));0===l.length&&(l=u);var d=l.reduce((function(t,r){return t[r]=re(e,{placement:r,boundary:o,rootBoundary:a,padding:i})[U(r)],t}),{});return Object.keys(d).sort((function(e,t){return d[e]-d[t]}))}var be={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var o=r.mainAxis,a=void 0===o||o,i=r.altAxis,p=void 0===i||i,c=r.fallbackPlacements,s=r.padding,f=r.boundary,u=r.rootBoundary,l=r.altBoundary,d=r.flipVariations,v=void 0===d||d,h=r.allowedAutoPlacements,m=t.options.placement,b=U(m),y=c||(b===m||!v?[de(m)]:function(e){if(U(e)===L)return[];var t=de(e);return[he(e),t,he(t)]}(m)),g=[m].concat(y).reduce((function(e,r){return e.concat(U(r)===L?me(t,{placement:r,boundary:f,rootBoundary:u,padding:s,flipVariations:v,allowedAutoPlacements:h}):r)}),[]),w=t.rects.reference,O=t.rects.popper,x=new Map,k=!0,j=g[0],P=0;P<g.length;P++){var D=g[P],E=U(D),S=J(D)===N,M=[A,T].indexOf(E)>=0,R=M?"width":"height",I=re(t,{placement:D,boundary:f,rootBoundary:u,altBoundary:l,padding:s}),W=M?S?B:C:S?T:A;w[R]>O[R]&&(W=de(W));var H=de(W),V=[];if(a&&V.push(I[E]<=0),p&&V.push(I[W]<=0,I[H]<=0),V.every((function(e){return e}))){j=D,k=!1;break}x.set(D,V)}if(k)for(var _=function(e){var t=g.find((function(t){var r=x.get(t);if(r)return r.slice(0,e).every((function(e){return e}))}));if(t)return j=t,"break"},q=v?3:1;q>0;q--){if("break"===_(q))break}t.placement!==j&&(t.modifiersData[n]._skip=!0,t.placement=j,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};var ye={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,r=e.options,n=e.name,o=r.offset,a=void 0===o?[0,0]:o,i=V.reduce((function(e,r){return e[r]=function(e,t,r){var n=U(e),o=[C,A].indexOf(n)>=0?-1:1,a="function"==typeof r?r(Object.assign({},t,{placement:e})):r,i=a[0],p=a[1];return i=i||0,p=(p||0)*o,[C,B].indexOf(n)>=0?{x:p,y:i}:{x:i,y:p}}(r,t.rects,a),e}),{}),p=i[t.placement],c=p.x,s=p.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=s),t.modifiersData[n]=i}};var ge={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,r=e.state,n=e.name,o=e.options,a=r.elements.arrow,i=r.modifiersData.popperOffsets,p=U(r.placement),c=Q(p),s=[C,B].indexOf(p)>=0?"height":"width";if(a&&i){var f=function(e,t){return ee("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:te(e,M))}(o.padding,r),u=x(a),l="y"===c?A:C,d="y"===c?T:B,v=r.rects.reference[s]+r.rects.reference[c]-i[c]-r.rects.popper[s],h=i[c]-r.rects.reference[c],m=S(a),b=m?"y"===c?m.clientHeight||0:m.clientWidth||0:0,y=v/2-h/2,g=f[l],w=b-u[s]-f[d],O=b/2-u[s]/2+y,k=fe(g,O,w),j=c;r.modifiersData[n]=((t={})[j]=k,t.centerOffset=k-O,t)}},effect:function(e){var t=e.state,r=e.options.element,n=void 0===r?"[data-popper-arrow]":r;null!=n&&("string"!=typeof n||(n=t.elements.popper.querySelector(n)))&&F(t.elements.popper,n)&&(t.elements.arrow=n)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},we=function(e){return parseInt(e,10)};var Oe={beforeMount:function(e,t){e.clickAwayEvent=function(r){e!=r.target&&!e.contains(r.target)&&t.value.enabled&&t.value.handler()},document.addEventListener("click",e.clickAwayEvent)},unmounted:function(e){document.removeEventListener("click",e.clickAwayEvent)}},xe=function(e){return new Promise((function(t){return setTimeout(t,e)}))},ke=e.defineComponent({name:"Popper",emits:["open:popper","close:popper"],directives:{clickAway:Oe},props:{placement:{type:String,default:"bottom",validator:function(e){return["auto","auto-start","auto-end","top","top-start","top-end","bottom","bottom-start","bottom-end","right","right-start","right-end","left","left-start","left-end"].includes(e)}},disableClickAway:{type:Boolean,default:!1},offsetX:{type:String,default:"0"},offsetY:{type:String,default:"12"},hover:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},openDelay:{type:[Number,String],default:0},closeDelay:{type:[Number,String],default:0},arrow:{type:Boolean,default:!1},arrowPadding:{type:String,default:"0"}},setup:function(t,n){var a=n.slots,p=n.emit,c=a.default();if(c&&c.length>1)return console.error("[Popper]: The <Popper> component expects only one child element at its root. You passed ".concat(c.length," child nodes."));var f=e.ref(null),u=e.ref(null),l=e.ref(!1),d=e.toRefs(t),v=d.offsetX,h=d.offsetY,m=d.arrowPadding,b=d.placement,y=d.disabled,g=d.disableClickAway,w=d.openDelay,O=d.closeDelay,x=function(t){var n=t.popperNode,a=t.triggerNode,p=t.placement,c=t.arrowPadding,s=t.offsetX,f=t.offsetY,u=t.emit,l=e.reactive({isOpen:!1,popperInstance:null});e.watch([function(){return l.isOpen},p],function(){var t=o(regeneratorRuntime.mark((function t(r){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!i(r,1)[0]){t.next=5;break}return t.next=4,e.nextTick();case 4:d();case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());var d=function(){l.popperInstance=se(a.value,n.value,{placement:p.value,modifiers:[ue,be,ge,{name:"arrow",options:{padding:we(c.value)}},ye,{name:"offset",options:{offset:[we(s.value),we(f.value)]}}]}),l.popperInstance.update()};return e.onBeforeUnmount((function(){var e;null===(e=l.popperInstance)||void 0===e||e.destroy()})),r(r({},e.toRefs(l)),{},{open:function(){l.isOpen||(l.isOpen=!0,u("open:popper"))},close:function(){l.isOpen&&(l.isOpen=!1,u("close:popper"))}})}({popperNode:f,triggerNode:u,offsetX:v,offsetY:h,arrowPadding:m,placement:b,emit:p}),k=x.isOpen,j=x.open,P=x.close,D=function(t,r){var n=null,o=e.ref(!1);e.onMounted((function(){void 0!==t.content&&(o.value=!0),(n=new MutationObserver(a)).observe(r.value,{childList:!0,subtree:!0})})),e.onBeforeUnmount((function(){return n.disconnect()}));var a=function(){t.content?o.value=!0:o.value=!1};return{hasContent:o}}(a,f).hasContent;e.watch([D,y],(function(e){var t=i(e,2),r=t[0],n=t[1];!k.value||r&&!n||P()})),e.watch(k,(function(e){e?l.value=!0:s.debounce((function(){l.value=!1}),200)}));var E=function(){var e=o(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!A.value){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,xe(w.value);case 4:j();case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),S=function(){var e=o(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,xe(O.value);case 2:P();case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),A=e.computed((function(){return y.value||!D.value})),T=e.computed((function(){return k.value&&!A.value})),B=e.computed((function(){return!g.value}));return{popperNode:f,triggerNode:u,isOpen:k,close:P,handleToggle:function(){k.value?S():E()},handleOpen:E,handleClose:S,shouldShowPopper:T,enableClickAway:B,modifiedIsOpen:l}}}),je=e.withScopeId("data-v-7225c62e");e.pushScopeId("data-v-7225c62e");var Pe={key:0,id:"arrow","data-popper-arrow":""};e.popScopeId();var De=je((function(t,r,n,o,a,i){var p=e.resolveDirective("click-away");return e.withDirectives((e.openBlock(),e.createBlock("div",null,[e.createVNode("div",{ref:"triggerNode",onMouseover:r[1]||(r[1]=function(e){return t.hover&&t.handleOpen()}),onMouseleave:r[2]||(r[2]=function(e){return t.hover&&t.handleClose()}),onClick:r[3]||(r[3]=function(){return t.handleToggle&&t.handleToggle.apply(t,arguments)}),onFocus:r[4]||(r[4]=function(){return t.handleOpen&&t.handleOpen.apply(t,arguments)}),onBlur:r[5]||(r[5]=function(){return t.handleClose&&t.handleClose.apply(t,arguments)}),onKeyup:r[6]||(r[6]=e.withKeys((function(){return t.handleClose&&t.handleClose.apply(t,arguments)}),["esc"])),class:"inline-block"},[e.renderSlot(t.$slots,"default")],544),e.createVNode(e.Transition,{name:"fade"},{default:je((function(){return[e.withDirectives(e.createVNode("div",{class:["popper",t.shouldShowPopper?"inline-block":null],ref:"popperNode"},[e.renderSlot(t.$slots,"content",{close:t.close,isOpen:t.modifiedIsOpen}),t.arrow?(e.openBlock(),e.createBlock("div",Pe)):e.createCommentVNode("",!0)],2),[[e.vShow,t.shouldShowPopper]])]})),_:3})],512)),[[p,{handler:t.handleClose,enabled:t.enableClickAway}]])}));!function(e,t){void 0===t&&(t={});var r=t.insertAt;if(e&&"undefined"!=typeof document){var n=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===r&&n.firstChild?n.insertBefore(o,n.firstChild):n.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}('\n#arrow[data-v-7225c62e],\n #arrow[data-v-7225c62e]::before {\n transition: background 250ms ease-in-out;\n position: absolute;\n width: calc(10px - var(--popper-theme-border-width, 0px));\n height: calc(10px - var(--popper-theme-border-width, 0px));\n box-sizing: border-box;\n background: var(--popper-theme-background-color);\n}\n#arrow[data-v-7225c62e] {\n visibility: hidden;\n}\n#arrow[data-v-7225c62e]::before {\n visibility: visible;\n content: "";\n transform: rotate(45deg);\n}\n\n /* Top arrow */\n.popper[data-popper-placement^="top"] > #arrow[data-v-7225c62e] {\n bottom: -5px;\n}\n.popper[data-popper-placement^="top"] > #arrow[data-v-7225c62e]::before {\n border-right: var(--popper-theme-border-width)\n var(--popper-theme-border-style) var(--popper-theme-border-color);\n border-bottom: var(--popper-theme-border-width)\n var(--popper-theme-border-style) var(--popper-theme-border-color);\n}\n\n /* Bottom arrow */\n.popper[data-popper-placement^="bottom"] > #arrow[data-v-7225c62e] {\n top: -5px;\n}\n.popper[data-popper-placement^="bottom"] > #arrow[data-v-7225c62e]::before {\n border-left: var(--popper-theme-border-width)\n var(--popper-theme-border-style) var(--popper-theme-border-color);\n border-top: var(--popper-theme-border-width)\n var(--popper-theme-border-style) var(--popper-theme-border-color);\n}\n\n /* Left arrow */\n.popper[data-popper-placement^="left"] > #arrow[data-v-7225c62e] {\n right: -5px;\n}\n.popper[data-popper-placement^="left"] > #arrow[data-v-7225c62e]::before {\n border-right: var(--popper-theme-border-width)\n var(--popper-theme-border-style) var(--popper-theme-border-color);\n border-top: var(--popper-theme-border-width)\n var(--popper-theme-border-style) var(--popper-theme-border-color);\n}\n\n /* Right arrow */\n.popper[data-popper-placement^="right"] > #arrow[data-v-7225c62e] {\n left: -5px;\n}\n.popper[data-popper-placement^="right"] > #arrow[data-v-7225c62e]::before {\n border-left: var(--popper-theme-border-width)\n var(--popper-theme-border-style) var(--popper-theme-border-color);\n border-bottom: var(--popper-theme-border-width)\n var(--popper-theme-border-style) var(--popper-theme-border-color);\n}\n.popper[data-v-7225c62e] {\n transition: background 250ms ease-in-out;\n background: var(--popper-theme-background-color);\n padding: var(--popper-theme-padding);\n color: var(--popper-theme-text-color);\n border-radius: var(--popper-theme-border-radius);\n border-width: var(--popper-theme-border-width);\n border-style: var(--popper-theme-border-style);\n border-color: var(--popper-theme-border-color);\n box-shadow: var(--popper-theme-box-shadow);\n}\n.popper[data-v-7225c62e]:hover,\n .popper:hover > #arrow[data-v-7225c62e]::before {\n background: var(--popper-theme-background-color-hover);\n}\n.inline-block[data-v-7225c62e] {\n display: inline-block;\n}\n.fade-enter-active[data-v-7225c62e],\n .fade-leave-active[data-v-7225c62e] {\n transition: opacity 0.2s ease;\n}\n.fade-enter-from[data-v-7225c62e],\n .fade-leave-to[data-v-7225c62e] {\n opacity: 0;\n}\n'),ke.render=De,ke.__scopeId="data-v-7225c62e";var Ee=function(){var e=ke;return e.install=function(t){t.component("Popper",e)},e}(),Se=Object.freeze({__proto__:null,default:Ee});return Object.entries(Se).forEach((function(e){var t=i(e,2),r=t[0],n=t[1];"default"!==r&&(Ee[r]=n)})),Ee}(Vue); |
{ | ||
"name": "vue3-popper", | ||
"version": "0.4.0", | ||
"version": "0.5.0-0", | ||
"author": { | ||
@@ -40,3 +40,4 @@ "name": "Valgeir Björnsson", | ||
"dependencies": { | ||
"@popperjs/core": "^2.9.2" | ||
"@popperjs/core": "^2.9.2", | ||
"debounce": "^1.2.1" | ||
}, | ||
@@ -43,0 +44,0 @@ "devDependencies": { |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
189082
3747
3
+ Addeddebounce@^1.2.1
+ Addeddebounce@1.2.1(transitive)