1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5666],{45861:function(e){var t;t=function(){"use strict";var e="millisecond",t="second",n="minute",r="hour",o="week",i="month",a="quarter",u="year",s="date",c="Invalid Date",l=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,f=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,d=function(e,t,n){var r=String(e);return!r||r.length>=t?e:""+Array(t+1-r.length).join(n)+e},p="en",h={};h[p]={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],n=e%100;return"["+e+(t[(n-20)%10]||t[n]||"th")+"]"}};var v="$isDayjsObject",g=function(e){return e instanceof b||!(!e||!e[v])},y=function e(t,n,r){var o;if(!t)return p;if("string"==typeof t){var i=t.toLowerCase();h[i]&&(o=i),n&&(h[i]=n,o=i);var a=t.split("-");if(!o&&a.length>1)return e(a[0])}else{var u=t.name;h[u]=t,o=u}return!r&&o&&(p=o),o||!r&&p},m=function(e,t){if(g(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new b(n)},x={s:d,z:function(e){var t=-e.utcOffset(),n=Math.abs(t);return(t<=0?"+":"-")+d(Math.floor(n/60),2,"0")+":"+d(n%60,2,"0")},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),o=t.clone().add(r,i),a=n-o<0,u=t.clone().add(r+(a?-1:1),i);return+(-(r+(n-o)/(a?o-u:u-o))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(c){return({M:i,y:u,w:o,d:"day",D:s,h:r,m:n,s:t,ms:e,Q:a})[c]||String(c||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}};x.l=y,x.i=g,x.w=function(e,t){return m(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var b=function(){function d(e){this.$L=y(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[v]=!0}var p=d.prototype;return p.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(x.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var r=t.match(l);if(r){var o=r[2]-1||0,i=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],o,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)):new Date(r[1],o,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)}}return new Date(t)}(e),this.init()},p.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},p.$utils=function(){return x},p.isValid=function(){return this.$d.toString()!==c},p.isSame=function(e,t){var n=m(e);return this.startOf(t)<=n&&n<=this.endOf(t)},p.isAfter=function(e,t){return m(e)<this.startOf(t)},p.isBefore=function(e,t){return this.endOf(t)<m(e)},p.$g=function(e,t,n){return x.u(e)?this[t]:this.set(n,e)},p.unix=function(){return Math.floor(this.valueOf()/1e3)},p.valueOf=function(){return this.$d.getTime()},p.startOf=function(e,a){var c=this,l=!!x.u(a)||a,f=x.p(e),d=function(e,t){var n=x.w(c.$u?Date.UTC(c.$y,t,e):new Date(c.$y,t,e),c);return l?n:n.endOf("day")},p=function(e,t){return x.w(c.toDate()[e].apply(c.toDate("s"),(l?[0,0,0,0]:[23,59,59,999]).slice(t)),c)},h=this.$W,v=this.$M,g=this.$D,y="set"+(this.$u?"UTC":"");switch(f){case u:return l?d(1,0):d(31,11);case i:return l?d(1,v):d(0,v+1);case o:var m=this.$locale().weekStart||0,b=(h<m?h+7:h)-m;return d(l?g-b:g+(6-b),v);case"day":case s:return p(y+"Hours",0);case r:return p(y+"Minutes",1);case n:return p(y+"Seconds",2);case t:return p(y+"Milliseconds",3);default:return this.clone()}},p.endOf=function(e){return this.startOf(e,!1)},p.$set=function(o,a){var c,l=x.p(o),f="set"+(this.$u?"UTC":""),d=((c={}).day=f+"Date",c[s]=f+"Date",c[i]=f+"Month",c[u]=f+"FullYear",c[r]=f+"Hours",c[n]=f+"Minutes",c[t]=f+"Seconds",c[e]=f+"Milliseconds",c)[l],p="day"===l?this.$D+(a-this.$W):a;if(l===i||l===u){var h=this.clone().set(s,1);h.$d[d](p),h.init(),this.$d=h.set(s,Math.min(this.$D,h.daysInMonth())).$d}else d&&this.$d[d](p);return this.init(),this},p.set=function(e,t){return this.clone().$set(e,t)},p.get=function(e){return this[x.p(e)]()},p.add=function(e,a){var s,c=this;e=Number(e);var l=x.p(a),f=function(t){var n=m(c);return x.w(n.date(n.date()+Math.round(t*e)),c)};if(l===i)return this.set(i,this.$M+e);if(l===u)return this.set(u,this.$y+e);if("day"===l)return f(1);if(l===o)return f(7);var d=((s={})[n]=6e4,s[r]=36e5,s[t]=1e3,s)[l]||1,p=this.$d.getTime()+e*d;return x.w(p,this)},p.subtract=function(e,t){return this.add(-1*e,t)},p.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||c;var r=e||"YYYY-MM-DDTHH:mm:ssZ",o=x.z(this),i=this.$H,a=this.$m,u=this.$M,s=n.weekdays,l=n.months,d=n.meridiem,p=function(e,n,o,i){return e&&(e[
1n]||e(t,r))||o[n].slice(0,i)},h=function(e){return x.s(i%12||12,e,"0")},v=d||function(e,t,n){var r=e<12?"AM":"PM";return n?r.toLowerCase():r};return r.replace(f,function(e,r){return r||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return x.s(t.$y,4,"0");case"M":return u+1;case"MM":return x.s(u+1,2,"0");case"MMM":return p(n.monthsShort,u,l,3);case"MMMM":return p(l,u);case"D":return t.$D;case"DD":return x.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return p(n.weekdaysMin,t.$W,s,2);case"ddd":return p(n.weekdaysShort,t.$W,s,3);case"dddd":return s[t.$W];case"H":return String(i);case"HH":return x.s(i,2,"0");case"h":return h(1);case"hh":return h(2);case"a":return v(i,a,!0);case"A":return v(i,a,!1);case"m":return String(a);case"mm":return x.s(a,2,"0");case"s":return String(t.$s);case"ss":return x.s(t.$s,2,"0");case"SSS":return x.s(t.$ms,3,"0");case"Z":return o}return null}(e)||o.replace(":","")})},p.utcOffset=function(){return-(15*Math.round(this.$d.getTimezoneOffset()/15))},p.diff=function(e,s,c){var l,f=this,d=x.p(s),p=m(e),h=(p.utcOffset()-this.utcOffset())*6e4,v=this-p,g=function(){return x.m(f,p)};switch(d){case u:l=g()/12;break;case i:l=g();break;case a:l=g()/3;break;case o:l=(v-h)/6048e5;break;case"day":l=(v-h)/864e5;break;case r:l=v/36e5;break;case n:l=v/6e4;break;case t:l=v/1e3;break;default:l=v}return c?l:x.a(l)},p.daysInMonth=function(){return this.endOf(i).$D},p.$locale=function(){return h[this.$L]},p.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=y(e,t,!0);return r&&(n.$L=r),n},p.clone=function(){return x.w(this.$d,this)},p.toDate=function(){return new Date(this.valueOf())},p.toJSON=function(){return this.isValid()?this.toISOString():null},p.toISOString=function(){return this.$d.toISOString()},p.toString=function(){return this.$d.toUTCString()},d}(),w=b.prototype;return m.prototype=w,[["$ms",e],["$s",t],["$m",n],["$H",r],["$W","day"],["$M",i],["$y",u],["$D",s]].forEach(function(e){w[e[1]]=function(t){return this.$g(t,e[0],e[1])}}),m.extend=function(e,t){return e.$i||(e(t,b,m),e.$i=!0),m},m.locale=y,m.isDayjs=g,m.unix=function(e){return m(1e3*e)},m.en=h[p],m.Ls=h,m.p={},m},e.exports=t()},90733:function(e,t,n){var r=n(76970).Symbol;e.exports=r},88054:function(e,t,n){var r=n(90733),o=n(96053),i=n(63024),a=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?o(e):i(e)}},28330:function(e,t,n){var r=n(89286),o=/^\s+/;e.exports=function(e){return e?e.slice(0,r(e)+1).replace(o,""):e}},47884:function(e,t,n){var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=r},96053:function(e,t,n){var r=n(90733),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,u=r?r.toStringTag:void 0;e.exports=function(e){var t=i.call(e,u),n=e[u];try{e[u]=void 0;var r=!0}catch(e){}var o=a.call(e);return r&&(t?e[u]=n:delete e[u]),o}},63024:function(e){var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},76970:function(e,t,n){var r=n(47884),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();e.exports=i},89286:function(e){var t=/\s/;e.exports=function(e){for(var n=e.length;n--&&t.test(e.charAt(n)););return n}},96627:function(e,t,n){var r=n(66033),o=n(77457),i=n(95380),a=Math.max,u=Math.min;e.exports=function(e,t,n){var s,c,l,f,d,p,h=0,v=!1,g=!1,y=!0;if("function"!=typeof e)throw TypeError("Expected a function");function m(t){var n=s,r=c;return s=c=void 0,h=t,f=e.apply(r,n)}function x(e){var n=e-p,r=e-h;return void 0===p||n>=t||n<0||g&&r>=l}function b(){var e,n,r,i=o();if(x(i))return w(i);d=setTimeout(b,(e=i-p,n=i-h,r=t-e,g?u(r,l-n):r))}function w(e){return(d=void 0,y&&s)?m(e):(s=c=void 0,f)}function $(){var e,n=o(),r=x(n);if(s=arguments,c=this,p=n,r){if(void 0===d)return h=e=p,d=setTimeout(b,t),v?m(e):f;if(g)return clearTimeout(d),d=setTimeout(b,t),m(p)}return void 0===d&&(d=setTimeout(b,t)),f}return t=i(t)||0,r(n)&&(v=!!n.leading,l=(g="maxWait"in n)?a(i(n.maxWait)||0,t):l,y="trailing"in n?!!n.trailing:y),$.cancel=function(){void 0!==d&&clearTimeout(d),h=0,s=p=c=d=void 0},$.flush=function(){return void 0===d?f:w(o())},$}},66033:function(e){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},12219:function(e){e.exports=function(e){return null!=e&&"object"==typeof e}},6803:function(e,t,n){var r=n(88054),o=n(12219);e.exports=function(e){return"symbol"==typeof e||o(e)&&"[object Symbol]"==r(e)}},77457:function(e,t,n){var r=n(76970);e.exports=function(){return r.Date.now()}},95380:function(e,t,n){var r=n(28330),o=n(66033),i=n(6803),a=0/0,u=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,c=/^0o[0-7]+$/i,l=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(i(e))return a;
1if(o(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=o(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var n=s.test(e);return n||c.test(e)?l(e.slice(2),n?2:8):u.test(e)?a:+e}},64275:function(e,t,n){"use strict";n.d(t,{Dx:function(){return en},VY:function(){return et},aV:function(){return ee},dk:function(){return er},fC:function(){return K},h_:function(){return G},x8:function(){return eo},xz:function(){return Q}});var r=n(71508),o=n(55242),i=n(46234),a=n(52483),u=n(68011),s=n(32055),c=n(29381),l=n(57526),f=n(68710),d=n(81214),p=n(18613),h=n(7057),v=n(90198),g=n(24930),y=n(96220),m=n(99686),x="Dialog",[b,w]=(0,a.b)(x),[$,D]=b(x),M=e=>{let{__scopeDialog:t,children:n,open:o,defaultOpen:i,onOpenChange:a,modal:c=!0}=e,l=r.useRef(null),f=r.useRef(null),[d=!1,p]=(0,s.T)({prop:o,defaultProp:i,onChange:a});return(0,m.jsx)($,{scope:t,triggerRef:l,contentRef:f,contentId:(0,u.M)(),titleId:(0,u.M)(),descriptionId:(0,u.M)(),open:d,onOpenChange:p,onOpenToggle:r.useCallback(()=>p(e=>!e),[p]),modal:c,children:n})};M.displayName=x;var C="DialogTrigger",T=r.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,a=D(C,n),u=(0,i.e)(t,a.triggerRef);return(0,m.jsx)(p.WV.button,{type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.contentId,"data-state":B(a.open),...r,ref:u,onClick:(0,o.M)(e.onClick,a.onOpenToggle)})});T.displayName=C;var j="DialogPortal",[O,_]=b(j,{forceMount:void 0}),E=e=>{let{__scopeDialog:t,forceMount:n,children:o,container:i}=e,a=D(j,t);return(0,m.jsx)(O,{scope:t,forceMount:n,children:r.Children.map(o,e=>(0,m.jsx)(d.z,{present:n||a.open,children:(0,m.jsx)(f.h,{asChild:!0,container:i,children:e})}))})};E.displayName=j;var S="DialogOverlay",k=r.forwardRef((e,t)=>{let n=_(S,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=D(S,e.__scopeDialog);return i.modal?(0,m.jsx)(d.z,{present:r||i.open,children:(0,m.jsx)(R,{...o,ref:t})}):null});k.displayName=S;var R=r.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,o=D(S,n);return(0,m.jsx)(v.Z,{as:y.g7,allowPinchZoom:!0,shards:[o.contentRef],children:(0,m.jsx)(p.WV.div,{"data-state":B(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),I="DialogContent",N=r.forwardRef((e,t)=>{let n=_(I,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=D(I,e.__scopeDialog);return(0,m.jsx)(d.z,{present:r||i.open,children:i.modal?(0,m.jsx)(L,{...o,ref:t}):(0,m.jsx)(P,{...o,ref:t})})});N.displayName=I;var L=r.forwardRef((e,t)=>{let n=D(I,e.__scopeDialog),a=r.useRef(null),u=(0,i.e)(t,n.contentRef,a);return r.useEffect(()=>{let e=a.current;if(e)return(0,g.Ry)(e)},[]),(0,m.jsx)(F,{...e,ref:u,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,o.M)(e.onCloseAutoFocus,e=>{var t;e.preventDefault(),null===(t=n.triggerRef.current)||void 0===t||t.focus()}),onPointerDownOutside:(0,o.M)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;(2===t.button||n)&&e.preventDefault()}),onFocusOutside:(0,o.M)(e.onFocusOutside,e=>e.preventDefault())})}),P=r.forwardRef((e,t)=>{let n=D(I,e.__scopeDialog),o=r.useRef(!1),i=r.useRef(!1);return(0,m.jsx)(F,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var r,a;null===(r=e.onCloseAutoFocus)||void 0===r||r.call(e,t),t.defaultPrevented||(o.current||null===(a=n.triggerRef.current)||void 0===a||a.focus(),t.preventDefault()),o.current=!1,i.current=!1},onInteractOutside:t=>{var r,a;null===(r=e.onInteractOutside)||void 0===r||r.call(e,t),t.defaultPrevented||(o.current=!0,"pointerdown"!==t.detail.originalEvent.type||(i.current=!0));let u=t.target;(null===(a=n.triggerRef.current)||void 0===a?void 0:a.contains(u))&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&i.current&&t.preventDefault()}})}),F=r.forwardRef((e,t)=>{let{__scopeDialog:n,trapFocus:o,onOpenAutoFocus:a,onCloseAutoFocus:u,...s}=e,f=D(I,n),d=r.useRef(null),p=(0,i.e)(t,d);return(0,h.EW)(),(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(l.M,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:a,onUnmountAutoFocus:u,children:(0,m.jsx)(c.XB,{role:"dialog",id:f.contentId,"aria-describedby":f.descriptionId,"aria-labelledby":f.titleId,"data-state":B(f.open),...s,ref:p,onDismiss:()=>f.onOpenChange(!1)})}),(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(X,{titleId:f.titleId}),(0,m.jsx)(q,{contentRef:d,descriptionId:f.descriptionId})]})]})}),W="DialogTitle",A=r.forwardRef((e,t)=>
1{let{__scopeDialog:n,...r}=e,o=D(W,n);return(0,m.jsx)(p.WV.h2,{id:o.titleId,...r,ref:t})});A.displayName=W;var Y="DialogDescription",H=r.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,o=D(Y,n);return(0,m.jsx)(p.WV.p,{id:o.descriptionId,...r,ref:t})});H.displayName=Y;var V="DialogClose",z=r.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=D(V,n);return(0,m.jsx)(p.WV.button,{type:"button",...r,ref:t,onClick:(0,o.M)(e.onClick,()=>i.onOpenChange(!1))})});function B(e){return e?"open":"closed"}z.displayName=V;var U="DialogTitleWarning",[Z,J]=(0,a.k)(U,{contentName:I,titleName:W,docsSlug:"dialog"}),X=e=>{let{titleId:t}=e,n=J(U),o="`".concat(n.contentName,"` requires a `").concat(n.titleName,"` for the component to be accessible for screen reader users.\n\nIf you want to hide the `").concat(n.titleName,"`, you can wrap it with our VisuallyHidden component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/").concat(n.docsSlug);return r.useEffect(()=>{t&&!document.getElementById(t)&&console.error(o)},[o,t]),null},q=e=>{let{contentRef:t,descriptionId:n}=e,o=J("DialogDescriptionWarning"),i="Warning: Missing `Description` or `aria-describedby={undefined}` for {".concat(o.contentName,"}.");return r.useEffect(()=>{var e;let r=null===(e=t.current)||void 0===e?void 0:e.getAttribute("aria-describedby");n&&r&&!document.getElementById(n)&&console.warn(i)},[i,t,n]),null},K=M,Q=T,G=E,ee=k,et=N,en=A,er=H,eo=z},87332:function(e,t,n){"use strict";n.d(t,{VY:function(){return U},fC:function(){return V},h_:function(){return B},xz:function(){return z},zt:function(){return H}});var r=n(71508),o=n(55242),i=n(46234),a=n(52483),u=n(29381),s=n(68011),c=n(88397),l=n(68710),f=n(81214),d=n(18613),p=n(96220),h=n(32055),v=n(9803),g=n(99686),[y,m]=(0,a.b)("Tooltip",[c.D7]),x=(0,c.D7)(),b="TooltipProvider",w="tooltip.open",[$,D]=y(b),M=e=>{let{__scopeTooltip:t,delayDuration:n=700,skipDelayDuration:o=300,disableHoverableContent:i=!1,children:a}=e,[u,s]=r.useState(!0),c=r.useRef(!1),l=r.useRef(0);return r.useEffect(()=>{let e=l.current;return()=>window.clearTimeout(e)},[]),(0,g.jsx)($,{scope:t,isOpenDelayed:u,delayDuration:n,onOpen:r.useCallback(()=>{window.clearTimeout(l.current),s(!1)},[]),onClose:r.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(()=>s(!0),o)},[o]),isPointerInTransitRef:c,onPointerInTransitChange:r.useCallback(e=>{c.current=e},[]),disableHoverableContent:i,children:a})};M.displayName=b;var C="Tooltip",[T,j]=y(C),O=e=>{let{__scopeTooltip:t,children:n,open:o,defaultOpen:i=!1,onOpenChange:a,disableHoverableContent:u,delayDuration:l}=e,f=D(C,e.__scopeTooltip),d=x(t),[p,v]=r.useState(null),y=(0,s.M)(),m=r.useRef(0),b=null!=u?u:f.disableHoverableContent,$=null!=l?l:f.delayDuration,M=r.useRef(!1),[j=!1,O]=(0,h.T)({prop:o,defaultProp:i,onChange:e=>{e?(f.onOpen(),document.dispatchEvent(new CustomEvent(w))):f.onClose(),null==a||a(e)}}),_=r.useMemo(()=>j?M.current?"delayed-open":"instant-open":"closed",[j]),E=r.useCallback(()=>{window.clearTimeout(m.current),m.current=0,M.current=!1,O(!0)},[O]),S=r.useCallback(()=>{window.clearTimeout(m.current),m.current=0,O(!1)},[O]),k=r.useCallback(()=>{window.clearTimeout(m.current),m.current=window.setTimeout(()=>{M.current=!0,O(!0),m.current=0},$)},[$,O]);return r.useEffect(()=>()=>{m.current&&(window.clearTimeout(m.current),m.current=0)},[]),(0,g.jsx)(c.fC,{...d,children:(0,g.jsx)(T,{scope:t,contentId:y,open:j,stateAttribute:_,trigger:p,onTriggerChange:v,onTriggerEnter:r.useCallback(()=>{f.isOpenDelayed?k():E()},[f.isOpenDelayed,k,E]),onTriggerLeave:r.useCallback(()=>{b?S():(window.clearTimeout(m.current),m.current=0)},[S,b]),onOpen:E,onClose:S,disableHoverableContent:b,children:n})})};O.displayName=C;var _="TooltipTrigger",E=r.forwardRef((e,t)=>{let{__scopeTooltip:n,...a}=e,u=j(_,n),s=D(_,n),l=x(n),f=r.useRef(null),p=(0,i.e)(t,f,u.onTriggerChange),h=r.useRef(!1),v=r.useRef(!1),y=r.useCallback(()=>h.current=!1,[]);return r.useEffect(()=>()=>document.removeEventListener("pointerup",y),[y]),(0,g.jsx)(c.ee,{asChild:!0,...l,children:(0,g.jsx)(d.WV.button,{"aria-describedby":u.open?u.contentId:void 0,"data-state":u.stateAttribute,...a,ref:p,onPointerMove:(0,o.M)(e.onPointerMove,e=>{"touch"===e.pointerType||v.current||s.isPointerInTransitRef.current||(u.onTriggerEnter(),v.current=!0)}),onPointerLeave:(0,o.M)(e.onPointerLeave,()=>{u.onTriggerLeave(),v.current=!1}),onPointerDown:(0,o.M)(e.onPointerDown,()=>{h.current=!0,document.addEventListener("pointerup",y,{once:!0})}),onFocus:(0,o.M)(e.onFocus,()=>{h.current||u.onOpen()}),onBlur:(0,o.M)(e.onBlur,u.onClose),onClick:(0,o.M)(e.onClick,u.onClose)})})});E.displayName=_;var S="TooltipPortal",[k,R]=y(S,{forceMount:void 0}),I=e=>{let{__scopeTooltip:t,forceMount:n,children:r,container:o}=e,i=j(S,t);return(0,g.jsx)(k,{scope:t,forceMount:n,children:(0,g.jsx)(f.z,{present:n||i.open,children:(0,g.jsx)(l.h,{asChild:!0,container:o,children:r})})})};I.displayName=S;var N="TooltipContent",L=r.forwardRef((e,t)=>
1{let n=R(N,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...i}=e,a=j(N,e.__scopeTooltip);return(0,g.jsx)(f.z,{present:r||a.open,children:a.disableHoverableContent?(0,g.jsx)(A,{side:o,...i,ref:t}):(0,g.jsx)(P,{side:o,...i,ref:t})})}),P=r.forwardRef((e,t)=>{let n=j(N,e.__scopeTooltip),o=D(N,e.__scopeTooltip),a=r.useRef(null),u=(0,i.e)(t,a),[s,c]=r.useState(null),{trigger:l,onClose:f}=n,d=a.current,{onPointerInTransitChange:p}=o,h=r.useCallback(()=>{c(null),p(!1)},[p]),v=r.useCallback((e,t)=>{let n=e.currentTarget,r={x:e.clientX,y:e.clientY},o=function(e,t){let n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(n,r,o,i)){case i:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw Error("unreachable")}}(r,n.getBoundingClientRect());c(function(e){let t=e.slice();return t.sort((e,t)=>e.x<t.x?-1:e.x>t.x?1:e.y<t.y?-1:e.y>t.y?1:0),function(e){if(e.length<=1)return e.slice();let t=[];for(let n=0;n<e.length;n++){let r=e[n];for(;t.length>=2;){let e=t[t.length-1],n=t[t.length-2];if((e.x-n.x)*(r.y-n.y)>=(e.y-n.y)*(r.x-n.x))t.pop();else break}t.push(r)}t.pop();let n=[];for(let t=e.length-1;t>=0;t--){let r=e[t];for(;n.length>=2;){let e=n[n.length-1],t=n[n.length-2];if((e.x-t.x)*(r.y-t.y)>=(e.y-t.y)*(r.x-t.x))n.pop();else break}n.push(r)}return(n.pop(),1===t.length&&1===n.length&&t[0].x===n[0].x&&t[0].y===n[0].y)?t:t.concat(n)}(t)}([...function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:5,r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n})}return r}(r,o),...function(e){let{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}(t.getBoundingClientRect())])),p(!0)},[p]);return r.useEffect(()=>()=>h(),[h]),r.useEffect(()=>{if(l&&d){let e=e=>v(e,d),t=e=>v(e,l);return l.addEventListener("pointerleave",e),d.addEventListener("pointerleave",t),()=>{l.removeEventListener("pointerleave",e),d.removeEventListener("pointerleave",t)}}},[l,d,v,h]),r.useEffect(()=>{if(s){let e=e=>{let t=e.target,n={x:e.clientX,y:e.clientY},r=(null==l?void 0:l.contains(t))||(null==d?void 0:d.contains(t)),o=!function(e,t){let{x:n,y:r}=e,o=!1;for(let e=0,i=t.length-1;e<t.length;i=e++){let a=t[e].x,u=t[e].y,s=t[i].x,c=t[i].y;u>r!=c>r&&n<(s-a)*(r-u)/(c-u)+a&&(o=!o)}return o}(n,s);r?h():o&&(h(),f())};return document.addEventListener("pointermove",e),()=>document.removeEventListener("pointermove",e)}},[l,d,s,f,h]),(0,g.jsx)(A,{...e,ref:u})}),[F,W]=y(C,{isInside:!1}),A=r.forwardRef((e,t)=>{let{__scopeTooltip:n,children:o,"aria-label":i,onEscapeKeyDown:a,onPointerDownOutside:s,...l}=e,f=j(N,n),d=x(n),{onClose:h}=f;return r.useEffect(()=>(document.addEventListener(w,h),()=>document.removeEventListener(w,h)),[h]),r.useEffect(()=>{if(f.trigger){let e=e=>{let t=e.target;(null==t?void 0:t.contains(f.trigger))&&h()};return window.addEventListener("scroll",e,{capture:!0}),()=>window.removeEventListener("scroll",e,{capture:!0})}},[f.trigger,h]),(0,g.jsx)(u.XB,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:s,onFocusOutside:e=>e.preventDefault(),onDismiss:h,children:(0,g.jsxs)(c.VY,{"data-state":f.stateAttribute,...d,...l,ref:t,style:{...l.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,g.jsx)(p.A4,{children:o}),(0,g.jsx)(F,{scope:n,isInside:!0,children:(0,g.jsx)(v.f,{id:f.contentId,role:"tooltip",children:i||o})})]})})});L.displayName=N;var Y="TooltipArrow";r.forwardRef((e,t)=>{let{__scopeTooltip:n,...r}=e,o=x(n);return W(Y,n).isInside?null:(0,g.jsx)(c.Eh,{...o,...r,ref:t})}).displayName=Y;var H=M,V=O,z=E,B=I,U=L}}]);
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.