PageSourceSearch

https://sailolabs.com/_next/static/chunks/3367-1ba4295e4cc74036.js

js sailolabs.com collected 2026-10-04 19:14:26 UTC 146,072 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3367],{875:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});let r=(0,n(9205).Z)("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]])},598:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});let r=(0,n(9205).Z)("Linkedin",[["path",{d:"M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-2-2 2 2 0 0 0-2 2v7h-4v-7a6 6 0 0 1 6-6z",key:"c2jq9f"}],["rect",{width:"4",height:"12",x:"2",y:"9",key:"mk3on5"}],["circle",{cx:"4",cy:"4",r:"2",key:"bt5ra8"}]])},9345:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});let r=(0,n(9205).Z)("Mail",[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}]])},3774:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});let r=(0,n(9205).Z)("MapPin",[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]])},3566:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});let r=(0,n(9205).Z)("Menu",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]])},3041:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});let r=(0,n(9205).Z)("Phone",[["path",{d:"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z",key:"foiqr5"}]])},257:function(e,t,n){"use strict";var r,o;e.exports=(null==(r=n.g.process)?void 0:r.env)&&"object"==typeof(null==(o=n.g.process)?void 0:o.env)?n.g.process:n(4227)},8221:function(e,t){"use strict";let n;Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{DOMAttributeNames:function(){return r},default:function(){return a},isEqualNode:function(){return i}});let r={acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv",noModule:"noModule"};function o(e){let{type:t,props:n}=e,o=document.createElement(t);for(let e in n){if(!n.hasOwnProperty(e)||"children"===e||"dangerouslySetInnerHTML"===e||void 0===n[e])continue;let i=r[e]||e.toLowerCase();"script"===t&&("async"===i||"defer"===i||"noModule"===i)?o[i]=!!n[e]:o.setAttribute(i,n[e])}let{children:i,dangerouslySetInnerHTML:a}=n;return a?o.innerHTML=a.__html||"":i&&(o.textContent="string"==typeof i?i:Array.isArray(i)?i.join(""):""),o}function i(e,t){if(e instanceof HTMLElement&&t instanceof HTMLElement){let n=t.getAttribute("nonce");if(n&&!e.getAttribute("nonce")){let r=t.cloneNode(!0);return r.setAttribute("nonce",""),r.nonce=n,n===e.nonce&&e.isEqualNode(r)}}return e.isEqualNode(t)}function a(){return{mountedInstances:new Set,updateHead:e=>{let t={};e.forEach(e=>{if("link"===e.type&&e.props["data-optimized-fonts"]){if(document.querySelector('style[data-href="'+e.props["data-href"]+'"]'))return;e.props.href=e.props["data-href"],e.props["data-href"]=void 0}let n=t[e.type]||[];n.push(e),t[e.type]=n});let r=t.title?t.title[0]:null,o="";if(r){let{children:e}=r.props;o="string"==typeof e?e:Array.isArray(e)?e.join(""):""}o!==document.title&&(document.title=o),["meta","base","link","style","script"].forEach(e=>{n(e,t[e]||[])})}}}n=(e,t)=>{let n=document.getElementsByTagName("head")[0],r=n.querySelector("meta[name=next-head-count]"),a=Number(r.content),s=[];for(let t=0,n=r.previousElementSibling;t<a;t++,n=(null==n?void 0:n.previousElementSibling)||null){var l;(null==n?void 0:null==(l=n.tagName)?void 0:l.toLowerCase())===e&&s.push(n)}let u=t.map(o).filter(e=>{for(let t=0,n=s.length;t<n;t++)if(i(s[t],e))return s.splice(t,1),!1;return!0});s.forEach(e=>{var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)}),u.forEach(e=>n.insertBefore(e,r)),r.content=(a-s.length+u.length).toString()},("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esMo
1dule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},8003:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{default:function(){return b},handleClientScriptLoad:function(){return v},initScriptLoader:function(){return y}});let r=n(917),o=n(2140),i=n(7437),a=r._(n(4887)),s=o._(n(2265)),l=n(8701),u=n(8221),c=n(3515),d=new Map,f=new Set,h=["onLoad","onReady","dangerouslySetInnerHTML","children","onError","strategy","stylesheets"],p=e=>{if(a.default.preinit){e.forEach(e=>{a.default.preinit(e,{as:"style"})});return}if("undefined"!=typeof window){let t=document.head;e.forEach(e=>{let n=document.createElement("link");n.type="text/css",n.rel="stylesheet",n.href=e,t.appendChild(n)})}},m=e=>{let{src:t,id:n,onLoad:r=()=>{},onReady:o=null,dangerouslySetInnerHTML:i,children:a="",strategy:s="afterInteractive",onError:l,stylesheets:c}=e,m=n||t;if(m&&f.has(m))return;if(d.has(t)){f.add(m),d.get(t).then(r,l);return}let v=()=>{o&&o(),f.add(m)},y=document.createElement("script"),g=new Promise((e,t)=>{y.addEventListener("load",function(t){e(),r&&r.call(this,t),v()}),y.addEventListener("error",function(e){t(e)})}).catch(function(e){l&&l(e)});for(let[n,r]of(i?(y.innerHTML=i.__html||"",v()):a?(y.textContent="string"==typeof a?a:Array.isArray(a)?a.join(""):"",v()):t&&(y.src=t,d.set(t,g)),Object.entries(e))){if(void 0===r||h.includes(n))continue;let e=u.DOMAttributeNames[n]||n.toLowerCase();y.setAttribute(e,r)}"worker"===s&&y.setAttribute("type","text/partytown"),y.setAttribute("data-nscript",s),c&&p(c),document.body.appendChild(y)};function v(e){let{strategy:t="afterInteractive"}=e;"lazyOnload"===t?window.addEventListener("load",()=>{(0,c.requestIdleCallback)(()=>m(e))}):m(e)}function y(e){e.forEach(v),[...document.querySelectorAll('[data-nscript="beforeInteractive"]'),...document.querySelectorAll('[data-nscript="beforePageRender"]')].forEach(e=>{let t=e.id||e.getAttribute("src");f.add(t)})}function g(e){let{id:t,src:n="",onLoad:r=()=>{},onReady:o=null,strategy:u="afterInteractive",onError:d,stylesheets:h,...p}=e,{updateScripts:v,scripts:y,getIsSsr:g,appDir:b,nonce:w}=(0,s.useContext)(l.HeadManagerContext),x=(0,s.useRef)(!1);(0,s.useEffect)(()=>{let e=t||n;x.current||(o&&e&&f.has(e)&&o(),x.current=!0)},[o,t,n]);let E=(0,s.useRef)(!1);if((0,s.useEffect)(()=>{!E.current&&("afterInteractive"===u?m(e):"lazyOnload"===u&&("complete"===document.readyState?(0,c.requestIdleCallback)(()=>m(e)):window.addEventListener("load",()=>{(0,c.requestIdleCallback)(()=>m(e))})),E.current=!0)},[e,u]),("beforeInteractive"===u||"worker"===u)&&(v?(y[u]=(y[u]||[]).concat([{id:t,src:n,onLoad:r,onReady:o,onError:d,...p}]),v(y)):g&&g()?f.add(t||n):g&&!g()&&m(e)),b){if(h&&h.forEach(e=>{a.default.preinit(e,{as:"style"})}),"beforeInteractive"===u)return n?(a.default.preload(n,p.integrity?{as:"script",integrity:p.integrity,nonce:w,crossOrigin:p.crossOrigin}:{as:"script",nonce:w,crossOrigin:p.crossOrigin}),(0,i.jsx)("script",{nonce:w,dangerouslySetInnerHTML:{__html:"(self.__next_s=self.__next_s||[]).push("+JSON.stringify([n,{...p,id:t}])+")"}})):(p.dangerouslySetInnerHTML&&(p.children=p.dangerouslySetInnerHTML.__html,delete p.dangerouslySetInnerHTML),(0,i.jsx)("script",{nonce:w,dangerouslySetInnerHTML:{__html:"(self.__next_s=self.__next_s||[]).push("+JSON.stringify([0,{...p,id:t}])+")"}}));"afterInteractive"===u&&n&&a.default.preload(n,p.integrity?{as:"script",integrity:p.integrity,nonce:w,crossOrigin:p.crossOrigin}:{as:"script",nonce:w,crossOrigin:p.crossOrigin})}return null}Object.defineProperty(g,"__nextScript",{value:!0});let b=g;("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},4227:function(e){!function(){var t={229:function(e){var t,n,r,o=e.exports={};function i(){throw Error("setTimeout has not been defined")}function a(){throw Error("clearTimeout has not been defined")}function s(e){if(t===setTimeout)return setTimeout(e,0);if((t===i||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:i}catch(e){t=i}try{n="function"==typeof clearTimeout?clearTimeout:a}catch(e){n=a}}();var l=[],u=!1,c=-1;function d(){u&&r&&(u=!1,r.length?l=r.concat(l):c=-1,l.length&&f())}function f(){if(!u){var e=s(d);u=!0;for(var t=l.length;t;){for(r=l,l=[];++c<t;)r&&r[c].run();c=-1,t=l.length}r=null,u=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===a||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function p(){}o.nextTick=function(e){var t=Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];l.push(new h(e,t)),1!==l.length||u||s(f)},h.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=p,o.addListener=p,o.once=p,o.off=p,o.removeListener=p,o.removeAllListeners=p,o.emit=p,o.prependListener=p,o.prependOnceListener=p,o.listeners=function(e){return[]},o.binding=function(e){throw Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw Error("process.chdir is not supported")},o.umask=function(){return 0}}},n={};function r(e){var o=n[e];if(void 0!==o)return o.exports;var i=n[e]={exports:{}},a=!0;try{t[e](i,i.exports,r),a=!1}finally{a&&delete n[e]}return i.exports}r.ab="//";var o=r(229);e.exports=o}()},7528:function(e){e.exports={style:{fontFamily:"'__Inter_37ef13', '__Inter_Fallback_37ef13'",fontStyle:"normal"},className:"__className_37ef13",variable:"__variable_37ef13"}},2976:function(e){e.exports={style:{fontFamily:"'__Space_Grotesk_49a339', '__Space_Grotesk_Fallback_49a339'",fontStyle:"normal"},className:"__className_49a339",variable:"__variable_49a339"}},2650:function(e,t,n){"use strict";let r;n.d(t,{x8:function(){return tr},VY:function(){return te},dk:function(){return tn},aV:function(){return e3},h_:function(){return e6},fC:function(){return e9},Dx:function(){return tt},xz:function(){return e4}});var o,i,a,s,l,u,c,d=n(2265),f=n(6741),h=n(8575),p=n(3966),m=n(9255),v=n(886),y=n(5278),g=n(6840),b=n(6606),w=n(7437),x="focusScope.autoFocusOnMount",E="focusScope.autoFocusOnUnmount",C={bubbles:!1,cancelable:!0},T=d.forwardRef((e,t)=>
1{let{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...a}=e,[s,l]=d.useState(null),u=(0,b.W)(o),c=(0,b.W)(i),f=d.useRef(null),p=(0,h.e)(t,e=>l(e)),m=d.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;d.useEffect(()=>{if(r){let e=function(e){if(m.paused||!s)return;let t=e.target;s.contains(t)?f.current=t:P(f.current,{select:!0})},t=function(e){if(m.paused||!s)return;let t=e.relatedTarget;null===t||s.contains(t)||P(f.current,{select:!0})};document.addEventListener("focusin",e),document.addEventListener("focusout",t);let n=new MutationObserver(function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&P(s)});return s&&n.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),n.disconnect()}}},[r,s,m.paused]),d.useEffect(()=>{if(s){k.add(m);let e=document.activeElement;if(!s.contains(e)){let t=new CustomEvent(x,C);s.addEventListener(x,u),s.dispatchEvent(t),t.defaultPrevented||(function(e){let{select:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=document.activeElement;for(let r of e)if(P(r,{select:t}),document.activeElement!==n)return}(S(s).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&P(s))}return()=>{s.removeEventListener(x,u),setTimeout(()=>{let t=new CustomEvent(E,C);s.addEventListener(E,c),s.dispatchEvent(t),t.defaultPrevented||P(null!=e?e:document.body,{select:!0}),s.removeEventListener(E,c),k.remove(m)},0)}}},[s,u,c,m]);let v=d.useCallback(e=>{if(!n&&!r||m.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,o=document.activeElement;if(t&&o){let t=e.currentTarget,[r,i]=function(e){let t=S(e);return[R(t,e),R(t.reverse(),e)]}(t);r&&i?e.shiftKey||o!==i?e.shiftKey&&o===r&&(e.preventDefault(),n&&P(i,{select:!0})):(e.preventDefault(),n&&P(r,{select:!0})):o===t&&e.preventDefault()}},[n,r,m.paused]);return(0,w.jsx)(g.WV.div,{tabIndex:-1,...a,ref:p,onKeyDown:v})});function S(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function R(e,t){for(let n of e)if(!function(e,t){let{upTo:n}=t;if("hidden"===getComputedStyle(e).visibility)return!0;for(;e&&(void 0===n||e!==n);){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}(n,{upTo:t}))return n}function P(e){let{select:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e&&e.focus){var n;let r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&(n=e)instanceof HTMLInputElement&&"select"in n&&t&&e.select()}}T.displayName="FocusScope";var k=(r=[],{add(e){let t=r[0];e!==t&&(null==t||t.pause()),(r=A(r,e)).unshift(e)},remove(e){var t;null===(t=(r=A(r,e))[0])||void 0===t||t.resume()}});function A(e,t){let n=[...e],r=n.indexOf(t);return -1!==r&&n.splice(r,1),n}var O=n(3832),M=n(1599),L=0;function j(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var D=function(){return(D=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function N(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}"function"==typeof SuppressedError&&SuppressedError;var I="right-scroll-bar-position",F="width-before-scroll-bar";function _(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var q="undefined"!=typeof window?d.useLayoutEffect:d.useEffect,B=new WeakMap,W=(void 0===o&&(o={}),(void 0===i&&(i=function(e){return e}),a=[],s=!1,l={read:function(){if(s)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return a.length?a[a.length-1]:null},useMedium:function(e){var t=i(e,s);return a.push(t),function(){a=a.filter(function(e){return e!==t})}},assignSyncMedium:function(e){for(s=!0;a.length;){var t=a;a=[],t.forEach(e)}a={push:function(t){return e(t)},filter:function(){return a}}},assignMedium:function(e){s=!0;var t=[];if(a.length){var n=a;
1a=[],n.forEach(e),t=a}var r=function(){var n=t;t=[],n.forEach(e)},o=function(){return Promise.resolve().then(r)};o(),a={push:function(e){t.push(e),o()},filter:function(e){return t=t.filter(e),a}}}}).options=D({async:!0,ssr:!1},o),l),H=function(){},z=d.forwardRef(function(e,t){var n,r,o,i,a=d.useRef(null),s=d.useState({onScrollCapture:H,onWheelCapture:H,onTouchMoveCapture:H}),l=s[0],u=s[1],c=e.forwardProps,f=e.children,h=e.className,p=e.removeScrollBar,m=e.enabled,v=e.shards,y=e.sideCar,g=e.noRelative,b=e.noIsolation,w=e.inert,x=e.allowPinchZoom,E=e.as,C=e.gapMode,T=N(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),S=(n=[a,t],r=function(e){return n.forEach(function(t){return _(t,e)})},(o=(0,d.useState)(function(){return{value:null,callback:r,facade:{get current(){return o.value},set current(value){var e=o.value;e!==value&&(o.value=value,o.callback(value,e))}}}})[0]).callback=r,i=o.facade,q(function(){var e=B.get(i);if(e){var t=new Set(e),r=new Set(n),o=i.current;t.forEach(function(e){r.has(e)||_(e,null)}),r.forEach(function(e){t.has(e)||_(e,o)})}B.set(i,n)},[n]),i),R=D(D({},T),l);return d.createElement(d.Fragment,null,m&&d.createElement(y,{sideCar:W,removeScrollBar:p,shards:v,noRelative:g,noIsolation:b,inert:w,setCallbacks:u,allowPinchZoom:!!x,lockRef:a,gapMode:C}),c?d.cloneElement(d.Children.only(f),D(D({},R),{ref:S})):d.createElement(void 0===E?"div":E,D({},R,{className:h,ref:S}),f))});z.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},z.classNames={fullWidth:F,zeroRight:I};var V=function(e){var t=e.sideCar,n=N(e,["sideCar"]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw Error("Sidecar medium not found");return d.createElement(r,D({},n))};V.isSideCarExport=!0;var K=function(){var e=0,t=null;return{add:function(r){if(0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=c||n.nc;return t&&e.setAttribute("nonce",t),e}())){var o,i;(o=t).styleSheet?o.styleSheet.cssText=r:o.appendChild(document.createTextNode(r)),i=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(i)}e++},remove:function(){--e||!t||(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Y=function(){var e=K();return function(t,n){d.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},U=function(){var e=Y();return function(t){return e(t.styles,t.dynamic),null}},Q={left:0,top:0,right:0,gap:0},X=function(e){return parseInt(e||"",10)||0},G=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],o=t["padding"===e?"paddingRight":"marginRight"];return[X(n),X(r),X(o)]},Z=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return Q;var t=G(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},$=U(),J="data-scroll-locked",ee=function(e,t,n,r){var o=e.left,i=e.top,a=e.right,s=e.gap;return void 0===n&&(n="margin"),"\n  .".concat("with-scroll-bars-hidden"," {\n   overflow: hidden ").concat(r,";\n   padding-right: ").concat(s,"px ").concat(r,";\n  }\n  body[").concat(J,"] {\n    overflow: hidden ").concat(r,";\n    overscroll-behavior: contain;\n    ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n    padding-left: ".concat(o,"px;\n    padding-top: ").concat(i,"px;\n    padding-right: ").concat(a,"px;\n    margin-left:0;\n    margin-top:0;\n    margin-right: ").concat(s,"px ").concat(r,";\n    "),"padding"===n&&"padding-right: ".concat(s,"px ").concat(r,";")].filter(Boolean).join(""),"\n  }\n  \n  .").concat(I," {\n    right: ").concat(s,"px ").concat(r,";\n  }\n  \n  .").concat(F," {\n    margin-right: ").concat(s,"px ").concat(r,";\n  }\n  \n  .").concat(I," .").concat(I," {\n    right: 0 ").concat(r,";\n  }\n  \n  .").concat(F," .").concat(F," {\n    margin-right: 0 ").concat(r,";\n  }\n  \n  body[").concat(J,"] {\n    ").concat("--removed-body-scroll-bar-size",": ").concat(s,"px;\n  }\n")},et=function(){var e=parseInt(document.body.getAttribute(J)||"0",10);return isFinite(e)?e:0},en=function(){d.useEffect(function(){return document.body.setAttribute(J,(et()+1).toString()),function(){var e=et()-1;e<=0?document.body.removeAttribute(J):document.body.setAttribute(J,e.toString())}},[])},er=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=void 0===r?"margin":r;en();var i=d.useMemo(function(){return Z(o)},[o]);return d.createElement($,{styles:ee(i,!t,o,n?"":"!important")})},eo=!1;if("undefined"!=typeof window)try{var ei=Object.defineProperty({},"passive",{get:function(){return eo=!0,!0}});window.addEventListener("test",ei,ei),window.removeEventListener("test",ei,ei)}catch(e){eo=!1}var ea=!!eo&&{passive:!1},es=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&"TEXTAREA"!==e.tagName&&"visible"===n[t])},el=function(e,t){var n=t.ownerDocument,r=t;do{if("undefined"!=typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),eu(e,r)){var o=ec(e,r);if(o[1]>o[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1}
1,eu=function(e,t){return"v"===e?es(t,"overflowY"):es(t,"overflowX")},ec=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},ed=function(e,t,n,r,o){var i,a=(i=window.getComputedStyle(t).direction,"h"===e&&"rtl"===i?-1:1),s=a*r,l=n.target,u=t.contains(l),c=!1,d=s>0,f=0,h=0;do{if(!l)break;var p=ec(e,l),m=p[0],v=p[1]-p[2]-a*m;(m||v)&&eu(e,l)&&(f+=v,h+=m);var y=l.parentNode;l=y&&y.nodeType===Node.DOCUMENT_FRAGMENT_NODE?y.host:y}while(!u&&l!==document.body||u&&(t.contains(l)||t===l));return d&&(o&&1>Math.abs(f)||!o&&s>f)?c=!0:!d&&(o&&1>Math.abs(h)||!o&&-s>h)&&(c=!0),c},ef=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},eh=function(e){return[e.deltaX,e.deltaY]},ep=function(e){return e&&"current"in e?e.current:e},em=0,ev=[],ey=(u=function(e){var t=d.useRef([]),n=d.useRef([0,0]),r=d.useRef(),o=d.useState(em++)[0],i=d.useState(U)[0],a=d.useRef(e);d.useEffect(function(){a.current=e},[e]),d.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var t=(function(e,t,n){if(n||2==arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))})([e.lockRef.current],(e.shards||[]).map(ep),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=d.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!a.current.allowPinchZoom;var o,i=ef(e),s=n.current,l="deltaX"in e?e.deltaX:s[0]-i[0],u="deltaY"in e?e.deltaY:s[1]-i[1],c=e.target,d=Math.abs(l)>Math.abs(u)?"h":"v";if("touches"in e&&"h"===d&&"range"===c.type)return!1;var f=el(d,c);if(!f)return!0;if(f?o=d:(o="v"===d?"h":"v",f=el(d,c)),!f)return!1;if(!r.current&&"changedTouches"in e&&(l||u)&&(r.current=o),!o)return!0;var h=r.current||o;return ed(h,t,e,"h"===h?l:u,!0)},[]),l=d.useCallback(function(e){if(ev.length&&ev[ev.length-1]===i){var n="deltaY"in e?eh(e):ef(e),r=t.current.filter(function(t){var r;return t.name===e.type&&(t.target===e.target||e.target===t.shadowParent)&&(r=t.delta)[0]===n[0]&&r[1]===n[1]})[0];if(r&&r.should){e.cancelable&&e.preventDefault();return}if(!r){var o=(a.current.shards||[]).map(ep).filter(Boolean).filter(function(t){return t.contains(e.target)});(o.length>0?s(e,o[0]):!a.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),u=d.useCallback(function(e,n,r,o){var i={name:e,delta:n,target:r,should:o,shadowParent:function(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}(r)};t.current.push(i),setTimeout(function(){t.current=t.current.filter(function(e){return e!==i})},1)},[]),c=d.useCallback(function(e){n.current=ef(e),r.current=void 0},[]),f=d.useCallback(function(t){u(t.type,eh(t),t.target,s(t,e.lockRef.current))},[]),h=d.useCallback(function(t){u(t.type,ef(t),t.target,s(t,e.lockRef.current))},[]);d.useEffect(function(){return ev.push(i),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:h}),document.addEventListener("wheel",l,ea),document.addEventListener("touchmove",l,ea),document.addEventListener("touchstart",c,ea),function(){ev=ev.filter(function(e){return e!==i}),document.removeEventListener("wheel",l,ea),document.removeEventListener("touchmove",l,ea),document.removeEventListener("touchstart",c,ea)}},[]);var p=e.removeScrollBar,m=e.inert;return d.createElement(d.Fragment,null,m?d.createElement(i,{styles:"\n  .block-interactivity-".concat(o," {pointer-events: none;}\n  .allow-interactivity-").concat(o," {pointer-events: all;}\n")}):null,p?d.createElement(er,{noRelative:e.noRelative,gapMode:e.gapMode}):null)},W.useMedium(u),V),eg=d.forwardRef(function(e,t){return d.createElement(z,D({},e,{ref:t,sideCar:ey}))});eg.classNames=z.classNames;var eb=new WeakMap,ew=new WeakMap,ex={},eE=0,eC=function(e){return e&&(e.host||eC(e.parentNode))},eT=function(e,t,n,r){var o=(Array.isArray(e)?e:[e]).map(function(e){if(t.contains(e))return e;var n=eC(e);return n&&t.contains(n)?n:(console.error("aria-hidden",e,"in not contained inside",t,". Doing nothing"),null)}).filter(function(e){return!!e});ex[n]||(ex[n]=new WeakMap);var i=ex[n],a=[],s=new Set,l=new Set(o),u=function(e){!e||s.has(e)||(s.add(e),u(e.parentNode))};o.forEach(u);var c=function(e){!e||l.has(e)||Array.prototype.forEach.call(e.children,function(e){if(s.has(e))c(e);else try{var t=e.getAttribute(r),o=null!==t&&"false"!==t,l=(eb.get(e)||0)+1,u=(i.get(e)||0)+1;eb.set(e,l),i.set(e,u),a.push(e),1===l&&o&&ew.set(e,!0),1===u&&e.setAttribute(n,"true"),o||e.setAttribute(r,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}})};return c(t),s.clear(),eE++,function(){a.forEach(function(e){var t=eb.get(e)-1,o=i.get(e)-1;eb.set(e,t),i.set(e,o),t||(ew.has(e)||e.removeAttribute(r),ew.delete(e)),o||e.removeAttribute(n)}),--eE||(eb=new WeakMap,eb=new WeakMap,ew=new WeakMap,ex={})}},eS=function(e,t,n){void 0===n&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=t||("undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),eT(r,o,n,"aria-hidden")):function(){return null}},eR=n(7495),eP="Dialog",[ek,eA]=(0,p.b)(eP),[eO,eM]=ek(eP),eL=e=>{let{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:i,modal:
1a=!0}=e,s=d.useRef(null),l=d.useRef(null),[u,c]=(0,v.T)({prop:r,defaultProp:null!=o&&o,onChange:i,caller:eP});return(0,w.jsx)(eO,{scope:t,triggerRef:s,contentRef:l,contentId:(0,m.M)(),titleId:(0,m.M)(),descriptionId:(0,m.M)(),open:u,onOpenChange:c,onOpenToggle:d.useCallback(()=>c(e=>!e),[c]),modal:a,children:n})};eL.displayName=eP;var ej="DialogTrigger",eD=d.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,o=eM(ej,n),i=(0,h.e)(t,o.triggerRef);return(0,w.jsx)(g.WV.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":e0(o.open),...r,ref:i,onClick:(0,f.M)(e.onClick,o.onOpenToggle)})});eD.displayName=ej;var eN="DialogPortal",[eI,eF]=ek(eN,{forceMount:void 0}),e_=e=>{let{__scopeDialog:t,forceMount:n,children:r,container:o}=e,i=eM(eN,t);return(0,w.jsx)(eI,{scope:t,forceMount:n,children:d.Children.map(r,e=>(0,w.jsx)(M.z,{present:n||i.open,children:(0,w.jsx)(O.h,{asChild:!0,container:o,children:e})}))})};e_.displayName=eN;var eq="DialogOverlay",eB=d.forwardRef((e,t)=>{let n=eF(eq,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=eM(eq,e.__scopeDialog);return i.modal?(0,w.jsx)(M.z,{present:r||i.open,children:(0,w.jsx)(eH,{...o,ref:t})}):null});eB.displayName=eq;var eW=(0,eR.Z8)("DialogOverlay.RemoveScroll"),eH=d.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,o=eM(eq,n);return(0,w.jsx)(eg,{as:eW,allowPinchZoom:!0,shards:[o.contentRef],children:(0,w.jsx)(g.WV.div,{"data-state":e0(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),ez="DialogContent",eV=d.forwardRef((e,t)=>{let n=eF(ez,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=eM(ez,e.__scopeDialog);return(0,w.jsx)(M.z,{present:r||i.open,children:i.modal?(0,w.jsx)(eK,{...o,ref:t}):(0,w.jsx)(eY,{...o,ref:t})})});eV.displayName=ez;var eK=d.forwardRef((e,t)=>{let n=eM(ez,e.__scopeDialog),r=d.useRef(null),o=(0,h.e)(t,n.contentRef,r);return d.useEffect(()=>{let e=r.current;if(e)return eS(e)},[]),(0,w.jsx)(eU,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,f.M)(e.onCloseAutoFocus,e=>{var t;e.preventDefault(),null===(t=n.triggerRef.current)||void 0===t||t.focus()}),onPointerDownOutside:(0,f.M)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;(2===t.button||n)&&e.preventDefault()}),onFocusOutside:(0,f.M)(e.onFocusOutside,e=>e.preventDefault())})}),eY=d.forwardRef((e,t)=>{let n=eM(ez,e.__scopeDialog),r=d.useRef(!1),o=d.useRef(!1);return(0,w.jsx)(eU,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var i,a;null===(i=e.onCloseAutoFocus)||void 0===i||i.call(e,t),t.defaultPrevented||(r.current||null===(a=n.triggerRef.current)||void 0===a||a.focus(),t.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:t=>{var i,a;null===(i=e.onInteractOutside)||void 0===i||i.call(e,t),t.defaultPrevented||(r.current=!0,"pointerdown"!==t.detail.originalEvent.type||(o.current=!0));let s=t.target;(null===(a=n.triggerRef.current)||void 0===a?void 0:a.contains(s))&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&o.current&&t.preventDefault()}})}),eU=d.forwardRef((e,t)=>{let{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,...a}=e,s=eM(ez,n),l=d.useRef(null),u=(0,h.e)(t,l);return d.useEffect(()=>{var e,t;let n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",null!==(e=n[0])&&void 0!==e?e:j()),document.body.insertAdjacentElement("beforeend",null!==(t=n[1])&&void 0!==t?t:j()),L++,()=>{1===L&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),L--}},[]),(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(T,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i,children:(0,w.jsx)(y.XB,{role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":e0(s.open),...a,ref:u,onDismiss:()=>s.onOpenChange(!1)})}),(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(e7,{titleId:s.titleId}),(0,w.jsx)(e8,{contentRef:l,descriptionId:s.descriptionId})]})]})}),eQ="DialogTitle",eX=d.forwardRef((e,t)=>
1{let{__scopeDialog:n,...r}=e,o=eM(eQ,n);return(0,w.jsx)(g.WV.h2,{id:o.titleId,...r,ref:t})});eX.displayName=eQ;var eG="DialogDescription",eZ=d.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,o=eM(eG,n);return(0,w.jsx)(g.WV.p,{id:o.descriptionId,...r,ref:t})});eZ.displayName=eG;var e$="DialogClose",eJ=d.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,o=eM(e$,n);return(0,w.jsx)(g.WV.button,{type:"button",...r,ref:t,onClick:(0,f.M)(e.onClick,()=>o.onOpenChange(!1))})});function e0(e){return e?"open":"closed"}eJ.displayName=e$;var e1="DialogTitleWarning",[e2,e5]=(0,p.k)(e1,{contentName:ez,titleName:eQ,docsSlug:"dialog"}),e7=e=>{let{titleId:t}=e,n=e5(e1),r="`".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 d.useEffect(()=>{t&&!document.getElementById(t)&&console.error(r)},[r,t]),null},e8=e=>{let{contentRef:t,descriptionId:n}=e,r=e5("DialogDescriptionWarning"),o="Warning: Missing `Description` or `aria-describedby={undefined}` for {".concat(r.contentName,"}.");return d.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(o)},[o,t,n]),null},e9=eL,e4=eD,e6=e_,e3=eB,te=eV,tt=eX,tn=eZ,tr=eJ},5278:function(e,t,n){"use strict";n.d(t,{I0:function(){return y},XB:function(){return f},fC:function(){return v}});var r,o=n(2265),i=n(6741),a=n(6840),s=n(8575),l=n(6606),u=n(7437),c="dismissableLayer.update",d=o.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),f=o.forwardRef((e,t)=>{var n,f;let{disableOutsidePointerEvents:h=!1,onEscapeKeyDown:v,onPointerDownOutside:y,onFocusOutside:g,onInteractOutside:b,onDismiss:w,...x}=e,E=o.useContext(d),[C,T]=o.useState(null),S=null!==(f=null==C?void 0:C.ownerDocument)&&void 0!==f?f:null===(n=globalThis)||void 0===n?void 0:n.document,[,R]=o.useState({}),P=(0,s.e)(t,e=>T(e)),k=Array.from(E.layers),[A]=[...E.layersWithOutsidePointerEventsDisabled].slice(-1),O=k.indexOf(A),M=C?k.indexOf(C):-1,L=E.layersWithOutsidePointerEventsDisabled.size>0,j=M>=O,D=function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null===(t=globalThis)||void 0===t?void 0:t.document,r=(0,l.W)(e),i=o.useRef(!1),a=o.useRef(()=>{});return o.useEffect(()=>{let e=e=>{if(e.target&&!i.current){let t=function(){m("dismissableLayer.pointerDownOutside",r,o,{discrete:!0})},o={originalEvent:e};"touch"===e.pointerType?(n.removeEventListener("click",a.current),a.current=t,n.addEventListener("click",a.current,{once:!0})):t()}else n.removeEventListener("click",a.current);i.current=!1},t=window.setTimeout(()=>{n.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(t),n.removeEventListener("pointerdown",e),n.removeEventListener("click",a.current)}},[n,r]),{onPointerDownCapture:()=>i.current=!0}}(e=>{let t=e.target,n=[...E.branches].some(e=>e.contains(t));!j||n||(null==y||y(e),null==b||b(e),e.defaultPrevented||null==w||w())},S),N=function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null===(t=globalThis)||void 0===t?void 0:t.document,r=(0,l.W)(e),i=o.useRef(!1);return o.useEffect(()=>{let e=e=>{e.target&&!i.current&&m("dismissableLayer.focusOutside",r,{originalEvent:e},{discrete:!1})};return n.addEventListener("focusin",e),()=>n.removeEventListener("focusin",e)},[n,r]),{onFocusCapture:()=>i.current=!0,onBlurCapture:()=>i.current=!1}}(e=>{let t=e.target;[...E.branches].some(e=>e.contains(t))||(null==g||g(e),null==b||b(e),e.defaultPrevented||null==w||w())},S);return!function(e,t=globalThis?.document){let n=(0,l.W)(e);o.useEffect(()=>{let e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})},[n,t])}(e=>{M!==E.layers.size-1||(null==v||v(e),!e.defaultPrevented&&w&&(e.preventDefault(),w()))},S),o.useEffect(()=>{if(C)return h&&(0===E.layersWithOutsidePointerEventsDisabled.size&&(r=S.body.style.pointerEvents,S.body.style.pointerEvents="none"),E.layersWithOutsidePointerEventsDisabled.add(C)),E.layers.add(C),p(),()=>{h&&1===E.layersWithOutsidePointerEventsDisabled.size&&(S.body.style.pointerEvents=r)}},[C,S,h,E]),o.useEffect(()=>()=>{C&&(E.layers.delete(C),E.layersWithOutsidePointerEventsDisabled.delete(C),p())},[C,E]),o.useEffect(()=>{let e=()=>R({});return document.addEventListener(c,e),()=>document.removeEventListener(c,e)},[]),(0,u.jsx)(a.WV.div,{...x,ref:P,style:{pointerEvents:L?j?"auto":"none":void 0,...e.style},onFocusCapture:(0,i.M)(e.onFocusCapture,N.onFocusCapture),onBlurCapture:(0,i.M)(e.onBlurCapture,N.onBlurCapture),onPointerDownCapture:(0,i.M)(e.onPointerDownCapture,D.onPointerDownCapture)})});f.displayName="DismissableLayer";var h=o.forwardRef((e,t)=>
1{let n=o.useContext(d),r=o.useRef(null),i=(0,s.e)(t,r);return o.useEffect(()=>{let e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,u.jsx)(a.WV.div,{...e,ref:i})});function p(){let e=new CustomEvent(c);document.dispatchEvent(e)}function m(e,t,n,r){let{discrete:o}=r,i=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),o?(0,a.jH)(i,s):i.dispatchEvent(s)}h.displayName="DismissableLayerBranch";var v=f,y=h},3832:function(e,t,n){"use strict";n.d(t,{h:function(){return l}});var r=n(2265),o=n(4887),i=n(6840),a=n(1188),s=n(7437),l=r.forwardRef((e,t)=>{var n,l;let{container:u,...c}=e,[d,f]=r.useState(!1);(0,a.b)(()=>f(!0),[]);let h=u||d&&(null===(l=globalThis)||void 0===l?void 0:null===(n=l.document)||void 0===n?void 0:n.body);return h?o.createPortal((0,s.jsx)(i.WV.div,{...c,ref:t}),h):null});l.displayName="Portal"},1915:function(e,t,n){"use strict";n.d(t,{Dx:function(){return J},aU:function(){return et},dk:function(){return ee},fC:function(){return $},l_:function(){return Z},x8:function(){return en},zt:function(){return G}});var r=n(2265),o=n(4887),i=n(6741),a=n(8575),s=n(8398),l=n(3966),u=n(5278),c=n(3832),d=n(1599),f=n(6840),h=n(6606),p=n(886),m=n(1188),v=n(5098),y=n(7437),g="ToastProvider",[b,w,x]=(0,s.B)("Toast"),[E,C]=(0,l.b)("Toast",[x]),[T,S]=E(g),R=e=>{let{__scopeToast:t,label:n="Notification",duration:o=5e3,swipeDirection:i="right",swipeThreshold:a=50,children:s}=e,[l,u]=r.useState(null),[c,d]=r.useState(0),f=r.useRef(!1),h=r.useRef(!1);return n.trim()||console.error("Invalid prop `label` supplied to `".concat(g,"`. Expected non-empty `string`.")),(0,y.jsx)(b.Provider,{scope:t,children:(0,y.jsx)(T,{scope:t,label:n,duration:o,swipeDirection:i,swipeThreshold:a,toastCount:c,viewport:l,onViewportChange:u,onToastAdd:r.useCallback(()=>d(e=>e+1),[]),onToastRemove:r.useCallback(()=>d(e=>e-1),[]),isFocusedToastEscapeKeyDownRef:f,isClosePausedRef:h,children:s})})};R.displayName=g;var P="ToastViewport",k=["F8"],A="toast.viewportPause",O="toast.viewportResume",M=r.forwardRef((e,t)=>{let{__scopeToast:n,hotkey:o=k,label:i="Notifications ({hotkey})",...s}=e,l=S(P,n),c=w(n),d=r.useRef(null),h=r.useRef(null),p=r.useRef(null),m=r.useRef(null),v=(0,a.e)(t,m,l.onViewportChange),g=o.join("+").replace(/Key/g,"").replace(/Digit/g,""),x=l.toastCount>0;r.useEffect(()=>{let e=e=>{var t;0!==o.length&&o.every(t=>e[t]||e.code===t)&&(null===(t=m.current)||void 0===t||t.focus())};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[o]),r.useEffect(()=>{let e=d.current,t=m.current;if(x&&e&&t){let n=()=>{if(!l.isClosePausedRef.current){let e=new CustomEvent(A);t.dispatchEvent(e),l.isClosePausedRef.current=!0}},r=()=>{if(l.isClosePausedRef.current){let e=new CustomEvent(O);t.dispatchEvent(e),l.isClosePausedRef.current=!1}},o=t=>{e.contains(t.relatedTarget)||r()},i=()=>{e.contains(document.activeElement)||r()};return e.addEventListener("focusin",n),e.addEventListener("focusout",o),e.addEventListener("pointermove",n),e.addEventListener("pointerleave",i),window.addEventListener("blur",n),window.addEventListener("focus",r),()=>{e.removeEventListener("focusin",n),e.removeEventListener("focusout",o),e.removeEventListener("pointermove",n),e.removeEventListener("pointerleave",i),window.removeEventListener("blur",n),window.removeEventListener("focus",r)}}},[x,l.isClosePausedRef]);let E=r.useCallback(e=>{let{tabbingDirection:t}=e,n=c().map(e=>{let n=e.ref.current,r=[n,...function(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}(n)];return"forwards"===t?r:r.reverse()});return("forwards"===t?n.reverse():n).flat()},[c]);return r.useEffect(()=>{let e=m.current;if(e){let t=t=>{let n=t.altKey||t.ctrlKey||t.metaKey;if("Tab"===t.key&&!n){var r,o,i;let n=document.activeElement,a=t.shiftKey;if(t.target===e&&a){null===(r=h.current)||void 0===r||r.focus();return}let s=E({tabbingDirection:a?"backwards":"forwards"}),l=s.findIndex(e=>e===n);X(s.slice(l+1))?t.preventDefault():a?null===(o=h.current)||void 0===o||o.focus():null===(i=p.current)||void 0===i||i.focus()}};return e.addEventListener("keydown",t),()=>e.removeEventListener("keydown",t)}},[c,E]),(0,y.jsxs)(u.I0,{ref:d,role:"region","aria-label":i.replace("{hotkey}",g),tabIndex:-1,style:{pointerEvents:x?void 0:"none"},children:[x&&(0,y.jsx)(j,{ref:h,onFocusFromOutsideViewport:()=>{X(E({tabbingDirection:"forwards"}))}}),(0,y.jsx)(b.Slot,{scope:n,children:(0,y.jsx)(f.WV.ol,{tabIndex:-1,...s,ref:v})}),x&&(0,y.jsx)(j,{ref:p,onFocusFromOutsideViewport:()=>{X(E({tabbingDirection:"backwards"}))}})]})});M.displayName=P;var L="ToastFocusProxy",j=r.forwardRef((e,t)=>
1{let{__scopeToast:n,onFocusFromOutsideViewport:r,...o}=e,i=S(L,n);return(0,y.jsx)(v.TX,{"aria-hidden":!0,tabIndex:0,...o,ref:t,style:{position:"fixed"},onFocus:e=>{var t;let n=e.relatedTarget;(null===(t=i.viewport)||void 0===t?void 0:t.contains(n))||r()}})});j.displayName=L;var D="Toast",N=r.forwardRef((e,t)=>{let{forceMount:n,open:r,defaultOpen:o,onOpenChange:a,...s}=e,[l,u]=(0,p.T)({prop:r,defaultProp:null==o||o,onChange:a,caller:D});return(0,y.jsx)(d.z,{present:n||l,children:(0,y.jsx)(_,{open:l,...s,ref:t,onClose:()=>u(!1),onPause:(0,h.W)(e.onPause),onResume:(0,h.W)(e.onResume),onSwipeStart:(0,i.M)(e.onSwipeStart,e=>{e.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:(0,i.M)(e.onSwipeMove,e=>{let{x:t,y:n}=e.detail.delta;e.currentTarget.setAttribute("data-swipe","move"),e.currentTarget.style.setProperty("--radix-toast-swipe-move-x","".concat(t,"px")),e.currentTarget.style.setProperty("--radix-toast-swipe-move-y","".concat(n,"px"))}),onSwipeCancel:(0,i.M)(e.onSwipeCancel,e=>{e.currentTarget.setAttribute("data-swipe","cancel"),e.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),e.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),e.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),e.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:(0,i.M)(e.onSwipeEnd,e=>{let{x:t,y:n}=e.detail.delta;e.currentTarget.setAttribute("data-swipe","end"),e.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),e.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),e.currentTarget.style.setProperty("--radix-toast-swipe-end-x","".concat(t,"px")),e.currentTarget.style.setProperty("--radix-toast-swipe-end-y","".concat(n,"px")),u(!1)})})})});N.displayName=D;var[I,F]=E(D,{onClose(){}}),_=r.forwardRef((e,t)=>{let{__scopeToast:n,type:s="foreground",duration:l,open:c,onClose:d,onEscapeKeyDown:p,onPause:m,onResume:v,onSwipeStart:g,onSwipeMove:w,onSwipeCancel:x,onSwipeEnd:E,...C}=e,T=S(D,n),[R,P]=r.useState(null),k=(0,a.e)(t,e=>P(e)),M=r.useRef(null),L=r.useRef(null),j=l||T.duration,N=r.useRef(0),F=r.useRef(j),_=r.useRef(0),{onToastAdd:B,onToastRemove:W}=T,H=(0,h.W)(()=>{var e;(null==R?void 0:R.contains(document.activeElement))&&(null===(e=T.viewport)||void 0===e||e.focus()),d()}),z=r.useCallback(e=>{e&&e!==1/0&&(window.clearTimeout(_.current),N.current=new Date().getTime(),_.current=window.setTimeout(H,e))},[H]);r.useEffect(()=>{let e=T.viewport;if(e){let t=()=>{z(F.current),null==v||v()},n=()=>{let e=new Date().getTime()-N.current;F.current=F.current-e,window.clearTimeout(_.current),null==m||m()};return e.addEventListener(A,n),e.addEventListener(O,t),()=>{e.removeEventListener(A,n),e.removeEventListener(O,t)}}},[T.viewport,j,m,v,z]),r.useEffect(()=>{c&&!T.isClosePausedRef.current&&z(j)},[c,j,T.isClosePausedRef,z]),r.useEffect(()=>(B(),()=>W()),[B,W]);let V=r.useMemo(()=>R?function e(t){let n=[];return Array.from(t.childNodes).forEach(t=>{if(t.nodeType===t.TEXT_NODE&&t.textContent&&n.push(t.textContent),t.nodeType===t.ELEMENT_NODE){let r=t.ariaHidden||t.hidden||"none"===t.style.display,o=""===t.dataset.radixToastAnnounceExclude;if(!r){if(o){let e=t.dataset.radixToastAnnounceAlt;e&&n.push(e)}else n.push(...e(t))}}}),n}(R):null,[R]);return T.viewport?(0,y.jsxs)(y.Fragment,{children:[V&&(0,y.jsx)(q,{__scopeToast:n,role:"status","aria-live":"foreground"===s?"assertive":"polite","aria-atomic":!0,children:V}),(0,y.jsx)(I,{scope:n,onClose:H,children:o.createPortal((0,y.jsx)(b.ItemSlot,{scope:n,children:(0,y.jsx)(u.fC,{asChild:!0,onEscapeKeyDown:(0,i.M)(p,()=>{T.isFocusedToastEscapeKeyDownRef.current||H(),T.isFocusedToastEscapeKeyDownRef.current=!1}),children:(0,y.jsx)(f.WV.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":c?"open":"closed","data-swipe-direction":T.swipeDirection,...C,ref:k,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:(0,i.M)(e.onKeyDown,e=>{"Escape"!==e.key||(null==p||p(e.nativeEvent),e.nativeEvent.defaultPrevented||(T.isFocusedToastEscapeKeyDownRef.current=!0,H()))}),onPointerDown:(0,i.M)(e.onPointerDown,e=>{0===e.button&&(M.current={x:e.clientX,y:e.clientY})}),onPointerMove:(0,i.M)(e.onPointerMove,e=>{if(!M.current)return;let t=e.clientX-M.current.x,n=e.clientY-M.current.y,r=!!L.current,o=["left","right"].includes(T.swipeDirection),i=["left","up"].includes(T.swipeDirection)?Math.min:Math.max,a=o?i(0,t):0,s=o?0:i(0,n),l="touch"===e.pointerType?10:2,u={x:a,y:s},c={originalEvent:e,delta:u};r?(L.current=u,U("toast.swipeMove",w,c,{discrete:!1})):Q(u,T.swipeDirection,l)?(L.current=u,U("toast.swipeStart",g,c,{discrete:!1}),e.target.setPointerCapture(e.pointerId)):(Math.abs(t)>l||Math.abs(n)>l)&&(M.current=null)}),onPointerUp:(0,i.M)(e.onPointerUp,e=>{let t=L.current,n=e.target;if(n.hasPointerCapture(e.pointerId)&&n.releasePointerCapture(e.pointerId),L.current=null,M.current=null,t){let n=e.currentTarget,r={originalEvent:e,delta:t};Q(t,T.swipeDirection,T.swipeThreshold)?U("toast.swipeEnd",E,r,{discrete:!0}):U("toast.swipeCancel",x,r,{discrete:!0}),n.addEventListener("click",e=>e.preventDefault(),{once:!0})}})})})}),T.viewport)})]}):null}),q=e=>{let{__scopeToast:t,children:n,...o}=e,i=S(D,t),[a,s]=r.useState(!1),[l,u]=r.useState(!1);return function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:()=>{},t=(0,h.W)(e);(0,m.b)(()=>{let e=0,n=0;return e=window.requestAnimationFrame(()=>n=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(e),window.cancelAnimationFrame(n)}},[t])}(()=>s(!0)),r.useEffect(()=>{let e=window.setTimeout(()=>u(!0),1e3);return()=>window.clearTimeout(e)},[]),l?null:(0,y.jsx)(c.h,{asChild:!0,children:(0,y.jsx)(v.TX,{...o,children:a&&(0,y.jsxs)(y.Fragment,{children:[i.label," ",n]})})})},B=r.forwardRef((e,t)=>
1{let{__scopeToast:n,...r}=e;return(0,y.jsx)(f.WV.div,{...r,ref:t})});B.displayName="ToastTitle";var W=r.forwardRef((e,t)=>{let{__scopeToast:n,...r}=e;return(0,y.jsx)(f.WV.div,{...r,ref:t})});W.displayName="ToastDescription";var H="ToastAction",z=r.forwardRef((e,t)=>{let{altText:n,...r}=e;return n.trim()?(0,y.jsx)(Y,{altText:n,asChild:!0,children:(0,y.jsx)(K,{...r,ref:t})}):(console.error("Invalid prop `altText` supplied to `".concat(H,"`. Expected non-empty `string`.")),null)});z.displayName=H;var V="ToastClose",K=r.forwardRef((e,t)=>{let{__scopeToast:n,...r}=e,o=F(V,n);return(0,y.jsx)(Y,{asChild:!0,children:(0,y.jsx)(f.WV.button,{type:"button",...r,ref:t,onClick:(0,i.M)(e.onClick,o.onClose)})})});K.displayName=V;var Y=r.forwardRef((e,t)=>{let{__scopeToast:n,altText:r,...o}=e;return(0,y.jsx)(f.WV.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...o,ref:t})});function U(e,t,n,r){let{discrete:o}=r,i=n.originalEvent.currentTarget,a=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),o?(0,f.jH)(i,a):i.dispatchEvent(a)}var Q=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=Math.abs(e.x),o=Math.abs(e.y),i=r>o;return"left"===t||"right"===t?i&&r>n:!i&&o>n};function X(e){let t=document.activeElement;return e.some(e=>e===t||(e.focus(),document.activeElement!==t))}var G=R,Z=M,$=N,J=B,ee=W,et=z,en=K},2696:function(e,t,n){"use strict";n.d(t,{VY:function(){return tL},zt:function(){return tA},fC:function(){return tO},xz:function(){return tM}});var r=n(2265),o=n(6741),i=n(8575),a=n(3966),s=n(5278),l=n(9255);let u=["top","right","bottom","left"],c=Math.min,d=Math.max,f=Math.round,h=Math.floor,p=e=>({x:e,y:e}),m={left:"right",right:"left",bottom:"top",top:"bottom"},v={start:"end",end:"start"};function y(e,t){return"function"==typeof e?e(t):e}function g(e){return e.split("-")[0]}function b(e){return e.split("-")[1]}function w(e){return"x"===e?"y":"x"}function x(e){return"y"===e?"height":"width"}let E=new Set(["top","bottom"]);function C(e){return E.has(g(e))?"y":"x"}function T(e){return e.replace(/start|end/g,e=>v[e])}let S=["left","right"],R=["right","left"],P=["top","bottom"],k=["bottom","top"];function A(e){return e.replace(/left|right|bottom|top/g,e=>m[e])}function O(e){return"number"!=typeof e?{top:0,right:0,bottom:0,left:0,...e}:{top:e,right:e,bottom:e,left:e}}function M(e){let{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function L(e,t,n){let r,{reference:o,floating:i}=e,a=C(t),s=w(C(t)),l=x(s),u=g(t),c="y"===a,d=o.x+o.width/2-i.width/2,f=o.y+o.height/2-i.height/2,h=o[l]/2-i[l]/2;switch(u){case"top":r={x:d,y:o.y-i.height};break;case"bottom":r={x:d,y:o.y+o.height};break;case"right":r={x:o.x+o.width,y:f};break;case"left":r={x:o.x-i.width,y:f};break;default:r={x:o.x,y:o.y}}switch(b(t)){case"start":r[s]-=h*(n&&c?-1:1);break;case"end":r[s]+=h*(n&&c?-1:1)}return r}let j=async(e,t,n)=>{let{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:a}=n,s=i.filter(Boolean),l=await (null==a.isRTL?void 0:a.isRTL(t)),u=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:c,y:d}=L(u,r,l),f=r,h={},p=0;for(let n=0;n<s.length;n++){let{name:i,fn:m}=s[n],{x:v,y:y,data:g,reset:b}=await m({x:c,y:d,initialPlacement:r,placement:f,strategy:o,middlewareData:h,rects:u,platform:a,elements:{reference:e,floating:t}});c=null!=v?v:c,d=null!=y?y:d,h={...h,[i]:{...h[i],...g}},b&&p<=50&&(p++,"object"==typeof b&&(b.placement&&(f=b.placement),b.rects&&(u=!0===b.rects?await a.getElementRects({reference:e,floating:t,strategy:o}):b.rects),{x:c,y:d}=L(u,f,l)),n=-1)}return{x:c,y:d,placement:f,strategy:o,middlewareData:h}};async function D(e,t){var n;void 0===t&&(t={});let{x:r,y:o,platform:i,rects:a,elements:s,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:d="floating",altBoundary:f=!1,padding:h=0}=y(t,e),p=O(h),m=s[f?"floating"===d?"reference":"floating":d],v=M(await i.getClippingRect({element:null==(n=await (null==i.isElement?void 0:i.isElement(m)))||n?m:m.contextElement||await (null==i.getDocumentElement?void 0:i.getDocumentElement(s.floating)),boundary:u,rootBoundary:c,strategy:l})),g="floating"===d?{x:r,y:o,width:a.floating.width,height:a.floating.height}:a.reference,b=await (null==i.getOffsetParent?void 0:i.getOffsetParent(s.floating)),w=await (null==i.isElement?void 0:i.isElement(b))&&await (null==i.getScale?void 0:i.getScale(b))||{x:1,y:1},x=M(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:g,offsetParent:b,strategy:l}):g);return{top:(v.top-x.top+p.top)/w.y,bottom:(x.bottom-v.bottom+p.bottom)/w.y,left:(v.left-x.left+p.left)/w.x,right:(x.right-v.right+p.right)/w.x}}function N(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function I(e){return u.some(t=>e[t]>=0)}let F=new Set(["left","top"]);async function _(e,t){let{placement:n,platform:r,elements:o}=e,i=await (null==r.isRTL?void 0:r.isRTL(o.floating)),a=g(n),s=b(n),l="y"===C(n),u=F.has(a)?-1:1,c=i&&l?-1:1,d=y(t,e),{mainAxis:f,crossAxis:h,alignmentAxis:p}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}
1:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&"number"==typeof p&&(h="end"===s?-1*p:p),l?{x:h*c,y:f*u}:{x:f*u,y:h*c}}function q(){return"undefined"!=typeof window}function B(e){return z(e)?(e.nodeName||"").toLowerCase():"#document"}function W(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function H(e){var t;return null==(t=(z(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function z(e){return!!q()&&(e instanceof Node||e instanceof W(e).Node)}function V(e){return!!q()&&(e instanceof Element||e instanceof W(e).Element)}function K(e){return!!q()&&(e instanceof HTMLElement||e instanceof W(e).HTMLElement)}function Y(e){return!!q()&&"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof W(e).ShadowRoot)}let U=new Set(["inline","contents"]);function Q(e){let{overflow:t,overflowX:n,overflowY:r,display:o}=ei(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!U.has(o)}let X=new Set(["table","td","th"]),G=[":popover-open",":modal"];function Z(e){return G.some(t=>{try{return e.matches(t)}catch(e){return!1}})}let $=["transform","translate","scale","rotate","perspective"],J=["transform","translate","scale","rotate","perspective","filter"],ee=["paint","layout","strict","content"];function et(e){let t=en(),n=V(e)?ei(e):e;return $.some(e=>!!n[e]&&"none"!==n[e])||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||J.some(e=>(n.willChange||"").includes(e))||ee.some(e=>(n.contain||"").includes(e))}function en(){return"undefined"!=typeof CSS&&!!CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")}let er=new Set(["html","body","#document"]);function eo(e){return er.has(B(e))}function ei(e){return W(e).getComputedStyle(e)}function ea(e){return V(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function es(e){if("html"===B(e))return e;let t=e.assignedSlot||e.parentNode||Y(e)&&e.host||H(e);return Y(t)?t.host:t}function el(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);let o=function e(t){let n=es(t);return eo(n)?t.ownerDocument?t.ownerDocument.body:t.body:K(n)&&Q(n)?n:e(n)}(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),a=W(o);if(i){let e=eu(a);return t.concat(a,a.visualViewport||[],Q(o)?o:[],e&&n?el(e):[])}return t.concat(o,el(o,[],n))}function eu(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function ec(e){let t=ei(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,o=K(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,s=f(n)!==i||f(r)!==a;return s&&(n=i,r=a),{width:n,height:r,$:s}}function ed(e){return V(e)?e:e.contextElement}function ef(e){let t=ed(e);if(!K(t))return p(1);let n=t.getBoundingClientRect(),{width:r,height:o,$:i}=ec(t),a=(i?f(n.width):n.width)/r,s=(i?f(n.height):n.height)/o;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}let eh=p(0);function ep(e){let t=W(e);return en()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:eh}function em(e,t,n,r){var o;void 0===t&&(t=!1),void 0===n&&(n=!1);let i=e.getBoundingClientRect(),a=ed(e),s=p(1);t&&(r?V(r)&&(s=ef(r)):s=ef(e));let l=(void 0===(o=n)&&(o=!1),r&&(!o||r===W(a))&&o)?ep(a):p(0),u=(i.left+l.x)/s.x,c=(i.top+l.y)/s.y,d=i.width/s.x,f=i.height/s.y;if(a){let e=W(a),t=r&&V(r)?W(r):r,n=e,o=eu(n);for(;o&&r&&t!==n;){let e=ef(o),t=o.getBoundingClientRect(),r=ei(o),i=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,a=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;u*=e.x,c*=e.y,d*=e.x,f*=e.y,u+=i,c+=a,o=eu(n=W(o))}}return M({width:d,height:f,x:u,y:c})}function ev(e,t){let n=ea(e).scrollLeft;return t?t.left+n:em(H(e)).left+n}function ey(e,t,n){void 0===n&&(n=!1);let r=e.getBoundingClientRect();return{x:r.left+t.scrollLeft-(n?0:ev(e,r)),y:r.top+t.scrollTop}}let eg=new Set(["absolute","fixed"]);function eb(e,t,n){let r;if("viewport"===t)r=function(e,t){let n=W(e),r=H(e),o=n.visualViewport,i=r.clientWidth,a=r.clientHeight,s=0,l=0;if(o){i=o.width,a=o.height;let e=en();
1(!e||e&&"fixed"===t)&&(s=o.offsetLeft,l=o.offsetTop)}return{width:i,height:a,x:s,y:l}}(e,n);else if("document"===t)r=function(e){let t=H(e),n=ea(e),r=e.ownerDocument.body,o=d(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=d(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),a=-n.scrollLeft+ev(e),s=-n.scrollTop;return"rtl"===ei(r).direction&&(a+=d(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:a,y:s}}(H(e));else if(V(t))r=function(e,t){let n=em(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=K(e)?ef(e):p(1),a=e.clientWidth*i.x;return{width:a,height:e.clientHeight*i.y,x:o*i.x,y:r*i.y}}(t,n);else{let n=ep(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return M(r)}function ew(e){return"static"===ei(e).position}function ex(e,t){if(!K(e)||"fixed"===ei(e).position)return null;if(t)return t(e);let n=e.offsetParent;return H(e)===n&&(n=n.ownerDocument.body),n}function eE(e,t){var n;let r=W(e);if(Z(e))return r;if(!K(e)){let t=es(e);for(;t&&!eo(t);){if(V(t)&&!ew(t))return t;t=es(t)}return r}let o=ex(e,t);for(;o&&(n=o,X.has(B(n)))&&ew(o);)o=ex(o,t);return o&&eo(o)&&ew(o)&&!et(o)?r:o||function(e){let t=es(e);for(;K(t)&&!eo(t);){if(et(t))return t;if(Z(t))break;t=es(t)}return null}(e)||r}let eC=async function(e){let t=this.getOffsetParent||eE,n=this.getDimensions,r=await n(e.floating);return{reference:function(e,t,n){let r=K(t),o=H(t),i="fixed"===n,a=em(e,!0,i,t),s={scrollLeft:0,scrollTop:0},l=p(0);if(r||!r&&!i){if(("body"!==B(t)||Q(o))&&(s=ea(t)),r){let e=em(t,!0,i,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else o&&(l.x=ev(o))}i&&!r&&o&&(l.x=ev(o));let u=!o||r||i?p(0):ey(o,s);return{x:a.left+s.scrollLeft-l.x-u.x,y:a.top+s.scrollTop-l.y-u.y,width:a.width,height:a.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},eT={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e,i="fixed"===o,a=H(r),s=!!t&&Z(t.floating);if(r===a||s&&i)return n;let l={scrollLeft:0,scrollTop:0},u=p(1),c=p(0),d=K(r);if((d||!d&&!i)&&(("body"!==B(r)||Q(a))&&(l=ea(r)),K(r))){let e=em(r);u=ef(r),c.x=e.x+r.clientLeft,c.y=e.y+r.clientTop}let f=!a||d||i?p(0):ey(a,l,!0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+c.x+f.x,y:n.y*u.y-l.scrollTop*u.y+c.y+f.y}},getDocumentElement:H,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e,i=[..."clippingAncestors"===n?Z(t)?[]:function(e,t){let n=t.get(e);if(n)return n;let r=el(e,[],!1).filter(e=>V(e)&&"body"!==B(e)),o=null,i="fixed"===ei(e).position,a=i?es(e):e;for(;V(a)&&!eo(a);){let t=ei(a),n=et(a);n||"fixed"!==t.position||(o=null),(i?!n&&!o:!n&&"static"===t.position&&!!o&&eg.has(o.position)||Q(a)&&!n&&function e(t,n){let r=es(t);return!(r===n||!V(r)||eo(r))&&("fixed"===ei(r).position||e(r,n))}(e,a))?r=r.filter(e=>e!==a):o=t,a=es(a)}return t.set(e,r),r}(t,this._c):[].concat(n),r],a=i[0],s=i.reduce((e,n)=>{let r=eb(t,n,o);return e.top=d(r.top,e.top),e.right=c(r.right,e.right),e.bottom=c(r.bottom,e.bottom),e.left=d(r.left,e.left),e},eb(t,a,o));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:eE,getElementRects:eC,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:n}=ec(e);return{width:t,height:n}},getScale:ef,isElement:V,isRTL:function(e){return"rtl"===ei(e).direction}};function eS(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}let eR=e=>({name:"arrow",options:e,async fn(t){let{x:n,y:r,placement:o,rects:i,platform:a,elements:s,middlewareData:l}=t,{element:u,padding:f=0}=y(e,t)||{};if(null==u)return{};let h=O(f),p={x:n,y:r},m=w(C(o)),v=x(m),g=await a.getDimensions(u),E="y"===m,T=E?"clientHeight":"clientWidth",S=i.reference[v]+i.reference[m]-p[m]-i.floating[v],R=p[m]-i.reference[m],P=await (null==a.getOffsetParent?void 0:a.getOffsetParent(u)),k=P?P[T]:0;k&&await (null==a.isElement?void 0:a.isElement(P))||(k=s.floating[T]||i.floating[v]);let A=k/2-g[v]/2-1,M=c(h[E?"top":"left"],A),L=c(h[E?"bottom":"right"],A),j=k-g[v]-L,D=k/2-g[v]/2+(S/2-R/2),N=d(M,c(D,j)),I=!l.arrow&&null!=b(o)&&D!==N&&i.reference[v]/2-(D<M?M:L)-g[v]/2<0,F=I?D<M?D-M:D-j:0;
1return{[m]:p[m]+F,data:{[m]:N,centerOffset:D-N-F,...I&&{alignmentOffset:F}},reset:I}}}),eP=(e,t,n)=>{let r=new Map,o={platform:eT,...n},i={...o.platform,_c:r};return j(e,t,{...o,platform:i})};var ek=n(4887),eA="undefined"!=typeof document?r.useLayoutEffect:function(){};function eO(e,t){let n,r,o;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((n=e.length)!==t.length)return!1;for(r=n;0!=r--;)if(!eO(e[r],t[r]))return!1;return!0}if((n=(o=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!({}).hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!=r--;){let n=o[r];if(("_owner"!==n||!e.$$typeof)&&!eO(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function eM(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function eL(e,t){let n=eM(e);return Math.round(t*n)/n}function ej(e){let t=r.useRef(e);return eA(()=>{t.current=e}),t}let eD=e=>({name:"arrow",options:e,fn(t){let{element:n,padding:r}="function"==typeof e?e(t):e;return n&&({}).hasOwnProperty.call(n,"current")?null!=n.current?eR({element:n.current,padding:r}).fn(t):{}:n?eR({element:n,padding:r}).fn(t):{}}}),eN=(e,t)=>{var n;return{...(void 0===(n=e)&&(n=0),{name:"offset",options:n,async fn(e){var t,r;let{x:o,y:i,placement:a,middlewareData:s}=e,l=await _(e,n);return a===(null==(t=s.offset)?void 0:t.placement)&&null!=(r=s.arrow)&&r.alignmentOffset?{}:{x:o+l.x,y:i+l.y,data:{...l,placement:a}}}}),options:[e,t]}},eI=(e,t)=>{var n;return{...(void 0===(n=e)&&(n={}),{name:"shift",options:n,async fn(e){let{x:t,y:r,placement:o}=e,{mainAxis:i=!0,crossAxis:a=!1,limiter:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=y(n,e),u={x:t,y:r},f=await D(e,l),h=C(g(o)),p=w(h),m=u[p],v=u[h];
1if(i){let e="y"===p?"top":"left",t="y"===p?"bottom":"right",n=m+f[e],r=m-f[t];m=d(n,c(m,r))}if(a){let e="y"===h?"top":"left",t="y"===h?"bottom":"right",n=v+f[e],r=v-f[t];v=d(n,c(v,r))}let b=s.fn({...e,[p]:m,[h]:v});return{...b,data:{x:b.x-t,y:b.y-r,enabled:{[p]:i,[h]:a}}}}}),options:[e,t]}},eF=(e,t)=>{var n;return{...(void 0===(n=e)&&(n={}),{options:n,fn(e){let{x:t,y:r,placement:o,rects:i,middlewareData:a}=e,{offset:s=0,mainAxis:l=!0,crossAxis:u=!0}=y(n,e),c={x:t,y:r},d=C(o),f=w(d),h=c[f],p=c[d],m=y(s,e),v="number"==typeof m?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(l){let e="y"===f?"height":"width",t=i.reference[f]-i.floating[e]+v.mainAxis,n=i.reference[f]+i.reference[e]-v.mainAxis;h<t?h=t:h>n&&(h=n)}if(u){var b,x;let e="y"===f?"width":"height",t=F.has(g(o)),n=i.reference[d]-i.floating[e]+(t&&(null==(b=a.offset)?void 0:b[d])||0)+(t?0:v.crossAxis),r=i.reference[d]+i.reference[e]+(t?0:(null==(x=a.offset)?void 0:x[d])||0)-(t?v.crossAxis:0);p<n?p=n:p>r&&(p=r)}return{[f]:h,[d]:p}}}),options:[e,t]}},e_=(e,t)=>{var n;return{...(void 0===(n=e)&&(n={}),{name:"flip",options:n,async fn(e){var t,r,o,i,a;let{placement:s,middlewareData:l,rects:u,initialPlacement:c,platform:d,elements:f}=e,{mainAxis:h=!0,crossAxis:p=!0,fallbackPlacements:m,fallbackStrategy:v="bestFit",fallbackAxisSideDirection:E="none",flipAlignment:O=!0,...M}=y(n,e);if(null!=(t=l.arrow)&&t.alignmentOffset)return{};let L=g(s),j=C(c),N=g(c)===c,I=await (null==d.isRTL?void 0:d.isRTL(f.floating)),F=m||(N||!O?[A(c)]:function(e){let t=A(e);return[T(e),t,T(t)]}(c)),_="none"!==E;!m&&_&&F.push(...function(e,t,n,r){let o=b(e),i=function(e,t,n){switch(e){case"top":case"bottom":if(n)return t?R:S;return t?S:R;case"left":case"right":return t?P:k;default:return[]}}(g(e),"start"===n,r);return o&&(i=i.map(e=>e+"-"+o),t&&(i=i.concat(i.map(T)))),i}(c,O,E,I));let q=[c,...F],B=await D(e,M),W=[],H=(null==(r=l.flip)?void 0:r.overflows)||[];if(h&&W.push(B[L]),p){let e=function(e,t,n){void 0===n&&(n=!1);let r=b(e),o=w(C(e)),i=x(o),a="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=A(a)),[a,A(a)]}(s,u,I);W.push(B[e[0]],B[e[1]])}if(H=[...H,{placement:s,overflows:W}],!W.every(e=>e<=0)){let e=((null==(o=l.flip)?void 0:o.index)||0)+1,t=q[e];if(t&&(!("alignment"===p&&j!==C(t))||H.every(e=>e.overflows[0]>0&&C(e.placement)===j)))return{data:{index:e,overflows:H},reset:{placement:t}};let n=null==(i=H.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:i.placement;if(!n)switch(v){case"bestFit":{let e=null==(a=H.filter(e=>{if(_){let t=C(e.placement);return t===j||"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:a[0];e&&(n=e);break}case"initialPlacement":n=c}if(s!==n)return{reset:{placement:n}}}return{}}}),options:[e,t]}},eq=(e,t)=>{var n;return{...(void 0===(n=e)&&(n={}),{name:"size",options:n,async fn(e){var t,r;let o,i;let{placement:a,rects:s,platform:l,elements:u}=e,{apply:f=()=>{},...h}=y(n,e),p=await D(e,h),m=g(a),v=b(a),w="y"===C(a),{width:x,height:E}=s.floating;"top"===m||"bottom"===m?(o=m,i=v===(await (null==l.isRTL?void 0:l.isRTL(u.floating))?"start":"end")?"left":"right"):(i=m,o="end"===v?"top":"bottom");let T=E-p.top-p.bottom,S=x-p.left-p.right,R=c(E-p[o],T),P=c(x-p[i],S),k=!e.middlewareData.shift,A=R,O=P;if(null!=(t=e.middlewareData.shift)&&t.enabled.x&&(O=S),null!=(r=e.middlewareData.shift)&&r.enabled.y&&(A=T),k&&!v){let e=d(p.left,0),t=d(p.right,0),n=d(p.top,0),r=d(p.bottom,0);w?O=x-2*(0!==e||0!==t?e+t:d(p.left,p.right)):A=E-2*(0!==n||0!==r?n+r:d(p.top,p.bottom))}await f({...e,availableWidth:O,availableHeight:A});let M=await l.getDimensions(u.floating);return x!==M.width||E!==M.height?{reset:{rects:!0}}:{}}}),options:[e,t]}},eB=(e,t)=>{var n;return{...(void 0===(n=e)&&(n={}),{name:"hide",options:n,async fn(e){let{rects:t}=e,{strategy:r="referenceHidden",...o}=y(n,e);switch(r){case"referenceHidden":{let n=N(await D(e,{...o,elementContext:"reference"}),t.reference);return{data:{referenceHiddenOffsets:n,referenceHidden:I(n)}}}case"escaped":{let n=N(await D(e,{...o,altBoundary:!0}),t.floating);return{data:{escapedOffsets:n,escaped:I(n)}}}default:return{}}}}),options:[e,t]}},eW=(e,t)=>({...eD(e),options:[e,t]});var eH=n(6840),ez=n(7437),eV=r.forwardRef((e,t)=>
1{let{children:n,width:r=10,height:o=5,...i}=e;return(0,ez.jsx)(eH.WV.svg,{...i,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:(0,ez.jsx)("polygon",{points:"0,0 30,0 15,10"})})});eV.displayName="Arrow";var eK=n(6606),eY=n(1188),eU="Popper",[eQ,eX]=(0,a.b)(eU),[eG,eZ]=eQ(eU),e$=e=>{let{__scopePopper:t,children:n}=e,[o,i]=r.useState(null);return(0,ez.jsx)(eG,{scope:t,anchor:o,onAnchorChange:i,children:n})};e$.displayName=eU;var eJ="PopperAnchor",e0=r.forwardRef((e,t)=>{let{__scopePopper:n,virtualRef:o,...a}=e,s=eZ(eJ,n),l=r.useRef(null),u=(0,i.e)(t,l);return r.useEffect(()=>{s.onAnchorChange((null==o?void 0:o.current)||l.current)}),o?null:(0,ez.jsx)(eH.WV.div,{...a,ref:u})});e0.displayName=eJ;var e1="PopperContent",[e2,e5]=eQ(e1),e7=r.forwardRef((e,t)=>{var n,o,a,s,l,u,f,p;let{__scopePopper:m,side:v="bottom",sideOffset:y=0,align:g="center",alignOffset:b=0,arrowPadding:w=0,avoidCollisions:x=!0,collisionBoundary:E=[],collisionPadding:C=0,sticky:T="partial",hideWhenDetached:S=!1,updatePositionStrategy:R="optimized",onPlaced:P,...k}=e,A=eZ(e1,m),[O,M]=r.useState(null),L=(0,i.e)(t,e=>M(e)),[j,D]=r.useState(null),N=function(e){let[t,n]=r.useState(void 0);return(0,eY.b)(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let r,o;if(!Array.isArray(t)||!t.length)return;let i=t[0];if("borderBoxSize"in i){let e=i.borderBoxSize,t=Array.isArray(e)?e[0]:e;r=t.inlineSize,o=t.blockSize}else r=e.offsetWidth,o=e.offsetHeight;n({width:r,height:o})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)},[e]),t}(j),I=null!==(f=null==N?void 0:N.width)&&void 0!==f?f:0,F=null!==(p=null==N?void 0:N.height)&&void 0!==p?p:0,_="number"==typeof C?C:{top:0,right:0,bottom:0,left:0,...C},q=Array.isArray(E)?E:[E],B=q.length>0,W={padding:_,boundary:q.filter(e6),altBoundary:B},{refs:z,floatingStyles:V,placement:K,isPositioned:Y,middlewareData:U}=function(e){void 0===e&&(e={});let{placement:t="bottom",strategy:n="absolute",middleware:o=[],platform:i,elements:{reference:a,floating:s}={},transform:l=!0,whileElementsMounted:u,open:c}=e,[d,f]=r.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,p]=r.useState(o);eO(h,o)||p(o);let[m,v]=r.useState(null),[y,g]=r.useState(null),b=r.useCallback(e=>{e!==C.current&&(C.current=e,v(e))},[]),w=r.useCallback(e=>{e!==T.current&&(T.current=e,g(e))},[]),x=a||m,E=s||y,C=r.useRef(null),T=r.useRef(null),S=r.useRef(d),R=null!=u,P=ej(u),k=ej(i),A=ej(c),O=r.useCallback(()=>{if(!C.current||!T.current)return;let e={placement:t,strategy:n,middleware:h};k.current&&(e.platform=k.current),eP(C.current,T.current,e).then(e=>{let t={...e,isPositioned:!1!==A.current};M.current&&!eO(S.current,t)&&(S.current=t,ek.flushSync(()=>{f(t)}))})},[h,t,n,k,A]);eA(()=>{!1===c&&S.current.isPositioned&&(S.current.isPositioned=!1,f(e=>({...e,isPositioned:!1})))},[c]);let M=r.useRef(!1);eA(()=>(M.current=!0,()=>{M.current=!1}),[]),eA(()=>{if(x&&(C.current=x),E&&(T.current=E),x&&E){if(P.current)return P.current(x,E,O);O()}},[x,E,O,P,R]);let L=r.useMemo(()=>({reference:C,floating:T,setReference:b,setFloating:w}),[b,w]),j=r.useMemo(()=>({reference:x,floating:E}),[x,E]),D=r.useMemo(()=>{let e={position:n,left:0,top:0};if(!j.floating)return e;let t=eL(j.floating,d.x),r=eL(j.floating,d.y);return l?{...e,transform:"translate("+t+"px, "+r+"px)",...eM(j.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,l,j.floating,d.x,d.y]);return r.useMemo(()=>({...d,update:O,refs:L,elements:j,floatingStyles:D}),[d,O,L,j,D])}({strategy:"fixed",placement:v+("center"!==g?"-"+g:""),whileElementsMounted:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e,t,n,r){let o;void 0===r&&(r={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:s="function"==typeof ResizeObserver,layoutShift:l="function"==typeof IntersectionObserver,animationFrame:u=!1}=r,f=ed(e),p=i||a?[...f?el(f):[],...el(t)]:[];p.forEach(e=>{i&&e.addEventListener("scroll",n,{passive:!0}),a&&e.addEventListener("resize",n)});let m=f&&l?function(e,t){let n,r=null,o=H(e);function i(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return!function a(s,l){void 0===s&&(s=!1),void 0===l&&(l=1),i();let u=e.getBoundingClientRect(),{left:f,top:p,width:m,height:v}=u;if(s||t(),!m||!v)return;let y=h(p),g=h(o.clientWidth-(f+m)),b={rootMargin:-y+"px "+-g+"px "+-h(o.clientHeight-(p+v))+"px "+-h(f)+"px",threshold:d(0,c(1,l))||1},w=!0;function x(t){let r=t[0].intersectionRatio;if(r!==l){if(!w)return a();r?a(!1,r):n=setTimeout(()=>{a(!1,1e-7)},1e3)}1!==r||eS(u,e.getBoundingClientRect())||a(),w=!1}try{r=new IntersectionObserver(x,{...b,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(x,b)}r.observe(e)}(!0),i}(f,n):null,v=-1,y=null;s&&(y=new ResizeObserver(e=>{let[r]=e;r&&r.target===f&&y&&(y.unobserve(t),cancelAnimationFrame(v),v=requestAnimationFrame(()=>{var e;null==(e=y)||e.observe(t)})),n()}),f&&!u&&y.observe(f),y.observe(t));let g=u?em(e):null;return u&&function t(){let r=em(e);g&&!eS(g,r)&&n(),g=r,o=requestAnimationFrame(t)}(),n(),()=>{var e;
1p.forEach(e=>{i&&e.removeEventListener("scroll",n),a&&e.removeEventListener("resize",n)}),null==m||m(),null==(e=y)||e.disconnect(),y=null,u&&cancelAnimationFrame(o)}}(...t,{animationFrame:"always"===R})},elements:{reference:A.anchor},middleware:[eN({mainAxis:y+F,alignmentAxis:b}),x&&eI({mainAxis:!0,crossAxis:!1,limiter:"partial"===T?eF():void 0,...W}),x&&e_({...W}),eq({...W,apply:e=>{let{elements:t,rects:n,availableWidth:r,availableHeight:o}=e,{width:i,height:a}=n.reference,s=t.floating.style;s.setProperty("--radix-popper-available-width","".concat(r,"px")),s.setProperty("--radix-popper-available-height","".concat(o,"px")),s.setProperty("--radix-popper-anchor-width","".concat(i,"px")),s.setProperty("--radix-popper-anchor-height","".concat(a,"px"))}}),j&&eW({element:j,padding:w}),e3({arrowWidth:I,arrowHeight:F}),S&&eB({strategy:"referenceHidden",...W})]}),[Q,X]=te(K),G=(0,eK.W)(P);(0,eY.b)(()=>{Y&&(null==G||G())},[Y,G]);let Z=null===(n=U.arrow)||void 0===n?void 0:n.x,$=null===(o=U.arrow)||void 0===o?void 0:o.y,J=(null===(a=U.arrow)||void 0===a?void 0:a.centerOffset)!==0,[ee,et]=r.useState();return(0,eY.b)(()=>{O&&et(window.getComputedStyle(O).zIndex)},[O]),(0,ez.jsx)("div",{ref:z.setFloating,"data-radix-popper-content-wrapper":"",style:{...V,transform:Y?V.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ee,"--radix-popper-transform-origin":[null===(s=U.transformOrigin)||void 0===s?void 0:s.x,null===(l=U.transformOrigin)||void 0===l?void 0:l.y].join(" "),...(null===(u=U.hide)||void 0===u?void 0:u.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,ez.jsx)(e2,{scope:m,placedSide:Q,onArrowChange:D,arrowX:Z,arrowY:$,shouldHideArrow:J,children:(0,ez.jsx)(eH.WV.div,{"data-side":Q,"data-align":X,...k,ref:L,style:{...k.style,animation:Y?void 0:"none"}})})})});e7.displayName=e1;var e8="PopperArrow",e9={top:"bottom",right:"left",bottom:"top",left:"right"},e4=r.forwardRef(function(e,t){let{__scopePopper:n,...r}=e,o=e5(e8,n),i=e9[o.placedSide];return(0,ez.jsx)("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:(0,ez.jsx)(eV,{...r,ref:t,style:{...r.style,display:"block"}})})});function e6(e){return null!==e}e4.displayName=e8;var e3=e=>({name:"transformOrigin",options:e,fn(t){var n,r,o,i,a;let{placement:s,rects:l,middlewareData:u}=t,c=(null===(n=u.arrow)||void 0===n?void 0:n.centerOffset)!==0,d=c?0:e.arrowWidth,f=c?0:e.arrowHeight,[h,p]=te(s),m={start:"0%",center:"50%",end:"100%"}[p],v=(null!==(i=null===(r=u.arrow)||void 0===r?void 0:r.x)&&void 0!==i?i:0)+d/2,y=(null!==(a=null===(o=u.arrow)||void 0===o?void 0:o.y)&&void 0!==a?a:0)+f/2,g="",b="";return"bottom"===h?(g=c?m:"".concat(v,"px"),b="".concat(-f,"px")):"top"===h?(g=c?m:"".concat(v,"px"),b="".concat(l.floating.height+f,"px")):"right"===h?(g="".concat(-f,"px"),b=c?m:"".concat(y,"px")):"left"===h&&(g="".concat(l.floating.width+f,"px"),b=c?m:"".concat(y,"px")),{data:{x:g,y:b}}}});function te(e){let[t,n="center"]=e.split("-");return[t,n]}n(3832);var tt=n(1599),tn=n(7495),tr=n(886),to=n(5098),[ti,ta]=(0,a.b)("Tooltip",[eX]),ts=eX(),tl="TooltipProvider",tu="tooltip.open",[tc,td]=ti(tl),tf=e=>{let{__scopeTooltip:t,delayDuration:n=700,skipDelayDuration:o=300,disableHoverableContent:i=!1,children:a}=e,s=r.useRef(!0),l=r.useRef(!1),u=r.useRef(0);return r.useEffect(()=>{let e=u.current;return()=>window.clearTimeout(e)},[]),(0,ez.jsx)(tc,{scope:t,isOpenDelayedRef:s,delayDuration:n,onOpen:r.useCallback(()=>{window.clearTimeout(u.current),s.current=!1},[]),onClose:r.useCallback(()=>{window.clearTimeout(u.current),u.current=window.setTimeout(()=>s.current=!0,o)},[o]),isPointerInTransitRef:l,onPointerInTransitChange:r.useCallback(e=>{l.current=e},[]),disableHoverableContent:i,children:a})};tf.displayName=tl;var th="Tooltip",[tp,tm]=ti(th),tv=e=>{let{__scopeTooltip:t,children:n,open:o,defaultOpen:i,onOpenChange:a,disableHoverableContent:s,delayDuration:u}=e,c=td(th,e.__scopeTooltip),d=ts(t),[f,h]=r.useState(null),p=(0,l.M)(),m=r.useRef(0),v=null!=s?s:c.disableHoverableContent,y=null!=u?u:c.delayDuration,g=r.useRef(!1),[b,w]=(0,tr.T)({prop:o,defaultProp:null!=i&&i,onChange:e=>{e?(c.onOpen(),document.dispatchEvent(new CustomEvent(tu))):c.onClose(),null==a||a(e)},caller:th}),x=r.useMemo(()=>b?g.current?"delayed-open":"instant-open":"closed",[b]),E=r.useCallback(()=>{window.clearTimeout(m.current),m.current=0,g.current=!1,w(!0)},[w]),C=r.useCallback(()=>{window.clearTimeout(m.current),m.current=0,w(!1)},[w]),T=r.useCallback(()=>{window.clearTimeout(m.current),m.current=window.setTimeout(()=>{g.current=!0,w(!0),m.current=0},y)},[y,w]);return r.useEffect(()=>()=>{m.current&&(window.clearTimeout(m.current),m.current=0)},[]),(0,ez.jsx)(e$,{...d,children:(0,ez.jsx)(tp,{scope:t,contentId:p,open:b,stateAttribute:x,trigger:f,onTriggerChange:h,onTriggerEnter:r.useCallback(()=>{c.isOpenDelayedRef.current?T():E()},[c.isOpenDelayedRef,T,E]),onTriggerLeave:r.useCallback(()=>{v?C():(window.clearTimeout(m.current),m.current=0)},[C,v]),onOpen:E,onClose:C,disableHoverableContent:v,children:n})})};tv.displayName=th;var ty="TooltipTrigger",tg=r.forwardRef((e,t)=>
1{let{__scopeTooltip:n,...a}=e,s=tm(ty,n),l=td(ty,n),u=ts(n),c=r.useRef(null),d=(0,i.e)(t,c,s.onTriggerChange),f=r.useRef(!1),h=r.useRef(!1),p=r.useCallback(()=>f.current=!1,[]);return r.useEffect(()=>()=>document.removeEventListener("pointerup",p),[p]),(0,ez.jsx)(e0,{asChild:!0,...u,children:(0,ez.jsx)(eH.WV.button,{"aria-describedby":s.open?s.contentId:void 0,"data-state":s.stateAttribute,...a,ref:d,onPointerMove:(0,o.M)(e.onPointerMove,e=>{"touch"===e.pointerType||h.current||l.isPointerInTransitRef.current||(s.onTriggerEnter(),h.current=!0)}),onPointerLeave:(0,o.M)(e.onPointerLeave,()=>{s.onTriggerLeave(),h.current=!1}),onPointerDown:(0,o.M)(e.onPointerDown,()=>{s.open&&s.onClose(),f.current=!0,document.addEventListener("pointerup",p,{once:!0})}),onFocus:(0,o.M)(e.onFocus,()=>{f.current||s.onOpen()}),onBlur:(0,o.M)(e.onBlur,s.onClose),onClick:(0,o.M)(e.onClick,s.onClose)})})});tg.displayName=ty;var[tb,tw]=ti("TooltipPortal",{forceMount:void 0}),tx="TooltipContent",tE=r.forwardRef((e,t)=>{let n=tw(tx,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...i}=e,a=tm(tx,e.__scopeTooltip);return(0,ez.jsx)(tt.z,{present:r||a.open,children:a.disableHoverableContent?(0,ez.jsx)(tP,{side:o,...i,ref:t}):(0,ez.jsx)(tC,{side:o,...i,ref:t})})}),tC=r.forwardRef((e,t)=>{let n=tm(tx,e.__scopeTooltip),o=td(tx,e.__scopeTooltip),a=r.useRef(null),s=(0,i.e)(t,a),[l,u]=r.useState(null),{trigger:c,onClose:d}=n,f=a.current,{onPointerInTransitChange:h}=o,p=r.useCallback(()=>{u(null),h(!1)},[h]),m=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());u(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())])),h(!0)},[h]);return r.useEffect(()=>()=>p(),[p]),r.useEffect(()=>{if(c&&f){let e=e=>m(e,f),t=e=>m(e,c);return c.addEventListener("pointerleave",e),f.addEventListener("pointerleave",t),()=>{c.removeEventListener("pointerleave",e),f.removeEventListener("pointerleave",t)}}},[c,f,m,p]),r.useEffect(()=>{if(l){let e=e=>{let t=e.target,n={x:e.clientX,y:e.clientY},r=(null==c?void 0:c.contains(t))||(null==f?void 0:f.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],s=t[i],l=a.x,u=a.y,c=s.x,d=s.y;u>r!=d>r&&n<(c-l)*(r-u)/(d-u)+l&&(o=!o)}return o}(n,l);r?p():o&&(p(),d())};return document.addEventListener("pointermove",e),()=>document.removeEventListener("pointermove",e)}},[c,f,l,d,p]),(0,ez.jsx)(tP,{...e,ref:s})}),[tT,tS]=ti(th,{isInside:!1}),tR=(0,tn.sA)("TooltipContent"),tP=r.forwardRef((e,t)=>{let{__scopeTooltip:n,children:o,"aria-label":i,onEscapeKeyDown:a,onPointerDownOutside:l,...u}=e,c=tm(tx,n),d=ts(n),{onClose:f}=c;return r.useEffect(()=>(document.addEventListener(tu,f),()=>document.removeEventListener(tu,f)),[f]),r.useEffect(()=>{if(c.trigger){let e=e=>{let t=e.target;(null==t?void 0:t.contains(c.trigger))&&f()};return window.addEventListener("scroll",e,{capture:!0}),()=>window.removeEventListener("scroll",e,{capture:!0})}},[c.trigger,f]),(0,ez.jsx)(s.XB,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:l,onFocusOutside:e=>e.preventDefault(),onDismiss:f,children:(0,ez.jsxs)(e7,{"data-state":c.stateAttribute,...d,...u,ref:t,style:{...u.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,ez.jsx)(tR,{children:o}),(0,ez.jsx)(tT,{scope:n,isInside:!0,children:(0,ez.jsx)(to.fC,{id:c.contentId,role:"tooltip",children:i||o})})]})})});tE.displayName=tx;var tk="TooltipArrow";r.forwardRef((e,t)=>
1{let{__scopeTooltip:n,...r}=e,o=ts(n);return tS(tk,n).isInside?null:(0,ez.jsx)(e4,{...o,...r,ref:t})}).displayName=tk;var tA=tf,tO=tv,tM=tg,tL=tE},6606:function(e,t,n){"use strict";n.d(t,{W:function(){return o}});var r=n(2265);function o(e){let t=r.useRef(e);return r.useEffect(()=>{t.current=e}),r.useMemo(()=>(...e)=>t.current?.(...e),[])}},5098:function(e,t,n){"use strict";n.d(t,{TX:function(){return s},fC:function(){return l}});var r=n(2265),o=n(6840),i=n(7437),a=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=r.forwardRef((e,t)=>(0,i.jsx)(o.WV.span,{...e,ref:t,style:{...a,...e.style}}));s.displayName="VisuallyHidden";var l=s},1800:function(e,t,n){"use strict";n.d(t,{S:function(){return I}});var r="undefined"==typeof window||"Deno"in globalThis;function o(){}function i(e,t){return"function"==typeof e?e(t):e}function a(e,t){let{type:n="all",exact:r,fetchStatus:o,predicate:i,queryKey:a,stale:s}=e;if(a){if(r){if(t.queryHash!==l(a,t.options))return!1}else if(!c(t.queryKey,a))return!1}if("all"!==n){let e=t.isActive();if("active"===n&&!e||"inactive"===n&&e)return!1}return("boolean"!=typeof s||t.isStale()===s)&&(!o||o===t.state.fetchStatus)&&(!i||!!i(t))}function s(e,t){let{exact:n,status:r,predicate:o,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(n){if(u(t.options.mutationKey)!==u(i))return!1}else if(!c(t.options.mutationKey,i))return!1}return(!r||t.state.status===r)&&(!o||!!o(t))}function l(e,t){return(t?.queryKeyHashFn||u)(e)}function u(e){return JSON.stringify(e,(e,t)=>f(t)?Object.keys(t).sort().reduce((e,n)=>(e[n]=t[n],e),{}):t)}function c(e,t){return e===t||typeof e==typeof t&&!!e&&!!t&&"object"==typeof e&&"object"==typeof t&&Object.keys(t).every(n=>c(e[n],t[n]))}function d(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function f(e){if(!h(e))return!1;let t=e.constructor;if(void 0===t)return!0;let n=t.prototype;return!!(h(n)&&n.hasOwnProperty("isPrototypeOf"))&&Object.getPrototypeOf(e)===Object.prototype}function h(e){return"[object Object]"===Object.prototype.toString.call(e)}function p(e,t,n=0){let r=[...e,t];return n&&r.length>n?r.slice(1):r}function m(e,t,n=0){let r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var v=Symbol();function y(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:e.queryFn&&e.queryFn!==v?e.queryFn:()=>Promise.reject(Error(`Missing queryFn: '${e.queryHash}'`))}var g=e=>setTimeout(e,0),b=function(){let e=[],t=0,n=e=>{e()},r=e=>{e()},o=g,i=r=>{t?e.push(r):o(()=>{n(r)})},a=()=>{let t=e;e=[],t.length&&o(()=>{r(()=>{t.forEach(e=>{n(e)})})})};return{batch:e=>{let n;t++;try{n=e()}finally{--t||a()}return n},batchCalls:e=>(...t)=>{i(()=>{e(...t)})},schedule:i,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{r=e},setScheduler:e=>{o=e}}}(),w=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},x=new class extends w{#e;#t;#n;constructor(){super(),this.#n=e=>{if(!r&&window.addEventListener){let t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(e=>{"boolean"==typeof e?this.setFocused(e):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){let e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return"boolean"==typeof this.#e?this.#e:globalThis.document?.visibilityState!=="hidden"}},E=new class extends w{#r=!0;#t;#n;constructor(){super(),this.#n=e=>{if(!r&&window.addEventListener){let t=()=>e(!0),n=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",n
1)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#r!==e&&(this.#r=e,this.listeners.forEach(t=>{t(e)}))}isOnline(){return this.#r}};function C(e){return Math.min(1e3*2**e,3e4)}function T(e){return(e??"online")!=="online"||E.isOnline()}var S=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function R(e){return e instanceof S}function P(e){let t,n=!1,o=0,i=!1,a=function(){let e,t;let n=new Promise((n,r)=>{e=n,t=r});function r(e){Object.assign(n,e),delete n.resolve,delete n.reject}return n.status="pending",n.catch(()=>{}),n.resolve=t=>{r({status:"fulfilled",value:t}),e(t)},n.reject=e=>{r({status:"rejected",reason:e}),t(e)},n}(),s=()=>x.isFocused()&&("always"===e.networkMode||E.isOnline())&&e.canRun(),l=()=>T(e.networkMode)&&e.canRun(),u=n=>{i||(i=!0,e.onSuccess?.(n),t?.(),a.resolve(n))},c=n=>{i||(i=!0,e.onError?.(n),t?.(),a.reject(n))},d=()=>new Promise(n=>{t=e=>{(i||s())&&n(e)},e.onPause?.()}).then(()=>{t=void 0,i||e.onContinue?.()}),f=()=>{let t;if(i)return;let a=0===o?e.initialPromise:void 0;try{t=a??e.fn()}catch(e){t=Promise.reject(e)}Promise.resolve(t).then(u).catch(t=>{if(i)return;let a=e.retry??(r?0:3),l=e.retryDelay??C,u="function"==typeof l?l(o,t):l,h=!0===a||"number"==typeof a&&o<a||"function"==typeof a&&a(o,t);if(n||!h){c(t);return}o++,e.onFail?.(o,t),new Promise(e=>{setTimeout(e,u)}).then(()=>s()?void 0:d()).then(()=>{n?c(t):f()})})};return{promise:a,cancel:t=>{i||(c(new S(t)),e.abort?.())},continue:()=>(t?.(),a),cancelRetry:()=>{n=!0},continueRetry:()=>{n=!1},canStart:l,start:()=>(l()?f():d().then(f),a)}}var k=class{#o;destroy(){this.clearGcTimeout()}scheduleGc(){var e;this.clearGcTimeout(),"number"==typeof(e=this.gcTime)&&e>=0&&e!==1/0&&(this.#o=setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(r?1/0:3e5))}clearGcTimeout(){this.#o&&(clearTimeout(this.#o),this.#o=void 0)}},A=class extends k{#i;#a;#s;#l;#u;#c;#d;constructor(e){super(),this.#d=!1,this.#c=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#l=e.client,this.#s=this.#l.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#i=function(e){let t="function"==typeof e.initialData?e.initialData():e.initialData,n=void 0!==t,r=n?"function"==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}(this.options),this.state=e.state??this.#i,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#u?.promise}setOptions(e){this.options={...this.#c,...e},this.updateGcTime(this.options.gcTime)}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||this.#s.remove(this)}setData(e,t){var n,r;let o=(n=this.state.data,"function"==typeof(r=this.options).structuralSharing?r.structuralSharing(n,e):!1!==r.structuralSharing?function e(t,n){if(t===n)return t;let r=d(t)&&d(n);if(r||f(t)&&f(n)){let o=r?t:Object.keys(t),i=o.length,a=r?n:Object.keys(n),s=a.length,l=r?[]:{},u=new Set(o),c=0;for(let o=0;o<s;o++){let i=r?o:a[o];(!r&&u.has(i)||r)&&void 0===t[i]&&void 0===n[i]?(l[i]=void 0,c++):(l[i]=e(t[i],n[i]),l[i]===t[i]&&void 0!==t[i]&&c++)}return i===s&&c===i?t:l}return n}(n,e):e);return this.#f({data:o,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),o}setState(e,t){this.#f({type:"setState",state:e,setStateOptions:t})}cancel(e){let t=this.#u?.promise;return this.#u?.cancel(e),t?t.then(o).catch(o):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#i)}isActive(){return this.observers.some(e=>{var t;return!1!==("function"==typeof(t=e.options.enabled)?t(this):t)})}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===v||this.state.dataUpdateCount+this.state.errorUpdate
1Count===0}isStatic(){return this.getObserversCount()>0&&this.observers.some(e=>"static"===i(e.options.staleTime,this))}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):void 0===this.state.data||this.state.isInvalidated}isStaleByTime(e=0){return void 0===this.state.data||"static"!==e&&(!!this.state.isInvalidated||!Math.max(this.state.dataUpdatedAt+(e||0)-Date.now(),0))}onFocus(){let e=this.observers.find(e=>e.shouldFetchOnWindowFocus());e?.refetch({cancelRefetch:!1}),this.#u?.continue()}onOnline(){let e=this.observers.find(e=>e.shouldFetchOnReconnect());e?.refetch({cancelRefetch:!1}),this.#u?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#s.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#u&&(this.#d?this.#u.cancel({revert:!0}):this.#u.cancelRetry()),this.scheduleGc()),this.#s.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#f({type:"invalidate"})}fetch(e,t){if("idle"!==this.state.fetchStatus){if(void 0!==this.state.data&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#u)return this.#u.continueRetry(),this.#u.promise}if(e&&this.setOptions(e),!this.options.queryFn){let e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}let n=new AbortController,r=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(this.#d=!0,n.signal)})},o=()=>{let e=y(this.options,t),n=(()=>{let e={client:this.#l,queryKey:this.queryKey,meta:this.meta};return r(e),e})();return(this.#d=!1,this.options.persister)?this.options.persister(e,n,this):e(n)},i=(()=>{let e={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#l,state:this.state,fetchFn:o};return r(e),e})();this.options.behavior?.onFetch(i,this),this.#a=this.state,("idle"===this.state.fetchStatus||this.state.fetchMeta!==i.fetchOptions?.meta)&&this.#f({type:"fetch",meta:i.fetchOptions?.meta});let a=e=>{R(e)&&e.silent||this.#f({type:"error",error:e}),R(e)||(this.#s.config.onError?.(e,this),this.#s.config.onSettled?.(this.state.data,e,this)),this.scheduleGc()};return this.#u=P({initialPromise:t?.initialPromise,fn:i.fetchFn,abort:n.abort.bind(n),onSuccess:e=>{if(void 0===e){a(Error(`${this.queryHash} data is undefined`));return}try{this.setData(e)}catch(e){a(e);return}this.#s.config.onSuccess?.(e,this),this.#s.config.onSettled?.(e,this.state.error,this),this.scheduleGc()},onError:a,onFail:(e,t)=>{this.#f({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#f({type:"pause"})},onContinue:()=>{this.#f({type:"continue"})},retry:i.options.retry,retryDelay:i.options.retryDelay,networkMode:i.options.networkMode,canRun:()=>!0}),this.#u.start()}#f(e){this.state=(t=>{switch(e.type){case"failed":return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...t,fetchStatus:"paused"};case"continue":return{...t,fetchStatus:"fetching"};case"fetch":var n;return{...t,...(n=t.data,{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:T(this.options.networkMode)?"fetching":"paused",...void 0===n&&{error:null,status:"pending"}}),fetchMeta:e.meta??null};case"success":return this.#a=void 0,{...t,data:e.data,dataUpdateCount:t.dataUpdateCount+1,dataUpdatedAt:e.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":let r=e.error;if(R(r)&&r.revert&&this.#a)return{...this.#a,fetchStatus:"idle"};return{...t,error:r,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:r,fetchStatus:"idle",status:"error"};case"invalidate":return{...t,isInvalidated:!0};case"setState":return{...t,...e.state}}})(this.state),b.batch(()=>{this.observers.forEach(e=>{e.onQueryUpdate()}),this.#s.notify({query:this,type:"updated",action:e})})}}
1,O=class extends w{constructor(e={}){super(),this.config=e,this.#h=new Map}#h;build(e,t,n){let r=t.queryKey,o=t.queryHash??l(r,t),i=this.get(o);return i||(i=new A({client:e,queryKey:r,queryHash:o,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(i)),i}add(e){this.#h.has(e.queryHash)||(this.#h.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){let t=this.#h.get(e.queryHash);t&&(e.destroy(),t===e&&this.#h.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){b.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#h.get(e)}getAll(){return[...this.#h.values()]}find(e){let t={exact:!0,...e};return this.getAll().find(e=>a(t,e))}findAll(e={}){let t=this.getAll();return Object.keys(e).length>0?t.filter(t=>a(e,t)):t}notify(e){b.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){b.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){b.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},M=class extends k{#p;#m;#u;constructor(e){super(),this.mutationId=e.mutationId,this.#m=e.mutationCache,this.#p=[],this.state=e.state||{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0},this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#p.includes(e)||(this.#p.push(e),this.clearGcTimeout(),this.#m.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#p=this.#p.filter(t=>t!==e),this.scheduleGc(),this.#m.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#p.length||("pending"===this.state.status?this.scheduleGc():this.#m.remove(this))}continue(){return this.#u?.continue()??this.execute(this.state.variables)}async execute(e){let t=()=>{this.#f({type:"continue"})};this.#u=P({fn:()=>this.options.mutationFn?this.options.mutationFn(e):Promise.reject(Error("No mutationFn found")),onFail:(e,t)=>{this.#f({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#f({type:"pause"})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#m.canRun(this)});let n="pending"===this.state.status,r=!this.#u.canStart();try{if(n)t();else{this.#f({type:"pending",variables:e,isPaused:r}),await this.#m.config.onMutate?.(e,this);let t=await this.options.onMutate?.(e);t!==this.state.context&&this.#f({type:"pending",context:t,variables:e,isPaused:r})}let o=await this.#u.start();return await this.#m.config.onSuccess?.(o,e,this.state.context,this),await this.options.onSuccess?.(o,e,this.state.context),await this.#m.config.onSettled?.(o,null,this.state.variables,this.state.context,this),await this.options.onSettled?.(o,null,e,this.state.context),this.#f({type:"success",data:o}),o}catch(t){try{throw await this.#m.config.onError?.(t,e,this.state.context,this),await this.options.onError?.(t,e,this.state.context),await this.#m.config.onSettled?.(void 0,t,this.state.variables,this.state.context,this),await this.options.onSettled?.(void 0,t,e,this.state.context),t}finally{this.#f({type:"error",error:t})}}finally{this.#m.runNext(this)}}#f(e){this.state=(t=>{switch(e.type){case"failed":return{...t,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...t,isPaused:!0};case"continue":return{...t,isPaused:!1};case"pending":return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}})(this.state),b.batch(()=>{this.#p.forEach(t=>{t.onMutationUpdate(e)}),this.#m.notify({mutation:this,type:"updated",action:e})})}},L=class extends w{constructor(e={}){super(),this.config=e,this.#v=new Set,this.#y=new Map,this.#g=0}#v;#y;#g;build(e,t,n){let r=new M({mutationCache:this,mutationId:++this.#g,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){this.#v.add(e);let t=j(e);if("string"==typeof t){let n=this.#y.get(t);n?n.push(e):this.#y.set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#v.delete(e)){let t=j(e);if("string"==typeof t){let n=this.#y.get(t);if(n){if(n.length>1){let t=n.indexOf(e);-1!==t&&n.splice(t,1)}else n[0]===e&&this.#y.delete(t)}}}this.notify({type:"removed",mutation:e})}canRun(e){let t=j(e);if("string"!=typeof t)return!0;{let n=this.#y.get(t),r=n?.find(e=>"pending"===e.state.status);return!r||r===e}}runNext(e){let t=j(e);if("string"!=typeof t)return Promise.resolve();{let n=this.#y.get(t)?.find(t=>
1t!==e&&t.state.isPaused);return n?.continue()??Promise.resolve()}}clear(){b.batch(()=>{this.#v.forEach(e=>{this.notify({type:"removed",mutation:e})}),this.#v.clear(),this.#y.clear()})}getAll(){return Array.from(this.#v)}find(e){let t={exact:!0,...e};return this.getAll().find(e=>s(t,e))}findAll(e={}){return this.getAll().filter(t=>s(e,t))}notify(e){b.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){let e=this.getAll().filter(e=>e.state.isPaused);return b.batch(()=>Promise.all(e.map(e=>e.continue().catch(o))))}};function j(e){return e.options.scope?.id}function D(e){return{onFetch:(t,n)=>{let r=t.options,o=t.fetchOptions?.meta?.fetchMore?.direction,i=t.state.data?.pages||[],a=t.state.data?.pageParams||[],s={pages:[],pageParams:[]},l=0,u=async()=>{let n=!1,u=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(t.signal.aborted?n=!0:t.signal.addEventListener("abort",()=>{n=!0}),t.signal)})},c=y(t.options,t.fetchOptions),d=async(e,r,o)=>{if(n)return Promise.reject();if(null==r&&e.pages.length)return Promise.resolve(e);let i=(()=>{let e={client:t.client,queryKey:t.queryKey,pageParam:r,direction:o?"backward":"forward",meta:t.options.meta};return u(e),e})(),a=await c(i),{maxPages:s}=t.options,l=o?m:p;return{pages:l(e.pages,a,s),pageParams:l(e.pageParams,r,s)}};if(o&&i.length){let e="backward"===o,t={pages:i,pageParams:a},n=(e?function(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}:N)(r,t);s=await d(t,n,e)}else{let t=e??i.length;do{let e=0===l?a[0]??r.initialPageParam:N(r,s);if(l>0&&null==e)break;s=await d(s,e),l++}while(l<t)}return s};t.options.persister?t.fetchFn=()=>t.options.persister?.(u,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):t.fetchFn=u}}}function N(e,{pages:t,pageParams:n}){let r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}var I=class{#b;#m;#c;#w;#x;#E;#C;#T;constructor(e={}){this.#b=e.queryCache||new O,this.#m=e.mutationCache||new L,this.#c=e.defaultOptions||{},this.#w=new Map,this.#x=new Map,this.#E=0}mount(){this.#E++,1===this.#E&&(this.#C=x.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#b.onFocus())}),this.#T=E.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#b.onOnline())}))}unmount(){this.#E--,0===this.#E&&(this.#C?.(),this.#C=void 0,this.#T?.(),this.#T=void 0)}isFetching(e){return this.#b.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#m.findAll({...e,status:"pending"}).length}getQueryData(e){let t=this.defaultQueryOptions({queryKey:e});return this.#b.get(t.queryHash)?.state.data}ensureQueryData(e){let t=this.defaultQueryOptions(e),n=this.#b.build(this,t),r=n.state.data;return void 0===r?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(i(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return this.#b.findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,n){let r=this.defaultQueryOptions({queryKey:e}),o=this.#b.get(r.queryHash),i=o?.state.data,a="function"==typeof t?t(i):t;if(void 0!==a)return this.#b.build(this,r).setData(a,{...n,manual:!0})}setQueriesData(e,t,n){return b.batch(()=>this.#b.findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,n)]))}getQueryState(e){let t=this.defaultQueryOptions({queryKey:e});return this.#b.get(t.queryHash)?.state}removeQueries(e){let t=this.#b;b.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){let n=this.#b;return b.batch(()=>(n.findAll(e).forEach(e=>{e.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){let n={revert:!0,...t};return Promise.all(b.batch(()=>this.#b.findAll(e).map(e=>e.cancel(n)))).then(o).catch(o)}invalidateQueries(e,t={}){return b.batch(()=>(this.#b.findAll(e).forEach(e=>{e.invalidate()}),e?.refetchType==="none")?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},t))}refetchQueries(e,t={}){let n={...t,cancelRefetch:t.cancelRefetch??!0};return Promise.all(b.batch(()=>this.#b.findAll(e).filter(e=>!e.isDisabled()&&!e.isStatic()).map(e=>{let t=e.fetch(void 0,n);return n.throwOnError||(t=t.catch(o)),"paused"===e.state.fetchStatus?Promise.resolve():t}
1))).then(o)}fetchQuery(e){let t=this.defaultQueryOptions(e);void 0===t.retry&&(t.retry=!1);let n=this.#b.build(this,t);return n.isStaleByTime(i(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(o).catch(o)}fetchInfiniteQuery(e){return e.behavior=D(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(o).catch(o)}ensureInfiniteQueryData(e){return e.behavior=D(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return E.isOnline()?this.#m.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#b}getMutationCache(){return this.#m}getDefaultOptions(){return this.#c}setDefaultOptions(e){this.#c=e}setQueryDefaults(e,t){this.#w.set(u(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){let t=[...this.#w.values()],n={};return t.forEach(t=>{c(e,t.queryKey)&&Object.assign(n,t.defaultOptions)}),n}setMutationDefaults(e,t){this.#x.set(u(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){let t=[...this.#x.values()],n={};return t.forEach(t=>{c(e,t.mutationKey)&&Object.assign(n,t.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;let t={...this.#c.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=l(t.queryKey,t)),void 0===t.refetchOnReconnect&&(t.refetchOnReconnect="always"!==t.networkMode),void 0===t.throwOnError&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===v&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#c.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#b.clear(),this.#m.clear()}}},9827:function(e,t,n){"use strict";n.d(t,{aH:function(){return a}});var r=n(2265),o=n(7437),i=r.createContext(void 0),a=e=>{let{client:t,children:n}=e;return r.useEffect(()=>(t.mount(),()=>{t.unmount()}),[t]),(0,o.jsx)(i.Provider,{value:t,children:n})}},9197:function(e,t,n){"use strict";n.d(t,{Analytics:function(){return m}});var r=n(2265),o=n(9376),i=n(257),a=()=>{window.va||(window.va=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];window.vaq||(window.vaq=[]),window.vaq.push(t)})};function s(){return"undefined"!=typeof window}function l(){return"production"}function u(){return"development"===((s()?window.vam:l())||"production")}function c(e){return new RegExp("/".concat(e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"(?=[/?#]|$)"))}function d(e){return e.startsWith("http://")||e.startsWith("https://")||e.startsWith("/")?e:"/".concat(e)}function f(e){return(0,r.useEffect)(()=>{var t;e.beforeSend&&(null==(t=window.va)||t.call(window,"beforeSend",e.beforeSend))},[e.beforeSend]),(0,r.useEffect)(()=>{var t,n;!function(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{debug:!0},n=arguments.length>1?arguments[1]:void 0;if(!s())return;let{beforeSend:r,src:o,dataset:i}=function(e,t){var n,r;let o=e;if(t)try{o={...null==(n=JSON.parse(t))?void 0:n.analytics,...e}}catch(e){}!function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"auto";if("auto"===e){window.vam=l();return}window.vam=e}(o.mode);let i={sdkn:"@vercel/analytics"+(o.framework?"/".concat(o.framework):""),sdkv:"2.0.1"};return o.disableAutoTrack&&(i.disableAutoTrack="1"),o.viewEndpoint&&(i.viewEndpoint=d(o.viewEndpoint)),o.eventEndpoint&&(i.eventEndpoint=d(o.eventEndpoint)),o.sessionEndpoint&&(i.sessionEndpoint=d(o.sessionEndpoint)),u()&&!1===o.debug&&(i.debug="false"),o.dsn&&(i.dsn=o.dsn),o.endpoint?i.endpoint=o.endpoint:o.basePath&&(i.endpoint=d("".concat(o.basePath,"/insights"))),{beforeSend:o.beforeSend,src:(r=o).scriptSrc?d(r.scriptSrc):u()?"https://va.vercel-scripts.com/v1/script.debug.js":r.basePath?d("".concat(r.basePath,"/insights/script.js")):"/_vercel/insights/script.js",dataset:i}}(t,n);if(a(),r&&(null==(e=window.va)||e.call(window,"beforeSend",r)),document.head.querySelector('script[src*="'.concat(o,'"]')))return;let c=document.createElement("script");for(let[e,t]of(c.src=o,Object.entries(i)))c.dataset[e]=t;c.defer=!0,c.onerror=()=>{let e=u()?"Please check if any ad blockers are enabled and try again.":"Be sure to enable Web Analytics for your project and deploy again. See https://vercel.com/docs/analytics/quickstart for more information.";console.log("[Vercel Web Analytics] Failed to load script from ".concat(o,". ").concat(e))},document.head.appendChild(c)}({framework:e.framework||"react",basePath:null!==(t=e.basePath)&&void 0!==t?t:function(){if(void 0!==i&&void 0!==i.env)return i.env.REACT_APP_VERCEL_OBSERVABILITY_BASEPATH}(),...void 0!==e.route&&{disableAutoTrack:!0},...e}
1,null!==(n=e.configString)&&void 0!==n?n:function(){if(void 0!==i&&void 0!==i.env)return i.env.REACT_APP_VERCEL_OBSERVABILITY_CLIENT_CONFIG}())},[]),(0,r.useEffect)(()=>{e.route&&e.path&&function(e){var t;let{route:n,path:r}=e;null==(t=window.va)||t.call(window,"pageview",{route:n,path:r})}({route:e.route,path:e.path})},[e.route,e.path]),null}var h=()=>{let e=(0,o.useParams)(),t=(0,o.useSearchParams)(),n=(0,o.usePathname)();return e?{route:function(e,t){if(!e||!t)return e;let n=e;try{let e=Object.entries(t);for(let[t,r]of e)if(!Array.isArray(r)){let e=c(r);e.test(n)&&(n=n.replace(e,"/[".concat(t,"]")))}for(let[t,r]of e)if(Array.isArray(r)){let e=c(r.join("/"));e.test(n)&&(n=n.replace(e,"/[...".concat(t,"]")))}return n}catch(t){return e}}(n,Object.keys(e).length?e:Object.fromEntries(t.entries())),path:n}:{route:null,path:n}};function p(e){let{route:t,path:n}=h();return r.createElement(f,{path:n,route:t,...e,basePath:function(){if(void 0!==i&&void 0!==i.env)return i.env.NEXT_PUBLIC_VERCEL_OBSERVABILITY_BASEPATH}
1(),configString:function(){if(void 0!==i&&void 0!==i.env)return'{"analytics":{"scriptSrc":"54a057ea91dc082e/script.js","viewEndpoint":"54a057ea91dc082e/view","eventEndpoint":"54a057ea91dc082e/event","sessionEndpoint":"54a057ea91dc082e/session"},"speedInsights":{"scriptSrc":"2a718996302889c7/script.js","endpoint":"2a718996302889c7/vitals"}}'}(),framework:"next"})}function m(e){return r.createElement(r.Suspense,{fallback:null},r.createElement(p,{...e}))}},7586:function(e,t,n){"use strict";n.d(t,{M:function(){return b}});var r=n(7437),o=n(2265),i=n(8881),a=n(3576),s=n(1534),l=n(4252),u=n(3537),c=n(5750);function d(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}class f extends o.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if(t&&e.isPresent&&!this.props.isPresent){let e=t.offsetParent,n=(0,u.R)(e)&&e.offsetWidth||0,r=this.props.sizeRef.current;r.height=t.offsetHeight||0,r.width=t.offsetWidth||0,r.top=t.offsetTop,r.left=t.offsetLeft,r.right=n-r.width-r.left}return null}componentDidUpdate(){}render(){return this.props.children}}function h(e){let{children:t,isPresent:n,anchorX:i,root:a}=e,s=(0,o.useId)(),l=(0,o.useRef)(null),u=(0,o.useRef)({width:0,height:0,top:0,left:0,right:0}),{nonce:h}=(0,o.useContext)(c._),p=function(...e){return o.useCallback(function(...e){return t=>{let n=!1,r=e.map(e=>{let r=d(e,t);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];"function"==typeof n?n():d(e[t],null)}}}}(...e),e)}(l,null==t?void 0:t.ref);return(0,o.useInsertionEffect)(()=>{let{width:e,height:t,top:r,left:o,right:c}=u.current;if(n||!l.current||!e||!t)return;l.current.dataset.motionPopId=s;let d=document.createElement("style");h&&(d.nonce=h);let f=null!=a?a:document.head;return f.appendChild(d),d.sheet&&d.sheet.insertRule('\n          [data-motion-pop-id="'.concat(s,'"] {\n            position: absolute !important;\n            width: ').concat(e,"px !important;\n            height: ").concat(t,"px !important;\n            ").concat("left"===i?"left: ".concat(o):"right: ".concat(c),"px !important;\n            top: ").concat(r,"px !important;\n          }\n        ")),()=>{f.contains(d)&&f.removeChild(d)}},[n]),(0,r.jsx)(f,{isPresent:n,childRef:l,sizeRef:u,children:o.cloneElement(t,{ref:p})})}let p=e=>{let{children:t,initial:n,isPresent:i,onExitComplete:s,custom:u,presenceAffectsLayout:c,mode:d,anchorX:f,root:p}=e,v=(0,a.h)(m),y=(0,o.useId)(),g=!0,b=(0,o.useMemo)(()=>(g=!1,{id:y,initial:n,isPresent:i,custom:u,onExitComplete:e=>
1{for(let t of(v.set(e,!0),v.values()))if(!t)return;s&&s()},register:e=>(v.set(e,!1),()=>v.delete(e))}),[i,v,s]);return c&&g&&(b={...b}),(0,o.useMemo)(()=>{v.forEach((e,t)=>v.set(t,!1))},[i]),o.useEffect(()=>{i||v.size||!s||s()},[i]),"popLayout"===d&&(t=(0,r.jsx)(h,{isPresent:i,anchorX:f,root:p,children:t})),(0,r.jsx)(l.O.Provider,{value:b,children:t})};function m(){return new Map}var v=n(9637);let y=e=>e.key||"";function g(e){let t=[];return o.Children.forEach(e,e=>{(0,o.isValidElement)(e)&&t.push(e)}),t}let b=e=>{let{children:t,custom:n,initial:l=!0,onExitComplete:u,presenceAffectsLayout:c=!0,mode:d="sync",propagate:f=!1,anchorX:h="left",root:m}=e,[b,w]=(0,v.oO)(f),x=(0,o.useMemo)(()=>g(t),[t]),E=f&&!b?[]:x.map(y),C=(0,o.useRef)(!0),T=(0,o.useRef)(x),S=(0,a.h)(()=>new Map),[R,P]=(0,o.useState)(x),[k,A]=(0,o.useState)(x);(0,s.L)(()=>{C.current=!1,T.current=x;for(let e=0;e<k.length;e++){let t=y(k[e]);E.includes(t)?S.delete(t):!0!==S.get(t)&&S.set(t,!1)}},[k,E.length,E.join("-")]);let O=[];if(x!==R){let e=[...x];for(let t=0;t<k.length;t++){let n=k[t],r=y(n);E.includes(r)||(e.splice(t,0,n),O.push(n))}return"wait"===d&&O.length&&(e=O),A(g(e)),P(x),null}let{forceRender:M}=(0,o.useContext)(i.p);return(0,r.jsx)(r.Fragment,{children:k.map(e=>{let t=y(e),o=(!f||!!b)&&(x===k||E.includes(t));return(0,r.jsx)(p,{isPresent:o,initial:(!C.current||!!l)&&void 0,custom:n,presenceAffectsLayout:c,mode:d,root:m,onExitComplete:o?void 0:()=>{if(!S.has(t))return;S.set(t,!0);let e=!0;S.forEach(t=>{t||(e=!1)}),e&&(null==M||M(),A(T.current),f&&(null==w||w()),u&&u())},anchorX:h,children:e},t)})})}},4438:function(e,t,n){"use strict";n.d(t,{x7:function(){return x}});var r=n(2265),o=n(4887),i=e=>{switch(e){case"success":return l;case"info":return c;case"warning":return u;case"error":return d;default:return null}},a=Array(12).fill(0),s=e=>{let{visible:t,className:n}=e;return r.createElement("div",{className:["sonner-loading-wrapper",n].filter(Boolean).join(" "),"data-visible":t},r.createElement("div",{className:"sonner-spinner"},a.map((e,t)=>r.createElement("div",{className:"sonner-loading-bar",key:"spinner-bar-".concat(t)}))))},l=r.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},r.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),u=r.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},r.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),c=r.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},r.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),d=r.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},r.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),f=r.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},r.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),r.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),h=()=>{let[e,t]=r.useState(document.hidden);return r.useEffect(()=>{let e=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",e),()=>window.removeEventListener("visibilitychange",e)},[]),e},p=1,m=new class{constructor(){this.subscribe=e=>(this.subscribers.push(e),()=>{let t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)}),this.publish=e=>
1{this.subscribers.forEach(t=>t(e))},this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e]},this.create=e=>{var t;let{message:n,...r}=e,o="number"==typeof(null==e?void 0:e.id)||(null==(t=e.id)?void 0:t.length)>0?e.id:p++,i=this.toasts.find(e=>e.id===o),a=void 0===e.dismissible||e.dismissible;return this.dismissedToasts.has(o)&&this.dismissedToasts.delete(o),i?this.toasts=this.toasts.map(t=>t.id===o?(this.publish({...t,...e,id:o,title:n}),{...t,...e,id:o,dismissible:a,title:n}):t):this.addToast({title:n,...r,dismissible:a,id:o}),o},this.dismiss=e=>(this.dismissedToasts.add(e),e||this.toasts.forEach(e=>{this.subscribers.forEach(t=>t({id:e.id,dismiss:!0}))}),this.subscribers.forEach(t=>t({id:e,dismiss:!0})),e),this.message=(e,t)=>this.create({...t,message:e}),this.error=(e,t)=>this.create({...t,message:e,type:"error"}),this.success=(e,t)=>this.create({...t,type:"success",message:e}),this.info=(e,t)=>this.create({...t,type:"info",message:e}),this.warning=(e,t)=>this.create({...t,type:"warning",message:e}),this.loading=(e,t)=>
1this.create({...t,type:"loading",message:e}),this.promise=(e,t)=>{let n;if(!t)return;void 0!==t.loading&&(n=this.create({...t,promise:e,type:"loading",message:t.loading,description:"function"!=typeof t.description?t.description:void 0}));let o=e instanceof Promise?e:e(),i=void 0!==n,a,s=o.then(async e=>{if(a=["resolve",e],r.isValidElement(e))i=!1,this.create({id:n,type:"default",message:e});else if(v(e)&&!e.ok){i=!1;let r="function"==typeof t.error?await t.error("HTTP error! status: ".concat(e.status)):t.error,o="function"==typeof t.description?await t.description("HTTP error! status: ".concat(e.status)):t.description;this.create({id:n,type:"error",message:r,description:o})}else if(void 0!==t.success){i=!1;let r="function"==typeof t.success?await t.success(e):t.success,o="function"==typeof t.description?await t.description(e):t.description;this.create({id:n,type:"success",message:r,description:o})}}).catch(async e=>{if(a=["reject",e],void 0!==t.error){i=!1;let r="function"==typeof t.error?await t.error(e):t.error,o="function"==typeof t.description?await t.description(e):t.description;this.create({id:n,type:"error",message:r,description:o})}}).finally(()=>{var e;i&&(this.dismiss(n),n=void 0),null==(e=t.finally)||e.call(t)}),l=()=>new Promise((e,t)=>s.then(()=>"reject"===a[0]?t(a[1]):e(a[1])).catch(t));return"string"!=typeof n&&"number"!=typeof n?{unwrap:l}:Object.assign(n,{unwrap:l})},this.custom=(e,t)=>{let n=(null==t?void 0:t.id)||p++;return this.create({jsx:e(n),id:n,...t}),n},this.getActiveToasts=()=>this.toasts.filter(e=>!this.dismissedToasts.has(e.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}},v=e=>e&&"object"==typeof e&&"ok"in e&&"boolean"==typeof e.ok&&"status"in e&&"number"==typeof e.status;function y(e){return void 0!==e.label}function g(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter(Boolean).join(" ")}Object.assign((e,t)=>{let n=(null==t?void 0:t.id)||p++;return m.addToast({title:e,...t,id:n}),n},{success:m.success,info:m.info,warning:m.warning,error:m.error,custom:m.custom,message:m.message,promise:m.promise,dismiss:m.dismiss,loading:m.loading},{getHistory:()=>m.toasts,getToasts:()=>m.getActiveToasts()}),function(e){let{insertAt:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e||"undefined"==typeof document)return;let n=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css","top"===t&&n.firstChild?n.insertBefore(r,n.firstChild):n.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}(':where(html[dir="ltr"]),:where([data-sonner-toaster][dir="ltr"]){--toast-icon-margin-start: -3px;--toast-icon-margin-end: 4px;--toast-svg-margin-start: -1px;--toast-svg-margin-end: 0px;--toast-button-margin-start: auto;--toast-button-margin-end: 0;--toast-close-button-start: 0;--toast-close-button-end: unset;--toast-close-button-transform: translate(-35%, -35%)}:where(html[dir="rtl"]),:where([data-sonner-toaster][dir="rtl"]){--toast-icon-margin-start: 4px;--toast-icon-margin-end: -3px;--toast-svg-margin-start: 0px;--toast-svg-margin-end: -1px;--toast-button-margin-start: 0;--toast-button-margin-end: auto;--toast-close-button-start: unset;--toast-close-button-end: 0;--toast-close-button-transform: translate(35%, -35%)}:where([data-sonner-toaster]){position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1: hsl(0, 0%, 99%);--gray2: hsl(0, 0%, 97.3%);--gray3: hsl(0, 0%, 95.1%);--gray4: hsl(0, 0%, 93%);--gray5: hsl(0, 0%, 90.9%);--gray6: hsl(0, 0%, 88.7%);--gray7: hsl(0, 0%, 85.8%);--gray8: hsl(0, 0%, 78%);--gray9: hsl(0, 0%, 56.1%);--gray10: hsl(0, 0%, 52.3%);--gray11: hsl(0, 0%, 43.5%);--gray12: hsl(0, 0%, 9%);--border-radius: 8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:none;z-index:999999999;transition:transform .4s ease}:where([data-sonner-toaster][data-lifted="true"]){transform:translateY(-10px)}@media (hover: none) and (pointer: coarse){:where([data-sonner-toaster][data-lifted="true"]){transform:none}}:where([data-sonner-toaster][data-x-position="right"]){right:var(--offset-right)}:where([data-sonner-toaster][data-x-position="left"]){left:var(--offset-left)}:where([data-sonner-toaster][data-x-position="center"]){left:50%;transform:translate(-50%)}:where([data-sonner-toaster][data-y-position="top"]){top:var(--offset-top)}:where([data-sonner-toaster][data-y-position="bottom"]){bottom:var(--offset-bottom)}:where([data-sonner-toast]){--y: translateY(100%);--lift-amount: calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);filter:blur(0);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:none;overflow-wrap:anywhere}:where([data-sonner-toast][data-styled="true"]){padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px #0000001a;width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}:where([data-sonner-toast]:focus-visible){box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast][data-y-position="top"]){top:0;--y: translateY(-100%);--lift: 1;--lift-amount: calc(1 * var(--gap))}:where([data-sonner-toast][data-y-position="bottom"]){bottom:0;--y: translateY(100%);--lift: -1;--lift-amount: calc(var(--lift) * var(--gap))}:where([data-sonner-toast]) :where([data-description]){font-weight:400;line-height:1.4;color:inherit}:where([data-sonner-toast]) :where([data-title]){font-weight:500;line-height:1.5;color:inherit}:where([data-sonner-toast]) :where([data-icon]){display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}:where([data-sonner-toast][data-promise="true"]) :where([data-icon])>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}:where([data-sonner-toast]) :where([data-icon])>*{flex-shrink:0}:where([data-sonner-toast]) :where([data-icon]) svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}:where([data-sonner-toast]) :where([data-content]){display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;cursor:pointer;outline:none;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}:where([data-sonner-toast]) :where([data-button]):focus-visible{box-shadow:0 0 0 2px #0006}:where([data-sonner-toast]) :where([data-button]):first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}:where([data-sonner-toast]) :where([data-cancel]){color:var(--normal-text);background:rgba(0,0,0,.08)}:where([data-sonner-toast][data-theme="dark"]) :where([data-cancel]){background:rgba(255,255,255,.3)}:where([data-sonner-toast]) :where([data-close-button]){position:absolute;
1left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast] [data-close-button]{background:var(--gray1)}:where([data-sonner-toast]) :where([data-close-button]):focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast]) :where([data-disabled="true"]){cursor:not-allowed}:where([data-sonner-toast]):hover :where([data-close-button]):hover{background:var(--gray2);border-color:var(--gray5)}:where([data-sonner-toast][data-swiping="true"]):before{content:"";position:absolute;left:-50%;right:-50%;height:100%;z-index:-1}:where([data-sonner-toast][data-y-position="top"][data-swiping="true"]):before{bottom:50%;transform:scaleY(3) translateY(50%)}:where([data-sonner-toast][data-y-position="bottom"][data-swiping="true"]):before{top:50%;transform:scaleY(3) translateY(-50%)}:where([data-sonner-toast][data-swiping="false"][data-removed="true"]):before{content:"";position:absolute;inset:0;transform:scaleY(2)}:where([data-sonner-toast]):after{content:"";position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}:where([data-sonner-toast][data-mounted="true"]){--y: translateY(0);opacity:1}:where([data-sonner-toast][data-expanded="false"][data-front="false"]){--scale: var(--toasts-before) * .05 + 1;--y: translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}:where([data-sonner-toast])>*{transition:opacity .4s}:where([data-sonner-toast][data-expanded="false"][data-front="false"][data-styled="true"])>*{opacity:0}
1:where([data-sonner-toast][data-visible="false"]){opacity:0;pointer-events:none}:where([data-sonner-toast][data-mounted="true"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}:where([data-sonner-toast][data-removed="true"][data-front="true"][data-swipe-out="false"]){--y: translateY(calc(var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="false"]){--y: translateY(40%);opacity:0;transition:transform .5s,opacity .2s}:where([data-sonner-toast][data-removed="true"][data-front="false"]):before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y, 0px)) translate(var(--swipe-amount-x, 0px));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width: 600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-theme=light]{--normal-bg: #fff;--normal-border: var(--gray4);--normal-text: var(--gray12);--success-bg: hsl(143, 85%, 96%);--success-border: hsl(145, 92%, 91%);--success-text: hsl(140, 100%, 27%);--info-bg: hsl(208, 100%, 97%);--info-border: hsl(221, 91%, 91%);--info-text: hsl(210, 92%, 45%);--warning-bg: hsl(49, 100%, 97%);--warning-border: hsl(49, 91%, 91%);--warning-text: hsl(31, 92%, 45%);--error-bg: hsl(359, 100%, 97%);--error-border: hsl(359, 100%, 94%);--error-text: hsl(360, 100%, 45%)}[data-sonner-toaster][data-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg: #fff;--normal-border: var(--gray3);--normal-text: var(--gray12)}[data-sonner-toaster][data-theme=dark]{--normal-bg: #000;--normal-bg-hover: hsl(0, 0%, 12%);--normal-border: hsl(0, 0%, 20%);--normal-border-hover: hsl(0, 0%, 25%);--normal-text: var(--gray1);--success-bg: hsl(150, 100%, 6%);--success-border: hsl(147, 100%, 12%);--success-text: hsl(150, 86%, 65%);--info-bg: hsl(215, 100%, 6%);--info-border: hsl(223, 100%, 12%);--info-text: hsl(216, 87%, 65%);--warning-bg: hsl(64, 100%, 6%);--warning-border: hsl(60, 100%, 12%);--warning-text: hsl(46, 87%, 65%);--error-bg: hsl(358, 76%, 10%);--error-border: hsl(357, 89%, 16%);
1--error-text: hsl(358, 100%, 81%)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success],[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info],[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning],[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error],[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size: 16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:nth-child(1){animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}to{opacity:.15}}@media (prefers-reduced-motion){[data-sonner-toast],[data-sonner-toast]>*,.sonner-loading-bar{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}\n');var b=e=>{var t,n,o,a,l,u,c,d,p,m,v,b,w,x;let{invert:E,toast:C,unstyled:T,interacting:S,setHeights:R,visibleToasts:P,heights:k,index:A,toasts:O,expanded:M,removeToast:L,defaultRichColors:j,closeButton:D,style:N,cancelButtonStyle:I,actionButtonStyle:F,className:_="",descriptionClassName:q="",duration:B,position:W,gap:H,loadingIcon:z,expandByDefault:V,classNames:K,icons:Y,closeButtonAriaLabel:U="Close toast",pauseWhenPageIsHidden:Q}=e,[X,G]=r.useState(null),[Z,$]=r.useState(null),[J,ee]=r.useState(!1),[et,en]=r.useState(!1),[er,eo]=r.useState(!1),[ei,ea]=r.useState(!1),[es,el]=r.useState(!1),[eu,ec]=r.useState(0),[ed,ef]=r.useState(0),eh=r.useRef(C.duration||B||4e3),ep=r.useRef(null),em=r.useRef(null),ev=0===A,ey=A+1<=P,eg=C.type,eb=!1!==C.dismissible,ew=C.className||"",ex=C.descriptionClassName||"",eE=r.useMemo(()=>k.findIndex(e=>e.toastId===C.id)||0,[k,C.id]),eC=r.useMemo(()=>{var e;return null!=(e=C.closeButton)?e:D},[C.closeButton,D]),eT=r.useMemo(()=>C.duration||B||4e3,[C.duration,B]),eS=r.useRef(0),eR=r.useRef(0),eP=r.useRef(0),ek=r.useRef(null),[eA,eO]=W.split("-"),eM=r.useMemo(()=>
1k.reduce((e,t,n)=>n>=eE?e:e+t.height,0),[k,eE]),eL=h(),ej=C.invert||E,eD="loading"===eg;eR.current=r.useMemo(()=>eE*H+eM,[eE,eM]),r.useEffect(()=>{eh.current=eT},[eT]),r.useEffect(()=>{ee(!0)},[]),r.useEffect(()=>{let e=em.current;if(e){let t=e.getBoundingClientRect().height;return ef(t),R(e=>[{toastId:C.id,height:t,position:C.position},...e]),()=>R(e=>e.filter(e=>e.toastId!==C.id))}},[R,C.id]),r.useLayoutEffect(()=>{if(!J)return;let e=em.current,t=e.style.height;e.style.height="auto";let n=e.getBoundingClientRect().height;e.style.height=t,ef(n),R(e=>e.find(e=>e.toastId===C.id)?e.map(e=>e.toastId===C.id?{...e,height:n}:e):[{toastId:C.id,height:n,position:C.position},...e])},[J,C.title,C.description,R,C.id]);let eN=r.useCallback(()=>{en(!0),ec(eR.current),R(e=>e.filter(e=>e.toastId!==C.id)),setTimeout(()=>{L(C)},200)},[C,L,R,eR]);return r.useEffect(()=>{let e;if((!C.promise||"loading"!==eg)&&C.duration!==1/0&&"loading"!==C.type)return M||S||Q&&eL?(()=>{if(eP.current<eS.current){let e=new Date().getTime()-eS.current;eh.current=eh.current-e}eP.current=new Date().getTime()})():eh.current!==1/0&&(eS.current=new Date().getTime(),e=setTimeout(()=>{var e;null==(e=C.onAutoClose)||e.call(C,C),eN()},eh.current)),()=>clearTimeout(e)},[M,S,C,eg,Q,eL,eN]),r.useEffect(()=>{C.delete&&eN()},[eN,C.delete]),r.createElement("li",{tabIndex:0,ref:em,className:g(_,ew,null==K?void 0:K.toast,null==(t=null==C?void 0:C.classNames)?void 0:t.toast,null==K?void 0:K.default,null==K?void 0:K[eg],null==(n=null==C?void 0:C.classNames)?void 0:n[eg]),"data-sonner-toast":"","data-rich-colors":null!=(o=C.richColors)?o:j,"data-styled":!(C.jsx||C.unstyled||T),"data-mounted":J,"data-promise":!!C.promise,"data-swiped":es,"data-removed":et,"data-visible":ey,"data-y-position":eA,"data-x-position":eO,"data-index":A,"data-front":ev,"data-swiping":er,"data-dismissible":eb,"data-type":eg,"data-invert":ej,"data-swipe-out":ei,"data-swipe-direction":Z,"data-expanded":!!(M||V&&J),style:{"--index":A,"--toasts-before":A,"--z-index":O.length-A,"--offset":"".concat(et?eu:eR.current,"px"),"--initial-height":V?"auto":"".concat(ed,"px"),...N,...C.style},onDragEnd:()=>{eo(!1),G(null),ek.current=null},onPointerDown:e=>{eD||!eb||(ep.current=new Date,ec(eR.current),e.target.setPointerCapture(e.pointerId),"BUTTON"!==e.target.tagName&&(eo(!0),ek.current={x:e.clientX,y:e.clientY}))},onPointerUp:()=>{var e,t,n,r;if(ei||!eb)return;ek.current=null;let o=Number((null==(e=em.current)?void 0:e.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),i=Number((null==(t=em.current)?void 0:t.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),a=new Date().getTime()-(null==(n=ep.current)?void 0:n.getTime()),s="x"===X?o:i;if(Math.abs(s)>=20||Math.abs(s)/a>.11){ec(eR.current),null==(r=C.onDismiss)||r.call(C,C),$("x"===X?o>0?"right":"left":i>0?"down":"up"),eN(),ea(!0),el(!1);return}eo(!1),G(null)},onPointerMove:t=>{var n,r,o,i;if(!ek.current||!eb||(null==(n=window.getSelection())?void 0:n.toString().length)>0)return;let a=t.clientY-ek.current.y,s=t.clientX-ek.current.x,l=null!=(r=e.swipeDirections)?r:function(e){let[t,n]=e.split("-"),r=[];return t&&r.push(t),n&&r.push(n),r}(W);!X&&(Math.abs(s)>1||Math.abs(a)>1)&&G(Math.abs(s)>Math.abs(a)?"x":"y");let u={x:0,y:0};"y"===X?(l.includes("top")||l.includes("bottom"))&&(l.includes("top")&&a<0||l.includes("bottom")&&a>0)&&(u.y=a):"x"===X&&(l.includes("left")||l.includes("right"))&&(l.includes("left")&&s<0||l.includes("right")&&s>0)&&(u.x=s),(Math.abs(u.x)>0||Math.abs(u.y)>0)&&el(!0),null==(o=em.current)||o.style.setProperty("--swipe-amount-x","".concat(u.x,"px")),null==(i=em.current)||i.style.setProperty("--swipe-amount-y","".concat(u.y,"px"))}},eC&&!C.jsx?r.createElement("button",{"aria-label":U,"data-disabled":eD,"data-close-button":!0,onClick:eD||!eb?()=>{}:()=>{var e;eN(),null==(e=C.onDismiss)||e.call(C,C)},className:g(null==K?void 0:K.closeButton,null==(a=null==C?void 0:C.classNames)?void 0:a.closeButton)},null!=(l=null==Y?void 0:Y.close)?l:f):null,C.jsx||(0,r.isValidElement)(C.title)?C.jsx?C.jsx:"function"==typeof C.title?C.title():C.title:r.createElement(r.Fragment,null,eg||C.icon||C.promise?r.createElement("div",{"data-icon":"",className:g(null==K?void 0:K.icon,null==(u=null==C?void 0:C.classNames)?void 0:u.icon)},C.promise||"loading"===C.type&&!C.icon?C.icon||(null!=Y&&Y.loading?r.createElement("div",{className:g(null==K?void 0:K.loader,null==(b=null==C?void 0:C.classNames)?void 0:b.loader,"sonner-loader"),"data-visible":"loading"===eg},Y.loading):z?r.createElement("div",{className:g(null==K?void 0:K.loader,null==(w=null==C?void 0:C.classNames)?void 0:w.loader,"sonner-loader"),"data-visible":"loading"===eg},z):r.createElement(s,{className:g(null==K?void 0:K.loader,null==(x=null==C?void 0:C.classNames)?void 0:x.loader),visible:"loading"===eg})):null,"loading"!==C.type?C.icon||(null==Y?void 0:Y[eg])||i(eg):null):null,r.createElement("div",{"data-content":"",className:g(null==K?void 0:K.content,null==(c=null==C?void 0:C.classNames)?void 0:c.content)},r.createElement("div",{"data-title":"",className:g(null==K?void 0:K.title,null==(d=null==C?void 0:C.classNames)?void 0:d.title)},"function"==typeof C.title?C.title():C.title),C.description?r.createElement("div",{"data-description":"",className:g(q,ex,null==K?void 0:K.description,null==(p=null==C?void 0:C.classNames)?void 0:p.description)},"function"==typeof C.description?C.description():C.description):null),(0,r.isValidElement)(C.cancel)?C.cancel:C.cancel&&y(C.cancel)?r.createElement("button",{"data-button":!0,"data-cancel":!0,style:C.cancelButtonStyle||I,onClick:e=>{var t,n;y(C.cancel)&&eb&&(null==(n=(t=C.cancel).onClick)||n.call(t,e),eN())}
1,className:g(null==K?void 0:K.cancelButton,null==(m=null==C?void 0:C.classNames)?void 0:m.cancelButton)},C.cancel.label):null,(0,r.isValidElement)(C.action)?C.action:C.action&&y(C.action)?r.createElement("button",{"data-button":!0,"data-action":!0,style:C.actionButtonStyle||F,onClick:e=>{var t,n;y(C.action)&&(null==(n=(t=C.action).onClick)||n.call(t,e),e.defaultPrevented||eN())},className:g(null==K?void 0:K.actionButton,null==(v=null==C?void 0:C.classNames)?void 0:v.actionButton)},C.action.label):null))};function w(){if("undefined"==typeof window||"undefined"==typeof document)return"ltr";let e=document.documentElement.getAttribute("dir");return"auto"!==e&&e?e:window.getComputedStyle(document.documentElement).direction}var x=(0,r.forwardRef)(function(e,t){let{invert:n,position:i="bottom-right",hotkey:a=["altKey","KeyT"],expand:s,closeButton:l,className:u,offset:c,mobileOffset:d,theme:f="light",richColors:h,duration:p,style:v,visibleToasts:y=3,toastOptions:g,dir:x=w(),gap:E=14,loadingIcon:C,icons:T,containerAriaLabel:S="Notifications",pauseWhenPageIsHidden:R}=e,[P,k]=r.useState([]),A=r.useMemo(()=>Array.from(new Set([i].concat(P.filter(e=>e.position).map(e=>e.position)))),[P,i]),[O,M]=r.useState([]),[L,j]=r.useState(!1),[D,N]=r.useState(!1),[I,F]=r.useState("system"!==f?f:"undefined"!=typeof window&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),_=r.useRef(null),q=a.join("+").replace(/Key/g,"").replace(/Digit/g,""),B=r.useRef(null),W=r.useRef(!1),H=r.useCallback(e=>{k(t=>{var n;return null!=(n=t.find(t=>t.id===e.id))&&n.delete||m.dismiss(e.id),t.filter(t=>{let{id:n}=t;return n!==e.id})})},[]);return r.useEffect(()=>m.subscribe(e=>{if(e.dismiss){k(t=>t.map(t=>t.id===e.id?{...t,delete:!0}:t));return}setTimeout(()=>{o.flushSync(()=>{k(t=>{let n=t.findIndex(t=>t.id===e.id);return -1!==n?[...t.slice(0,n),{...t[n],...e},...t.slice(n+1)]:[e,...t]})})})}),[]),r.useEffect(()=>{if("system"!==f){F(f);return}if("system"===f&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?F("dark"):F("light")),"undefined"==typeof window)return;let e=window.matchMedia("(prefers-color-scheme: dark)");try{e.addEventListener("change",e=>{let{matches:t}=e;F(t?"dark":"light")})}catch(t){e.addListener(e=>{let{matches:t}=e;try{F(t?"dark":"light")}catch(e){console.error(e)}})}},[f]),r.useEffect(()=>{P.length<=1&&j(!1)},[P]),r.useEffect(()=>{let e=e=>{var t,n;a.every(t=>e[t]||e.code===t)&&(j(!0),null==(t=_.current)||t.focus()),"Escape"===e.code&&(document.activeElement===_.current||null!=(n=_.current)&&n.contains(document.activeElement))&&j(!1)};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[a]),r.useEffect(()=>{if(_.current)return()=>{B.current&&(B.current.focus({preventScroll:!0}),B.current=null,W.current=!1)}},[_.current]),r.createElement("section",{ref:t,"aria-label":"".concat(S," ").concat(q),tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},A.map((t,o)=>{var i;let a;let[f,m]=t.split("-");return P.length?r.createElement("ol",{key:t,dir:"auto"===x?w():x,tabIndex:-1,ref:_,className:u,"data-sonner-toaster":!0,"data-theme":I,"data-y-position":f,"data-lifted":L&&P.length>1&&!s,"data-x-position":m,style:{"--front-toast-height":"".concat((null==(i=O[0])?void 0:i.height)||0,"px"),"--width":"".concat(356,"px"),"--gap":"".concat(E,"px"),...v,...(a={},[c,d].forEach((e,t)=>{let n=1===t,r=n?"--mobile-offset":"--offset",o=n?"16px":"32px";function i(e){["top","right","bottom","left"].forEach(t=>{a["".concat(r,"-").concat(t)]="number"==typeof e?"".concat(e,"px"):e})}"number"==typeof e||"string"==typeof e?i(e):"object"==typeof e?["top","right","bottom","left"].forEach(t=>{void 0===e[t]?a["".concat(r,"-").concat(t)]=o:a["".concat(r,"-").concat(t)]="number"==typeof e[t]?"".concat(e[t],"px"):e[t]}):i(o)}),a)},onBlur:e=>{W.current&&!e.currentTarget.contains(e.relatedTarget)&&(W.current=!1,B.current&&(B.current.focus({preventScroll:!0}),B.current=null))},onFocus:e=>{e.target instanceof HTMLElement&&"false"===e.target.dataset.dismissible||W.current||(W.current=!0,B.current=e.relatedTarget)},onMouseEnter:()=>j(!0),onMouseMove:()=>j(!0),onMouseLeave:()=>{D||j(!1)},onDragEnd:()=>j(!1),onPointerDown:e=>{e.target instanceof HTMLElement&&"false"===e.target.dataset.dismissible||N(!0)},onPointerUp:()=>N(!1)},P.filter(e=>!e.position&&0===o||e.position===t).map((o,i)=>{var a,u;
1return r.createElement(b,{key:o.id,icons:T,index:i,toast:o,defaultRichColors:h,duration:null!=(a=null==g?void 0:g.duration)?a:p,className:null==g?void 0:g.className,descriptionClassName:null==g?void 0:g.descriptionClassName,invert:n,visibleToasts:y,closeButton:null!=(u=null==g?void 0:g.closeButton)?u:l,interacting:D,position:t,style:null==g?void 0:g.style,unstyled:null==g?void 0:g.unstyled,classNames:null==g?void 0:g.classNames,cancelButtonStyle:null==g?void 0:g.cancelButtonStyle,actionButtonStyle:null==g?void 0:g.actionButtonStyle,removeToast:H,toasts:P.filter(e=>e.position==o.position),heights:O.filter(e=>e.position==o.position),setHeights:M,expandByDefault:s,gap:E,loadingIcon:C,expanded:L,pauseWhenPageIsHidden:R,swipeDirections:e.swipeDirections})})):null}))})}}]);

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.