diff --git a/dist/main.js b/dist/main.js index 838a0bb..ba96770 100644 --- a/dist/main.js +++ b/dist/main.js @@ -1 +1 @@ -(()=>{"use strict";var t={426:(t,e,n)=>{n.d(e,{A:()=>a});var o=n(601),i=n.n(o),r=n(314),l=n.n(r)()(i());l.push([t.id,"[data-tooltip] {\n position: relative;\n cursor: help;\n}\n\n.rich-tooltip__content {\n opacity: 0;\n visibility: hidden;\n transition: opacity 0.3s ease, visibility 0s linear 0.3s;\n width: max-content;\n height: auto;\n position: absolute;\n top: 0;\n left: 0;\n background: #222;\n color: white;\n font-weight: bold;\n padding: 8px;\n border-radius: 16px;\n font-size: 90%;\n z-index: 9999;\n user-select: none;\n pointer-events: none;\n box-shadow: 0 5px 5px rgb(86 86 86 / 10%), 0 10px 20px rgb(110 110 110 / 5%);\n}\n\n.rich-tooltip__content.show {\n opacity: 1;\n visibility: visible;\n transition: opacity 0.3s ease, visibility 0s linear 0s;\n}\n\n[data-tooltip][data-video] .rich-tooltip__content-wrapper,\n[data-tooltip][data-image] .rich-tooltip__content-wrapper {\n width: 500px;\n height: auto;\n}\n\n.rich-tooltip__content-wrapper img,\n.rich-tooltip__content-wrapper video {\n max-width: 100%;\n height: auto;\n border-radius: 8px;\n display: none;\n}\n\n.rich-tooltip__text-content:has(+ *) {\n margin-bottom: 8px;\n display: block;\n text-align: left;\n}\n\n/* Loading animation */\n.rich-tooltip__placeholder {\n position: relative;\n height: 250px;\n width: 400px;\n background-color: rgb(25, 25, 25);\n overflow: hidden;\n border-radius: 8px;\n}\n\n.rich-tooltip__placeholder::after {\n content: '';\n position: absolute;\n left: -45%;\n height: 100%;\n width: 45%;\n background-image: linear-gradient(to left, rgba(48, 48, 48, 0.05), rgba(29, 29, 29, 0.3), rgba(37, 37, 37, 0.6), rgba(29, 29, 29, 0.3), rgba(48, 48, 48, 0.05));\n animation: loading 1s infinite;\n z-index: 1;\n}\n\n@keyframes loading {\n 0% {\n left: -45%;\n }\n\n 100% {\n left: 100%;\n }\n}",""]);const a=l},314:t=>{t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n="",o=void 0!==e[5];return e[4]&&(n+="@supports (".concat(e[4],") {")),e[2]&&(n+="@media ".concat(e[2]," {")),o&&(n+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),n+=t(e),o&&(n+="}"),e[2]&&(n+="}"),e[4]&&(n+="}"),n})).join("")},e.i=function(t,n,o,i,r){"string"==typeof t&&(t=[[null,t,void 0]]);var l={};if(o)for(var a=0;a0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=r),n&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=n):u[2]=n),i&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=i):u[4]="".concat(i)),e.push(u))}},e}},601:t=>{t.exports=function(t){return t[1]}},72:t=>{var e=[];function n(t){for(var n=-1,o=0;o{var e={};t.exports=function(t,n){var o=function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(t){n=null}e[t]=n}return e[t]}(t);if(!o)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");o.appendChild(n)}},540:t=>{t.exports=function(t){var e=document.createElement("style");return t.setAttributes(e,t.attributes),t.insert(e,t.options),e}},56:(t,e,n)=>{t.exports=function(t){var e=n.nc;e&&t.setAttribute("nonce",e)}},825:t=>{t.exports=function(t){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var e=t.insertStyleElement(t);return{update:function(n){!function(t,e,n){var o="";n.supports&&(o+="@supports (".concat(n.supports,") {")),n.media&&(o+="@media ".concat(n.media," {"));var i=void 0!==n.layer;i&&(o+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),o+=n.css,i&&(o+="}"),n.media&&(o+="}"),n.supports&&(o+="}");var r=n.sourceMap;r&&"undefined"!=typeof btoa&&(o+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(r))))," */")),e.styleTagTransform(o,t,e.options)}(e,t,n)},remove:function(){!function(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t)}(e)}}}},113:t=>{t.exports=function(t,e){if(e.styleSheet)e.styleSheet.cssText=t;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(t))}}}},e={};function n(o){var i=e[o];if(void 0!==i)return i.exports;var r=e[o]={id:o,exports:{}};return t[o](r,r.exports,n),r.exports}n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var o in e)n.o(e,o)&&!n.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.nc=void 0;var o=n(72),i=n.n(o),r=n(825),l=n.n(r),a=n(659),c=n.n(a),s=n(56),u=n.n(s),f=n(540),d=n.n(f),p=n(113),h=n.n(p),m=n(426),g={};g.styleTagTransform=h(),g.setAttributes=u(),g.insert=c().bind(null,"head"),g.domAPI=l(),g.insertStyleElement=d(),i()(m.A,g),m.A&&m.A.locals&&m.A.locals;const y=Math.min,v=Math.max,x=Math.round,w=Math.floor,b=t=>({x:t,y:t}),A={left:"right",right:"left",bottom:"top",top:"bottom"},T={start:"end",end:"start"};function R(t,e,n){return v(t,y(e,n))}function E(t,e){return"function"==typeof t?t(e):t}function L(t){return t.split("-")[0]}function S(t){return t.split("-")[1]}function _(t){return"x"===t?"y":"x"}function C(t){return"y"===t?"height":"width"}function O(t){return["top","bottom"].includes(L(t))?"y":"x"}function k(t){return _(O(t))}function D(t){return t.replace(/start|end/g,(t=>T[t]))}function P(t){return t.replace(/left|right|bottom|top/g,(t=>A[t]))}function M(t){const{x:e,y:n,width:o,height:i}=t;return{width:o,height:i,top:n,left:e,right:e+o,bottom:n+i,x:e,y:n}}function F(t,e,n){let{reference:o,floating:i}=t;const r=O(e),l=k(e),a=C(l),c=L(e),s="y"===r,u=o.x+o.width/2-i.width/2,f=o.y+o.height/2-i.height/2,d=o[a]/2-i[a]/2;let p;switch(c){case"top":p={x:u,y:o.y-i.height};break;case"bottom":p={x:u,y:o.y+o.height};break;case"right":p={x:o.x+o.width,y:f};break;case"left":p={x:o.x-i.width,y:f};break;default:p={x:o.x,y:o.y}}switch(S(e)){case"start":p[l]-=d*(n&&s?-1:1);break;case"end":p[l]+=d*(n&&s?-1:1)}return p}async function H(t,e){var n;void 0===e&&(e={});const{x:o,y:i,platform:r,rects:l,elements:a,strategy:c}=t,{boundary:s="clippingAncestors",rootBoundary:u="viewport",elementContext:f="floating",altBoundary:d=!1,padding:p=0}=E(e,t),h=function(t){return"number"!=typeof t?function(t){return{top:0,right:0,bottom:0,left:0,...t}}(t):{top:t,right:t,bottom:t,left:t}}(p),m=a[d?"floating"===f?"reference":"floating":f],g=M(await r.getClippingRect({element:null==(n=await(null==r.isElement?void 0:r.isElement(m)))||n?m:m.contextElement||await(null==r.getDocumentElement?void 0:r.getDocumentElement(a.floating)),boundary:s,rootBoundary:u,strategy:c})),y="floating"===f?{x:o,y:i,width:l.floating.width,height:l.floating.height}:l.reference,v=await(null==r.getOffsetParent?void 0:r.getOffsetParent(a.floating)),x=await(null==r.isElement?void 0:r.isElement(v))&&await(null==r.getScale?void 0:r.getScale(v))||{x:1,y:1},w=M(r.convertOffsetParentRelativeRectToViewportRelativeRect?await r.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:y,offsetParent:v,strategy:c}):y);return{top:(g.top-w.top+h.top)/x.y,bottom:(w.bottom-g.bottom+h.bottom)/x.y,left:(g.left-w.left+h.left)/x.x,right:(w.right-g.right+h.right)/x.x}}function N(){return"undefined"!=typeof window}function I(t){return B(t)?(t.nodeName||"").toLowerCase():"#document"}function j(t){var e;return(null==t||null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function W(t){var e;return null==(e=(B(t)?t.ownerDocument:t.document)||window.document)?void 0:e.documentElement}function B(t){return!!N()&&(t instanceof Node||t instanceof j(t).Node)}function V(t){return!!N()&&(t instanceof Element||t instanceof j(t).Element)}function z(t){return!!N()&&(t instanceof HTMLElement||t instanceof j(t).HTMLElement)}function q(t){return!(!N()||"undefined"==typeof ShadowRoot)&&(t instanceof ShadowRoot||t instanceof j(t).ShadowRoot)}function U(t){const{overflow:e,overflowX:n,overflowY:o,display:i}=K(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+n)&&!["inline","contents"].includes(i)}function $(t){return["table","td","th"].includes(I(t))}function X(t){return[":popover-open",":modal"].some((e=>{try{return t.matches(e)}catch(t){return!1}}))}function Y(t){const e=J(),n=V(t)?K(t):t;return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!e&&!!n.backdropFilter&&"none"!==n.backdropFilter||!e&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some((t=>(n.willChange||"").includes(t)))||["paint","layout","strict","content"].some((t=>(n.contain||"").includes(t)))}function J(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function G(t){return["html","body","#document"].includes(I(t))}function K(t){return j(t).getComputedStyle(t)}function Q(t){return V(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function Z(t){if("html"===I(t))return t;const e=t.assignedSlot||t.parentNode||q(t)&&t.host||W(t);return q(e)?e.host:e}function tt(t){const e=Z(t);return G(e)?t.ownerDocument?t.ownerDocument.body:t.body:z(e)&&U(e)?e:tt(e)}function et(t,e,n){var o;void 0===e&&(e=[]),void 0===n&&(n=!0);const i=tt(t),r=i===(null==(o=t.ownerDocument)?void 0:o.body),l=j(i);if(r){const t=nt(l);return e.concat(l,l.visualViewport||[],U(i)?i:[],t&&n?et(t):[])}return e.concat(i,et(i,[],n))}function nt(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function ot(t){const e=K(t);let n=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const i=z(t),r=i?t.offsetWidth:n,l=i?t.offsetHeight:o,a=x(n)!==r||x(o)!==l;return a&&(n=r,o=l),{width:n,height:o,$:a}}function it(t){return V(t)?t:t.contextElement}function rt(t){const e=it(t);if(!z(e))return b(1);const n=e.getBoundingClientRect(),{width:o,height:i,$:r}=ot(e);let l=(r?x(n.width):n.width)/o,a=(r?x(n.height):n.height)/i;return l&&Number.isFinite(l)||(l=1),a&&Number.isFinite(a)||(a=1),{x:l,y:a}}const lt=b(0);function at(t){const e=j(t);return J()&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:lt}function ct(t,e,n,o){void 0===e&&(e=!1),void 0===n&&(n=!1);const i=t.getBoundingClientRect(),r=it(t);let l=b(1);e&&(o?V(o)&&(l=rt(o)):l=rt(t));const a=function(t,e,n){return void 0===e&&(e=!1),!(!n||e&&n!==j(t))&&e}(r,n,o)?at(r):b(0);let c=(i.left+a.x)/l.x,s=(i.top+a.y)/l.y,u=i.width/l.x,f=i.height/l.y;if(r){const t=j(r),e=o&&V(o)?j(o):o;let n=t,i=nt(n);for(;i&&o&&e!==n;){const t=rt(i),e=i.getBoundingClientRect(),o=K(i),r=e.left+(i.clientLeft+parseFloat(o.paddingLeft))*t.x,l=e.top+(i.clientTop+parseFloat(o.paddingTop))*t.y;c*=t.x,s*=t.y,u*=t.x,f*=t.y,c+=r,s+=l,n=j(i),i=nt(n)}}return M({width:u,height:f,x:c,y:s})}function st(t,e){const n=Q(t).scrollLeft;return e?e.left+n:ct(W(t)).left+n}function ut(t,e,n){void 0===n&&(n=!1);const o=t.getBoundingClientRect();return{x:o.left+e.scrollLeft-(n?0:st(t,o)),y:o.top+e.scrollTop}}function ft(t,e,n){let o;if("viewport"===e)o=function(t,e){const n=j(t),o=W(t),i=n.visualViewport;let r=o.clientWidth,l=o.clientHeight,a=0,c=0;if(i){r=i.width,l=i.height;const t=J();(!t||t&&"fixed"===e)&&(a=i.offsetLeft,c=i.offsetTop)}return{width:r,height:l,x:a,y:c}}(t,n);else if("document"===e)o=function(t){const e=W(t),n=Q(t),o=t.ownerDocument.body,i=v(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),r=v(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight);let l=-n.scrollLeft+st(t);const a=-n.scrollTop;return"rtl"===K(o).direction&&(l+=v(e.clientWidth,o.clientWidth)-i),{width:i,height:r,x:l,y:a}}(W(t));else if(V(e))o=function(t,e){const n=ct(t,!0,"fixed"===e),o=n.top+t.clientTop,i=n.left+t.clientLeft,r=z(t)?rt(t):b(1);return{width:t.clientWidth*r.x,height:t.clientHeight*r.y,x:i*r.x,y:o*r.y}}(e,n);else{const n=at(t);o={x:e.x-n.x,y:e.y-n.y,width:e.width,height:e.height}}return M(o)}function dt(t,e){const n=Z(t);return!(n===e||!V(n)||G(n))&&("fixed"===K(n).position||dt(n,e))}function pt(t,e,n){const o=z(e),i=W(e),r="fixed"===n,l=ct(t,!0,r,e);let a={scrollLeft:0,scrollTop:0};const c=b(0);if(o||!o&&!r)if(("body"!==I(e)||U(i))&&(a=Q(e)),o){const t=ct(e,!0,r,e);c.x=t.x+e.clientLeft,c.y=t.y+e.clientTop}else i&&(c.x=st(i));const s=!i||o||r?b(0):ut(i,a);return{x:l.left+a.scrollLeft-c.x-s.x,y:l.top+a.scrollTop-c.y-s.y,width:l.width,height:l.height}}function ht(t){return"static"===K(t).position}function mt(t,e){if(!z(t)||"fixed"===K(t).position)return null;if(e)return e(t);let n=t.offsetParent;return W(t)===n&&(n=n.ownerDocument.body),n}function gt(t,e){const n=j(t);if(X(t))return n;if(!z(t)){let e=Z(t);for(;e&&!G(e);){if(V(e)&&!ht(e))return e;e=Z(e)}return n}let o=mt(t,e);for(;o&&$(o)&&ht(o);)o=mt(o,e);return o&&G(o)&&ht(o)&&!Y(o)?n:o||function(t){let e=Z(t);for(;z(e)&&!G(e);){if(Y(e))return e;if(X(e))return null;e=Z(e)}return null}(t)||n}const yt={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{elements:e,rect:n,offsetParent:o,strategy:i}=t;const r="fixed"===i,l=W(o),a=!!e&&X(e.floating);if(o===l||a&&r)return n;let c={scrollLeft:0,scrollTop:0},s=b(1);const u=b(0),f=z(o);if((f||!f&&!r)&&(("body"!==I(o)||U(l))&&(c=Q(o)),z(o))){const t=ct(o);s=rt(o),u.x=t.x+o.clientLeft,u.y=t.y+o.clientTop}const d=!l||f||r?b(0):ut(l,c,!0);return{width:n.width*s.x,height:n.height*s.y,x:n.x*s.x-c.scrollLeft*s.x+u.x+d.x,y:n.y*s.y-c.scrollTop*s.y+u.y+d.y}},getDocumentElement:W,getClippingRect:function(t){let{element:e,boundary:n,rootBoundary:o,strategy:i}=t;const r=[..."clippingAncestors"===n?X(e)?[]:function(t,e){const n=e.get(t);if(n)return n;let o=et(t,[],!1).filter((t=>V(t)&&"body"!==I(t))),i=null;const r="fixed"===K(t).position;let l=r?Z(t):t;for(;V(l)&&!G(l);){const e=K(l),n=Y(l);n||"fixed"!==e.position||(i=null),(r?!n&&!i:!n&&"static"===e.position&&i&&["absolute","fixed"].includes(i.position)||U(l)&&!n&&dt(t,l))?o=o.filter((t=>t!==l)):i=e,l=Z(l)}return e.set(t,o),o}(e,this._c):[].concat(n),o],l=r[0],a=r.reduce(((t,n)=>{const o=ft(e,n,i);return t.top=v(o.top,t.top),t.right=y(o.right,t.right),t.bottom=y(o.bottom,t.bottom),t.left=v(o.left,t.left),t}),ft(e,l,i));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}},getOffsetParent:gt,getElementRects:async function(t){const e=this.getOffsetParent||gt,n=this.getDimensions,o=await n(t.floating);return{reference:pt(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}},getClientRects:function(t){return Array.from(t.getClientRects())},getDimensions:function(t){const{width:e,height:n}=ot(t);return{width:e,height:n}},getScale:rt,isElement:V,isRTL:function(t){return"rtl"===K(t).direction}};const vt=function(t){return void 0===t&&(t=0),{name:"offset",options:t,async fn(e){var n,o;const{x:i,y:r,placement:l,middlewareData:a}=e,c=await async function(t,e){const{placement:n,platform:o,elements:i}=t,r=await(null==o.isRTL?void 0:o.isRTL(i.floating)),l=L(n),a=S(n),c="y"===O(n),s=["left","top"].includes(l)?-1:1,u=r&&c?-1:1,f=E(e,t);let{mainAxis:d,crossAxis:p,alignmentAxis:h}="number"==typeof f?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return a&&"number"==typeof h&&(p="end"===a?-1*h:h),c?{x:p*u,y:d*s}:{x:d*s,y:p*u}}(e,t);return l===(null==(n=a.offset)?void 0:n.placement)&&null!=(o=a.arrow)&&o.alignmentOffset?{}:{x:i+c.x,y:r+c.y,data:{...c,placement:l}}}}},xt=function(t){return void 0===t&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:o,placement:i}=e,{mainAxis:r=!0,crossAxis:l=!1,limiter:a={fn:t=>{let{x:e,y:n}=t;return{x:e,y:n}}},...c}=E(t,e),s={x:n,y:o},u=await H(e,c),f=O(L(i)),d=_(f);let p=s[d],h=s[f];if(r){const t="y"===d?"bottom":"right";p=R(p+u["y"===d?"top":"left"],p,p-u[t])}if(l){const t="y"===f?"bottom":"right";h=R(h+u["y"===f?"top":"left"],h,h-u[t])}const m=a.fn({...e,[d]:p,[f]:h});return{...m,data:{x:m.x-n,y:m.y-o,enabled:{[d]:r,[f]:l}}}}}},wt=function(t){return void 0===t&&(t={}),{name:"flip",options:t,async fn(e){var n,o;const{placement:i,middlewareData:r,rects:l,initialPlacement:a,platform:c,elements:s}=e,{mainAxis:u=!0,crossAxis:f=!0,fallbackPlacements:d,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:m=!0,...g}=E(t,e);if(null!=(n=r.arrow)&&n.alignmentOffset)return{};const y=L(i),v=O(a),x=L(a)===a,w=await(null==c.isRTL?void 0:c.isRTL(s.floating)),b=d||(x||!m?[P(a)]:function(t){const e=P(t);return[D(t),e,D(e)]}(a)),A="none"!==h;!d&&A&&b.push(...function(t,e,n,o){const i=S(t);let r=function(t,e,n){const o=["left","right"],i=["right","left"],r=["top","bottom"],l=["bottom","top"];switch(t){case"top":case"bottom":return n?e?i:o:e?o:i;case"left":case"right":return e?r:l;default:return[]}}(L(t),"start"===n,o);return i&&(r=r.map((t=>t+"-"+i)),e&&(r=r.concat(r.map(D)))),r}(a,m,h,w));const T=[a,...b],R=await H(e,g),_=[];let M=(null==(o=r.flip)?void 0:o.overflows)||[];if(u&&_.push(R[y]),f){const t=function(t,e,n){void 0===n&&(n=!1);const o=S(t),i=k(t),r=C(i);let l="x"===i?o===(n?"end":"start")?"right":"left":"start"===o?"bottom":"top";return e.reference[r]>e.floating[r]&&(l=P(l)),[l,P(l)]}(i,l,w);_.push(R[t[0]],R[t[1]])}if(M=[...M,{placement:i,overflows:_}],!_.every((t=>t<=0))){var F,N;const t=((null==(F=r.flip)?void 0:F.index)||0)+1,e=T[t];if(e)return{data:{index:t,overflows:M},reset:{placement:e}};let n=null==(N=M.filter((t=>t.overflows[0]<=0)).sort(((t,e)=>t.overflows[1]-e.overflows[1]))[0])?void 0:N.placement;if(!n)switch(p){case"bestFit":{var I;const t=null==(I=M.filter((t=>{if(A){const e=O(t.placement);return e===v||"y"===e}return!0})).map((t=>[t.placement,t.overflows.filter((t=>t>0)).reduce(((t,e)=>t+e),0)])).sort(((t,e)=>t[1]-e[1]))[0])?void 0:I[0];t&&(n=t);break}case"initialPlacement":n=a}if(i!==n)return{reset:{placement:n}}}return{}}}};function bt(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,o=Array(e);n\n ';var n=e.querySelector(".rich-tooltip__content-wrapper");t.appendChild(e);var o,i,r,l=t.dataset.image,a=t.dataset.video,c=t.dataset.text;function s(){((t,e,n)=>{const o=new Map,i={platform:yt,...n},r={...i.platform,_c:o};return(async(t,e,n)=>{const{placement:o="bottom",strategy:i="absolute",middleware:r=[],platform:l}=n,a=r.filter(Boolean),c=await(null==l.isRTL?void 0:l.isRTL(e));let s=await l.getElementRects({reference:t,floating:e,strategy:i}),{x:u,y:f}=F(s,o,c),d=o,p={},h=0;for(let n=0;n{i&&t.addEventListener("scroll",n,{passive:!0}),r&&t.addEventListener("resize",n)}));const f=s&&a?function(t,e){let n,o=null;const i=W(t);function r(){var t;clearTimeout(n),null==(t=o)||t.disconnect(),o=null}return function l(a,c){void 0===a&&(a=!1),void 0===c&&(c=1),r();const{left:s,top:u,width:f,height:d}=t.getBoundingClientRect();if(a||e(),!f||!d)return;const p={rootMargin:-w(u)+"px "+-w(i.clientWidth-(s+f))+"px "+-w(i.clientHeight-(u+d))+"px "+-w(s)+"px",threshold:v(0,y(1,c))||1};let h=!0;function m(t){const e=t[0].intersectionRatio;if(e!==c){if(!h)return l();e?l(!1,e):n=setTimeout((()=>{l(!1,1e-7)}),1e3)}h=!1}try{o=new IntersectionObserver(m,{...p,root:i.ownerDocument})}catch(t){o=new IntersectionObserver(m,p)}o.observe(t)}(!0),r}(s,n):null;let d,p=-1,h=null;l&&(h=new ResizeObserver((t=>{let[o]=t;o&&o.target===s&&h&&(h.unobserve(e),cancelAnimationFrame(p),p=requestAnimationFrame((()=>{var t;null==(t=h)||t.observe(e)}))),n()})),s&&!c&&h.observe(s),h.observe(e));let m=c?ct(t):null;c&&function e(){const o=ct(t);!m||o.x===m.x&&o.y===m.y&&o.width===m.width&&o.height===m.height||n(),m=o,d=requestAnimationFrame(e)}(),n()}(t,e,s)}))})(); \ No newline at end of file +(()=>{"use strict";var t={426:(t,e,n)=>{n.d(e,{A:()=>a});var o=n(601),i=n.n(o),r=n(314),l=n.n(r)()(i());l.push([t.id,"[data-tooltip] {\n position: relative;\n cursor: help;\n}\n\n.rich-tooltip__content {\n opacity: 0;\n visibility: hidden;\n transition: opacity 0.3s ease, visibility 0s linear 0.3s;\n width: max-content;\n height: auto;\n position: absolute;\n top: 0;\n left: 0;\n background: #222;\n color: white;\n font-weight: bold;\n padding: 8px;\n border-radius: 16px;\n font-size: 90%;\n z-index: 9999;\n user-select: none;\n pointer-events: none;\n box-shadow: 0 5px 5px rgb(86 86 86 / 10%), 0 10px 20px rgb(110 110 110 / 5%);\n}\n\n.rich-tooltip__content.show {\n opacity: 1;\n visibility: visible;\n transition: opacity 0.3s ease, visibility 0s linear 0s;\n}\n\n[data-tooltip][data-video] .rich-tooltip__content-wrapper,\n[data-tooltip][data-image] .rich-tooltip__content-wrapper {\n width: 500px;\n height: auto;\n}\n\n.rich-tooltip__content-wrapper img,\n.rich-tooltip__content-wrapper video {\n max-width: 100%;\n height: auto;\n border-radius: 8px;\n display: none;\n}\n\n.rich-tooltip__text-content:has(+ *) {\n margin-bottom: 8px;\n display: block;\n text-align: left;\n}\n\n/* Loading animation */\n.rich-tooltip__placeholder {\n position: relative;\n height: 250px;\n width: 400px;\n background-color: rgb(25, 25, 25);\n overflow: hidden;\n border-radius: 8px;\n}\n\n.rich-tooltip__placeholder::after {\n content: '';\n position: absolute;\n left: -45%;\n height: 100%;\n width: 45%;\n background-image: linear-gradient(to left, rgba(48, 48, 48, 0.05), rgba(29, 29, 29, 0.3), rgba(37, 37, 37, 0.6), rgba(29, 29, 29, 0.3), rgba(48, 48, 48, 0.05));\n animation: loading 1s infinite;\n z-index: 1;\n}\n\n@keyframes loading {\n 0% {\n left: -45%;\n }\n\n 100% {\n left: 100%;\n }\n}",""]);const a=l},314:t=>{t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n="",o=void 0!==e[5];return e[4]&&(n+="@supports (".concat(e[4],") {")),e[2]&&(n+="@media ".concat(e[2]," {")),o&&(n+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),n+=t(e),o&&(n+="}"),e[2]&&(n+="}"),e[4]&&(n+="}"),n})).join("")},e.i=function(t,n,o,i,r){"string"==typeof t&&(t=[[null,t,void 0]]);var l={};if(o)for(var a=0;a0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=r),n&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=n):u[2]=n),i&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=i):u[4]="".concat(i)),e.push(u))}},e}},601:t=>{t.exports=function(t){return t[1]}},72:t=>{var e=[];function n(t){for(var n=-1,o=0;o{var e={};t.exports=function(t,n){var o=function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(t){n=null}e[t]=n}return e[t]}(t);if(!o)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");o.appendChild(n)}},540:t=>{t.exports=function(t){var e=document.createElement("style");return t.setAttributes(e,t.attributes),t.insert(e,t.options),e}},56:(t,e,n)=>{t.exports=function(t){var e=n.nc;e&&t.setAttribute("nonce",e)}},825:t=>{t.exports=function(t){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var e=t.insertStyleElement(t);return{update:function(n){!function(t,e,n){var o="";n.supports&&(o+="@supports (".concat(n.supports,") {")),n.media&&(o+="@media ".concat(n.media," {"));var i=void 0!==n.layer;i&&(o+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),o+=n.css,i&&(o+="}"),n.media&&(o+="}"),n.supports&&(o+="}");var r=n.sourceMap;r&&"undefined"!=typeof btoa&&(o+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(r))))," */")),e.styleTagTransform(o,t,e.options)}(e,t,n)},remove:function(){!function(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t)}(e)}}}},113:t=>{t.exports=function(t,e){if(e.styleSheet)e.styleSheet.cssText=t;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(t))}}}},e={};function n(o){var i=e[o];if(void 0!==i)return i.exports;var r=e[o]={id:o,exports:{}};return t[o](r,r.exports,n),r.exports}n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var o in e)n.o(e,o)&&!n.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.nc=void 0;var o=n(72),i=n.n(o),r=n(825),l=n.n(r),a=n(659),c=n.n(a),s=n(56),u=n.n(s),f=n(540),d=n.n(f),p=n(113),h=n.n(p),m=n(426),g={};g.styleTagTransform=h(),g.setAttributes=u(),g.insert=c().bind(null,"head"),g.domAPI=l(),g.insertStyleElement=d(),i()(m.A,g),m.A&&m.A.locals&&m.A.locals;const y=Math.min,v=Math.max,x=Math.round,w=Math.floor,b=t=>({x:t,y:t}),A={left:"right",right:"left",bottom:"top",top:"bottom"},T={start:"end",end:"start"};function R(t,e,n){return v(t,y(e,n))}function L(t,e){return"function"==typeof t?t(e):t}function E(t){return t.split("-")[0]}function S(t){return t.split("-")[1]}function _(t){return"x"===t?"y":"x"}function C(t){return"y"===t?"height":"width"}function O(t){return["top","bottom"].includes(E(t))?"y":"x"}function k(t){return _(O(t))}function D(t){return t.replace(/start|end/g,(t=>T[t]))}function M(t){return t.replace(/left|right|bottom|top/g,(t=>A[t]))}function P(t){const{x:e,y:n,width:o,height:i}=t;return{width:o,height:i,top:n,left:e,right:e+o,bottom:n+i,x:e,y:n}}function F(t,e,n){let{reference:o,floating:i}=t;const r=O(e),l=k(e),a=C(l),c=E(e),s="y"===r,u=o.x+o.width/2-i.width/2,f=o.y+o.height/2-i.height/2,d=o[a]/2-i[a]/2;let p;switch(c){case"top":p={x:u,y:o.y-i.height};break;case"bottom":p={x:u,y:o.y+o.height};break;case"right":p={x:o.x+o.width,y:f};break;case"left":p={x:o.x-i.width,y:f};break;default:p={x:o.x,y:o.y}}switch(S(e)){case"start":p[l]-=d*(n&&s?-1:1);break;case"end":p[l]+=d*(n&&s?-1:1)}return p}async function H(t,e){var n;void 0===e&&(e={});const{x:o,y:i,platform:r,rects:l,elements:a,strategy:c}=t,{boundary:s="clippingAncestors",rootBoundary:u="viewport",elementContext:f="floating",altBoundary:d=!1,padding:p=0}=L(e,t),h=function(t){return"number"!=typeof t?function(t){return{top:0,right:0,bottom:0,left:0,...t}}(t):{top:t,right:t,bottom:t,left:t}}(p),m=a[d?"floating"===f?"reference":"floating":f],g=P(await r.getClippingRect({element:null==(n=await(null==r.isElement?void 0:r.isElement(m)))||n?m:m.contextElement||await(null==r.getDocumentElement?void 0:r.getDocumentElement(a.floating)),boundary:s,rootBoundary:u,strategy:c})),y="floating"===f?{x:o,y:i,width:l.floating.width,height:l.floating.height}:l.reference,v=await(null==r.getOffsetParent?void 0:r.getOffsetParent(a.floating)),x=await(null==r.isElement?void 0:r.isElement(v))&&await(null==r.getScale?void 0:r.getScale(v))||{x:1,y:1},w=P(r.convertOffsetParentRelativeRectToViewportRelativeRect?await r.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:y,offsetParent:v,strategy:c}):y);return{top:(g.top-w.top+h.top)/x.y,bottom:(w.bottom-g.bottom+h.bottom)/x.y,left:(g.left-w.left+h.left)/x.x,right:(w.right-g.right+h.right)/x.x}}function N(){return"undefined"!=typeof window}function I(t){return B(t)?(t.nodeName||"").toLowerCase():"#document"}function j(t){var e;return(null==t||null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function W(t){var e;return null==(e=(B(t)?t.ownerDocument:t.document)||window.document)?void 0:e.documentElement}function B(t){return!!N()&&(t instanceof Node||t instanceof j(t).Node)}function V(t){return!!N()&&(t instanceof Element||t instanceof j(t).Element)}function z(t){return!!N()&&(t instanceof HTMLElement||t instanceof j(t).HTMLElement)}function q(t){return!(!N()||"undefined"==typeof ShadowRoot)&&(t instanceof ShadowRoot||t instanceof j(t).ShadowRoot)}function U(t){const{overflow:e,overflowX:n,overflowY:o,display:i}=K(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+n)&&!["inline","contents"].includes(i)}function $(t){return["table","td","th"].includes(I(t))}function X(t){return[":popover-open",":modal"].some((e=>{try{return t.matches(e)}catch(t){return!1}}))}function Y(t){const e=J(),n=V(t)?K(t):t;return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!e&&!!n.backdropFilter&&"none"!==n.backdropFilter||!e&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some((t=>(n.willChange||"").includes(t)))||["paint","layout","strict","content"].some((t=>(n.contain||"").includes(t)))}function J(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function G(t){return["html","body","#document"].includes(I(t))}function K(t){return j(t).getComputedStyle(t)}function Q(t){return V(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function Z(t){if("html"===I(t))return t;const e=t.assignedSlot||t.parentNode||q(t)&&t.host||W(t);return q(e)?e.host:e}function tt(t){const e=Z(t);return G(e)?t.ownerDocument?t.ownerDocument.body:t.body:z(e)&&U(e)?e:tt(e)}function et(t,e,n){var o;void 0===e&&(e=[]),void 0===n&&(n=!0);const i=tt(t),r=i===(null==(o=t.ownerDocument)?void 0:o.body),l=j(i);if(r){const t=nt(l);return e.concat(l,l.visualViewport||[],U(i)?i:[],t&&n?et(t):[])}return e.concat(i,et(i,[],n))}function nt(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function ot(t){const e=K(t);let n=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const i=z(t),r=i?t.offsetWidth:n,l=i?t.offsetHeight:o,a=x(n)!==r||x(o)!==l;return a&&(n=r,o=l),{width:n,height:o,$:a}}function it(t){return V(t)?t:t.contextElement}function rt(t){const e=it(t);if(!z(e))return b(1);const n=e.getBoundingClientRect(),{width:o,height:i,$:r}=ot(e);let l=(r?x(n.width):n.width)/o,a=(r?x(n.height):n.height)/i;return l&&Number.isFinite(l)||(l=1),a&&Number.isFinite(a)||(a=1),{x:l,y:a}}const lt=b(0);function at(t){const e=j(t);return J()&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:lt}function ct(t,e,n,o){void 0===e&&(e=!1),void 0===n&&(n=!1);const i=t.getBoundingClientRect(),r=it(t);let l=b(1);e&&(o?V(o)&&(l=rt(o)):l=rt(t));const a=function(t,e,n){return void 0===e&&(e=!1),!(!n||e&&n!==j(t))&&e}(r,n,o)?at(r):b(0);let c=(i.left+a.x)/l.x,s=(i.top+a.y)/l.y,u=i.width/l.x,f=i.height/l.y;if(r){const t=j(r),e=o&&V(o)?j(o):o;let n=t,i=nt(n);for(;i&&o&&e!==n;){const t=rt(i),e=i.getBoundingClientRect(),o=K(i),r=e.left+(i.clientLeft+parseFloat(o.paddingLeft))*t.x,l=e.top+(i.clientTop+parseFloat(o.paddingTop))*t.y;c*=t.x,s*=t.y,u*=t.x,f*=t.y,c+=r,s+=l,n=j(i),i=nt(n)}}return P({width:u,height:f,x:c,y:s})}function st(t,e){const n=Q(t).scrollLeft;return e?e.left+n:ct(W(t)).left+n}function ut(t,e,n){void 0===n&&(n=!1);const o=t.getBoundingClientRect();return{x:o.left+e.scrollLeft-(n?0:st(t,o)),y:o.top+e.scrollTop}}function ft(t,e,n){let o;if("viewport"===e)o=function(t,e){const n=j(t),o=W(t),i=n.visualViewport;let r=o.clientWidth,l=o.clientHeight,a=0,c=0;if(i){r=i.width,l=i.height;const t=J();(!t||t&&"fixed"===e)&&(a=i.offsetLeft,c=i.offsetTop)}return{width:r,height:l,x:a,y:c}}(t,n);else if("document"===e)o=function(t){const e=W(t),n=Q(t),o=t.ownerDocument.body,i=v(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),r=v(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight);let l=-n.scrollLeft+st(t);const a=-n.scrollTop;return"rtl"===K(o).direction&&(l+=v(e.clientWidth,o.clientWidth)-i),{width:i,height:r,x:l,y:a}}(W(t));else if(V(e))o=function(t,e){const n=ct(t,!0,"fixed"===e),o=n.top+t.clientTop,i=n.left+t.clientLeft,r=z(t)?rt(t):b(1);return{width:t.clientWidth*r.x,height:t.clientHeight*r.y,x:i*r.x,y:o*r.y}}(e,n);else{const n=at(t);o={x:e.x-n.x,y:e.y-n.y,width:e.width,height:e.height}}return P(o)}function dt(t,e){const n=Z(t);return!(n===e||!V(n)||G(n))&&("fixed"===K(n).position||dt(n,e))}function pt(t,e,n){const o=z(e),i=W(e),r="fixed"===n,l=ct(t,!0,r,e);let a={scrollLeft:0,scrollTop:0};const c=b(0);if(o||!o&&!r)if(("body"!==I(e)||U(i))&&(a=Q(e)),o){const t=ct(e,!0,r,e);c.x=t.x+e.clientLeft,c.y=t.y+e.clientTop}else i&&(c.x=st(i));const s=!i||o||r?b(0):ut(i,a);return{x:l.left+a.scrollLeft-c.x-s.x,y:l.top+a.scrollTop-c.y-s.y,width:l.width,height:l.height}}function ht(t){return"static"===K(t).position}function mt(t,e){if(!z(t)||"fixed"===K(t).position)return null;if(e)return e(t);let n=t.offsetParent;return W(t)===n&&(n=n.ownerDocument.body),n}function gt(t,e){const n=j(t);if(X(t))return n;if(!z(t)){let e=Z(t);for(;e&&!G(e);){if(V(e)&&!ht(e))return e;e=Z(e)}return n}let o=mt(t,e);for(;o&&$(o)&&ht(o);)o=mt(o,e);return o&&G(o)&&ht(o)&&!Y(o)?n:o||function(t){let e=Z(t);for(;z(e)&&!G(e);){if(Y(e))return e;if(X(e))return null;e=Z(e)}return null}(t)||n}const yt={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{elements:e,rect:n,offsetParent:o,strategy:i}=t;const r="fixed"===i,l=W(o),a=!!e&&X(e.floating);if(o===l||a&&r)return n;let c={scrollLeft:0,scrollTop:0},s=b(1);const u=b(0),f=z(o);if((f||!f&&!r)&&(("body"!==I(o)||U(l))&&(c=Q(o)),z(o))){const t=ct(o);s=rt(o),u.x=t.x+o.clientLeft,u.y=t.y+o.clientTop}const d=!l||f||r?b(0):ut(l,c,!0);return{width:n.width*s.x,height:n.height*s.y,x:n.x*s.x-c.scrollLeft*s.x+u.x+d.x,y:n.y*s.y-c.scrollTop*s.y+u.y+d.y}},getDocumentElement:W,getClippingRect:function(t){let{element:e,boundary:n,rootBoundary:o,strategy:i}=t;const r=[..."clippingAncestors"===n?X(e)?[]:function(t,e){const n=e.get(t);if(n)return n;let o=et(t,[],!1).filter((t=>V(t)&&"body"!==I(t))),i=null;const r="fixed"===K(t).position;let l=r?Z(t):t;for(;V(l)&&!G(l);){const e=K(l),n=Y(l);n||"fixed"!==e.position||(i=null),(r?!n&&!i:!n&&"static"===e.position&&i&&["absolute","fixed"].includes(i.position)||U(l)&&!n&&dt(t,l))?o=o.filter((t=>t!==l)):i=e,l=Z(l)}return e.set(t,o),o}(e,this._c):[].concat(n),o],l=r[0],a=r.reduce(((t,n)=>{const o=ft(e,n,i);return t.top=v(o.top,t.top),t.right=y(o.right,t.right),t.bottom=y(o.bottom,t.bottom),t.left=v(o.left,t.left),t}),ft(e,l,i));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}},getOffsetParent:gt,getElementRects:async function(t){const e=this.getOffsetParent||gt,n=this.getDimensions,o=await n(t.floating);return{reference:pt(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}},getClientRects:function(t){return Array.from(t.getClientRects())},getDimensions:function(t){const{width:e,height:n}=ot(t);return{width:e,height:n}},getScale:rt,isElement:V,isRTL:function(t){return"rtl"===K(t).direction}};const vt=function(t){return void 0===t&&(t=0),{name:"offset",options:t,async fn(e){var n,o;const{x:i,y:r,placement:l,middlewareData:a}=e,c=await async function(t,e){const{placement:n,platform:o,elements:i}=t,r=await(null==o.isRTL?void 0:o.isRTL(i.floating)),l=E(n),a=S(n),c="y"===O(n),s=["left","top"].includes(l)?-1:1,u=r&&c?-1:1,f=L(e,t);let{mainAxis:d,crossAxis:p,alignmentAxis:h}="number"==typeof f?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return a&&"number"==typeof h&&(p="end"===a?-1*h:h),c?{x:p*u,y:d*s}:{x:d*s,y:p*u}}(e,t);return l===(null==(n=a.offset)?void 0:n.placement)&&null!=(o=a.arrow)&&o.alignmentOffset?{}:{x:i+c.x,y:r+c.y,data:{...c,placement:l}}}}},xt=function(t){return void 0===t&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:o,placement:i}=e,{mainAxis:r=!0,crossAxis:l=!1,limiter:a={fn:t=>{let{x:e,y:n}=t;return{x:e,y:n}}},...c}=L(t,e),s={x:n,y:o},u=await H(e,c),f=O(E(i)),d=_(f);let p=s[d],h=s[f];if(r){const t="y"===d?"bottom":"right";p=R(p+u["y"===d?"top":"left"],p,p-u[t])}if(l){const t="y"===f?"bottom":"right";h=R(h+u["y"===f?"top":"left"],h,h-u[t])}const m=a.fn({...e,[d]:p,[f]:h});return{...m,data:{x:m.x-n,y:m.y-o,enabled:{[d]:r,[f]:l}}}}}},wt=function(t){return void 0===t&&(t={}),{name:"flip",options:t,async fn(e){var n,o;const{placement:i,middlewareData:r,rects:l,initialPlacement:a,platform:c,elements:s}=e,{mainAxis:u=!0,crossAxis:f=!0,fallbackPlacements:d,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:m=!0,...g}=L(t,e);if(null!=(n=r.arrow)&&n.alignmentOffset)return{};const y=E(i),v=O(a),x=E(a)===a,w=await(null==c.isRTL?void 0:c.isRTL(s.floating)),b=d||(x||!m?[M(a)]:function(t){const e=M(t);return[D(t),e,D(e)]}(a)),A="none"!==h;!d&&A&&b.push(...function(t,e,n,o){const i=S(t);let r=function(t,e,n){const o=["left","right"],i=["right","left"],r=["top","bottom"],l=["bottom","top"];switch(t){case"top":case"bottom":return n?e?i:o:e?o:i;case"left":case"right":return e?r:l;default:return[]}}(E(t),"start"===n,o);return i&&(r=r.map((t=>t+"-"+i)),e&&(r=r.concat(r.map(D)))),r}(a,m,h,w));const T=[a,...b],R=await H(e,g),_=[];let P=(null==(o=r.flip)?void 0:o.overflows)||[];if(u&&_.push(R[y]),f){const t=function(t,e,n){void 0===n&&(n=!1);const o=S(t),i=k(t),r=C(i);let l="x"===i?o===(n?"end":"start")?"right":"left":"start"===o?"bottom":"top";return e.reference[r]>e.floating[r]&&(l=M(l)),[l,M(l)]}(i,l,w);_.push(R[t[0]],R[t[1]])}if(P=[...P,{placement:i,overflows:_}],!_.every((t=>t<=0))){var F,N;const t=((null==(F=r.flip)?void 0:F.index)||0)+1,e=T[t];if(e)return{data:{index:t,overflows:P},reset:{placement:e}};let n=null==(N=P.filter((t=>t.overflows[0]<=0)).sort(((t,e)=>t.overflows[1]-e.overflows[1]))[0])?void 0:N.placement;if(!n)switch(p){case"bestFit":{var I;const t=null==(I=P.filter((t=>{if(A){const e=O(t.placement);return e===v||"y"===e}return!0})).map((t=>[t.placement,t.overflows.filter((t=>t>0)).reduce(((t,e)=>t+e),0)])).sort(((t,e)=>t[1]-e[1]))[0])?void 0:I[0];t&&(n=t);break}case"initialPlacement":n=a}if(i!==n)return{reset:{placement:n}}}return{}}}};function bt(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,o=Array(e);n\n ';var n=e.querySelector(".rich-tooltip__content-wrapper");t.appendChild(e);var o,i,r,l=t.dataset.image,a=t.dataset.video,c=t.dataset.text;function s(){((t,e,n)=>{const o=new Map,i={platform:yt,...n},r={...i.platform,_c:o};return(async(t,e,n)=>{const{placement:o="bottom",strategy:i="absolute",middleware:r=[],platform:l}=n,a=r.filter(Boolean),c=await(null==l.isRTL?void 0:l.isRTL(e));let s=await l.getElementRects({reference:t,floating:e,strategy:i}),{x:u,y:f}=F(s,o,c),d=o,p={},h=0;for(let n=0;n{i&&t.addEventListener("scroll",n,{passive:!0}),r&&t.addEventListener("resize",n)}));const f=s&&a?function(t,e){let n,o=null;const i=W(t);function r(){var t;clearTimeout(n),null==(t=o)||t.disconnect(),o=null}return function l(a,c){void 0===a&&(a=!1),void 0===c&&(c=1),r();const{left:s,top:u,width:f,height:d}=t.getBoundingClientRect();if(a||e(),!f||!d)return;const p={rootMargin:-w(u)+"px "+-w(i.clientWidth-(s+f))+"px "+-w(i.clientHeight-(u+d))+"px "+-w(s)+"px",threshold:v(0,y(1,c))||1};let h=!0;function m(t){const e=t[0].intersectionRatio;if(e!==c){if(!h)return l();e?l(!1,e):n=setTimeout((()=>{l(!1,1e-7)}),1e3)}h=!1}try{o=new IntersectionObserver(m,{...p,root:i.ownerDocument})}catch(t){o=new IntersectionObserver(m,p)}o.observe(t)}(!0),r}(s,n):null;let d,p=-1,h=null;l&&(h=new ResizeObserver((t=>{let[o]=t;o&&o.target===s&&h&&(h.unobserve(e),cancelAnimationFrame(p),p=requestAnimationFrame((()=>{var t;null==(t=h)||t.observe(e)}))),n()})),s&&!c&&h.observe(s),h.observe(e));let m=c?ct(t):null;c&&function e(){const o=ct(t);!m||o.x===m.x&&o.y===m.y&&o.width===m.width&&o.height===m.height||n(),m=o,d=requestAnimationFrame(e)}(),n()}(t,e,s)}))}))})(); \ No newline at end of file diff --git a/src/index.js b/src/index.js index 2a87f58..6acdc67 100644 --- a/src/index.js +++ b/src/index.js @@ -7,8 +7,7 @@ import { offset, flip, shift } from '@floating-ui/dom'; function isMobile() { return window.innerWidth <= 991; } - -(() => { +document.addEventListener('DOMContentLoaded', (evt) => { if (isMobile()) return; // Function to initialize tooltip for each button function createToolTip(button) { @@ -125,7 +124,10 @@ function isMobile() { // Initialize all tooltips document.querySelectorAll('[data-tooltip]').forEach(createToolTip); -})(); + + +}) +