PageSourceSearch

https://www.thebirdie.app/_next/static/chunks/285-6a498767dbe64cae.js

js thebirdie.app collected 2026-10-02 01:15:31 UTC 151,732 bytes, 2 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[285],{229:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(2068).A)("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"}]])},421:(e,t,n)=>{"use strict";n.d(t,{hO:()=>s,sG:()=>l});var r=n(7620),o=n(7509),a=n(6118),i=n(4568),l=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let n=r.forwardRef((e,n)=>{let{asChild:r,...o}=e,l=r?a.DX:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,i.jsx)(l,{...o,ref:n})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function s(e,t){e&&o.flushSync(()=>e.dispatchEvent(t))}},844:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(2068).A)("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]])},1163:e=>{e.exports={style:{fontFamily:"'GeistSans', 'GeistSans Fallback'"},className:"__className_3a0388",variable:"__variable_3a0388"}},1679:(e,t,n)=>{"use strict";n.d(t,{B:()=>s});var r,o=n(7620),a=n(7514),i=(r||(r=n.t(o,2)))["useId".toString()]||(()=>void 0),l=0;function s(e){let[t,n]=o.useState(i());return(0,a.N)(()=>{e||n(e=>e??String(l++))},[e]),e||(t?`radix-${t}`:"")}},1961:(e,t,n)=>{"use strict";let r;Object.defineProperty(t,"__esModule",{value:!0}),t.GoogleAnalytics=function(e){let{gaId:t,debugMode:n,dataLayerName:l="dataLayer",nonce:s}=e;return void 0===r&&(r=l),(0,a.useEffect)(()=>{performance.mark("mark_feature_usage",{detail:{feature:"next-third-parties-ga"}})},[]),(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(i.default,{id:"_next-ga-init",dangerouslySetInnerHTML:{__html:"\n          window['".concat(l,"'] = window['").concat(l,"'] || [];\n          function gtag(){window['").concat(l,"'].push(arguments);}\n          gtag('js', new Date());\n\n          gtag('config', '").concat(t,"' ").concat(n?",{ 'debug_mode': true }":"",");")},nonce:s}),(0,o.jsx)(i.default,{id:"_next-ga",src:"https://www.googletagmanager.com/gtag/js?id=".concat(t),nonce:s})]})},t.sendGAEvent=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];if(void 0===r)return void console.warn("@next/third-parties: GA has not been initialized");window[r]?window[r].push(arguments):console.warn("@next/third-parties: GA dataLayer ".concat(r," does not exist"))};let o=n(4568),a=n(7620),i=function(e){return e&&e.__esModule?e:{default:e}}(n(3792))},2068:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r=n(7620);let o=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter((e,t,n)=>!!e&&""!==e.trim()&&n.indexOf(e)===t).join(" ").trim()};var a={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let i=(0,r.forwardRef)((e,t)=>{let{color:n="currentColor",size:i=24,strokeWidth:l=2,absoluteStrokeWidth:s,className:u="",children:c,iconNode:d,...f}=e;return(0,r.createElement)("svg",{ref:t,...a,width:i,height:i,stroke:n,strokeWidth:s?24*Number(l)/Number(i):l,className:o("lucide",u),...f},[...d.map(e=>{let[t,n]=e;return(0,r.createElement)(t,n)}),...Array.isArray(c)?c:[c]])}),l=(e,t)=>{let n=(0,r.forwardRef)((n,a)=>{let{className:l,...s}=n;return(0,r.createElement)(i,{ref:a,iconNode:t,className:o("lucide-".concat(e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()),l),...s})});return n.displayName="".concat(e),n}},2124:(e,t,n)=>{"use strict";n.d(t,{NuqsAdapter:()=>N});var r,o=n(7620),a=n(7011);let i=function(){if("undefined"==typeof window)return(a.env.DEBUG||"").includes("nuqs");try{let e="nuqs-localStorage-test";if("undefined"==typeof localStorage)return!1;localStorage.setItem(e,e);let t=localStorage.getItem(e)===e;return localStorage.removeItem(e),t&&(localStorage.getItem("debug")||"").includes("nuqs")}catch{return!1}}();function l(e,...t){if(!i)return;let n=function(e,...t){return e.replace(/%[sfdO]/g,e=>{let n=t.shift();return"%O"===e&&n?JSON.stringify(n).replace(/"([^"]+)":/g,"$1:"):String(n)})}(e,...t);performance.mark(n);try{console.log(e,...t)}catch{console.log(n)}}let s={303:"Multiple adapter contexts detected. This might happen in monorepos.",404:"nuqs requires an adapter to work with your framework.",409:"Multiple versions of the library are loaded. This may lead to unexpected behavior. Currently using `%s`, but `%s` (via the %s adapter) was about to load on top.",414:"Max safe URL length exceeded. Some browsers may not be able to accept this URL. Consider limiting the amount of state stored in the URL.",422:"Invalid options combination: `limitUrlUpdates: debounce` should be used in SSR scenarios, with `shallow: false`",429:"URL update rate-limited by the browser. Consider increasing `throttleMs` for key(s) `%s`. %O",500:"Empty search params cac
1he. Search params can't be accessed in Layouts.",501:"Search params cache already populated. Have you called `parse` twice?"};function u(e){return`[nuqs] ${s[e]}
2  See https://nuqs.dev/NUQS-${e}`}let c=(0,o.createContext)({useAdapter(){throw Error(u(404))}});c.displayName="NuqsAdapterContext",i&&"undefined"!=typeof window&&(window.__NuqsAdapterContext&&window.__NuqsAdapterContext!==c&&console.error(u(303)),window.__NuqsAdapterContext=c);let d={method:"throttle",timeMs:function(){if("undefined"==typeof window||!window.GestureEvent)return 50;try{let e=navigator.userAgent?.match(/version\/([\d\.]+) safari/i);return parseFloat(e[1])>=17?120:320}catch{return 320}}()};function f(e,t,n){let r=setTimeout(function(){e(),n.removeEventListener("abort",o)},t);function o(){clearTimeout(r),n.removeEventListener("abort",o)}n.addEventListener("abort",o)}function p(){let e=Promise;if(Promise.hasOwnProperty("withResolvers"))return Promise.withResolvers();let t=()=>{},n=()=>{};return{promise:new e((e,r)=>{t=e,n=r}),resolve:t,reject:n}}function m(){return new URLSearchParams(location.search)}var h=class{updateMap=new Map;options={history:"replace",scroll:!1,shallow:!0};timeMs=d.timeMs;transitions=new Set;resolvers=null;controller=null;lastFlushedAt=0;resetQueueOnNextPush=!1;push({key:e,query:t,options:n},r=d.timeMs){this.resetQueueOnNextPush&&(this.reset(),this.resetQueueOnNextPush=!1),l("[nuqs gtq] Enqueueing %s=%s %O",e,t,n),this.updateMap.set(e,t),"push"===n.history&&(this.options.history="push"),n.scroll&&(this.options.scroll=!0),!1===n.shallow&&(this.options.shallow=!1),n.startTransition&&this.transitions.add(n.startTransition),(!Number.isFinite(this.timeMs)||r>this.timeMs)&&(this.timeMs=r)}getQueuedQuery(e){return this.updateMap.get(e)}getPendingPromise({getSearchParamsSnapshot:e=m}){return this.resolvers?.promise??Promise.resolve(e())}flush({getSearchParamsSnapshot:e=m,rateLimitFactor:t=1,...n},r){if(this.controller??=new AbortController,!Number.isFinite(this.timeMs))return l("[nuqs gtq] Skipping flush due to throttleMs=Infinity"),Promise.resolve(e());if(this.resolvers)return this.resolvers.promise;this.resolvers=p();let o=()=>{this.lastFlushedAt=performance.now();let[t,o]=this.applyPendingUpdates({...n,autoResetQueueOnUpdate:n.autoResetQueueOnUpdate??!0,getSearchParamsSnapshot:e},r);null===o?(this.resolvers.resolve(t),this.resetQueueOnNextPush=!0):this.resolvers.reject(t),this.resolvers=null},a=()=>{let e=performance.now()-this.lastFlushedAt,n=this.timeMs,r=t*Math.max(0,n-e);l("[nuqs gtq] Scheduling flush in %f ms. Throttled at %f ms (x%f)",r,n,t),0===r?o():f(o,r,this.controller.signal)};return f(a,0,this.controller.signal),this.resolvers.promise}abort(){return this.controller?.abort(),this.controller=new AbortController,this.resolvers?.resolve(new URLSearchParams),this.resolvers=null,this.reset()}reset(){let e=Array.from(this.updateMap.keys());return l("[nuqs gtq] Resetting queue %s",JSON.stringify(Object.fromEntries(this.updateMap))),this.updateMap.clear(),this.transitions.clear(),this.options={history:"replace",scroll:!1,shallow:!0},this.timeMs=d.timeMs,e}applyPendingUpdates(e,t){let{updateUrl:n,getSearchParamsSnapshot:r}=e,o=r();if(l("[nuqs gtq] Applying %d pending update(s) on top of %s",this.updateMap.size,o.toString()),0===this.updateMap.size)return[o,null];let a=Array.from(this.updateMap.entries()),i={...this.options},s=Array.from(this.transitions);for(let[t,n]of(e.autoResetQueueOnUpdate&&this.reset(),l("[nuqs gtq] Flushing queue %O with options %O",a,i),a))null===n?o.delete(t):o=function(e,t,n){if("string"==typeof e)n.set(t,e);else{for(let r of(n.delete(t),e))n.append(t,r);n.has(t)||n.set(t,"")}return n}(n,t,o);t&&(o=t(o));try{return!function(e,t){let n=t;for(let t=e.length-1;t>=0;t--){let r=e[t];if(!r)continue;let o=n;n=()=>r(o)}n()}(s,()=>{n(o,i)}),[o,null]}catch(e){return console.error(u(429),a.map(([e])=>e).join(),e),[o,e]}}};let g=new h;var v=class{callback;resolvers=p();controller=new AbortController;queuedValue=void 0;constructor(e){this.callback=e}abort(){this.controller.abort(),this.queuedValue=void 0}push(e,t){return this.queuedValue=e,this.controller.abort(),this.controller=new AbortController,f(()=>{let t=this.resolvers;try{l("[nuqs dq] Flushing debounce queue",e);let n=this.callback(e);l("[nuqs dq] Reset debounce queue %O",this.queuedValue),this.queuedValue=void 0,this.resolvers=p(),n.then(e=>t.resolve(e)).catch(e=>t.reject(e))}catch(e){this.queuedValue=void 0,t.reject(e)}},t,this.controller.signal),this.resolvers.promise}};let y=new class{throttleQueue;queues=new Map;queuedQuerySync=(function(){let e=new Map;return{on(t,n){let r=e.get(t)||[];return r.push(n),e.set(t,r),()=>this.off(t,n)},off(t,n){let r=e.get(t);r&&e.set(t,r.filter(e=>e!==n))}
2,emit(t,n){e.get(t)?.forEach(e=>e(n))}}})();constructor(e=new h){this.throttleQueue=e}useQueuedQueries(e){return function(e,t,n){let r=(0,o.useCallback)(()=>{let t=Object.fromEntries(e.map(e=>[e,n(e)]));return[JSON.stringify(t),t]},[e.join(","),n]),a=(0,o.useRef)(null);return null===a.current&&(a.current=r()),(0,o.useSyncExternalStore)((0,o.useCallback)(n=>{let r=e.map(e=>t(e,n));return()=>r.forEach(e=>e())},[e.join(","),t]),()=>{let[e,t]=r();return a.current[0]===e?a.current[1]:(a.current=[e,t],t)},()=>a.current[1])}(e,(e,t)=>this.queuedQuerySync.on(e,t),e=>this.getQueuedQuery(e))}push(e,t,n,r){if(!Number.isFinite(t))return Promise.resolve((n.getSearchParamsSnapshot??m)());let o=e.key;if(!this.queues.has(o)){l("[nuqs dqc] Creating debounce queue for `%s`",o);let e=new v(e=>(this.throttleQueue.push(e),this.throttleQueue.flush(n,r).finally(()=>{this.queues.get(e.key)?.queuedValue===void 0&&(l("[nuqs dqc] Cleaning up empty queue for `%s`",e.key),this.queues.delete(e.key)),this.queuedQuerySync.emit(e.key)})));this.queues.set(o,e)}l("[nuqs dqc] Enqueueing debounce update %O",e);let a=this.queues.get(o).push(e,t);return this.queuedQuerySync.emit(o),a}abort(e){let t=this.queues.get(e);return t?(l("[nuqs dqc] Aborting debounce queue %s=%s",e,t.queuedValue?.query),this.queues.delete(e),t.abort(),this.queuedQuerySync.emit(e),e=>(e.then(t.resolvers.resolve,t.resolvers.reject),e)):e=>e}abortAll(){for(let[e,t]of this.queues.entries())l("[nuqs dqc] Aborting debounce queue %s=%s",e,t.queuedValue?.query),t.abort(),t.resolvers.resolve(new URLSearchParams),this.queuedQuerySync.emit(e);this.queues.clear()}getQueuedQuery(e){let t=this.queues.get(e)?.queuedValue?.query;return void 0!==t?t:this.throttleQueue.getQueuedQuery(e)}}(g),w=0;function b(e=1){w=e}function x(){l("[nuqs] Aborting queues"),y.abortAll(),g.abort().forEach(e=>y.queuedQuerySync.emit(e))}var E=n(3041);function T(){b(0),x()}function C(){!function(e=x){(w=Math.max(0,w-1))>0||e()}(()=>{queueMicrotask(x)})}function S(){return(0,o.useEffect)(()=>(!function(){var e;if(e="next/app","undefined"==typeof history||(history.nuqs?.version&&"2.8.9"!==history.nuqs.version?(console.error(u(409),history.nuqs.version,"2.8.9",e),!0):!!history.nuqs?.adapters?.includes(e)))return;let t=history.replaceState,n=history.pushState;history.replaceState=function(e,n,r){return C(),t.call(history,e,n,r)},history.pushState=function(e,t,r){return C(),n.call(history,e,t,r)},history.nuqs=history.nuqs??{version:"2.8.9",adapters:[]},history.nuqs.adapters.push("next/app")}(),window.addEventListener("popstate",T),()=>window.removeEventListener("popstate",T)),[]),null}let R=(r=function(){let e=(0,E.useRouter)(),[t,n]=(0,o.useOptimistic)((0,E.useSearchParams)());return{searchParams:t,updateUrl:(0,o.useCallback)((t,r)=>{(0,o.startTransition)(()=>{r.shallow||n(t);let o=function(e){let{origin:t,pathname:n,hash:r}=location;return t+n+function(e){if(0===e.size)return"";let t=[];for(let[n,r]of e.entries()){let e=n.replace(/#/g,"%23").replace(/&/g,"%26").replace(/\+/g,"%2B").replace(/=/g,"%3D").replace(/\?/g,"%3F");t.push(`${e}=${r.replace(/%/g,"%25").replace(/\+/g,"%2B").replace(/ /g,"+").replace(/#/g,"%23").replace(/&/g,"%26").replace(/"/g,"%22").replace(/'/g,"%27").replace(/`/g,"%60").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/[\x00-\x1F]/g,e=>encodeURIComponent(e))}`)}return"?"+t.join("&")}(e)+r}(t);l("[nuqs next/app] Updating url: %s",o);let a="push"===r.history?history.pushState:history.replaceState;b(3),a.call(history,null,"",o),r.scroll&&window.scrollTo(0,0),r.shallow||e.replace(o,{scroll:!1})})},[]),rateLimitFactor:3,autoResetQueueOnUpdate:!0}},({children:e,defaultOptions:t,processUrlSearchParams:n,...a})=>(0,o.createElement)(c.Provider,{...a,value:{useAdapter:r,defaultOptions:t,processUrlSearchParams:n}},e));function N(e){let{children:t,...n}=e;return(0,o.createElement)(R,{...n,children:[(0,o.createElement)(o.Suspense,{key:"nuqs-adapter-suspense-navspy",children:(0,o.createElement)(S)}),t]})}},3395:e=>{e.exports={style:{fontFamily:"'GeistMono', ui-monospace, SFMono-Regular, Roboto Mono, Menlo, Monaco, Liberation Mono, DejaVu Sans Mono, Courier New, monospace"},className:"__className_c1e5c9",variable:"__variable_c1e5c9"}},3792:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o.a});var r=n(5165),o=n.n(r),a={};for(let e in r)"default"!==e&&(a[e]=()=>r[e]);n.d(t,a)},4111:(e,t,n)=>{"use strict";n.d(t,{i:()=>a});var r=n(7620),o=n(9111);function a({prop:e,defaultProp:t,onChange:n=()=>{}}){let[a,i]=function({defaultProp:e,onChange:t}){let n=r.useState(e),[a]=n,i=r.useRef(a),l=(0,o.c)(t);return r.useEffect(()=>{i.current!==a&&(l(a),i.current=a)},[a,i,l]),n}({defaultProp:t,onChange:n}),l=void 0!==e,s=l?e:a,u=(0,o.c)(n);return[s,r.useCallback(t=>{if(l){let n="function"==typeof t?t(e):t;n!==e&&u(n)}else i(t)},[l,e,i,u])]}},4560:(e,t,n)=>{"use strict";n.d(t,{D:()=>s,N:()=>u});var r=n(7620),o=["light","dark"],a="(prefers-color-scheme: dark)",i=r.createContext(void 0),l={setTheme:e=>{},themes:[]},s=()=>{var e;return null!=(e=r.useContext(i))?e:l},u=e=>r.useContext(i)?e.children:r.createElement(d,{...e}),c=["light","dark"],d=e=>{let{forcedTheme:t,disableTransitionOnChange:n=!1,enableSystem:l=!0,enableColorScheme:s=!0,storageKey:u="theme",themes:d=c,defaultTheme:g=l?"system":"light",attribute:v="data-theme",value:y,children:w,nonce:b}=e,[x,E]=r.useState(()=>p(u,g)),[T,C]=r.useState(()=>p(u)),S=y?Object.values(y):d,R=r.useCallback(e=>{let t=e;if(!t)return;"system"===e&&l&&(t=h());let r=y?y[t]:t,a=n?m():null,i=document.documentElement;if("class"===v?(i.classList.remove(...S),r&&i.classList.add(r)):r?i.setAttribute(v,r):i.removeAttribute(v),s){let e=o.includes(g)?g:null,n=o.includes(t)?t:e;i.style.colorScheme=n}null==a||a()},[]),N=r.useCallback(e=>{let t="function"==typeof e?e(e):e;E(t);try{localStorage.setItem(u,t)}catch(e){}},[t]),A=r.useCallback(e=>{C(h(e)),"system"===x&&l&&!t&&R("system")},[x,t]);r.useEffect(()=>{let e=window.matchMedia(a);return e.addListener(A),A(e),()=>e.removeListener(A)},[A]),r.useEffect(()=>{let e=e=>{e.key===u&&N(e.newValue||g)};return window.addEventListener("storage",e),()=>window.removeEventListener("storage",e)},[N]),r.useEffect(()=>{R(null!=t?t:x)},[t,x]);let M=r.useMemo(()=>({theme:x,setTheme:N,forcedTheme:t,resolvedTheme:"system"===x?T:x,themes:l?[...d,"system"]:d,systemTheme:l?T:void 0}),[x,N,t,T,l,d]);return r.createElement(i.Provider,{value:M},r.createElement(f,{forcedTheme:t,disableTransitionOnChange:n,enableSystem:l,enableColorScheme:s,storageKey:u,themes:d,defaultTheme:g,attribute:v,value:y,children:w,attrs:S,nonce:b}),w)},f=r.memo(e=>{let{forcedTheme:t,storageKey:n,attribute:i,enableSystem:l,enableColorScheme:s,defaultTheme:u,value:c,attrs:d,nonce:f}=e,p="system"===u,m="class"===i?"var d=document.documentElement,c=d.classList;".concat("c.remove(".concat(d.map(e=>"'".concat(e,"'")).join(","),")"),";"):"var d=document.documentElement,n='".concat(i,"',s='setAttribute';"),h=s?(o.includes(u)?u:null)?"if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'".concat(u,"'"):"if(e==='light'||e==='dark')d.style.colorScheme=e":"",g=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=!(arguments.length>2)||void 0===arguments[2]||arguments[2],r=c?c[e]:e,a=t?e+"|| ''":"'".concat(r,"'"),l="";return s&&n&&!t&&o.includes(e)&&(l+="d.style.colorScheme = '".concat(e,"';")),"class"===i?t||r?l+="c.add(".concat(a,")"):l+="null":r&&(l+="d[s](n,".concat(a,")")),l},v=t?"!function(){".concat(m).concat(g(t),"}()"):l?"!function(){try{".concat(m,"var e=localStorage.getItem('").concat(n,"');if('system'===e||(!e&&").concat(p,")){var t='").concat(a,"',m=window.matchMedia(t);if(m.media!==t||m.matches){").concat(g("dark"),"}
2else{").concat(g("light"),"}}else if(e){").concat(c?"var x=".concat(JSON.stringify(c),";"):"").concat(g(c?"x[e]":"e",!0),"}").concat(p?"":"else{"+g(u,!1,!1)+"}").concat(h,"}catch(e){}}()"):"!function(){try{".concat(m,"var e=localStorage.getItem('").concat(n,"');if(e){").concat(c?"var x=".concat(JSON.stringify(c),";"):"").concat(g(c?"x[e]":"e",!0),"}else{").concat(g(u,!1,!1),";}").concat(h,"}catch(t){}}();");return r.createElement("script",{nonce:f,dangerouslySetInnerHTML:{__html:v}})}),p=(e,t)=>{let n;try{n=localStorage.getItem(e)||void 0}catch(e){}return n||t},m=()=>{let e=document.createElement("style");return e.appendChild(document.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(e),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(e)},1)}},h=e=>(e||(e=window.matchMedia(a)),e.matches?"dark":"light")},4972:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(7620),o=n(7509),a=n(421),i=n(7514),l=n(4568),s=r.forwardRef((e,t)=>{var n,s;let{container:u,...c}=e,[d,f]=r.useState(!1);(0,i.N)(()=>f(!0),[]);let p=u||d&&(null==(s=globalThis)||null==(n=s.document)?void 0:n.body);return p?o.createPortal((0,l.jsx)(a.sG.div,{...c,ref:t}),p):null});s.displayName="Portal"},5165:(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 v},handleClientScriptLoad:function(){return m},initScriptLoader:function(){return h}});let r=n(4931),o=n(6632),a=n(4568),i=r._(n(7509)),l=o._(n(7620)),s=n(9892),u=n(8716),c=n(5848),d=new Map,f=new Set,p=e=>{let{src:t,id:n,onLoad:r=()=>{},onReady:o=null,dangerouslySetInnerHTML:a,children:l="",strategy:s="afterInteractive",onError:c,stylesheets:p}=e,m=n||t;if(m&&f.has(m))return;if(d.has(t)){f.add(m),d.get(t).then(r,c);return}let h=()=>{o&&o(),f.add(m)},g=document.createElement("script"),v=new Promise((e,t)=>{g.addEventListener("load",function(t){e(),r&&r.call(this,t),h()}),g.addEventListener("error",function(e){t(e)})}).catch(function(e){c&&c(e)});a?(g.innerHTML=a.__html||"",h()):l?(g.textContent="string"==typeof l?l:Array.isArray(l)?l.join(""):"",h()):t&&(g.src=t,d.set(t,v)),(0,u.setAttributesFromProps)(g,e),"worker"===s&&g.setAttribute("type","text/partytown"),g.setAttribute("data-nscript",s),p&&(e=>{if(i.default.preinit)return e.forEach(e=>{i.default.preinit(e,{as:"style"})});{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)})}})(p),document.body.appendChild(g)};function m(e){let{strategy:t="afterInteractive"}=e;"lazyOnload"===t?window.addEventListener("load",()=>{(0,c.requestIdleCallback)(()=>p(e))}):p(e)}function h(e){e.forEach(m),[...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:m,...h}=e,{updateScripts:g,scripts:v,getIsSsr:y,appDir:w,nonce:b}=(0,l.useContext)(s.HeadManagerContext);b=h.nonce||b;let x=(0,l.useRef)(!1);(0,l.useEffect)(()=>{let e=t||n;x.current||(o&&e&&f.has(e)&&o(),x.current=!0)},[o,t,n]);let E=(0,l.useRef)(!1);if((0,l.useEffect)(()=>{if(!E.current){if("afterInteractive"===u)p(e);else"lazyOnload"===u&&("complete"===document.readyState?(0,c.requestIdleCallback)(()=>p(e)):window.addEventListener("load",()=>{(0,c.requestIdleCallback)(()=>p(e))}));E.current=!0}},[e,u]),("beforeInteractive"===u||"worker"===u)&&(g?(v[u]=(v[u]||[]).concat([{id:t,src:n,onLoad:r,onReady:o,onError:d,...h,nonce:b}]),g(v)):y&&y()?f.add(t||n):y&&!y()&&p({...e,nonce:b})),w){if(m&&m.forEach(e=>{i.default.preinit(e,{as:"style"})}),"beforeInteractive"===u)if(!n)return h.dangerouslySetInnerHTML&&(h.children=h.dangerouslySetInnerHTML.__html,delete h.dangerouslySetInnerHTML),(0,a.jsx)("script",{nonce:b,dangerouslySetInnerHTML:{__html:"(self.__next_s=self.__next_s||[]).push("+J
2SON.stringify([0,{...h,id:t}])+")"}});else return i.default.preload(n,h.integrity?{as:"script",integrity:h.integrity,nonce:b,crossOrigin:h.crossOrigin}:{as:"script",nonce:b,crossOrigin:h.crossOrigin}),(0,a.jsx)("script",{nonce:b,dangerouslySetInnerHTML:{__html:"(self.__next_s=self.__next_s||[]).push("+JSON.stringify([n,{...h,id:t}])+")"}});"afterInteractive"===u&&n&&i.default.preload(n,h.integrity?{as:"script",integrity:h.integrity,nonce:b,crossOrigin:h.crossOrigin}:{as:"script",nonce:b,crossOrigin:h.crossOrigin})}return null}Object.defineProperty(g,"__nextScript",{value:!0});let v=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)},5848:(e,t)=>{"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,{cancelIdleCallback:function(){return r},requestIdleCallback:function(){return n}});let n="undefined"!=typeof self&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(e){let t=Date.now();return self.setTimeout(function(){e({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-t))}})},1)},r="undefined"!=typeof self&&self.cancelIdleCallback&&self.cancelIdleCallback.bind(window)||function(e){return clearTimeout(e)};("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)},6419:(e,t,n)=>{"use strict";n.d(t,{Oh:()=>a});var r=n(7620),o=0;function a(){r.useEffect(()=>{var e,t;let n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",null!=(e=n[0])?e:i()),document.body.insertAdjacentElement("beforeend",null!=(t=n[1])?t:i()),o++,()=>{1===o&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),o--}},[])}function i(){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}},7231:(e,t,n)=>{"use strict";function r(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}n.d(t,{m:()=>r})},7241:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sendGTMEvent=void 0,t.GoogleTagManager=function(e){let{gtmId:t,gtmScriptUrl:n="https://www.googletagmanager.com/gtm.js",dataLayerName:l="dataLayer",auth:s,preview:u,dataLayer:c,nonce:d}=e;i=l;let f="dataLayer"!==l?"&l=".concat(l):"";return(0,o.useEffect)(()=>{performance.mark("mark_feature_usage",{detail:{feature:"next-third-parties-gtm"}})},[]),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(a.default,{id:"_next-gtm-init",dangerouslySetInnerHTML:{__html:"\n      (function(w,l){\n        w[l]=w[l]||[];\n        w[l].push({'gtm.start': new Date().getTime(),event:'gtm.js'});\n        ".concat(c?"w[l].push(".concat(JSON.stringify(c),")"):"","\n      })(window,'").concat(l,"');")},nonce:d}),(0,r.jsx)(a.default,{id:"_next-gtm","data-ntpc":"GTM",src:"".concat(n,"?id=").concat(t).concat(f).concat(s?"&gtm_auth=".concat(s):"").concat(u?"&gtm_preview=".concat(u,"&gtm_cookies_win=x"):""),nonce:d})]})};let r=n(4568),o=n(7620),a=function(e){return e&&e.__esModule?e:{default:e}}(n(3792)),i="dataLayer";t.sendGTMEvent=(e,t)=>{let n=t||i;window[n]=window[n]||[],window[n].push(e)}},7282:(e,t,n)=>{"use strict";n.d(t,{F:()=>a});let r=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,o=function(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=function e(t){var n,r,o="";if("string"==typeof t||"number"==typeof t)o+=t;else if("object"==typeof t)if(Array.isArray(t)){var a=t.length;for(n=0;n<a;n++)t[n]&&(r=e(t[n]))&&(o&&(o+=" "),o+=r)}else for(r in t)t[r]&&(o&&(o+=" "),o+=r);return o}(e))&&(r&&(r+=" "),r+=t);return r},a=(e,t)=>n=>{var a;if((null==t?void 0:t.variants)==null)return o(e,null==n?void 0:n.class,null==n?void 0:n.className);let{variants:i,defaultVariants:l}=t,s=Object.keys(i).map(e=>{let t=null==n?void 0:n[e],o=null==l?void 0:l[e];
2if(null===t)return null;let a=r(t)||r(o);return i[e][a]}),u=n&&Object.entries(n).reduce((e,t)=>{let[n,r]=t;return void 0===r||(e[n]=r),e},{});return o(e,s,null==t||null==(a=t.compoundVariants)?void 0:a.reduce((e,t)=>{let{class:n,className:r,...o}=t;return Object.entries(o).every(e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...l,...u}[t]):({...l,...u})[t]===n})?[...e,n,r]:e},[]),null==n?void 0:n.class,null==n?void 0:n.className)}},7514:(e,t,n)=>{"use strict";n.d(t,{N:()=>o});var r=n(7620),o=globalThis?.document?r.useLayoutEffect:()=>{}},8107:(e,t,n)=>{"use strict";n.d(t,{A:()=>i,q:()=>a});var r=n(7620),o=n(4568);function a(e,t){let n=r.createContext(t),a=e=>{let{children:t,...a}=e,i=r.useMemo(()=>a,Object.values(a));return(0,o.jsx)(n.Provider,{value:i,children:t})};return a.displayName=e+"Provider",[a,function(o){let a=r.useContext(n);if(a)return a;if(void 0!==t)return t;throw Error(`\`${o}\` must be used within \`${e}\``)}]}function i(e,t=[]){let n=[],a=()=>{let t=n.map(e=>r.createContext(e));return function(n){let o=n?.[e]||t;return r.useMemo(()=>({[`__scope${e}`]:{...n,[e]:o}}),[n,o])}};return a.scopeName=e,[function(t,a){let i=r.createContext(a),l=n.length;n=[...n,a];let s=t=>{let{scope:n,children:a,...s}=t,u=n?.[e]?.[l]||i,c=r.useMemo(()=>s,Object.values(s));return(0,o.jsx)(u.Provider,{value:c,children:a})};return s.displayName=t+"Provider",[s,function(n,o){let s=o?.[e]?.[l]||i,u=r.useContext(s);if(u)return u;if(void 0!==a)return a;throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let o=n.reduce((t,{useScope:n,scopeName:r})=>{let o=n(e)[`__scope${r}`];return{...t,...o}},{});return r.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return n.scopeName=t.scopeName,n}(a,...t)]}},8249:(e,t,n)=>{"use strict";n.d(t,{n:()=>d});var r=n(7620),o=n(1715),a=n(421),i=n(9111),l=n(4568),s="focusScope.autoFocusOnMount",u="focusScope.autoFocusOnUnmount",c={bubbles:!1,cancelable:!0},d=r.forwardRef((e,t)=>{let{loop:n=!1,trapped:d=!1,onMountAutoFocus:g,onUnmountAutoFocus:v,...y}=e,[w,b]=r.useState(null),x=(0,i.c)(g),E=(0,i.c)(v),T=r.useRef(null),C=(0,o.s)(t,e=>b(e)),S=r.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;r.useEffect(()=>{if(d){let e=function(e){if(S.paused||!w)return;let t=e.target;w.contains(t)?T.current=t:m(T.current,{select:!0})},t=function(e){if(S.paused||!w)return;let t=e.relatedTarget;null!==t&&(w.contains(t)||m(T.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&&m(w)});return w&&n.observe(w,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),n.disconnect()}}},[d,w,S.paused]),r.useEffect(()=>{if(w){h.add(S);let e=document.activeElement;if(!w.contains(e)){let t=new CustomEvent(s,c);w.addEventListener(s,x),w.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(m(r,{select:t}),document.activeElement!==n)return}(f(w).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&m(w))}return()=>{w.removeEventListener(s,x),setTimeout(()=>{let t=new CustomEvent(u,c);w.addEventListener(u,E),w.dispatchEvent(t),t.defaultPrevented||m(null!=e?e:document.body,{select:!0}),w.removeEventListener(u,E),h.remove(S)},0)}}},[w,x,E,S]);let R=r.useCallback(e=>{if(!n&&!d||S.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,r=document.activeElement;if(t&&r){let t=e.currentTarget,[o,a]=function(e){let t=f(e);return[p(t,e),p(t.reverse(),e)]}(t);o&&a?e.shiftKey||r!==a?e.shiftKey&&r===o&&(e.preventDefault(),n&&m(a,{select:!0})):(e.preventDefault(),n&&m(o,{select:!0})):r===t&&e.preventDefault()}},[n,d,S.paused]);return(0,l.jsx)(a.sG.div,{tabIndex:-1,...y,ref:C,onKeyDown:R})});function f(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 p(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 m(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()}}d.displayName="FocusScope";var h=function(){let e=[];return{add(t){let n=e[0];t!==n&&(null==n||n.pause()),(e=g(e,t)).unshift(t)},remove(t){var n;null==(n=(e=g(e,t))[0])||n.resume()}}}();function g(e,t){let n=[...e],r=n.indexOf(t);return -1!==r&&n.splice(r,1),n}},8720:(e,t,n)=>{"use strict";
2Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){let{html:t,height:n=null,width:a=null,children:i,dataNtpc:l=""}=e;return(0,o.useEffect)(()=>{l&&performance.mark("mark_feature_usage",{detail:{feature:"next-third-parties-".concat(l)}})},[l]),(0,r.jsxs)(r.Fragment,{children:[i,t?(0,r.jsx)("div",{style:{height:null!=n?"".concat(n,"px"):"auto",width:null!=a?"".concat(a,"px"):"auto"},"data-ntpc":l,dangerouslySetInnerHTML:{__html:t}}):null]})};let r=n(4568),o=n(7620)},8787:(e,t,n)=>{"use strict";n.d(t,{C:()=>i});var r=n(7620),o=n(1715),a=n(7514),i=e=>{let{present:t,children:n}=e,i=function(e){var t,n;let[o,i]=r.useState(),s=r.useRef({}),u=r.useRef(e),c=r.useRef("none"),[d,f]=(t=e?"mounted":"unmounted",n={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},r.useReducer((e,t)=>{let r=n[e][t];return null!=r?r:e},t));return r.useEffect(()=>{let e=l(s.current);c.current="mounted"===d?e:"none"},[d]),(0,a.N)(()=>{let t=s.current,n=u.current;if(n!==e){let r=c.current,o=l(t);e?f("MOUNT"):"none"===o||(null==t?void 0:t.display)==="none"?f("UNMOUNT"):n&&r!==o?f("ANIMATION_OUT"):f("UNMOUNT"),u.current=e}},[e,f]),(0,a.N)(()=>{if(o){var e;let t,n=null!=(e=o.ownerDocument.defaultView)?e:window,r=e=>{let r=l(s.current).includes(e.animationName);if(e.target===o&&r&&(f("ANIMATION_END"),!u.current)){let e=o.style.animationFillMode;o.style.animationFillMode="forwards",t=n.setTimeout(()=>{"forwards"===o.style.animationFillMode&&(o.style.animationFillMode=e)})}},a=e=>{e.target===o&&(c.current=l(s.current))};return o.addEventListener("animationstart",a),o.addEventListener("animationcancel",r),o.addEventListener("animationend",r),()=>{n.clearTimeout(t),o.removeEventListener("animationstart",a),o.removeEventListener("animationcancel",r),o.removeEventListener("animationend",r)}}f("ANIMATION_END")},[o,f]),{isPresent:["mounted","unmountSuspended"].includes(d),ref:r.useCallback(e=>{e&&(s.current=getComputedStyle(e)),i(e)},[])}}(t),s="function"==typeof n?n({present:i.isPresent}):r.Children.only(n),u=(0,o.s)(i.ref,function(e){var t,n;let r=null==(t=Object.getOwnPropertyDescriptor(e.props,"ref"))?void 0:t.get,o=r&&"isReactWarning"in r&&r.isReactWarning;return o?e.ref:(o=(r=null==(n=Object.getOwnPropertyDescriptor(e,"ref"))?void 0:n.get)&&"isReactWarning"in r&&r.isReactWarning)?e.props.ref:e.props.ref||e.ref}(s));return"function"==typeof n||i.isPresent?r.cloneElement(s,{ref:u}):null};function l(e){return(null==e?void 0:e.animationName)||"none"}i.displayName="Presence"},8966:(e,t,n)=>{"use strict";n.d(t,{qW:()=>f});var r,o=n(7620),a=n(7231),i=n(421),l=n(1715),s=n(9111),u=n(4568),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:g,onPointerDownOutside:v,onFocusOutside:y,onInteractOutside:w,onDismiss:b,...x}=e,E=o.useContext(d),[T,C]=o.useState(null),S=null!=(f=null==T?void 0:T.ownerDocument)?f:null==(n=globalThis)?void 0:n.document,[,R]=o.useState({}),N=(0,l.s)(t,e=>C(e)),A=Array.from(E.layers),[M]=[...E.layersWithOutsidePointerEventsDisabled].slice(-1),_=A.indexOf(M),k=T?A.indexOf(T):-1,O=E.layersWithOutsidePointerEventsDisabled.size>0,L=k>=_,D=function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null==(t=globalThis)?void 0:t.document,r=(0,s.c)(e),a=o.useRef(!1),i=o.useRef(()=>{});return o.useEffect(()=>{let e=e=>{if(e.target&&!a.current){let t=function(){m("dismissableLayer.pointerDownOutside",r,o,{discrete:!0})},o={originalEvent:e};"touch"===e.pointerType?(n.removeEventListener("click",i.current),i.current=t,n.addEventListener("click",i.current,{once:!0})):t()}else n.removeEventListener("click",i.current);a.current=!1},t=window.setTimeout(()=>{n.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(t),n.removeEventListener("pointerdown",e),n.removeEventListener("click",i.current)}},[n,r]),{onPointerDownCapture:()=>a.current=!0}}(e=>{let t=e.target,n=[...E.branches].some(e=>e.contains(t));L&&!n&&(null==v||v(e),null==w||w(e),e.defaultPrevented||null==b||b())},S),I=function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null==(t=globalThis)?void 0:t.document,r=(0,s.c)(e),a=o.useRef(!1);return o.useEffect(()=>{let e=e=>{e.target&&!a.current&&m("dismissableLayer.focusOutside",r,{originalEvent:e},{discrete:!1})};return n.addEventListener("focusin",e),()=>n.removeEventListener("focusin",e)},[n,r]),{onFocusCapture:()=>a.current=!0,onBlurCapture:()=>a.current=!1}}(e=>{let t=e.target;![...E.branches].some(e=>e.contains(t))&&(null==y||y(e),null==w||w(e),e.defaultPrevented||null==b||b())},S);return!function(e,t=globalThis?.document){let n=(0,s.c)(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=>{k===E.layers.size-1&&(null==g||g(e),!e.defaultPrevented&&b&&(e.preventDefault(),b()))},S),o.useEffect(()=>{if(T)return h&&(0===E.layersWithOutsidePointerEventsDisabled.size&&(r=S.body.style.pointerEvents,S.body.style.pointerEvents="none"),E.layersWithOutsidePointerEventsDisabled.add(T)),E.layers.add(T),p(),()=>{h&&1===E.layersWithOutsidePointerEventsDisabled.size&&(S.body.style.pointerEvents=r)}},[T,S,h,E]),o.useEffect(()=>()=>{T&&(E.layers.delete(T),E.layersWithOutsidePointerEventsDisabled.delete(T),p())},[T,E]),o.useEffect(()=>{let e=()=>R({});return document.addEventListener(c,e),()=>document.removeEventListener(c,e)},[]),(0,u.jsx)(i.sG.div,{...x,ref:N,style:{pointerEvents:O?L?"auto":"none":void 0,...e.style},onFocusCapture:(0,a.m)(e.onFocusCapture,I.onFocusCapture),onBlurCapture:(0,a.m)(e.onBlurCapture,I.onBlurCapture),onPointerDownCapture:(0,a.m)(e.onPointerDownCapture,D.onPointerDownCapture)})});function p(){let e=new CustomEvent(c);document.dispatchEvent(e)}function m(e,t,n,r){let{discrete:o}=r,a=n.originalEvent.target,l=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&a.addEventListener(e,t,{once:!0}),o?(0,i.hO)(a,l):a.dispatchEvent(l)}f.displayName="DismissableLayer",o.forwardRef((e,t)=>
2{let n=o.useContext(d),r=o.useRef(null),a=(0,l.s)(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)(i.sG.div,{...e,ref:a})}).displayName="DismissableLayerBranch"},9111:(e,t,n)=>{"use strict";n.d(t,{c:()=>o});var r=n(7620);function o(e){let t=r.useRef(e);return r.useEffect(()=>{t.current=e}),r.useMemo(()=>(...e)=>t.current?.(...e),[])}},9134:e=>{e.exports={style:{fontFamily:"'calFont', 'calFont Fallback'",fontWeight:600},className:"__className_a90182",variable:"__variable_a90182"}},9214:(e,t,n)=>{"use strict";n.d(t,{UC:()=>et,VY:()=>er,ZL:()=>J,bL:()=>$,bm:()=>eo,hE:()=>en,hJ:()=>ee,l9:()=>Z});var r=n(7620),o=n(7231),a=n(1715),i=n(8107),l=n(1679),s=n(4111),u=n(8966),c=n(8249),d=n(4972),f=n(8787),p=n(421),m=n(6419),h=n(9736),g=n(9702),v=n(6118),y=n(4568),w="Dialog",[b,x]=(0,i.A)(w),[E,T]=b(w),C=e=>{let{__scopeDialog:t,children:n,open:o,defaultOpen:a,onOpenChange:i,modal:u=!0}=e,c=r.useRef(null),d=r.useRef(null),[f=!1,p]=(0,s.i)({prop:o,defaultProp:a,onChange:i});return(0,y.jsx)(E,{scope:t,triggerRef:c,contentRef:d,contentId:(0,l.B)(),titleId:(0,l.B)(),descriptionId:(0,l.B)(),open:f,onOpenChange:p,onOpenToggle:r.useCallback(()=>p(e=>!e),[p]),modal:u,children:n})};C.displayName=w;var S="DialogTrigger",R=r.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=T(S,n),l=(0,a.s)(t,i.triggerRef);return(0,y.jsx)(p.sG.button,{type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":G(i.open),...r,ref:l,onClick:(0,o.m)(e.onClick,i.onOpenToggle)})});R.displayName=S;var N="DialogPortal",[A,M]=b(N,{forceMount:void 0}),_=e=>{let{__scopeDialog:t,forceMount:n,children:o,container:a}=e,i=T(N,t);return(0,y.jsx)(A,{scope:t,forceMount:n,children:r.Children.map(o,e=>(0,y.jsx)(f.C,{present:n||i.open,children:(0,y.jsx)(d.Z,{asChild:!0,container:a,children:e})}))})};_.displayName=N;var k="DialogOverlay",O=r.forwardRef((e,t)=>{let n=M(k,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=T(k,e.__scopeDialog);return a.modal?(0,y.jsx)(f.C,{present:r||a.open,children:(0,y.jsx)(L,{...o,ref:t})}):null});O.displayName=k;var L=r.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,o=T(k,n);return(0,y.jsx)(h.A,{as:v.DX,allowPinchZoom:!0,shards:[o.contentRef],children:(0,y.jsx)(p.sG.div,{"data-state":G(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),D="DialogContent",I=r.forwardRef((e,t)=>{let n=M(D,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=T(D,e.__scopeDialog);return(0,y.jsx)(f.C,{present:r||a.open,children:a.modal?(0,y.jsx)(P,{...o,ref:t}):(0,y.jsx)(j,{...o,ref:t})})});I.displayName=D;var P=r.forwardRef((e,t)=>{let n=T(D,e.__scopeDialog),i=r.useRef(null),l=(0,a.s)(t,n.contentRef,i);return r.useEffect(()=>{let e=i.current;if(e)return(0,g.Eq)(e)},[]),(0,y.jsx)(F,{...e,ref:l,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,o.m)(e.onCloseAutoFocus,e=>{var t;e.preventDefault(),null==(t=n.triggerRef.current)||t.focus()}),onPointerDownOutside:(0,o.m)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;(2===t.button||n)&&e.preventDefault()}),onFocusOutside:(0,o.m)(e.onFocusOutside,e=>e.preventDefault())})}),j=r.forwardRef((e,t)=>{let n=T(D,e.__scopeDialog),o=r.useRef(!1),a=r.useRef(!1);return(0,y.jsx)(F,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var r,i;null==(r=e.onCloseAutoFocus)||r.call(e,t),t.defaultPrevented||(o.current||null==(i=n.triggerRef.current)||i.focus(),t.preventDefault()),o.current=!1,a.current=!1},onInteractOutside:t=>{var r,i;null==(r=e.onInteractOutside)||r.call(e,t),t.defaultPrevented||(o.current=!0,"pointerdown"===t.detail.originalEvent.type&&(a.current=!0));let l=t.target;(null==(i=n.triggerRef.current)?void 0:i.contains(l))&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&a.current&&t.preventDefault()}})}),F=r.forwardRef((e,t)=>{let{__scopeDialog:n,trapFocus:o,onOpenAutoFocus:i,onCloseAutoFocus:l,...s}=e,d=T(D,n),f=r.useRef(null),p=(0,a.s)(t,f);return(0,m.Oh)(),(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(c.n,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:i,onUnmountAutoFocus:l,children:(0,y.jsx)(u.qW,{role:"dialog",id:d.contentId,"aria-describedby":d.descriptionId,"aria-labelledby":d.titleId,"data-state":G(d.open),...s,ref:p,onDismiss:()=>d.onOpenChange(!1)})}),(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(Q,{titleId:d.titleId}),(0,y.jsx)(X,{contentRef:f,descriptionId:d.descriptionId})]})]})}),q="DialogTitle",U=r.forwardRef((e,t)=>
2{let{__scopeDialog:n,...r}=e,o=T(q,n);return(0,y.jsx)(p.sG.h2,{id:o.titleId,...r,ref:t})});U.displayName=q;var B="DialogDescription",z=r.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,o=T(B,n);return(0,y.jsx)(p.sG.p,{id:o.descriptionId,...r,ref:t})});z.displayName=B;var H="DialogClose",W=r.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,a=T(H,n);return(0,y.jsx)(p.sG.button,{type:"button",...r,ref:t,onClick:(0,o.m)(e.onClick,()=>a.onOpenChange(!1))})});function G(e){return e?"open":"closed"}W.displayName=H;var Y="DialogTitleWarning",[K,V]=(0,i.q)(Y,{contentName:D,titleName:q,docsSlug:"dialog"}),Q=e=>{let{titleId:t}=e,n=V(Y),o="`".concat(n.contentName,"` requires a `").concat(n.titleName,"` for the component to be accessible for screen reader users.\n\nIf you want to hide the `").concat(n.titleName,"`, you can wrap it with our VisuallyHidden component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/").concat(n.docsSlug);return r.useEffect(()=>{t&&(document.getElementById(t)||console.error(o))},[o,t]),null},X=e=>{let{contentRef:t,descriptionId:n}=e,o=V("DialogDescriptionWarning"),a="Warning: Missing `Description` or `aria-describedby={undefined}` for {".concat(o.contentName,"}.");return r.useEffect(()=>{var e;let r=null==(e=t.current)?void 0:e.getAttribute("aria-describedby");n&&r&&(document.getElementById(n)||console.warn(a))},[a,t,n]),null},$=C,Z=R,J=_,ee=O,et=I,en=U,er=z,eo=W},9601:(e,t,n)=>{"use strict";n.d(t,{H_:()=>nN,UC:()=>nT,YJ:()=>nC,q7:()=>nR,VF:()=>n_,JU:()=>nS,ZL:()=>nE,z6:()=>nA,hN:()=>nM,bL:()=>nb,wv:()=>nk,Pb:()=>nO,G5:()=>nD,ZP:()=>nL,l9:()=>nx});var r=n(7620),o=n(7231),a=n(1715),i=n(8107),l=n(4111),s=n(421),u=n(6118),c=n(4568);function d(e){let t=e+"CollectionProvider",[n,o]=(0,i.A)(t),[l,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),d=e=>{let{scope:t,children:n}=e,o=r.useRef(null),a=r.useRef(new Map).current;return(0,c.jsx)(l,{scope:t,itemMap:a,collectionRef:o,children:n})};d.displayName=t;let f=e+"CollectionSlot",p=r.forwardRef((e,t)=>{let{scope:n,children:r}=e,o=s(f,n),i=(0,a.s)(t,o.collectionRef);return(0,c.jsx)(u.DX,{ref:i,children:r})});p.displayName=f;let m=e+"CollectionItemSlot",h="data-radix-collection-item",g=r.forwardRef((e,t)=>{let{scope:n,children:o,...i}=e,l=r.useRef(null),d=(0,a.s)(t,l),f=s(m,n);return r.useEffect(()=>(f.itemMap.set(l,{ref:l,...i}),()=>void f.itemMap.delete(l))),(0,c.jsx)(u.DX,{...{[h]:""},ref:d,children:o})});return g.displayName=m,[{Provider:d,Slot:p,ItemSlot:g},function(t){let n=s(e+"CollectionConsumer",t);return r.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll("[".concat(h,"]")));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])},o]}var f=r.createContext(void 0);function p(e){let t=r.useContext(f);return e||t||"ltr"}var m=n(8966),h=n(6419),g=n(8249),v=n(1679);let y=["top","right","bottom","left"],w=Math.min,b=Math.max,x=Math.round,E=Math.floor,T=e=>({x:e,y:e}),C={left:"right",right:"left",bottom:"top",top:"bottom"},S={start:"end",end:"start"};function R(e,t){return"function"==typeof e?e(t):e}function N(e){return e.split("-")[0]}function A(e){return e.split("-")[1]}function M(e){return"x"===e?"y":"x"}function _(e){return"y"===e?"height":"width"}function k(e){return["top","bottom"].includes(N(e))?"y":"x"}function O(e){return e.replace(/start|end/g,e=>S[e])}function L(e){return e.replace(/left|right|bottom|top/g,e=>C[e])}function D(e){return"number"!=typeof e?{top:0,right:0,bottom:0,left:0,...e}:{top:e,right:e,bottom:e,left:e}}function I(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function P(e,t,n){let r,{reference:o,floating:a}=e,i=k(t),l=M(k(t)),s=_(l),u=N(t),c="y"===i,d=o.x+o.width/2-a.width/2,f=o.y+o.height/2-a.height/2,p=o[s]/2-a[s]/2;switch(u){case"top":r={x:d,y:o.y-a.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-a.width,y:f};break;default:r={x:o.x,y:o.y}}switch(A(t)){case"start":r[l]-=p*(n&&c?-1:1);break;case"end":r[l]+=p*(n&&c?-1:1)}return r}let j=async(e,t,n)=>{let{placement:r="bottom",strategy:o="absolute",middleware:a=[],platform:i}
2=n,l=a.filter(Boolean),s=await (null==i.isRTL?void 0:i.isRTL(t)),u=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:c,y:d}=P(u,r,s),f=r,p={},m=0;for(let n=0;n<l.length;n++){let{name:a,fn:h}=l[n],{x:g,y:v,data:y,reset:w}=await h({x:c,y:d,initialPlacement:r,placement:f,strategy:o,middlewareData:p,rects:u,platform:i,elements:{reference:e,floating:t}});c=null!=g?g:c,d=null!=v?v:d,p={...p,[a]:{...p[a],...y}},w&&m<=50&&(m++,"object"==typeof w&&(w.placement&&(f=w.placement),w.rects&&(u=!0===w.rects?await i.getElementRects({reference:e,floating:t,strategy:o}):w.rects),{x:c,y:d}=P(u,f,s)),n=-1)}return{x:c,y:d,placement:f,strategy:o,middlewareData:p}};async function F(e,t){var n;void 0===t&&(t={});let{x:r,y:o,platform:a,rects:i,elements:l,strategy:s}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=R(t,e),m=D(p),h=l[f?"floating"===d?"reference":"floating":d],g=I(await a.getClippingRect({element:null==(n=await (null==a.isElement?void 0:a.isElement(h)))||n?h:h.contextElement||await (null==a.getDocumentElement?void 0:a.getDocumentElement(l.floating)),boundary:u,rootBoundary:c,strategy:s})),v="floating"===d?{...i.floating,x:r,y:o}:i.reference,y=await (null==a.getOffsetParent?void 0:a.getOffsetParent(l.floating)),w=await (null==a.isElement?void 0:a.isElement(y))&&await (null==a.getScale?void 0:a.getScale(y))||{x:1,y:1},b=I(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:v,offsetParent:y,strategy:s}):v);return{top:(g.top-b.top+m.top)/w.y,bottom:(b.bottom-g.bottom+m.bottom)/w.y,left:(g.left-b.left+m.left)/w.x,right:(b.right-g.right+m.right)/w.x}}function q(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function U(e){return y.some(t=>e[t]>=0)}async function B(e,t){let{placement:n,platform:r,elements:o}=e,a=await (null==r.isRTL?void 0:r.isRTL(o.floating)),i=N(n),l=A(n),s="y"===k(n),u=["left","top"].includes(i)?-1:1,c=a&&s?-1:1,d=R(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return l&&"number"==typeof m&&(p="end"===l?-1*m:m),s?{x:p*c,y:f*u}:{x:f*u,y:p*c}}function z(e){return G(e)?(e.nodeName||"").toLowerCase():"#document"}function H(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function W(e){var t;return null==(t=(G(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function G(e){return e instanceof Node||e instanceof H(e).Node}function Y(e){return e instanceof Element||e instanceof H(e).Element}function K(e){return e instanceof HTMLElement||e instanceof H(e).HTMLElement}function V(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof H(e).ShadowRoot)}function Q(e){let{overflow:t,overflowX:n,overflowY:r,display:o}=J(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function X(e){let t=$(),n=J(e);return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some(e=>(n.willChange||"").includes(e))||["paint","layout","strict","content"].some(e=>(n.contain||"").includes(e))}function $(){return"undefined"!=typeof CSS&&!!CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")}function Z(e){return["html","body","#document"].includes(z(e))}function J(e){return H(e).getComputedStyle(e)}function ee(e){return Y(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function et(e){if("html"===z(e))return e;let t=e.assignedSlot||e.parentNode||V(e)&&e.host||W(e);return V(t)?t.host:t}function en(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);let o=function e(t){let n=et(t);return Z(n)?t.ownerDocument?t.ownerDocument.body:t.body:K(n)&&Q(n)?n:e(n)}(e),a=o===(null==(r=e.ownerDocument)?void 0:r.body),i=H(o);
2return a?t.concat(i,i.visualViewport||[],Q(o)?o:[],i.frameElement&&n?en(i.frameElement):[]):t.concat(o,en(o,[],n))}function er(e){let t=J(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,o=K(e),a=o?e.offsetWidth:n,i=o?e.offsetHeight:r,l=x(n)!==a||x(r)!==i;return l&&(n=a,r=i),{width:n,height:r,$:l}}function eo(e){return Y(e)?e:e.contextElement}function ea(e){let t=eo(e);if(!K(t))return T(1);let n=t.getBoundingClientRect(),{width:r,height:o,$:a}=er(t),i=(a?x(n.width):n.width)/r,l=(a?x(n.height):n.height)/o;return i&&Number.isFinite(i)||(i=1),l&&Number.isFinite(l)||(l=1),{x:i,y:l}}let ei=T(0);function el(e){let t=H(e);return $()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:ei}function es(e,t,n,r){var o;void 0===t&&(t=!1),void 0===n&&(n=!1);let a=e.getBoundingClientRect(),i=eo(e),l=T(1);t&&(r?Y(r)&&(l=ea(r)):l=ea(e));let s=(void 0===(o=n)&&(o=!1),r&&(!o||r===H(i))&&o)?el(i):T(0),u=(a.left+s.x)/l.x,c=(a.top+s.y)/l.y,d=a.width/l.x,f=a.height/l.y;if(i){let e=H(i),t=r&&Y(r)?H(r):r,n=e,o=n.frameElement;for(;o&&r&&t!==n;){let e=ea(o),t=o.getBoundingClientRect(),r=J(o),a=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,i=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;u*=e.x,c*=e.y,d*=e.x,f*=e.y,u+=a,c+=i,o=(n=H(o)).frameElement}}return I({width:d,height:f,x:u,y:c})}let eu=[":popover-open",":modal"];function ec(e){return eu.some(t=>{try{return e.matches(t)}catch(e){return!1}})}function ed(e){return es(W(e)).left+ee(e).scrollLeft}function ef(e,t,n){let r;if("viewport"===t)r=function(e,t){let n=H(e),r=W(e),o=n.visualViewport,a=r.clientWidth,i=r.clientHeight,l=0,s=0;if(o){a=o.width,i=o.height;let e=$();(!e||e&&"fixed"===t)&&(l=o.offsetLeft,s=o.offsetTop)}return{width:a,height:i,x:l,y:s}}(e,n);else if("document"===t)r=function(e){let t=W(e),n=ee(e),r=e.ownerDocument.body,o=b(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=b(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),i=-n.scrollLeft+ed(e),l=-n.scrollTop;return"rtl"===J(r).direction&&(i+=b(t.clientWidth,r.clientWidth)-o),{width:o,height:a,x:i,y:l}}(W(e));else if(Y(t))r=function(e,t){let n=es(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,a=K(e)?ea(e):T(1),i=e.clientWidth*a.x,l=e.clientHeight*a.y;return{width:i,height:l,x:o*a.x,y:r*a.y}}(t,n);else{let n=el(e);r={...t,x:t.x-n.x,y:t.y-n.y}}return I(r)}function ep(e,t){return K(e)&&"fixed"!==J(e).position?t?t(e):e.offsetParent:null}function em(e,t){let n=H(e);if(!K(e)||ec(e))return n;let r=ep(e,t);for(;r&&["table","td","th"].includes(z(r))&&"static"===J(r).position;)r=ep(r,t);return r&&("html"===z(r)||"body"===z(r)&&"static"===J(r).position&&!X(r))?n:r||function(e){let t=et(e);for(;K(t)&&!Z(t);)if(X(t))return t;else t=et(t);return null}(e)||n}let eh=async function(e){let t=this.getOffsetParent||em,n=this.getDimensions;return{reference:function(e,t,n){let r=K(t),o=W(t),a="fixed"===n,i=es(e,!0,a,t),l={scrollLeft:0,scrollTop:0},s=T(0);if(r||!r&&!a)if(("body"!==z(t)||Q(o))&&(l=ee(t)),r){let e=es(t,!0,a,t);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else o&&(s.x=ed(o));return{x:i.left+l.scrollLeft-s.x,y:i.top+l.scrollTop-s.y,width:i.width,height:i.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,...await n(e.floating)}}},eg={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e,a="fixed"===o,i=W(r),l=!!t&&ec(t.floating);if(r===i||l&&a)return n;let s={scrollLeft:0,scrollTop:0},u=T(1),c=T(0),d=K(r);if((d||!d&&!a)&&(("body"!==z(r)||Q(i))&&(s=ee(r)),K(r))){let e=es(r);u=ea(r),c.x=e.x+r.clientLeft,c.y=e.y+r.clientTop}return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-s.scrollLeft*u.x+c.x,y:n.y*u.y-s.scrollTop*u.y+c.y}},getDocumentElement:W,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e,a=[..."clippingAncestors"===n?function(e,t){let n=t.get(e);if(n)return n;let r=en(e,[],!1).filter(e=>Y(e)&&"body"!==z(e)),o=null,a="fixed"===J(e).position,i=a?et(e):e;for(;Y(i)&&!Z(i);){let t=J(i),n=X(i);n||"fixed"!==t.position||(o=null),(a?!n&&!o:!n&&"static"===t.position&&!!o&&["absolute","fixed"].includes(o.position)||Q(i)&&!n&&function e(t,n){let r=et(t);return!(r===n||!Y(r)||Z(r))&&("fixed"===J(r).position||e(r,n))}(e,i))?r=r.filter(e=>e!==i):o=t,i=et(i)}return t.set(e,r),r}(t,this._c):[].concat(n),r],i=a[0],l=a.reduce((e,n)=>{let r=ef(t,n,o);return e.top=b(r.top,e.top),e.right=w(r.right,e.right),e.bottom=w(r.bottom,e.bottom),e.left=b(r.left,e.left),e},ef(t,i,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},getOffsetParent:em,getElementRects:eh,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:n}=er(e);return{width:t,height:n}},getScale:ea,isElement:Y,isRTL:function(e){return"rtl"===J(e).direction}},ev=e=>({name:"arrow",options:e,async fn(t){let{x:n,y:r,placement:o,rects:a,platform:i,elements:l,middlewareData:s}=t,{element:u,padding:c=0}=R(e,t)||{};if(null==u)return{};let d=D(c),f={x:n,y:r},p=M(k(o)),m=_(p),h=await i.getDimensions(u),g="y"===p,v=g?"clientHeight":"clientWidth",y=a.reference[m]+a.reference[p]-f[p]-a.floating[m],x=f[p]-a.reference[p],E=await (null==i.getOffsetParent?void 0:i.getOffsetParent(u)),T=E?E[v]:0;T&&await (null==i.isElement?void 0:i.isElement(E))||(T=l.floating[v]||a.floating[m]);let C=T/2-h[m]/2-1,S=w(d[g?"top":"left"],C),N=w(d[g?"bottom":"right"],C),O=T-h[m]-N,L=T/2-h[m]/2+(y/2-x/2),I=b(S,w(L,O)),P=!s.arrow&&null!=A(o)&&L!==I&&a.reference[m]/2-(L<S?S:N)-h[m]/2<0,j=P?L<S?L-S:L-O:0;return{[p]:f[p]+j,data:{[p]:I,centerOffset:L-I-j,...P&&{alignmentOffset:j}},reset:P}}});var ey=n(7509),ew="undefined"!=typeof document?r.useLayoutEffect:r.useEffect;function eb(e,t){let n,r,o;
2if(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(!eb(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)&&!eb(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function ex(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function eE(e,t){let n=ex(e);return Math.round(t*n)/n}function eT(e){let t=r.useRef(e);return ew(()=>{t.current=e}),t}var eC=r.forwardRef((e,t)=>{let{children:n,width:r=10,height:o=5,...a}=e;return(0,c.jsx)(s.sG.svg,{...a,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:(0,c.jsx)("polygon",{points:"0,0 30,0 15,10"})})});eC.displayName="Arrow";var eS=n(9111),eR=n(7514),eN="Popper",[eA,eM]=(0,i.A)(eN),[e_,ek]=eA(eN),eO=e=>{let{__scopePopper:t,children:n}=e,[o,a]=r.useState(null);return(0,c.jsx)(e_,{scope:t,anchor:o,onAnchorChange:a,children:n})};eO.displayName=eN;var eL="PopperAnchor",eD=r.forwardRef((e,t)=>{let{__scopePopper:n,virtualRef:o,...i}=e,l=ek(eL,n),u=r.useRef(null),d=(0,a.s)(t,u);return r.useEffect(()=>{l.onAnchorChange((null==o?void 0:o.current)||u.current)}),o?null:(0,c.jsx)(s.sG.div,{...i,ref:d})});eD.displayName=eL;var eI="PopperContent",[eP,ej]=eA(eI),eF=r.forwardRef((e,t)=>{var n,o,i,l,u,d,f,p;let{__scopePopper:m,side:h="bottom",sideOffset:g=0,align:v="center",alignOffset:y=0,arrowPadding:x=0,avoidCollisions:T=!0,collisionBoundary:C=[],collisionPadding:S=0,sticky:D="partial",hideWhenDetached:I=!1,updatePositionStrategy:P="optimized",onPlaced:z,...H}=e,G=ek(eI,m),[Y,K]=r.useState(null),V=(0,a.s)(t,e=>K(e)),[Q,X]=r.useState(null),$=function(e){let[t,n]=r.useState(void 0);return(0,eR.N)(()=>{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 a=t[0];if("borderBoxSize"in a){let e=a.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}(Q),Z=null!=(f=null==$?void 0:$.width)?f:0,J=null!=(p=null==$?void 0:$.height)?p:0,ee="number"==typeof S?S:{top:0,right:0,bottom:0,left:0,...S},et=Array.isArray(C)?C:[C],er=et.length>0,ea={padding:ee,boundary:et.filter(ez),altBoundary:er},{refs:ei,floatingStyles:el,placement:eu,isPositioned:ec,middlewareData:ed}=function(e){void 0===e&&(e={});let{placement:t="bottom",strategy:n="absolute",middleware:o=[],platform:a,elements:{reference:i,floating:l}={},transform:s=!0,whileElementsMounted:u,open:c}=e,[d,f]=r.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,m]=r.useState(o);eb(p,o)||m(o);let[h,g]=r.useState(null),[v,y]=r.useState(null),w=r.useCallback(e=>{e!==T.current&&(T.current=e,g(e))},[]),b=r.useCallback(e=>{e!==C.current&&(C.current=e,y(e))},[]),x=i||h,E=l||v,T=r.useRef(null),C=r.useRef(null),S=r.useRef(d),R=null!=u,N=eT(u),A=eT(a),M=r.useCallback(()=>{if(!T.current||!C.current)return;let e={placement:t,strategy:n,middleware:p};A.current&&(e.platform=A.current),((e,t,n)=>{let r=new Map,o={platform:eg,...n},a={...o.platform,_c:r};return j(e,t,{...o,platform:a})})(T.current,C.current,e).then(e=>{let t={...e,isPositioned:!0};_.current&&!eb(S.current,t)&&(S.current=t,ey.flushSync(()=>{f(t)}))})},[p,t,n,A]);ew(()=>{!1===c&&S.current.isPositioned&&(S.current.isPositioned=!1,f(e=>({...e,isPositioned:!1})))},[c]);let _=r.useRef(!1);ew(()=>(_.current=!0,()=>{_.current=!1}),[]),ew(()=>{if(x&&(T.current=x),E&&(C.current=E),x&&E){if(N.current)return N.current(x,E,M);M()}},[x,E,M,N,R]);let k=r.useMemo(()=>({reference:T,floating:C,setReference:w,setFloating:b}),[w,b]),O=r.useMemo(()=>({reference:x,floating:E}),[x,E]),L=r.useMemo(()=>{let e={position:n,left:0,top:0};if(!O.floating)return e;let t=eE(O.floating,d.x),r=eE(O.floating,d.y);return s?{...e,transform:"translate("+t+"px, "+r+"px)",...ex(O.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,s,O.floating,d.x,d.y]);return r.useMemo(()=>({...d,update:M,refs:k,elements:O,floatingStyles:L}),[d,M,k,O,L])}({strategy:"fixed",placement:h+("center"!==v?"-"+v:""),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:a=!0,ancestorResize:i=!0,elementResize:l="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:u=!1}=r,c=eo(e),d=a||i?[...c?en(c):[],...en(t)]:[];
2d.forEach(e=>{a&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)});let f=c&&s?function(e,t){let n,r=null,o=W(e);function a(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return!function i(l,s){void 0===l&&(l=!1),void 0===s&&(s=1),a();let{left:u,top:c,width:d,height:f}=e.getBoundingClientRect();if(l||t(),!d||!f)return;let p=E(c),m=E(o.clientWidth-(u+d)),h={rootMargin:-p+"px "+-m+"px "+-E(o.clientHeight-(c+f))+"px "+-E(u)+"px",threshold:b(0,w(1,s))||1},g=!0;function v(e){let t=e[0].intersectionRatio;if(t!==s){if(!g)return i();t?i(!1,t):n=setTimeout(()=>{i(!1,1e-7)},100)}g=!1}try{r=new IntersectionObserver(v,{...h,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(v,h)}r.observe(e)}(!0),a}(c,n):null,p=-1,m=null;l&&(m=new ResizeObserver(e=>{let[r]=e;r&&r.target===c&&m&&(m.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var e;null==(e=m)||e.observe(t)})),n()}),c&&!u&&m.observe(c),m.observe(t));let h=u?es(e):null;return u&&function t(){let r=es(e);h&&(r.x!==h.x||r.y!==h.y||r.width!==h.width||r.height!==h.height)&&n(),h=r,o=requestAnimationFrame(t)}(),n(),()=>{var e;d.forEach(e=>{a&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)}),null==f||f(),null==(e=m)||e.disconnect(),m=null,u&&cancelAnimationFrame(o)}}(...t,{animationFrame:"always"===P})},elements:{reference:G.anchor},middleware:[function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;let{x:o,y:a,placement:i,middlewareData:l}=t,s=await B(t,e);return i===(null==(n=l.offset)?void 0:n.placement)&&null!=(r=l.arrow)&&r.alignmentOffset?{}:{x:o+s.x,y:a+s.y,data:{...s,placement:i}}}}}({mainAxis:g+J,alignmentAxis:y}),T&&function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){let{x:n,y:r,placement:o}=t,{mainAxis:a=!0,crossAxis:i=!1,limiter:l={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...s}=R(e,t),u={x:n,y:r},c=await F(t,s),d=k(N(o)),f=M(d),p=u[f],m=u[d];if(a){let e="y"===f?"top":"left",t="y"===f?"bottom":"right",n=p+c[e],r=p-c[t];p=b(n,w(p,r))}if(i){let e="y"===d?"top":"left",t="y"===d?"bottom":"right",n=m+c[e],r=m-c[t];m=b(n,w(m,r))}let h=l.fn({...t,[f]:p,[d]:m});return{...h,data:{x:h.x-n,y:h.y-r}}}}}({mainAxis:!0,crossAxis:!1,limiter:"partial"===D?function(e){return void 0===e&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:o,rects:a,middlewareData:i}=t,{offset:l=0,mainAxis:s=!0,crossAxis:u=!0}=R(e,t),c={x:n,y:r},d=k(o),f=M(d),p=c[f],m=c[d],h=R(l,t),g="number"==typeof h?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(s){let e="y"===f?"height":"width",t=a.reference[f]-a.floating[e]+g.mainAxis,n=a.reference[f]+a.reference[e]-g.mainAxis;p<t?p=t:p>n&&(p=n)}if(u){var v,y;let e="y"===f?"width":"height",t=["top","left"].includes(N(o)),n=a.reference[d]-a.floating[e]+(t&&(null==(v=i.offset)?void 0:v[d])||0)+(t?0:g.crossAxis),r=a.reference[d]+a.reference[e]+(t?0:(null==(y=i.offset)?void 0:y[d])||0)-(t?g.crossAxis:0);m<n?m=n:m>r&&(m=r)}return{[f]:p,[d]:m}}}}():void 0,...ea}),T&&function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r,o,a,i;let{placement:l,middlewareData:s,rects:u,initialPlacement:c,platform:d,elements:f}=t,{mainAxis:p=!0,crossAxis:m=!0,fallbackPlacements:h,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:y=!0,...w}=R(e,t);if(null!=(n=s.arrow)&&n.alignmentOffset)return{};let b=N(l),x=N(c)===c,E=await (null==d.isRTL?void 0:d.isRTL(f.floating)),T=h||(x||!y?[L(c)]:function(e){let t=L(e);return[O(e),t,O(t)]}(c));h||"none"===v||T.push(...function(e,t,n,r){let o=A(e),a=function(e,t,n){let r=["left","right"],o=["right","left"];switch(e){case"top":case"bottom":if(n)return t?o:r;return t?r:o;case"left":case"right":return t?["top","bottom"]:["bottom","top"];default:return[]}}(N(e),"start"===n,r);return o&&(a=a.map(e=>e+"-"+o),t&&(a=a.concat(a.map(O)))),a}(c,y,v,E));let C=[c,...T],S=await F(t,w),D=[],I=(null==(r=s.flip)?void 0:r.overflows)||[];if(p&&D.push(S[b]),m){let e=function(e,t,n){void 0===n&&(n=!1);let r=A(e),o=M(k(e)),a=_(o),i="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[a]>t.floating[a]&&(i=L(i)),[i,L(i)]}(l,u,E);D.push(S[e[0]],S[e[1]])}if(I=[...I,{placement:l,overflows:D}],!D.every(e=>e<=0)){let e=((null==(o=s.flip)?void 0:o.index)||0)+1,t=C[e];if(t)return{data:{index:e,overflows:I},reset:{placement:t}};let n=null==(a=I.filter(e=>e.overflows[0]<=0).sort((e,t)=>
2e.overflows[1]-t.overflows[1])[0])?void 0:a.placement;if(!n)switch(g){case"bestFit":{let e=null==(i=I.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:i[0];e&&(n=e);break}case"initialPlacement":n=c}if(l!==n)return{reset:{placement:n}}}return{}}}}({...ea}),function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){let n,r,{placement:o,rects:a,platform:i,elements:l}=t,{apply:s=()=>{},...u}=R(e,t),c=await F(t,u),d=N(o),f=A(o),p="y"===k(o),{width:m,height:h}=a.floating;"top"===d||"bottom"===d?(n=d,r=f===(await (null==i.isRTL?void 0:i.isRTL(l.floating))?"start":"end")?"left":"right"):(r=d,n="end"===f?"top":"bottom");let g=h-c[n],v=m-c[r],y=!t.middlewareData.shift,x=g,E=v;if(p){let e=m-c.left-c.right;E=f||y?w(v,e):e}else{let e=h-c.top-c.bottom;x=f||y?w(g,e):e}if(y&&!f){let e=b(c.left,0),t=b(c.right,0),n=b(c.top,0),r=b(c.bottom,0);p?E=m-2*(0!==e||0!==t?e+t:b(c.left,c.right)):x=h-2*(0!==n||0!==r?n+r:b(c.top,c.bottom))}await s({...t,availableWidth:E,availableHeight:x});let T=await i.getDimensions(l.floating);return m!==T.width||h!==T.height?{reset:{rects:!0}}:{}}}}({...ea,apply:e=>{let{elements:t,rects:n,availableWidth:r,availableHeight:o}=e,{width:a,height:i}=n.reference,l=t.floating.style;l.setProperty("--radix-popper-available-width","".concat(r,"px")),l.setProperty("--radix-popper-available-height","".concat(o,"px")),l.setProperty("--radix-popper-anchor-width","".concat(a,"px")),l.setProperty("--radix-popper-anchor-height","".concat(i,"px"))}}),Q&&(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?ev({element:n.current,padding:r}).fn(t):{}:n?ev({element:n,padding:r}).fn(t):{}}}))({element:Q,padding:x}),eH({arrowWidth:Z,arrowHeight:J}),I&&function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){let{rects:n}=t,{strategy:r="referenceHidden",...o}=R(e,t);switch(r){case"referenceHidden":{let e=q(await F(t,{...o,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:U(e)}}}case"escaped":{let e=q(await F(t,{...o,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:U(e)}}}default:return{}}}}}({strategy:"referenceHidden",...ea})]}),[ef,ep]=eW(eu),em=(0,eS.c)(z);(0,eR.N)(()=>{ec&&(null==em||em())},[ec,em]);let eh=null==(n=ed.arrow)?void 0:n.x,eC=null==(o=ed.arrow)?void 0:o.y,eN=(null==(i=ed.arrow)?void 0:i.centerOffset)!==0,[eA,eM]=r.useState();return(0,eR.N)(()=>{Y&&eM(window.getComputedStyle(Y).zIndex)},[Y]),(0,c.jsx)("div",{ref:ei.setFloating,"data-radix-popper-content-wrapper":"",style:{...el,transform:ec?el.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:eA,"--radix-popper-transform-origin":[null==(l=ed.transformOrigin)?void 0:l.x,null==(u=ed.transformOrigin)?void 0:u.y].join(" "),...(null==(d=ed.hide)?void 0:d.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,c.jsx)(eP,{scope:m,placedSide:ef,onArrowChange:X,arrowX:eh,arrowY:eC,shouldHideArrow:eN,children:(0,c.jsx)(s.sG.div,{"data-side":ef,"data-align":ep,...H,ref:V,style:{...H.style,animation:ec?void 0:"none"}})})})});eF.displayName=eI;var eq="PopperArrow",eU={top:"bottom",right:"left",bottom:"top",left:"right"},eB=r.forwardRef(function(e,t){let{__scopePopper:n,...r}=e,o=ej(eq,n),a=eU[o.placedSide];return(0,c.jsx)("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[a]: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,c.jsx)(eC,{...r,ref:t,style:{...r.style,display:"block"}})})});function ez(e){return null!==e}eB.displayName=eq;var eH=e=>({name:"transformOrigin",options:e,fn(t){var n,r,o,a,i;let{placement:l,rects:s,middlewareData:u}=t,c=(null==(n=u.arrow)?void 0:n.centerOffset)!==0,d=c?0:e.arrowWidth,f=c?0:e.arrowHeight,[p,m]=eW(l),h={start:"0%",center:"50%",end:"100%"}[m],g=(null!=(a=null==(r=u.arrow)?void 0:r.x)?a:0)+d/2,v=(null!=(i=null==(o=u.arrow)?void 0:o.y)?i:0)+f/2,y="",w="";return"bottom"===p?(y=c?h:"".concat(g,"px"),w="".concat(-f,"px")):"top"===p?(y=c?h:"".concat(g,"px"),w="".concat(s.floating.height+f,"px")):"right"===p?(y="".concat(-f,"px"),w=c?h:"".concat(v,"px")):"left"===p&&(y="".concat(s.floating.width+f,"px"),w=c?h:"".concat(v,"px")),{data:{x:y,y:w}}}});function eW(e){let[t,n="center"]=e.split("-");return[t,n]}var eG=n(4972),eY=n(8787),eK="rovingFocusGroup.onEntryFocus",eV={bubbles:!1,cancelable:!0},eQ="RovingFocusGroup",[eX,e$,eZ]=d(eQ),[eJ,e0]=(0,i.A)(eQ,[eZ]),[e1,e2]=eJ(eQ),e5=r.forwardRef((e,t)=>
2(0,c.jsx)(eX.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,c.jsx)(eX.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,c.jsx)(e4,{...e,ref:t})})}));e5.displayName=eQ;var e4=r.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:n,orientation:i,loop:u=!1,dir:d,currentTabStopId:f,defaultCurrentTabStopId:m,onCurrentTabStopIdChange:h,onEntryFocus:g,preventScrollOnEntryFocus:v=!1,...y}=e,w=r.useRef(null),b=(0,a.s)(t,w),x=p(d),[E=null,T]=(0,l.i)({prop:f,defaultProp:m,onChange:h}),[C,S]=r.useState(!1),R=(0,eS.c)(g),N=e$(n),A=r.useRef(!1),[M,_]=r.useState(0);return r.useEffect(()=>{let e=w.current;if(e)return e.addEventListener(eK,R),()=>e.removeEventListener(eK,R)},[R]),(0,c.jsx)(e1,{scope:n,orientation:i,dir:x,loop:u,currentTabStopId:E,onItemFocus:r.useCallback(e=>T(e),[T]),onItemShiftTab:r.useCallback(()=>S(!0),[]),onFocusableItemAdd:r.useCallback(()=>_(e=>e+1),[]),onFocusableItemRemove:r.useCallback(()=>_(e=>e-1),[]),children:(0,c.jsx)(s.sG.div,{tabIndex:C||0===M?-1:0,"data-orientation":i,...y,ref:b,style:{outline:"none",...e.style},onMouseDown:(0,o.m)(e.onMouseDown,()=>{A.current=!0}),onFocus:(0,o.m)(e.onFocus,e=>{let t=!A.current;if(e.target===e.currentTarget&&t&&!C){let t=new CustomEvent(eK,eV);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=N().filter(e=>e.focusable);e8([e.find(e=>e.active),e.find(e=>e.id===E),...e].filter(Boolean).map(e=>e.ref.current),v)}}A.current=!1}),onBlur:(0,o.m)(e.onBlur,()=>S(!1))})})}),e7="RovingFocusGroupItem",e9=r.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:n,focusable:a=!0,active:i=!1,tabStopId:l,...u}=e,d=(0,v.B)(),f=l||d,p=e2(e7,n),m=p.currentTabStopId===f,h=e$(n),{onFocusableItemAdd:g,onFocusableItemRemove:y}=p;return r.useEffect(()=>{if(a)return g(),()=>y()},[a,g,y]),(0,c.jsx)(eX.ItemSlot,{scope:n,id:f,focusable:a,active:i,children:(0,c.jsx)(s.sG.span,{tabIndex:m?0:-1,"data-orientation":p.orientation,...u,ref:t,onMouseDown:(0,o.m)(e.onMouseDown,e=>{a?p.onItemFocus(f):e.preventDefault()}),onFocus:(0,o.m)(e.onFocus,()=>p.onItemFocus(f)),onKeyDown:(0,o.m)(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey)return void p.onItemShiftTab();if(e.target!==e.currentTarget)return;let t=function(e,t,n){var r;let o=(r=e.key,"rtl"!==n?r:"ArrowLeft"===r?"ArrowRight":"ArrowRight"===r?"ArrowLeft":r);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(o))&&!("horizontal"===t&&["ArrowUp","ArrowDown"].includes(o)))return e6[o]}(e,p.orientation,p.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let n=h().filter(e=>e.focusable).map(e=>e.ref.current);if("last"===t)n.reverse();else if("prev"===t||"next"===t){"prev"===t&&n.reverse();let r=n.indexOf(e.currentTarget);n=p.loop?function(e,t){return e.map((n,r)=>e[(t+r)%e.length])}(n,r+1):n.slice(r+1)}setTimeout(()=>e8(n))}})})})});e9.displayName=e7;var e6={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function e8(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=document.activeElement;for(let r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}var e3=n(9702),te=n(9736),tt=["Enter"," "],tn=["ArrowUp","PageDown","End"],tr=["ArrowDown","PageUp","Home",...tn],to={ltr:[...tt,"ArrowRight"],rtl:[...tt,"ArrowLeft"]},ta={ltr:["ArrowLeft"],rtl:["ArrowRight"]},ti="Menu",[tl,ts,tu]=d(ti),[tc,td]=(0,i.A)(ti,[tu,eM,e0]),tf=eM(),tp=e0(),[tm,th]=tc(ti),[tg,tv]=tc(ti),ty=e=>{let{__scopeMenu:t,open:n=!1,children:o,dir:a,onOpenChange:i,modal:l=!0}=e,s=tf(t),[u,d]=r.useState(null),f=r.useRef(!1),m=(0,eS.c)(i),h=p(a);return r.useEffect(()=>{let e=()=>{f.current=!0,document.addEventListener("pointerdown",t,{capture:!0,once:!0}),document.addEventListener("pointermove",t,{capture:!0,once:!0})},t=()=>f.current=!1;return document.addEventListener("keydown",e,{capture:!0}),()=>{document.removeEventListener("keydown",e,{capture:!0}),document.removeEventListener("pointerdown",t,{capture:!0}),document.removeEventListener("pointermove",t,{capture:!0})}},[]),(0,c.jsx)(eO,{...s,children:(0,c.jsx)(tm,{scope:t,open:n,onOpenChange:m,content:u,onContentChange:d,children:(0,c.jsx)(tg,{scope:t,onClose:r.useCallback(()=>m(!1),[m]),isUsingKeyboardRef:f,dir:h,modal:l,children:o})})})};ty.displayName=ti;var tw=r.forwardRef((e,t)=>
2{let{__scopeMenu:n,...r}=e,o=tf(n);return(0,c.jsx)(eD,{...o,...r,ref:t})});tw.displayName="MenuAnchor";var tb="MenuPortal",[tx,tE]=tc(tb,{forceMount:void 0}),tT=e=>{let{__scopeMenu:t,forceMount:n,children:r,container:o}=e,a=th(tb,t);return(0,c.jsx)(tx,{scope:t,forceMount:n,children:(0,c.jsx)(eY.C,{present:n||a.open,children:(0,c.jsx)(eG.Z,{asChild:!0,container:o,children:r})})})};tT.displayName=tb;var tC="MenuContent",[tS,tR]=tc(tC),tN=r.forwardRef((e,t)=>{let n=tE(tC,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,a=th(tC,e.__scopeMenu),i=tv(tC,e.__scopeMenu);return(0,c.jsx)(tl.Provider,{scope:e.__scopeMenu,children:(0,c.jsx)(eY.C,{present:r||a.open,children:(0,c.jsx)(tl.Slot,{scope:e.__scopeMenu,children:i.modal?(0,c.jsx)(tA,{...o,ref:t}):(0,c.jsx)(tM,{...o,ref:t})})})})}),tA=r.forwardRef((e,t)=>{let n=th(tC,e.__scopeMenu),i=r.useRef(null),l=(0,a.s)(t,i);return r.useEffect(()=>{let e=i.current;if(e)return(0,e3.Eq)(e)},[]),(0,c.jsx)(t_,{...e,ref:l,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:(0,o.m)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),tM=r.forwardRef((e,t)=>{let n=th(tC,e.__scopeMenu);return(0,c.jsx)(t_,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),t_=r.forwardRef((e,t)=>{let{__scopeMenu:n,loop:i=!1,trapFocus:l,onOpenAutoFocus:s,onCloseAutoFocus:d,disableOutsidePointerEvents:f,onEntryFocus:p,onEscapeKeyDown:v,onPointerDownOutside:y,onFocusOutside:w,onInteractOutside:b,onDismiss:x,disableOutsideScroll:E,...T}=e,C=th(tC,n),S=tv(tC,n),R=tf(n),N=tp(n),A=ts(n),[M,_]=r.useState(null),k=r.useRef(null),O=(0,a.s)(t,k,C.onContentChange),L=r.useRef(0),D=r.useRef(""),I=r.useRef(0),P=r.useRef(null),j=r.useRef("right"),F=r.useRef(0),q=E?te.A:r.Fragment,U=E?{as:u.DX,allowPinchZoom:!0}:void 0;r.useEffect(()=>()=>window.clearTimeout(L.current),[]),(0,h.Oh)();let B=r.useCallback(e=>{var t,n;return j.current===(null==(t=P.current)?void 0:t.side)&&function(e,t){return!!t&&function(e,t){let{x:n,y:r}=e,o=!1;for(let e=0,a=t.length-1;e<t.length;a=e++){let i=t[e].x,l=t[e].y,s=t[a].x,u=t[a].y;l>r!=u>r&&n<(s-i)*(r-l)/(u-l)+i&&(o=!o)}return o}({x:e.clientX,y:e.clientY},t)}(e,null==(n=P.current)?void 0:n.area)},[]);return(0,c.jsx)(tS,{scope:n,searchRef:D,onItemEnter:r.useCallback(e=>{B(e)&&e.preventDefault()},[B]),onItemLeave:r.useCallback(e=>{var t;B(e)||(null==(t=k.current)||t.focus(),_(null))},[B]),onTriggerLeave:r.useCallback(e=>{B(e)&&e.preventDefault()},[B]),pointerGraceTimerRef:I,onPointerGraceIntentChange:r.useCallback(e=>{P.current=e},[]),children:(0,c.jsx)(q,{...U,children:(0,c.jsx)(g.n,{asChild:!0,trapped:l,onMountAutoFocus:(0,o.m)(s,e=>{var t;e.preventDefault(),null==(t=k.current)||t.focus({preventScroll:!0})}),onUnmountAutoFocus:d,children:(0,c.jsx)(m.qW,{asChild:!0,disableOutsidePointerEvents:f,onEscapeKeyDown:v,onPointerDownOutside:y,onFocusOutside:w,onInteractOutside:b,onDismiss:x,children:(0,c.jsx)(e5,{asChild:!0,...N,dir:S.dir,orientation:"vertical",loop:i,currentTabStopId:M,onCurrentTabStopIdChange:_,onEntryFocus:(0,o.m)(p,e=>{S.isUsingKeyboardRef.current||e.preventDefault()}),preventScrollOnEntryFocus:!0,children:(0,c.jsx)(eF,{role:"menu","aria-orientation":"vertical","data-state":t4(C.open),"data-radix-menu-content":"",dir:S.dir,...R,...T,ref:O,style:{outline:"none",...T.style},onKeyDown:(0,o.m)(T.onKeyDown,e=>{let t=e.target.closest("[data-radix-menu-content]")===e.currentTarget,n=e.ctrlKey||e.altKey||e.metaKey,r=1===e.key.length;t&&("Tab"===e.key&&e.preventDefault(),!n&&r&&(e=>{var t,n;let r=D.current+e,o=A().filter(e=>!e.disabled),a=document.activeElement,i=null==(t=o.find(e=>
2e.ref.current===a))?void 0:t.textValue,l=function(e,t,n){var r;let o=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,a=n?e.indexOf(n):-1,i=(r=Math.max(a,0),e.map((t,n)=>e[(r+n)%e.length]));1===o.length&&(i=i.filter(e=>e!==n));let l=i.find(e=>e.toLowerCase().startsWith(o.toLowerCase()));return l!==n?l:void 0}(o.map(e=>e.textValue),r,i),s=null==(n=o.find(e=>e.textValue===l))?void 0:n.ref.current;!function e(t){D.current=t,window.clearTimeout(L.current),""!==t&&(L.current=window.setTimeout(()=>e(""),1e3))}(r),s&&setTimeout(()=>s.focus())})(e.key));let o=k.current;if(e.target!==o||!tr.includes(e.key))return;e.preventDefault();let a=A().filter(e=>!e.disabled).map(e=>e.ref.current);tn.includes(e.key)&&a.reverse(),function(e){let t=document.activeElement;for(let n of e)if(n===t||(n.focus(),document.activeElement!==t))return}(a)}),onBlur:(0,o.m)(e.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(L.current),D.current="")}),onPointerMove:(0,o.m)(e.onPointerMove,t6(e=>{let t=e.target,n=F.current!==e.clientX;e.currentTarget.contains(t)&&n&&(j.current=e.clientX>F.current?"right":"left",F.current=e.clientX)}))})})})})})})});tN.displayName=tC;var tk=r.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,c.jsx)(s.sG.div,{role:"group",...r,ref:t})});tk.displayName="MenuGroup";var tO=r.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,c.jsx)(s.sG.div,{...r,ref:t})});tO.displayName="MenuLabel";var tL="MenuItem",tD="menu.itemSelect",tI=r.forwardRef((e,t)=>{let{disabled:n=!1,onSelect:i,...l}=e,u=r.useRef(null),d=tv(tL,e.__scopeMenu),f=tR(tL,e.__scopeMenu),p=(0,a.s)(t,u),m=r.useRef(!1);return(0,c.jsx)(tP,{...l,ref:p,disabled:n,onClick:(0,o.m)(e.onClick,()=>{let e=u.current;if(!n&&e){let t=new CustomEvent(tD,{bubbles:!0,cancelable:!0});e.addEventListener(tD,e=>null==i?void 0:i(e),{once:!0}),(0,s.hO)(e,t),t.defaultPrevented?m.current=!1:d.onClose()}}),onPointerDown:t=>{var n;null==(n=e.onPointerDown)||n.call(e,t),m.current=!0},onPointerUp:(0,o.m)(e.onPointerUp,e=>{var t;m.current||null==(t=e.currentTarget)||t.click()}),onKeyDown:(0,o.m)(e.onKeyDown,e=>{let t=""!==f.searchRef.current;n||t&&" "===e.key||tt.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})})});tI.displayName=tL;var tP=r.forwardRef((e,t)=>{let{__scopeMenu:n,disabled:i=!1,textValue:l,...u}=e,d=tR(tL,n),f=tp(n),p=r.useRef(null),m=(0,a.s)(t,p),[h,g]=r.useState(!1),[v,y]=r.useState("");return r.useEffect(()=>{let e=p.current;if(e){var t;y((null!=(t=e.textContent)?t:"").trim())}},[u.children]),(0,c.jsx)(tl.ItemSlot,{scope:n,disabled:i,textValue:null!=l?l:v,children:(0,c.jsx)(e9,{asChild:!0,...f,focusable:!i,children:(0,c.jsx)(s.sG.div,{role:"menuitem","data-highlighted":h?"":void 0,"aria-disabled":i||void 0,"data-disabled":i?"":void 0,...u,ref:m,onPointerMove:(0,o.m)(e.onPointerMove,t6(e=>{i?d.onItemLeave(e):(d.onItemEnter(e),e.defaultPrevented||e.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:(0,o.m)(e.onPointerLeave,t6(e=>d.onItemLeave(e))),onFocus:(0,o.m)(e.onFocus,()=>g(!0)),onBlur:(0,o.m)(e.onBlur,()=>g(!1))})})})}),tj=r.forwardRef((e,t)=>{let{checked:n=!1,onCheckedChange:r,...a}=e;return(0,c.jsx)(tG,{scope:e.__scopeMenu,checked:n,children:(0,c.jsx)(tI,{role:"menuitemcheckbox","aria-checked":t7(n)?"mixed":n,...a,ref:t,"data-state":t9(n),onSelect:(0,o.m)(a.onSelect,()=>null==r?void 0:r(!!t7(n)||!n),{checkForDefaultPrevented:!1})})})});tj.displayName="MenuCheckboxItem";var tF="MenuRadioGroup",[tq,tU]=tc(tF,{value:void 0,onValueChange:()=>{}}),tB=r.forwardRef((e,t)=>{let{value:n,onValueChange:r,...o}=e,a=(0,eS.c)(r);return(0,c.jsx)(tq,{scope:e.__scopeMenu,value:n,onValueChange:a,children:(0,c.jsx)(tk,{...o,ref:t})})});tB.displayName=tF;var tz="MenuRadioItem",tH=r.forwardRef((e,t)=>{let{value:n,...r}=e,a=tU(tz,e.__scopeMenu),i=n===a.value;return(0,c.jsx)(tG,{scope:e.__scopeMenu,checked:i,children:(0,c.jsx)(tI,{role:"menuitemradio","aria-checked":i,...r,ref:t,"data-state":t9(i),onSelect:(0,o.m)(r.onSelect,()=>{var e;return null==(e=a.onValueChange)?void 0:e.call(a,n)},{checkForDefaultPrevented:!1})})})});tH.displayName=tz;var tW="MenuItemIndicator",[tG,tY]=tc(tW,{checked:!1}
2),tK=r.forwardRef((e,t)=>{let{__scopeMenu:n,forceMount:r,...o}=e,a=tY(tW,n);return(0,c.jsx)(eY.C,{present:r||t7(a.checked)||!0===a.checked,children:(0,c.jsx)(s.sG.span,{...o,ref:t,"data-state":t9(a.checked)})})});tK.displayName=tW;var tV=r.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,c.jsx)(s.sG.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})});tV.displayName="MenuSeparator";var tQ=r.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e,o=tf(n);return(0,c.jsx)(eB,{...o,...r,ref:t})});tQ.displayName="MenuArrow";var tX="MenuSub",[t$,tZ]=tc(tX),tJ=e=>{let{__scopeMenu:t,children:n,open:o=!1,onOpenChange:a}=e,i=th(tX,t),l=tf(t),[s,u]=r.useState(null),[d,f]=r.useState(null),p=(0,eS.c)(a);return r.useEffect(()=>(!1===i.open&&p(!1),()=>p(!1)),[i.open,p]),(0,c.jsx)(eO,{...l,children:(0,c.jsx)(tm,{scope:t,open:o,onOpenChange:p,content:d,onContentChange:f,children:(0,c.jsx)(t$,{scope:t,contentId:(0,v.B)(),triggerId:(0,v.B)(),trigger:s,onTriggerChange:u,children:n})})})};tJ.displayName=tX;var t0="MenuSubTrigger",t1=r.forwardRef((e,t)=>{let n=th(t0,e.__scopeMenu),i=tv(t0,e.__scopeMenu),l=tZ(t0,e.__scopeMenu),s=tR(t0,e.__scopeMenu),u=r.useRef(null),{pointerGraceTimerRef:d,onPointerGraceIntentChange:f}=s,p={__scopeMenu:e.__scopeMenu},m=r.useCallback(()=>{u.current&&window.clearTimeout(u.current),u.current=null},[]);return r.useEffect(()=>m,[m]),r.useEffect(()=>{let e=d.current;return()=>{window.clearTimeout(e),f(null)}},[d,f]),(0,c.jsx)(tw,{asChild:!0,...p,children:(0,c.jsx)(tP,{id:l.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":l.contentId,"data-state":t4(n.open),...e,ref:(0,a.t)(t,l.onTriggerChange),onClick:t=>{var r;null==(r=e.onClick)||r.call(e,t),e.disabled||t.defaultPrevented||(t.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:(0,o.m)(e.onPointerMove,t6(t=>{s.onItemEnter(t),!t.defaultPrevented&&(e.disabled||n.open||u.current||(s.onPointerGraceIntentChange(null),u.current=window.setTimeout(()=>{n.onOpenChange(!0),m()},100)))})),onPointerLeave:(0,o.m)(e.onPointerLeave,t6(e=>{var t,r;m();let o=null==(t=n.content)?void 0:t.getBoundingClientRect();if(o){let t=null==(r=n.content)?void 0:r.dataset.side,a="right"===t,i=o[a?"left":"right"],l=o[a?"right":"left"];s.onPointerGraceIntentChange({area:[{x:e.clientX+(a?-5:5),y:e.clientY},{x:i,y:o.top},{x:l,y:o.top},{x:l,y:o.bottom},{x:i,y:o.bottom}],side:t}),window.clearTimeout(d.current),d.current=window.setTimeout(()=>s.onPointerGraceIntentChange(null),300)}else{if(s.onTriggerLeave(e),e.defaultPrevented)return;s.onPointerGraceIntentChange(null)}})),onKeyDown:(0,o.m)(e.onKeyDown,t=>{let r=""!==s.searchRef.current;if(!e.disabled&&(!r||" "!==t.key)&&to[i.dir].includes(t.key)){var o;n.onOpenChange(!0),null==(o=n.content)||o.focus(),t.preventDefault()}})})})});t1.displayName=t0;var t2="MenuSubContent",t5=r.forwardRef((e,t)=>{let n=tE(tC,e.__scopeMenu),{forceMount:i=n.forceMount,...l}=e,s=th(tC,e.__scopeMenu),u=tv(tC,e.__scopeMenu),d=tZ(t2,e.__scopeMenu),f=r.useRef(null),p=(0,a.s)(t,f);return(0,c.jsx)(tl.Provider,{scope:e.__scopeMenu,children:(0,c.jsx)(eY.C,{present:i||s.open,children:(0,c.jsx)(tl.Slot,{scope:e.__scopeMenu,children:(0,c.jsx)(t_,{id:d.contentId,"aria-labelledby":d.triggerId,...l,ref:p,align:"start",side:"rtl"===u.dir?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{var t;u.isUsingKeyboardRef.current&&(null==(t=f.current)||t.focus()),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:(0,o.m)(e.onFocusOutside,e=>{e.target!==d.trigger&&s.onOpenChange(!1)}),onEscapeKeyDown:(0,o.m)(e.onEscapeKeyDown,e=>{u.onClose(),e.preventDefault()}),onKeyDown:(0,o.m)(e.onKeyDown,e=>{let t=e.currentTarget.contains(e.target),n=ta[u.dir].includes(e.key);if(t&&n){var r;s.onOpenChange(!1),null==(r=d.trigger)||r.focus(),e.preventDefault()}})})})})})});function t4(e){return e?"open":"closed"}function t7(e){return"indeterminate"===e}function t9(e){return t7(e)?"indeterminate":e?"checked":"unchecked"}function t6(e){return t=>"mouse"===t.pointerType?e(t):void 0}t5.displayName=t2;var t8="DropdownMenu",[t3,ne]=(0,i.A)(t8,[td]),nt=td(),[nn,nr]=t3(t8),no=e=>{let{__scopeDropdownMenu:t,children:n,dir:o,open:a,defaultOpen:i,onOpenChange:s,modal:u=!0}=e,d=nt(t),f=r.useRef(null),[p=!1,m]=(0,l.i)({prop:a,defaultProp:i,onChange:s});return(0,c.jsx)(nn,{scope:t,triggerId:(0,v.B)(),triggerRef:f,contentId:(0,v.B)(),open:p,onOpenChange:m,onOpenToggle:r.useCallback(()=>m(e=>!e),[m]),modal:u,children:(0,c.jsx)(ty,{...d,open:p,onOpenChange:m,dir:o,modal:u,children:n})})};no.displayName=t8;var na="DropdownMenuTrigger",ni=r.forwardRef((e,t)=>
2{let{__scopeDropdownMenu:n,disabled:r=!1,...i}=e,l=nr(na,n),u=nt(n);return(0,c.jsx)(tw,{asChild:!0,...u,children:(0,c.jsx)(s.sG.button,{type:"button",id:l.triggerId,"aria-haspopup":"menu","aria-expanded":l.open,"aria-controls":l.open?l.contentId:void 0,"data-state":l.open?"open":"closed","data-disabled":r?"":void 0,disabled:r,...i,ref:(0,a.t)(t,l.triggerRef),onPointerDown:(0,o.m)(e.onPointerDown,e=>{!r&&0===e.button&&!1===e.ctrlKey&&(l.onOpenToggle(),l.open||e.preventDefault())}),onKeyDown:(0,o.m)(e.onKeyDown,e=>{!r&&(["Enter"," "].includes(e.key)&&l.onOpenToggle(),"ArrowDown"===e.key&&l.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(e.key)&&e.preventDefault())})})})});ni.displayName=na;var nl=e=>{let{__scopeDropdownMenu:t,...n}=e,r=nt(t);return(0,c.jsx)(tT,{...r,...n})};nl.displayName="DropdownMenuPortal";var ns="DropdownMenuContent",nu=r.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...a}=e,i=nr(ns,n),l=nt(n),s=r.useRef(!1);return(0,c.jsx)(tN,{id:i.contentId,"aria-labelledby":i.triggerId,...l,...a,ref:t,onCloseAutoFocus:(0,o.m)(e.onCloseAutoFocus,e=>{var t;s.current||null==(t=i.triggerRef.current)||t.focus(),s.current=!1,e.preventDefault()}),onInteractOutside:(0,o.m)(e.onInteractOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n;(!i.modal||r)&&(s.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});nu.displayName=ns;var nc=r.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=nt(n);return(0,c.jsx)(tk,{...o,...r,ref:t})});nc.displayName="DropdownMenuGroup";var nd=r.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=nt(n);return(0,c.jsx)(tO,{...o,...r,ref:t})});nd.displayName="DropdownMenuLabel";var nf=r.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=nt(n);return(0,c.jsx)(tI,{...o,...r,ref:t})});nf.displayName="DropdownMenuItem";var np=r.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=nt(n);return(0,c.jsx)(tj,{...o,...r,ref:t})});np.displayName="DropdownMenuCheckboxItem";var nm=r.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=nt(n);return(0,c.jsx)(tB,{...o,...r,ref:t})});nm.displayName="DropdownMenuRadioGroup";var nh=r.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=nt(n);return(0,c.jsx)(tH,{...o,...r,ref:t})});nh.displayName="DropdownMenuRadioItem";var ng=r.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=nt(n);return(0,c.jsx)(tK,{...o,...r,ref:t})});ng.displayName="DropdownMenuItemIndicator";var nv=r.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=nt(n);return(0,c.jsx)(tV,{...o,...r,ref:t})});nv.displayName="DropdownMenuSeparator",r.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=nt(n);return(0,c.jsx)(tQ,{...o,...r,ref:t})}).displayName="DropdownMenuArrow";var ny=r.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=nt(n);return(0,c.jsx)(t1,{...o,...r,ref:t})});ny.displayName="DropdownMenuSubTrigger";var nw=r.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=nt(n);return(0,c.jsx)(t5,{...o,...r,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});nw.displayName="DropdownMenuSubContent";var nb=no,nx=ni,nE=nl,nT=nu,nC=nc,nS=nd,nR=nf,nN=np,nA=nm,nM=nh,n_=ng,nk=nv,nO=e=>{let{__scopeDropdownMenu:t,children:n,open:r,onOpenChange:o,defaultOpen:a}=e,i=nt(t),[s=!1,u]=(0,l.i)({prop:r,defaultProp:a,onChange:o});return(0,c.jsx)(tJ,{...i,open:s,onOpenChange:u,children:n})},nL=ny,nD=nw}
2,9702:(e,t,n)=>{"use strict";n.d(t,{Eq:()=>u});var r=new WeakMap,o=new WeakMap,a={},i=0,l=function(e){return e&&(e.host||l(e.parentNode))},s=function(e,t,n,s){var u=(Array.isArray(e)?e:[e]).map(function(e){if(t.contains(e))return e;var n=l(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});a[n]||(a[n]=new WeakMap);var c=a[n],d=[],f=new Set,p=new Set(u),m=function(e){!e||f.has(e)||(f.add(e),m(e.parentNode))};u.forEach(m);var h=function(e){!e||p.has(e)||Array.prototype.forEach.call(e.children,function(e){if(f.has(e))h(e);else try{var t=e.getAttribute(s),a=null!==t&&"false"!==t,i=(r.get(e)||0)+1,l=(c.get(e)||0)+1;r.set(e,i),c.set(e,l),d.push(e),1===i&&a&&o.set(e,!0),1===l&&e.setAttribute(n,"true"),a||e.setAttribute(s,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}})};return h(t),f.clear(),i++,function(){d.forEach(function(e){var t=r.get(e)-1,a=c.get(e)-1;r.set(e,t),c.set(e,a),t||(o.has(e)||e.removeAttribute(s),o.delete(e)),a||e.removeAttribute(n)}),--i||(r=new WeakMap,r=new WeakMap,o=new WeakMap,a={})}},u=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]"))),s(r,o,n,"aria-hidden")):function(){return null}}},9736:(e,t,n)=>{"use strict";n.d(t,{A:()=>Y});var r,o,a=function(){return(a=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 i(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}Object.create;Object.create;var l=("function"==typeof SuppressedError&&SuppressedError,n(7620)),s="right-scroll-bar-position",u="width-before-scroll-bar";function c(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var d="undefined"!=typeof window?l.useLayoutEffect:l.useEffect,f=new WeakMap;function p(e){return e}var m=function(e){void 0===e&&(e={});var t,n,r,o=(void 0===t&&(t=p),n=[],r=!1,{read:function(){if(r)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:null},useMedium:function(e){var o=t(e,r);return n.push(o),function(){n=n.filter(function(e){return e!==o})}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var o=n;n=[],o.forEach(e),t=n}var a=function(){var n=t;t=[],n.forEach(e)},i=function(){return Promise.resolve().then(a)};i(),n={push:function(e){t.push(e),i()},filter:function(e){return t=t.filter(e),n}}}});return o.options=a({async:!0,ssr:!1},e),o}(),h=function(){},g=l.forwardRef(function(e,t){var n,r,o,s,u=l.useRef(null),p=l.useState({onScrollCapture:h,onWheelCapture:h,onTouchMoveCapture:h}),g=p[0],v=p[1],y=e.forwardProps,w=e.children,b=e.className,x=e.removeScrollBar,E=e.enabled,T=e.shards,C=e.sideCar,S=e.noIsolation,R=e.inert,N=e.allowPinchZoom,A=e.as,M=e.gapMode,_=i(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),k=(n=[u,t],r=function(e){return n.forEach(function(t){return c(t,e)})},(o=(0,l.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,s=o.facade,d(function(){var e=f.get(s);if(e){var t=new Set(e),r=new Set(n),o=s.current;t.forEach(function(e){r.has(e)||c(e,null)}),r.forEach(function(e){t.has(e)||c(e,o)})}f.set(s,n)},[n]),s),O=a(a({},_),g);return l.createElement(l.Fragment,null,E&&l.createElement(C,{sideCar:m,removeScrollBar:x,shards:T,noIsolation:S,inert:R,setCallbacks:v,allowPinchZoom:!!N,lockRef:u,gapMode:M}),y?l.cloneElement(l.Children.only(w),a(a({},O),{ref:k})):l.createElement(void 0===A?"div":A,a({},O,{className:b,ref:k}),w))});g.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},g.classNames={fullWidth:u,zeroRight:s};
2var v=function(e){var t=e.sideCar,n=i(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 l.createElement(r,a({},n))};v.isSideCarExport=!0;var y=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=o||n.nc;return t&&e.setAttribute("nonce",t),e}())){var a,i;(a=t).styleSheet?a.styleSheet.cssText=r:a.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)}}},w=function(){var e=y();return function(t,n){l.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},b=function(){var e=w();return function(t){return e(t.styles,t.dynamic),null}},x={left:0,top:0,right:0,gap:0},E=function(e){return parseInt(e||"",10)||0},T=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[E(n),E(r),E(o)]},C=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return x;var t=T(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])}},S=b(),R="data-scroll-locked",N=function(e,t,n,r){var o=e.left,a=e.top,i=e.right,l=e.gap;return void 0===n&&(n="margin"),"\n  .".concat("with-scroll-bars-hidden"," {\n   overflow: hidden ").concat(r,";\n   padding-right: ").concat(l,"px ").concat(r,";\n  }\n  body[").concat(R,"] {\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(a,"px;\n    padding-right: ").concat(i,"px;\n    margin-left:0;\n    margin-top:0;\n    margin-right: ").concat(l,"px ").concat(r,";\n    "),"padding"===n&&"padding-right: ".concat(l,"px ").concat(r,";")].filter(Boolean).join(""),"\n  }\n  \n  .").concat(s," {\n    right: ").concat(l,"px ").concat(r,";\n  }\n  \n  .").concat(u," {\n    margin-right: ").concat(l,"px ").concat(r,";\n  }\n  \n  .").concat(s," .").concat(s," {\n    right: 0 ").concat(r,";\n  }\n  \n  .").concat(u," .").concat(u," {\n    margin-right: 0 ").concat(r,";\n  }\n  \n  body[").concat(R,"] {\n    ").concat("--removed-body-scroll-bar-size",": ").concat(l,"px;\n  }\n")},A=function(){var e=parseInt(document.body.getAttribute(R)||"0",10);return isFinite(e)?e:0},M=function(){l.useEffect(function(){return document.body.setAttribute(R,(A()+1).toString()),function(){var e=A()-1;e<=0?document.body.removeAttribute(R):document.body.setAttribute(R,e.toString())}},[])},_=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=void 0===r?"margin":r;M();var a=l.useMemo(function(){return C(o)},[o]);return l.createElement(S,{styles:N(a,!t,o,n?"":"!important")})},k=!1;if("undefined"!=typeof window)try{var O=Object.defineProperty({},"passive",{get:function(){return k=!0,!0}});window.addEventListener("test",O,O),window.removeEventListener("test",O,O)}catch(e){k=!1}var L=!!k&&{passive:!1},D=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])},I=function(e,t){var n=t.ownerDocument,r=t;do{if("undefined"!=typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),P(e,r)){var o=j(e,r);if(o[1]>o[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},P=function(e,t){return"v"===e?D(t,"overflowY"):D(t,"overflowX")},j=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},F=function(e,t,n,r,o){var a,i=(a=window.getComputedStyle(t).direction,"h"===e&&"rtl"===a?-1:1),l=i*r,s=n.target,u=t.contains(s),c=!1,d=l>0,f=0,p=0;do{var m=j(e,s),h=m[0],g=m[1]-m[2]-i*h;(h||g)&&P(e,s)&&(f+=g,p+=h),s=s instanceof ShadowRoot?s.host:s.parentNode}while(!u&&s!==document.body||u&&(t.contains(s)||t===s));return d&&(o&&1>Math.abs(f)||!o&&l>f)?c=!0:!d&&(o&&1>Math.abs(p)||!o&&-l>p)&&(c=!0),c},q=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},U=function(e){return[e.deltaX,e.deltaY]},B=function(e){return e&&"current"in e?e.current:e},z=0,H=[];let W=(r=function(e){var t=l.useRef([]),n=l.useRef([0,0]),r=l.useRef(),o=l.useState(z++)[0],a=l.useState(b)[0],i=l.useRef(e);l.useEffect(function(){i.current=e},[e]),l.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,a=t.length;o<a;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))}
2)([e.lockRef.current],(e.shards||[]).map(B),!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=l.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!i.current.allowPinchZoom;var o,a=q(e),l=n.current,s="deltaX"in e?e.deltaX:l[0]-a[0],u="deltaY"in e?e.deltaY:l[1]-a[1],c=e.target,d=Math.abs(s)>Math.abs(u)?"h":"v";if("touches"in e&&"h"===d&&"range"===c.type)return!1;var f=I(d,c);if(!f)return!0;if(f?o=d:(o="v"===d?"h":"v",f=I(d,c)),!f)return!1;if(!r.current&&"changedTouches"in e&&(s||u)&&(r.current=o),!o)return!0;var p=r.current||o;return F(p,t,e,"h"===p?s:u,!0)},[]),u=l.useCallback(function(e){if(H.length&&H[H.length-1]===a){var n="deltaY"in e?U(e):q(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,r[0]===n[0]&&r[1]===n[1])})[0];if(r&&r.should){e.cancelable&&e.preventDefault();return}if(!r){var o=(i.current.shards||[]).map(B).filter(Boolean).filter(function(t){return t.contains(e.target)});(o.length>0?s(e,o[0]):!i.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),c=l.useCallback(function(e,n,r,o){var a={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(a),setTimeout(function(){t.current=t.current.filter(function(e){return e!==a})},1)},[]),d=l.useCallback(function(e){n.current=q(e),r.current=void 0},[]),f=l.useCallback(function(t){c(t.type,U(t),t.target,s(t,e.lockRef.current))},[]),p=l.useCallback(function(t){c(t.type,q(t),t.target,s(t,e.lockRef.current))},[]);l.useEffect(function(){return H.push(a),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener("wheel",u,L),document.addEventListener("touchmove",u,L),document.addEventListener("touchstart",d,L),function(){H=H.filter(function(e){return e!==a}),document.removeEventListener("wheel",u,L),document.removeEventListener("touchmove",u,L),document.removeEventListener("touchstart",d,L)}},[]);var m=e.removeScrollBar,h=e.inert;return l.createElement(l.Fragment,null,h?l.createElement(a,{styles:"\n  .block-interactivity-".concat(o," {pointer-events: none;}\n  .allow-interactivity-").concat(o," {pointer-events: all;}\n")}):null,m?l.createElement(_,{gapMode:e.gapMode}):null)},m.useMedium(r),v);var G=l.forwardRef(function(e,t){return l.createElement(g,a({},e,{ref:t,sideCar:W}))});G.classNames=g.classNames;let Y=G},9885:(e,t,n)=>{"use strict";n.d(t,{l:()=>ep});var r,o=n(7620),a=n(7509),{entries:i,setPrototypeOf:l,isFrozen:s,getPrototypeOf:u,getOwnPropertyDescriptor:c}=Object,{freeze:d,seal:f,create:p}=Object,{apply:m,construct:h}="undefined"!=typeof Reflect&&Reflect;d||(d=function(e){return e}),f||(f=function(e){return e}),m||(m=function(e,t,n){return e.apply(t,n)}),h||(h=function(e,t){return new e(...t)});var g=A(Array.prototype.forEach),v=A(Array.prototype.pop),y=A(Array.prototype.push),w=A(String.prototype.toLowerCase),b=A(String.prototype.toString),x=A(String.prototype.match),E=A(String.prototype.replace),T=A(String.prototype.indexOf),C=A(String.prototype.trim),S=A(Object.prototype.hasOwnProperty),R=A(RegExp.prototype.test),N=(r=TypeError,function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return h(r,t)});function A(e){return function(t){for(var n=arguments.length,r=Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return m(e,t,r)}}function M(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:w;l&&l(e,null);let r=t.length;for(;r--;){let o=t[r];if("string"==typeof o){let e=n(o);e!==o&&(s(t)||(t[r]=e),o=e)}e[o]=!0}return e}function _(e){let t=p(null);for(let[n,r]of i(e))S(e,n)&&(Array.isArray(r)?t[n]=function(e){for(let t=0;t<e.length;t++)S(e,t)||(e[t]=null);return e}(r):r&&"object"==typeof r&&r.constructor===Object?t[n]=_(r):t[n]=r);return t}function k(e,t){for(;null!==e;){let n=c(e,t);if(n){if(n.get)return A(n.get);if("function"==typeof n.value)return A(n.value)}e=u(e)}return function(){return null}}var O=d(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),L=d(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),D=d(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),I=d(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),P=d(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),j=d(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),F=d(["#text"]),q=d(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","
2spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),U=d(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),B=d(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),z=d(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),H=f(/\{\{[\w\W]*|[\w\W]*\}\}/gm),W=f(/<%[\w\W]*|[\w\W]*%>/gm),G=f(/\${[\w\W]*}/gm),Y=f(/^data-[\-\w.\u00B7-\uFFFF]/),K=f(/^aria-[\-\w]+$/),V=f(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Q=f(/^(?:\w+script|data):/i),X=f(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),$=f(/^html$/i),Z=Object.freeze({__proto__:null,MUSTACHE_EXPR:H,ERB_EXPR:W,TMPLIT_EXPR:G,DATA_ATTR:Y,ARIA_ATTR:K,IS_ALLOWED_URI:V,IS_SCRIPT_OR_DATA:Q,ATTR_WHITESPACE:X,DOCTYPE_NAME:$,CUSTOM_ELEMENT:f(/^[a-z][a-z\d]*(-[a-z\d]+)+$/i)}),J=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let n=null,r="data-tt-policy-suffix";t&&t.hasAttribute(r)&&(n=t.getAttribute(r));let o="dompurify"+(n?"#"+n:"");try{return e.createPolicy(o,{createHTML:e=>e,createScriptURL:e=>e})}catch(e){return console.warn("TrustedTypes policy "+o+" could not be created."),null}},ee=function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"undefined"==typeof window?null:window,n=t=>e(t);if(n.version="3.0.10",n.removed=[],!t||!t.document||9!==t.document.nodeType)return n.isSupported=!1,n;let{document:r}=t,o=r,a=o.currentScript,{DocumentFragment:l,HTMLTemplateElement:s,Node:u,Element:c,NodeFilter:f,NamedNodeMap:m=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:h,DOMParser:A,trustedTypes:H}=t,W=c.prototype,G=k(W,"cloneNode"),Y=k(W,"nextSibling"),K=k(W,"childNodes"),Q=k(W,"parentNode");if("function"==typeof s){let e=r.createElement("template");e.content&&e.content.ownerDocument&&(r=e.content.ownerDocument)}let X,ee="",{implementation:et,createNodeIterator:en,createDocumentFragment:er,getElementsByTagName:eo}=r,{importNode:ea}=o,ei={};n.isSupported="function"==typeof i&&"function"==typeof Q&&et&&void 0!==et.createHTMLDocument;let{MUSTACHE_EXPR:el,ERB_EXPR:es,TMPLIT_EXPR:eu,DATA_ATTR:ec,ARIA_ATTR:ed,IS_SCRIPT_OR_DATA:ef,ATTR_WHITESPACE:ep,CUSTOM_ELEMENT:em}=Z,{IS_ALLOWED_URI:eh}
2=Z,eg=null,ev=M({},[...O,...L,...D,...P,...F]),ey=null,ew=M({},[...q,...U,...B,...z]),eb=Object.seal(p(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),ex=null,eE=null,eT=!0,eC=!0,eS=!1,eR=!0,eN=!1,eA=!1,eM=!1,e_=!1,ek=!1,eO=!1,eL=!1,eD=!0,eI=!1,eP=!0,ej=!1,eF={},eq=null,eU=M({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),eB=null,ez=M({},["audio","video","img","source","image","track"]),eH=null,eW=M({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),eG="http://www.w3.org/1998/Math/MathML",eY="http://www.w3.org/2000/svg",eK="http://www.w3.org/1999/xhtml",eV=eK,eQ=!1,eX=null,e$=M({},[eG,eY,eK],b),eZ=null,eJ=["application/xhtml+xml","text/html"],e0=null,e1=null,e2=r.createElement("form"),e5=function(e){return e instanceof RegExp||e instanceof Function},e4=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!(e1&&e1===e)){if(e&&"object"==typeof e||(e={}),e=_(e),e0="application/xhtml+xml"===(eZ=-1===eJ.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE)?b:w,eg=S(e,"ALLOWED_TAGS")?M({},e.ALLOWED_TAGS,e0):ev,ey=S(e,"ALLOWED_ATTR")?M({},e.ALLOWED_ATTR,e0):ew,eX=S(e,"ALLOWED_NAMESPACES")?M({},e.ALLOWED_NAMESPACES,b):e$,eH=S(e,"ADD_URI_SAFE_ATTR")?M(_(eW),e.ADD_URI_SAFE_ATTR,e0):eW,eB=S(e,"ADD_DATA_URI_TAGS")?M(_(ez),e.ADD_DATA_URI_TAGS,e0):ez,eq=S(e,"FORBID_CONTENTS")?M({},e.FORBID_CONTENTS,e0):eU,ex=S(e,"FORBID_TAGS")?M({},e.FORBID_TAGS,e0):{},eE=S(e,"FORBID_ATTR")?M({},e.FORBID_ATTR,e0):{},eF=!!S(e,"USE_PROFILES")&&e.USE_PROFILES,eT=!1!==e.ALLOW_ARIA_ATTR,eC=!1!==e.ALLOW_DATA_ATTR,eS=e.ALLOW_UNKNOWN_PROTOCOLS||!1,eR=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,eN=e.SAFE_FOR_TEMPLATES||!1,eA=e.WHOLE_DOCUMENT||!1,ek=e.RETURN_DOM||!1,eO=e.RETURN_DOM_FRAGMENT||!1,eL=e.RETURN_TRUSTED_TYPE||!1,e_=e.FORCE_BODY||!1,eD=!1!==e.SANITIZE_DOM,eI=e.SANITIZE_NAMED_PROPS||!1,eP=!1!==e.KEEP_CONTENT,ej=e.IN_PLACE||!1,eh=e.ALLOWED_URI_REGEXP||V,eV=e.NAMESPACE||eK,eb=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&e5(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(eb.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&e5(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(eb.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(eb.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),eN&&(eC=!1),eO&&(ek=!0),eF&&(eg=M({},F),ey=[],!0===eF.html&&(M(eg,O),M(ey,q)),!0===eF.svg&&(M(eg,L),M(ey,U),M(ey,z)),!0===eF.svgFilters&&(M(eg,D),M(ey,U),M(ey,z)),!0===eF.mathMl&&(M(eg,P),M(ey,B),M(ey,z))),e.ADD_TAGS&&(eg===ev&&(eg=_(eg)),M(eg,e.ADD_TAGS,e0)),e.ADD_ATTR&&(ey===ew&&(ey=_(ey)),M(ey,e.ADD_ATTR,e0)),e.ADD_URI_SAFE_ATTR&&M(eH,e.ADD_URI_SAFE_ATTR,e0),e.FORBID_CONTENTS&&(eq===eU&&(eq=_(eq)),M(eq,e.FORBID_CONTENTS,e0)),eP&&(eg["#text"]=!0),eA&&M(eg,["html","head","body"]),eg.table&&(M(eg,["tbody"]),delete ex.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw N('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw N('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');ee=(X=e.TRUSTED_TYPES_POLICY).createHTML("")}else void 0===X&&(X=J(H,a)),null!==X&&"string"==typeof ee&&(ee=X.createHTML(""));d&&d(e),e1=e}},e7=M({},["mi","mo","mn","ms","mtext"]),e9=M({},["foreignobject","desc","title","annotation-xml"]),e6=M({},["title","style","font","a","script"]),e8=M({},[...L,...D,...I]),e3=M({},[...P,...j]),te=function(e){let t=Q(e);t&&t.tagName||(t={namespaceURI:eV,tagName:"template"});let n=w(e.tagName),r=w(t.tagName);return!!eX[e.namespaceURI]&&(e.namespaceURI===eY?t.namespaceURI===eK?"svg"===n:t.namespaceURI===eG?"svg"===n&&("annotation-xml"===r||e7[r]):!!e8[n]:e.namespaceURI===eG?t.n
2amespaceURI===eK?"math"===n:t.namespaceURI===eY?"math"===n&&e9[r]:!!e3[n]:e.namespaceURI===eK?(t.namespaceURI!==eY||!!e9[r])&&(t.namespaceURI!==eG||!!e7[r])&&!e3[n]&&(e6[n]||!e8[n]):!!("application/xhtml+xml"===eZ&&eX[e.namespaceURI]))},tt=function(e){y(n.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){e.remove()}},tn=function(e,t){try{y(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){y(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!ey[e])if(ek||eO)try{tt(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},tr=function(e){let t=null,n=null;if(e_)e="<remove></remove>"+e;else{let t=x(e,/^[\r\n\t ]+/);n=t&&t[0]}"application/xhtml+xml"===eZ&&eV===eK&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");let o=X?X.createHTML(e):e;if(eV===eK)try{t=new A().parseFromString(o,eZ)}catch(e){}if(!t||!t.documentElement){t=et.createDocument(eV,"template",null);try{t.documentElement.innerHTML=eQ?ee:o}catch(e){}}let a=t.body||t.documentElement;return e&&n&&a.insertBefore(r.createTextNode(n),a.childNodes[0]||null),eV===eK?eo.call(t,eA?"html":"body")[0]:eA?t.documentElement:a},to=function(e){return en.call(e.ownerDocument||e,e,f.SHOW_ELEMENT|f.SHOW_COMMENT|f.SHOW_TEXT|f.SHOW_PROCESSING_INSTRUCTION,null)},ta=function(e){return"function"==typeof u&&e instanceof u},ti=function(e,t,r){ei[e]&&g(ei[e],e=>{e.call(n,t,r,e1)})},tl=function(e){let t=null;if(ti("beforeSanitizeElements",e,null),e instanceof h&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof m)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes))return tt(e),!0;let r=e0(e.nodeName);if(ti("uponSanitizeElement",e,{tagName:r,allowedTags:eg}),e.hasChildNodes()&&!ta(e.firstElementChild)&&R(/<[/\w]/g,e.innerHTML)&&R(/<[/\w]/g,e.textContent))return tt(e),!0;if(!eg[r]||ex[r]){if(!ex[r]&&tu(r)&&(eb.tagNameCheck instanceof RegExp&&R(eb.tagNameCheck,r)||eb.tagNameCheck instanceof Function&&eb.tagNameCheck(r)))return!1;if(eP&&!eq[r]){let t=Q(e)||e.parentNode,n=K(e)||e.childNodes;if(n&&t){let r=n.length;for(let o=r-1;o>=0;--o)t.insertBefore(G(n[o],!0),Y(e))}}return tt(e),!0}return e instanceof c&&!te(e)||("noscript"===r||"noembed"===r||"noframes"===r)&&R(/<\/no(script|embed|frames)/i,e.innerHTML)?(tt(e),!0):(eN&&3===e.nodeType&&(t=e.textContent,g([el,es,eu],e=>{t=E(t,e," ")}),e.textContent!==t&&(y(n.removed,{element:e.cloneNode()}),e.textContent=t)),ti("afterSanitizeElements",e,null),!1)},ts=function(e,t,n){if(eD&&("id"===t||"name"===t)&&(n in r||n in e2))return!1;if(!(eC&&!eE[t]&&R(ec,t))&&!(eT&&R(ed,t))){if(!ey[t]||eE[t]){if(!(tu(e)&&(eb.tagNameCheck instanceof RegExp&&R(eb.tagNameCheck,e)||eb.tagNameCheck instanceof Function&&eb.tagNameCheck(e))&&(eb.attributeNameCheck instanceof RegExp&&R(eb.attributeNameCheck,t)||eb.attributeNameCheck instanceof Function&&eb.attributeNameCheck(t))||"is"===t&&eb.allowCustomizedBuiltInElements&&(eb.tagNameCheck instanceof RegExp&&R(eb.tagNameCheck,n)||eb.tagNameCheck instanceof Function&&eb.tagNameCheck(n))))return!1}else if(!eH[t]&&!R(eh,E(n,ep,""))&&!(("src"===t||"xlink:href"===t||"href"===t)&&"script"!==e&&0===T(n,"data:")&&eB[e])&&!(eS&&!R(ef,E(n,ep,"")))&&n)return!1}return!0},tu=function(e){return"annotation-xml"!==e&&x(e,em)},tc=function(e){ti("beforeSanitizeAttributes",e,null);let{attributes:t}=e;if(!t)return;let r={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:ey},o=t.length;for(;o--;){let{name:a,namespaceURI:i,value:l}=t[o],s=e0(a),u="value"===a?l:C(l);if(r.attrName=s,r.attrValue=u,r.keepAttr=!0,r.forceKeepAttr=void 0,ti("uponSanitizeAttribute",e,r),u=r.attrValue,r.forceKeepAttr||(tn(a,e),!r.keepAttr))continue;if(!eR&&R(/\/>/i,u)){tn(a,e);continue}eN&&g([el,es,eu],e=>{u=E(u,e," ")});let c=e0(e.nodeName);if(ts(c,s,u)){if(eI&&("id"===s||"name"===s)&&(tn(a,e),u="user-content-"+u),X&&"object"==typeof H&&"function"==typeof H.getAttributeType&&!i)switch(H.getAttributeType(c,s)){case"TrustedHTML":u=X.createHTML(u);break;case"TrustedScriptURL":u=X.createScriptURL(u)}try{i?e.setAttributeNS(i,a,u):e.setAttribute(a,u),v(n.removed)}catch(e){}}}ti("afterSanitizeAttributes",e,null)},td=function e(t){let n=null,r=to(t);for(ti("beforeSanitizeShadowDOM",t,null);n=r.nextNode();)ti("uponSanitizeShadowNode",n,null),tl(n)||(n.content instanceof l&&e(n.content),tc(n));ti("afterSanitizeShadowDOM",t,null)};return n.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}
2,r=null,a=null,i=null,s=null;if((eQ=!e)&&(e="\x3c!--\x3e"),"string"!=typeof e&&!ta(e))if("function"==typeof e.toString){if("string"!=typeof(e=e.toString()))throw N("dirty is not a string, aborting")}else throw N("toString is not a function");if(!n.isSupported)return e;if(eM||e4(t),n.removed=[],"string"==typeof e&&(ej=!1),ej){if(e.nodeName){let t=e0(e.nodeName);if(!eg[t]||ex[t])throw N("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof u)1===(a=(r=tr("\x3c!----\x3e")).ownerDocument.importNode(e,!0)).nodeType&&"BODY"===a.nodeName||"HTML"===a.nodeName?r=a:r.appendChild(a);else{if(!ek&&!eN&&!eA&&-1===e.indexOf("<"))return X&&eL?X.createHTML(e):e;if(!(r=tr(e)))return ek?null:eL?ee:""}r&&e_&&tt(r.firstChild);let c=to(ej?e:r);for(;i=c.nextNode();)tl(i)||(i.content instanceof l&&td(i.content),tc(i));if(ej)return e;if(ek){if(eO)for(s=er.call(r.ownerDocument);r.firstChild;)s.appendChild(r.firstChild);else s=r;return(ey.shadowroot||ey.shadowrootmode)&&(s=ea.call(o,s,!0)),s}let d=eA?r.outerHTML:r.innerHTML;return eA&&eg["!doctype"]&&r.ownerDocument&&r.ownerDocument.doctype&&r.ownerDocument.doctype.name&&R($,r.ownerDocument.doctype.name)&&(d="<!DOCTYPE "+r.ownerDocument.doctype.name+">\n"+d),eN&&g([el,es,eu],e=>{d=E(d,e," ")}),X&&eL?X.createHTML(d):d},n.setConfig=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e4(e),eM=!0},n.clearConfig=function(){e1=null,eM=!1},n.isValidAttribute=function(e,t,n){return e1||e4({}),ts(e0(e),e0(t),n)},n.addHook=function(e,t){"function"==typeof t&&(ei[e]=ei[e]||[],y(ei[e],t))},n.removeHook=function(e){if(ei[e])return v(ei[e])},n.removeHooks=function(e){ei[e]&&(ei[e]=[])},n.removeAllHooks=function(){ei={}},n}(),et=Array(12).fill(0),en=e=>{let{visible:t}=e;return o.createElement("div",{className:"sonner-loading-wrapper","data-visible":t},o.createElement("div",{className:"sonner-spinner"},et.map((e,t)=>o.createElement("div",{className:"sonner-loading-bar",key:"spinner-bar-".concat(t)}))))},er=o.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},o.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"})),eo=o.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},o.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"})),ea=o.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},o.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"})),ei=o.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},o.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"})),el=1,es=new class{constructor(){this.subscribe=e=>(this.subscribers.push(e),()=>{let t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)}),this.publish=e=>{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:el++,a=this.toasts.find(e=>e.id===o),i=void 0===e.dismissible||e.dismissible;return a?this.toasts=this.toasts.map(t=>t.id===o?(this.publish({...t,...e,id:o,title:n}),{...t,...e,id:o,dismissible:i,title:n}):t):this.addToast({title:n,...r,dismissible:i,id:o}),o},this.dismiss=e=>
2(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)=>this.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 r=e instanceof Promise?e:e(),o=void 0!==n;return r.then(e=>{if(e&&"boolean"==typeof e.ok&&!e.ok){o=!1;let r="function"==typeof t.error?t.error("HTTP error! status: ".concat(e.status)):t.error,a="function"==typeof t.description?t.description("HTTP error! status: ".concat(e.status)):t.description;this.create({id:n,type:"error",message:r,description:a})}else if(void 0!==t.success){o=!1;let r="function"==typeof t.success?t.success(e):t.success,a="function"==typeof t.description?t.description(e):t.description;this.create({id:n,type:"success",message:r,description:a})}}).catch(e=>{if(void 0!==t.error){o=!1;let r="function"==typeof t.error?t.error(e):t.error,a="function"==typeof t.description?t.description(e):t.description;this.create({id:n,type:"error",message:r,description:a})}}).finally(()=>{var e;o&&(this.dismiss(n),n=void 0),null==(e=t.finally)||e.call(t)}),n},this.custom=(e,t)=>{let n=(null==t?void 0:t.id)||el++;return this.create({jsx:e(n),id:n,...t}),n},this.subscribers=[],this.toasts=[]}};function eu(e){return void 0!==e.label&&"function"==typeof e.onClick}function ec(){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)||el++;return es.addToast({title:e,...t,id:n}),n},{success:es.success,info:es.info,warning:es.warning,error:es.error,custom:es.custom,message:es.message,promise:es.promise,dismiss:es.dism
2iss,loading:es.loading}),!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}:where([data-sonner-toaster][data-x-position="right"]){right:max(var(--offset),env(safe-area-inset-right))}:where([data-sonner-toaster][data-x-position="left"]){left:max(var(--offset),env(safe-area-inset-left))}:where([data-sonner-toaster][data-x-position="center"]){left:50%;transform:translate(-50%)}:where([data-sonner-toaster][data-y-position="top"]){top:max(var(--offset),env(safe-area-inset-top))}:where([data-sonner-toaster][data-y-position="bottom"]){bottom:max(var(--offset),env(safe-area-inset-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;
2left: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;background:var(--gray1);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}: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:0;right:0;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}
2: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, 0px));transition:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation:swipe-out .2s ease-out forwards}@keyframes swipe-out{0%{transform:translateY(calc(var(--lift) * var(--offset) + var(--swipe-amount)));opacity:1}to{transform:translateY(calc(var(--lift) * var(--offset) + var(--swipe-amount) + var(--lift) * -100%));opacity:0}}@media (max-width: 600px){[data-sonner-toaster]{position:fixed;--mobile-offset: 16px;right:var(--mobile-offset);left:var(--mobile-offset);width:100%}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset)}[data-sonner-toaster][data-y-position=bottom]{bottom:20px}[data-sonner-toaster][data-y-position=top]{top:20px}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset);right:var(--mobile-offset);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-border: hsl(0, 0%, 20%);--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%);--error-text: hsl(358, 100%, 81%)}[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 ed=e=>{var t,n,r,a,i,l,s;let{invert:u,toast:c,unstyled:d,interacting:f,setHeights:p,visibleToasts:m,heights:h,index:g,toasts:v,expanded:y,removeToast:w,closeButton:b,style:x,cancelButtonStyle:E,actionButtonStyle:T,className:C="",descriptionClassName:S="",duration:R,position:N,gap:A,loadingIcon:M,expandByDefault:_,classNames:k,icons:O,closeButtonAriaLabel:L="Close toast",pauseWhenPageIsHidden:D,cn:I}
2=e,[P,j]=o.useState(!1),[F,q]=o.useState(!1),[U,B]=o.useState(!1),[z,H]=o.useState(!1),[W,G]=o.useState(0),[Y,K]=o.useState(0),V=o.useRef(null),Q=o.useRef(null),X=0===g,$=g+1<=m,Z=c.type,J=!1!==c.dismissible,et=c.className||"",el=c.descriptionClassName||"",es=o.useMemo(()=>h.findIndex(e=>e.toastId===c.id)||0,[h,c.id]),ec=o.useMemo(()=>{var e;return null!=(e=c.closeButton)?e:b},[c.closeButton,b]),ed=o.useMemo(()=>c.duration||R||4e3,[c.duration,R]),ef=o.useRef(0),ep=o.useRef(0),em=o.useRef(0),eh=o.useRef(null),[eg,ev]=N.split("-"),ey=o.useMemo(()=>h.reduce((e,t,n)=>n>=es?e:e+t.height,0),[h,es]),ew=(()=>{let[e,t]=o.useState(!1);return o.useEffect(()=>{let e=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",e),()=>window.removeEventListener("visibilitychange",e)},[]),e})(),eb=c.invert||u,ex="loading"===Z;ep.current=o.useMemo(()=>es*A+ey,[es,ey]),o.useEffect(()=>{j(!0)},[]),o.useLayoutEffect(()=>{if(!P)return;let e=Q.current,t=e.style.height;e.style.height="auto";let n=e.getBoundingClientRect().height;e.style.height=t,K(n),p(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])},[P,c.title,c.description,p,c.id]);let eE=o.useCallback(()=>{q(!0),G(ep.current),p(e=>e.filter(e=>e.toastId!==c.id)),setTimeout(()=>{w(c)},200)},[c,w,p,ep]);function eT(e){return{__html:ee.sanitize(e)}}return o.useEffect(()=>{if(c.promise&&"loading"===Z||c.duration===1/0||"loading"===c.type)return;let e,t=ed;return y||f||D&&ew?(()=>{if(em.current<ef.current){let e=new Date().getTime()-ef.current;t-=e}em.current=new Date().getTime()})():t!==1/0&&(ef.current=new Date().getTime(),e=setTimeout(()=>{var e;null==(e=c.onAutoClose)||e.call(c,c),eE()},t)),()=>clearTimeout(e)},[y,f,_,c,ed,eE,c.promise,Z,D,ew]),o.useEffect(()=>{let e=Q.current;if(e){let t=e.getBoundingClientRect().height;return K(t),p(e=>[{toastId:c.id,height:t,position:c.position},...e]),()=>p(e=>e.filter(e=>e.toastId!==c.id))}},[p,c.id]),o.useEffect(()=>{c.delete&&eE()},[eE,c.delete]),o.createElement("li",{"aria-live":c.important?"assertive":"polite","aria-atomic":"true",role:"status",tabIndex:0,ref:Q,className:I(C,et,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[Z],null==(n=null==c?void 0:c.classNames)?void 0:n[Z]),"data-sonner-toast":"","data-styled":!(c.jsx||c.unstyled||d),"data-mounted":P,"data-promise":!!c.promise,"data-removed":F,"data-visible":$,"data-y-position":eg,"data-x-position":ev,"data-index":g,"data-front":X,"data-swiping":U,"data-dismissible":J,"data-type":Z,"data-invert":eb,"data-swipe-out":z,"data-expanded":!!(y||_&&P),style:{"--index":g,"--toasts-before":g,"--z-index":v.length-g,"--offset":"".concat(F?W:ep.current,"px"),"--initial-height":_?"auto":"".concat(Y,"px"),...x,...c.style},onPointerDown:e=>{ex||!J||(V.current=new Date,G(ep.current),e.target.setPointerCapture(e.pointerId),"BUTTON"!==e.target.tagName&&(B(!0),eh.current={x:e.clientX,y:e.clientY}))},onPointerUp:()=>{var e,t,n,r;if(z||!J)return;eh.current=null;let o=Number((null==(e=Q.current)?void 0:e.style.getPropertyValue("--swipe-amount").replace("px",""))||0),a=Math.abs(o)/(new Date().getTime()-(null==(t=V.current)?void 0:t.getTime()));if(Math.abs(o)>=20||a>.11){G(ep.current),null==(n=c.onDismiss)||n.call(c,c),eE(),H(!0);return}null==(r=Q.current)||r.style.setProperty("--swipe-amount","0px"),B(!1)},onPointerMove:e=>{var t;if(!eh.current||!J)return;let n=e.clientY-eh.current.y,r=e.clientX-eh.current.x,o=("top"===eg?Math.min:Math.max)(0,n),a="touch"===e.pointerType?10:2;Math.abs(o)>a?null==(t=Q.current)||t.style.setProperty("--swipe-amount","".concat(n,"px")):Math.abs(r)>a&&(eh.current=null)}},ec&&!c.jsx?o.createElement("button",{"aria-label":L,"data-disabled":ex,"data-close-button":!0,onClick:ex||!J?()=>{}:()=>{var e;eE(),null==(e=c.onDismiss)||e.call(c,c)},className:I(null==k?void 0:k.closeButton,null==(r=null==c?void 0:c.classNames)?void 0:r.closeButton)},o.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"},o.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),o.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"}))):null,c.jsx||o.isValidElement(c.title)?c.jsx||c.title:o.createElement(o.Fragment,null,Z||c.icon||c.promise?o.createElement("div",{"data-icon":"",className:I(null==k?void 0:k.icon)},c.promise||"loading"===c.type&&!c.icon?c.icon||(null!=O&&O.loading?o.createElement("div",{className:"sonner-loader","data-visible":"loading"===Z},O.loading):M?o.createElement("div",{className:"sonner-loader","data-visible":"loading"===Z},M):o.createElement(en,{visible:"loading"===Z}
2)):null,"loading"!==c.type?c.icon||(null==O?void 0:O[Z])||(e=>{switch(e){case"success":return er;case"info":return ea;case"warning":return eo;case"error":return ei;default:return null}})(Z):null):null,o.createElement("div",{"data-content":"",className:I(null==k?void 0:k.content)},o.createElement("div",{"data-title":"",className:I(null==k?void 0:k.title,null==(a=null==c?void 0:c.classNames)?void 0:a.title),dangerouslySetInnerHTML:eT(c.title)}),c.description?o.createElement("div",{"data-description":"",className:I(S,el,null==k?void 0:k.description,null==(i=null==c?void 0:c.classNames)?void 0:i.description),dangerouslySetInnerHTML:eT(c.description)}):null),o.isValidElement(c.cancel)?c.cancel:c.cancel&&eu(c.cancel)?o.createElement("button",{"data-button":!0,"data-cancel":!0,style:c.cancelButtonStyle||E,onClick:e=>{eu(c.cancel)&&J&&(eE(),c.cancel.onClick(e))},className:I(null==k?void 0:k.cancelButton,null==(l=null==c?void 0:c.classNames)?void 0:l.cancelButton)},c.cancel.label):null,o.isValidElement(c.action)?c.action:c.action&&eu(c.action)?o.createElement("button",{"data-button":"",style:c.actionButtonStyle||T,onClick:e=>{eu(c.action)&&(c.action.onClick(e),e.defaultPrevented||eE())},className:I(null==k?void 0:k.actionButton,null==(s=null==c?void 0:c.classNames)?void 0:s.actionButton)},c.action.label):null))};function ef(){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 ep=e=>{let{invert:t,position:n="bottom-right",hotkey:r=["altKey","KeyT"],expand:i,closeButton:l,className:s,offset:u,theme:c="light",richColors:d,duration:f,style:p,visibleToasts:m=3,toastOptions:h,dir:g=ef(),gap:v=14,loadingIcon:y,icons:w,containerAriaLabel:b="Notifications",pauseWhenPageIsHidden:x,cn:E=ec}=e,[T,C]=o.useState([]),S=o.useMemo(()=>Array.from(new Set([n].concat(T.filter(e=>e.position).map(e=>e.position)))),[T,n]),[R,N]=o.useState([]),[A,M]=o.useState(!1),[_,k]=o.useState(!1),[O,L]=o.useState("system"!==c?c:"undefined"!=typeof window&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),D=o.useRef(null),I=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),P=o.useRef(null),j=o.useRef(!1),F=o.useCallback(e=>C(t=>t.filter(t=>{let{id:n}=t;return n!==e.id})),[]);return o.useEffect(()=>es.subscribe(e=>{if(e.dismiss)return void C(t=>t.map(t=>t.id===e.id?{...t,delete:!0}:t));setTimeout(()=>{a.flushSync(()=>{C(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]})})})}),[]),o.useEffect(()=>{if("system"!==c)return void L(c);"system"===c&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?L("dark"):L("light")),"undefined"!=typeof window&&window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",e=>{let{matches:t}=e;L(t?"dark":"light")})},[c]),o.useEffect(()=>{T.length<=1&&M(!1)},[T]),o.useEffect(()=>{let e=e=>{var t,n;r.every(t=>e[t]||e.code===t)&&(M(!0),null==(t=D.current)||t.focus()),"Escape"===e.code&&(document.activeElement===D.current||null!=(n=D.current)&&n.contains(document.activeElement))&&M(!1)};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[r]),o.useEffect(()=>{if(D.current)return()=>{P.current&&(P.current.focus({preventScroll:!0}),P.current=null,j.current=!1)}},[D.current]),T.length?o.createElement("section",{"aria-label":"".concat(b," ").concat(I),tabIndex:-1},S.map((e,n)=>{var r;let[a,c]=e.split("-");return o.createElement("ol",{key:e,dir:"auto"===g?ef():g,tabIndex:-1,ref:D,className:s,"data-sonner-toaster":!0,"data-theme":O,"data-rich-colors":d,"data-y-position":a,"data-x-position":c,style:{"--front-toast-height":"".concat((null==(r=R[0])?void 0:r.height)||0,"px"),"--offset":"number"==typeof u?"".concat(u,"px"):u||"32px","--width":"".concat(356,"px"),"--gap":"".concat(v,"px"),...p},onBlur:e=>{j.current&&!e.currentTarget.contains(e.relatedTarget)&&(j.current=!1,P.current&&(P.current.focus({preventScroll:!0}),P.current=null))},onFocus:e=>{e.target instanceof HTMLElement&&"false"===e.target.dataset.dismissible||j.current||(j.current=!0,P.current=e.relatedTarget)},onMouseEnter:()=>M(!0),onMouseMove:()=>M(!0),onMouseLeave:()=>{_||M(!1)},onPointerDown:e=>{e.target instanceof HTMLElement&&"false"===e.target.dataset.dismissible||k(!0)},onPointerUp:()=>k(!1)},T.filter(t=>!t.position&&0===n||t.position===e).map((n,r)=>{var a,s;return o.createElement(ed,{key:n.id,icons:w,index:r,toast:n,duration:null!=(a=null==h?void 0:h.duration)?a:f,className:null==h?void 0:h.className,descriptionClassName:null==h?void 0:h.descriptionClassName,invert:t,visibleToasts:m,closeButton:null!=(s=null==h?void 0:h.closeButton)?s:l,interacting:_,position:e,style:null==h?void 0:h.style,unstyled:null==h?void 0:h.unstyled,classNames:null==h?void 0:h.classNames,cancelButtonStyle:null==h?void 0:h.cancelButtonStyle,actionButtonStyle:null==h?void 0:h.actionButtonStyle,removeToast:F,toasts:T.filter(e=>e.position==n.position),heights:R.filter(e=>e.position==n.position),setHeights:N,expandByDefault:i,gap:v,loadingIcon:y,expanded:A,pauseWhenPageIsHidden:x,cn:E})}))})):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.