UNPKG

@ussebastian/kitdigital

Version:

Kit Digital de la Universidad San Sebastián

4 lines (3 loc) 39.3 kB
/*! @ussebastian/kitdigital v0.3.7 | MIT (c) Asimov Consultores SpA - 2023 */ var e="top",t="bottom",n="right",r="left",o="auto",i=[e,t,n,r],a="start",s="end",c="clippingParents",u="viewport",p="popper",f="reference",d=i.reduce((function(e,t){return e.concat([t+"-"+a,t+"-"+s])}),[]),l=[].concat(i,[o]).reduce((function(e,t){return e.concat([t,t+"-"+a,t+"-"+s])}),[]),m=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function v(e){return e?(e.nodeName||"").toLowerCase():null}function h(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function g(e){return e instanceof h(e).Element||e instanceof Element}function y(e){return e instanceof h(e).HTMLElement||e instanceof HTMLElement}function b(e){return"undefined"!=typeof ShadowRoot&&(e instanceof h(e).ShadowRoot||e instanceof ShadowRoot)}var w={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];y(o)&&v(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}),{});y(r)&&v(r)&&(Object.assign(r.style,i),Object.keys(o).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]};function x(e){return e.split("-")[0]}var O=Math.max,E=Math.min,A=Math.round;function T(){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 D(){return!/^((?!chrome|android).)*safari/i.test(T())}function j(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&y(e)&&(o=e.offsetWidth>0&&A(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&A(r.height)/e.offsetHeight||1);var a=(g(e)?h(e):window).visualViewport,s=!D()&&n,c=(r.left+(s&&a?a.offsetLeft:0))/o,u=(r.top+(s&&a?a.offsetTop:0))/i,p=r.width/o,f=r.height/i;return{width:p,height:f,top:u,right:c+p,bottom:u+f,left:c,x:c,y:u}}function L(e){var t=j(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 N(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&b(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function k(e){return h(e).getComputedStyle(e)}function C(e){return["table","td","th"].indexOf(v(e))>=0}function V(e){return((g(e)?e.ownerDocument:e.document)||window.document).documentElement}function M(e){return"html"===v(e)?e:e.assignedSlot||e.parentNode||(b(e)?e.host:null)||V(e)}function S(e){return y(e)&&"fixed"!==k(e).position?e.offsetParent:null}function H(e){for(var t=h(e),n=S(e);n&&C(n)&&"static"===k(n).position;)n=S(n);return n&&("html"===v(n)||"body"===v(n)&&"static"===k(n).position)?t:n||function(e){var t=/firefox/i.test(T());if(/Trident/i.test(T())&&y(e)&&"fixed"===k(e).position)return null;var n=M(e);for(b(n)&&(n=n.host);y(n)&&["html","body"].indexOf(v(n))<0;){var r=k(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 P(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function W(e,t,n){return O(e,E(t,n))}function R(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function _(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}var B={name:"arrow",enabled:!0,phase:"main",fn:function(o){var a,s=o.state,c=o.name,u=o.options,p=s.elements.arrow,f=s.modifiersData.popperOffsets,d=x(s.placement),l=P(d),m=[r,n].indexOf(d)>=0?"height":"width";if(p&&f){var v=function(e,t){return R("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:_(e,i))}(u.padding,s),h=L(p),g="y"===l?e:r,y="y"===l?t:n,b=s.rects.reference[m]+s.rects.reference[l]-f[l]-s.rects.popper[m],w=f[l]-s.rects.reference[l],O=H(p),E=O?"y"===l?O.clientHeight||0:O.clientWidth||0:0,A=b/2-w/2,T=v[g],D=E-h[m]-v[y],j=E/2-h[m]/2+A,N=W(T,j,D),k=l;s.modifiersData[c]=((a={})[k]=N,a.centerOffset=N-j,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)))&&N(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function I(e){return e.split("-")[1]}var U={top:"auto",right:"auto",bottom:"auto",left:"auto"};function q(o){var i,a=o.popper,c=o.popperRect,u=o.placement,p=o.variation,f=o.offsets,d=o.position,l=o.gpuAcceleration,m=o.adaptive,v=o.roundOffsets,g=o.isFixed,y=f.x,b=void 0===y?0:y,w=f.y,x=void 0===w?0:w,O="function"==typeof v?v({x:b,y:x}):{x:b,y:x};b=O.x,x=O.y;var E=f.hasOwnProperty("x"),T=f.hasOwnProperty("y"),D=r,j=e,L=window;if(m){var N=H(a),C="clientHeight",M="clientWidth";if(N===h(a)&&"static"!==k(N=V(a)).position&&"absolute"===d&&(C="scrollHeight",M="scrollWidth"),u===e||(u===r||u===n)&&p===s)j=t,x-=(g&&N===L&&L.visualViewport?L.visualViewport.height:N[C])-c.height,x*=l?1:-1;if(u===r||(u===e||u===t)&&p===s)D=n,b-=(g&&N===L&&L.visualViewport?L.visualViewport.width:N[M])-c.width,b*=l?1:-1}var S,P=Object.assign({position:d},m&&U),W=!0===v?function(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:A(n*o)/o||0,y:A(r*o)/o||0}}({x:b,y:x},h(a)):{x:b,y:x};return b=W.x,x=W.y,l?Object.assign({},P,((S={})[j]=T?"0":"",S[D]=E?"0":"",S.transform=(L.devicePixelRatio||1)<=1?"translate("+b+"px, "+x+"px)":"translate3d("+b+"px, "+x+"px, 0)",S)):Object.assign({},P,((i={})[j]=T?x+"px":"",i[D]=E?b+"px":"",i.transform="",i))}var F={passive:!0};var z={left:"right",right:"left",bottom:"top",top:"bottom"};function $(e){return e.replace(/left|right|bottom|top/g,(function(e){return z[e]}))}var Y={start:"end",end:"start"};function X(e){return e.replace(/start|end/g,(function(e){return Y[e]}))}function J(e){var t=h(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function G(e){return j(V(e)).left+J(e).scrollLeft}function K(e){var t=k(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function Q(e){return["html","body","#document"].indexOf(v(e))>=0?e.ownerDocument.body:y(e)&&K(e)?e:Q(M(e))}function Z(e,t){var n;void 0===t&&(t=[]);var r=Q(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=h(r),a=o?[i].concat(i.visualViewport||[],K(r)?r:[]):r,s=t.concat(a);return o?s:s.concat(Z(M(a)))}function ee(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function te(e,t,n){return t===u?ee(function(e,t){var n=h(e),r=V(e),o=n.visualViewport,i=r.clientWidth,a=r.clientHeight,s=0,c=0;if(o){i=o.width,a=o.height;var u=D();(u||!u&&"fixed"===t)&&(s=o.offsetLeft,c=o.offsetTop)}return{width:i,height:a,x:s+G(e),y:c}}(e,n)):g(t)?function(e,t){var n=j(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):ee(function(e){var t,n=V(e),r=J(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=O(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=O(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-r.scrollLeft+G(e),c=-r.scrollTop;return"rtl"===k(o||n).direction&&(s+=O(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:s,y:c}}(V(e)))}function ne(e,t,n,r){var o="clippingParents"===t?function(e){var t=Z(M(e)),n=["absolute","fixed"].indexOf(k(e).position)>=0&&y(e)?H(e):e;return g(n)?t.filter((function(e){return g(e)&&N(e,n)&&"body"!==v(e)})):[]}(e):[].concat(t),i=[].concat(o,[n]),a=i[0],s=i.reduce((function(t,n){var o=te(e,n,r);return t.top=O(o.top,t.top),t.right=E(o.right,t.right),t.bottom=E(o.bottom,t.bottom),t.left=O(o.left,t.left),t}),te(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 re(o){var i,c=o.reference,u=o.element,p=o.placement,f=p?x(p):null,d=p?I(p):null,l=c.x+c.width/2-u.width/2,m=c.y+c.height/2-u.height/2;switch(f){case e:i={x:l,y:c.y-u.height};break;case t:i={x:l,y:c.y+c.height};break;case n:i={x:c.x+c.width,y:m};break;case r:i={x:c.x-u.width,y:m};break;default:i={x:c.x,y:c.y}}var v=f?P(f):null;if(null!=v){var h="y"===v?"height":"width";switch(d){case a:i[v]=i[v]-(c[h]/2-u[h]/2);break;case s:i[v]=i[v]+(c[h]/2-u[h]/2)}}return i}function oe(r,o){void 0===o&&(o={});var a=o,s=a.placement,d=void 0===s?r.placement:s,l=a.strategy,m=void 0===l?r.strategy:l,v=a.boundary,h=void 0===v?c:v,y=a.rootBoundary,b=void 0===y?u:y,w=a.elementContext,x=void 0===w?p:w,O=a.altBoundary,E=void 0!==O&&O,A=a.padding,T=void 0===A?0:A,D=R("number"!=typeof T?T:_(T,i)),L=x===p?f:p,N=r.rects.popper,k=r.elements[E?L:x],C=ne(g(k)?k:k.contextElement||V(r.elements.popper),h,b,m),M=j(r.elements.reference),S=re({reference:M,element:N,strategy:"absolute",placement:d}),H=ee(Object.assign({},N,S)),P=x===p?H:M,W={top:C.top-P.top+D.top,bottom:P.bottom-C.bottom+D.bottom,left:C.left-P.left+D.left,right:P.right-C.right+D.right},B=r.modifiersData.offset;if(x===p&&B){var I=B[d];Object.keys(W).forEach((function(r){var o=[n,t].indexOf(r)>=0?1:-1,i=[e,t].indexOf(r)>=0?"y":"x";W[r]+=I[i]*o}))}return W}function ie(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=n.boundary,a=n.rootBoundary,s=n.padding,c=n.flipVariations,u=n.allowedAutoPlacements,p=void 0===u?l:u,f=I(r),m=f?c?d:d.filter((function(e){return I(e)===f})):i,v=m.filter((function(e){return p.indexOf(e)>=0}));0===v.length&&(v=m);var h=v.reduce((function(t,n){return t[n]=oe(e,{placement:n,boundary:o,rootBoundary:a,padding:s})[x(n)],t}),{});return Object.keys(h).sort((function(e,t){return h[e]-h[t]}))}var ae={name:"flip",enabled:!0,phase:"main",fn:function(i){var s=i.state,c=i.options,u=i.name;if(!s.modifiersData[u]._skip){for(var p=c.mainAxis,f=void 0===p||p,d=c.altAxis,l=void 0===d||d,m=c.fallbackPlacements,v=c.padding,h=c.boundary,g=c.rootBoundary,y=c.altBoundary,b=c.flipVariations,w=void 0===b||b,O=c.allowedAutoPlacements,E=s.options.placement,A=x(E),T=m||(A===E||!w?[$(E)]:function(e){if(x(e)===o)return[];var t=$(e);return[X(e),t,X(t)]}(E)),D=[E].concat(T).reduce((function(e,t){return e.concat(x(t)===o?ie(s,{placement:t,boundary:h,rootBoundary:g,padding:v,flipVariations:w,allowedAutoPlacements:O}):t)}),[]),j=s.rects.reference,L=s.rects.popper,N=new Map,k=!0,C=D[0],V=0;V<D.length;V++){var M=D[V],S=x(M),H=I(M)===a,P=[e,t].indexOf(S)>=0,W=P?"width":"height",R=oe(s,{placement:M,boundary:h,rootBoundary:g,altBoundary:y,padding:v}),_=P?H?n:r:H?t:e;j[W]>L[W]&&(_=$(_));var B=$(_),U=[];if(f&&U.push(R[S]<=0),l&&U.push(R[_]<=0,R[B]<=0),U.every((function(e){return e}))){C=M,k=!1;break}N.set(M,U)}if(k)for(var q=function(e){var t=D.find((function(t){var n=N.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return C=t,"break"},F=w?3:1;F>0;F--){if("break"===q(F))break}s.placement!==C&&(s.modifiersData[u]._skip=!0,s.placement=C,s.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function se(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 ce(o){return[e,n,t,r].some((function(e){return o[e]>=0}))}var ue={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(t){var o=t.state,i=t.options,a=t.name,s=i.offset,c=void 0===s?[0,0]:s,u=l.reduce((function(t,i){return t[i]=function(t,o,i){var a=x(t),s=[r,e].indexOf(a)>=0?-1:1,c="function"==typeof i?i(Object.assign({},o,{placement:t})):i,u=c[0],p=c[1];return u=u||0,p=(p||0)*s,[r,n].indexOf(a)>=0?{x:p,y:u}:{x:u,y:p}}(i,o.rects,c),t}),{}),p=u[o.placement],f=p.x,d=p.y;null!=o.modifiersData.popperOffsets&&(o.modifiersData.popperOffsets.x+=f,o.modifiersData.popperOffsets.y+=d),o.modifiersData[a]=u}};var pe={name:"preventOverflow",enabled:!0,phase:"main",fn:function(o){var i=o.state,s=o.options,c=o.name,u=s.mainAxis,p=void 0===u||u,f=s.altAxis,d=void 0!==f&&f,l=s.boundary,m=s.rootBoundary,v=s.altBoundary,h=s.padding,g=s.tether,y=void 0===g||g,b=s.tetherOffset,w=void 0===b?0:b,A=oe(i,{boundary:l,rootBoundary:m,padding:h,altBoundary:v}),T=x(i.placement),D=I(i.placement),j=!D,N=P(T),k="x"===N?"y":"x",C=i.modifiersData.popperOffsets,V=i.rects.reference,M=i.rects.popper,S="function"==typeof w?w(Object.assign({},i.rects,{placement:i.placement})):w,R="number"==typeof S?{mainAxis:S,altAxis:S}:Object.assign({mainAxis:0,altAxis:0},S),_=i.modifiersData.offset?i.modifiersData.offset[i.placement]:null,B={x:0,y:0};if(C){if(p){var U,q="y"===N?e:r,F="y"===N?t:n,z="y"===N?"height":"width",$=C[N],Y=$+A[q],X=$-A[F],J=y?-M[z]/2:0,G=D===a?V[z]:M[z],K=D===a?-M[z]:-V[z],Q=i.elements.arrow,Z=y&&Q?L(Q):{width:0,height:0},ee=i.modifiersData["arrow#persistent"]?i.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},te=ee[q],ne=ee[F],re=W(0,V[z],Z[z]),ie=j?V[z]/2-J-re-te-R.mainAxis:G-re-te-R.mainAxis,ae=j?-V[z]/2+J+re+ne+R.mainAxis:K+re+ne+R.mainAxis,se=i.elements.arrow&&H(i.elements.arrow),ce=se?"y"===N?se.clientTop||0:se.clientLeft||0:0,ue=null!=(U=null==_?void 0:_[N])?U:0,pe=$+ae-ue,fe=W(y?E(Y,$+ie-ue-ce):Y,$,y?O(X,pe):X);C[N]=fe,B[N]=fe-$}if(d){var de,le="x"===N?e:r,me="x"===N?t:n,ve=C[k],he="y"===k?"height":"width",ge=ve+A[le],ye=ve-A[me],be=-1!==[e,r].indexOf(T),we=null!=(de=null==_?void 0:_[k])?de:0,xe=be?ge:ve-V[he]-M[he]-we+R.altAxis,Oe=be?ve+V[he]+M[he]-we-R.altAxis:ye,Ee=y&&be?function(e,t,n){var r=W(e,t,n);return r>n?n:r}(xe,ve,Oe):W(y?xe:ge,ve,y?Oe:ye);C[k]=Ee,B[k]=Ee-ve}i.modifiersData[c]=B}},requiresIfExists:["offset"]};function fe(e,t,n){void 0===n&&(n=!1);var r,o,i=y(t),a=y(t)&&function(e){var t=e.getBoundingClientRect(),n=A(t.width)/e.offsetWidth||1,r=A(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),s=V(t),c=j(e,a,n),u={scrollLeft:0,scrollTop:0},p={x:0,y:0};return(i||!i&&!n)&&(("body"!==v(t)||K(s))&&(u=(r=t)!==h(r)&&y(r)?{scrollLeft:(o=r).scrollLeft,scrollTop:o.scrollTop}:J(r)),y(t)?((p=j(t,!0)).x+=t.clientLeft,p.y+=t.clientTop):s&&(p.x=G(s))),{x:c.left+u.scrollLeft-p.x,y:c.top+u.scrollTop-p.y,width:c.width,height:c.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 le={placement:"bottom",modifiers:[],strategy:"absolute"};function me(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function ve(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,o=t.defaultOptions,i=void 0===o?le:o;return function(e,t,n){void 0===n&&(n=i);var o,a,s={placement:"bottom",orderedModifiers:[],options:Object.assign({},le,i),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},c=[],u=!1,p={state:s,setOptions:function(n){var o="function"==typeof n?n(s.options):n;f(),s.options=Object.assign({},i,s.options,o),s.scrollParents={reference:g(e)?Z(e):e.contextElement?Z(e.contextElement):[],popper:Z(t)};var a,u,d=function(e){var t=de(e);return m.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}((a=[].concat(r,s.options.modifiers),u=a.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{}),Object.keys(u).map((function(e){return u[e]}))));return s.orderedModifiers=d.filter((function(e){return e.enabled})),s.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,o=e.effect;if("function"==typeof o){var i=o({state:s,name:t,instance:p,options:r}),a=function(){};c.push(i||a)}})),p.update()},forceUpdate:function(){if(!u){var e=s.elements,t=e.reference,n=e.popper;if(me(t,n)){s.rects={reference:fe(t,H(n),"fixed"===s.options.strategy),popper:L(n)},s.reset=!1,s.placement=s.options.placement,s.orderedModifiers.forEach((function(e){return s.modifiersData[e.name]=Object.assign({},e.data)}));for(var r=0;r<s.orderedModifiers.length;r++)if(!0!==s.reset){var o=s.orderedModifiers[r],i=o.fn,a=o.options,c=void 0===a?{}:a,f=o.name;"function"==typeof i&&(s=i({state:s,options:c,name:f,instance:p})||s)}else s.reset=!1,r=-1}}},update:(o=function(){return new Promise((function(e){p.forceUpdate(),e(s)}))},function(){return a||(a=new Promise((function(e){Promise.resolve().then((function(){a=void 0,e(o())}))}))),a}),destroy:function(){f(),u=!0}};if(!me(e,t))return p;function f(){c.forEach((function(e){return e()})),c=[]}return p.setOptions(n).then((function(e){!u&&n.onFirstUpdate&&n.onFirstUpdate(e)})),p}}var he=ve({defaultModifiers:[{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,c=h(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&u.forEach((function(e){e.addEventListener("scroll",n.update,F)})),s&&c.addEventListener("resize",n.update,F),function(){i&&u.forEach((function(e){e.removeEventListener("scroll",n.update,F)})),s&&c.removeEventListener("resize",n.update,F)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=re({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,n=e.options,r=n.gpuAcceleration,o=void 0===r||r,i=n.adaptive,a=void 0===i||i,s=n.roundOffsets,c=void 0===s||s,u={placement:x(t.placement),variation:I(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,q(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:c})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,q(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},w,ue,ae,pe,B,{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=oe(t,{elementContext:"reference"}),s=oe(t,{altBoundary:!0}),c=se(a,r),u=se(s,o,i),p=ce(c),f=ce(u);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:u,isReferenceHidden:p,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":p,"data-popper-escaped":f})}}]}),ge="tippy-content",ye="tippy-backdrop",be="tippy-arrow",we="tippy-svg-arrow",xe={passive:!0,capture:!0},Oe=function(){return document.body};function Ee(e,t,n){if(Array.isArray(e)){var r=e[t];return null==r?Array.isArray(n)?n[t]:n:r}return e}function Ae(e,t){var n={}.toString.call(e);return 0===n.indexOf("[object")&&n.indexOf(t+"]")>-1}function Te(e,t){return"function"==typeof e?e.apply(void 0,t):e}function De(e,t){return 0===t?e:function(r){clearTimeout(n),n=setTimeout((function(){e(r)}),t)};var n}function je(e){return[].concat(e)}function Le(e,t){-1===e.indexOf(t)&&e.push(t)}function Ne(e){return[].slice.call(e)}function ke(e){return Object.keys(e).reduce((function(t,n){return void 0!==e[n]&&(t[n]=e[n]),t}),{})}function Ce(){return document.createElement("div")}function Ve(e){return["Element","Fragment"].some((function(t){return Ae(e,t)}))}function Me(e){return Ve(e)?[e]:function(e){return Ae(e,"NodeList")}(e)?Ne(e):Array.isArray(e)?e:Ne(document.querySelectorAll(e))}function Se(e,t){e.forEach((function(e){e&&(e.style.transitionDuration=t+"ms")}))}function He(e,t){e.forEach((function(e){e&&e.setAttribute("data-state",t)}))}function Pe(e,t,n){var r=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach((function(t){e[r](t,n)}))}function We(e,t){for(var n=t;n;){var r;if(e.contains(n))return!0;n=null==n.getRootNode||null==(r=n.getRootNode())?void 0:r.host}return!1}var Re={isTouch:!1},_e=0;function Be(){Re.isTouch||(Re.isTouch=!0,window.performance&&document.addEventListener("mousemove",Ie))}function Ie(){var e=performance.now();e-_e<20&&(Re.isTouch=!1,document.removeEventListener("mousemove",Ie)),_e=e}function Ue(){var e,t=document.activeElement;if((e=t)&&e._tippy&&e._tippy.reference===e){var n=t._tippy;t.blur&&!n.state.isVisible&&t.blur()}}var qe,Fe=!!("undefined"!=typeof window&&"undefined"!=typeof document)&&!!window.msCrypto;function ze(e){return[e+"() was called on a"+("destroy"===e?"n already-":" ")+"destroyed instance. This is a no-op but","indicates a potential memory leak."].join(" ")}function $e(e){return e.replace(/[ \t]{2,}/g," ").replace(/^[ \t]*/gm,"").trim()}function Ye(e){return $e("\n %ctippy.js\n\n %c"+$e(e)+"\n\n %c👷‍ This is a development-only message. It will be removed in production.\n ")}function Xe(e){return[Ye(e),"color: #00C584; font-size: 1.3em; font-weight: bold;","line-height: 1.5","color: #a6a095;"]}function Je(e,t){var n;e&&!qe.has(t)&&(qe.add(t),(n=console).warn.apply(n,Xe(t)))}function Ge(e,t){var n;e&&!qe.has(t)&&(qe.add(t),(n=console).error.apply(n,Xe(t)))}"production"!==process.env.NODE_ENV&&(qe=new Set);var Ke={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},Qe=Object.assign({appendTo:Oe,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},Ke,{allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999}),Ze=Object.keys(Qe);function et(e){var t=(e.plugins||[]).reduce((function(t,n){var r,o=n.name,i=n.defaultValue;o&&(t[o]=void 0!==e[o]?e[o]:null!=(r=Qe[o])?r:i);return t}),{});return Object.assign({},e,t)}function tt(e,t){var n=Object.assign({},t,{content:Te(t.content,[e])},t.ignoreAttributes?{}:function(e,t){return(t?Object.keys(et(Object.assign({},Qe,{plugins:t}))):Ze).reduce((function(t,n){var r=(e.getAttribute("data-tippy-"+n)||"").trim();if(!r)return t;if("content"===n)t[n]=r;else try{t[n]=JSON.parse(r)}catch(e){t[n]=r}return t}),{})}(e,t.plugins));return n.aria=Object.assign({},Qe.aria,n.aria),n.aria={expanded:"auto"===n.aria.expanded?t.interactive:n.aria.expanded,content:"auto"===n.aria.content?t.interactive?null:"describedby":n.aria.content},n}function nt(e,t){void 0===e&&(e={}),void 0===t&&(t=[]),Object.keys(e).forEach((function(e){var n,r,o=function(e,t){var n=Object.assign({},e);return t.forEach((function(e){delete n[e]})),n}(Qe,Object.keys(Ke)),i=(n=o,r=e,!{}.hasOwnProperty.call(n,r));i&&(i=0===t.filter((function(t){return t.name===e})).length),Je(i,["`"+e+"`","is not a valid prop. You may have spelled it incorrectly, or if it's","a plugin, forgot to pass it in an array as props.plugins.","\n\n","All props: https://atomiks.github.io/tippyjs/v6/all-props/\n","Plugins: https://atomiks.github.io/tippyjs/v6/plugins/"].join(" "))}))}var rt=function(){return"innerHTML"};function ot(e,t){e[rt()]=t}function it(e){var t=Ce();return!0===e?t.className=be:(t.className=we,Ve(e)?t.appendChild(e):ot(t,e)),t}function at(e,t){Ve(t.content)?(ot(e,""),e.appendChild(t.content)):"function"!=typeof t.content&&(t.allowHTML?ot(e,t.content):e.textContent=t.content)}function st(e){var t=e.firstElementChild,n=Ne(t.children);return{box:t,content:n.find((function(e){return e.classList.contains(ge)})),arrow:n.find((function(e){return e.classList.contains(be)||e.classList.contains(we)})),backdrop:n.find((function(e){return e.classList.contains(ye)}))}}function ct(e){var t=Ce(),n=Ce();n.className="tippy-box",n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var r=Ce();function o(n,r){var o=st(t),i=o.box,a=o.content,s=o.arrow;r.theme?i.setAttribute("data-theme",r.theme):i.removeAttribute("data-theme"),"string"==typeof r.animation?i.setAttribute("data-animation",r.animation):i.removeAttribute("data-animation"),r.inertia?i.setAttribute("data-inertia",""):i.removeAttribute("data-inertia"),i.style.maxWidth="number"==typeof r.maxWidth?r.maxWidth+"px":r.maxWidth,r.role?i.setAttribute("role",r.role):i.removeAttribute("role"),n.content===r.content&&n.allowHTML===r.allowHTML||at(a,e.props),r.arrow?s?n.arrow!==r.arrow&&(i.removeChild(s),i.appendChild(it(r.arrow))):i.appendChild(it(r.arrow)):s&&i.removeChild(s)}return r.className=ge,r.setAttribute("data-state","hidden"),at(r,e.props),t.appendChild(n),n.appendChild(r),o(e.props,e.props),{popper:t,onUpdate:o}}ct.$$tippy=!0;var ut=1,pt=[],ft=[];function dt(e,t){var n,r,o,i,a,s,c,u,p=tt(e,Object.assign({},Qe,et(ke(t)))),f=!1,d=!1,l=!1,m=!1,v=[],h=De(Y,p.interactiveDebounce),g=ut++,y=(u=p.plugins).filter((function(e,t){return u.indexOf(e)===t})),b={id:g,reference:e,popper:Ce(),popperInstance:null,props:p,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:y,clearDelayTimeouts:function(){clearTimeout(n),clearTimeout(r),cancelAnimationFrame(o)},setProps:function(t){"production"!==process.env.NODE_ENV&&Je(b.state.isDestroyed,ze("setProps"));if(b.state.isDestroyed)return;M("onBeforeUpdate",[b,t]),z();var n=b.props,r=tt(e,Object.assign({},n,ke(t),{ignoreAttributes:!0}));b.props=r,F(),n.interactiveDebounce!==r.interactiveDebounce&&(P(),h=De(Y,r.interactiveDebounce));n.triggerTarget&&!r.triggerTarget?je(n.triggerTarget).forEach((function(e){e.removeAttribute("aria-expanded")})):r.triggerTarget&&e.removeAttribute("aria-expanded");H(),V(),O&&O(n,r);b.popperInstance&&(K(),Z().forEach((function(e){requestAnimationFrame(e._tippy.popperInstance.forceUpdate)})));M("onAfterUpdate",[b,t])},setContent:function(e){b.setProps({content:e})},show:function(){"production"!==process.env.NODE_ENV&&Je(b.state.isDestroyed,ze("show"));var e=b.state.isVisible,t=b.state.isDestroyed,n=!b.state.isEnabled,r=Re.isTouch&&!b.props.touch,o=Ee(b.props.duration,0,Qe.duration);if(e||t||n||r)return;if(L().hasAttribute("disabled"))return;if(M("onShow",[b],!1),!1===b.props.onShow(b))return;b.state.isVisible=!0,j()&&(x.style.visibility="visible");V(),B(),b.state.isMounted||(x.style.transition="none");if(j()){var i=k();Se([i.box,i.content],0)}s=function(){var e;if(b.state.isVisible&&!m){if(m=!0,x.offsetHeight,x.style.transition=b.props.moveTransition,j()&&b.props.animation){var t=k(),n=t.box,r=t.content;Se([n,r],o),He([n,r],"visible")}S(),H(),Le(ft,b),null==(e=b.popperInstance)||e.forceUpdate(),M("onMount",[b]),b.props.animation&&j()&&function(e,t){U(e,t)}(o,(function(){b.state.isShown=!0,M("onShown",[b])}))}},function(){var e,t=b.props.appendTo,n=L();e=b.props.interactive&&t===Oe||"parent"===t?n.parentNode:Te(t,[n]);e.contains(x)||e.appendChild(x);b.state.isMounted=!0,K(),"production"!==process.env.NODE_ENV&&Je(b.props.interactive&&t===Qe.appendTo&&n.nextElementSibling!==x,["Interactive tippy element may not be accessible via keyboard","navigation because it is not directly after the reference element","in the DOM source order.","\n\n","Using a wrapper <div> or <span> tag around the reference element","solves this by creating a new parentNode context.","\n\n","Specifying `appendTo: document.body` silences this warning, but it","assumes you are using a focus management solution to handle","keyboard navigation.","\n\n","See: https://atomiks.github.io/tippyjs/v6/accessibility/#interactivity"].join(" "))}()},hide:function(){"production"!==process.env.NODE_ENV&&Je(b.state.isDestroyed,ze("hide"));var e=!b.state.isVisible,t=b.state.isDestroyed,n=!b.state.isEnabled,r=Ee(b.props.duration,1,Qe.duration);if(e||t||n)return;if(M("onHide",[b],!1),!1===b.props.onHide(b))return;b.state.isVisible=!1,b.state.isShown=!1,m=!1,f=!1,j()&&(x.style.visibility="hidden");if(P(),I(),V(!0),j()){var o=k(),i=o.box,a=o.content;b.props.animation&&(Se([i,a],r),He([i,a],"hidden"))}S(),H(),b.props.animation?j()&&function(e,t){U(e,(function(){!b.state.isVisible&&x.parentNode&&x.parentNode.contains(x)&&t()}))}(r,b.unmount):b.unmount()},hideWithInteractivity:function(e){"production"!==process.env.NODE_ENV&&Je(b.state.isDestroyed,ze("hideWithInteractivity"));N().addEventListener("mousemove",h),Le(pt,h),h(e)},enable:function(){b.state.isEnabled=!0},disable:function(){b.hide(),b.state.isEnabled=!1},unmount:function(){"production"!==process.env.NODE_ENV&&Je(b.state.isDestroyed,ze("unmount"));b.state.isVisible&&b.hide();if(!b.state.isMounted)return;Q(),Z().forEach((function(e){e._tippy.unmount()})),x.parentNode&&x.parentNode.removeChild(x);ft=ft.filter((function(e){return e!==b})),b.state.isMounted=!1,M("onHidden",[b])},destroy:function(){"production"!==process.env.NODE_ENV&&Je(b.state.isDestroyed,ze("destroy"));if(b.state.isDestroyed)return;b.clearDelayTimeouts(),b.unmount(),z(),delete e._tippy,b.state.isDestroyed=!0,M("onDestroy",[b])}};if(!p.render)return"production"!==process.env.NODE_ENV&&Ge(!0,"render() function has not been supplied."),b;var w=p.render(b),x=w.popper,O=w.onUpdate;x.setAttribute("data-tippy-root",""),x.id="tippy-"+b.id,b.popper=x,e._tippy=b,x._tippy=b;var E=y.map((function(e){return e.fn(b)})),A=e.hasAttribute("aria-expanded");return F(),H(),V(),M("onCreate",[b]),p.showOnCreate&&ee(),x.addEventListener("mouseenter",(function(){b.props.interactive&&b.state.isVisible&&b.clearDelayTimeouts()})),x.addEventListener("mouseleave",(function(){b.props.interactive&&b.props.trigger.indexOf("mouseenter")>=0&&N().addEventListener("mousemove",h)})),b;function T(){var e=b.props.touch;return Array.isArray(e)?e:[e,0]}function D(){return"hold"===T()[0]}function j(){var e;return!(null==(e=b.props.render)||!e.$$tippy)}function L(){return c||e}function N(){var e,t,n=L().parentNode;return n?null!=(t=je(n)[0])&&null!=(e=t.ownerDocument)&&e.body?t.ownerDocument:document:document}function k(){return st(x)}function C(e){return b.state.isMounted&&!b.state.isVisible||Re.isTouch||i&&"focus"===i.type?0:Ee(b.props.delay,e?0:1,Qe.delay)}function V(e){void 0===e&&(e=!1),x.style.pointerEvents=b.props.interactive&&!e?"":"none",x.style.zIndex=""+b.props.zIndex}function M(e,t,n){var r;(void 0===n&&(n=!0),E.forEach((function(n){n[e]&&n[e].apply(n,t)})),n)&&(r=b.props)[e].apply(r,t)}function S(){var t=b.props.aria;if(t.content){var n="aria-"+t.content,r=x.id;je(b.props.triggerTarget||e).forEach((function(e){var t=e.getAttribute(n);if(b.state.isVisible)e.setAttribute(n,t?t+" "+r:r);else{var o=t&&t.replace(r,"").trim();o?e.setAttribute(n,o):e.removeAttribute(n)}}))}}function H(){!A&&b.props.aria.expanded&&je(b.props.triggerTarget||e).forEach((function(e){b.props.interactive?e.setAttribute("aria-expanded",b.state.isVisible&&e===L()?"true":"false"):e.removeAttribute("aria-expanded")}))}function P(){N().removeEventListener("mousemove",h),pt=pt.filter((function(e){return e!==h}))}function W(t){if(!Re.isTouch||!l&&"mousedown"!==t.type){var n=t.composedPath&&t.composedPath()[0]||t.target;if(!b.props.interactive||!We(x,n)){if(je(b.props.triggerTarget||e).some((function(e){return We(e,n)}))){if(Re.isTouch)return;if(b.state.isVisible&&b.props.trigger.indexOf("click")>=0)return}else M("onClickOutside",[b,t]);!0===b.props.hideOnClick&&(b.clearDelayTimeouts(),b.hide(),d=!0,setTimeout((function(){d=!1})),b.state.isMounted||I())}}}function R(){l=!0}function _(){l=!1}function B(){var e=N();e.addEventListener("mousedown",W,!0),e.addEventListener("touchend",W,xe),e.addEventListener("touchstart",_,xe),e.addEventListener("touchmove",R,xe)}function I(){var e=N();e.removeEventListener("mousedown",W,!0),e.removeEventListener("touchend",W,xe),e.removeEventListener("touchstart",_,xe),e.removeEventListener("touchmove",R,xe)}function U(e,t){var n=k().box;function r(e){e.target===n&&(Pe(n,"remove",r),t())}if(0===e)return t();Pe(n,"remove",a),Pe(n,"add",r),a=r}function q(t,n,r){void 0===r&&(r=!1),je(b.props.triggerTarget||e).forEach((function(e){e.addEventListener(t,n,r),v.push({node:e,eventType:t,handler:n,options:r})}))}function F(){var e;D()&&(q("touchstart",$,{passive:!0}),q("touchend",X,{passive:!0})),(e=b.props.trigger,e.split(/\s+/).filter(Boolean)).forEach((function(e){if("manual"!==e)switch(q(e,$),e){case"mouseenter":q("mouseleave",X);break;case"focus":q(Fe?"focusout":"blur",J);break;case"focusin":q("focusout",J)}}))}function z(){v.forEach((function(e){var t=e.node,n=e.eventType,r=e.handler,o=e.options;t.removeEventListener(n,r,o)})),v=[]}function $(e){var t,n=!1;if(b.state.isEnabled&&!G(e)&&!d){var r="focus"===(null==(t=i)?void 0:t.type);i=e,c=e.currentTarget,H(),!b.state.isVisible&&Ae(e,"MouseEvent")&&pt.forEach((function(t){return t(e)})),"click"===e.type&&(b.props.trigger.indexOf("mouseenter")<0||f)&&!1!==b.props.hideOnClick&&b.state.isVisible?n=!0:ee(e),"click"===e.type&&(f=!n),n&&!r&&te(e)}}function Y(e){var t=e.target,n=L().contains(t)||x.contains(t);if("mousemove"!==e.type||!n){var r=Z().concat(x).map((function(e){var t,n=null==(t=e._tippy.popperInstance)?void 0:t.state;return n?{popperRect:e.getBoundingClientRect(),popperState:n,props:p}:null})).filter(Boolean);(function(e,t){var n=t.clientX,r=t.clientY;return e.every((function(e){var t=e.popperRect,o=e.popperState,i=e.props.interactiveBorder,a=o.placement.split("-")[0],s=o.modifiersData.offset;if(!s)return!0;var c="bottom"===a?s.top.y:0,u="top"===a?s.bottom.y:0,p="right"===a?s.left.x:0,f="left"===a?s.right.x:0,d=t.top-r+c>i,l=r-t.bottom-u>i,m=t.left-n+p>i,v=n-t.right-f>i;return d||l||m||v}))})(r,e)&&(P(),te(e))}}function X(e){G(e)||b.props.trigger.indexOf("click")>=0&&f||(b.props.interactive?b.hideWithInteractivity(e):te(e))}function J(e){b.props.trigger.indexOf("focusin")<0&&e.target!==L()||b.props.interactive&&e.relatedTarget&&x.contains(e.relatedTarget)||te(e)}function G(e){return!!Re.isTouch&&D()!==e.type.indexOf("touch")>=0}function K(){Q();var t=b.props,n=t.popperOptions,r=t.placement,o=t.offset,i=t.getReferenceClientRect,a=t.moveTransition,c=j()?st(x).arrow:null,u=i?{getBoundingClientRect:i,contextElement:i.contextElement||L()}:e,p={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t=e.state;if(j()){var n=k().box;["placement","reference-hidden","escaped"].forEach((function(e){"placement"===e?n.setAttribute("data-placement",t.placement):t.attributes.popper["data-popper-"+e]?n.setAttribute("data-"+e,""):n.removeAttribute("data-"+e)})),t.attributes.popper={}}}},f=[{name:"offset",options:{offset:o}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!a}},p];j()&&c&&f.push({name:"arrow",options:{element:c,padding:3}}),f.push.apply(f,(null==n?void 0:n.modifiers)||[]),b.popperInstance=he(u,x,Object.assign({},n,{placement:r,onFirstUpdate:s,modifiers:f}))}function Q(){b.popperInstance&&(b.popperInstance.destroy(),b.popperInstance=null)}function Z(){return Ne(x.querySelectorAll("[data-tippy-root]"))}function ee(e){b.clearDelayTimeouts(),e&&M("onTrigger",[b,e]),B();var t=C(!0),r=T(),o=r[0],i=r[1];Re.isTouch&&"hold"===o&&i&&(t=i),t?n=setTimeout((function(){b.show()}),t):b.show()}function te(e){if(b.clearDelayTimeouts(),M("onUntrigger",[b,e]),b.state.isVisible){if(!(b.props.trigger.indexOf("mouseenter")>=0&&b.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(e.type)>=0&&f)){var t=C(!1);t?r=setTimeout((function(){b.state.isVisible&&b.hide()}),t):o=requestAnimationFrame((function(){b.hide()}))}}else I()}}function lt(e,t){void 0===t&&(t={});var n=Qe.plugins.concat(t.plugins||[]);"production"!==process.env.NODE_ENV&&(!function(e){var t=!e,n="[object Object]"===Object.prototype.toString.call(e)&&!e.addEventListener;Ge(t,["tippy() was passed","`"+String(e)+"`","as its targets (first) argument. Valid types are: String, Element,","Element[], or NodeList."].join(" ")),Ge(n,["tippy() was passed a plain object which is not supported as an argument","for virtual positioning. Use props.getReferenceClientRect instead."].join(" "))}(e),nt(t,n)),document.addEventListener("touchstart",Be,xe),window.addEventListener("blur",Ue);var r=Object.assign({},t,{plugins:n}),o=Me(e);if("production"!==process.env.NODE_ENV){var i=Ve(r.content),a=o.length>1;Je(i&&a,["tippy() was passed an Element as the `content` prop, but more than","one tippy instance was created by this invocation. This means the","content element will only be appended to the last tippy instance.","\n\n","Instead, pass the .innerHTML of the element, or use a function that","returns a cloned version of the element instead.","\n\n","1) content: element.innerHTML\n","2) content: () => element.cloneNode(true)"].join(" "))}var s=o.reduce((function(e,t){var n=t&&dt(t,r);return n&&e.push(n),e}),[]);return Ve(e)?s[0]:s}lt.defaultProps=Qe,lt.setDefaultProps=function(e){"production"!==process.env.NODE_ENV&&nt(e,[]),Object.keys(e).forEach((function(t){Qe[t]=e[t]}))},lt.currentInput=Re,Object.assign({},w,{effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow)}}),lt.setDefaultProps({render:ct});class mt{constructor(e){this.rootNode=e;const t=e=>this.rootNode.getAttribute(e);this.target=t("data-uss-content-target"),this.placement=t("data-uss-placement");const n=t("data-uss-delay");this.delay=n?n.split(",").map((e=>Number(e))):[0,0];const r=t("data-uss-duration");this.duration=r?r.split(",").map((e=>Number(e))):[0,0],this.inlineContent=t("data-uss-content"),this.targetContent=this.target?document.querySelector(`[data-uss-tooltip-content-id="${this.target}"]`).innerHTML:null,this.tooltipContent=this.inlineContent||this.targetContent}init(){if(!this.tooltipContent)return;const e=document.createElement("div");e.classList.add("uss-tooltip__content"),e.innerHTML=this.tooltipContent,lt(this.rootNode,{content:e,allowHTML:!0,arrow:!1,delay:this.delay,duration:this.duration,placement:this.placement||"top",trigger:"mouseenter click"})}}export{mt as default}; //# sourceMappingURL=ComponentTooltip.js.map