PageSourceSearch

https://setapp.com/_next/static/chunks/758-17bc2e389b3b2dcc.js

js setapp.com collected 2026-09-24 15:28:46 UTC 40,746 bytes, 1 lines download raw bytes

1!function(){try{var e="u">typeof window?window:"u">typeof global?global:"u">typeof globalThis?globalThis:"u">typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="b3aec68f-2845-41ad-9db0-22f87e360b86",e._sentryDebugIdIdentifier="sentry-dbid-b3aec68f-2845-41ad-9db0-22f87e360b86")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[758],{4275:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(57732);let i=(e=!1)=>{let[t,r]=(0,n.useState)(e),i=(0,n.useCallback)(()=>{r(!0)},[]);return[t,{on:i,off:(0,n.useCallback)(()=>{r(!1)},[]),toggle:(0,n.useCallback)(()=>{r(e=>!e)},[])}]}},17707:(e,t,r)=>{"use strict";r.d(t,{Qg:()=>l,bL:()=>a});var n=r(57732),i=r(66502),o=r(21928),l=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),s=n.forwardRef((e,t)=>(0,o.jsx)(i.sG.span,{...e,ref:t,style:{...l,...e.style}}));s.displayName="VisuallyHidden";var a=s},54281:(e,t,r)=>{"use strict";r.d(t,{P:()=>i,b:()=>n});let n=(e,t)=>{if(e){if("function"==typeof e)return void e(t);try{Object.assign(e,{current:t})}catch{throw Error(`Cannot assign value '${t}' to ref '${JSON.stringify(e)}'`)}}},i=(...e)=>t=>{e.forEach(e=>{n(e,t)})}},57223:e=>{e.exports={content:"tooltip_content__pGvYX",fadeIn:"tooltip_fadeIn__sqlAV",fadeOut:"tooltip_fadeOut__mT4hW",arrow:"tooltip_arrow__ZCYrV"}},60954:(e,t,r)=>{"use strict";r.d(t,{jH:()=>o});var n=r(57732);r(21928);var i=n.createContext(void 0);function o(e){let t=n.useContext(i);return e||t||"ltr"}},85801:(e,t,r)=>{"use strict";r.d(t,{N:()=>a});var n=r(57732),i=r(54645),o=r(48593),l=r(77551),s=r(21928);function a(e){let t=e+"CollectionProvider",[r,a]=(0,i.A)(t),[f,u]=r(t,{collectionRef:{current:null},itemMap:new Map}),c=e=>{let{scope:t,children:r}=e,i=n.useRef(null),o=n.useRef(new Map).current;return(0,s.jsx)(f,{scope:t,itemMap:o,collectionRef:i,children:r})};c.displayName=t;let d=e+"CollectionSlot",p=(0,l.TL)(d),h=n.forwardRef((e,t)=>{let{scope:r,children:n}=e,i=u(d,r),l=(0,o.s)(t,i.collectionRef);return(0,s.jsx)(p,{ref:l,children:n})});h.displayName=d;let g=e+"CollectionItemSlot",m="data-radix-collection-item",y=(0,l.TL)(g),x=n.forwardRef((e,t)=>{let{scope:r,children:i,...l}=e,a=n.useRef(null),f=(0,o.s)(t,a),c=u(g,r);return n.useEffect(()=>(c.itemMap.set(a,{ref:a,...l}),()=>void c.itemMap.delete(a))),(0,s.jsx)(y,{...{[m]:""},ref:f,children:i})});return x.displayName=g,[{Provider:c,Slot:h,ItemSlot:x},function(t){let r=u(e+"CollectionConsumer",t);return n.useCallback(()=>{let e=r.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${m}]`));return Array.from(r.itemMap.values()).sort((e,r)=>t.indexOf(e.ref.current)-t.indexOf(r.ref.current))},[r.collectionRef,r.itemMap])},a]}var f=new WeakMap;function u(e,t){var r,n;let i,o,l;if("at"in Array.prototype)return Array.prototype.at.call(e,t);let s=(r=e,n=t,i=r.length,(l=(o=c(n))>=0?o:i+o)<0||l>=i?-1:l);return -1===s?void 0:e[s]}function c(e){return e!=e||0===e?0:Math.trunc(e)}(class e extends Map{#e;constructor(e){super(e),this.#e=[...super.keys()],f.set(this,!0)}set(e,t){return f.get(this)&&(this.has(e)?this.#e[this.#e.indexOf(e)]=e:this.#e.push(e)),super.set(e,t),this}insert(e,t,r){let n,i=this.has(t),o=this.#e.length,l=c(e),s=l>=0?l:o+l,a=s<0||s>=o?-1:s;if(a===this.size||i&&a===this.size-1||-1===a)return this.set(t,r),this;let f=this.size+ +!i;l<0&&s++;let u=[...this.#e],d=!1;for(let e=s;e<f;e++)if(s===e){let o=u[e];u[e]===t&&(o=u[e+1]),i&&this.delete(t),n=this.get(o),this.set(t,r)}else{d||u[e-1]!==t||(d=!0);let r=u[d?e:e-1],i=n;n=this.get(r),this.delete(r),this.set(r,i)}return this}with(t,r,n){let i=new e(this);return i.insert(t,r,n),i}before(e){let t=this.#e.indexOf(e)-1;if(!(t<0))return this.entryAt(t)}setBefore(e,t,r){let n=this.#e.indexOf(e);return -1===n?this:this.insert(n,t,r)}after(e){let t=this.#e.indexOf(e);if(-1!==(t=-1===t||t===this.size-1?-1:t+1))return this.entryAt(t)}setAfter(e,t,r){let n=this.#e.indexOf(e);return -1===n?this:this.insert(n+1,t,r)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return this.#e=[],super.clear()}delete(e){let t=super.delete(e);return t&&this.#e.splice(this.#e.indexOf(e),1),t}deleteAt(e){let t=this.keyAt(e);return void 0!==t&&this.delete(t)}at(e){let t=u(this.#e,e);if(void 0!==t)return this.get(t)}entryAt(e){let t=u(this.#e,e);if(void 0!==t)return[t,this.get(t)]}indexOf(e){return this.#e.indexOf(e)}keyAt(e){return u(this.#e,e)}from(e,t){let r=this.indexOf(e);if(-1===r)return;let n=r+t;return n<0&&(n=0),n>=this.size&&(n=this.size-1),this.at(n)}keyFrom(e,t){let r=this.indexOf(e);if(-1===r)return;let n=r+t;return n<0&&(n=0),n>=this.size&&(n=this.size-1),this.keyAt(n)}find(e,t){let r=0;for(let n of this){if(Reflect.apply(e,t,[n,r,this]))return n;r++}}findIndex(e,t){let r=0;for(let n of this){if(Reflect.apply(e,t,[n,r,this]))return r;r++}return -1}filter(t,r){let n=[],i=0;for(let e of this)Reflect.apply(t,r,[e,i,this])&&n.push(e),i++;return new e(n)}map(t,r){let n=[],i=0;for(let e of this)n.push([e[0],Reflect.apply(t,r,[e,i,this])]),i++;return new e(n)}reduce(...e){let[t,r]=e,n=0,i=r??this.at(0);for(let r of this)i=0===n&&1===e.length?r:Reflect.apply(t,this,[i,r,n,this]),n++;return i}reduceRight(...e){let[t,r]=e,n=r??this.at(-1);for(let r=this.size-1;r>=0;r--){let i=this.at(r);
1n=r===this.size-1&&1===e.length?i:Reflect.apply(t,this,[n,i,r,this])}return n}toSorted(t){return new e([...this.entries()].sort(t))}toReversed(){let t=new e;for(let e=this.size-1;e>=0;e--){let r=this.keyAt(e),n=this.get(r);t.set(r,n)}return t}toSpliced(...t){let r=[...this.entries()];return r.splice(...t),new e(r)}slice(t,r){let n=new e,i=this.size-1;if(void 0===t)return n;t<0&&(t+=this.size),void 0!==r&&r>0&&(i=r-1);for(let e=t;e<=i;e++){let t=this.keyAt(e),r=this.get(t);n.set(t,r)}return n}every(e,t){let r=0;for(let n of this){if(!Reflect.apply(e,t,[n,r,this]))return!1;r++}return!0}some(e,t){let r=0;for(let n of this){if(Reflect.apply(e,t,[n,r,this]))return!0;r++}return!1}})},85815:(e,t,r)=>{"use strict";let n;r.d(t,{Mz:()=>eG,i3:()=>eU,UC:()=>eq,bL:()=>eX,Bk:()=>eP});var i=r(57732);let o=["top","right","bottom","left"],l=Math.min,s=Math.max,a=Math.round,f=Math.floor,u=e=>({x:e,y:e}),c={left:"right",right:"left",bottom:"top",top:"bottom"};function d(e,t){return"function"==typeof e?e(t):e}function p(e){return e.split("-")[0]}function h(e){return e.split("-")[1]}function g(e){return"x"===e?"y":"x"}function m(e){return"y"===e?"height":"width"}function y(e){let t=e[0];return"t"===t||"b"===t?"y":"x"}function x(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}let w=["left","right"],v=["right","left"],b=["top","bottom"],R=["bottom","top"];function C(e){let t=p(e);return c[t]+e.slice(t.length)}function A(e){return"number"!=typeof e?{top:0,right:0,bottom:0,left:0,...e}:{top:e,right:e,bottom:e,left:e}}function k(e){let{x:t,y:r,width:n,height:i}=e;return{width:n,height:i,top:r,left:t,right:t+n,bottom:r+i,x:t,y:r}}function T(e,t,r){let n,{reference:i,floating:o}=e,l=y(t),s=g(y(t)),a=m(s),f=p(t),u="y"===l,c=i.x+i.width/2-o.width/2,d=i.y+i.height/2-o.height/2,x=i[a]/2-o[a]/2;switch(f){case"top":n={x:c,y:i.y-o.height};break;case"bottom":n={x:c,y:i.y+i.height};break;case"right":n={x:i.x+i.width,y:d};break;case"left":n={x:i.x-o.width,y:d};break;default:n={x:i.x,y:i.y}}switch(h(t)){case"start":n[s]-=x*(r&&u?-1:1);break;case"end":n[s]+=x*(r&&u?-1:1)}return n}async function E(e,t){var r;void 0===t&&(t={});let{x:n,y:i,platform:o,rects:l,elements:s,strategy:a}=e,{boundary:f="clippingAncestors",rootBoundary:u="viewport",elementContext:c="floating",altBoundary:p=!1,padding:h=0}=d(t,e),g=A(h),m=s[p?"floating"===c?"reference":"floating":c],y=k(await o.getClippingRect({element:null==(r=await (null==o.isElement?void 0:o.isElement(m)))||r?m:m.contextElement||await (null==o.getDocumentElement?void 0:o.getDocumentElement(s.floating)),boundary:f,rootBoundary:u,strategy:a})),x="floating"===c?{x:n,y:i,width:l.floating.width,height:l.floating.height}:l.reference,w=await (null==o.getOffsetParent?void 0:o.getOffsetParent(s.floating)),v=await (null==o.isElement?void 0:o.isElement(w))&&await (null==o.getScale?void 0:o.getScale(w))||{x:1,y:1},b=k(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:x,offsetParent:w,strategy:a}):x);return{top:(y.top-b.top+g.top)/v.y,bottom:(b.bottom-y.bottom+g.bottom)/v.y,left:(y.left-b.left+g.left)/v.x,right:(b.right-y.right+g.right)/v.x}}let O=async(e,t,r)=>{let{placement:n="bottom",strategy:i="absolute",middleware:o=[],platform:l}=r,s=l.detectOverflow?l:{...l,detectOverflow:E},a=await (null==l.isRTL?void 0:l.isRTL(t)),f=await l.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:c}=T(f,n,a),d=n,p=0,h={};for(let r=0;r<o.length;r++){let g=o[r];if(!g)continue;let{name:m,fn:y}=g,{x:x,y:w,data:v,reset:b}=await y({x:u,y:c,initialPlacement:n,placement:d,strategy:i,middlewareData:h,rects:f,platform:s,elements:{reference:e,floating:t}});u=null!=x?x:u,c=null!=w?w:c,h[m]={...h[m],...v},b&&p<50&&(p++,"object"==typeof b&&(b.placement&&(d=b.placement),b.rects&&(f=!0===b.rects?await l.getElementRects({reference:e,floating:t,strategy:i}):b.rects),{x:u,y:c}=T(f,d,a)),r=-1)}return{x:u,y:c,placement:d,strategy:i,middlewareData:h}};function L(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function S(e){return o.some(t=>e[t]>=0)}let P=new Set(["left","top"]);async function j(e,t){let{placement:r,platform:n,elements:i}=e,o=await (null==n.isRTL?void 0:n.isRTL(i.floating)),l=p(r),s=h(r),a="y"===y(r),f=P.has(l)?-1:1,u=o&&a?-1:1,c=d(t,e),{mainAxis:g,crossAxis:m,alignmentAxis:x}="number"==typeof c?{mainAxis:c,crossAxis:0,alignmentAxis:null}
1:{mainAxis:c.mainAxis||0,crossAxis:c.crossAxis||0,alignmentAxis:c.alignmentAxis};return s&&"number"==typeof x&&(m="end"===s?-1*x:x),a?{x:m*u,y:g*f}:{x:g*f,y:m*u}}function M(){return"u">typeof window}function _(e){return z(e)?(e.nodeName||"").toLowerCase():"#document"}function D(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function N(e){var t;return null==(t=(z(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function z(e){return!!M()&&(e instanceof Node||e instanceof D(e).Node)}function H(e){return!!M()&&(e instanceof Element||e instanceof D(e).Element)}function F(e){return!!M()&&(e instanceof HTMLElement||e instanceof D(e).HTMLElement)}function I(e){return!(!M()||"u"<typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof D(e).ShadowRoot)}function W(e){let{overflow:t,overflowX:r,overflowY:n,display:i}=q(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&"inline"!==i&&"contents"!==i}function B(e){try{if(e.matches(":popover-open"))return!0}catch(e){}try{return e.matches(":modal")}catch(e){return!1}}let $=/transform|translate|scale|rotate|perspective|filter/,V=/paint|layout|strict|content/,Y=e=>!!e&&"none"!==e;function K(e){let t=H(e)?q(e):e;return Y(t.transform)||Y(t.translate)||Y(t.scale)||Y(t.rotate)||Y(t.perspective)||!X()&&(Y(t.backdropFilter)||Y(t.filter))||$.test(t.willChange||"")||V.test(t.contain||"")}function X(){return null==n&&(n="u">typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),n}function G(e){return/^(html|body|#document)$/.test(_(e))}function q(e){return D(e).getComputedStyle(e)}function U(e){return H(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Z(e){if("html"===_(e))return e;let t=e.assignedSlot||e.parentNode||I(e)&&e.host||N(e);return I(t)?t.host:t}function J(e,t,r){var n;void 0===t&&(t=[]),void 0===r&&(r=!0);let i=function e(t){let r=Z(t);return G(r)?t.ownerDocument?t.ownerDocument.body:t.body:F(r)&&W(r)?r:e(r)}(e),o=i===(null==(n=e.ownerDocument)?void 0:n.body),l=D(i);if(!o)return t.concat(i,J(i,[],r));{let e=Q(l);return t.concat(l,l.visualViewport||[],W(i)?i:[],e&&r?J(e):[])}}function Q(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function ee(e){let t=q(e),r=parseFloat(t.width)||0,n=parseFloat(t.height)||0,i=F(e),o=i?e.offsetWidth:r,l=i?e.offsetHeight:n,s=a(r)!==o||a(n)!==l;return s&&(r=o,n=l),{width:r,height:n,$:s}}function et(e){return H(e)?e:e.contextElement}function er(e){let t=et(e);if(!F(t))return u(1);let r=t.getBoundingClientRect(),{width:n,height:i,$:o}=ee(t),l=(o?a(r.width):r.width)/n,s=(o?a(r.height):r.height)/i;return l&&Number.isFinite(l)||(l=1),s&&Number.isFinite(s)||(s=1),{x:l,y:s}}let en=u(0);function ei(e){let t=D(e);return X()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:en}function eo(e,t,r,n){var i;void 0===t&&(t=!1),void 0===r&&(r=!1);let o=e.getBoundingClientRect(),l=et(e),s=u(1);t&&(n?H(n)&&(s=er(n)):s=er(e));let a=(void 0===(i=r)&&(i=!1),n&&(!i||n===D(l))&&i)?ei(l):u(0),f=(o.left+a.x)/s.x,c=(o.top+a.y)/s.y,d=o.width/s.x,p=o.height/s.y;if(l){let e=D(l),t=n&&H(n)?D(n):n,r=e,i=Q(r);for(;i&&n&&t!==r;){let e=er(i),t=i.getBoundingClientRect(),n=q(i),o=t.left+(i.clientLeft+parseFloat(n.paddingLeft))*e.x,l=t.top+(i.clientTop+parseFloat(n.paddingTop))*e.y;f*=e.x,c*=e.y,d*=e.x,p*=e.y,f+=o,c+=l,i=Q(r=D(i))}}return k({width:d,height:p,x:f,y:c})}function el(e,t){let r=U(e).scrollLeft;return t?t.left+r:eo(N(e)).left+r}function es(e,t){let r=e.getBoundingClientRect();return{x:r.left+t.scrollLeft-el(e,r),y:r.top+t.scrollTop}}function ea(e,t,r){var n;let i;if("viewport"===t)i=function(e,t){let r=D(e),n=N(e),i=r.visualViewport,o=n.clientWidth,l=n.clientHeight,s=0,a=0;if(i){o=i.width,l=i.height;let e=X();(!e||e&&"fixed"===t)&&(s=i.offsetLeft,a=i.offsetTop)}let f=el(n);if(f<=0){let e=n.ownerDocument,t=e.body,r=getComputedStyle(t),i="CSS1Compat"===e.compatMode&&parseFloat(r.marginLeft)+parseFloat(r.marginRight)||0,l=Math.abs(n.clientWidth-t.clientWidth-i);l<=25&&(o-=l)}else f<=25&&(o+=f);return{width:o,height:l,x:s,y:a}}(e,r);else if("document"===t){let t,r,o,l,a,f,u;n=N(e),t=N(n),r=U(n),o=n.ownerDocument.body,l=s(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),a=s(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight),f=-r.scrollLeft+el(n),u=-r.scrollTop,"rtl"===q(o).direction&&(f+=s(t.clientWidth,o.clientWidth)-l),i={width:l,height:a,x:f,y:u}}else if(H(t)){let e,n,o,l,s,a;n=(e=eo(t,!0,"fixed"===r)).top+t.clientTop,o=e.left+t.clientLeft,l=F(t)?er(t):u(1),s=t.clientWidth*l.x,a=t.clientHeight*l.y,i={width:s,height:a,x:o*l.x,y:n*l.y}}else{let r=ei(e);i={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return k(i)}function ef(e){return"static"===q(e).position}function eu(e,t){if(!F(e)||"fixed"===q(e).position)return null;if(t)return t(e);let r=e.offsetParent;return N(e)===r&&(r=r.ownerDocument.body),r}function ec(e,t){var r;let n=D(e);if(B(e))return n;if(!F(e)){let t=Z(e);for(;t&&!G(t);){if(H(t)&&!ef(t))return t;t=Z(t)}return n}let i=eu(e,t);for(;i&&(r=i,/^(table|td|th)$/.test(_(r)))&&ef(i);)i=eu(i,t);return i&&G(i)&&ef(i)&&!K(i)?n:i||function(e){let t=Z(e);for(;F(t)&&!G(t);){if(K(t))return t;if(B(t))break;t=Z(t)}return null}(e)||n}let ed=async function(e){let t=this.getOffsetParent||ec,r=this.getDimensions,n=await r(e.floating);return{reference:function(e,t,r){let n=F(t),i=N(t),o="fixed"===r,l=eo(e,!0,o,t),s={scrollLeft:0,scrollTop:0},a=u(0);if(n||!n&&!o)if(("body"!==_(t)||W(i))&&(s=U(t)),n){let e=eo(t,!0,o,t);a.x=e.x+t.clientLeft,a.y=e.y+t.clientTop}else i&&(a.x=el(i));o&&!n&&i&&(a.x=el(i));let f=!i||n||o?u(0):es(i,s);return{x:l.left+s.scrollLeft-a.x-f.x,y:l.top+s.scrollTop-a.y-f.y,width:l.width,height:l.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}},ep={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:r,offsetParent:n,strategy:i}=e,o="fixed"===i,l=N(n),s=!!t&&B(t.floating);if(n===l||s&&o)return r;let a={scrollLeft:0,scrollTop:0},f=u(1),c=u(0),d=F(n);
1if((d||!d&&!o)&&(("body"!==_(n)||W(l))&&(a=U(n)),d)){let e=eo(n);f=er(n),c.x=e.x+n.clientLeft,c.y=e.y+n.clientTop}let p=!l||d||o?u(0):es(l,a);return{width:r.width*f.x,height:r.height*f.y,x:r.x*f.x-a.scrollLeft*f.x+c.x+p.x,y:r.y*f.y-a.scrollTop*f.y+c.y+p.y}},getDocumentElement:N,getClippingRect:function(e){let{element:t,boundary:r,rootBoundary:n,strategy:i}=e,o=[..."clippingAncestors"===r?B(t)?[]:function(e,t){let r=t.get(e);if(r)return r;let n=J(e,[],!1).filter(e=>H(e)&&"body"!==_(e)),i=null,o="fixed"===q(e).position,l=o?Z(e):e;for(;H(l)&&!G(l);){let t=q(l),r=K(l);r||"fixed"!==t.position||(i=null),(o?r||i:!(!r&&"static"===t.position&&i&&("absolute"===i.position||"fixed"===i.position)||W(l)&&!r&&function e(t,r){let n=Z(t);return!(n===r||!H(n)||G(n))&&("fixed"===q(n).position||e(n,r))}(e,l)))?i=t:n=n.filter(e=>e!==l),l=Z(l)}return t.set(e,n),n}(t,this._c):[].concat(r),n],a=ea(t,o[0],i),f=a.top,u=a.right,c=a.bottom,d=a.left;for(let e=1;e<o.length;e++){let r=ea(t,o[e],i);f=s(r.top,f),u=l(r.right,u),c=l(r.bottom,c),d=s(r.left,d)}return{width:u-d,height:c-f,x:d,y:f}},getOffsetParent:ec,getElementRects:ed,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:r}=ee(e);return{width:t,height:r}},getScale:er,isElement:H,isRTL:function(e){return"rtl"===q(e).direction}};function eh(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}let eg=e=>({name:"arrow",options:e,async fn(t){let{x:r,y:n,placement:i,rects:o,platform:a,elements:f,middlewareData:u}=t,{element:c,padding:p=0}=d(e,t)||{};if(null==c)return{};let x=A(p),w={x:r,y:n},v=g(y(i)),b=m(v),R=await a.getDimensions(c),C="y"===v,k=C?"clientHeight":"clientWidth",T=o.reference[b]+o.reference[v]-w[v]-o.floating[b],E=w[v]-o.reference[v],O=await (null==a.getOffsetParent?void 0:a.getOffsetParent(c)),L=O?O[k]:0;L&&await (null==a.isElement?void 0:a.isElement(O))||(L=f.floating[k]||o.floating[b]);let S=L/2-R[b]/2-1,P=l(x[C?"top":"left"],S),j=l(x[C?"bottom":"right"],S),M=L-R[b]-j,_=L/2-R[b]/2+(T/2-E/2),D=s(P,l(_,M)),N=!u.arrow&&null!=h(i)&&_!==D&&o.reference[b]/2-(_<P?P:j)-R[b]/2<0,z=N?_<P?_-P:_-M:0;return{[v]:w[v]+z,data:{[v]:D,centerOffset:_-D-z,...N&&{alignmentOffset:z}},reset:N}}});var em=r(90373),ey="u">typeof document?i.useLayoutEffect:function(){};function ex(e,t){let r,n,i;if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if((r=e.length)!==t.length)return!1;for(n=r;0!=n--;)if(!ex(e[n],t[n]))return!1;return!0}if((r=(i=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(n=r;0!=n--;)if(!({}).hasOwnProperty.call(t,i[n]))return!1;for(n=r;0!=n--;){let r=i[n];if(("_owner"!==r||!e.$$typeof)&&!ex(e[r],t[r]))return!1}return!0}return e!=e&&t!=t}function ew(e){return"u"<typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function ev(e,t){let r=ew(e);return Math.round(t*r)/r}function eb(e){let t=i.useRef(e);return ey(()=>{t.current=e}),t}var eR=r(66502),eC=r(21928),eA=i.forwardRef((e,t)=>{let{children:r,width:n=10,height:i=5,...o}=e;return(0,eC.jsx)(eR.sG.svg,{...o,ref:t,width:n,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:(0,eC.jsx)("polygon",{points:"0,0 30,0 15,10"})})});eA.displayName="Arrow";var ek=r(48593),eT=r(54645),eE=r(2348),eO=r(86672),eL="Popper",[eS,eP]=(0,eT.A)(eL),[ej,eM]=eS(eL),e_=e=>{let{__scopePopper:t,children:r}=e,[n,o]=i.useState(null);return(0,eC.jsx)(ej,{scope:t,anchor:n,onAnchorChange:o,children:r})};e_.displayName=eL;var eD="PopperAnchor",eN=i.forwardRef((e,t)=>{let{__scopePopper:r,virtualRef:n,...o}=e,l=eM(eD,r),s=i.useRef(null),a=(0,ek.s)(t,s),f=i.useRef(null);return i.useEffect(()=>{let e=f.current;f.current=n?.current||s.current,e!==f.current&&l.onAnchorChange(f.current)}),n?null:(0,eC.jsx)(eR.sG.div,{...o,ref:a})});eN.displayName=eD;var ez="PopperContent",[eH,eF]=eS(ez),eI=i.forwardRef((e,t)=>{var r,n,o,a,u,c,A,k,T,E,M,_,D;let z,H,F,I,W,B,{__scopePopper:$,side:V="bottom",sideOffset:Y=0,align:K="center",alignOffset:X=0,arrowPadding:G=0,avoidCollisions:q=!0,collisionBoundary:U=[],collisionPadding:Z=0,sticky:Q="partial",hideWhenDetached:ee=!1,updatePositionStrategy:er="optimized",onPlaced:en,...ei}=e,el=eM(ez,$),[es,ea]=i.useState(null),ef=(0,ek.s)(t,e=>ea(e)),[eu,ec]=i.useState(null),ed=function(e){let[t,r]=i.useState(void 0);return(0,eO.N)(()=>
1{if(e){r({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let n,i;if(!Array.isArray(t)||!t.length)return;let o=t[0];if("borderBoxSize"in o){let e=o.borderBoxSize,t=Array.isArray(e)?e[0]:e;n=t.inlineSize,i=t.blockSize}else n=e.offsetWidth,i=e.offsetHeight;r({width:n,height:i})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}r(void 0)},[e]),t}(eu),eA=ed?.width??0,eT=ed?.height??0,eL="number"==typeof Z?Z:{top:0,right:0,bottom:0,left:0,...Z},eS=Array.isArray(U)?U:[U],eP=eS.length>0,ej={padding:eL,boundary:eS.filter(eV),altBoundary:eP},{refs:e_,floatingStyles:eD,placement:eN,isPositioned:eF,middlewareData:eI}=function(e){void 0===e&&(e={});let{placement:t="bottom",strategy:r="absolute",middleware:n=[],platform:o,elements:{reference:l,floating:s}={},transform:a=!0,whileElementsMounted:f,open:u}=e,[c,d]=i.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[p,h]=i.useState(n);ex(p,n)||h(n);let[g,m]=i.useState(null),[y,x]=i.useState(null),w=i.useCallback(e=>{e!==C.current&&(C.current=e,m(e))},[]),v=i.useCallback(e=>{e!==A.current&&(A.current=e,x(e))},[]),b=l||g,R=s||y,C=i.useRef(null),A=i.useRef(null),k=i.useRef(c),T=null!=f,E=eb(f),L=eb(o),S=eb(u),P=i.useCallback(()=>{var e,n;let i,o,l;if(!C.current||!A.current)return;let s={placement:t,strategy:r,middleware:p};L.current&&(s.platform=L.current),(e=C.current,n=A.current,i=new Map,l={...(o={platform:ep,...s}).platform,_c:i},O(e,n,{...o,platform:l})).then(e=>{let t={...e,isPositioned:!1!==S.current};j.current&&!ex(k.current,t)&&(k.current=t,em.flushSync(()=>{d(t)}))})},[p,t,r,L,S]);ey(()=>{!1===u&&k.current.isPositioned&&(k.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[u]);let j=i.useRef(!1);ey(()=>(j.current=!0,()=>{j.current=!1}),[]),ey(()=>{if(b&&(C.current=b),R&&(A.current=R),b&&R){if(E.current)return E.current(b,R,P);P()}},[b,R,P,E,T]);let M=i.useMemo(()=>({reference:C,floating:A,setReference:w,setFloating:v}),[w,v]),_=i.useMemo(()=>({reference:b,floating:R}),[b,R]),D=i.useMemo(()=>{let e={position:r,left:0,top:0};if(!_.floating)return e;let t=ev(_.floating,c.x),n=ev(_.floating,c.y);return a?{...e,transform:"translate("+t+"px, "+n+"px)",...ew(_.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:t,top:n}},[r,a,_.floating,c.x,c.y]);return i.useMemo(()=>({...c,update:P,refs:M,elements:_,floatingStyles:D}),[c,P,M,_,D])}({strategy:"fixed",placement:V+("center"!==K?"-"+K:""),whileElementsMounted:(...e)=>(function(e,t,r,n){let i;void 0===n&&(n={});let{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:u="function"==typeof ResizeObserver,layoutShift:c="function"==typeof IntersectionObserver,animationFrame:d=!1}=n,p=et(e),h=o||a?[...p?J(p):[],...t?J(t):[]]:[];h.forEach(e=>{o&&e.addEventListener("scroll",r,{passive:!0}),a&&e.addEventListener("resize",r)});let g=p&&c?function(e,t){let r,n=null,i=N(e);function o(){var e;clearTimeout(r),null==(e=n)||e.disconnect(),n=null}return!function a(u,c){void 0===u&&(u=!1),void 0===c&&(c=1),o();let d=e.getBoundingClientRect(),{left:p,top:h,width:g,height:m}=d;if(u||t(),!g||!m)return;let y={rootMargin:-f(h)+"px "+-f(i.clientWidth-(p+g))+"px "+-f(i.clientHeight-(h+m))+"px "+-f(p)+"px",threshold:s(0,l(1,c))||1},x=!0;function w(t){let n=t[0].intersectionRatio;if(n!==c){if(!x)return a();n?a(!1,n):r=setTimeout(()=>{a(!1,1e-7)},1e3)}1!==n||eh(d,e.getBoundingClientRect())||a(),x=!1}try{n=new IntersectionObserver(w,{...y,root:i.ownerDocument})}catch(e){n=new IntersectionObserver(w,y)}n.observe(e)}(!0),o}(p,r):null,m=-1,y=null;u&&(y=new ResizeObserver(e=>{let[n]=e;n&&n.target===p&&y&&t&&(y.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var e;null==(e=y)||e.observe(t)})),r()}),p&&!d&&y.observe(p),t&&y.observe(t));let x=d?eo(e):null;return d&&function t(){let n=eo(e);x&&!eh(x,n)&&r(),x=n,i=requestAnimationFrame(t)}(),r(),()=>{var e;h.forEach(e=>{o&&e.removeEventListener("scroll",r),a&&e.removeEventListener("resize",r)}),null==g||g(),null==(e=y)||e.disconnect(),y=null,d&&cancelAnimationFrame(i)}})(...e,{animationFrame:"always"===er}),elements:{reference:el.anchor},middleware:[{name:(z={name:"offset",options:n=r={mainAxis:Y+eT,alignmentAxis:X},async fn(e){var t,r;let{x:i,y:o,placement:l,middlewareData:s}=e,a=await j(e,n);return l===(null==(t=s.offset)?void 0:t.placement)&&null!=(r=s.arrow)&&r.alignmentOffset?{}:{x:i+a.x,y:o+a.y,data:{...a,placement:l}}}}).name,fn:z.fn,options:[r,void 0]},q&&{name:(H={name:"shift",options:u=a={mainAxis:!0,crossAxis:!1,limiter:"partial"===Q?{fn:(o=void 0,{options:o={},fn(e){let{x:t,y:r,placement:n,rects:i,middlewareData:l}=e,{offset:s=0,mainAxis:a=!0,crossAxis:f=!0}=d(o,e),u={x:t,y:r},c=y(n),h=g(c),m=u[h],x=u[c],w=d(s,e),v="number"==typeof w?{mainAxis:w,crossAxis:0}:{mainAxis:0,crossAxis:0,...w};if(a){let e="y"===h?"height":"width",t=i.reference[h]-i.floating[e]+v.mainAxis,r=i.reference[h]+i.reference[e]-v.mainAxis;m<t?m=t:m>r&&(m=r)}if(f){var b,R;let e="y"===h?"width":"height",t=P.has(p(n)),r=i.reference[c]-i.floating[e]+(t&&(null==(b=l.offset)?void 0:b[c])||0)+(t?0:v.crossAxis),o=i.reference[c]+i.reference[e]+(t?0:(null==(R=l.offset)?void 0:R[c])||0)-(t?v.crossAxis:0);x<r?x=r:x>o&&(x=o)}return{[h]:m,[c]:x}}}).fn,options:[void 0,void 0]}:void 0,...ej},async fn(e){let{x:t,y:r,placement:n,platform:i}=e,{mainAxis:o=!0,crossAxis:a=!1,limiter:f={fn:e=>{let{x:t,y:r}=e;return{x:t,y:r}}},...c}=d(u,e),h={x:t,y:r},m=await i.detectOverflow(e,c),x=y(p(n)),w=g(x),v=h[w],b=h[x];if(o){let e="y"===w?"top":"left",t="y"===w?"bottom":"right",r=v+m[e],n=v-m[t];v=s(r,l(v,n))}if(a){let e="y"===x?"top":"left",t="y"===x?"bottom":"right",r=b+m[e],n=b-m[t];b=s(r,l(b,n))}let R=f.fn({...e,[w]:v,[x]:b});return{...R,data:{x:R.x-t,y:R.y-r,enabled:{[w]:o,[x]:a}}}}}).name,fn:H.fn,options:[a,void 0]},q&&{name:(F={name:"flip",options:A=c={...ej},async fn(e){var t,r,n,i,o,l,s,a;let f,u,c,{placement:k,middlewareData:T,rects:E,initialPlacement:O,platform:L,elements:S}=e,{mainAxis:P=!0,crossAxis:j=!0,fallbackPlacements:M,fallbackStrategy:_="bestFit",fallbackAxisSideDirection:D="none",flipAlignment:N=!0,...z}=d(A,e);if(null!=(t=T.arrow)&&t.alignmentOffset)return{};let H=p(k),F=y(O),I=p(O)===O,W=await (null==L.isRTL?void 0:L.isRTL(S.floating)),B=M||(I||!N?[C(O)]:(f=C(O),[x(O),f,x(f)])),$="none"!==D;!M&&$&&B.push(...(u=h(O),c=function(e,t,r){switch(e){case"top":case"bottom":if(r)return t?v:w;return t?w:v;case"left":case"right":return t?b:R;default:return[]}}(p(O),"start"===D,W),u&&(c=c.map(e=>e+"-"+u),N&&(c=c.concat(c.map(x)))),c));let V=[O,...B],Y=await L.detectOverflow(e,z),K=[],X=(null==(r=T.flip)?void 0:r.overflows)||[];if(P&&K.push(Y[H]),j){let e,t,r,n,i=(l=k,s=E,void 0===(a=W)&&(a=!1),e=h(l),r=m(t=g(y(l))),n="x"===t?e===(a?"end":"start")?"right":"left":"start"===e?"bottom":"top",s.reference[r]>s.floating[r]&&(n=C(n)),[n,C(n)]);K.push(Y[i[0]],Y[i[1]])}if(X=[...X,{placement:k,overflows:K}],!K.every(e=>e<=0)){let e=((null==(n=T.flip)?void 0:n.index)||0)+1,t=V[e];if(t&&("alignment"!==j||F===y(t)||X.every(e=>y(e.placement)!==F||e.overflows[0]>0)))return{data:{index:e,overflows:X},reset:{placement:t}};let r=null==(i=X.filter(e=>e.overflows[0]<=0).sort((e,t)=>
1e.overflows[1]-t.overflows[1])[0])?void 0:i.placement;if(!r)switch(_){case"bestFit":{let e=null==(o=X.filter(e=>{if($){let t=y(e.placement);return t===F||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:o[0];e&&(r=e);break}case"initialPlacement":r=O}if(k!==r)return{reset:{placement:r}}}return{}}}).name,fn:F.fn,options:[c,void 0]},{name:(I={name:"size",options:T=k={...ej,apply:({elements:e,rects:t,availableWidth:r,availableHeight:n})=>{let{width:i,height:o}=t.reference,l=e.floating.style;l.setProperty("--radix-popper-available-width",`${r}px`),l.setProperty("--radix-popper-available-height",`${n}px`),l.setProperty("--radix-popper-anchor-width",`${i}px`),l.setProperty("--radix-popper-anchor-height",`${o}px`)}},async fn(e){var t,r;let n,i,{placement:o,rects:a,platform:f,elements:u}=e,{apply:c=()=>{},...g}=d(T,e),m=await f.detectOverflow(e,g),x=p(o),w=h(o),v="y"===y(o),{width:b,height:R}=a.floating;"top"===x||"bottom"===x?(n=x,i=w===(await (null==f.isRTL?void 0:f.isRTL(u.floating))?"start":"end")?"left":"right"):(i=x,n="end"===w?"top":"bottom");let C=R-m.top-m.bottom,A=b-m.left-m.right,k=l(R-m[n],C),E=l(b-m[i],A),O=!e.middlewareData.shift,L=k,S=E;if(null!=(t=e.middlewareData.shift)&&t.enabled.x&&(S=A),null!=(r=e.middlewareData.shift)&&r.enabled.y&&(L=C),O&&!w){let e=s(m.left,0),t=s(m.right,0),r=s(m.top,0),n=s(m.bottom,0);v?S=b-2*(0!==e||0!==t?e+t:s(m.left,m.right)):L=R-2*(0!==r||0!==n?r+n:s(m.top,m.bottom))}await c({...e,availableWidth:S,availableHeight:L});let P=await f.getDimensions(u.floating);return b!==P.width||R!==P.height?{reset:{rects:!0}}:{}}}).name,fn:I.fn,options:[k,void 0]},eu&&{name:(W={name:"arrow",options:M=E={element:eu,padding:G},fn(e){let{element:t,padding:r}="function"==typeof M?M(e):M;return t&&({}).hasOwnProperty.call(t,"current")?null!=t.current?eg({element:t.current,padding:r}).fn(e):{}:t?eg({element:t,padding:r}).fn(e):{}}}).name,fn:W.fn,options:[E,void 0]},eY({arrowWidth:eA,arrowHeight:eT}),ee&&{name:(B={name:"hide",options:D=_={strategy:"referenceHidden",...ej},async fn(e){let{rects:t,platform:r}=e,{strategy:n="referenceHidden",...i}=d(D,e);switch(n){case"referenceHidden":{let n=L(await r.detectOverflow(e,{...i,elementContext:"reference"}),t.reference);return{data:{referenceHiddenOffsets:n,referenceHidden:S(n)}}}case"escaped":{let n=L(await r.detectOverflow(e,{...i,altBoundary:!0}),t.floating);return{data:{escapedOffsets:n,escaped:S(n)}}}default:return{}}}}).name,fn:B.fn,options:[_,void 0]}]}),[eW,eB]=eK(eN),e$=(0,eE.c)(en);(0,eO.N)(()=>{eF&&e$?.()},[eF,e$]);let eX=eI.arrow?.x,eG=eI.arrow?.y,eq=eI.arrow?.centerOffset!==0,[eU,eZ]=i.useState();return(0,eO.N)(()=>{es&&eZ(window.getComputedStyle(es).zIndex)},[es]),(0,eC.jsx)("div",{ref:e_.setFloating,"data-radix-popper-content-wrapper":"",style:{...eD,transform:eF?eD.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:eU,"--radix-popper-transform-origin":[eI.transformOrigin?.x,eI.transformOrigin?.y].join(" "),...eI.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,eC.jsx)(eH,{scope:$,placedSide:eW,onArrowChange:ec,arrowX:eX,arrowY:eG,shouldHideArrow:eq,children:(0,eC.jsx)(eR.sG.div,{"data-side":eW,"data-align":eB,...ei,ref:ef,style:{...ei.style,animation:eF?void 0:"none"}})})})});eI.displayName=ez;var eW="PopperArrow",eB={top:"bottom",right:"left",bottom:"top",left:"right"},e$=i.forwardRef(function(e,t){let{__scopePopper:r,...n}=e,i=eF(eW,r),o=eB[i.placedSide];return(0,eC.jsx)("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[o]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:(0,eC.jsx)(eA,{...n,ref:t,style:{...n.style,display:"block"}})})});function eV(e){return null!==e}e$.displayName=eW;var eY=e=>({name:"transformOrigin",options:e,fn(t){let{placement:r,rects:n,middlewareData:i}=t,o=i.arrow?.centerOffset!==0,l=o?0:e.arrowWidth,s=o?0:e.arrowHeight,[a,f]=eK(r),u={start:"0%",center:"50%",end:"100%"}[f],c=(i.arrow?.x??0)+l/2,d=(i.arrow?.y??0)+s/2,p="",h="";return"bottom"===a?(p=o?u:`${c}px`,h=`${-s}px`):"top"===a?(p=o?u:`${c}px`,h=`${n.floating.height+s}px`):"right"===a?(p=`${-s}px`,h=o?u:`${d}px`):"left"===a&&(p=`${n.floating.width+s}px`,h=o?u:`${d}px`),{data:{x:p,y:h}}}});function eK(e){let[t,r="center"]=e.split("-");return[t,r]}var eX=e_,eG=eN,eq=eI,eU=e$},93021:(e,t,r)=>{"use strict";r.d(t,{Tooltip:()=>J});var n=r(21928),i=r(57732),o=r(59261),l=r(48593),s=r(54645),a=r(36434),f=r(44380),u=r(85815),c=r(68334),d=r(43815),p=r(66502),h=r(77551),g=r(31852),m=r(17707),[y,x]=(0,s.A)("Tooltip",[u.Bk]),w=(0,u.Bk)(),v="TooltipProvider",b="tooltip.open",[R,C]=y(v),A=e=>{let{__scopeTooltip:t,delayDuration:r=700,skipDelayDuration:o=300,disableHoverableContent:l=!1,children:s}=e,a=i.useRef(!0),f=i.useRef(!1),u=i.useRef(0);return i.useEffect(()=>{let e=u.current;return()=>window.clearTimeout(e)},[]),(0,n.jsx)(R,{scope:t,isOpenDelayedRef:a,delayDuration:r,onOpen:i.useCallback(()=>{window.clearTimeout(u.current),a.current=!1},[]),onClose:i.useCallback(()=>{window.clearTimeout(u.current),u.current=window.setTimeout(()=>a.current=!0,o)},[o]),isPointerInTransitRef:f,onPointerInTransitChange:i.useCallback(e=>{f.current=e},[]),disableHoverableContent:l,children:s})};A.displayName=v;var k="Tooltip",[T,E]=y(k),O=e=>{let{__scopeTooltip:t,children:r,open:o,defaultOpen:l,onOpenChange:s,disableHoverableContent:a,delayDuration:c}=e,d=C(k,e.__scopeTooltip),p=w(t),[h,m]=i.useState(null),y=(0,f.B)(),x=i.useRef(0),v=a??d.disableHoverableContent,R=c??d.delayDuration,A=i.useRef(!1),[E,O]=(0,g.i)({prop:o,defaultProp:l??!1,onChange:e=>{e?(d.onOpen(),document.dispatchEvent(new CustomEvent(b))):d.onClose(),s?.(e)},caller:k}),L=i.useMemo(()=>E?A.current?"delayed-open":"instant-open":"closed",[E]),S=i.useCallback(()=>{window.clearTimeout(x.current),x.current=0,A.current=!1,O(!0)},[O]),P=i.useCallback(()=>{window.clearTimeout(x.current),x.current=0,O(!1)},[O]),j=i.useCallback(()=>{window.clearTimeout(x.current),x.current=window.setTimeout(()=>{A.current=!0,O(!0),x.current=0},R)},[R,O]);return i.useEffect(()=>()=>{x.current&&(window.clearTimeout(x.current),x.current=0)},[]),(0,n.jsx)(u.bL,{...p,children:(0,n.jsx)(T,{scope:t,contentId:y,open:E,stateAttribute:L,trigger:h,onTriggerChange:m,onTriggerEnter:i.useCallback(()=>{d.isOpenDelayedRef.current?j():S()},[d.isOpenDelayedRef,j,S]),onTriggerLeave:i.useCallback(()=>{v?P():(window.clearTimeout(x.current),x.current=0)},[P,v]),onOpen:S,onClose:P,disableHoverableContent:v,children:r})})};O.displayName=k;var L="TooltipTrigger",S=i.forwardRef((e,t)=>
1{let{__scopeTooltip:r,...s}=e,a=E(L,r),f=C(L,r),c=w(r),d=i.useRef(null),h=(0,l.s)(t,d,a.onTriggerChange),g=i.useRef(!1),m=i.useRef(!1),y=i.useCallback(()=>g.current=!1,[]);return i.useEffect(()=>()=>document.removeEventListener("pointerup",y),[y]),(0,n.jsx)(u.Mz,{asChild:!0,...c,children:(0,n.jsx)(p.sG.button,{"aria-describedby":a.open?a.contentId:void 0,"data-state":a.stateAttribute,...s,ref:h,onPointerMove:(0,o.mK)(e.onPointerMove,e=>{"touch"!==e.pointerType&&(m.current||f.isPointerInTransitRef.current||(a.onTriggerEnter(),m.current=!0))}),onPointerLeave:(0,o.mK)(e.onPointerLeave,()=>{a.onTriggerLeave(),m.current=!1}),onPointerDown:(0,o.mK)(e.onPointerDown,()=>{a.open&&a.onClose(),g.current=!0,document.addEventListener("pointerup",y,{once:!0})}),onFocus:(0,o.mK)(e.onFocus,()=>{g.current||a.onOpen()}),onBlur:(0,o.mK)(e.onBlur,a.onClose),onClick:(0,o.mK)(e.onClick,a.onClose)})})});S.displayName=L;var P="TooltipPortal",[j,M]=y(P,{forceMount:void 0}),_=e=>{let{__scopeTooltip:t,forceMount:r,children:i,container:o}=e,l=E(P,t);return(0,n.jsx)(j,{scope:t,forceMount:r,children:(0,n.jsx)(d.C,{present:r||l.open,children:(0,n.jsx)(c.Z,{asChild:!0,container:o,children:i})})})};_.displayName=P;var D="TooltipContent",N=i.forwardRef((e,t)=>{let r=M(D,e.__scopeTooltip),{forceMount:i=r.forceMount,side:o="top",...l}=e,s=E(D,e.__scopeTooltip);return(0,n.jsx)(d.C,{present:i||s.open,children:s.disableHoverableContent?(0,n.jsx)(W,{side:o,...l,ref:t}):(0,n.jsx)(z,{side:o,...l,ref:t})})}),z=i.forwardRef((e,t)=>{let r=E(D,e.__scopeTooltip),o=C(D,e.__scopeTooltip),s=i.useRef(null),a=(0,l.s)(t,s),[f,u]=i.useState(null),{trigger:c,onClose:d}=r,p=s.current,{onPointerInTransitChange:h}=o,g=i.useCallback(()=>{u(null),h(!1)},[h]),m=i.useCallback((e,t)=>{let r,n=e.currentTarget,i={x:e.clientX,y:e.clientY},o=function(e,t){let r=Math.abs(t.top-e.y),n=Math.abs(t.bottom-e.y),i=Math.abs(t.right-e.x),o=Math.abs(t.left-e.x);switch(Math.min(r,n,i,o)){case o:return"left";case i:return"right";case r:return"top";case n:return"bottom";default:throw Error("unreachable")}}(i,n.getBoundingClientRect());u(((r=[...function(e,t,r=5){let n=[];switch(t){case"top":n.push({x:e.x-r,y:e.y+r},{x:e.x+r,y:e.y+r});break;case"bottom":n.push({x:e.x-r,y:e.y-r},{x:e.x+r,y:e.y-r});break;case"left":n.push({x:e.x+r,y:e.y-r},{x:e.x+r,y:e.y+r});break;case"right":n.push({x:e.x-r,y:e.y-r},{x:e.x-r,y:e.y+r})}return n}(i,o),...function(e){let{top:t,right:r,bottom:n,left:i}=e;return[{x:i,y:t},{x:r,y:t},{x:r,y:n},{x:i,y:n}]}(t.getBoundingClientRect())].slice()).sort((e,t)=>e.x<t.x?-1:e.x>t.x?1:e.y<t.y?-1:1*!!(e.y>t.y)),function(e){if(e.length<=1)return e.slice();let t=[];for(let r=0;r<e.length;r++){let n=e[r];for(;t.length>=2;){let e=t[t.length-1],r=t[t.length-2];if((e.x-r.x)*(n.y-r.y)>=(e.y-r.y)*(n.x-r.x))t.pop();else break}t.push(n)}t.pop();let r=[];for(let t=e.length-1;t>=0;t--){let n=e[t];for(;r.length>=2;){let e=r[r.length-1],t=r[r.length-2];if((e.x-t.x)*(n.y-t.y)>=(e.y-t.y)*(n.x-t.x))r.pop();else break}r.push(n)}return(r.pop(),1===t.length&&1===r.length&&t[0].x===r[0].x&&t[0].y===r[0].y)?t:t.concat(r)}(r))),h(!0)},[h]);return i.useEffect(()=>()=>g(),[g]),i.useEffect(()=>{if(c&&p){let e=e=>m(e,p),t=e=>m(e,c);return c.addEventListener("pointerleave",e),p.addEventListener("pointerleave",t),()=>{c.removeEventListener("pointerleave",e),p.removeEventListener("pointerleave",t)}}},[c,p,m,g]),i.useEffect(()=>{if(f){let e=e=>{let t=e.target,r={x:e.clientX,y:e.clientY},n=c?.contains(t)||p?.contains(t),i=!function(e,t){let{x:r,y:n}=e,i=!1;for(let e=0,o=t.length-1;e<t.length;o=e++){let l=t[e],s=t[o],a=l.x,f=l.y,u=s.x,c=s.y;f>n!=c>n&&r<(u-a)*(n-f)/(c-f)+a&&(i=!i)}return i}(r,f);n?g():i&&(g(),d())};return document.addEventListener("pointermove",e),()=>document.removeEventListener("pointermove",e)}},[c,p,f,d,g]),(0,n.jsx)(W,{...e,ref:a})}),[H,F]=y(k,{isInside:!1}),I=(0,h.Dc)("TooltipContent"),W=i.forwardRef((e,t)=>{let{__scopeTooltip:r,children:o,"aria-label":l,onEscapeKeyDown:s,onPointerDownOutside:f,...c}=e,d=E(D,r),p=w(r),{onClose:h}=d;return i.useEffect(()=>(document.addEventListener(b,h),()=>document.removeEventListener(b,h)),[h]),i.useEffect(()=>{if(d.trigger){let e=e=>{let t=e.target;t?.contains(d.trigger)&&h()};return window.addEventListener("scroll",e,{capture:!0}),()=>window.removeEventListener("scroll",e,{capture:!0})}},[d.trigger,h]),(0,n.jsx)(a.qW,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:f,onFocusOutside:e=>e.preventDefault(),onDismiss:h,children:(0,n.jsxs)(u.UC,{"data-state":d.stateAttribute,...p,...c,ref:t,style:{...c.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[(0,n.jsx)(I,{children:o}),(0,n.jsx)(H,{scope:r,isInside:!0,children:(0,n.jsx)(m.bL,{id:d.contentId,role:"tooltip",children:l||o})})]})})});N.displayName=D;var B="TooltipArrow",$=i.forwardRef((e,t)=>
1{let{__scopeTooltip:r,...i}=e,o=w(r);return F(B,r).isInside?null:(0,n.jsx)(u.i3,{...o,...i,ref:t})});$.displayName=B;var V=r(4275);let Y=()=>{};var K=r(54281),X=r(14538),G=r(57223),q=r.n(G);let U=(0,X.F)(q().content),Z=(0,X.F)(q().arrow),J=(0,i.forwardRef)((e,t)=>{var r;let{className:o,content:l,children:s,shouldOpenOnClick:a,triggerProps:f,delayDuration:u=100,disableHoverableContent:c,open:d,defaultOpen:p,onOpenChange:h,...g}=e,m=U({className:o}),[y,{toggle:x,off:w}]=(0,V.A)(!1),v=(0,i.useRef)(null);return r=a&&y?"pointerdown":null,(0,i.useEffect)(()=>{if(null===r)return Y;let e=e=>{e.target instanceof HTMLElement&&!v.current?.contains(e.target)&&w(e)};return document.addEventListener(r,e),()=>{document.removeEventListener(r,e)}},[r,w,v]),(0,n.jsx)(A,{children:(0,n.jsxs)(O,{open:a?y:d,delayDuration:a?0:u,disableHoverableContent:!!a||c,defaultOpen:!a&&p,onOpenChange:a?()=>{}:h,children:[(0,n.jsx)(S,{asChild:!0,...f,onClick:e=>{f?.onClick?.(e),a&&x()},children:s}),(0,n.jsx)(_,{children:(0,n.jsxs)(N,{ref:(0,K.P)(v,t),className:m,sideOffset:4,arrowPadding:20,...g,children:[l,(0,n.jsx)($,{className:Z(),width:20,height:12})]})})]})})});J.displayName="MWKT.Tooltip"}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.