@phake/lanework 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-local/client/assets/app-BLu5Ut7v.css +2 -0
- package/dist-local/client/assets/{board._owner._repo-hvj6B94q.js → board._owner._repo-BahBdjhM.js} +6 -5
- package/dist-local/client/assets/{dist-DZ2bn-Z6.js → dist-C8XwKPa6.js} +1 -1
- package/dist-local/client/assets/{gemini-2_FJD5P-.js → gemini-FrNNf4gc.js} +1 -1
- package/dist-local/client/assets/{guide-BXJBZbQA.js → guide-BcU07F30.js} +3 -3
- package/dist-local/client/assets/{index-TbIMjf2L.js → index-BBeG6qcu.js} +2 -2
- package/dist-local/client/assets/{review-status-RAnd_eAC.js → review-status-DNKYsJwj.js} +1 -1
- package/dist-local/client/assets/{routes-DhFdKFMi.js → routes-0vSeDi9u.js} +1 -1
- package/dist-local/server/assets/{_tanstack-start-manifest_v-CNDxZb5c.js → _tanstack-start-manifest_v-B0OMELmw.js} +13 -13
- package/dist-local/server/assets/{board._owner._repo-WPs_mhzX.js → board._owner._repo-Bpsm6LuL.js} +1 -1
- package/dist-local/server/assets/{board._owner._repo-BgLMPzjG.js → board._owner._repo-DkTATrxq.js} +73 -23
- package/dist-local/server/assets/{router-CaG3M3Zu.js → router-DU-_0lCL.js} +2 -2
- package/dist-local/server/server.js +2 -2
- package/package.json +1 -1
- package/dist-local/client/assets/app-DMYVKfjU.css +0 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/guide-
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/guide-BcU07F30.js","assets/chunk-Cyuzqnbw.js","assets/review-status-DNKYsJwj.js","assets/link-CUk1Z0N6.js","assets/gemini-FrNNf4gc.js","assets/reviews-core-BKrjFeCa.js","assets/routes-0vSeDi9u.js","assets/Tag01Icon-DNgtGZ3r.js","assets/board._owner._repo-BahBdjhM.js","assets/dist-C8XwKPa6.js","assets/board._owner._repo-DyrvTwhk.js"])))=>i.map(i=>d[i]);
|
|
2
2
|
import{a as e,i as t,n,r,t as i}from"./chunk-Cyuzqnbw.js";import{A as a,B as o,C as s,D as c,E as l,F as u,G as d,H as f,I as p,L as m,M as h,N as g,O as _,P as v,R as y,S as b,T as x,U as S,V as C,W as w,_ as E,a as D,b as O,c as k,d as A,f as j,g as M,h as N,i as ee,j as te,k as P,l as F,m as ne,n as re,o as ie,p as ae,r as I,s as L,t as oe,u as se,v as ce,w as le,x as ue,y as de,z as fe}from"./link-CUk1Z0N6.js";var pe=i((e=>{function t(e,t){var n=e.length;e.push(t);a:for(;0<n;){var r=n-1>>>1,a=e[r];if(0<i(a,t))e[r]=t,e[n]=a,n=r;else break a}}function n(e){return e.length===0?null:e[0]}function r(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;a:for(var r=0,a=e.length,o=a>>>1;r<o;){var s=2*(r+1)-1,c=e[s],l=s+1,u=e[l];if(0>i(c,n))l<a&&0>i(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(l<a&&0>i(u,n))e[r]=u,e[l]=n,r=l;else break a}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}if(e.unstable_now=void 0,typeof performance==`object`&&typeof performance.now==`function`){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var c=[],l=[],u=1,d=null,f=3,p=!1,m=!1,h=!1,g=!1,_=typeof setTimeout==`function`?setTimeout:null,v=typeof clearTimeout==`function`?clearTimeout:null,y=typeof setImmediate<`u`?setImmediate:null;function b(e){for(var i=n(l);i!==null;){if(i.callback===null)r(l);else if(i.startTime<=e)r(l),i.sortIndex=i.expirationTime,t(c,i);else break;i=n(l)}}function x(e){if(h=!1,b(e),!m)if(n(c)!==null)m=!0,S||(S=!0,k());else{var t=n(l);t!==null&&M(x,t.startTime-e)}}var S=!1,C=-1,w=5,E=-1;function D(){return g?!0:!(e.unstable_now()-E<w)}function O(){if(g=!1,S){var t=e.unstable_now();E=t;var i=!0;try{a:{m=!1,h&&(h=!1,v(C),C=-1),p=!0;var a=f;try{b:{for(b(t),d=n(c);d!==null&&!(d.expirationTime>t&&D());){var o=d.callback;if(typeof o==`function`){d.callback=null,f=d.priorityLevel;var s=o(d.expirationTime<=t);if(t=e.unstable_now(),typeof s==`function`){d.callback=s,b(t),i=!0;break b}d===n(c)&&r(c),b(t)}else r(c);d=n(c)}if(d!==null)i=!0;else{var u=n(l);u!==null&&M(x,u.startTime-t),i=!1}}break a}finally{d=null,f=a,p=!1}i=void 0}}finally{i?k():S=!1}}}var k;if(typeof y==`function`)k=function(){y(O)};else if(typeof MessageChannel<`u`){var A=new MessageChannel,j=A.port2;A.port1.onmessage=O,k=function(){j.postMessage(null)}}else k=function(){_(O,0)};function M(t,n){C=_(function(){t(e.unstable_now())},n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error(`forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported`):w=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},e.unstable_requestPaint=function(){g=!0},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},e.unstable_scheduleCallback=function(r,i,a){var o=e.unstable_now();switch(typeof a==`object`&&a?(a=a.delay,a=typeof a==`number`&&0<a?o+a:o):a=o,r){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return s=a+s,r={id:u++,callback:i,priorityLevel:r,startTime:a,expirationTime:s,sortIndex:-1},a>o?(r.sortIndex=a,t(l,r),n(c)===null&&r===n(l)&&(h?(v(C),C=-1):h=!0,M(x,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,S||(S=!0,k()))),r},e.unstable_shouldYield=D,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),me=i(((e,t)=>{t.exports=pe()})),he=i((e=>{var t=me(),n=d(),r=w();function i(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function a(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function o(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function s(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function c(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function l(e){if(o(e)!==e)throw Error(i(188))}function u(e){var t=e.alternate;if(!t){if(t=o(e),t===null)throw Error(i(188));return t===e?e:null}for(var n=e,r=t;;){var a=n.return;if(a===null)break;var s=a.alternate;if(s===null){if(r=a.return,r!==null){n=r;continue}break}if(a.child===s.child){for(s=a.child;s;){if(s===n)return l(a),e;if(s===r)return l(a),t;s=s.sibling}throw Error(i(188))}if(n.return!==r.return)n=a,r=s;else{for(var c=!1,u=a.child;u;){if(u===n){c=!0,n=a,r=s;break}if(u===r){c=!0,r=a,n=s;break}u=u.sibling}if(!c){for(u=s.child;u;){if(u===n){c=!0,n=s,r=a;break}if(u===r){c=!0,r=s,n=a;break}u=u.sibling}if(!c)throw Error(i(189))}}if(n.alternate!==r)throw Error(i(190))}if(n.tag!==3)throw Error(i(188));return n.stateNode.current===n?e:t}function f(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=f(e),t!==null)return t;e=e.sibling}return null}var p=Object.assign,m=Symbol.for(`react.element`),h=Symbol.for(`react.transitional.element`),g=Symbol.for(`react.portal`),_=Symbol.for(`react.fragment`),v=Symbol.for(`react.strict_mode`),y=Symbol.for(`react.profiler`),b=Symbol.for(`react.consumer`),x=Symbol.for(`react.context`),S=Symbol.for(`react.forward_ref`),C=Symbol.for(`react.suspense`),E=Symbol.for(`react.suspense_list`),D=Symbol.for(`react.memo`),O=Symbol.for(`react.lazy`),k=Symbol.for(`react.activity`),A=Symbol.for(`react.memo_cache_sentinel`),j=Symbol.iterator;function M(e){return typeof e!=`object`||!e?null:(e=j&&e[j]||e[`@@iterator`],typeof e==`function`?e:null)}var N=Symbol.for(`react.client.reference`);function ee(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===N?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case _:return`Fragment`;case y:return`Profiler`;case v:return`StrictMode`;case C:return`Suspense`;case E:return`SuspenseList`;case k:return`Activity`}if(typeof e==`object`)switch(e.$$typeof){case g:return`Portal`;case x:return e.displayName||`Context`;case b:return(e._context.displayName||`Context`)+`.Consumer`;case S:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case D:return t=e.displayName||null,t===null?ee(e.type)||`Memo`:t;case O:t=e._payload,e=e._init;try{return ee(e(t))}catch{}}return null}var te=Array.isArray,P=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,F=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ne={pending:!1,data:null,method:null,action:null},re=[],ie=-1;function ae(e){return{current:e}}function I(e){0>ie||(e.current=re[ie],re[ie]=null,ie--)}function L(e,t){ie++,re[ie]=e.current,e.current=t}var oe=ae(null),se=ae(null),ce=ae(null),le=ae(null);function ue(e,t){switch(L(ce,t),L(se,e),L(oe,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Gd(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Gd(t),e=Kd(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}I(oe),L(oe,e)}function de(){I(oe),I(se),I(ce)}function fe(e){e.memoizedState!==null&&L(le,e);var t=oe.current,n=Kd(t,e.type);t!==n&&(L(se,e),L(oe,n))}function pe(e){se.current===e&&(I(oe),I(se)),le.current===e&&(I(le),np._currentValue=ne)}var he,ge;function _e(e){if(he===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);he=t&&t[1]||``,ge=-1<e.stack.indexOf(`
|
|
3
3
|
at`)?` (<anonymous>)`:-1<e.stack.indexOf(`@`)?`@unknown:0:0`:``}return`
|
|
4
4
|
`+he+e+ge}var ve=!1;function ye(e,t){if(!e||ve)return``;ve=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var n=function(){throw Error()};if(Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),typeof Reflect==`object`&&Reflect.construct){try{Reflect.construct(n,[])}catch(e){var r=e}Reflect.construct(e,[],n)}else{try{n.call()}catch(e){r=e}e.call(n.prototype)}}else{try{throw Error()}catch(e){r=e}(n=e())&&typeof n.catch==`function`&&n.catch(function(){})}}catch(e){if(e&&r&&typeof e.stack==`string`)return[e.stack,r.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName=`DetermineComponentFrameRoot`;var i=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,`name`);i&&i.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:`DetermineComponentFrameRoot`});var a=r.DetermineComponentFrameRoot(),o=a[0],s=a[1];if(o&&s){var c=o.split(`
|
|
@@ -9,4 +9,4 @@ Error generating stack: `+e.message+`
|
|
|
9
9
|
`+e.stack}}var Se=Object.prototype.hasOwnProperty,Ce=t.unstable_scheduleCallback,we=t.unstable_cancelCallback,Te=t.unstable_shouldYield,Ee=t.unstable_requestPaint,De=t.unstable_now,Oe=t.unstable_getCurrentPriorityLevel,ke=t.unstable_ImmediatePriority,Ae=t.unstable_UserBlockingPriority,je=t.unstable_NormalPriority,Me=t.unstable_LowPriority,Ne=t.unstable_IdlePriority,Pe=t.log,Fe=t.unstable_setDisableYieldValue,Ie=null,Le=null;function Re(e){if(typeof Pe==`function`&&Fe(e),Le&&typeof Le.setStrictMode==`function`)try{Le.setStrictMode(Ie,e)}catch{}}var ze=Math.clz32?Math.clz32:He,Be=Math.log,Ve=Math.LN2;function He(e){return e>>>=0,e===0?32:31-(Be(e)/Ve|0)|0}var Ue=256,We=262144,Ge=4194304;function Ke(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function qe(e,t,n){var r=e.pendingLanes;if(r===0)return 0;var i=0,a=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var s=r&134217727;return s===0?(s=r&~a,s===0?o===0?n||(n=r&~e,n!==0&&(i=Ke(n))):i=Ke(o):i=Ke(s)):(r=s&~a,r===0?(o&=s,o===0?n||(n=s&~e,n!==0&&(i=Ke(n))):i=Ke(o)):i=Ke(r)),i===0?0:t!==0&&t!==i&&(t&a)===0&&(a=i&-i,n=t&-t,a>=n||a===32&&n&4194048)?t:i}function Je(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Ye(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Xe(){var e=Ge;return Ge<<=1,!(Ge&62914560)&&(Ge=4194304),e}function Ze(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Qe(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function $e(e,t,n,r,i,a){var o=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var s=e.entanglements,c=e.expirationTimes,l=e.hiddenUpdates;for(n=o&~n;0<n;){var u=31-ze(n),d=1<<u;s[u]=0,c[u]=-1;var f=l[u];if(f!==null)for(l[u]=null,u=0;u<f.length;u++){var p=f[u];p!==null&&(p.lane&=-536870913)}n&=~d}r!==0&&et(e,r,0),a!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=a&~(o&~t))}function et(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-ze(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|n&261930}function tt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-ze(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}function nt(e,t){var n=t&-t;return n=n&42?1:rt(n),(n&(e.suspendedLanes|t))===0?n:0}function rt(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function it(e){return e&=-e,2<e?8<e?e&134217727?32:268435456:8:2}function at(){var e=F.p;return e===0?(e=window.event,e===void 0?32:vp(e.type)):e}function ot(e,t){var n=F.p;try{return F.p=e,t()}finally{F.p=n}}var st=Math.random().toString(36).slice(2),ct=`__reactFiber$`+st,lt=`__reactProps$`+st,ut=`__reactContainer$`+st,dt=`__reactEvents$`+st,ft=`__reactListeners$`+st,pt=`__reactHandles$`+st,mt=`__reactResources$`+st,ht=`__reactMarker$`+st;function gt(e){delete e[ct],delete e[lt],delete e[dt],delete e[ft],delete e[pt]}function _t(e){var t=e[ct];if(t)return t;for(var n=e.parentNode;n;){if(t=n[ut]||n[ct]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=hf(e);e!==null;){if(n=e[ct])return n;e=hf(e)}return t}e=n,n=e.parentNode}return null}function vt(e){if(e=e[ct]||e[ut]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function yt(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(i(33))}function bt(e){var t=e[mt];return t||=e[mt]={hoistableStyles:new Map,hoistableScripts:new Map},t}function xt(e){e[ht]=!0}var St=new Set,Ct={};function wt(e,t){Tt(e,t),Tt(e+`Capture`,t)}function Tt(e,t){for(Ct[e]=t,e=0;e<t.length;e++)St.add(t[e])}var Et=RegExp(`^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$`),Dt={},Ot={};function kt(e){return Se.call(Ot,e)?!0:Se.call(Dt,e)?!1:Et.test(e)?Ot[e]=!0:(Dt[e]=!0,!1)}function At(e,t,n){if(kt(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case`undefined`:case`function`:case`symbol`:e.removeAttribute(t);return;case`boolean`:var r=t.toLowerCase().slice(0,5);if(r!==`data-`&&r!==`aria-`){e.removeAttribute(t);return}}e.setAttribute(t,``+n)}}function jt(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(t);return}e.setAttribute(t,``+n)}}function Mt(e,t,n,r){if(r===null)e.removeAttribute(n);else{switch(typeof r){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(n);return}e.setAttributeNS(t,n,``+r)}}function Nt(e){switch(typeof e){case`bigint`:case`boolean`:case`number`:case`string`:case`undefined`:return e;case`object`:return e;default:return``}}function Pt(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()===`input`&&(t===`checkbox`||t===`radio`)}function Ft(e,t,n){var r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&r!==void 0&&typeof r.get==`function`&&typeof r.set==`function`){var i=r.get,a=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){n=``+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(e){n=``+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function It(e){if(!e._valueTracker){var t=Pt(e)?`checked`:`value`;e._valueTracker=Ft(e,t,``+e[t])}}function Lt(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r=``;return e&&(r=Pt(e)?e.checked?`true`:`false`:e.value),e=r,e===n?!1:(t.setValue(e),!0)}function Rt(e){if(e||=typeof document<`u`?document:void 0,e===void 0)return null;try{return e.activeElement||e.body}catch{return e.body}}var zt=/[\n"\\]/g;function Bt(e){return e.replace(zt,function(e){return`\\`+e.charCodeAt(0).toString(16)+` `})}function Vt(e,t,n,r,i,a,o,s){e.name=``,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`?e.type=o:e.removeAttribute(`type`),t==null?o!==`submit`&&o!==`reset`||e.removeAttribute(`value`):o===`number`?(t===0&&e.value===``||e.value!=t)&&(e.value=``+Nt(t)):e.value!==``+Nt(t)&&(e.value=``+Nt(t)),t==null?n==null?r!=null&&e.removeAttribute(`value`):Ut(e,o,Nt(n)):Ut(e,o,Nt(t)),i==null&&a!=null&&(e.defaultChecked=!!a),i!=null&&(e.checked=i&&typeof i!=`function`&&typeof i!=`symbol`),s!=null&&typeof s!=`function`&&typeof s!=`symbol`&&typeof s!=`boolean`?e.name=``+Nt(s):e.removeAttribute(`name`)}function Ht(e,t,n,r,i,a,o,s){if(a!=null&&typeof a!=`function`&&typeof a!=`symbol`&&typeof a!=`boolean`&&(e.type=a),t!=null||n!=null){if(!(a!==`submit`&&a!==`reset`||t!=null)){It(e);return}n=n==null?``:``+Nt(n),t=t==null?n:``+Nt(t),s||t===e.value||(e.value=t),e.defaultValue=t}r??=i,r=typeof r!=`function`&&typeof r!=`symbol`&&!!r,e.checked=s?e.checked:!!r,e.defaultChecked=!!r,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`&&(e.name=o),It(e)}function Ut(e,t,n){t===`number`&&Rt(e.ownerDocument)===e||e.defaultValue===``+n||(e.defaultValue=``+n)}function Wt(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t[`$`+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty(`$`+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=``+Nt(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function Gt(e,t,n){if(t!=null&&(t=``+Nt(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n==null?``:``+Nt(n)}function Kt(e,t,n,r){if(t==null){if(r!=null){if(n!=null)throw Error(i(92));if(te(r)){if(1<r.length)throw Error(i(93));r=r[0]}n=r}n??=``,t=n}n=Nt(t),e.defaultValue=n,r=e.textContent,r===n&&r!==``&&r!==null&&(e.value=r),It(e)}function qt(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Jt=new Set(`animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp`.split(` `));function Yt(e,t,n){var r=t.indexOf(`--`)===0;n==null||typeof n==`boolean`||n===``?r?e.setProperty(t,``):t===`float`?e.cssFloat=``:e[t]=``:r?e.setProperty(t,n):typeof n!=`number`||n===0||Jt.has(t)?t===`float`?e.cssFloat=n:e[t]=(``+n).trim():e[t]=n+`px`}function Xt(e,t,n){if(t!=null&&typeof t!=`object`)throw Error(i(62));if(e=e.style,n!=null){for(var r in n)!n.hasOwnProperty(r)||t!=null&&t.hasOwnProperty(r)||(r.indexOf(`--`)===0?e.setProperty(r,``):r===`float`?e.cssFloat=``:e[r]=``);for(var a in t)r=t[a],t.hasOwnProperty(a)&&n[a]!==r&&Yt(e,a,r)}else for(var o in t)t.hasOwnProperty(o)&&Yt(e,o,t[o])}function Zt(e){if(e.indexOf(`-`)===-1)return!1;switch(e){case`annotation-xml`:case`color-profile`:case`font-face`:case`font-face-src`:case`font-face-uri`:case`font-face-format`:case`font-face-name`:case`missing-glyph`:return!1;default:return!0}}var Qt=new Map([[`acceptCharset`,`accept-charset`],[`htmlFor`,`for`],[`httpEquiv`,`http-equiv`],[`crossOrigin`,`crossorigin`],[`accentHeight`,`accent-height`],[`alignmentBaseline`,`alignment-baseline`],[`arabicForm`,`arabic-form`],[`baselineShift`,`baseline-shift`],[`capHeight`,`cap-height`],[`clipPath`,`clip-path`],[`clipRule`,`clip-rule`],[`colorInterpolation`,`color-interpolation`],[`colorInterpolationFilters`,`color-interpolation-filters`],[`colorProfile`,`color-profile`],[`colorRendering`,`color-rendering`],[`dominantBaseline`,`dominant-baseline`],[`enableBackground`,`enable-background`],[`fillOpacity`,`fill-opacity`],[`fillRule`,`fill-rule`],[`floodColor`,`flood-color`],[`floodOpacity`,`flood-opacity`],[`fontFamily`,`font-family`],[`fontSize`,`font-size`],[`fontSizeAdjust`,`font-size-adjust`],[`fontStretch`,`font-stretch`],[`fontStyle`,`font-style`],[`fontVariant`,`font-variant`],[`fontWeight`,`font-weight`],[`glyphName`,`glyph-name`],[`glyphOrientationHorizontal`,`glyph-orientation-horizontal`],[`glyphOrientationVertical`,`glyph-orientation-vertical`],[`horizAdvX`,`horiz-adv-x`],[`horizOriginX`,`horiz-origin-x`],[`imageRendering`,`image-rendering`],[`letterSpacing`,`letter-spacing`],[`lightingColor`,`lighting-color`],[`markerEnd`,`marker-end`],[`markerMid`,`marker-mid`],[`markerStart`,`marker-start`],[`overlinePosition`,`overline-position`],[`overlineThickness`,`overline-thickness`],[`paintOrder`,`paint-order`],[`panose-1`,`panose-1`],[`pointerEvents`,`pointer-events`],[`renderingIntent`,`rendering-intent`],[`shapeRendering`,`shape-rendering`],[`stopColor`,`stop-color`],[`stopOpacity`,`stop-opacity`],[`strikethroughPosition`,`strikethrough-position`],[`strikethroughThickness`,`strikethrough-thickness`],[`strokeDasharray`,`stroke-dasharray`],[`strokeDashoffset`,`stroke-dashoffset`],[`strokeLinecap`,`stroke-linecap`],[`strokeLinejoin`,`stroke-linejoin`],[`strokeMiterlimit`,`stroke-miterlimit`],[`strokeOpacity`,`stroke-opacity`],[`strokeWidth`,`stroke-width`],[`textAnchor`,`text-anchor`],[`textDecoration`,`text-decoration`],[`textRendering`,`text-rendering`],[`transformOrigin`,`transform-origin`],[`underlinePosition`,`underline-position`],[`underlineThickness`,`underline-thickness`],[`unicodeBidi`,`unicode-bidi`],[`unicodeRange`,`unicode-range`],[`unitsPerEm`,`units-per-em`],[`vAlphabetic`,`v-alphabetic`],[`vHanging`,`v-hanging`],[`vIdeographic`,`v-ideographic`],[`vMathematical`,`v-mathematical`],[`vectorEffect`,`vector-effect`],[`vertAdvY`,`vert-adv-y`],[`vertOriginX`,`vert-origin-x`],[`vertOriginY`,`vert-origin-y`],[`wordSpacing`,`word-spacing`],[`writingMode`,`writing-mode`],[`xmlnsXlink`,`xmlns:xlink`],[`xHeight`,`x-height`]]),$t=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function en(e){return $t.test(``+e)?`javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')`:e}function tn(){}var nn=null;function rn(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var an=null,on=null;function sn(e){var t=vt(e);if(t&&(e=t.stateNode)){var n=e[lt]||null;a:switch(e=t.stateNode,t.type){case`input`:if(Vt(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type===`radio`&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll(`input[name="`+Bt(``+t)+`"][type="radio"]`),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var a=r[lt]||null;if(!a)throw Error(i(90));Vt(r,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name)}}for(t=0;t<n.length;t++)r=n[t],r.form===e.form&&Lt(r)}break a;case`textarea`:Gt(e,n.value,n.defaultValue);break a;case`select`:t=n.value,t!=null&&Wt(e,!!n.multiple,t,!1)}}}var cn=!1;function ln(e,t,n){if(cn)return e(t,n);cn=!0;try{return e(t)}finally{if(cn=!1,(an!==null||on!==null)&&(Su(),an&&(t=an,e=on,on=an=null,sn(t),e)))for(t=0;t<e.length;t++)sn(e[t])}}function un(e,t){var n=e.stateNode;if(n===null)return null;var r=n[lt]||null;if(r===null)return null;n=r[t];a:switch(t){case`onClick`:case`onClickCapture`:case`onDoubleClick`:case`onDoubleClickCapture`:case`onMouseDown`:case`onMouseDownCapture`:case`onMouseMove`:case`onMouseMoveCapture`:case`onMouseUp`:case`onMouseUpCapture`:case`onMouseEnter`:(r=!r.disabled)||(e=e.type,r=!(e===`button`||e===`input`||e===`select`||e===`textarea`)),e=!r;break a;default:e=!1}if(e)return null;if(n&&typeof n!=`function`)throw Error(i(231,t,typeof n));return n}var dn=!(typeof window>`u`||window.document===void 0||window.document.createElement===void 0),fn=!1;if(dn)try{var pn={};Object.defineProperty(pn,"passive",{get:function(){fn=!0}}),window.addEventListener(`test`,pn,pn),window.removeEventListener(`test`,pn,pn)}catch{fn=!1}var mn=null,hn=null,gn=null;function _n(){if(gn)return gn;var e,t=hn,n=t.length,r,i=`value`in mn?mn.value:mn.textContent,a=i.length;for(e=0;e<n&&t[e]===i[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===i[a-r];r++);return gn=i.slice(e,1<r?1-r:void 0)}function vn(e){var t=e.keyCode;return`charCode`in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function yn(){return!0}function bn(){return!1}function xn(e){function t(t,n,r,i,a){for(var o in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(o)&&(t=e[o],this[o]=t?t(i):i[o]);return this.isDefaultPrevented=(i.defaultPrevented==null?!1===i.returnValue:i.defaultPrevented)?yn:bn,this.isPropagationStopped=bn,this}return p(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():typeof e.returnValue!=`unknown`&&(e.returnValue=!1),this.isDefaultPrevented=yn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():typeof e.cancelBubble!=`unknown`&&(e.cancelBubble=!0),this.isPropagationStopped=yn)},persist:function(){},isPersistent:yn}),t}var R={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Sn=xn(R),Cn=p({},R,{view:0,detail:0}),wn=xn(Cn),z,Tn,En,Dn=p({},Cn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Rn,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return`movementX`in e?e.movementX:(e!==En&&(En&&e.type===`mousemove`?(z=e.screenX-En.screenX,Tn=e.screenY-En.screenY):Tn=z=0,En=e),z)},movementY:function(e){return`movementY`in e?e.movementY:Tn}}),On=xn(Dn),kn=xn(p({},Dn,{dataTransfer:0})),An=xn(p({},Cn,{relatedTarget:0})),jn=xn(p({},R,{animationName:0,elapsedTime:0,pseudoElement:0})),Mn=xn(p({},R,{clipboardData:function(e){return`clipboardData`in e?e.clipboardData:window.clipboardData}})),Nn=xn(p({},R,{data:0})),Pn={Esc:`Escape`,Spacebar:` `,Left:`ArrowLeft`,Up:`ArrowUp`,Right:`ArrowRight`,Down:`ArrowDown`,Del:`Delete`,Win:`OS`,Menu:`ContextMenu`,Apps:`ContextMenu`,Scroll:`ScrollLock`,MozPrintableKey:`Unidentified`},Fn={8:`Backspace`,9:`Tab`,12:`Clear`,13:`Enter`,16:`Shift`,17:`Control`,18:`Alt`,19:`Pause`,20:`CapsLock`,27:`Escape`,32:` `,33:`PageUp`,34:`PageDown`,35:`End`,36:`Home`,37:`ArrowLeft`,38:`ArrowUp`,39:`ArrowRight`,40:`ArrowDown`,45:`Insert`,46:`Delete`,112:`F1`,113:`F2`,114:`F3`,115:`F4`,116:`F5`,117:`F6`,118:`F7`,119:`F8`,120:`F9`,121:`F10`,122:`F11`,123:`F12`,144:`NumLock`,145:`ScrollLock`,224:`Meta`},In={Alt:`altKey`,Control:`ctrlKey`,Meta:`metaKey`,Shift:`shiftKey`};function Ln(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=In[e])?!!t[e]:!1}function Rn(){return Ln}var zn=xn(p({},Cn,{key:function(e){if(e.key){var t=Pn[e.key]||e.key;if(t!==`Unidentified`)return t}return e.type===`keypress`?(e=vn(e),e===13?`Enter`:String.fromCharCode(e)):e.type===`keydown`||e.type===`keyup`?Fn[e.keyCode]||`Unidentified`:``},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Rn,charCode:function(e){return e.type===`keypress`?vn(e):0},keyCode:function(e){return e.type===`keydown`||e.type===`keyup`?e.keyCode:0},which:function(e){return e.type===`keypress`?vn(e):e.type===`keydown`||e.type===`keyup`?e.keyCode:0}})),Bn=xn(p({},Dn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Vn=xn(p({},Cn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Rn})),Hn=xn(p({},R,{propertyName:0,elapsedTime:0,pseudoElement:0})),Un=xn(p({},Dn,{deltaX:function(e){return`deltaX`in e?e.deltaX:`wheelDeltaX`in e?-e.wheelDeltaX:0},deltaY:function(e){return`deltaY`in e?e.deltaY:`wheelDeltaY`in e?-e.wheelDeltaY:`wheelDelta`in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),Wn=xn(p({},R,{newState:0,oldState:0})),Gn=[9,13,27,32],Kn=dn&&`CompositionEvent`in window,qn=null;dn&&`documentMode`in document&&(qn=document.documentMode);var Jn=dn&&`TextEvent`in window&&!qn,Yn=dn&&(!Kn||qn&&8<qn&&11>=qn),Xn=` `,Zn=!1;function Qn(e,t){switch(e){case`keyup`:return Gn.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function $n(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var er=!1;function tr(e,t){switch(e){case`compositionend`:return $n(t);case`keypress`:return t.which===32?(Zn=!0,Xn):null;case`textInput`:return e=t.data,e===Xn&&Zn?null:e;default:return null}}function nr(e,t){if(er)return e===`compositionend`||!Kn&&Qn(e,t)?(e=_n(),gn=hn=mn=null,er=!1,e):null;switch(e){case`paste`:return null;case`keypress`:if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case`compositionend`:return Yn&&t.locale!==`ko`?null:t.data;default:return null}}var rr={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function ir(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t===`input`?!!rr[e.type]:t===`textarea`}function ar(e,t,n,r){an?on?on.push(r):on=[r]:an=r,t=kd(t,`onChange`),0<t.length&&(n=new Sn(`onChange`,`change`,null,n,r),e.push({event:n,listeners:t}))}var or=null,sr=null;function cr(e){Sd(e,0)}function lr(e){if(Lt(yt(e)))return e}function ur(e,t){if(e===`change`)return t}var dr=!1;if(dn){var fr;if(dn){var pr=`oninput`in document;if(!pr){var mr=document.createElement(`div`);mr.setAttribute(`oninput`,`return;`),pr=typeof mr.oninput==`function`}fr=pr}else fr=!1;dr=fr&&(!document.documentMode||9<document.documentMode)}function hr(){or&&(or.detachEvent(`onpropertychange`,gr),sr=or=null)}function gr(e){if(e.propertyName===`value`&&lr(sr)){var t=[];ar(t,sr,e,rn(e)),ln(cr,t)}}function _r(e,t,n){e===`focusin`?(hr(),or=t,sr=n,or.attachEvent(`onpropertychange`,gr)):e===`focusout`&&hr()}function vr(e){if(e===`selectionchange`||e===`keyup`||e===`keydown`)return lr(sr)}function yr(e,t){if(e===`click`)return lr(t)}function br(e,t){if(e===`input`||e===`change`)return lr(t)}function xr(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var Sr=typeof Object.is==`function`?Object.is:xr;function Cr(e,t){if(Sr(e,t))return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!Se.call(t,i)||!Sr(e[i],t[i]))return!1}return!0}function wr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Tr(e,t){var n=wr(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}a:{for(;n;){if(n.nextSibling){n=n.nextSibling;break a}n=n.parentNode}n=void 0}n=wr(n)}}function Er(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Er(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Dr(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Rt(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href==`string`}catch{n=!1}if(n)e=t.contentWindow;else break;t=Rt(e.document)}return t}function Or(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t===`input`&&(e.type===`text`||e.type===`search`||e.type===`tel`||e.type===`url`||e.type===`password`)||t===`textarea`||e.contentEditable===`true`)}var kr=dn&&`documentMode`in document&&11>=document.documentMode,Ar=null,jr=null,Mr=null,Nr=!1;function Pr(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Nr||Ar==null||Ar!==Rt(r)||(r=Ar,`selectionStart`in r&&Or(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Mr&&Cr(Mr,r)||(Mr=r,r=kd(jr,`onSelect`),0<r.length&&(t=new Sn(`onSelect`,`select`,null,t,n),e.push({event:t,listeners:r}),t.target=Ar)))}function Fr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n[`Webkit`+e]=`webkit`+t,n[`Moz`+e]=`moz`+t,n}var Ir={animationend:Fr(`Animation`,`AnimationEnd`),animationiteration:Fr(`Animation`,`AnimationIteration`),animationstart:Fr(`Animation`,`AnimationStart`),transitionrun:Fr(`Transition`,`TransitionRun`),transitionstart:Fr(`Transition`,`TransitionStart`),transitioncancel:Fr(`Transition`,`TransitionCancel`),transitionend:Fr(`Transition`,`TransitionEnd`)},Lr={},Rr={};dn&&(Rr=document.createElement(`div`).style,`AnimationEvent`in window||(delete Ir.animationend.animation,delete Ir.animationiteration.animation,delete Ir.animationstart.animation),`TransitionEvent`in window||delete Ir.transitionend.transition);function zr(e){if(Lr[e])return Lr[e];if(!Ir[e])return e;var t=Ir[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Rr)return Lr[e]=t[n];return e}var Br=zr(`animationend`),Vr=zr(`animationiteration`),Hr=zr(`animationstart`),Ur=zr(`transitionrun`),Wr=zr(`transitionstart`),Gr=zr(`transitioncancel`),Kr=zr(`transitionend`),qr=new Map,Jr=`abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel`.split(` `);Jr.push(`scrollEnd`);function Yr(e,t){qr.set(e,t),wt(t,[e])}var Xr=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)},Zr=[],Qr=0,$r=0;function ei(){for(var e=Qr,t=$r=Qr=0;t<e;){var n=Zr[t];Zr[t++]=null;var r=Zr[t];Zr[t++]=null;var i=Zr[t];Zr[t++]=null;var a=Zr[t];if(Zr[t++]=null,r!==null&&i!==null){var o=r.pending;o===null?i.next=i:(i.next=o.next,o.next=i),r.pending=i}a!==0&&ii(n,i,a)}}function ti(e,t,n,r){Zr[Qr++]=e,Zr[Qr++]=t,Zr[Qr++]=n,Zr[Qr++]=r,$r|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function ni(e,t,n,r){return ti(e,t,n,r),ai(e)}function ri(e,t){return ti(e,null,null,t),ai(e)}function ii(e,t,n){e.lanes|=n;var r=e.alternate;r!==null&&(r.lanes|=n);for(var i=!1,a=e.return;a!==null;)a.childLanes|=n,r=a.alternate,r!==null&&(r.childLanes|=n),a.tag===22&&(e=a.stateNode,e===null||e._visibility&1||(i=!0)),e=a,a=a.return;return e.tag===3?(a=e.stateNode,i&&t!==null&&(i=31-ze(n),e=a.hiddenUpdates,r=e[i],r===null?e[i]=[t]:r.push(t),t.lane=n|536870912),a):null}function ai(e){if(50<pu)throw pu=0,mu=null,Error(i(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var oi={};function si(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ci(e,t,n,r){return new si(e,t,n,r)}function li(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ui(e,t){var n=e.alternate;return n===null?(n=ci(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&65011712,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function di(e,t){e.flags&=65011714;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function fi(e,t,n,r,a,o){var s=0;if(r=e,typeof e==`function`)li(e)&&(s=1);else if(typeof e==`string`)s=qf(e,n,oe.current)?26:e===`html`||e===`head`||e===`body`?27:5;else a:switch(e){case k:return e=ci(31,n,t,a),e.elementType=k,e.lanes=o,e;case _:return pi(n.children,a,o,t);case v:s=8,a|=24;break;case y:return e=ci(12,n,t,a|2),e.elementType=y,e.lanes=o,e;case C:return e=ci(13,n,t,a),e.elementType=C,e.lanes=o,e;case E:return e=ci(19,n,t,a),e.elementType=E,e.lanes=o,e;default:if(typeof e==`object`&&e)switch(e.$$typeof){case x:s=10;break a;case b:s=9;break a;case S:s=11;break a;case D:s=14;break a;case O:s=16,r=null;break a}s=29,n=Error(i(130,e===null?`null`:typeof e,``)),r=null}return t=ci(s,n,t,a),t.elementType=e,t.type=r,t.lanes=o,t}function pi(e,t,n,r){return e=ci(7,e,r,t),e.lanes=n,e}function mi(e,t,n){return e=ci(6,e,null,t),e.lanes=n,e}function hi(e){var t=ci(18,null,null,0);return t.stateNode=e,t}function gi(e,t,n){return t=ci(4,e.children===null?[]:e.children,e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var _i=new WeakMap;function vi(e,t){if(typeof e==`object`&&e){var n=_i.get(e);return n===void 0?(t={value:e,source:t,stack:xe(t)},_i.set(e,t),t):n}return{value:e,source:t,stack:xe(t)}}var yi=[],bi=0,xi=null,Si=0,Ci=[],wi=0,Ti=null,Ei=1,Di=``;function Oi(e,t){yi[bi++]=Si,yi[bi++]=xi,xi=e,Si=t}function ki(e,t,n){Ci[wi++]=Ei,Ci[wi++]=Di,Ci[wi++]=Ti,Ti=e;var r=Ei;e=Di;var i=32-ze(r)-1;r&=~(1<<i),n+=1;var a=32-ze(t)+i;if(30<a){var o=i-i%5;a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,Ei=1<<32-ze(t)+i|n<<i|r,Di=a+e}else Ei=1<<a|n<<i|r,Di=e}function Ai(e){e.return!==null&&(Oi(e,1),ki(e,1,0))}function ji(e){for(;e===xi;)xi=yi[--bi],yi[bi]=null,Si=yi[--bi],yi[bi]=null;for(;e===Ti;)Ti=Ci[--wi],Ci[wi]=null,Di=Ci[--wi],Ci[wi]=null,Ei=Ci[--wi],Ci[wi]=null}function Mi(e,t){Ci[wi++]=Ei,Ci[wi++]=Di,Ci[wi++]=Ti,Ei=t.id,Di=t.overflow,Ti=e}var Ni=null,Pi=null,B=!1,Fi=null,Ii=!1,Li=Error(i(519));function Ri(e){throw Wi(vi(Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?`text`:`HTML`,``)),e)),Li}function zi(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[ct]=e,t[lt]=r,n){case`dialog`:X(`cancel`,t),X(`close`,t);break;case`iframe`:case`object`:case`embed`:X(`load`,t);break;case`video`:case`audio`:for(n=0;n<bd.length;n++)X(bd[n],t);break;case`source`:X(`error`,t);break;case`img`:case`image`:case`link`:X(`error`,t),X(`load`,t);break;case`details`:X(`toggle`,t);break;case`input`:X(`invalid`,t),Ht(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case`select`:X(`invalid`,t);break;case`textarea`:X(`invalid`,t),Kt(t,r.value,r.defaultValue,r.children)}n=r.children,typeof n!=`string`&&typeof n!=`number`&&typeof n!=`bigint`||t.textContent===``+n||!0===r.suppressHydrationWarning||Fd(t.textContent,n)?(r.popover!=null&&(X(`beforetoggle`,t),X(`toggle`,t)),r.onScroll!=null&&X(`scroll`,t),r.onScrollEnd!=null&&X(`scrollend`,t),r.onClick!=null&&(t.onclick=tn),t=!0):t=!1,t||Ri(e,!0)}function Bi(e){for(Ni=e.return;Ni;)switch(Ni.tag){case 5:case 31:case 13:Ii=!1;return;case 27:case 3:Ii=!0;return;default:Ni=Ni.return}}function Vi(e){if(e!==Ni)return!1;if(!B)return Bi(e),B=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!==`form`&&n!==`button`)||qd(e.type,e.memoizedProps)),n=!n),n&&Pi&&Ri(e),Bi(e),t===13){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));Pi=mf(e)}else if(t===31){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));Pi=mf(e)}else t===27?(t=Pi,tf(e.type)?(e=pf,pf=null,Pi=e):Pi=t):Pi=Ni?ff(e.stateNode.nextSibling):null;return!0}function Hi(){Pi=Ni=null,B=!1}function Ui(){var e=Fi;return e!==null&&(eu===null?eu=e:eu.push.apply(eu,e),Fi=null),e}function Wi(e){Fi===null?Fi=[e]:Fi.push(e)}var Gi=ae(null),Ki=null,qi=null;function Ji(e,t,n){L(Gi,t._currentValue),t._currentValue=n}function Yi(e){e._currentValue=Gi.current,I(Gi)}function Xi(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)===t?r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t):(e.childLanes|=t,r!==null&&(r.childLanes|=t)),e===n)break;e=e.return}}function Zi(e,t,n,r){var a=e.child;for(a!==null&&(a.return=e);a!==null;){var o=a.dependencies;if(o!==null){var s=a.child;o=o.firstContext;a:for(;o!==null;){var c=o;o=a;for(var l=0;l<t.length;l++)if(c.context===t[l]){o.lanes|=n,c=o.alternate,c!==null&&(c.lanes|=n),Xi(o.return,n,e),r||(s=null);break a}o=c.next}}else if(a.tag===18){if(s=a.return,s===null)throw Error(i(341));s.lanes|=n,o=s.alternate,o!==null&&(o.lanes|=n),Xi(s,n,e),s=null}else s=a.child;if(s!==null)s.return=a;else for(s=a;s!==null;){if(s===e){s=null;break}if(a=s.sibling,a!==null){a.return=s.return,s=a;break}s=s.return}a=s}}function Qi(e,t,n,r){e=null;for(var a=t,o=!1;a!==null;){if(!o){if(a.flags&524288)o=!0;else if(a.flags&262144)break}if(a.tag===10){var s=a.alternate;if(s===null)throw Error(i(387));if(s=s.memoizedProps,s!==null){var c=a.type;Sr(a.pendingProps.value,s.value)||(e===null?e=[c]:e.push(c))}}else if(a===le.current){if(s=a.alternate,s===null)throw Error(i(387));s.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(e===null?e=[np]:e.push(np))}a=a.return}e!==null&&Zi(t,e,n,r),t.flags|=262144}function $i(e){for(e=e.firstContext;e!==null;){if(!Sr(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function ea(e){Ki=e,qi=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function ta(e){return ra(Ki,e)}function na(e,t){return Ki===null&&ea(e),ra(e,t)}function ra(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},qi===null){if(e===null)throw Error(i(308));qi=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else qi=qi.next=t;return n}var ia=typeof AbortController<`u`?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(t,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(e){return e()})}},aa=t.unstable_scheduleCallback,oa=t.unstable_NormalPriority,sa={$$typeof:x,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function ca(){return{controller:new ia,data:new Map,refCount:0}}function la(e){e.refCount--,e.refCount===0&&aa(oa,function(){e.controller.abort()})}var ua=null,da=0,fa=0,pa=null;function ma(e,t){if(ua===null){var n=ua=[];da=0,fa=md(),pa={status:`pending`,value:void 0,then:function(e){n.push(e)}}}return da++,t.then(ha,ha),t}function ha(){if(--da===0&&ua!==null){pa!==null&&(pa.status=`fulfilled`);var e=ua;ua=null,fa=0,pa=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function ga(e,t){var n=[],r={status:`pending`,value:null,reason:null,then:function(e){n.push(e)}};return e.then(function(){r.status=`fulfilled`,r.value=t;for(var e=0;e<n.length;e++)(0,n[e])(t)},function(e){for(r.status=`rejected`,r.reason=e,e=0;e<n.length;e++)(0,n[e])(void 0)}),r}var _a=P.S;P.S=function(e,t){ru=De(),typeof t==`object`&&t&&typeof t.then==`function`&&ma(e,t),_a!==null&&_a(e,t)};var va=ae(null);function ya(){var e=va.current;return e===null?Vl.pooledCache:e}function ba(e,t){t===null?L(va,va.current):L(va,t.pool)}function xa(){var e=ya();return e===null?null:{parent:sa._currentValue,pool:e}}var Sa=Error(i(460)),Ca=Error(i(474)),wa=Error(i(542)),Ta={then:function(){}};function Ea(e){return e=e.status,e===`fulfilled`||e===`rejected`}function Da(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(tn,tn),t=n),t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,ja(e),e;default:if(typeof t.status==`string`)t.then(tn,tn);else{if(e=Vl,e!==null&&100<e.shellSuspendCounter)throw Error(i(482));e=t,e.status=`pending`,e.then(function(e){if(t.status===`pending`){var n=t;n.status=`fulfilled`,n.value=e}},function(e){if(t.status===`pending`){var n=t;n.status=`rejected`,n.reason=e}})}switch(t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,ja(e),e}throw ka=t,Sa}}function Oa(e){try{var t=e._init;return t(e._payload)}catch(e){throw typeof e==`object`&&e&&typeof e.then==`function`?(ka=e,Sa):e}}var ka=null;function Aa(){if(ka===null)throw Error(i(459));var e=ka;return ka=null,e}function ja(e){if(e===Sa||e===wa)throw Error(i(483))}var Ma=null,Na=0;function Pa(e){var t=Na;return Na+=1,Ma===null&&(Ma=[]),Da(Ma,e,t)}function Fa(e,t){t=t.props.ref,e.ref=t===void 0?null:t}function Ia(e,t){throw t.$$typeof===m?Error(i(525)):(e=Object.prototype.toString.call(t),Error(i(31,e===`[object Object]`?`object with keys {`+Object.keys(t).join(`, `)+`}`:e)))}function La(e){function t(t,n){if(e){var r=t.deletions;r===null?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;r!==null;)t(n,r),r=r.sibling;return null}function r(e){for(var t=new Map;e!==null;)e.key===null?t.set(e.index,e):t.set(e.key,e),e=e.sibling;return t}function a(e,t){return e=ui(e,t),e.index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?(r=t.alternate,r===null?(t.flags|=67108866,n):(r=r.index,r<n?(t.flags|=67108866,n):r)):(t.flags|=1048576,n)}function s(t){return e&&t.alternate===null&&(t.flags|=67108866),t}function c(e,t,n,r){return t===null||t.tag!==6?(t=mi(n,e.mode,r),t.return=e,t):(t=a(t,n),t.return=e,t)}function l(e,t,n,r){var i=n.type;return i===_?d(e,t,n.props.children,r,n.key):t!==null&&(t.elementType===i||typeof i==`object`&&i&&i.$$typeof===O&&Oa(i)===t.type)?(t=a(t,n.props),Fa(t,n),t.return=e,t):(t=fi(n.type,n.key,n.props,null,e.mode,r),Fa(t,n),t.return=e,t)}function u(e,t,n,r){return t===null||t.tag!==4||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?(t=gi(n,e.mode,r),t.return=e,t):(t=a(t,n.children||[]),t.return=e,t)}function d(e,t,n,r,i){return t===null||t.tag!==7?(t=pi(n,e.mode,r,i),t.return=e,t):(t=a(t,n),t.return=e,t)}function f(e,t,n){if(typeof t==`string`&&t!==``||typeof t==`number`||typeof t==`bigint`)return t=mi(``+t,e.mode,n),t.return=e,t;if(typeof t==`object`&&t){switch(t.$$typeof){case h:return n=fi(t.type,t.key,t.props,null,e.mode,n),Fa(n,t),n.return=e,n;case g:return t=gi(t,e.mode,n),t.return=e,t;case O:return t=Oa(t),f(e,t,n)}if(te(t)||M(t))return t=pi(t,e.mode,n,null),t.return=e,t;if(typeof t.then==`function`)return f(e,Pa(t),n);if(t.$$typeof===x)return f(e,na(e,t),n);Ia(e,t)}return null}function p(e,t,n,r){var i=t===null?null:t.key;if(typeof n==`string`&&n!==``||typeof n==`number`||typeof n==`bigint`)return i===null?c(e,t,``+n,r):null;if(typeof n==`object`&&n){switch(n.$$typeof){case h:return n.key===i?l(e,t,n,r):null;case g:return n.key===i?u(e,t,n,r):null;case O:return n=Oa(n),p(e,t,n,r)}if(te(n)||M(n))return i===null?d(e,t,n,r,null):null;if(typeof n.then==`function`)return p(e,t,Pa(n),r);if(n.$$typeof===x)return p(e,t,na(e,n),r);Ia(e,n)}return null}function m(e,t,n,r,i){if(typeof r==`string`&&r!==``||typeof r==`number`||typeof r==`bigint`)return e=e.get(n)||null,c(t,e,``+r,i);if(typeof r==`object`&&r){switch(r.$$typeof){case h:return e=e.get(r.key===null?n:r.key)||null,l(t,e,r,i);case g:return e=e.get(r.key===null?n:r.key)||null,u(t,e,r,i);case O:return r=Oa(r),m(e,t,n,r,i)}if(te(r)||M(r))return e=e.get(n)||null,d(t,e,r,i,null);if(typeof r.then==`function`)return m(e,t,n,Pa(r),i);if(r.$$typeof===x)return m(e,t,n,na(t,r),i);Ia(t,r)}return null}function v(i,a,s,c){for(var l=null,u=null,d=a,h=a=0,g=null;d!==null&&h<s.length;h++){d.index>h?(g=d,d=null):g=d.sibling;var _=p(i,d,s[h],c);if(_===null){d===null&&(d=g);break}e&&d&&_.alternate===null&&t(i,d),a=o(_,a,h),u===null?l=_:u.sibling=_,u=_,d=g}if(h===s.length)return n(i,d),B&&Oi(i,h),l;if(d===null){for(;h<s.length;h++)d=f(i,s[h],c),d!==null&&(a=o(d,a,h),u===null?l=d:u.sibling=d,u=d);return B&&Oi(i,h),l}for(d=r(d);h<s.length;h++)g=m(d,i,h,s[h],c),g!==null&&(e&&g.alternate!==null&&d.delete(g.key===null?h:g.key),a=o(g,a,h),u===null?l=g:u.sibling=g,u=g);return e&&d.forEach(function(e){return t(i,e)}),B&&Oi(i,h),l}function y(a,s,c,l){if(c==null)throw Error(i(151));for(var u=null,d=null,h=s,g=s=0,_=null,v=c.next();h!==null&&!v.done;g++,v=c.next()){h.index>g?(_=h,h=null):_=h.sibling;var y=p(a,h,v.value,l);if(y===null){h===null&&(h=_);break}e&&h&&y.alternate===null&&t(a,h),s=o(y,s,g),d===null?u=y:d.sibling=y,d=y,h=_}if(v.done)return n(a,h),B&&Oi(a,g),u;if(h===null){for(;!v.done;g++,v=c.next())v=f(a,v.value,l),v!==null&&(s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return B&&Oi(a,g),u}for(h=r(h);!v.done;g++,v=c.next())v=m(h,a,g,v.value,l),v!==null&&(e&&v.alternate!==null&&h.delete(v.key===null?g:v.key),s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return e&&h.forEach(function(e){return t(a,e)}),B&&Oi(a,g),u}function b(e,r,o,c){if(typeof o==`object`&&o&&o.type===_&&o.key===null&&(o=o.props.children),typeof o==`object`&&o){switch(o.$$typeof){case h:a:{for(var l=o.key;r!==null;){if(r.key===l){if(l=o.type,l===_){if(r.tag===7){n(e,r.sibling),c=a(r,o.props.children),c.return=e,e=c;break a}}else if(r.elementType===l||typeof l==`object`&&l&&l.$$typeof===O&&Oa(l)===r.type){n(e,r.sibling),c=a(r,o.props),Fa(c,o),c.return=e,e=c;break a}n(e,r);break}else t(e,r);r=r.sibling}o.type===_?(c=pi(o.props.children,e.mode,c,o.key),c.return=e,e=c):(c=fi(o.type,o.key,o.props,null,e.mode,c),Fa(c,o),c.return=e,e=c)}return s(e);case g:a:{for(l=o.key;r!==null;){if(r.key===l)if(r.tag===4&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(e,r.sibling),c=a(r,o.children||[]),c.return=e,e=c;break a}else{n(e,r);break}else t(e,r);r=r.sibling}c=gi(o,e.mode,c),c.return=e,e=c}return s(e);case O:return o=Oa(o),b(e,r,o,c)}if(te(o))return v(e,r,o,c);if(M(o)){if(l=M(o),typeof l!=`function`)throw Error(i(150));return o=l.call(o),y(e,r,o,c)}if(typeof o.then==`function`)return b(e,r,Pa(o),c);if(o.$$typeof===x)return b(e,r,na(e,o),c);Ia(e,o)}return typeof o==`string`&&o!==``||typeof o==`number`||typeof o==`bigint`?(o=``+o,r!==null&&r.tag===6?(n(e,r.sibling),c=a(r,o),c.return=e,e=c):(n(e,r),c=mi(o,e.mode,c),c.return=e,e=c),s(e)):n(e,r)}return function(e,t,n,r){try{Na=0;var i=b(e,t,n,r);return Ma=null,i}catch(t){if(t===Sa||t===wa)throw t;var a=ci(29,t,null,e.mode);return a.lanes=r,a.return=e,a}}}var Ra=La(!0),za=La(!1),Ba=!1;function Va(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Ha(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Ua(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Wa(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Bl&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=ai(e),ii(e,null,n),t}return ti(e,r,t,n),ai(e)}function Ga(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,n&4194048)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,tt(e,n)}}function Ka(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,callbacks:r.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var qa=!1;function Ja(){if(qa){var e=pa;if(e!==null)throw e}}function Ya(e,t,n,r){qa=!1;var i=e.updateQueue;Ba=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var c=s,l=c.next;c.next=null,o===null?a=l:o.next=l,o=c;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==o&&(s===null?u.firstBaseUpdate=l:s.next=l,u.lastBaseUpdate=c))}if(a!==null){var d=i.baseState;o=0,u=l=c=null,s=a;do{var f=s.lane&-536870913,m=f!==s.lane;if(m?(q&f)===f:(r&f)===f){f!==0&&f===fa&&(qa=!0),u!==null&&(u=u.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});a:{var h=e,g=s;f=t;var _=n;switch(g.tag){case 1:if(h=g.payload,typeof h==`function`){d=h.call(_,d,f);break a}d=h;break a;case 3:h.flags=h.flags&-65537|128;case 0:if(h=g.payload,f=typeof h==`function`?h.call(_,d,f):h,f==null)break a;d=p({},d,f);break a;case 2:Ba=!0}}f=s.callback,f!==null&&(e.flags|=64,m&&(e.flags|=8192),m=i.callbacks,m===null?i.callbacks=[f]:m.push(f))}else m={lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(l=u=m,c=d):u=u.next=m,o|=f;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;m=s,s=m.next,m.next=null,i.lastBaseUpdate=m,i.shared.pending=null}}while(1);u===null&&(c=d),i.baseState=c,i.firstBaseUpdate=l,i.lastBaseUpdate=u,a===null&&(i.shared.lanes=0),Jl|=o,e.lanes=o,e.memoizedState=d}}function Xa(e,t){if(typeof e!=`function`)throw Error(i(191,e));e.call(t)}function Za(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)Xa(n[e],t)}var Qa=ae(null),$a=ae(0);function eo(e,t){e=ql,L($a,e),L(Qa,t),ql=e|t.baseLanes}function to(){L($a,ql),L(Qa,Qa.current)}function no(){ql=$a.current,I(Qa),I($a)}var ro=ae(null),io=null;function ao(e){var t=e.alternate;L(uo,uo.current&1),L(ro,e),io===null&&(t===null||Qa.current!==null||t.memoizedState!==null)&&(io=e)}function oo(e){L(uo,uo.current),L(ro,e),io===null&&(io=e)}function so(e){e.tag===22?(L(uo,uo.current),L(ro,e),io===null&&(io=e)):co(e)}function co(){L(uo,uo.current),L(ro,ro.current)}function lo(e){I(ro),io===e&&(io=null),I(uo)}var uo=ae(0);function fo(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||lf(n)||uf(n)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder===`forwards`||t.memoizedProps.revealOrder===`backwards`||t.memoizedProps.revealOrder===`unstable_legacy-backwards`||t.memoizedProps.revealOrder===`together`)){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var po=0,V=null,mo=null,ho=null,go=!1,_o=!1,vo=!1,yo=0,bo=0,xo=null,So=0;function Co(){throw Error(i(321))}function wo(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Sr(e[n],t[n]))return!1;return!0}function To(e,t,n,r,i,a){return po=a,V=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,P.H=e===null||e.memoizedState===null?Bs:Vs,vo=!1,a=n(r,i),vo=!1,_o&&(a=Do(t,n,r,i)),Eo(e),a}function Eo(e){P.H=zs;var t=mo!==null&&mo.next!==null;if(po=0,ho=mo=V=null,go=!1,bo=0,xo=null,t)throw Error(i(300));e===null||ic||(e=e.dependencies,e!==null&&$i(e)&&(ic=!0))}function Do(e,t,n,r){V=e;var a=0;do{if(_o&&(xo=null),bo=0,_o=!1,25<=a)throw Error(i(301));if(a+=1,ho=mo=null,e.updateQueue!=null){var o=e.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,o.memoCache!=null&&(o.memoCache.index=0)}P.H=Hs,o=t(n,r)}while(_o);return o}function Oo(){var e=P.H,t=e.useState()[0];return t=typeof t.then==`function`?Fo(t):t,e=e.useState()[0],(mo===null?null:mo.memoizedState)!==e&&(V.flags|=1024),t}function ko(){var e=yo!==0;return yo=0,e}function Ao(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function jo(e){if(go){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}go=!1}po=0,ho=mo=V=null,_o=!1,bo=yo=0,xo=null}function Mo(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ho===null?V.memoizedState=ho=e:ho=ho.next=e,ho}function No(){if(mo===null){var e=V.alternate;e=e===null?null:e.memoizedState}else e=mo.next;var t=ho===null?V.memoizedState:ho.next;if(t!==null)ho=t,mo=e;else{if(e===null)throw V.alternate===null?Error(i(467)):Error(i(310));mo=e,e={memoizedState:mo.memoizedState,baseState:mo.baseState,baseQueue:mo.baseQueue,queue:mo.queue,next:null},ho===null?V.memoizedState=ho=e:ho=ho.next=e}return ho}function Po(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Fo(e){var t=bo;return bo+=1,xo===null&&(xo=[]),e=Da(xo,e,t),t=V,(ho===null?t.memoizedState:ho.next)===null&&(t=t.alternate,P.H=t===null||t.memoizedState===null?Bs:Vs),e}function H(e){if(typeof e==`object`&&e){if(typeof e.then==`function`)return Fo(e);if(e.$$typeof===x)return ta(e)}throw Error(i(438,String(e)))}function U(e){var t=null,n=V.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var r=V.alternate;r!==null&&(r=r.updateQueue,r!==null&&(r=r.memoCache,r!=null&&(t={data:r.data.map(function(e){return e.slice()}),index:0})))}if(t??={data:[],index:0},n===null&&(n=Po(),V.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),r=0;r<e;r++)n[r]=A;return t.index++,n}function Io(e,t){return typeof t==`function`?t(e):t}function Lo(e){return Ro(No(),mo,e)}function Ro(e,t,n){var r=e.queue;if(r===null)throw Error(i(311));r.lastRenderedReducer=n;var a=e.baseQueue,o=r.pending;if(o!==null){if(a!==null){var s=a.next;a.next=o.next,o.next=s}t.baseQueue=a=o,r.pending=null}if(o=e.baseState,a===null)e.memoizedState=o;else{t=a.next;var c=s=null,l=null,u=t,d=!1;do{var f=u.lane&-536870913;if(f===u.lane?(po&f)===f:(q&f)===f){var p=u.revertLane;if(p===0)l!==null&&(l=l.next={lane:0,revertLane:0,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),f===fa&&(d=!0);else if((po&p)===p){u=u.next,p===fa&&(d=!0);continue}else f={lane:0,revertLane:u.revertLane,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=f,s=o):l=l.next=f,V.lanes|=p,Jl|=p;f=u.action,vo&&n(o,f),o=u.hasEagerState?u.eagerState:n(o,f)}else p={lane:f,revertLane:u.revertLane,gesture:u.gesture,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=p,s=o):l=l.next=p,V.lanes|=f,Jl|=f;u=u.next}while(u!==null&&u!==t);if(l===null?s=o:l.next=c,!Sr(o,e.memoizedState)&&(ic=!0,d&&(n=pa,n!==null)))throw n;e.memoizedState=o,e.baseState=s,e.baseQueue=l,r.lastRenderedState=o}return a===null&&(r.lanes=0),[e.memoizedState,r.dispatch]}function zo(e){var t=No(),n=t.queue;if(n===null)throw Error(i(311));n.lastRenderedReducer=e;var r=n.dispatch,a=n.pending,o=t.memoizedState;if(a!==null){n.pending=null;var s=a=a.next;do o=e(o,s.action),s=s.next;while(s!==a);Sr(o,t.memoizedState)||(ic=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function Bo(e,t,n){var r=V,a=No(),o=B;if(o){if(n===void 0)throw Error(i(407));n=n()}else n=t();var s=!Sr((mo||a).memoizedState,n);if(s&&(a.memoizedState=n,ic=!0),a=a.queue,ds(Uo.bind(null,r,a,e),[e]),a.getSnapshot!==t||s||ho!==null&&ho.memoizedState.tag&1){if(r.flags|=2048,os(9,{destroy:void 0},Ho.bind(null,r,a,n,t),null),Vl===null)throw Error(i(349));o||po&127||Vo(r,t,n)}return n}function Vo(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=V.updateQueue,t===null?(t=Po(),V.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Ho(e,t,n,r){t.value=n,t.getSnapshot=r,Wo(t)&&Go(e)}function Uo(e,t,n){return n(function(){Wo(t)&&Go(e)})}function Wo(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Sr(e,n)}catch{return!0}}function Go(e){var t=ri(e,2);t!==null&&_u(t,e,2)}function Ko(e){var t=Mo();if(typeof e==`function`){var n=e;if(e=n(),vo){Re(!0);try{n()}finally{Re(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Io,lastRenderedState:e},t}function qo(e,t,n,r){return e.baseState=n,Ro(e,mo,typeof r==`function`?r:Io)}function Jo(e,t,n,r,a){if(Is(e))throw Error(i(485));if(e=t.action,e!==null){var o={payload:a,action:e,next:null,isTransition:!0,status:`pending`,value:null,reason:null,listeners:[],then:function(e){o.listeners.push(e)}};P.T===null?o.isTransition=!1:n(!0),r(o),n=t.pending,n===null?(o.next=t.pending=o,Yo(t,o)):(o.next=n.next,t.pending=n.next=o)}}function Yo(e,t){var n=t.action,r=t.payload,i=e.state;if(t.isTransition){var a=P.T,o={};P.T=o;try{var s=n(i,r),c=P.S;c!==null&&c(o,s),Xo(e,t,s)}catch(n){Qo(e,t,n)}finally{a!==null&&o.types!==null&&(a.types=o.types),P.T=a}}else try{a=n(i,r),Xo(e,t,a)}catch(n){Qo(e,t,n)}}function Xo(e,t,n){typeof n==`object`&&n&&typeof n.then==`function`?n.then(function(n){Zo(e,t,n)},function(n){return Qo(e,t,n)}):Zo(e,t,n)}function Zo(e,t,n){t.status=`fulfilled`,t.value=n,$o(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,Yo(e,n)))}function Qo(e,t,n){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status=`rejected`,t.reason=n,$o(t),t=t.next;while(t!==r)}e.action=null}function $o(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function es(e,t){return t}function ts(e,t){if(B){var n=Vl.formState;if(n!==null){a:{var r=V;if(B){if(Pi){b:{for(var i=Pi,a=Ii;i.nodeType!==8;){if(!a){i=null;break b}if(i=ff(i.nextSibling),i===null){i=null;break b}}a=i.data,i=a===`F!`||a===`F`?i:null}if(i){Pi=ff(i.nextSibling),r=i.data===`F!`;break a}}Ri(r)}r=!1}r&&(t=n[0])}}return n=Mo(),n.memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:es,lastRenderedState:t},n.queue=r,n=Ns.bind(null,V,r),r.dispatch=n,r=Ko(!1),a=Fs.bind(null,V,!1,r.queue),r=Mo(),i={state:t,dispatch:null,action:e,pending:null},r.queue=i,n=Jo.bind(null,V,i,a,n),i.dispatch=n,r.memoizedState=e,[t,n,!1]}function ns(e){return rs(No(),mo,e)}function rs(e,t,n){if(t=Ro(e,t,es)[0],e=Lo(Io)[0],typeof t==`object`&&t&&typeof t.then==`function`)try{var r=Fo(t)}catch(e){throw e===Sa?wa:e}else r=t;t=No();var i=t.queue,a=i.dispatch;return n!==t.memoizedState&&(V.flags|=2048,os(9,{destroy:void 0},is.bind(null,i,n),null)),[r,a,e]}function is(e,t){e.action=t}function as(e){var t=No(),n=mo;if(n!==null)return rs(t,n,e);No(),t=t.memoizedState,n=No();var r=n.queue.dispatch;return n.memoizedState=e,[t,r,!1]}function os(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},t=V.updateQueue,t===null&&(t=Po(),V.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function ss(){return No().memoizedState}function cs(e,t,n,r){var i=Mo();V.flags|=e,i.memoizedState=os(1|t,{destroy:void 0},n,r===void 0?null:r)}function ls(e,t,n,r){var i=No();r=r===void 0?null:r;var a=i.memoizedState.inst;mo!==null&&r!==null&&wo(r,mo.memoizedState.deps)?i.memoizedState=os(t,a,n,r):(V.flags|=e,i.memoizedState=os(1|t,a,n,r))}function us(e,t){cs(8390656,8,e,t)}function ds(e,t){ls(2048,8,e,t)}function fs(e){V.flags|=4;var t=V.updateQueue;if(t===null)t=Po(),V.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function ps(e){var t=No().memoizedState;return fs({ref:t,nextImpl:e}),function(){if(Bl&2)throw Error(i(440));return t.impl.apply(void 0,arguments)}}function ms(e,t){return ls(4,2,e,t)}function hs(e,t){return ls(4,4,e,t)}function gs(e,t){if(typeof t==`function`){e=e();var n=t(e);return function(){typeof n==`function`?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function _s(e,t,n){n=n==null?null:n.concat([e]),ls(4,4,gs.bind(null,t,e),n)}function vs(){}function ys(e,t){var n=No();t=t===void 0?null:t;var r=n.memoizedState;return t!==null&&wo(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function bs(e,t){var n=No();t=t===void 0?null:t;var r=n.memoizedState;if(t!==null&&wo(t,r[1]))return r[0];if(r=e(),vo){Re(!0);try{e()}finally{Re(!1)}}return n.memoizedState=[r,t],r}function xs(e,t,n){return n===void 0||po&1073741824&&!(q&261930)?e.memoizedState=t:(e.memoizedState=n,e=gu(),V.lanes|=e,Jl|=e,n)}function Ss(e,t,n,r){return Sr(n,t)?n:Qa.current===null?!(po&42)||po&1073741824&&!(q&261930)?(ic=!0,e.memoizedState=n):(e=gu(),V.lanes|=e,Jl|=e,t):(e=xs(e,n,r),Sr(e,t)||(ic=!0),e)}function Cs(e,t,n,r,i){var a=F.p;F.p=a!==0&&8>a?a:8;var o=P.T,s={};P.T=s,Fs(e,!1,t,n);try{var c=i(),l=P.S;l!==null&&l(s,c),typeof c==`object`&&c&&typeof c.then==`function`?Ps(e,t,ga(c,r),hu(e)):Ps(e,t,r,hu(e))}catch(n){Ps(e,t,{then:function(){},status:`rejected`,reason:n},hu())}finally{F.p=a,o!==null&&s.types!==null&&(o.types=s.types),P.T=o}}function ws(){}function Ts(e,t,n,r){if(e.tag!==5)throw Error(i(476));var a=Es(e).queue;Cs(e,a,t,ne,n===null?ws:function(){return Ds(e),n(r)})}function Es(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ne,baseState:ne,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Io,lastRenderedState:ne},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Io,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Ds(e){var t=Es(e);t.next===null&&(t=e.alternate.memoizedState),Ps(e,t.next.queue,{},hu())}function Os(){return ta(np)}function ks(){return No().memoizedState}function As(){return No().memoizedState}function js(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=hu();e=Ua(n);var r=Wa(t,e,n);r!==null&&(_u(r,t,n),Ga(r,t,n)),t={cache:ca()},e.payload=t;return}t=t.return}}function Ms(e,t,n){var r=hu();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Is(e)?Ls(t,n):(n=ni(e,t,n,r),n!==null&&(_u(n,e,r),Rs(n,t,r)))}function Ns(e,t,n){Ps(e,t,n,hu())}function Ps(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Is(e))Ls(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,Sr(s,o))return ti(e,t,i,0),Vl===null&&ei(),!1}catch{}if(n=ni(e,t,i,r),n!==null)return _u(n,e,r),Rs(n,t,r),!0}return!1}function Fs(e,t,n,r){if(r={lane:2,revertLane:md(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},Is(e)){if(t)throw Error(i(479))}else t=ni(e,n,r,2),t!==null&&_u(t,e,2)}function Is(e){var t=e.alternate;return e===V||t!==null&&t===V}function Ls(e,t){_o=go=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Rs(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,tt(e,n)}}var zs={readContext:ta,use:H,useCallback:Co,useContext:Co,useEffect:Co,useImperativeHandle:Co,useLayoutEffect:Co,useInsertionEffect:Co,useMemo:Co,useReducer:Co,useRef:Co,useState:Co,useDebugValue:Co,useDeferredValue:Co,useTransition:Co,useSyncExternalStore:Co,useId:Co,useHostTransitionStatus:Co,useFormState:Co,useActionState:Co,useOptimistic:Co,useMemoCache:Co,useCacheRefresh:Co};zs.useEffectEvent=Co;var Bs={readContext:ta,use:H,useCallback:function(e,t){return Mo().memoizedState=[e,t===void 0?null:t],e},useContext:ta,useEffect:us,useImperativeHandle:function(e,t,n){n=n==null?null:n.concat([e]),cs(4194308,4,gs.bind(null,t,e),n)},useLayoutEffect:function(e,t){return cs(4194308,4,e,t)},useInsertionEffect:function(e,t){cs(4,2,e,t)},useMemo:function(e,t){var n=Mo();t=t===void 0?null:t;var r=e();if(vo){Re(!0);try{e()}finally{Re(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=Mo();if(n!==void 0){var i=n(t);if(vo){Re(!0);try{n(t)}finally{Re(!1)}}}else i=t;return r.memoizedState=r.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},r.queue=e,e=e.dispatch=Ms.bind(null,V,e),[r.memoizedState,e]},useRef:function(e){var t=Mo();return e={current:e},t.memoizedState=e},useState:function(e){e=Ko(e);var t=e.queue,n=Ns.bind(null,V,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:vs,useDeferredValue:function(e,t){return xs(Mo(),e,t)},useTransition:function(){var e=Ko(!1);return e=Cs.bind(null,V,e.queue,!0,!1),Mo().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=V,a=Mo();if(B){if(n===void 0)throw Error(i(407));n=n()}else{if(n=t(),Vl===null)throw Error(i(349));q&127||Vo(r,t,n)}a.memoizedState=n;var o={value:n,getSnapshot:t};return a.queue=o,us(Uo.bind(null,r,o,e),[e]),r.flags|=2048,os(9,{destroy:void 0},Ho.bind(null,r,o,n,t),null),n},useId:function(){var e=Mo(),t=Vl.identifierPrefix;if(B){var n=Di,r=Ei;n=(r&~(1<<32-ze(r)-1)).toString(32)+n,t=`_`+t+`R_`+n,n=yo++,0<n&&(t+=`H`+n.toString(32)),t+=`_`}else n=So++,t=`_`+t+`r_`+n.toString(32)+`_`;return e.memoizedState=t},useHostTransitionStatus:Os,useFormState:ts,useActionState:ts,useOptimistic:function(e){var t=Mo();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=Fs.bind(null,V,!0,n),n.dispatch=t,[e,t]},useMemoCache:U,useCacheRefresh:function(){return Mo().memoizedState=js.bind(null,V)},useEffectEvent:function(e){var t=Mo(),n={impl:e};return t.memoizedState=n,function(){if(Bl&2)throw Error(i(440));return n.impl.apply(void 0,arguments)}}},Vs={readContext:ta,use:H,useCallback:ys,useContext:ta,useEffect:ds,useImperativeHandle:_s,useInsertionEffect:ms,useLayoutEffect:hs,useMemo:bs,useReducer:Lo,useRef:ss,useState:function(){return Lo(Io)},useDebugValue:vs,useDeferredValue:function(e,t){return Ss(No(),mo.memoizedState,e,t)},useTransition:function(){var e=Lo(Io)[0],t=No().memoizedState;return[typeof e==`boolean`?e:Fo(e),t]},useSyncExternalStore:Bo,useId:ks,useHostTransitionStatus:Os,useFormState:ns,useActionState:ns,useOptimistic:function(e,t){return qo(No(),mo,e,t)},useMemoCache:U,useCacheRefresh:As};Vs.useEffectEvent=ps;var Hs={readContext:ta,use:H,useCallback:ys,useContext:ta,useEffect:ds,useImperativeHandle:_s,useInsertionEffect:ms,useLayoutEffect:hs,useMemo:bs,useReducer:zo,useRef:ss,useState:function(){return zo(Io)},useDebugValue:vs,useDeferredValue:function(e,t){var n=No();return mo===null?xs(n,e,t):Ss(n,mo.memoizedState,e,t)},useTransition:function(){var e=zo(Io)[0],t=No().memoizedState;return[typeof e==`boolean`?e:Fo(e),t]},useSyncExternalStore:Bo,useId:ks,useHostTransitionStatus:Os,useFormState:as,useActionState:as,useOptimistic:function(e,t){var n=No();return mo===null?(n.baseState=e,[e,n.queue.dispatch]):qo(n,mo,e,t)},useMemoCache:U,useCacheRefresh:As};Hs.useEffectEvent=ps;function Us(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:p({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Ws={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=hu(),i=Ua(r);i.payload=t,n!=null&&(i.callback=n),t=Wa(e,i,r),t!==null&&(_u(t,e,r),Ga(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=hu(),i=Ua(r);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=Wa(e,i,r),t!==null&&(_u(t,e,r),Ga(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=hu(),r=Ua(n);r.tag=2,t!=null&&(r.callback=t),t=Wa(e,r,n),t!==null&&(_u(t,e,n),Ga(t,e,n))}};function Gs(e,t,n,r,i,a,o){return e=e.stateNode,typeof e.shouldComponentUpdate==`function`?e.shouldComponentUpdate(r,a,o):t.prototype&&t.prototype.isPureReactComponent?!Cr(n,r)||!Cr(i,a):!0}function Ks(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps==`function`&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps==`function`&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Ws.enqueueReplaceState(t,t.state,null)}function qs(e,t){var n=t;if(`ref`in t)for(var r in n={},t)r!==`ref`&&(n[r]=t[r]);if(e=e.defaultProps)for(var i in n===t&&(n=p({},n)),e)n[i]===void 0&&(n[i]=e[i]);return n}function Js(e){Xr(e)}function Ys(e){console.error(e)}function Xs(e){Xr(e)}function Zs(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(e){setTimeout(function(){throw e})}}function Qs(e,t,n){try{var r=e.onCaughtError;r(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(e){setTimeout(function(){throw e})}}function $s(e,t,n){return n=Ua(n),n.tag=3,n.payload={element:null},n.callback=function(){Zs(e,t)},n}function ec(e){return e=Ua(e),e.tag=3,e}function tc(e,t,n,r){var i=n.type.getDerivedStateFromError;if(typeof i==`function`){var a=r.value;e.payload=function(){return i(a)},e.callback=function(){Qs(t,n,r)}}var o=n.stateNode;o!==null&&typeof o.componentDidCatch==`function`&&(e.callback=function(){Qs(t,n,r),typeof i!=`function`&&(Y===null?Y=new Set([this]):Y.add(this));var e=r.stack;this.componentDidCatch(r.value,{componentStack:e===null?``:e})})}function nc(e,t,n,r,a){if(n.flags|=32768,typeof r==`object`&&r&&typeof r.then==`function`){if(t=n.alternate,t!==null&&Qi(t,n,a,!0),n=ro.current,n!==null){switch(n.tag){case 31:case 13:return io===null?ku():n.alternate===null&&J===0&&(J=3),n.flags&=-257,n.flags|=65536,n.lanes=a,r===Ta?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([r]):t.add(r),Ju(e,r,a)),!1;case 22:return n.flags|=65536,r===Ta?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([r])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([r]):n.add(r)),Ju(e,r,a)),!1}throw Error(i(435,n.tag))}return Ju(e,r,a),ku(),!1}if(B)return t=ro.current,t===null?(r!==Li&&(t=Error(i(423),{cause:r}),Wi(vi(t,n))),e=e.current.alternate,e.flags|=65536,a&=-a,e.lanes|=a,r=vi(r,n),a=$s(e.stateNode,r,a),Ka(e,a),J!==4&&(J=2)):(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=a,r!==Li&&(e=Error(i(422),{cause:r}),Wi(vi(e,n)))),!1;var o=Error(i(520),{cause:r});if(o=vi(o,n),$l===null?$l=[o]:$l.push(o),J!==4&&(J=2),t===null)return!0;r=vi(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=a&-a,n.lanes|=e,e=$s(n.stateNode,r,e),Ka(n,e),!1;case 1:if(t=n.type,o=n.stateNode,!(n.flags&128)&&(typeof t.getDerivedStateFromError==`function`||o!==null&&typeof o.componentDidCatch==`function`&&(Y===null||!Y.has(o))))return n.flags|=65536,a&=-a,n.lanes|=a,a=ec(a),tc(a,e,n,r),Ka(n,a),!1}n=n.return}while(n!==null);return!1}var rc=Error(i(461)),ic=!1;function ac(e,t,n,r){t.child=e===null?za(t,null,n,r):Ra(t,e.child,n,r)}function oc(e,t,n,r,i){n=n.render;var a=t.ref;if(`ref`in r){var o={};for(var s in r)s!==`ref`&&(o[s]=r[s])}else o=r;return ea(t),r=To(e,t,n,o,a,i),s=ko(),e!==null&&!ic?(Ao(e,t,i),kc(e,t,i)):(B&&s&&Ai(t),t.flags|=1,ac(e,t,r,i),t.child)}function sc(e,t,n,r,i){if(e===null){var a=n.type;return typeof a==`function`&&!li(a)&&a.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=a,cc(e,t,a,r,i)):(e=fi(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!Ac(e,i)){var o=a.memoizedProps;if(n=n.compare,n=n===null?Cr:n,n(o,r)&&e.ref===t.ref)return kc(e,t,i)}return t.flags|=1,e=ui(a,r),e.ref=t.ref,e.return=t,t.child=e}function cc(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(Cr(a,r)&&e.ref===t.ref)if(ic=!1,t.pendingProps=r=a,Ac(e,i))e.flags&131072&&(ic=!0);else return t.lanes=e.lanes,kc(e,t,i)}return gc(e,t,n,r,i)}function lc(e,t,n,r){var i=r.children,a=e===null?null:e.memoizedState;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.mode===`hidden`){if(t.flags&128){if(a=a===null?n:a.baseLanes|n,e!==null){for(r=t.child=e.child,i=0;r!==null;)i=i|r.lanes|r.childLanes,r=r.sibling;r=i&~a}else r=0,t.child=null;return dc(e,t,a,n,r)}if(n&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&ba(t,a===null?null:a.cachePool),a===null?to():eo(t,a),so(t);else return r=t.lanes=536870912,dc(e,t,a===null?n:a.baseLanes|n,n,r)}else a===null?(e!==null&&ba(t,null),to(),co(t)):(ba(t,a.cachePool),eo(t,a),co(t),t.memoizedState=null);return ac(e,t,i,n),t.child}function uc(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function dc(e,t,n,r,i){var a=ya();return a=a===null?null:{parent:sa._currentValue,pool:a},t.memoizedState={baseLanes:n,cachePool:a},e!==null&&ba(t,null),to(),so(t),e!==null&&Qi(e,t,r,!0),t.childLanes=i,null}function fc(e,t){return t=Tc({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function pc(e,t,n){return Ra(t,e.child,null,n),e=fc(t,t.pendingProps),e.flags|=2,lo(t),t.memoizedState=null,e}function mc(e,t,n){var r=t.pendingProps,a=(t.flags&128)!=0;if(t.flags&=-129,e===null){if(B){if(r.mode===`hidden`)return e=fc(t,r),t.lanes=536870912,uc(null,e);if(oo(t),(e=Pi)?(e=cf(e,Ii),e=e!==null&&e.data===`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ti===null?null:{id:Ei,overflow:Di},retryLane:536870912,hydrationErrors:null},n=hi(e),n.return=t,t.child=n,Ni=t,Pi=null)):e=null,e===null)throw Ri(t);return t.lanes=536870912,null}return fc(t,r)}var o=e.memoizedState;if(o!==null){var s=o.dehydrated;if(oo(t),a)if(t.flags&256)t.flags&=-257,t=pc(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(i(558));else if(ic||Qi(e,t,n,!1),a=(n&e.childLanes)!==0,ic||a){if(r=Vl,r!==null&&(s=nt(r,n),s!==0&&s!==o.retryLane))throw o.retryLane=s,ri(e,s),_u(r,e,s),rc;ku(),t=pc(e,t,n)}else e=o.treeContext,Pi=ff(s.nextSibling),Ni=t,B=!0,Fi=null,Ii=!1,e!==null&&Mi(t,e),t=fc(t,r),t.flags|=4096;return t}return e=ui(e.child,{mode:r.mode,children:r.children}),e.ref=t.ref,t.child=e,e.return=t,e}function hc(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!=`function`&&typeof n!=`object`)throw Error(i(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function gc(e,t,n,r,i){return ea(t),n=To(e,t,n,r,void 0,i),r=ko(),e!==null&&!ic?(Ao(e,t,i),kc(e,t,i)):(B&&r&&Ai(t),t.flags|=1,ac(e,t,n,i),t.child)}function _c(e,t,n,r,i,a){return ea(t),t.updateQueue=null,n=Do(t,r,n,i),Eo(e),r=ko(),e!==null&&!ic?(Ao(e,t,a),kc(e,t,a)):(B&&r&&Ai(t),t.flags|=1,ac(e,t,n,a),t.child)}function vc(e,t,n,r,i){if(ea(t),t.stateNode===null){var a=oi,o=n.contextType;typeof o==`object`&&o&&(a=ta(o)),a=new n(r,a),t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,a.updater=Ws,t.stateNode=a,a._reactInternals=t,a=t.stateNode,a.props=r,a.state=t.memoizedState,a.refs={},Va(t),o=n.contextType,a.context=typeof o==`object`&&o?ta(o):oi,a.state=t.memoizedState,o=n.getDerivedStateFromProps,typeof o==`function`&&(Us(t,n,o,r),a.state=t.memoizedState),typeof n.getDerivedStateFromProps==`function`||typeof a.getSnapshotBeforeUpdate==`function`||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(o=a.state,typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount(),o!==a.state&&Ws.enqueueReplaceState(a,a.state,null),Ya(t,r,a,i),Ja(),a.state=t.memoizedState),typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!0}else if(e===null){a=t.stateNode;var s=t.memoizedProps,c=qs(n,s);a.props=c;var l=a.context,u=n.contextType;o=oi,typeof u==`object`&&u&&(o=ta(u));var d=n.getDerivedStateFromProps;u=typeof d==`function`||typeof a.getSnapshotBeforeUpdate==`function`,s=t.pendingProps!==s,u||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(s||l!==o)&&Ks(t,a,r,o),Ba=!1;var f=t.memoizedState;a.state=f,Ya(t,r,a,i),Ja(),l=t.memoizedState,s||f!==l||Ba?(typeof d==`function`&&(Us(t,n,d,r),l=t.memoizedState),(c=Ba||Gs(t,n,c,r,f,l,o))?(u||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount==`function`&&(t.flags|=4194308)):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=o,r=c):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,Ha(e,t),o=t.memoizedProps,u=qs(n,o),a.props=u,d=t.pendingProps,f=a.context,l=n.contextType,c=oi,typeof l==`object`&&l&&(c=ta(l)),s=n.getDerivedStateFromProps,(l=typeof s==`function`||typeof a.getSnapshotBeforeUpdate==`function`)||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(o!==d||f!==c)&&Ks(t,a,r,c),Ba=!1,f=t.memoizedState,a.state=f,Ya(t,r,a,i),Ja();var p=t.memoizedState;o!==d||f!==p||Ba||e!==null&&e.dependencies!==null&&$i(e.dependencies)?(typeof s==`function`&&(Us(t,n,s,r),p=t.memoizedState),(u=Ba||Gs(t,n,u,r,f,p,c)||e!==null&&e.dependencies!==null&&$i(e.dependencies))?(l||typeof a.UNSAFE_componentWillUpdate!=`function`&&typeof a.componentWillUpdate!=`function`||(typeof a.componentWillUpdate==`function`&&a.componentWillUpdate(r,p,c),typeof a.UNSAFE_componentWillUpdate==`function`&&a.UNSAFE_componentWillUpdate(r,p,c)),typeof a.componentDidUpdate==`function`&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate==`function`&&(t.flags|=1024)):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),a.props=r,a.state=p,a.context=c,r=u):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return a=r,hc(e,t),r=(t.flags&128)!=0,a||r?(a=t.stateNode,n=r&&typeof n.getDerivedStateFromError!=`function`?null:a.render(),t.flags|=1,e!==null&&r?(t.child=Ra(t,e.child,null,i),t.child=Ra(t,null,n,i)):ac(e,t,n,i),t.memoizedState=a.state,e=t.child):e=kc(e,t,i),e}function yc(e,t,n,r){return Hi(),t.flags|=256,ac(e,t,n,r),t.child}var bc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function xc(e){return{baseLanes:e,cachePool:xa()}}function Sc(e,t,n){return e=e===null?0:e.childLanes&~n,t&&(e|=Zl),e}function Cc(e,t,n){var r=t.pendingProps,a=!1,o=(t.flags&128)!=0,s;if((s=o)||(s=e!==null&&e.memoizedState===null?!1:(uo.current&2)!=0),s&&(a=!0,t.flags&=-129),s=(t.flags&32)!=0,t.flags&=-33,e===null){if(B){if(a?ao(t):co(t),(e=Pi)?(e=cf(e,Ii),e=e!==null&&e.data!==`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ti===null?null:{id:Ei,overflow:Di},retryLane:536870912,hydrationErrors:null},n=hi(e),n.return=t,t.child=n,Ni=t,Pi=null)):e=null,e===null)throw Ri(t);return uf(e)?t.lanes=32:t.lanes=536870912,null}var c=r.children;return r=r.fallback,a?(co(t),a=t.mode,c=Tc({mode:`hidden`,children:c},a),r=pi(r,a,n,null),c.return=t,r.return=t,c.sibling=r,t.child=c,r=t.child,r.memoizedState=xc(n),r.childLanes=Sc(e,s,n),t.memoizedState=bc,uc(null,r)):(ao(t),wc(t,c))}var l=e.memoizedState;if(l!==null&&(c=l.dehydrated,c!==null)){if(o)t.flags&256?(ao(t),t.flags&=-257,t=Ec(e,t,n)):t.memoizedState===null?(co(t),c=r.fallback,a=t.mode,r=Tc({mode:`visible`,children:r.children},a),c=pi(c,a,n,null),c.flags|=2,r.return=t,c.return=t,r.sibling=c,t.child=r,Ra(t,e.child,null,n),r=t.child,r.memoizedState=xc(n),r.childLanes=Sc(e,s,n),t.memoizedState=bc,t=uc(null,r)):(co(t),t.child=e.child,t.flags|=128,t=null);else if(ao(t),uf(c)){if(s=c.nextSibling&&c.nextSibling.dataset,s)var u=s.dgst;s=u,r=Error(i(419)),r.stack=``,r.digest=s,Wi({value:r,source:null,stack:null}),t=Ec(e,t,n)}else if(ic||Qi(e,t,n,!1),s=(n&e.childLanes)!==0,ic||s){if(s=Vl,s!==null&&(r=nt(s,n),r!==0&&r!==l.retryLane))throw l.retryLane=r,ri(e,r),_u(s,e,r),rc;lf(c)||ku(),t=Ec(e,t,n)}else lf(c)?(t.flags|=192,t.child=e.child,t=null):(e=l.treeContext,Pi=ff(c.nextSibling),Ni=t,B=!0,Fi=null,Ii=!1,e!==null&&Mi(t,e),t=wc(t,r.children),t.flags|=4096);return t}return a?(co(t),c=r.fallback,a=t.mode,l=e.child,u=l.sibling,r=ui(l,{mode:`hidden`,children:r.children}),r.subtreeFlags=l.subtreeFlags&65011712,u===null?(c=pi(c,a,n,null),c.flags|=2):c=ui(u,c),c.return=t,r.return=t,r.sibling=c,t.child=r,uc(null,r),r=t.child,c=e.child.memoizedState,c===null?c=xc(n):(a=c.cachePool,a===null?a=xa():(l=sa._currentValue,a=a.parent===l?a:{parent:l,pool:l}),c={baseLanes:c.baseLanes|n,cachePool:a}),r.memoizedState=c,r.childLanes=Sc(e,s,n),t.memoizedState=bc,uc(e.child,r)):(ao(t),n=e.child,e=n.sibling,n=ui(n,{mode:`visible`,children:r.children}),n.return=t,n.sibling=null,e!==null&&(s=t.deletions,s===null?(t.deletions=[e],t.flags|=16):s.push(e)),t.child=n,t.memoizedState=null,n)}function wc(e,t){return t=Tc({mode:`visible`,children:t},e.mode),t.return=e,e.child=t}function Tc(e,t){return e=ci(22,e,null,t),e.lanes=0,e}function Ec(e,t,n){return Ra(t,e.child,null,n),e=wc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Dc(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Xi(e.return,t,n)}function Oc(e,t,n,r,i,a){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i,treeForkCount:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i,o.treeForkCount=a)}function W(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;r=r.children;var o=uo.current,s=(o&2)!=0;if(s?(o=o&1|2,t.flags|=128):o&=1,L(uo,o),ac(e,t,r,n),r=B?Si:0,!s&&e!==null&&e.flags&128)a:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Dc(e,n,t);else if(e.tag===19)Dc(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break a;for(;e.sibling===null;){if(e.return===null||e.return===t)break a;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(i){case`forwards`:for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&fo(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Oc(t,!1,i,n,a,r);break;case`backwards`:case`unstable_legacy-backwards`:for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&fo(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Oc(t,!0,n,null,a,r);break;case`together`:Oc(t,!1,null,null,void 0,r);break;default:t.memoizedState=null}return t.child}function kc(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Jl|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(Qi(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(i(153));if(t.child!==null){for(e=t.child,n=ui(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=ui(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Ac(e,t){return(e.lanes&t)===0?(e=e.dependencies,!!(e!==null&&$i(e))):!0}function jc(e,t,n){switch(t.tag){case 3:ue(t,t.stateNode.containerInfo),Ji(t,sa,e.memoizedState.cache),Hi();break;case 27:case 5:fe(t);break;case 4:ue(t,t.stateNode.containerInfo);break;case 10:Ji(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,oo(t),null;break;case 13:var r=t.memoizedState;if(r!==null)return r.dehydrated===null?(n&t.child.childLanes)===0?(ao(t),e=kc(e,t,n),e===null?null:e.sibling):Cc(e,t,n):(ao(t),t.flags|=128,null);ao(t);break;case 19:var i=(e.flags&128)!=0;if(r=(n&t.childLanes)!==0,r||=(Qi(e,t,n,!1),(n&t.childLanes)!==0),i){if(r)return W(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),L(uo,uo.current),r)break;return null;case 22:return t.lanes=0,lc(e,t,n,t.pendingProps);case 24:Ji(t,sa,e.memoizedState.cache)}return kc(e,t,n)}function Mc(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)ic=!0;else{if(!Ac(e,n)&&!(t.flags&128))return ic=!1,jc(e,t,n);ic=!!(e.flags&131072)}else ic=!1,B&&t.flags&1048576&&ki(t,Si,t.index);switch(t.lanes=0,t.tag){case 16:a:{var r=t.pendingProps;if(e=Oa(t.elementType),t.type=e,typeof e==`function`)li(e)?(r=qs(e,r),t.tag=1,t=vc(null,t,e,r,n)):(t.tag=0,t=gc(null,t,e,r,n));else{if(e!=null){var a=e.$$typeof;if(a===S){t.tag=11,t=oc(null,t,e,r,n);break a}else if(a===D){t.tag=14,t=sc(null,t,e,r,n);break a}}throw t=ee(e)||e,Error(i(306,t,``))}}return t;case 0:return gc(e,t,t.type,t.pendingProps,n);case 1:return r=t.type,a=qs(r,t.pendingProps),vc(e,t,r,a,n);case 3:a:{if(ue(t,t.stateNode.containerInfo),e===null)throw Error(i(387));r=t.pendingProps;var o=t.memoizedState;a=o.element,Ha(e,t),Ya(t,r,null,n);var s=t.memoizedState;if(r=s.cache,Ji(t,sa,r),r!==o.cache&&Zi(t,[sa],n,!0),Ja(),r=s.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:s.cache},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){t=yc(e,t,r,n);break a}else if(r!==a){a=vi(Error(i(424)),t),Wi(a),t=yc(e,t,r,n);break a}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName===`HTML`?e.ownerDocument.body:e}for(Pi=ff(e.firstChild),Ni=t,B=!0,Fi=null,Ii=!0,n=za(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(Hi(),r===a){t=kc(e,t,n);break a}ac(e,t,r,n)}t=t.child}return t;case 26:return hc(e,t),e===null?(n=Nf(t.type,null,t.pendingProps,null))?t.memoizedState=n:B||(n=t.type,e=t.pendingProps,r=Wd(ce.current).createElement(n),r[ct]=t,r[lt]=e,Rd(r,n,e),xt(r),t.stateNode=r):t.memoizedState=Nf(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return fe(t),e===null&&B&&(r=t.stateNode=gf(t.type,t.pendingProps,ce.current),Ni=t,Ii=!0,a=Pi,tf(t.type)?(pf=a,Pi=ff(r.firstChild)):Pi=a),ac(e,t,t.pendingProps.children,n),hc(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&B&&((a=r=Pi)&&(r=of(r,t.type,t.pendingProps,Ii),r===null?a=!1:(t.stateNode=r,Ni=t,Pi=ff(r.firstChild),Ii=!1,a=!0)),a||Ri(t)),fe(t),a=t.type,o=t.pendingProps,s=e===null?null:e.memoizedProps,r=o.children,qd(a,o)?r=null:s!==null&&qd(a,s)&&(t.flags|=32),t.memoizedState!==null&&(a=To(e,t,Oo,null,null,n),np._currentValue=a),hc(e,t),ac(e,t,r,n),t.child;case 6:return e===null&&B&&((e=n=Pi)&&(n=sf(n,t.pendingProps,Ii),n===null?e=!1:(t.stateNode=n,Ni=t,Pi=null,e=!0)),e||Ri(t)),null;case 13:return Cc(e,t,n);case 4:return ue(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Ra(t,null,r,n):ac(e,t,r,n),t.child;case 11:return oc(e,t,t.type,t.pendingProps,n);case 7:return ac(e,t,t.pendingProps,n),t.child;case 8:return ac(e,t,t.pendingProps.children,n),t.child;case 12:return ac(e,t,t.pendingProps.children,n),t.child;case 10:return r=t.pendingProps,Ji(t,t.type,r.value),ac(e,t,r.children,n),t.child;case 9:return a=t.type._context,r=t.pendingProps.children,ea(t),a=ta(a),r=r(a),t.flags|=1,ac(e,t,r,n),t.child;case 14:return sc(e,t,t.type,t.pendingProps,n);case 15:return cc(e,t,t.type,t.pendingProps,n);case 19:return W(e,t,n);case 31:return mc(e,t,n);case 22:return lc(e,t,n,t.pendingProps);case 24:return ea(t),r=ta(sa),e===null?(a=ya(),a===null&&(a=Vl,o=ca(),a.pooledCache=o,o.refCount++,o!==null&&(a.pooledCacheLanes|=n),a=o),t.memoizedState={parent:r,cache:a},Va(t),Ji(t,sa,a)):((e.lanes&n)!==0&&(Ha(e,t),Ya(t,null,null,n),Ja()),a=e.memoizedState,o=t.memoizedState,a.parent===r?(r=o.cache,Ji(t,sa,r),r!==a.cache&&Zi(t,[sa],n,!0)):(a={parent:r,cache:r},t.memoizedState=a,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=a),Ji(t,sa,r))),ac(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(i(156,t.tag))}function Nc(e){e.flags|=4}function Pc(e,t,n,r,i){if((t=(e.mode&32)!=0)&&(t=!1),t){if(e.flags|=16777216,(i&335544128)===i)if(e.stateNode.complete)e.flags|=8192;else if(Eu())e.flags|=8192;else throw ka=Ta,Ca}else e.flags&=-16777217}function Fc(e,t){if(t.type!==`stylesheet`||t.state.loading&4)e.flags&=-16777217;else if(e.flags|=16777216,!Jf(t))if(Eu())e.flags|=8192;else throw ka=Ta,Ca}function Ic(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag===22?536870912:Xe(),e.lanes|=t,Ql|=t)}function Lc(e,t){if(!B)switch(e.tailMode){case`hidden`:t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case`collapsed`:n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Rc(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&65011712,r|=i.flags&65011712,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function zc(e,t,n){var r=t.pendingProps;switch(ji(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Rc(t),null;case 1:return Rc(t),null;case 3:return n=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),Yi(sa),de(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Vi(t)?Nc(t):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Ui())),Rc(t),null;case 26:var a=t.type,o=t.memoizedState;return e===null?(Nc(t),o===null?(Rc(t),Pc(t,a,null,r,n)):(Rc(t),Fc(t,o))):o?o===e.memoizedState?(Rc(t),t.flags&=-16777217):(Nc(t),Rc(t),Fc(t,o)):(e=e.memoizedProps,e!==r&&Nc(t),Rc(t),Pc(t,a,e,r,n)),null;case 27:if(pe(t),n=ce.current,a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&Nc(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return Rc(t),null}e=oe.current,Vi(t)?zi(t,e):(e=gf(a,r,n),t.stateNode=e,Nc(t))}return Rc(t),null;case 5:if(pe(t),a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&Nc(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return Rc(t),null}if(o=oe.current,Vi(t))zi(t,o);else{var s=Wd(ce.current);switch(o){case 1:o=s.createElementNS(`http://www.w3.org/2000/svg`,a);break;case 2:o=s.createElementNS(`http://www.w3.org/1998/Math/MathML`,a);break;default:switch(a){case`svg`:o=s.createElementNS(`http://www.w3.org/2000/svg`,a);break;case`math`:o=s.createElementNS(`http://www.w3.org/1998/Math/MathML`,a);break;case`script`:o=s.createElement(`div`),o.innerHTML=`<script><\/script>`,o=o.removeChild(o.firstChild);break;case`select`:o=typeof r.is==`string`?s.createElement(`select`,{is:r.is}):s.createElement(`select`),r.multiple?o.multiple=!0:r.size&&(o.size=r.size);break;default:o=typeof r.is==`string`?s.createElement(a,{is:r.is}):s.createElement(a)}}o[ct]=t,o[lt]=r;a:for(s=t.child;s!==null;){if(s.tag===5||s.tag===6)o.appendChild(s.stateNode);else if(s.tag!==4&&s.tag!==27&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===t)break a;for(;s.sibling===null;){if(s.return===null||s.return===t)break a;s=s.return}s.sibling.return=s.return,s=s.sibling}t.stateNode=o;a:switch(Rd(o,a,r),a){case`button`:case`input`:case`select`:case`textarea`:r=!!r.autoFocus;break a;case`img`:r=!0;break a;default:r=!1}r&&Nc(t)}}return Rc(t),Pc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&Nc(t);else{if(typeof r!=`string`&&t.stateNode===null)throw Error(i(166));if(e=ce.current,Vi(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,a=Ni,a!==null)switch(a.tag){case 27:case 5:r=a.memoizedProps}e[ct]=t,e=!!(e.nodeValue===n||r!==null&&!0===r.suppressHydrationWarning||Fd(e.nodeValue,n)),e||Ri(t,!0)}else e=Wd(e).createTextNode(r),e[ct]=t,t.stateNode=e}return Rc(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=Vi(t),n!==null){if(e===null){if(!r)throw Error(i(318));if(e=t.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(557));e[ct]=t}else Hi(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Rc(t),e=!1}else n=Ui(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(lo(t),t):(lo(t),null);if(t.flags&128)throw Error(i(558))}return Rc(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(a=Vi(t),r!==null&&r.dehydrated!==null){if(e===null){if(!a)throw Error(i(318));if(a=t.memoizedState,a=a===null?null:a.dehydrated,!a)throw Error(i(317));a[ct]=t}else Hi(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Rc(t),a=!1}else a=Ui(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return t.flags&256?(lo(t),t):(lo(t),null)}return lo(t),t.flags&128?(t.lanes=n,t):(n=r!==null,e=e!==null&&e.memoizedState!==null,n&&(r=t.child,a=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(a=r.alternate.memoizedState.cachePool.pool),o=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(o=r.memoizedState.cachePool.pool),o!==a&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),Ic(t,t.updateQueue),Rc(t),null);case 4:return de(),e===null&&Td(t.stateNode.containerInfo),Rc(t),null;case 10:return Yi(t.type),Rc(t),null;case 19:if(I(uo),r=t.memoizedState,r===null)return Rc(t),null;if(a=(t.flags&128)!=0,o=r.rendering,o===null)if(a)Lc(r,!1);else{if(J!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=fo(e),o!==null){for(t.flags|=128,Lc(r,!1),e=o.updateQueue,t.updateQueue=e,Ic(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)di(n,e),n=n.sibling;return L(uo,uo.current&1|2),B&&Oi(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&De()>iu&&(t.flags|=128,a=!0,Lc(r,!1),t.lanes=4194304)}else{if(!a)if(e=fo(o),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,Ic(t,e),Lc(r,!0),r.tail===null&&r.tailMode===`hidden`&&!o.alternate&&!B)return Rc(t),null}else 2*De()-r.renderingStartTime>iu&&n!==536870912&&(t.flags|=128,a=!0,Lc(r,!1),t.lanes=4194304);r.isBackwards?(o.sibling=t.child,t.child=o):(e=r.last,e===null?t.child=o:e.sibling=o,r.last=o)}return r.tail===null?(Rc(t),null):(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=De(),e.sibling=null,n=uo.current,L(uo,a?n&1|2:n&1),B&&Oi(t,r.treeForkCount),e);case 22:case 23:return lo(t),no(),r=t.memoizedState!==null,e===null?r&&(t.flags|=8192):e.memoizedState!==null!==r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(Rc(t),t.subtreeFlags&6&&(t.flags|=8192)):Rc(t),n=t.updateQueue,n!==null&&Ic(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),e!==null&&I(va),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Yi(sa),Rc(t),null;case 25:return null;case 30:return null}throw Error(i(156,t.tag))}function Bc(e,t){switch(ji(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Yi(sa),de(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return pe(t),null;case 31:if(t.memoizedState!==null){if(lo(t),t.alternate===null)throw Error(i(340));Hi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(lo(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(i(340));Hi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return I(uo),null;case 4:return de(),null;case 10:return Yi(t.type),null;case 22:case 23:return lo(t),no(),e!==null&&I(va),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Yi(sa),null;case 25:return null;default:return null}}function Vc(e,t){switch(ji(t),t.tag){case 3:Yi(sa),de();break;case 26:case 27:case 5:pe(t);break;case 4:de();break;case 31:t.memoizedState!==null&&lo(t);break;case 13:lo(t);break;case 19:I(uo);break;case 10:Yi(t.type);break;case 22:case 23:lo(t),no(),e!==null&&I(va);break;case 24:Yi(sa)}}function Hc(e,t){try{var n=t.updateQueue,r=n===null?null:n.lastEffect;if(r!==null){var i=r.next;n=i;do{if((n.tag&e)===e){r=void 0;var a=n.create,o=n.inst;r=a(),o.destroy=r}n=n.next}while(n!==i)}}catch(e){qu(t,t.return,e)}}function Uc(e,t,n){try{var r=t.updateQueue,i=r===null?null:r.lastEffect;if(i!==null){var a=i.next;r=a;do{if((r.tag&e)===e){var o=r.inst,s=o.destroy;if(s!==void 0){o.destroy=void 0,i=t;var c=n,l=s;try{l()}catch(e){qu(i,c,e)}}}r=r.next}while(r!==a)}}catch(e){qu(t,t.return,e)}}function Wc(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{Za(t,n)}catch(t){qu(e,e.return,t)}}}function Gc(e,t,n){n.props=qs(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){qu(e,t,n)}}function Kc(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:r=e.stateNode;break;default:r=e.stateNode}typeof n==`function`?e.refCleanup=n(r):n.current=r}}catch(n){qu(e,t,n)}}function qc(e,t){var n=e.ref,r=e.refCleanup;if(n!==null)if(typeof r==`function`)try{r()}catch(n){qu(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n==`function`)try{n(null)}catch(n){qu(e,t,n)}else n.current=null}function Jc(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{a:switch(t){case`button`:case`input`:case`select`:case`textarea`:n.autoFocus&&r.focus();break a;case`img`:n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(t){qu(e,e.return,t)}}function Yc(e,t,n){try{var r=e.stateNode;zd(r,e.type,n,t),r[lt]=t}catch(t){qu(e,e.return,t)}}function Xc(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&tf(e.type)||e.tag===4}function Zc(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||Xc(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&tf(e.type)||e.flags&2||e.child===null||e.tag===4)continue a;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Qc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=tn));else if(r!==4&&(r===27&&tf(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(Qc(e,t,n),e=e.sibling;e!==null;)Qc(e,t,n),e=e.sibling}function $c(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(r===27&&tf(e.type)&&(n=e.stateNode),e=e.child,e!==null))for($c(e,t,n),e=e.sibling;e!==null;)$c(e,t,n),e=e.sibling}function el(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);Rd(t,r,n),t[ct]=e,t[lt]=n}catch(t){qu(e,e.return,t)}}var tl=!1,nl=!1,rl=!1,il=typeof WeakSet==`function`?WeakSet:Set,al=null;function ol(e,t){if(e=e.containerInfo,Hd=dp,e=Dr(e),Or(e)){if(`selectionStart`in e)var n={start:e.selectionStart,end:e.selectionEnd};else a:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var a=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break a}var s=0,c=-1,l=-1,u=0,d=0,f=e,p=null;b:for(;;){for(var m;f!==n||a!==0&&f.nodeType!==3||(c=s+a),f!==o||r!==0&&f.nodeType!==3||(l=s+r),f.nodeType===3&&(s+=f.nodeValue.length),(m=f.firstChild)!==null;)p=f,f=m;for(;;){if(f===e)break b;if(p===n&&++u===a&&(c=s),p===o&&++d===r&&(l=s),(m=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=m}n=c===-1||l===-1?null:{start:c,end:l}}else n=null}n||={start:0,end:0}}else n=null;for(Ud={focusedElem:e,selectionRange:n},dp=!1,al=t;al!==null;)if(t=al,e=t.child,t.subtreeFlags&1028&&e!==null)e.return=t,al=e;else for(;al!==null;){switch(t=al,o=t.alternate,e=t.flags,t.tag){case 0:if(e&4&&(e=t.updateQueue,e=e===null?null:e.events,e!==null))for(n=0;n<e.length;n++)a=e[n],a.ref.impl=a.nextImpl;break;case 11:case 15:break;case 1:if(e&1024&&o!==null){e=void 0,n=t,a=o.memoizedProps,o=o.memoizedState,r=n.stateNode;try{var h=qs(n.type,a);e=r.getSnapshotBeforeUpdate(h,o),r.__reactInternalSnapshotBeforeUpdate=e}catch(e){qu(n,n.return,e)}}break;case 3:if(e&1024){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)af(e);else if(n===1)switch(e.nodeName){case`HEAD`:case`HTML`:case`BODY`:af(e);break;default:e.textContent=``}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if(e&1024)throw Error(i(163))}if(e=t.sibling,e!==null){e.return=t.return,al=e;break}al=t.return}}function sl(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:xl(e,n),r&4&&Hc(5,n);break;case 1:if(xl(e,n),r&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(e){qu(n,n.return,e)}else{var i=qs(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(e){qu(n,n.return,e)}}r&64&&Wc(n),r&512&&Kc(n,n.return);break;case 3:if(xl(e,n),r&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{Za(e,t)}catch(e){qu(n,n.return,e)}}break;case 27:t===null&&r&4&&el(n);case 26:case 5:xl(e,n),t===null&&r&4&&Jc(n),r&512&&Kc(n,n.return);break;case 12:xl(e,n);break;case 31:xl(e,n),r&4&&fl(e,n);break;case 13:xl(e,n),r&4&&pl(e,n),r&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=Zu.bind(null,n),df(e,n))));break;case 22:if(r=n.memoizedState!==null||tl,!r){t=t!==null&&t.memoizedState!==null||nl,i=tl;var a=nl;tl=r,(nl=t)&&!a?Cl(e,n,(n.subtreeFlags&8772)!=0):xl(e,n),tl=i,nl=a}break;case 30:break;default:xl(e,n)}}function cl(e){var t=e.alternate;t!==null&&(e.alternate=null,cl(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&>(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var G=null,ll=!1;function ul(e,t,n){for(n=n.child;n!==null;)dl(e,t,n),n=n.sibling}function dl(e,t,n){if(Le&&typeof Le.onCommitFiberUnmount==`function`)try{Le.onCommitFiberUnmount(Ie,n)}catch{}switch(n.tag){case 26:nl||qc(n,t),ul(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:nl||qc(n,t);var r=G,i=ll;tf(n.type)&&(G=n.stateNode,ll=!1),ul(e,t,n),_f(n.stateNode),G=r,ll=i;break;case 5:nl||qc(n,t);case 6:if(r=G,i=ll,G=null,ul(e,t,n),G=r,ll=i,G!==null)if(ll)try{(G.nodeType===9?G.body:G.nodeName===`HTML`?G.ownerDocument.body:G).removeChild(n.stateNode)}catch(e){qu(n,t,e)}else try{G.removeChild(n.stateNode)}catch(e){qu(n,t,e)}break;case 18:G!==null&&(ll?(e=G,nf(e.nodeType===9?e.body:e.nodeName===`HTML`?e.ownerDocument.body:e,n.stateNode),Lp(e)):nf(G,n.stateNode));break;case 4:r=G,i=ll,G=n.stateNode.containerInfo,ll=!0,ul(e,t,n),G=r,ll=i;break;case 0:case 11:case 14:case 15:Uc(2,n,t),nl||Uc(4,n,t),ul(e,t,n);break;case 1:nl||(qc(n,t),r=n.stateNode,typeof r.componentWillUnmount==`function`&&Gc(n,t,r)),ul(e,t,n);break;case 21:ul(e,t,n);break;case 22:nl=(r=nl)||n.memoizedState!==null,ul(e,t,n),nl=r;break;default:ul(e,t,n)}}function fl(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Lp(e)}catch(e){qu(t,t.return,e)}}}function pl(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Lp(e)}catch(e){qu(t,t.return,e)}}function ml(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new il),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new il),t;default:throw Error(i(435,e.tag))}}function hl(e,t){var n=ml(e);t.forEach(function(t){if(!n.has(t)){n.add(t);var r=Qu.bind(null,e,t);t.then(r,r)}})}function gl(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var a=n[r],o=e,s=t,c=s;a:for(;c!==null;){switch(c.tag){case 27:if(tf(c.type)){G=c.stateNode,ll=!1;break a}break;case 5:G=c.stateNode,ll=!1;break a;case 3:case 4:G=c.stateNode.containerInfo,ll=!0;break a}c=c.return}if(G===null)throw Error(i(160));dl(o,s,a),G=null,ll=!1,o=a.alternate,o!==null&&(o.return=null),a.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)vl(t,e),t=t.sibling}var _l=null;function vl(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:gl(t,e),yl(e),r&4&&(Uc(3,e,e.return),Hc(3,e),Uc(5,e,e.return));break;case 1:gl(t,e),yl(e),r&512&&(nl||n===null||qc(n,n.return)),r&64&&tl&&(e=e.updateQueue,e!==null&&(r=e.callbacks,r!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?r:n.concat(r))));break;case 26:var a=_l;if(gl(t,e),yl(e),r&512&&(nl||n===null||qc(n,n.return)),r&4){var o=n===null?null:n.memoizedState;if(r=e.memoizedState,n===null)if(r===null)if(e.stateNode===null){a:{r=e.type,n=e.memoizedProps,a=a.ownerDocument||a;b:switch(r){case`title`:o=a.getElementsByTagName(`title`)[0],(!o||o[ht]||o[ct]||o.namespaceURI===`http://www.w3.org/2000/svg`||o.hasAttribute(`itemprop`))&&(o=a.createElement(r),a.head.insertBefore(o,a.querySelector(`head > title`))),Rd(o,r,n),o[ct]=e,xt(o),r=o;break a;case`link`:var s=Gf(`link`,`href`,a).get(r+(n.href||``));if(s){for(var c=0;c<s.length;c++)if(o=s[c],o.getAttribute(`href`)===(n.href==null||n.href===``?null:n.href)&&o.getAttribute(`rel`)===(n.rel==null?null:n.rel)&&o.getAttribute(`title`)===(n.title==null?null:n.title)&&o.getAttribute(`crossorigin`)===(n.crossOrigin==null?null:n.crossOrigin)){s.splice(c,1);break b}}o=a.createElement(r),Rd(o,r,n),a.head.appendChild(o);break;case`meta`:if(s=Gf(`meta`,`content`,a).get(r+(n.content||``))){for(c=0;c<s.length;c++)if(o=s[c],o.getAttribute(`content`)===(n.content==null?null:``+n.content)&&o.getAttribute(`name`)===(n.name==null?null:n.name)&&o.getAttribute(`property`)===(n.property==null?null:n.property)&&o.getAttribute(`http-equiv`)===(n.httpEquiv==null?null:n.httpEquiv)&&o.getAttribute(`charset`)===(n.charSet==null?null:n.charSet)){s.splice(c,1);break b}}o=a.createElement(r),Rd(o,r,n),a.head.appendChild(o);break;default:throw Error(i(468,r))}o[ct]=e,xt(o),r=o}e.stateNode=r}else Kf(a,e.type,e.stateNode);else e.stateNode=Bf(a,r,e.memoizedProps);else o===r?r===null&&e.stateNode!==null&&Yc(e,e.memoizedProps,n.memoizedProps):(o===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):o.count--,r===null?Kf(a,e.type,e.stateNode):Bf(a,r,e.memoizedProps))}break;case 27:gl(t,e),yl(e),r&512&&(nl||n===null||qc(n,n.return)),n!==null&&r&4&&Yc(e,e.memoizedProps,n.memoizedProps);break;case 5:if(gl(t,e),yl(e),r&512&&(nl||n===null||qc(n,n.return)),e.flags&32){a=e.stateNode;try{qt(a,``)}catch(t){qu(e,e.return,t)}}r&4&&e.stateNode!=null&&(a=e.memoizedProps,Yc(e,a,n===null?a:n.memoizedProps)),r&1024&&(rl=!0);break;case 6:if(gl(t,e),yl(e),r&4){if(e.stateNode===null)throw Error(i(162));r=e.memoizedProps,n=e.stateNode;try{n.nodeValue=r}catch(t){qu(e,e.return,t)}}break;case 3:if(Wf=null,a=_l,_l=bf(t.containerInfo),gl(t,e),_l=a,yl(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Lp(t.containerInfo)}catch(t){qu(e,e.return,t)}rl&&(rl=!1,bl(e));break;case 4:r=_l,_l=bf(e.stateNode.containerInfo),gl(t,e),yl(e),_l=r;break;case 12:gl(t,e),yl(e);break;case 31:gl(t,e),yl(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,hl(e,r)));break;case 13:gl(t,e),yl(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(nu=De()),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,hl(e,r)));break;case 22:a=e.memoizedState!==null;var l=n!==null&&n.memoizedState!==null,u=tl,d=nl;if(tl=u||a,nl=d||l,gl(t,e),nl=d,tl=u,yl(e),r&8192)a:for(t=e.stateNode,t._visibility=a?t._visibility&-2:t._visibility|1,a&&(n===null||l||tl||nl||Sl(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){l=n=t;try{if(o=l.stateNode,a)s=o.style,typeof s.setProperty==`function`?s.setProperty(`display`,`none`,`important`):s.display=`none`;else{c=l.stateNode;var f=l.memoizedProps.style,p=f!=null&&f.hasOwnProperty(`display`)?f.display:null;c.style.display=p==null||typeof p==`boolean`?``:(``+p).trim()}}catch(e){qu(l,l.return,e)}}}else if(t.tag===6){if(n===null){l=t;try{l.stateNode.nodeValue=a?``:l.memoizedProps}catch(e){qu(l,l.return,e)}}}else if(t.tag===18){if(n===null){l=t;try{var m=l.stateNode;a?rf(m,!0):rf(l.stateNode,!1)}catch(e){qu(l,l.return,e)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break a;for(;t.sibling===null;){if(t.return===null||t.return===e)break a;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}r&4&&(r=e.updateQueue,r!==null&&(n=r.retryQueue,n!==null&&(r.retryQueue=null,hl(e,n))));break;case 19:gl(t,e),yl(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,hl(e,r)));break;case 30:break;case 21:break;default:gl(t,e),yl(e)}}function yl(e){var t=e.flags;if(t&2){try{for(var n,r=e.return;r!==null;){if(Xc(r)){n=r;break}r=r.return}if(n==null)throw Error(i(160));switch(n.tag){case 27:var a=n.stateNode;$c(e,Zc(e),a);break;case 5:var o=n.stateNode;n.flags&32&&(qt(o,``),n.flags&=-33),$c(e,Zc(e),o);break;case 3:case 4:var s=n.stateNode.containerInfo;Qc(e,Zc(e),s);break;default:throw Error(i(161))}}catch(t){qu(e,e.return,t)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function bl(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;bl(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function xl(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)sl(e,t.alternate,t),t=t.sibling}function Sl(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Uc(4,t,t.return),Sl(t);break;case 1:qc(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount==`function`&&Gc(t,t.return,n),Sl(t);break;case 27:_f(t.stateNode);case 26:case 5:qc(t,t.return),Sl(t);break;case 22:t.memoizedState===null&&Sl(t);break;case 30:Sl(t);break;default:Sl(t)}e=e.sibling}}function Cl(e,t,n){for(n&&=(t.subtreeFlags&8772)!=0,t=t.child;t!==null;){var r=t.alternate,i=e,a=t,o=a.flags;switch(a.tag){case 0:case 11:case 15:Cl(i,a,n),Hc(4,a);break;case 1:if(Cl(i,a,n),r=a,i=r.stateNode,typeof i.componentDidMount==`function`)try{i.componentDidMount()}catch(e){qu(r,r.return,e)}if(r=a,i=r.updateQueue,i!==null){var s=r.stateNode;try{var c=i.shared.hiddenCallbacks;if(c!==null)for(i.shared.hiddenCallbacks=null,i=0;i<c.length;i++)Xa(c[i],s)}catch(e){qu(r,r.return,e)}}n&&o&64&&Wc(a),Kc(a,a.return);break;case 27:el(a);case 26:case 5:Cl(i,a,n),n&&r===null&&o&4&&Jc(a),Kc(a,a.return);break;case 12:Cl(i,a,n);break;case 31:Cl(i,a,n),n&&o&4&&fl(i,a);break;case 13:Cl(i,a,n),n&&o&4&&pl(i,a);break;case 22:a.memoizedState===null&&Cl(i,a,n),Kc(a,a.return);break;case 30:break;default:Cl(i,a,n)}t=t.sibling}}function wl(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&la(n))}function Tl(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&la(e))}function El(e,t,n,r){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Dl(e,t,n,r),t=t.sibling}function Dl(e,t,n,r){var i=t.flags;switch(t.tag){case 0:case 11:case 15:El(e,t,n,r),i&2048&&Hc(9,t);break;case 1:El(e,t,n,r);break;case 3:El(e,t,n,r),i&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&la(e)));break;case 12:if(i&2048){El(e,t,n,r),e=t.stateNode;try{var a=t.memoizedProps,o=a.id,s=a.onPostCommit;typeof s==`function`&&s(o,t.alternate===null?`mount`:`update`,e.passiveEffectDuration,-0)}catch(e){qu(t,t.return,e)}}else El(e,t,n,r);break;case 31:El(e,t,n,r);break;case 13:El(e,t,n,r);break;case 23:break;case 22:a=t.stateNode,o=t.alternate,t.memoizedState===null?a._visibility&2?El(e,t,n,r):(a._visibility|=2,Ol(e,t,n,r,(t.subtreeFlags&10256)!=0||!1)):a._visibility&2?El(e,t,n,r):kl(e,t),i&2048&&wl(o,t);break;case 24:El(e,t,n,r),i&2048&&Tl(t.alternate,t);break;default:El(e,t,n,r)}}function Ol(e,t,n,r,i){for(i&&=(t.subtreeFlags&10256)!=0||!1,t=t.child;t!==null;){var a=e,o=t,s=n,c=r,l=o.flags;switch(o.tag){case 0:case 11:case 15:Ol(a,o,s,c,i),Hc(8,o);break;case 23:break;case 22:var u=o.stateNode;o.memoizedState===null?(u._visibility|=2,Ol(a,o,s,c,i)):u._visibility&2?Ol(a,o,s,c,i):kl(a,o),i&&l&2048&&wl(o.alternate,o);break;case 24:Ol(a,o,s,c,i),i&&l&2048&&Tl(o.alternate,o);break;default:Ol(a,o,s,c,i)}t=t.sibling}}function kl(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,r=t,i=r.flags;switch(r.tag){case 22:kl(n,r),i&2048&&wl(r.alternate,r);break;case 24:kl(n,r),i&2048&&Tl(r.alternate,r);break;default:kl(n,r)}t=t.sibling}}var Al=8192;function jl(e,t,n){if(e.subtreeFlags&Al)for(e=e.child;e!==null;)Ml(e,t,n),e=e.sibling}function Ml(e,t,n){switch(e.tag){case 26:jl(e,t,n),e.flags&Al&&e.memoizedState!==null&&Yf(n,_l,e.memoizedState,e.memoizedProps);break;case 5:jl(e,t,n);break;case 3:case 4:var r=_l;_l=bf(e.stateNode.containerInfo),jl(e,t,n),_l=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=Al,Al=16777216,jl(e,t,n),Al=r):jl(e,t,n));break;default:jl(e,t,n)}}function Nl(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Pl(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];al=r,Ll(r,e)}Nl(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Fl(e),e=e.sibling}function Fl(e){switch(e.tag){case 0:case 11:case 15:Pl(e),e.flags&2048&&Uc(9,e,e.return);break;case 3:Pl(e);break;case 12:Pl(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Il(e)):Pl(e);break;default:Pl(e)}}function Il(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];al=r,Ll(r,e)}Nl(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Uc(8,t,t.return),Il(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Il(t));break;default:Il(t)}e=e.sibling}}function Ll(e,t){for(;al!==null;){var n=al;switch(n.tag){case 0:case 11:case 15:Uc(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var r=n.memoizedState.cachePool.pool;r!=null&&r.refCount++}break;case 24:la(n.memoizedState.cache)}if(r=n.child,r!==null)r.return=n,al=r;else a:for(n=e;al!==null;){r=al;var i=r.sibling,a=r.return;if(cl(r),r===n){al=null;break a}if(i!==null){i.return=a,al=i;break a}al=a}}}var Rl={getCacheForType:function(e){var t=ta(sa),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return ta(sa).controller.signal}},zl=typeof WeakMap==`function`?WeakMap:Map,Bl=0,Vl=null,K=null,q=0,Hl=0,Ul=null,Wl=!1,Gl=!1,Kl=!1,ql=0,J=0,Jl=0,Yl=0,Xl=0,Zl=0,Ql=0,$l=null,eu=null,tu=!1,nu=0,ru=0,iu=1/0,au=null,Y=null,ou=0,su=null,cu=null,lu=0,uu=0,du=null,fu=null,pu=0,mu=null;function hu(){return Bl&2&&q!==0?q&-q:P.T===null?at():md()}function gu(){if(Zl===0)if(!(q&536870912)||B){var e=We;We<<=1,!(We&3932160)&&(We=262144),Zl=e}else Zl=536870912;return e=ro.current,e!==null&&(e.flags|=32),Zl}function _u(e,t,n){(e===Vl&&(Hl===2||Hl===9)||e.cancelPendingCommit!==null)&&(wu(e,0),xu(e,q,Zl,!1)),Qe(e,n),(!(Bl&2)||e!==Vl)&&(e===Vl&&(!(Bl&2)&&(Yl|=n),J===4&&xu(e,q,Zl,!1)),od(e))}function vu(e,t,n){if(Bl&6)throw Error(i(327));var r=!n&&(t&127)==0&&(t&e.expiredLanes)===0||Je(e,t),a=r?Mu(e,t):Au(e,t,!0),o=r;do{if(a===0){Gl&&!r&&xu(e,t,0,!1);break}else{if(n=e.current.alternate,o&&!bu(n)){a=Au(e,t,!1),o=!1;continue}if(a===2){if(o=t,e.errorRecoveryDisabledLanes&o)var s=0;else s=e.pendingLanes&-536870913,s=s===0?s&536870912?536870912:0:s;if(s!==0){t=s;a:{var c=e;a=$l;var l=c.current.memoizedState.isDehydrated;if(l&&(wu(c,s).flags|=256),s=Au(c,s,!1),s!==2){if(Kl&&!l){c.errorRecoveryDisabledLanes|=o,Yl|=o,a=4;break a}o=eu,eu=a,o!==null&&(eu===null?eu=o:eu.push.apply(eu,o))}a=s}if(o=!1,a!==2)continue}}if(a===1){wu(e,0),xu(e,t,0,!0);break}a:{switch(r=e,o=a,o){case 0:case 1:throw Error(i(345));case 4:if((t&4194048)!==t)break;case 6:xu(r,t,Zl,!Wl);break a;case 2:eu=null;break;case 3:case 5:break;default:throw Error(i(329))}if((t&62914560)===t&&(a=nu+300-De(),10<a)){if(xu(r,t,Zl,!Wl),qe(r,0,!0)!==0)break a;lu=t,r.timeoutHandle=Xd(yu.bind(null,r,n,eu,au,tu,t,Zl,Yl,Ql,Wl,o,`Throttled`,-0,0),a);break a}yu(r,n,eu,au,tu,t,Zl,Yl,Ql,Wl,o,null,-0,0)}}break}while(1);od(e)}function yu(e,t,n,r,i,a,o,s,c,l,u,d,f,p){if(e.timeoutHandle=-1,d=t.subtreeFlags,d&8192||(d&16785408)==16785408){d={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:tn},Ml(t,a,d);var m=(a&62914560)===a?nu-De():(a&4194048)===a?ru-De():0;if(m=Zf(d,m),m!==null){lu=a,e.cancelPendingCommit=m(zu.bind(null,e,t,a,n,r,i,o,s,c,u,d,null,f,p)),xu(e,a,o,!l);return}}zu(e,t,a,n,r,i,o,s,c)}function bu(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var r=0;r<n.length;r++){var i=n[r],a=i.getSnapshot;i=i.value;try{if(!Sr(a(),i))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function xu(e,t,n,r){t&=~Xl,t&=~Yl,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var i=t;0<i;){var a=31-ze(i),o=1<<a;r[a]=-1,i&=~o}n!==0&&et(e,n,t)}function Su(){return Bl&6?!0:(sd(0,!1),!1)}function Cu(){if(K!==null){if(Hl===0)var e=K.return;else e=K,qi=Ki=null,jo(e),Ma=null,Na=0,e=K;for(;e!==null;)Vc(e.alternate,e),e=e.return;K=null}}function wu(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,Zd(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),lu=0,Cu(),Vl=e,K=n=ui(e.current,null),q=t,Hl=0,Ul=null,Wl=!1,Gl=Je(e,t),Kl=!1,Ql=Zl=Xl=Yl=Jl=J=0,eu=$l=null,tu=!1,t&8&&(t|=t&32);var r=e.entangledLanes;if(r!==0)for(e=e.entanglements,r&=t;0<r;){var i=31-ze(r),a=1<<i;t|=e[i],r&=~a}return ql=t,ei(),n}function Tu(e,t){V=null,P.H=zs,t===Sa||t===wa?(t=Aa(),Hl=3):t===Ca?(t=Aa(),Hl=4):Hl=t===rc?8:typeof t==`object`&&t&&typeof t.then==`function`?6:1,Ul=t,K===null&&(J=1,Zs(e,vi(t,e.current)))}function Eu(){var e=ro.current;return e===null?!0:(q&4194048)===q?io===null:(q&62914560)===q||q&536870912?e===io:!1}function Du(){var e=P.H;return P.H=zs,e===null?zs:e}function Ou(){var e=P.A;return P.A=Rl,e}function ku(){J=4,Wl||(q&4194048)!==q&&ro.current!==null||(Gl=!0),!(Jl&134217727)&&!(Yl&134217727)||Vl===null||xu(Vl,q,Zl,!1)}function Au(e,t,n){var r=Bl;Bl|=2;var i=Du(),a=Ou();(Vl!==e||q!==t)&&(au=null,wu(e,t)),t=!1;var o=J;a:do try{if(Hl!==0&&K!==null){var s=K,c=Ul;switch(Hl){case 8:Cu(),o=6;break a;case 3:case 2:case 9:case 6:ro.current===null&&(t=!0);var l=Hl;if(Hl=0,Ul=null,Iu(e,s,c,l),n&&Gl){o=0;break a}break;default:l=Hl,Hl=0,Ul=null,Iu(e,s,c,l)}}ju(),o=J;break}catch(t){Tu(e,t)}while(1);return t&&e.shellSuspendCounter++,qi=Ki=null,Bl=r,P.H=i,P.A=a,K===null&&(Vl=null,q=0,ei()),o}function ju(){for(;K!==null;)Pu(K)}function Mu(e,t){var n=Bl;Bl|=2;var r=Du(),a=Ou();Vl!==e||q!==t?(au=null,iu=De()+500,wu(e,t)):Gl=Je(e,t);a:do try{if(Hl!==0&&K!==null){t=K;var o=Ul;b:switch(Hl){case 1:Hl=0,Ul=null,Iu(e,t,o,1);break;case 2:case 9:if(Ea(o)){Hl=0,Ul=null,Fu(t);break}t=function(){Hl!==2&&Hl!==9||Vl!==e||(Hl=7),od(e)},o.then(t,t);break a;case 3:Hl=7;break a;case 4:Hl=5;break a;case 7:Ea(o)?(Hl=0,Ul=null,Fu(t)):(Hl=0,Ul=null,Iu(e,t,o,7));break;case 5:var s=null;switch(K.tag){case 26:s=K.memoizedState;case 5:case 27:var c=K;if(s?Jf(s):c.stateNode.complete){Hl=0,Ul=null;var l=c.sibling;if(l!==null)K=l;else{var u=c.return;u===null?K=null:(K=u,Lu(u))}break b}}Hl=0,Ul=null,Iu(e,t,o,5);break;case 6:Hl=0,Ul=null,Iu(e,t,o,6);break;case 8:Cu(),J=6;break a;default:throw Error(i(462))}}Nu();break}catch(t){Tu(e,t)}while(1);return qi=Ki=null,P.H=r,P.A=a,Bl=n,K===null?(Vl=null,q=0,ei(),J):0}function Nu(){for(;K!==null&&!Te();)Pu(K)}function Pu(e){var t=Mc(e.alternate,e,ql);e.memoizedProps=e.pendingProps,t===null?Lu(e):K=t}function Fu(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=_c(n,t,t.pendingProps,t.type,void 0,q);break;case 11:t=_c(n,t,t.pendingProps,t.type.render,t.ref,q);break;case 5:jo(t);default:Vc(n,t),t=K=di(t,ql),t=Mc(n,t,ql)}e.memoizedProps=e.pendingProps,t===null?Lu(e):K=t}function Iu(e,t,n,r){qi=Ki=null,jo(t),Ma=null,Na=0;var i=t.return;try{if(nc(e,i,t,n,q)){J=1,Zs(e,vi(n,e.current)),K=null;return}}catch(t){if(i!==null)throw K=i,t;J=1,Zs(e,vi(n,e.current)),K=null;return}t.flags&32768?(B||r===1?e=!0:Gl||q&536870912?e=!1:(Wl=e=!0,(r===2||r===9||r===3||r===6)&&(r=ro.current,r!==null&&r.tag===13&&(r.flags|=16384))),Ru(t,e)):Lu(t)}function Lu(e){var t=e;do{if(t.flags&32768){Ru(t,Wl);return}e=t.return;var n=zc(t.alternate,t,ql);if(n!==null){K=n;return}if(t=t.sibling,t!==null){K=t;return}K=t=e}while(t!==null);J===0&&(J=5)}function Ru(e,t){do{var n=Bc(e.alternate,e);if(n!==null){n.flags&=32767,K=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){K=e;return}K=e=n}while(e!==null);J=6,K=null}function zu(e,t,n,r,a,o,s,c,l){e.cancelPendingCommit=null;do Wu();while(ou!==0);if(Bl&6)throw Error(i(327));if(t!==null){if(t===e.current)throw Error(i(177));if(o=t.lanes|t.childLanes,o|=$r,$e(e,n,o,s,c,l),e===Vl&&(K=Vl=null,q=0),cu=t,su=e,lu=n,uu=o,du=a,fu=r,t.subtreeFlags&10256||t.flags&10256?(e.callbackNode=null,e.callbackPriority=0,$u(je,function(){return Gu(),null})):(e.callbackNode=null,e.callbackPriority=0),r=(t.flags&13878)!=0,t.subtreeFlags&13878||r){r=P.T,P.T=null,a=F.p,F.p=2,s=Bl,Bl|=4;try{ol(e,t,n)}finally{Bl=s,F.p=a,P.T=r}}ou=1,Bu(),Vu(),Hu()}}function Bu(){if(ou===1){ou=0;var e=su,t=cu,n=(t.flags&13878)!=0;if(t.subtreeFlags&13878||n){n=P.T,P.T=null;var r=F.p;F.p=2;var i=Bl;Bl|=4;try{vl(t,e);var a=Ud,o=Dr(e.containerInfo),s=a.focusedElem,c=a.selectionRange;if(o!==s&&s&&s.ownerDocument&&Er(s.ownerDocument.documentElement,s)){if(c!==null&&Or(s)){var l=c.start,u=c.end;if(u===void 0&&(u=l),`selectionStart`in s)s.selectionStart=l,s.selectionEnd=Math.min(u,s.value.length);else{var d=s.ownerDocument||document,f=d&&d.defaultView||window;if(f.getSelection){var p=f.getSelection(),m=s.textContent.length,h=Math.min(c.start,m),g=c.end===void 0?h:Math.min(c.end,m);!p.extend&&h>g&&(o=g,g=h,h=o);var _=Tr(s,h),v=Tr(s,g);if(_&&v&&(p.rangeCount!==1||p.anchorNode!==_.node||p.anchorOffset!==_.offset||p.focusNode!==v.node||p.focusOffset!==v.offset)){var y=d.createRange();y.setStart(_.node,_.offset),p.removeAllRanges(),h>g?(p.addRange(y),p.extend(v.node,v.offset)):(y.setEnd(v.node,v.offset),p.addRange(y))}}}}for(d=[],p=s;p=p.parentNode;)p.nodeType===1&&d.push({element:p,left:p.scrollLeft,top:p.scrollTop});for(typeof s.focus==`function`&&s.focus(),s=0;s<d.length;s++){var b=d[s];b.element.scrollLeft=b.left,b.element.scrollTop=b.top}}dp=!!Hd,Ud=Hd=null}finally{Bl=i,F.p=r,P.T=n}}e.current=t,ou=2}}function Vu(){if(ou===2){ou=0;var e=su,t=cu,n=(t.flags&8772)!=0;if(t.subtreeFlags&8772||n){n=P.T,P.T=null;var r=F.p;F.p=2;var i=Bl;Bl|=4;try{sl(e,t.alternate,t)}finally{Bl=i,F.p=r,P.T=n}}ou=3}}function Hu(){if(ou===4||ou===3){ou=0,Ee();var e=su,t=cu,n=lu,r=fu;t.subtreeFlags&10256||t.flags&10256?ou=5:(ou=0,cu=su=null,Uu(e,e.pendingLanes));var i=e.pendingLanes;if(i===0&&(Y=null),it(n),t=t.stateNode,Le&&typeof Le.onCommitFiberRoot==`function`)try{Le.onCommitFiberRoot(Ie,t,void 0,(t.current.flags&128)==128)}catch{}if(r!==null){t=P.T,i=F.p,F.p=2,P.T=null;try{for(var a=e.onRecoverableError,o=0;o<r.length;o++){var s=r[o];a(s.value,{componentStack:s.stack})}}finally{P.T=t,F.p=i}}lu&3&&Wu(),od(e),i=e.pendingLanes,n&261930&&i&42?e===mu?pu++:(pu=0,mu=e):pu=0,sd(0,!1)}}function Uu(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,la(t)))}function Wu(){return Bu(),Vu(),Hu(),Gu()}function Gu(){if(ou!==5)return!1;var e=su,t=uu;uu=0;var n=it(lu),r=P.T,a=F.p;try{F.p=32>n?32:n,P.T=null,n=du,du=null;var o=su,s=lu;if(ou=0,cu=su=null,lu=0,Bl&6)throw Error(i(331));var c=Bl;if(Bl|=4,Fl(o.current),Dl(o,o.current,s,n),Bl=c,sd(0,!1),Le&&typeof Le.onPostCommitFiberRoot==`function`)try{Le.onPostCommitFiberRoot(Ie,o)}catch{}return!0}finally{F.p=a,P.T=r,Uu(e,t)}}function Ku(e,t,n){t=vi(n,t),t=$s(e.stateNode,t,2),e=Wa(e,t,2),e!==null&&(Qe(e,2),od(e))}function qu(e,t,n){if(e.tag===3)Ku(e,e,n);else for(;t!==null;){if(t.tag===3){Ku(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(Y===null||!Y.has(r))){e=vi(n,e),n=ec(2),r=Wa(t,n,2),r!==null&&(tc(n,r,t,e),Qe(r,2),od(r));break}}t=t.return}}function Ju(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new zl;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(Kl=!0,i.add(n),e=Yu.bind(null,e,t,n),t.then(e,e))}function Yu(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Vl===e&&(q&n)===n&&(J===4||J===3&&(q&62914560)===q&&300>De()-nu?!(Bl&2)&&wu(e,0):Xl|=n,Ql===q&&(Ql=0)),od(e)}function Xu(e,t){t===0&&(t=Xe()),e=ri(e,t),e!==null&&(Qe(e,t),od(e))}function Zu(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Xu(e,n)}function Qu(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(i(314))}r!==null&&r.delete(t),Xu(e,n)}function $u(e,t){return Ce(e,t)}var ed=null,td=null,nd=!1,rd=!1,id=!1,ad=0;function od(e){e!==td&&e.next===null&&(td===null?ed=td=e:td=td.next=e),rd=!0,nd||(nd=!0,pd())}function sd(e,t){if(!id&&rd){id=!0;do for(var n=!1,r=ed;r!==null;){if(!t)if(e!==0){var i=r.pendingLanes;if(i===0)var a=0;else{var o=r.suspendedLanes,s=r.pingedLanes;a=(1<<31-ze(42|e)+1)-1,a&=i&~(o&~s),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,fd(r,a))}else a=q,a=qe(r,r===Vl?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(a&3)||Je(r,a)||(n=!0,fd(r,a));r=r.next}while(n);id=!1}}function cd(){ld()}function ld(){rd=nd=!1;var e=0;ad!==0&&Yd()&&(e=ad);for(var t=De(),n=null,r=ed;r!==null;){var i=r.next,a=ud(r,t);a===0?(r.next=null,n===null?ed=i:n.next=i,i===null&&(td=n)):(n=r,(e!==0||a&3)&&(rd=!0)),r=i}ou!==0&&ou!==5||sd(e,!1),ad!==0&&(ad=0)}function ud(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes&-62914561;0<a;){var o=31-ze(a),s=1<<o,c=i[o];c===-1?((s&n)===0||(s&r)!==0)&&(i[o]=Ye(s,t)):c<=t&&(e.expiredLanes|=s),a&=~s}if(t=Vl,n=q,n=qe(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r=e.callbackNode,n===0||e===t&&(Hl===2||Hl===9)||e.cancelPendingCommit!==null)return r!==null&&r!==null&&we(r),e.callbackNode=null,e.callbackPriority=0;if(!(n&3)||Je(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(r!==null&&we(r),it(n)){case 2:case 8:n=Ae;break;case 32:n=je;break;case 268435456:n=Ne;break;default:n=je}return r=dd.bind(null,e),n=Ce(n,r),e.callbackPriority=t,e.callbackNode=n,t}return r!==null&&r!==null&&we(r),e.callbackPriority=2,e.callbackNode=null,2}function dd(e,t){if(ou!==0&&ou!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(Wu()&&e.callbackNode!==n)return null;var r=q;return r=qe(e,e===Vl?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(vu(e,r,t),ud(e,De()),e.callbackNode!=null&&e.callbackNode===n?dd.bind(null,e):null)}function fd(e,t){if(Wu())return null;vu(e,t,!0)}function pd(){$d(function(){Bl&6?Ce(ke,cd):ld()})}function md(){if(ad===0){var e=fa;e===0&&(e=Ue,Ue<<=1,!(Ue&261888)&&(Ue=256)),ad=e}return ad}function hd(e){return e==null||typeof e==`symbol`||typeof e==`boolean`?null:typeof e==`function`?e:en(``+e)}function gd(e,t){var n=t.ownerDocument.createElement(`input`);return n.name=t.name,n.value=t.value,e.id&&n.setAttribute(`form`,e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function _d(e,t,n,r,i){if(t===`submit`&&n&&n.stateNode===i){var a=hd((i[lt]||null).action),o=r.submitter;o&&(t=(t=o[lt]||null)?hd(t.formAction):o.getAttribute(`formAction`),t!==null&&(a=t,o=null));var s=new Sn(`action`,`action`,null,r,i);e.push({event:s,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(ad!==0){var e=o?gd(i,o):new FormData(i);Ts(n,{pending:!0,data:e,method:i.method,action:a},null,e)}}else typeof a==`function`&&(s.preventDefault(),e=o?gd(i,o):new FormData(i),Ts(n,{pending:!0,data:e,method:i.method,action:a},a,e))},currentTarget:i}]})}}for(var vd=0;vd<Jr.length;vd++){var yd=Jr[vd];Yr(yd.toLowerCase(),`on`+(yd[0].toUpperCase()+yd.slice(1)))}Yr(Br,`onAnimationEnd`),Yr(Vr,`onAnimationIteration`),Yr(Hr,`onAnimationStart`),Yr(`dblclick`,`onDoubleClick`),Yr(`focusin`,`onFocus`),Yr(`focusout`,`onBlur`),Yr(Ur,`onTransitionRun`),Yr(Wr,`onTransitionStart`),Yr(Gr,`onTransitionCancel`),Yr(Kr,`onTransitionEnd`),Tt(`onMouseEnter`,[`mouseout`,`mouseover`]),Tt(`onMouseLeave`,[`mouseout`,`mouseover`]),Tt(`onPointerEnter`,[`pointerout`,`pointerover`]),Tt(`onPointerLeave`,[`pointerout`,`pointerover`]),wt(`onChange`,`change click focusin focusout input keydown keyup selectionchange`.split(` `)),wt(`onSelect`,`focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange`.split(` `)),wt(`onBeforeInput`,[`compositionend`,`keypress`,`textInput`,`paste`]),wt(`onCompositionEnd`,`compositionend focusout keydown keypress keyup mousedown`.split(` `)),wt(`onCompositionStart`,`compositionstart focusout keydown keypress keyup mousedown`.split(` `)),wt(`onCompositionUpdate`,`compositionupdate focusout keydown keypress keyup mousedown`.split(` `));var bd=`abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting`.split(` `),xd=new Set(`beforetoggle cancel close invalid load scroll scrollend toggle`.split(` `).concat(bd));function Sd(e,t){t=(t&4)!=0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;a:{var a=void 0;if(t)for(var o=r.length-1;0<=o;o--){var s=r[o],c=s.instance,l=s.currentTarget;if(s=s.listener,c!==a&&i.isPropagationStopped())break a;a=s,i.currentTarget=l;try{a(i)}catch(e){Xr(e)}i.currentTarget=null,a=c}else for(o=0;o<r.length;o++){if(s=r[o],c=s.instance,l=s.currentTarget,s=s.listener,c!==a&&i.isPropagationStopped())break a;a=s,i.currentTarget=l;try{a(i)}catch(e){Xr(e)}i.currentTarget=null,a=c}}}}function X(e,t){var n=t[dt];n===void 0&&(n=t[dt]=new Set);var r=e+`__bubble`;n.has(r)||(Ed(t,e,2,!1),n.add(r))}function Cd(e,t,n){var r=0;t&&(r|=4),Ed(n,e,r,t)}var wd=`_reactListening`+Math.random().toString(36).slice(2);function Td(e){if(!e[wd]){e[wd]=!0,St.forEach(function(t){t!==`selectionchange`&&(xd.has(t)||Cd(t,!1,e),Cd(t,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[wd]||(t[wd]=!0,Cd(`selectionchange`,!1,t))}}function Ed(e,t,n,r){switch(vp(t)){case 2:var i=fp;break;case 8:i=pp;break;default:i=mp}n=i.bind(null,t,n,e),i=void 0,!fn||t!==`touchstart`&&t!==`touchmove`&&t!==`wheel`||(i=!0),r?i===void 0?e.addEventListener(t,n,!0):e.addEventListener(t,n,{capture:!0,passive:i}):i===void 0?e.addEventListener(t,n,!1):e.addEventListener(t,n,{passive:i})}function Dd(e,t,n,r,i){var a=r;if(!(t&1)&&!(t&2)&&r!==null)a:for(;;){if(r===null)return;var s=r.tag;if(s===3||s===4){var c=r.stateNode.containerInfo;if(c===i)break;if(s===4)for(s=r.return;s!==null;){var l=s.tag;if((l===3||l===4)&&s.stateNode.containerInfo===i)return;s=s.return}for(;c!==null;){if(s=_t(c),s===null)return;if(l=s.tag,l===5||l===6||l===26||l===27){r=a=s;continue a}c=c.parentNode}}r=r.return}ln(function(){var r=a,i=rn(n),s=[];a:{var c=qr.get(e);if(c!==void 0){var l=Sn,u=e;switch(e){case`keypress`:if(vn(n)===0)break a;case`keydown`:case`keyup`:l=zn;break;case`focusin`:u=`focus`,l=An;break;case`focusout`:u=`blur`,l=An;break;case`beforeblur`:case`afterblur`:l=An;break;case`click`:if(n.button===2)break a;case`auxclick`:case`dblclick`:case`mousedown`:case`mousemove`:case`mouseup`:case`mouseout`:case`mouseover`:case`contextmenu`:l=On;break;case`drag`:case`dragend`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`dragstart`:case`drop`:l=kn;break;case`touchcancel`:case`touchend`:case`touchmove`:case`touchstart`:l=Vn;break;case Br:case Vr:case Hr:l=jn;break;case Kr:l=Hn;break;case`scroll`:case`scrollend`:l=wn;break;case`wheel`:l=Un;break;case`copy`:case`cut`:case`paste`:l=Mn;break;case`gotpointercapture`:case`lostpointercapture`:case`pointercancel`:case`pointerdown`:case`pointermove`:case`pointerout`:case`pointerover`:case`pointerup`:l=Bn;break;case`toggle`:case`beforetoggle`:l=Wn}var d=(t&4)!=0,f=!d&&(e===`scroll`||e===`scrollend`),p=d?c===null?null:c+`Capture`:c;d=[];for(var m=r,h;m!==null;){var g=m;if(h=g.stateNode,g=g.tag,g!==5&&g!==26&&g!==27||h===null||p===null||(g=un(m,p),g!=null&&d.push(Od(m,g,h))),f)break;m=m.return}0<d.length&&(c=new l(c,u,null,n,i),s.push({event:c,listeners:d}))}}if(!(t&7)){a:{if(c=e===`mouseover`||e===`pointerover`,l=e===`mouseout`||e===`pointerout`,c&&n!==nn&&(u=n.relatedTarget||n.fromElement)&&(_t(u)||u[ut]))break a;if((l||c)&&(c=i.window===i?i:(c=i.ownerDocument)?c.defaultView||c.parentWindow:window,l?(u=n.relatedTarget||n.toElement,l=r,u=u?_t(u):null,u!==null&&(f=o(u),d=u.tag,u!==f||d!==5&&d!==27&&d!==6)&&(u=null)):(l=null,u=r),l!==u)){if(d=On,g=`onMouseLeave`,p=`onMouseEnter`,m=`mouse`,(e===`pointerout`||e===`pointerover`)&&(d=Bn,g=`onPointerLeave`,p=`onPointerEnter`,m=`pointer`),f=l==null?c:yt(l),h=u==null?c:yt(u),c=new d(g,m+`leave`,l,n,i),c.target=f,c.relatedTarget=h,g=null,_t(i)===r&&(d=new d(p,m+`enter`,u,n,i),d.target=h,d.relatedTarget=f,g=d),f=g,l&&u)b:{for(d=Ad,p=l,m=u,h=0,g=p;g;g=d(g))h++;g=0;for(var _=m;_;_=d(_))g++;for(;0<h-g;)p=d(p),h--;for(;0<g-h;)m=d(m),g--;for(;h--;){if(p===m||m!==null&&p===m.alternate){d=p;break b}p=d(p),m=d(m)}d=null}else d=null;l!==null&&jd(s,c,l,d,!1),u!==null&&f!==null&&jd(s,f,u,d,!0)}}a:{if(c=r?yt(r):window,l=c.nodeName&&c.nodeName.toLowerCase(),l===`select`||l===`input`&&c.type===`file`)var v=ur;else if(ir(c))if(dr)v=br;else{v=vr;var y=_r}else l=c.nodeName,!l||l.toLowerCase()!==`input`||c.type!==`checkbox`&&c.type!==`radio`?r&&Zt(r.elementType)&&(v=ur):v=yr;if(v&&=v(e,r)){ar(s,v,n,i);break a}y&&y(e,c,r),e===`focusout`&&r&&c.type===`number`&&r.memoizedProps.value!=null&&Ut(c,`number`,c.value)}switch(y=r?yt(r):window,e){case`focusin`:(ir(y)||y.contentEditable===`true`)&&(Ar=y,jr=r,Mr=null);break;case`focusout`:Mr=jr=Ar=null;break;case`mousedown`:Nr=!0;break;case`contextmenu`:case`mouseup`:case`dragend`:Nr=!1,Pr(s,n,i);break;case`selectionchange`:if(kr)break;case`keydown`:case`keyup`:Pr(s,n,i)}var b;if(Kn)b:{switch(e){case`compositionstart`:var x=`onCompositionStart`;break b;case`compositionend`:x=`onCompositionEnd`;break b;case`compositionupdate`:x=`onCompositionUpdate`;break b}x=void 0}else er?Qn(e,n)&&(x=`onCompositionEnd`):e===`keydown`&&n.keyCode===229&&(x=`onCompositionStart`);x&&(Yn&&n.locale!==`ko`&&(er||x!==`onCompositionStart`?x===`onCompositionEnd`&&er&&(b=_n()):(mn=i,hn=`value`in mn?mn.value:mn.textContent,er=!0)),y=kd(r,x),0<y.length&&(x=new Nn(x,e,null,n,i),s.push({event:x,listeners:y}),b?x.data=b:(b=$n(n),b!==null&&(x.data=b)))),(b=Jn?tr(e,n):nr(e,n))&&(x=kd(r,`onBeforeInput`),0<x.length&&(y=new Nn(`onBeforeInput`,`beforeinput`,null,n,i),s.push({event:y,listeners:x}),y.data=b)),_d(s,e,r,n,i)}Sd(s,t)})}function Od(e,t,n){return{instance:e,listener:t,currentTarget:n}}function kd(e,t){for(var n=t+`Capture`,r=[];e!==null;){var i=e,a=i.stateNode;if(i=i.tag,i!==5&&i!==26&&i!==27||a===null||(i=un(e,n),i!=null&&r.unshift(Od(e,i,a)),i=un(e,t),i!=null&&r.push(Od(e,i,a))),e.tag===3)return r;e=e.return}return[]}function Ad(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function jd(e,t,n,r,i){for(var a=t._reactName,o=[];n!==null&&n!==r;){var s=n,c=s.alternate,l=s.stateNode;if(s=s.tag,c!==null&&c===r)break;s!==5&&s!==26&&s!==27||l===null||(c=l,i?(l=un(n,a),l!=null&&o.unshift(Od(n,l,c))):i||(l=un(n,a),l!=null&&o.push(Od(n,l,c)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var Md=/\r\n?/g,Nd=/\u0000|\uFFFD/g;function Pd(e){return(typeof e==`string`?e:``+e).replace(Md,`
|
|
10
10
|
`).replace(Nd,``)}function Fd(e,t){return t=Pd(t),Pd(e)===t}function Id(e,t,n,r,a,o){switch(n){case`children`:typeof r==`string`?t===`body`||t===`textarea`&&r===``||qt(e,r):(typeof r==`number`||typeof r==`bigint`)&&t!==`body`&&qt(e,``+r);break;case`className`:jt(e,`class`,r);break;case`tabIndex`:jt(e,`tabindex`,r);break;case`dir`:case`role`:case`viewBox`:case`width`:case`height`:jt(e,n,r);break;case`style`:Xt(e,r,o);break;case`data`:if(t!==`object`){jt(e,`data`,r);break}case`src`:case`href`:if(r===``&&(t!==`a`||n!==`href`)){e.removeAttribute(n);break}if(r==null||typeof r==`function`||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=en(``+r),e.setAttribute(n,r);break;case`action`:case`formAction`:if(typeof r==`function`){e.setAttribute(n,`javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')`);break}else typeof o==`function`&&(n===`formAction`?(t!==`input`&&Id(e,t,`name`,a.name,a,null),Id(e,t,`formEncType`,a.formEncType,a,null),Id(e,t,`formMethod`,a.formMethod,a,null),Id(e,t,`formTarget`,a.formTarget,a,null)):(Id(e,t,`encType`,a.encType,a,null),Id(e,t,`method`,a.method,a,null),Id(e,t,`target`,a.target,a,null)));if(r==null||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=en(``+r),e.setAttribute(n,r);break;case`onClick`:r!=null&&(e.onclick=tn);break;case`onScroll`:r!=null&&X(`scroll`,e);break;case`onScrollEnd`:r!=null&&X(`scrollend`,e);break;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));e.innerHTML=n}}break;case`multiple`:e.multiple=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`muted`:e.muted=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`defaultValue`:case`defaultChecked`:case`innerHTML`:case`ref`:break;case`autoFocus`:break;case`xlinkHref`:if(r==null||typeof r==`function`||typeof r==`boolean`||typeof r==`symbol`){e.removeAttribute(`xlink:href`);break}n=en(``+r),e.setAttributeNS(`http://www.w3.org/1999/xlink`,`xlink:href`,n);break;case`contentEditable`:case`spellCheck`:case`draggable`:case`value`:case`autoReverse`:case`externalResourcesRequired`:case`focusable`:case`preserveAlpha`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``+r):e.removeAttribute(n);break;case`inert`:case`allowFullScreen`:case`async`:case`autoPlay`:case`controls`:case`default`:case`defer`:case`disabled`:case`disablePictureInPicture`:case`disableRemotePlayback`:case`formNoValidate`:case`hidden`:case`loop`:case`noModule`:case`noValidate`:case`open`:case`playsInline`:case`readOnly`:case`required`:case`reversed`:case`scoped`:case`seamless`:case`itemScope`:r&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``):e.removeAttribute(n);break;case`capture`:case`download`:!0===r?e.setAttribute(n,``):!1!==r&&r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,r):e.removeAttribute(n);break;case`cols`:case`rows`:case`size`:case`span`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`&&!isNaN(r)&&1<=r?e.setAttribute(n,r):e.removeAttribute(n);break;case`rowSpan`:case`start`:r==null||typeof r==`function`||typeof r==`symbol`||isNaN(r)?e.removeAttribute(n):e.setAttribute(n,r);break;case`popover`:X(`beforetoggle`,e),X(`toggle`,e),At(e,`popover`,r);break;case`xlinkActuate`:Mt(e,`http://www.w3.org/1999/xlink`,`xlink:actuate`,r);break;case`xlinkArcrole`:Mt(e,`http://www.w3.org/1999/xlink`,`xlink:arcrole`,r);break;case`xlinkRole`:Mt(e,`http://www.w3.org/1999/xlink`,`xlink:role`,r);break;case`xlinkShow`:Mt(e,`http://www.w3.org/1999/xlink`,`xlink:show`,r);break;case`xlinkTitle`:Mt(e,`http://www.w3.org/1999/xlink`,`xlink:title`,r);break;case`xlinkType`:Mt(e,`http://www.w3.org/1999/xlink`,`xlink:type`,r);break;case`xmlBase`:Mt(e,`http://www.w3.org/XML/1998/namespace`,`xml:base`,r);break;case`xmlLang`:Mt(e,`http://www.w3.org/XML/1998/namespace`,`xml:lang`,r);break;case`xmlSpace`:Mt(e,`http://www.w3.org/XML/1998/namespace`,`xml:space`,r);break;case`is`:At(e,`is`,r);break;case`innerText`:case`textContent`:break;default:(!(2<n.length)||n[0]!==`o`&&n[0]!==`O`||n[1]!==`n`&&n[1]!==`N`)&&(n=Qt.get(n)||n,At(e,n,r))}}function Ld(e,t,n,r,a,o){switch(n){case`style`:Xt(e,r,o);break;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));e.innerHTML=n}}break;case`children`:typeof r==`string`?qt(e,r):(typeof r==`number`||typeof r==`bigint`)&&qt(e,``+r);break;case`onScroll`:r!=null&&X(`scroll`,e);break;case`onScrollEnd`:r!=null&&X(`scrollend`,e);break;case`onClick`:r!=null&&(e.onclick=tn);break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`innerHTML`:case`ref`:break;case`innerText`:case`textContent`:break;default:if(!Ct.hasOwnProperty(n))a:{if(n[0]===`o`&&n[1]===`n`&&(a=n.endsWith(`Capture`),t=n.slice(2,a?n.length-7:void 0),o=e[lt]||null,o=o==null?null:o[n],typeof o==`function`&&e.removeEventListener(t,o,a),typeof r==`function`)){typeof o!=`function`&&o!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,r,a);break a}n in e?e[n]=r:!0===r?e.setAttribute(n,``):At(e,n,r)}}}function Rd(e,t,n){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`img`:X(`error`,e),X(`load`,e);var r=!1,a=!1,o;for(o in n)if(n.hasOwnProperty(o)){var s=n[o];if(s!=null)switch(o){case`src`:r=!0;break;case`srcSet`:a=!0;break;case`children`:case`dangerouslySetInnerHTML`:throw Error(i(137,t));default:Id(e,t,o,s,n,null)}}a&&Id(e,t,`srcSet`,n.srcSet,n,null),r&&Id(e,t,`src`,n.src,n,null);return;case`input`:X(`invalid`,e);var c=o=s=a=null,l=null,u=null;for(r in n)if(n.hasOwnProperty(r)){var d=n[r];if(d!=null)switch(r){case`name`:a=d;break;case`type`:s=d;break;case`checked`:l=d;break;case`defaultChecked`:u=d;break;case`value`:o=d;break;case`defaultValue`:c=d;break;case`children`:case`dangerouslySetInnerHTML`:if(d!=null)throw Error(i(137,t));break;default:Id(e,t,r,d,n,null)}}Ht(e,o,c,l,u,s,a,!1);return;case`select`:for(a in X(`invalid`,e),r=s=o=null,n)if(n.hasOwnProperty(a)&&(c=n[a],c!=null))switch(a){case`value`:o=c;break;case`defaultValue`:s=c;break;case`multiple`:r=c;default:Id(e,t,a,c,n,null)}t=o,n=s,e.multiple=!!r,t==null?n!=null&&Wt(e,!!r,n,!0):Wt(e,!!r,t,!1);return;case`textarea`:for(s in X(`invalid`,e),o=a=r=null,n)if(n.hasOwnProperty(s)&&(c=n[s],c!=null))switch(s){case`value`:r=c;break;case`defaultValue`:a=c;break;case`children`:o=c;break;case`dangerouslySetInnerHTML`:if(c!=null)throw Error(i(91));break;default:Id(e,t,s,c,n,null)}Kt(e,r,a,o);return;case`option`:for(l in n)if(n.hasOwnProperty(l)&&(r=n[l],r!=null))switch(l){case`selected`:e.selected=r&&typeof r!=`function`&&typeof r!=`symbol`;break;default:Id(e,t,l,r,n,null)}return;case`dialog`:X(`beforetoggle`,e),X(`toggle`,e),X(`cancel`,e),X(`close`,e);break;case`iframe`:case`object`:X(`load`,e);break;case`video`:case`audio`:for(r=0;r<bd.length;r++)X(bd[r],e);break;case`image`:X(`error`,e),X(`load`,e);break;case`details`:X(`toggle`,e);break;case`embed`:case`source`:case`link`:X(`error`,e),X(`load`,e);case`area`:case`base`:case`br`:case`col`:case`hr`:case`keygen`:case`meta`:case`param`:case`track`:case`wbr`:case`menuitem`:for(u in n)if(n.hasOwnProperty(u)&&(r=n[u],r!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:throw Error(i(137,t));default:Id(e,t,u,r,n,null)}return;default:if(Zt(t)){for(d in n)n.hasOwnProperty(d)&&(r=n[d],r!==void 0&&Ld(e,t,d,r,n,void 0));return}}for(c in n)n.hasOwnProperty(c)&&(r=n[c],r!=null&&Id(e,t,c,r,n,null))}function zd(e,t,n,r){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`input`:var a=null,o=null,s=null,c=null,l=null,u=null,d=null;for(m in n){var f=n[m];if(n.hasOwnProperty(m)&&f!=null)switch(m){case`checked`:break;case`value`:break;case`defaultValue`:l=f;default:r.hasOwnProperty(m)||Id(e,t,m,null,r,f)}}for(var p in r){var m=r[p];if(f=n[p],r.hasOwnProperty(p)&&(m!=null||f!=null))switch(p){case`type`:o=m;break;case`name`:a=m;break;case`checked`:u=m;break;case`defaultChecked`:d=m;break;case`value`:s=m;break;case`defaultValue`:c=m;break;case`children`:case`dangerouslySetInnerHTML`:if(m!=null)throw Error(i(137,t));break;default:m!==f&&Id(e,t,p,m,r,f)}}Vt(e,s,c,l,u,d,o,a);return;case`select`:for(o in m=s=c=p=null,n)if(l=n[o],n.hasOwnProperty(o)&&l!=null)switch(o){case`value`:break;case`multiple`:m=l;default:r.hasOwnProperty(o)||Id(e,t,o,null,r,l)}for(a in r)if(o=r[a],l=n[a],r.hasOwnProperty(a)&&(o!=null||l!=null))switch(a){case`value`:p=o;break;case`defaultValue`:c=o;break;case`multiple`:s=o;default:o!==l&&Id(e,t,a,o,r,l)}t=c,n=s,r=m,p==null?!!r!=!!n&&(t==null?Wt(e,!!n,n?[]:``,!1):Wt(e,!!n,t,!0)):Wt(e,!!n,p,!1);return;case`textarea`:for(c in m=p=null,n)if(a=n[c],n.hasOwnProperty(c)&&a!=null&&!r.hasOwnProperty(c))switch(c){case`value`:break;case`children`:break;default:Id(e,t,c,null,r,a)}for(s in r)if(a=r[s],o=n[s],r.hasOwnProperty(s)&&(a!=null||o!=null))switch(s){case`value`:p=a;break;case`defaultValue`:m=a;break;case`children`:break;case`dangerouslySetInnerHTML`:if(a!=null)throw Error(i(91));break;default:a!==o&&Id(e,t,s,a,r,o)}Gt(e,p,m);return;case`option`:for(var h in n)if(p=n[h],n.hasOwnProperty(h)&&p!=null&&!r.hasOwnProperty(h))switch(h){case`selected`:e.selected=!1;break;default:Id(e,t,h,null,r,p)}for(l in r)if(p=r[l],m=n[l],r.hasOwnProperty(l)&&p!==m&&(p!=null||m!=null))switch(l){case`selected`:e.selected=p&&typeof p!=`function`&&typeof p!=`symbol`;break;default:Id(e,t,l,p,r,m)}return;case`img`:case`link`:case`area`:case`base`:case`br`:case`col`:case`embed`:case`hr`:case`keygen`:case`meta`:case`param`:case`source`:case`track`:case`wbr`:case`menuitem`:for(var g in n)p=n[g],n.hasOwnProperty(g)&&p!=null&&!r.hasOwnProperty(g)&&Id(e,t,g,null,r,p);for(u in r)if(p=r[u],m=n[u],r.hasOwnProperty(u)&&p!==m&&(p!=null||m!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:if(p!=null)throw Error(i(137,t));break;default:Id(e,t,u,p,r,m)}return;default:if(Zt(t)){for(var _ in n)p=n[_],n.hasOwnProperty(_)&&p!==void 0&&!r.hasOwnProperty(_)&&Ld(e,t,_,void 0,r,p);for(d in r)p=r[d],m=n[d],!r.hasOwnProperty(d)||p===m||p===void 0&&m===void 0||Ld(e,t,d,p,r,m);return}}for(var v in n)p=n[v],n.hasOwnProperty(v)&&p!=null&&!r.hasOwnProperty(v)&&Id(e,t,v,null,r,p);for(f in r)p=r[f],m=n[f],!r.hasOwnProperty(f)||p===m||p==null&&m==null||Id(e,t,f,p,r,m)}function Bd(e){switch(e){case`css`:case`script`:case`font`:case`img`:case`image`:case`input`:case`link`:return!0;default:return!1}}function Vd(){if(typeof performance.getEntriesByType==`function`){for(var e=0,t=0,n=performance.getEntriesByType(`resource`),r=0;r<n.length;r++){var i=n[r],a=i.transferSize,o=i.initiatorType,s=i.duration;if(a&&s&&Bd(o)){for(o=0,s=i.responseEnd,r+=1;r<n.length;r++){var c=n[r],l=c.startTime;if(l>s)break;var u=c.transferSize,d=c.initiatorType;u&&Bd(d)&&(c=c.responseEnd,o+=u*(c<s?1:(s-l)/(c-l)))}if(--r,t+=8*(a+o)/(i.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e==`number`)?e:5}var Hd=null,Ud=null;function Wd(e){return e.nodeType===9?e:e.ownerDocument}function Gd(e){switch(e){case`http://www.w3.org/2000/svg`:return 1;case`http://www.w3.org/1998/Math/MathML`:return 2;default:return 0}}function Kd(e,t){if(e===0)switch(t){case`svg`:return 1;case`math`:return 2;default:return 0}return e===1&&t===`foreignObject`?0:e}function qd(e,t){return e===`textarea`||e===`noscript`||typeof t.children==`string`||typeof t.children==`number`||typeof t.children==`bigint`||typeof t.dangerouslySetInnerHTML==`object`&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Jd=null;function Yd(){var e=window.event;return e&&e.type===`popstate`?e===Jd?!1:(Jd=e,!0):(Jd=null,!1)}var Xd=typeof setTimeout==`function`?setTimeout:void 0,Zd=typeof clearTimeout==`function`?clearTimeout:void 0,Qd=typeof Promise==`function`?Promise:void 0,$d=typeof queueMicrotask==`function`?queueMicrotask:Qd===void 0?Xd:function(e){return Qd.resolve(null).then(e).catch(ef)};function ef(e){setTimeout(function(){throw e})}function tf(e){return e===`head`}function nf(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n===`/$`||n===`/&`){if(r===0){e.removeChild(i),Lp(t);return}r--}else if(n===`$`||n===`$?`||n===`$~`||n===`$!`||n===`&`)r++;else if(n===`html`)_f(e.ownerDocument.documentElement);else if(n===`head`){n=e.ownerDocument.head,_f(n);for(var a=n.firstChild;a;){var o=a.nextSibling,s=a.nodeName;a[ht]||s===`SCRIPT`||s===`STYLE`||s===`LINK`&&a.rel.toLowerCase()===`stylesheet`||n.removeChild(a),a=o}}else n===`body`&&_f(e.ownerDocument.body);n=i}while(n);Lp(t)}function rf(e,t){var n=e;e=0;do{var r=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display=`none`):(n.style.display=n._stashedDisplay||``,n.getAttribute(`style`)===``&&n.removeAttribute(`style`)):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=``):n.nodeValue=n._stashedText||``),r&&r.nodeType===8)if(n=r.data,n===`/$`){if(e===0)break;e--}else n!==`$`&&n!==`$?`&&n!==`$~`&&n!==`$!`||e++;n=r}while(n)}function af(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case`HTML`:case`HEAD`:case`BODY`:af(n),gt(n);continue;case`SCRIPT`:case`STYLE`:continue;case`LINK`:if(n.rel.toLowerCase()===`stylesheet`)continue}e.removeChild(n)}}function of(e,t,n,r){for(;e.nodeType===1;){var i=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&(e.nodeName!==`INPUT`||e.type!==`hidden`))break}else if(!r)if(t===`input`&&e.type===`hidden`){var a=i.name==null?null:``+i.name;if(i.type===`hidden`&&e.getAttribute(`name`)===a)return e}else return e;else if(!e[ht])switch(t){case`meta`:if(!e.hasAttribute(`itemprop`))break;return e;case`link`:if(a=e.getAttribute(`rel`),a===`stylesheet`&&e.hasAttribute(`data-precedence`)||a!==i.rel||e.getAttribute(`href`)!==(i.href==null||i.href===``?null:i.href)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin)||e.getAttribute(`title`)!==(i.title==null?null:i.title))break;return e;case`style`:if(e.hasAttribute(`data-precedence`))break;return e;case`script`:if(a=e.getAttribute(`src`),(a!==(i.src==null?null:i.src)||e.getAttribute(`type`)!==(i.type==null?null:i.type)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin))&&a&&e.hasAttribute(`async`)&&!e.hasAttribute(`itemprop`))break;return e;default:return e}if(e=ff(e.nextSibling),e===null)break}return null}function sf(e,t,n){if(t===``)return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!n||(e=ff(e.nextSibling),e===null))return null;return e}function cf(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!t||(e=ff(e.nextSibling),e===null))return null;return e}function lf(e){return e.data===`$?`||e.data===`$~`}function uf(e){return e.data===`$!`||e.data===`$?`&&e.ownerDocument.readyState!==`loading`}function df(e,t){var n=e.ownerDocument;if(e.data===`$~`)e._reactRetry=t;else if(e.data!==`$?`||n.readyState!==`loading`)t();else{var r=function(){t(),n.removeEventListener(`DOMContentLoaded`,r)};n.addEventListener(`DOMContentLoaded`,r),e._reactRetry=r}}function ff(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t===`$`||t===`$!`||t===`$?`||t===`$~`||t===`&`||t===`F!`||t===`F`)break;if(t===`/$`||t===`/&`)return null}}return e}var pf=null;function mf(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`/$`||n===`/&`){if(t===0)return ff(e.nextSibling);t--}else n!==`$`&&n!==`$!`&&n!==`$?`&&n!==`$~`&&n!==`&`||t++}e=e.nextSibling}return null}function hf(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`$`||n===`$!`||n===`$?`||n===`$~`||n===`&`){if(t===0)return e;t--}else n!==`/$`&&n!==`/&`||t++}e=e.previousSibling}return null}function gf(e,t,n){switch(t=Wd(n),e){case`html`:if(e=t.documentElement,!e)throw Error(i(452));return e;case`head`:if(e=t.head,!e)throw Error(i(453));return e;case`body`:if(e=t.body,!e)throw Error(i(454));return e;default:throw Error(i(451))}}function _f(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);gt(e)}var vf=new Map,yf=new Set;function bf(e){return typeof e.getRootNode==`function`?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var xf=F.d;F.d={f:Sf,r:Cf,D:Ef,C:Df,L:Of,m:kf,X:jf,S:Af,M:Mf};function Sf(){var e=xf.f(),t=Su();return e||t}function Cf(e){var t=vt(e);t!==null&&t.tag===5&&t.type===`form`?Ds(t):xf.r(e)}var wf=typeof document>`u`?null:document;function Tf(e,t,n){var r=wf;if(r&&typeof t==`string`&&t){var i=Bt(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),yf.has(i)||(yf.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),Rd(t,`link`,e),xt(t),r.head.appendChild(t)))}}function Ef(e){xf.D(e),Tf(`dns-prefetch`,e,null)}function Df(e,t){xf.C(e,t),Tf(`preconnect`,e,t)}function Of(e,t,n){xf.L(e,t,n);var r=wf;if(r&&e&&t){var i=`link[rel="preload"][as="`+Bt(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+Bt(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+Bt(n.imageSizes)+`"]`)):i+=`[href="`+Bt(e)+`"]`;var a=i;switch(t){case`style`:a=Pf(e);break;case`script`:a=Rf(e)}vf.has(a)||(e=p({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),vf.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(Ff(a))||t===`script`&&r.querySelector(zf(a))||(t=r.createElement(`link`),Rd(t,`link`,e),xt(t),r.head.appendChild(t)))}}function kf(e,t){xf.m(e,t);var n=wf;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel="modulepreload"][as="`+Bt(r)+`"][href="`+Bt(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=Rf(e)}if(!vf.has(a)&&(e=p({rel:`modulepreload`,href:e},t),vf.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(zf(a)))return}r=n.createElement(`link`),Rd(r,`link`,e),xt(r),n.head.appendChild(r)}}}function Af(e,t,n){xf.S(e,t,n);var r=wf;if(r&&e){var i=bt(r).hoistableStyles,a=Pf(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(Ff(a)))s.loading=5;else{e=p({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=vf.get(a))&&Hf(e,n);var c=o=r.createElement(`link`);xt(c),Rd(c,`link`,e),c._p=new Promise(function(e,t){c.onload=e,c.onerror=t}),c.addEventListener(`load`,function(){s.loading|=1}),c.addEventListener(`error`,function(){s.loading|=2}),s.loading|=4,Vf(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}}function jf(e,t){xf.X(e,t);var n=wf;if(n&&e){var r=bt(n).hoistableScripts,i=Rf(e),a=r.get(i);a||(a=n.querySelector(zf(i)),a||(e=p({src:e,async:!0},t),(t=vf.get(i))&&Uf(e,t),a=n.createElement(`script`),xt(a),Rd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Mf(e,t){xf.M(e,t);var n=wf;if(n&&e){var r=bt(n).hoistableScripts,i=Rf(e),a=r.get(i);a||(a=n.querySelector(zf(i)),a||(e=p({src:e,async:!0,type:`module`},t),(t=vf.get(i))&&Uf(e,t),a=n.createElement(`script`),xt(a),Rd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Nf(e,t,n,r){var a=(a=ce.current)?bf(a):null;if(!a)throw Error(i(446));switch(e){case`meta`:case`title`:return null;case`style`:return typeof n.precedence==`string`&&typeof n.href==`string`?(t=Pf(n.href),n=bt(a).hoistableStyles,r=n.get(t),r||(r={type:`style`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};case`link`:if(n.rel===`stylesheet`&&typeof n.href==`string`&&typeof n.precedence==`string`){e=Pf(n.href);var o=bt(a).hoistableStyles,s=o.get(e);if(s||(a=a.ownerDocument||a,s={type:`stylesheet`,instance:null,count:0,state:{loading:0,preload:null}},o.set(e,s),(o=a.querySelector(Ff(e)))&&!o._p&&(s.instance=o,s.state.loading=5),vf.has(e)||(n={rel:`preload`,as:`style`,href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},vf.set(e,n),o||Lf(a,e,n,s.state))),t&&r===null)throw Error(i(528,``));return s}if(t&&r!==null)throw Error(i(529,``));return null;case`script`:return t=n.async,n=n.src,typeof n==`string`&&t&&typeof t!=`function`&&typeof t!=`symbol`?(t=Rf(n),n=bt(a).hoistableScripts,r=n.get(t),r||(r={type:`script`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};default:throw Error(i(444,e))}}function Pf(e){return`href="`+Bt(e)+`"`}function Ff(e){return`link[rel="stylesheet"][`+e+`]`}function If(e){return p({},e,{"data-precedence":e.precedence,precedence:null})}function Lf(e,t,n,r){e.querySelector(`link[rel="preload"][as="style"][`+t+`]`)?r.loading=1:(t=e.createElement(`link`),r.preload=t,t.addEventListener(`load`,function(){return r.loading|=1}),t.addEventListener(`error`,function(){return r.loading|=2}),Rd(t,`link`,n),xt(t),e.head.appendChild(t))}function Rf(e){return`[src="`+Bt(e)+`"]`}function zf(e){return`script[async]`+e}function Bf(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~="`+Bt(n.href)+`"]`);if(r)return t.instance=r,xt(r),r;var a=p({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement(`style`),xt(r),Rd(r,`style`,a),Vf(r,n.precedence,e),t.instance=r;case`stylesheet`:a=Pf(n.href);var o=e.querySelector(Ff(a));if(o)return t.state.loading|=4,t.instance=o,xt(o),o;r=If(n),(a=vf.get(a))&&Hf(r,a),o=(e.ownerDocument||e).createElement(`link`),xt(o);var s=o;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),Rd(o,`link`,r),t.state.loading|=4,Vf(o,n.precedence,e),t.instance=o;case`script`:return o=Rf(n.src),(a=e.querySelector(zf(o)))?(t.instance=a,xt(a),a):(r=n,(a=vf.get(o))&&(r=p({},n),Uf(r,a)),e=e.ownerDocument||e,a=e.createElement(`script`),xt(a),Rd(a,`link`,r),e.head.appendChild(a),t.instance=a);case`void`:return null;default:throw Error(i(443,t.type))}else t.type===`stylesheet`&&!(t.state.loading&4)&&(r=t.instance,t.state.loading|=4,Vf(r,n.precedence,e));return t.instance}function Vf(e,t,n){for(var r=n.querySelectorAll(`link[rel="stylesheet"][data-precedence],style[data-precedence]`),i=r.length?r[r.length-1]:null,a=i,o=0;o<r.length;o++){var s=r[o];if(s.dataset.precedence===t)a=s;else if(a!==i)break}a?a.parentNode.insertBefore(e,a.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function Hf(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.title??=t.title}function Uf(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.integrity??=t.integrity}var Wf=null;function Gf(e,t,n){if(Wf===null){var r=new Map,i=Wf=new Map;i.set(n,r)}else i=Wf,r=i.get(n),r||(r=new Map,i.set(n,r));if(r.has(e))return r;for(r.set(e,null),n=n.getElementsByTagName(e),i=0;i<n.length;i++){var a=n[i];if(!(a[ht]||a[ct]||e===`link`&&a.getAttribute(`rel`)===`stylesheet`)&&a.namespaceURI!==`http://www.w3.org/2000/svg`){var o=a.getAttribute(t)||``;o=e+o;var s=r.get(o);s?s.push(a):r.set(o,[a])}}return r}function Kf(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t===`title`?e.querySelector(`head > title`):null)}function qf(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case`meta`:case`title`:return!0;case`style`:if(typeof t.precedence!=`string`||typeof t.href!=`string`||t.href===``)break;return!0;case`link`:if(typeof t.rel!=`string`||typeof t.href!=`string`||t.href===``||t.onLoad||t.onError)break;switch(t.rel){case`stylesheet`:return e=t.disabled,typeof t.precedence==`string`&&e==null;default:return!0}case`script`:if(t.async&&typeof t.async!=`function`&&typeof t.async!=`symbol`&&!t.onLoad&&!t.onError&&t.src&&typeof t.src==`string`)return!0}return!1}function Jf(e){return!(e.type===`stylesheet`&&!(e.state.loading&3))}function Yf(e,t,n,r){if(n.type===`stylesheet`&&(typeof r.media!=`string`||!1!==matchMedia(r.media).matches)&&!(n.state.loading&4)){if(n.instance===null){var i=Pf(r.href),a=t.querySelector(Ff(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=Qf.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,xt(a);return}a=t.ownerDocument||t,r=If(r),(i=vf.get(i))&&Hf(r,i),a=a.createElement(`link`),xt(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),Rd(a,`link`,r),n.instance=a}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&!(n.state.loading&3)&&(e.count++,n=Qf.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}var Xf=0;function Zf(e,t){return e.stylesheets&&e.count===0&&ep(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&ep(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},6e4+t);0<e.imgBytes&&Xf===0&&(Xf=62500*Vd());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&ep(e,e.stylesheets),e.unsuspend)){var t=e.unsuspend;e.unsuspend=null,t()}},(e.imgBytes>Xf?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function Qf(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)ep(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var $f=null;function ep(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,$f=new Map,t.forEach(tp,e),$f=null,Qf.call(e))}function tp(e,t){if(!(t.state.loading&4)){var n=$f.get(e);if(n)var r=n.get(null);else{n=new Map,$f.set(e,n);for(var i=e.querySelectorAll(`link[data-precedence],style[data-precedence]`),a=0;a<i.length;a++){var o=i[a];(o.nodeName===`LINK`||o.getAttribute(`media`)!==`not all`)&&(n.set(o.dataset.precedence,o),r=o)}r&&n.set(null,r)}i=t.instance,o=i.getAttribute(`data-precedence`),a=n.get(o)||r,a===r&&n.set(null,i),n.set(o,i),this.count++,r=Qf.bind(this),i.addEventListener(`load`,r),i.addEventListener(`error`,r),a?a.parentNode.insertBefore(i,a.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(i,e.firstChild)),t.state.loading|=4}}var np={$$typeof:x,Provider:null,Consumer:null,_currentValue:ne,_currentValue2:ne,_threadCount:0};function rp(e,t,n,r,i,a,o,s,c){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Ze(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ze(0),this.hiddenUpdates=Ze(null),this.identifierPrefix=r,this.onUncaughtError=i,this.onCaughtError=a,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=c,this.incompleteTransitions=new Map}function ip(e,t,n,r,i,a,o,s,c,l,u,d){return e=new rp(e,t,n,o,c,l,u,d,s),t=1,!0===a&&(t|=24),a=ci(3,null,null,t),e.current=a,a.stateNode=e,t=ca(),t.refCount++,e.pooledCache=t,t.refCount++,a.memoizedState={element:r,isDehydrated:n,cache:t},Va(a),e}function ap(e){return e?(e=oi,e):oi}function op(e,t,n,r,i,a){i=ap(i),r.context===null?r.context=i:r.pendingContext=i,r=Ua(t),r.payload={element:n},a=a===void 0?null:a,a!==null&&(r.callback=a),n=Wa(e,r,t),n!==null&&(_u(n,e,t),Ga(n,e,t))}function sp(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function cp(e,t){sp(e,t),(e=e.alternate)&&sp(e,t)}function lp(e){if(e.tag===13||e.tag===31){var t=ri(e,67108864);t!==null&&_u(t,e,67108864),cp(e,67108864)}}function up(e){if(e.tag===13||e.tag===31){var t=hu();t=rt(t);var n=ri(e,t);n!==null&&_u(n,e,t),cp(e,t)}}var dp=!0;function fp(e,t,n,r){var i=P.T;P.T=null;var a=F.p;try{F.p=2,mp(e,t,n,r)}finally{F.p=a,P.T=i}}function pp(e,t,n,r){var i=P.T;P.T=null;var a=F.p;try{F.p=8,mp(e,t,n,r)}finally{F.p=a,P.T=i}}function mp(e,t,n,r){if(dp){var i=hp(r);if(i===null)Dd(e,t,r,gp,n),Dp(e,r);else if(kp(i,e,t,n,r))r.stopPropagation();else if(Dp(e,r),t&4&&-1<Ep.indexOf(e)){for(;i!==null;){var a=vt(i);if(a!==null)switch(a.tag){case 3:if(a=a.stateNode,a.current.memoizedState.isDehydrated){var o=Ke(a.pendingLanes);if(o!==0){var s=a;for(s.pendingLanes|=2,s.entangledLanes|=2;o;){var c=1<<31-ze(o);s.entanglements[1]|=c,o&=~c}od(a),!(Bl&6)&&(iu=De()+500,sd(0,!1))}}break;case 31:case 13:s=ri(a,2),s!==null&&_u(s,a,2),Su(),cp(a,2)}if(a=hp(r),a===null&&Dd(e,t,r,gp,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else Dd(e,t,r,null,n)}}function hp(e){return e=rn(e),_p(e)}var gp=null;function _p(e){if(gp=null,e=_t(e),e!==null){var t=o(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=s(t),e!==null)return e;e=null}else if(n===31){if(e=c(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return gp=e,null}function vp(e){switch(e){case`beforetoggle`:case`cancel`:case`click`:case`close`:case`contextmenu`:case`copy`:case`cut`:case`auxclick`:case`dblclick`:case`dragend`:case`dragstart`:case`drop`:case`focusin`:case`focusout`:case`input`:case`invalid`:case`keydown`:case`keypress`:case`keyup`:case`mousedown`:case`mouseup`:case`paste`:case`pause`:case`play`:case`pointercancel`:case`pointerdown`:case`pointerup`:case`ratechange`:case`reset`:case`resize`:case`seeked`:case`submit`:case`toggle`:case`touchcancel`:case`touchend`:case`touchstart`:case`volumechange`:case`change`:case`selectionchange`:case`textInput`:case`compositionstart`:case`compositionend`:case`compositionupdate`:case`beforeblur`:case`afterblur`:case`beforeinput`:case`blur`:case`fullscreenchange`:case`focus`:case`hashchange`:case`popstate`:case`select`:case`selectstart`:return 2;case`drag`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`mousemove`:case`mouseout`:case`mouseover`:case`pointermove`:case`pointerout`:case`pointerover`:case`scroll`:case`touchmove`:case`wheel`:case`mouseenter`:case`mouseleave`:case`pointerenter`:case`pointerleave`:return 8;case`message`:switch(Oe()){case ke:return 2;case Ae:return 8;case je:case Me:return 32;case Ne:return 268435456;default:return 32}default:return 32}}var yp=!1,bp=null,xp=null,Sp=null,Cp=new Map,wp=new Map,Tp=[],Ep=`mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset`.split(` `);function Dp(e,t){switch(e){case`focusin`:case`focusout`:bp=null;break;case`dragenter`:case`dragleave`:xp=null;break;case`mouseover`:case`mouseout`:Sp=null;break;case`pointerover`:case`pointerout`:Cp.delete(t.pointerId);break;case`gotpointercapture`:case`lostpointercapture`:wp.delete(t.pointerId)}}function Op(e,t,n,r,i,a){return e===null||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[i]},t!==null&&(t=vt(t),t!==null&&lp(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function kp(e,t,n,r,i){switch(t){case`focusin`:return bp=Op(bp,e,t,n,r,i),!0;case`dragenter`:return xp=Op(xp,e,t,n,r,i),!0;case`mouseover`:return Sp=Op(Sp,e,t,n,r,i),!0;case`pointerover`:var a=i.pointerId;return Cp.set(a,Op(Cp.get(a)||null,e,t,n,r,i)),!0;case`gotpointercapture`:return a=i.pointerId,wp.set(a,Op(wp.get(a)||null,e,t,n,r,i)),!0}return!1}function Ap(e){var t=_t(e.target);if(t!==null){var n=o(t);if(n!==null){if(t=n.tag,t===13){if(t=s(n),t!==null){e.blockedOn=t,ot(e.priority,function(){up(n)});return}}else if(t===31){if(t=c(n),t!==null){e.blockedOn=t,ot(e.priority,function(){up(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function jp(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=hp(e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);nn=r,n.target.dispatchEvent(r),nn=null}else return t=vt(n),t!==null&&lp(t),e.blockedOn=n,!1;t.shift()}return!0}function Mp(e,t,n){jp(e)&&n.delete(t)}function Np(){yp=!1,bp!==null&&jp(bp)&&(bp=null),xp!==null&&jp(xp)&&(xp=null),Sp!==null&&jp(Sp)&&(Sp=null),Cp.forEach(Mp),wp.forEach(Mp)}function Pp(e,n){e.blockedOn===n&&(e.blockedOn=null,yp||(yp=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,Np)))}var Fp=null;function Ip(e){Fp!==e&&(Fp=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){Fp===e&&(Fp=null);for(var t=0;t<e.length;t+=3){var n=e[t],r=e[t+1],i=e[t+2];if(typeof r!=`function`){if(_p(r||n)===null)continue;break}var a=vt(n);a!==null&&(e.splice(t,3),t-=3,Ts(a,{pending:!0,data:i,method:n.method,action:r},r,i))}}))}function Lp(e){function t(t){return Pp(t,e)}bp!==null&&Pp(bp,e),xp!==null&&Pp(xp,e),Sp!==null&&Pp(Sp,e),Cp.forEach(t),wp.forEach(t);for(var n=0;n<Tp.length;n++){var r=Tp[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<Tp.length&&(n=Tp[0],n.blockedOn===null);)Ap(n),n.blockedOn===null&&Tp.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(r=0;r<n.length;r+=3){var i=n[r],a=n[r+1],o=i[lt]||null;if(typeof a==`function`)o||Ip(n);else if(o){var s=null;if(a&&a.hasAttribute(`formAction`)){if(i=a,o=a[lt]||null)s=o.formAction;else if(_p(i)!==null)continue}else s=o.action;typeof s==`function`?n[r+1]=s:(n.splice(r,3),r-=3),Ip(n)}}}function Rp(){function e(e){e.canIntercept&&e.info===`react-transition`&&e.intercept({handler:function(){return new Promise(function(e){return i=e})},focusReset:`manual`,scroll:`manual`})}function t(){i!==null&&(i(),i=null),r||setTimeout(n,20)}function n(){if(!r&&!navigation.transition){var e=navigation.currentEntry;e&&e.url!=null&&navigation.navigate(e.url,{state:e.getState(),info:`react-transition`,history:`replace`})}}if(typeof navigation==`object`){var r=!1,i=null;return navigation.addEventListener(`navigate`,e),navigation.addEventListener(`navigatesuccess`,t),navigation.addEventListener(`navigateerror`,t),setTimeout(n,100),function(){r=!0,navigation.removeEventListener(`navigate`,e),navigation.removeEventListener(`navigatesuccess`,t),navigation.removeEventListener(`navigateerror`,t),i!==null&&(i(),i=null)}}}function zp(e){this._internalRoot=e}Bp.prototype.render=zp.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(i(409));var n=t.current;op(n,hu(),e,t,null,null)},Bp.prototype.unmount=zp.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;op(e.current,2,null,e,null,null),Su(),t[ut]=null}};function Bp(e){this._internalRoot=e}Bp.prototype.unstable_scheduleHydration=function(e){if(e){var t=at();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Tp.length&&t!==0&&t<Tp[n].priority;n++);Tp.splice(n,0,e),n===0&&Ap(e)}};var Vp=n.version;if(Vp!==`19.2.7`)throw Error(i(527,Vp,`19.2.7`));F.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render==`function`?Error(i(188)):(e=Object.keys(e).join(`,`),Error(i(268,e)));return e=u(t),e=e===null?null:f(e),e=e===null?null:e.stateNode,e};var Hp={bundleType:0,version:`19.2.7`,rendererPackageName:`react-dom`,currentDispatcherRef:P,reconcilerVersion:`19.2.7`};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`){var Up=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Up.isDisabled&&Up.supportsFiber)try{Ie=Up.inject(Hp),Le=Up}catch{}}e.hydrateRoot=function(e,t,n){if(!a(e))throw Error(i(299));var r=!1,o=``,s=Js,c=Ys,l=Xs,u=null;return n!=null&&(!0===n.unstable_strictMode&&(r=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onUncaughtError!==void 0&&(s=n.onUncaughtError),n.onCaughtError!==void 0&&(c=n.onCaughtError),n.onRecoverableError!==void 0&&(l=n.onRecoverableError),n.formState!==void 0&&(u=n.formState)),t=ip(e,1,!0,t,n??null,r,o,u,s,c,l,Rp),t.context=ap(null),n=t.current,r=hu(),r=rt(r),o=Ua(r),o.callback=null,Wa(n,o,r),n=r,t.current.lanes=n,Qe(t,n),od(t),e[ut]=t.current,Td(e),new Bp(t)}})),ge=i(((e,t)=>{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=he()})),_e=`__TSS_CONTEXT`,ve=Symbol.for(`TSS_SERVER_FUNCTION`),ye=Symbol.for(`TSS_SERVER_FUNCTION_FACTORY`),be=`application/x-tss-framed`,xe={JSON:0,CHUNK:1,END:2,ERROR:3};`${be}`;var Se=/;\s*v=(\d+)/;function Ce(e){let t=e.match(Se);return t?parseInt(t[1],10):void 0}function we(e){let t=Ce(e);if(t!==void 0&&t!==1)throw Error(`Incompatible framed protocol version: server=${t}, client=1. Please ensure client and server are using compatible versions.`)}var Te=()=>window.__TSS_START_OPTIONS__;function Ee(e){return e?.isNotFound===!0}function De(e,t=String){let n=new URLSearchParams;for(let r in e){let i=e[r];i!==void 0&&n.set(r,t(i))}return n.toString()}function Oe(e){return e?e===`false`?!1:e===`true`?!0:e*0==0&&+e+``===e?+e:e:``}function ke(e){let t=new URLSearchParams(e),n=Object.create(null);for(let[e,r]of t.entries()){let t=n[e];t==null?n[e]=Oe(r):Array.isArray(t)?t.push(Oe(r)):n[e]=[t,Oe(r)]}return n}var Ae=Me(JSON.parse),je=Ne(JSON.stringify,JSON.parse);function Me(e){return t=>{t[0]===`?`&&(t=t.substring(1));let n=ke(t);for(let t in n){let r=n[t];if(typeof r==`string`)try{n[t]=e(r)}catch{}}return n}}function Ne(e,t){let n=typeof t==`function`;function r(r){if(typeof r==`object`&&r)try{return e(r)}catch{}else if(n&&typeof r==`string`)try{return t(r),e(r)}catch{}return r}return e=>{let t=De(e,r);return t?`?${t}`:``}}var Pe=`__root__`;function Fe(e){if(e.statusCode=e.statusCode||e.code||307,!e._builtLocation&&!e.reloadDocument&&typeof e.href==`string`)try{new URL(e.href),e.reloadDocument=!0}catch{}let t=new Headers(e.headers);e.href&&t.get(`Location`)===null&&t.set(`Location`,e.href);let n=new Response(null,{status:e.statusCode,headers:t});if(n.options=e,e.throw)throw n;return n}function Ie(e){return e instanceof Response&&!!e.options}function Le(e){if(typeof e==`object`&&e&&e.isSerializedRedirect)return Fe(e)}var Re=e=>{if(!e.rendered)return e.rendered=!0,e.onReady?.()},ze=e=>e.stores.matchesId.get().some(t=>e.stores.matchStores.get(t)?.get()._forcePending),Be=(e,t)=>!!(e.preload&&!e.router.stores.matchStores.has(t)),Ve=(e,t,n=!0)=>{let r={...e.router.options.context??{}},i=n?t:t-1;for(let t=0;t<=i;t++){let n=e.matches[t];if(!n)continue;let i=e.router.getMatch(n.id);i&&Object.assign(r,i.__routeContext,i.__beforeLoadContext)}return r},He=(e,t)=>{if(!e.matches.length)return;let n=t.routeId,r=e.matches.findIndex(t=>t.routeId===e.router.routeTree.id),i=r>=0?r:0,a=n?e.matches.findIndex(e=>e.routeId===n):e.firstBadMatchIndex??e.matches.length-1;a<0&&(a=i);for(let t=a;t>=0;t--){let n=e.matches[t];if(e.router.looseRoutesById[n.routeId].options.notFoundComponent)return t}return n?a:i},Ue=(e,t,n)=>{if(!(!Ie(n)&&!Ee(n)))throw Ie(n)&&n.redirectHandled&&!n.options.reloadDocument?n:(t&&(t._nonReactive.beforeLoadPromise?.resolve(),t._nonReactive.loaderPromise?.resolve(),t._nonReactive.beforeLoadPromise=void 0,t._nonReactive.loaderPromise=void 0,t._nonReactive.error=n,e.updateMatch(t.id,r=>({...r,status:Ie(n)?`redirected`:Ee(n)?`notFound`:r.status===`pending`?`success`:r.status,context:Ve(e,t.index),isFetching:!1,error:n})),Ee(n)&&!n.routeId&&(n.routeId=t.routeId),t._nonReactive.loadPromise?.resolve()),Ie(n)&&(e.rendered=!0,n.options._fromLocation=e.location,n.redirectHandled=!0,n=e.router.resolveRedirect(n)),n)},We=(e,t)=>{let n=e.router.getMatch(t);return!!(!n||n._nonReactive.dehydrated)},Ge=(e,t,n)=>{let r=Ve(e,n);e.updateMatch(t,e=>({...e,context:r}))},Ke=(e,t,n)=>{let{id:r,routeId:i}=e.matches[t],a=e.router.looseRoutesById[i];if(n instanceof Promise)throw n;e.firstBadMatchIndex??=t,Ue(e,e.router.getMatch(r),n);try{a.options.onError?.(n)}catch(t){n=t,Ue(e,e.router.getMatch(r),n)}e.updateMatch(r,e=>(e._nonReactive.beforeLoadPromise?.resolve(),e._nonReactive.beforeLoadPromise=void 0,e._nonReactive.loadPromise?.resolve(),{...e,error:n,status:`error`,isFetching:!1,updatedAt:Date.now(),abortController:new AbortController})),!e.preload&&!Ie(n)&&!Ee(n)&&(e.serialError??=n)},qe=(e,t,n,r)=>{if(r._nonReactive.pendingTimeout!==void 0)return;let i=n.options.pendingMs??e.router.options.defaultPendingMs;if(e.onReady&&!Be(e,t)&&(n.options.loader||n.options.beforeLoad||it(n))&&typeof i==`number`&&i!==1/0&&(n.options.pendingComponent??e.router.options?.defaultPendingComponent)){let t=setTimeout(()=>{Re(e)},i);r._nonReactive.pendingTimeout=t}},Je=(e,t,n)=>{let r=e.router.getMatch(t);if(!r._nonReactive.beforeLoadPromise&&!r._nonReactive.loaderPromise)return;qe(e,t,n,r);let i=()=>{let n=e.router.getMatch(t);n.preload&&(n.status===`redirected`||n.status===`notFound`)&&Ue(e,n,n.error)};return r._nonReactive.beforeLoadPromise?r._nonReactive.beforeLoadPromise.then(i):i()},Ye=(e,t,n,r)=>{let i=e.router.getMatch(t),a=i._nonReactive.loadPromise;i._nonReactive.loadPromise=te(()=>{a?.resolve(),a=void 0});let{paramsError:s,searchError:c}=i;s&&Ke(e,n,s),c&&Ke(e,n,c),qe(e,t,r,i);let l=new AbortController,u=!1,d=()=>{u||(u=!0,e.updateMatch(t,e=>({...e,isFetching:`beforeLoad`,fetchCount:e.fetchCount+1,abortController:l})))},f=()=>{i._nonReactive.beforeLoadPromise?.resolve(),i._nonReactive.beforeLoadPromise=void 0,e.updateMatch(t,e=>({...e,isFetching:!1}))};if(!r.options.beforeLoad){e.router.batch(()=>{d(),f()});return}i._nonReactive.beforeLoadPromise=te();let p={...Ve(e,n,!1),...i.__routeContext},{search:m,params:h,cause:g}=i,_=Be(e,t),v={search:m,abortController:l,params:h,preload:_,context:p,location:e.location,navigate:t=>e.router.navigate({...t,_fromLocation:e.location}),buildLocation:e.router.buildLocation,cause:_?`preload`:g,matches:e.matches,routeId:r.id,...e.router.options.additionalContext},y=r=>{if(r===void 0){e.router.batch(()=>{d(),f()});return}(Ie(r)||Ee(r))&&(d(),Ke(e,n,r)),e.router.batch(()=>{d(),e.updateMatch(t,e=>({...e,__beforeLoadContext:r})),f()})},b;try{if(b=r.options.beforeLoad(v),o(b))return d(),b.catch(t=>{Ke(e,n,t)}).then(y)}catch(t){d(),Ke(e,n,t)}y(b)},Xe=(e,t)=>{let{id:n,routeId:r}=e.matches[t],i=e.router.looseRoutesById[r],a=()=>c(),s=()=>Ye(e,n,t,i),c=()=>{if(We(e,n))return;let t=Je(e,n,i);return o(t)?t.then(s):s()};return a()},Ze=(e,t,n)=>{let r=e.router.getMatch(t);if(!r||!n.options.head&&!n.options.scripts&&!n.options.headers)return;let i={ssr:e.router.options.ssr,matches:e.matches,match:r,params:r.params,loaderData:r.loaderData};return Promise.all([n.options.head?.(i),n.options.scripts?.(i),n.options.headers?.(i)]).then(([e,t,n])=>({meta:e?.meta,links:e?.links,headScripts:e?.scripts,headers:n,scripts:t,styles:e?.styles}))},Qe=(e,t,n,r,i)=>{let a=t[r-1],{params:o,loaderDeps:s,abortController:c,cause:l}=e.router.getMatch(n),u=Ve(e,r),d=Be(e,n);return{params:o,deps:s,preload:!!d,parentMatchPromise:a,abortController:c,context:u,location:e.location,navigate:t=>e.router.navigate({...t,_fromLocation:e.location}),cause:d?`preload`:l,route:i,...e.router.options.additionalContext}},$e=async(e,t,n,r,i)=>{try{let a=e.router.getMatch(n);try{rt(i);let s=i.options.loader,c=typeof s==`function`?s:s?.handler,l=c?.(Qe(e,t,n,r,i)),u=!!c&&o(l);if((u||i._lazyPromise||i._componentsPromise||i.options.head||i.options.scripts||i.options.headers||a._nonReactive.minPendingPromise)&&e.updateMatch(n,e=>({...e,isFetching:`loader`})),c){let t=u?await l:l;Ue(e,e.router.getMatch(n),t),t!==void 0&&e.updateMatch(n,e=>({...e,loaderData:t}))}i._lazyPromise&&await i._lazyPromise;let d=a._nonReactive.minPendingPromise;d&&await d,i._componentsPromise&&await i._componentsPromise,e.updateMatch(n,t=>({...t,error:void 0,context:Ve(e,r),status:`success`,isFetching:!1,updatedAt:Date.now()}))}catch(t){let o=t;if(o?.name===`AbortError`){if(a.abortController.signal.aborted){a._nonReactive.loaderPromise?.resolve(),a._nonReactive.loaderPromise=void 0;return}e.updateMatch(n,t=>({...t,status:t.status===`pending`?`success`:t.status,isFetching:!1,context:Ve(e,r)}));return}let s=a._nonReactive.minPendingPromise;s&&await s,Ee(t)&&await i.options.notFoundComponent?.preload?.(),Ue(e,e.router.getMatch(n),t);try{i.options.onError?.(t)}catch(t){o=t,Ue(e,e.router.getMatch(n),t)}!Ie(o)&&!Ee(o)&&await rt(i,[`errorComponent`]),e.updateMatch(n,t=>({...t,error:o,context:Ve(e,r),status:`error`,isFetching:!1}))}}catch(t){let r=e.router.getMatch(n);r&&(r._nonReactive.loaderPromise=void 0),Ue(e,r,t)}},et=async(e,t,n)=>{async function r(r,a,c,l,d){let f=Date.now()-a.updatedAt,p=r?d.options.preloadStaleTime??e.router.options.defaultPreloadStaleTime??3e4:d.options.staleTime??e.router.options.defaultStaleTime??0,m=d.options.shouldReload,h=typeof m==`function`?m(Qe(e,t,i,n,d)):m,{status:g,invalid:_}=l,v=f>=p&&(!!e.forceStaleReload||l.cause===`enter`||c!==void 0&&c!==l.id);o=g===`success`&&(_||(h??v)),r&&d.options.preload===!1||(o&&!e.sync&&u?(s=!0,(async()=>{try{await $e(e,t,i,n,d);let r=e.router.getMatch(i);r._nonReactive.loaderPromise?.resolve(),r._nonReactive.loadPromise?.resolve(),r._nonReactive.loaderPromise=void 0,r._nonReactive.loadPromise=void 0}catch(t){Ie(t)&&await e.router.navigate(t.options)}})()):g!==`success`||o?await $e(e,t,i,n,d):Ge(e,i,n))}let{id:i,routeId:a}=e.matches[n],o=!1,s=!1,c=e.router.looseRoutesById[a],l=c.options.loader,u=((typeof l==`function`?void 0:l?.staleReloadMode)??e.router.options.defaultStaleReloadMode)!==`blocking`;if(We(e,i)){if(!e.router.getMatch(i))return e.matches[n];Ge(e,i,n)}else{let t=e.router.getMatch(i),o=e.router.stores.matchesId.get()[n],s=(o&&e.router.stores.matchStores.get(o)||null)?.routeId===a?o:e.router.stores.matches.get().find(e=>e.routeId===a)?.id,l=Be(e,i);if(t._nonReactive.loaderPromise){if(t.status===`success`&&!e.sync&&!t.preload&&u)return t;await t._nonReactive.loaderPromise;let n=e.router.getMatch(i),a=n._nonReactive.error||n.error;a&&Ue(e,n,a),n.status===`pending`&&await r(l,t,s,n,c)}else{let n=l&&!e.router.stores.matchStores.has(i),a=e.router.getMatch(i);a._nonReactive.loaderPromise=te(),n!==a.preload&&e.updateMatch(i,e=>({...e,preload:n})),await r(l,t,s,a,c)}}let d=e.router.getMatch(i);s||(d._nonReactive.loaderPromise?.resolve(),d._nonReactive.loadPromise?.resolve(),d._nonReactive.loadPromise=void 0),clearTimeout(d._nonReactive.pendingTimeout),d._nonReactive.pendingTimeout=void 0,s||(d._nonReactive.loaderPromise=void 0),d._nonReactive.dehydrated=void 0;let f=s?d.isFetching:!1;return f!==d.isFetching||d.invalid!==!1?(e.updateMatch(i,e=>({...e,isFetching:f,invalid:!1})),e.router.getMatch(i)):d};async function tt(e){let t=e,n=[];ze(t.router)&&Re(t);let r;for(let e=0;e<t.matches.length;e++){try{let n=Xe(t,e);o(n)&&await n}catch(e){if(Ie(e))throw e;if(Ee(e))r=e;else if(!t.preload)throw e;break}if(t.serialError||t.firstBadMatchIndex!=null)break}let i=t.firstBadMatchIndex??t.matches.length,a=r&&!t.preload?He(t,r):void 0,s=r&&t.preload?0:a===void 0?i:Math.min(a+1,i),c,l;for(let e=0;e<s;e++)n.push(et(t,n,e));try{await Promise.all(n)}catch{let e=await Promise.allSettled(n);for(let t of e){if(t.status!==`rejected`)continue;let e=t.reason;if(Ie(e))throw e;Ee(e)?c??=e:l??=e}if(l!==void 0)throw l}let u=c??(r&&!t.preload?r:void 0),d=t.firstBadMatchIndex===void 0?t.matches.length-1:t.firstBadMatchIndex;if(!u&&r&&t.preload)return t.matches;if(u){let e=He(t,u);e===void 0&&_();let n=t.matches[e],r=t.router.looseRoutesById[n.routeId],i=t.router.options?.defaultNotFoundComponent;!r.options.notFoundComponent&&i&&(r.options.notFoundComponent=i),u.routeId=n.routeId;let a=n.routeId===t.router.routeTree.id;t.updateMatch(n.id,e=>({...e,...a?{status:`success`,globalNotFound:!0,error:void 0}:{status:`notFound`,error:u},isFetching:!1})),d=e,await rt(r,[`notFoundComponent`])}else if(!t.preload){let e=t.matches[0];e.globalNotFound||t.router.getMatch(e.id)?.globalNotFound&&t.updateMatch(e.id,e=>({...e,globalNotFound:!1,error:void 0}))}if(t.serialError&&t.firstBadMatchIndex!==void 0){let e=t.router.looseRoutesById[t.matches[t.firstBadMatchIndex].routeId];await rt(e,[`errorComponent`])}for(let e=0;e<=d;e++){let{id:n,routeId:r}=t.matches[e],i=t.router.looseRoutesById[r];try{let e=Ze(t,n,i);if(e){let r=await e;t.updateMatch(n,e=>({...e,...r}))}}catch(e){console.error(`Error executing head for route ${r}:`,e)}}let f=Re(t);if(o(f)&&await f,u)throw u;if(t.serialError&&!t.preload&&!t.onReady)throw t.serialError;return t.matches}function nt(e,t){let n=t.map(t=>e.options[t]?.preload?.()).filter(Boolean);if(n.length!==0)return Promise.all(n)}function rt(e,t=at){!e._lazyLoaded&&e._lazyPromise===void 0&&(e.lazyFn?e._lazyPromise=e.lazyFn().then(t=>{let{id:n,...r}=t.options;Object.assign(e.options,r),e._lazyLoaded=!0,e._lazyPromise=void 0}):e._lazyLoaded=!0);let n=()=>e._componentsLoaded?void 0:t===at?(()=>{if(e._componentsPromise===void 0){let t=nt(e,at);t?e._componentsPromise=t.then(()=>{e._componentsLoaded=!0,e._componentsPromise=void 0}):e._componentsLoaded=!0}return e._componentsPromise})():nt(e,t);return e._lazyPromise?e._lazyPromise.then(n):n()}function it(e){for(let t of at)if(e.options[t]?.preload)return!0;return!1}var at=[`component`,`errorComponent`,`pendingComponent`,`notFoundComponent`];function ot(e){return{input:({url:t})=>{for(let n of e)t=ct(n,t);return t},output:({url:t})=>{for(let n=e.length-1;n>=0;n--)t=lt(e[n],t);return t}}}function st(e){let t=ce(e.basepath),n=`/${t}`,r=e.caseSensitive?n:n.toLowerCase(),i=`${r}/`;return{input:({url:t})=>{let a=e.caseSensitive?t.pathname:t.pathname.toLowerCase();return a===r?t.pathname=`/`:a.startsWith(i)&&(t.pathname=t.pathname.slice(n.length)),t},output:({url:e})=>(e.pathname=M([`/`,t,e.pathname]),e)}}function ct(e,t){let n=e?.input?.({url:t});if(n){if(typeof n==`string`)return new URL(n);if(n instanceof URL)return n}return t}function lt(e,t){let n=e?.output?.({url:t});if(n){if(typeof n==`string`)return new URL(n);if(n instanceof URL)return n}return t}function ut(e,t){let{createMutableStore:n,createReadonlyStore:r,batch:i,init:a}=t,o=new Map,s=new Map,l=new Map,u=n(e.status),d=n(e.loadedAt),f=n(e.isLoading),p=n(e.isTransitioning),m=n(e.location),h=n(e.resolvedLocation),g=n(e.statusCode),_=n(e.redirect),v=n([]),y=n([]),b=n([]),x=r(()=>dt(o,v.get())),S=r(()=>dt(s,y.get())),C=r(()=>dt(l,b.get())),w=r(()=>v.get()[0]),E=r(()=>v.get().some(e=>o.get(e)?.get().status===`pending`)),D=r(()=>({locationHref:m.get().href,resolvedLocationHref:h.get()?.href,status:u.get()})),O=r(()=>({status:u.get(),loadedAt:d.get(),isLoading:f.get(),isTransitioning:p.get(),matches:x.get(),location:m.get(),resolvedLocation:h.get(),statusCode:g.get(),redirect:_.get()})),k=c(64);function A(e){let t=k.get(e);return t||(t=r(()=>{let t=v.get();for(let n of t){let t=o.get(n);if(t&&t.routeId===e)return t.get()}}),k.set(e,t)),t}let j={status:u,loadedAt:d,isLoading:f,isTransitioning:p,location:m,resolvedLocation:h,statusCode:g,redirect:_,matchesId:v,pendingIds:y,cachedIds:b,matches:x,pendingMatches:S,cachedMatches:C,firstId:w,hasPending:E,matchRouteDeps:D,matchStores:o,pendingMatchStores:s,cachedMatchStores:l,__store:O,getRouteMatchStore:A,setMatches:M,setPending:N,setCached:ee};M(e.matches),a?.(j);function M(e){ft(e,o,v,n,i)}function N(e){ft(e,s,y,n,i)}function ee(e){ft(e,l,b,n,i)}return j}function dt(e,t){let n=[];for(let r of t){let t=e.get(r);t&&n.push(t.get())}return n}function ft(e,t,n,r,i){let o=e.map(e=>e.id),s=new Set(o);i(()=>{for(let e of t.keys())s.has(e)||t.delete(e);for(let n of e){let e=t.get(n.id);if(!e){let e=r(n);e.routeId=n.routeId,t.set(n.id,e);continue}e.routeId=n.routeId,e.get()!==n&&e.set(n)}a(n.get(),o)||n.set(o)})}var pt=`__TSR_index`,mt=`popstate`,ht=`beforeunload`;function gt(e){let t=e.getLocation(),n=new Set,r=r=>{t=e.getLocation(),n.forEach(e=>e({location:t,action:r}))},i=n=>{e.notifyOnIndexChange??!0?r(n):t=e.getLocation()},a=async({task:n,navigateOpts:r,...i})=>{if(r?.ignoreBlocker??!1){n();return}let a=e.getBlockers?.()??[],o=i.type===`PUSH`||i.type===`REPLACE`;if(typeof document<`u`&&a.length&&o)for(let n of a){let r=bt(i.path,i.state);if(await n.blockerFn({currentLocation:t,nextLocation:r,action:i.type})){e.onBlocked?.();return}}n()};return{get location(){return t},get length(){return e.getLength()},subscribers:n,subscribe:e=>(n.add(e),()=>{n.delete(e)}),push:(n,i,o)=>{let s=t.state[pt];i=_t(s+1,i),a({task:()=>{e.pushState(n,i),r({type:`PUSH`})},navigateOpts:o,type:`PUSH`,path:n,state:i})},replace:(n,i,o)=>{let s=t.state[pt];i=_t(s,i),a({task:()=>{e.replaceState(n,i),r({type:`REPLACE`})},navigateOpts:o,type:`REPLACE`,path:n,state:i})},go:(t,n)=>{a({task:()=>{e.go(t),i({type:`GO`,index:t})},navigateOpts:n,type:`GO`})},back:t=>{a({task:()=>{e.back(t?.ignoreBlocker??!1),i({type:`BACK`})},navigateOpts:t,type:`BACK`})},forward:t=>{a({task:()=>{e.forward(t?.ignoreBlocker??!1),i({type:`FORWARD`})},navigateOpts:t,type:`FORWARD`})},canGoBack:()=>t.state[pt]!==0,createHref:t=>e.createHref(t),block:t=>{if(!e.setBlockers)return()=>{};let n=e.getBlockers?.()??[];return e.setBlockers([...n,t]),()=>{let n=e.getBlockers?.()??[];e.setBlockers?.(n.filter(e=>e!==t))}},flush:()=>e.flush?.(),destroy:()=>e.destroy?.(),notify:r}}function _t(e,t){t||={};let n=xt();return{...t,key:n,__TSR_key:n,[pt]:e}}function vt(e){let t=e?.window??(typeof document<`u`?window:void 0),n=t.history.pushState,r=t.history.replaceState,i=[],a=()=>i,o=e=>i=e,s=e?.createHref??(e=>e),c=e?.parseLocation??(()=>bt(`${t.location.pathname}${t.location.search}${t.location.hash}`,t.history.state));if(!t.history.state?.__TSR_key&&!t.history.state?.key){let e=xt();t.history.replaceState({[pt]:0,key:e,__TSR_key:e},``)}let l=c(),u,d=!1,f=!1,p=!1,m=!1,h=()=>l,g,_,v=()=>{g&&(C._ignoreSubscribers=!0,(g.isPush?t.history.pushState:t.history.replaceState)(g.state,``,g.href),C._ignoreSubscribers=!1,g=void 0,_=void 0,u=void 0)},y=(e,t,n)=>{let r=s(t);_||(u=l),l=bt(t,n),g={href:r,state:n,isPush:g?.isPush||e===`push`},_||=Promise.resolve().then(()=>v())},b=e=>{l=c(),C.notify({type:e})},x=async()=>{if(f){f=!1;return}let e=c(),n=e.state[pt]-l.state[pt],r=n===1,i=n===-1,o=!r&&!i||d;d=!1;let s=o?`GO`:i?`BACK`:`FORWARD`,u=o?{type:`GO`,index:n}:{type:i?`BACK`:`FORWARD`};if(p)p=!1;else{let n=a();if(typeof document<`u`&&n.length){for(let r of n)if(await r.blockerFn({currentLocation:l,nextLocation:e,action:s})){f=!0,t.history.go(1),C.notify(u);return}}}l=c(),C.notify(u)},S=e=>{if(m){m=!1;return}let t=!1,n=a();if(typeof document<`u`&&n.length)for(let e of n){let n=e.enableBeforeUnload??!0;if(n===!0){t=!0;break}if(typeof n==`function`&&n()===!0){t=!0;break}}if(t)return e.preventDefault(),e.returnValue=``},C=gt({getLocation:h,getLength:()=>t.history.length,pushState:(e,t)=>y(`push`,e,t),replaceState:(e,t)=>y(`replace`,e,t),back:e=>(e&&(p=!0),m=!0,t.history.back()),forward:e=>{e&&(p=!0),m=!0,t.history.forward()},go:e=>{d=!0,t.history.go(e)},createHref:e=>s(e),flush:v,destroy:()=>{t.history.pushState=n,t.history.replaceState=r,t.removeEventListener(ht,S,{capture:!0}),t.removeEventListener(mt,x)},onBlocked:()=>{u&&l!==u&&(l=u)},getBlockers:a,setBlockers:o,notifyOnIndexChange:!1});return t.addEventListener(ht,S,{capture:!0}),t.addEventListener(mt,x),t.history.pushState=function(...e){let r=n.apply(t.history,e);return C._ignoreSubscribers||b(`PUSH`),r},t.history.replaceState=function(...e){let n=r.apply(t.history,e);return C._ignoreSubscribers||b(`REPLACE`),n},C}function yt(e){let t=e.replace(/[\x00-\x1f\x7f]/g,``);return t.startsWith(`//`)&&(t=`/`+t.replace(/^\/+/,``)),t}function bt(e,t){let n=yt(e),r=n.indexOf(`#`),i=n.indexOf(`?`),a=xt();return{href:n,pathname:n.substring(0,r>0?i>0?Math.min(r,i):r:i>0?i:n.length),hash:r>-1?n.substring(r):``,search:i>-1?n.slice(i,r===-1?void 0:r):``,state:t||{[pt]:0,key:a,__TSR_key:a}}}function xt(){return(Math.random()+1).toString(36).substring(7)}function St(e){return e instanceof Error?{name:e.name,message:e.message}:{data:e}}function Ct(e,t){let n=t,r=e;return{fromLocation:n,toLocation:r,pathChanged:n?.pathname!==r.pathname,hrefChanged:n?.href!==r.href,hashChanged:n?.hash!==r.hash}}var wt=new WeakMap,Tt=class{constructor(e,t){this.tempLocationKey=`${Math.round(Math.random()*1e7)}`,this._scroll={next:!0},this.shouldViewTransition=void 0,this.isViewTransitionTypesSupported=void 0,this.subscribers=new Set,this.routeBranchCache=new WeakMap,this.startTransition=e=>e(),this.update=e=>{let t=this.options,n=this.basepath??t?.basepath??`/`,r=this.basepath===void 0,i=t?.rewrite;if(this.options={...t,...e},this.isServer=this.options.isServer??typeof document>`u`,this.protocolAllowlist=new Set(this.options.protocolAllowlist),this.options.pathParamsAllowedCharacters&&(this.pathParamsDecoder=ne(this.options.pathParamsAllowedCharacters)),(!this.history||this.options.history&&this.options.history!==this.history)&&(this.options.history?this.history=this.options.history:this.history=vt()),this.origin=this.options.origin,this.origin||(window?.origin&&window.origin!==`null`?this.origin=window.origin:this.origin=`http://localhost`),this.history&&this.updateLatestLocation(),this.options.routeTree!==this.routeTree){this.routeTree=this.options.routeTree;let e;this.resolvePathCache=c(1e3),e=this.buildRouteTree(),this.setRoutes(e)}if(!this.stores&&this.latestLocation){let e=this.getStoreConfig(this);this.batch=e.batch,this.stores=ut(Ot(this.latestLocation),e),Jt(this)}let a=!1,o=this.options.basepath??`/`,s=this.options.rewrite;if(r||n!==o||i!==s){this.basepath=o;let e=[],t=ce(o);t&&t!==`/`&&e.push(st({basepath:o})),s&&e.push(s),this.rewrite=e.length===0?void 0:e.length===1?e[0]:ot(e),this.history&&this.updateLatestLocation(),a=!0}a&&this.stores&&this.stores.location.set(this.latestLocation),typeof window<`u`&&`CSS`in window&&typeof window.CSS?.supports==`function`&&(this.isViewTransitionTypesSupported=window.CSS.supports(`selector(:active-view-transition-type(a))`))},this.updateLatestLocation=()=>{this.latestLocation=this.parseLocation(this.history.location,this.latestLocation)},this.buildRouteTree=()=>{let e=l(this.routeTree,this.options.caseSensitive,(e,t)=>{e.init({originalIndex:t})});return this.options.routeMasks&&x(this.options.routeMasks,e.processedTree),e},this.subscribe=(e,t)=>{let n={eventType:e,fn:t};return this.subscribers.add(n),()=>{this.subscribers.delete(n)}},this.emit=e=>{this.subscribers.forEach(t=>{t.eventType===e.type&&t.fn(e)})},this.parseLocation=(e,t)=>{let n=({pathname:e,search:n,hash:r,href:i,state:a})=>{if(!this.rewrite&&!/[ \x00-\x1f\x7f\u0080-\uffff]/.test(e)){let i=this.options.parseSearch(n),o=this.options.stringifySearch(i);return{href:e+o+r,publicHref:e+o+r,pathname:h(e).path,external:!1,searchStr:o,search:f(t?.search,i),hash:h(r.slice(1)).path,state:S(t?.state,a)}}let o=new URL(i,this.origin),s=ct(this.rewrite,o),c=this.options.parseSearch(s.search),l=this.options.stringifySearch(c);return s.search=l,{href:s.href.replace(s.origin,``),publicHref:i,pathname:h(s.pathname).path,external:!!this.rewrite&&s.origin!==this.origin,searchStr:l,search:f(t?.search,c),hash:h(s.hash.slice(1)).path,state:S(t?.state,a)}},r=n(e),{__tempLocation:i,__tempKey:a}=r.state;if(i&&(!a||a===this.tempLocationKey)){let e=n(i);return e.state.key=r.state.key,e.state.__TSR_key=r.state.__TSR_key,delete e.state.__tempLocation,{...e,maskedLocation:r}}return r},this.resolvePathWithBase=(e,t)=>E({base:e,to:t.includes(`//`)?ae(t):t,trailingSlash:this.options.trailingSlash,cache:this.resolvePathCache}),this.matchRoutes=(e,t,n)=>typeof e==`string`?this.matchRoutesInternal({pathname:e,search:t},n):this.matchRoutesInternal(e,t),this.getMatchedRoutes=e=>At({pathname:e,routesById:this.routesById,processedTree:this.processedTree}),this.cancelMatch=e=>{let t=this.getMatch(e);t&&(t.abortController.abort(),clearTimeout(t._nonReactive.pendingTimeout),t._nonReactive.pendingTimeout=void 0)},this.cancelMatches=()=>{this.stores.pendingIds.get().forEach(e=>{this.cancelMatch(e)}),this.stores.matchesId.get().forEach(e=>{if(this.stores.pendingMatchStores.has(e))return;let t=this.stores.matchStores.get(e)?.get();t&&(t.status===`pending`||t.isFetching===`loader`)&&this.cancelMatch(e)})},this.buildLocation=e=>{let t=(t={})=>{let n=t._fromLocation||this.pendingBuiltLocation||this.latestLocation,r=this.matchRoutesLightweight(n);t.from;let i=t.unsafeRelative===`path`?n.pathname:t.from??r.fullPath,a=t.to?`${t.to}`:void 0,o=r.search,s=Object.assign(Object.create(null),r.params),c=a?.charCodeAt(0)===47?`/`:this.resolvePathWithBase(i,`.`),l=a?this.resolvePathWithBase(c,a):c,u=t.params===!1||t.params===null?Object.create(null):(t.params??!0)===!0?s:Object.assign(s,p(t.params,s)),d=this.routesByPath[O(l)],g;if(d)g=this.getRouteBranch(d);else if(l.includes(`$`))g=[];else{let e=this.getMatchedRoutes(l);g=e.matchedRoutes,this.options.notFoundRoute&&(!e.foundRoute||e.foundRoute.path!==`/`&&e.routeParams[`**`])&&(g=[...g,this.options.notFoundRoute])}if(g.length&&m(u))for(let e of g){let t=e.options.params?.stringify??e.options.stringifyParams;if(t)try{Object.assign(u,t(u))}catch{}}let _=e.leaveParams?l:h(N({path:l,params:u,decoder:this.pathParamsDecoder,server:this.isServer}).interpolatedPath).path,y=o;if(e._includeValidateSearch&&this.options.search?.strict){let e={};g.forEach(t=>{if(t.options.validateSearch)try{Object.assign(e,kt(t.options.validateSearch,{...e,...y}))}catch{}}),y=e}y=jt({search:y,dest:t,destRoutes:g,_includeValidateSearch:e._includeValidateSearch}),y=f(o,y);let b=this.options.stringifySearch(y),x=t.hash===!0?n.hash:t.hash?p(t.hash,n.hash):void 0,C=x?`#${x}`:``,w=t.state===!0?n.state:t.state?p(t.state,n.state):{};w=S(n.state,w);let E=`${_}${b}${C}`,D,k,A=!1;if(this.rewrite){let e=new URL(E,this.origin),t=lt(this.rewrite,e);D=e.href.replace(e.origin,``),t.origin===this.origin?k=t.pathname+t.search+t.hash:(k=t.href,A=!0)}else D=v(E),k=D;return{publicHref:k,href:D,pathname:_,search:y,searchStr:b,state:w,hash:x??``,external:A,unmaskOnReload:t.unmaskOnReload}},n=(n={},r)=>{let i=t(n),a=r?t(r):void 0;if(!a){let n=Object.create(null);if(this.options.routeMasks){let o=b(i.pathname,this.processedTree);if(o){Object.assign(n,o.rawParams);let{from:i,params:s,...c}=o.route,l=s===!1||s===null?Object.create(null):(s??!0)===!0?n:Object.assign(n,p(s,n));r={from:e.from,...c,params:l},a=t(r)}}}return a&&(i.maskedLocation=a),i};return e.mask?n(e,{from:e.from,...e.mask}):n(e)},this.commitLocation=async({viewTransition:e,ignoreBlocker:t,...n})=>{let r,i=()=>{let e=[`key`,`__TSR_key`,`__TSR_index`,`__hashScrollIntoViewOptions`];e.forEach(e=>{n.state[e]=this.latestLocation.state[e]});let t=g(n.state,this.latestLocation.state);return e.forEach(e=>{delete n.state[e]}),t},a=O(this.latestLocation.href)===O(n.href),o=this.commitLocationPromise;if(this.commitLocationPromise=te(()=>{o?.resolve(),o=void 0}),a&&i())this.load();else{let{maskedLocation:i,hashScrollIntoView:a,...o}=n;i&&(o={...i,state:{...i.state,__tempKey:void 0,__tempLocation:{...o,search:o.searchStr,state:{...o.state,__tempKey:void 0,__tempLocation:void 0,__TSR_key:void 0,key:void 0}}}},(o.unmaskOnReload??this.options.unmaskOnReload??!1)&&(o.state.__tempKey=this.tempLocationKey)),o.state.__hashScrollIntoViewOptions=a??this.options.defaultHashScrollIntoView??!0,this.shouldViewTransition=e,r=n.replace?`REPLACE`:`PUSH`,this.history[r===`REPLACE`?`replace`:`push`](o.publicHref,o.state,{ignoreBlocker:t})}return this._scroll.next=n.resetScroll??!0,this.history.subscribers.size||this.load(r?{action:{type:r}}:void 0),this.commitLocationPromise},this.buildAndCommitLocation=({replace:e,resetScroll:t,hashScrollIntoView:n,viewTransition:r,ignoreBlocker:i,href:a,...o}={})=>{if(a){let t=this.history.location.state.__TSR_index,n=bt(a,{__TSR_index:e?t:t+1}),r=new URL(n.pathname,this.origin);o.to=ct(this.rewrite,r).pathname,o.search=this.options.parseSearch(n.search),o.hash=n.hash.slice(1)}let s=this.buildLocation({...o,_includeValidateSearch:!0});this.pendingBuiltLocation=s;let c=this.commitLocation({...s,viewTransition:r,replace:e,resetScroll:t,hashScrollIntoView:n,ignoreBlocker:i});return Promise.resolve().then(()=>{this.pendingBuiltLocation===s&&(this.pendingBuiltLocation=void 0)}),c},this.navigate=async({to:e,reloadDocument:t,href:n,publicHref:r,...i})=>{let a=!1;if(n)try{new URL(`${n}`),a=!0}catch{}if(a&&!t&&(t=!0),t){if(e!==void 0||!n){let t=this.buildLocation({to:e,...i});n??=t.publicHref,r??=t.publicHref}let t=!a&&r?r:n;if(y(t,this.protocolAllowlist))return Promise.resolve();if(!i.ignoreBlocker){let e=this.history.getBlockers?.()??[];for(let t of e)if(t?.blockerFn&&await t.blockerFn({currentLocation:this.latestLocation,nextLocation:this.latestLocation,action:`PUSH`}))return Promise.resolve()}return i.replace?window.location.replace(t):window.location.href=t,Promise.resolve()}return this.buildAndCommitLocation({...i,href:n,to:e,_isNavigate:!0})},this.beforeLoad=()=>{this.cancelMatches(),this.updateLatestLocation();let e=this.matchRoutes(this.latestLocation),t=this.stores.cachedMatches.get().filter(t=>!e.some(e=>e.id===t.id));this.batch(()=>{this.stores.status.set(`pending`),this.stores.statusCode.set(200),this.stores.isLoading.set(!0),this.stores.location.set(this.latestLocation),this.stores.setPending(e),this.stores.setCached(t)})},this.load=async e=>{let t=e?.action?.type,n,r,i,a=this.stores.resolvedLocation.get()??this.stores.location.get();for(i=new Promise(o=>{this.startTransition(async()=>{try{this.beforeLoad(),t?wt.set(this.latestLocation,t):wt.delete(this.latestLocation);let n=this.latestLocation,r=Ct(n,this.stores.resolvedLocation.get());this.stores.redirect.get()||this.emit({type:`onBeforeNavigate`,...r}),this.emit({type:`onBeforeLoad`,...r}),await tt({router:this,sync:e?.sync,forceStaleReload:a.href===n.href,matches:this.stores.pendingMatches.get(),location:n,updateMatch:this.updateMatch,onReady:async()=>{this.startTransition(()=>{this.startViewTransition(async()=>{let e=null,t=null,n=null,r=null;this.batch(()=>{let i=this.stores.pendingMatches.get(),a=i.length,o=this.stores.matches.get();e=a?o.filter(e=>!this.stores.pendingMatchStores.has(e.id)):null;let s=new Set;for(let e of this.stores.pendingMatchStores.values())e.routeId&&s.add(e.routeId);let c=new Set;for(let e of this.stores.matchStores.values())e.routeId&&c.add(e.routeId);t=a?o.filter(e=>!s.has(e.routeId)):null,n=a?i.filter(e=>!c.has(e.routeId)):null,r=a?i.filter(e=>c.has(e.routeId)):o,this.stores.isLoading.set(!1),this.stores.loadedAt.set(Date.now()),a&&(this.stores.setMatches(i),this.stores.setPending([]),this.stores.setCached([...this.stores.cachedMatches.get(),...e.filter(e=>e.status!==`error`&&e.status!==`notFound`&&e.status!==`redirected`)]),this.clearExpiredCache())});for(let[e,i]of[[t,`onLeave`],[n,`onEnter`],[r,`onStay`]])if(e)for(let t of e)this.looseRoutesById[t.routeId].options[i]?.(t)})})}})}catch(e){Ie(e)?(n=e,this.navigate({...n.options,replace:!0,ignoreBlocker:!0})):Ee(e)&&(r=e);let t=n?n.status:r?404:this.stores.matches.get().some(e=>e.status===`error`)?500:200;this.batch(()=>{this.stores.statusCode.set(t),this.stores.redirect.set(n)})}this.latestLoadPromise===i&&(this.commitLocationPromise?.resolve(),this.latestLoadPromise=void 0,this.commitLocationPromise=void 0),o()})}),this.latestLoadPromise=i,await i;this.latestLoadPromise&&i!==this.latestLoadPromise;)await this.latestLoadPromise;let o;this.hasNotFoundMatch()?o=404:this.stores.matches.get().some(e=>e.status===`error`)&&(o=500),o!==void 0&&this.stores.statusCode.set(o)},this.startViewTransition=e=>{let t=this.shouldViewTransition??this.options.defaultViewTransition;if(this.shouldViewTransition=void 0,t&&typeof document<`u`&&`startViewTransition`in document&&typeof document.startViewTransition==`function`){let n;if(typeof t==`object`&&this.isViewTransitionTypesSupported){let r=this.latestLocation,i=this.stores.resolvedLocation.get(),a=typeof t.types==`function`?t.types(Ct(r,i)):t.types;if(a===!1){e();return}n={update:e,types:a}}else n=e;document.startViewTransition(n)}else e()},this.updateMatch=(e,t)=>{this.startTransition(()=>{let n=this.stores.pendingMatchStores.get(e);if(n){n.set(t);return}let r=this.stores.matchStores.get(e);if(r){r.set(t);return}let i=this.stores.cachedMatchStores.get(e);if(i){let n=t(i.get());n.status===`redirected`?this.stores.cachedMatchStores.delete(e)&&this.stores.cachedIds.set(t=>t.filter(t=>t!==e)):i.set(n)}})},this.getMatch=e=>this.stores.cachedMatchStores.get(e)?.get()??this.stores.pendingMatchStores.get(e)?.get()??this.stores.matchStores.get(e)?.get(),this.invalidate=e=>{let t=t=>e?.filter?.(t)??!0?{...t,invalid:!0,...e?.forcePending||t.status===`error`||t.status===`notFound`?{status:`pending`,error:void 0}:void 0}:t;return this.batch(()=>{this.stores.setMatches(this.stores.matches.get().map(t)),this.stores.setCached(this.stores.cachedMatches.get().map(t)),this.stores.setPending(this.stores.pendingMatches.get().map(t))}),this.shouldViewTransition=!1,this.load({sync:e?.sync})},this.getParsedLocationHref=e=>e.publicHref||`/`,this.resolveRedirect=e=>{let t=e.headers.get(`Location`);if(!e.options.href||e.options._builtLocation){let t=e.options._builtLocation??this.buildLocation(e.options),n=this.getParsedLocationHref(t);e.options.href=n,e.headers.set(`Location`,n)}else if(t)try{let n=new URL(t);if(this.origin&&n.origin===this.origin){let t=n.pathname+n.search+n.hash;e.options.href=t,e.headers.set(`Location`,t)}}catch{}if(e.options.href&&!e.options._builtLocation&&y(e.options.href,this.protocolAllowlist))throw Error(`Redirect blocked: unsafe protocol`);return e.headers.get(`Location`)||e.headers.set(`Location`,e.options.href),e},this.clearCache=e=>{let t=e?.filter;t===void 0?this.stores.setCached([]):this.stores.setCached(this.stores.cachedMatches.get().filter(e=>!t(e)))},this.clearExpiredCache=()=>{let e=Date.now();this.clearCache({filter:t=>{let n=this.looseRoutesById[t.routeId];if(!n.options.loader)return!0;let r=(t.preload?n.options.preloadGcTime??this.options.defaultPreloadGcTime:n.options.gcTime??this.options.defaultGcTime)??300*1e3;return t.status===`error`?!0:e-t.updatedAt>=r}})},this.loadRouteChunk=rt,this.preloadRoute=async e=>{let t=e._builtLocation??this.buildLocation(e),n=this.matchRoutes(t,{throwOnError:!0,preload:!0,dest:e}),r=new Set([...this.stores.matchesId.get(),...this.stores.pendingIds.get()]),i=new Set([...r,...this.stores.cachedIds.get()]),a=n.filter(e=>!i.has(e.id));if(a.length){let e=this.stores.cachedMatches.get();this.stores.setCached([...e,...a])}try{return n=await tt({router:this,matches:n,location:t,preload:!0,updateMatch:(e,t)=>{r.has(e)?n=n.map(n=>n.id===e?t(n):n):this.updateMatch(e,t)}}),n}catch(e){if(Ie(e))return e.options.reloadDocument?void 0:await this.preloadRoute({...e.options,_fromLocation:t});Ee(e)||console.error(e);return}},this.matchRoute=(e,t)=>{let n={...e,to:e.to?this.resolvePathWithBase(e.from||``,e.to):void 0,params:e.params||{},leaveParams:!0},r=this.buildLocation(n);if(t?.pending&&this.stores.status.get()!==`pending`)return!1;let i=(t?.pending===void 0?!this.stores.isLoading.get():t.pending)?this.latestLocation:this.stores.resolvedLocation.get()||this.stores.location.get(),a=le(r.pathname,t?.caseSensitive??!1,t?.fuzzy??!1,i.pathname,this.processedTree);return!a||e.params&&!g(a.rawParams,e.params,{partial:!0})?!1:t?.includeSearch??!0?g(i.search,r.search,{partial:!0})?a.rawParams:!1:a.rawParams},this.hasNotFoundMatch=()=>this.stores.matches.get().some(e=>e.status===`notFound`||e.globalNotFound),this.getStoreConfig=t,this.update({defaultPreloadDelay:50,defaultPendingMs:1e3,defaultPendingMinMs:500,context:void 0,...e,caseSensitive:e.caseSensitive??!1,notFoundMode:e.notFoundMode??`fuzzy`,stringifySearch:e.stringifySearch??je,parseSearch:e.parseSearch??Ae,protocolAllowlist:e.protocolAllowlist??P}),typeof document<`u`&&(self.__TSR_ROUTER__=this)}isShell(){return!!this.options.isShell}isPrerendering(){return!!this.options.isPrerendering}get state(){return this.stores.__store.get()}setRoutes({routesById:e,routesByPath:t,processedTree:n}){this.routesById=e,this.routesByPath=t,this.processedTree=n;let r=this.options.notFoundRoute;r&&(r.init({originalIndex:99999999999}),this.routesById[r.id]=r)}getRouteBranch(e){let t=this.routeBranchCache.get(e);return t||(t=ue(e),this.routeBranchCache.set(e,t)),t}get looseRoutesById(){return this.routesById}getParentContext(e){return e?.id?e.context??this.options.context??void 0:this.options.context??void 0}matchRoutesInternal(e,t){let n=this.getMatchedRoutes(e.pathname),{foundRoute:r,routeParams:i}=n,{matchedRoutes:a}=n,o=!1;(r?r.path!==`/`&&i[`**`]:O(e.pathname))&&(this.options.notFoundRoute?a=[...a,this.options.notFoundRoute]:o=!0);let s=o?Nt(this.options.notFoundMode,a):void 0,c=Array(a.length),l=new Map;for(let e of this.stores.matchStores.values())e.routeId&&l.set(e.routeId,e.get());for(let n=0;n<a.length;n++){let r=a[n],o=c[n-1],u,d,p;{let n=o?.search??e.search,i=o?._strictSearch??void 0;try{let e=kt(r.options.validateSearch,{...n})??void 0;u={...n,...e},d={...i,...e},p=void 0}catch(e){let r=e;if(e instanceof Et||(r=new Et(e.message,{cause:e})),t?.throwOnError)throw r;u=n,d={},p=r}}let m=r.options.loaderDeps?.({search:u})??``,h=m?JSON.stringify(m):``,{interpolatedPath:g,usedParams:_}=N({path:r.fullPath,params:i,decoder:this.pathParamsDecoder,server:this.isServer}),v=r.id+g+h,y=this.getMatch(v),b=l.get(r.id),x=y?._strictParams??_,C;if(!y)try{Pt(r,x)}catch(e){if(C=Ee(e)||Ie(e)?e:new Dt(e.message,{cause:e}),t?.throwOnError)throw C}Object.assign(i,x);let w=b?`stay`:`enter`,E;if(y)E={...y,cause:w,params:b?.params??i,_strictParams:x,search:f(b?b.search:y.search,u),_strictSearch:d};else{let e=r.options.loader||r.options.beforeLoad||r.lazyFn||it(r)?`pending`:`success`;E={id:v,ssr:r.options.ssr,index:n,routeId:r.id,params:b?.params??i,_strictParams:x,pathname:g,updatedAt:Date.now(),search:b?f(b.search,u):u,_strictSearch:d,searchError:void 0,status:e,isFetching:!1,error:void 0,paramsError:C,__routeContext:void 0,_nonReactive:{loadPromise:te()},__beforeLoadContext:void 0,context:{},abortController:new AbortController,fetchCount:0,cause:w,loaderDeps:b?S(b.loaderDeps,m):m,invalid:!1,preload:!1,links:void 0,scripts:void 0,headScripts:void 0,meta:void 0,staticData:r.options.staticData||{},fullPath:r.fullPath}}t?.preload||(E.globalNotFound=s===r.id),E.searchError=p;let D=this.getParentContext(o);E.context={...D,...E.__routeContext,...E.__beforeLoadContext},c[n]=E}for(let t=0;t<c.length;t++){let n=c[t],r=this.looseRoutesById[n.routeId],a=this.getMatch(n.id),o=l.get(n.routeId);if(n.params=o?f(o.params,i):i,!a){let i=c[t-1],a=this.getParentContext(i);if(r.options.context){let t={deps:n.loaderDeps,params:n.params,context:a??{},location:e,navigate:t=>this.navigate({...t,_fromLocation:e}),buildLocation:this.buildLocation,cause:n.cause,abortController:n.abortController,preload:!!n.preload,matches:c,routeId:r.id};n.__routeContext=r.options.context(t)??void 0}n.context={...a,...n.__routeContext,...n.__beforeLoadContext}}}return c}matchRoutesLightweight(e){let{matchedRoutes:t,routeParams:n}=this.getMatchedRoutes(e.pathname),r=C(t),i={...e.search};for(let e of t)try{Object.assign(i,kt(e.options.validateSearch,i))}catch{}let a=C(this.stores.matchesId.get()),o=a&&this.stores.matchStores.get(a)?.get(),s=o&&o.routeId===r.id&&o.pathname===e.pathname,c;if(s)c=o.params;else{let e=Object.assign(Object.create(null),n);for(let n of t)try{Pt(n,e)}catch{}c=e}return{matchedRoutes:t,fullPath:r.fullPath,search:i,params:c}}},Et=class extends Error{},Dt=class extends Error{};function Ot(e){return{loadedAt:0,isLoading:!1,isTransitioning:!1,status:`idle`,resolvedLocation:void 0,location:e,matches:[],statusCode:200}}function kt(e,t){if(e==null)return{};if(`~standard`in e){let n=e[`~standard`].validate(t);if(n instanceof Promise)throw new Et(`Async validation not supported`);if(n.issues)throw new Et(JSON.stringify(n.issues,void 0,2),{cause:n});return n.value}return`parse`in e?e.parse(t):typeof e==`function`?e(t):{}}function At({pathname:e,routesById:t,processedTree:n}){let r=Object.create(null),i=O(e),a,o=s(i,n,!0);return o&&(a=o.route,Object.assign(r,o.rawParams)),{matchedRoutes:o?.branch||[t.__root__],routeParams:r,foundRoute:a}}function jt({search:e,dest:t,destRoutes:n,_includeValidateSearch:r}){return Mt(n)(e,t,r??!1)}function Mt(e){let t,n,r=[];for(let t of e){let e=t.options;`search`in e?e.search?.middlewares&&r.push(...e.search.middlewares):(e.preSearchFilters||e.postSearchFilters)&&r.push(({search:t,next:n})=>{let r=n(e.preSearchFilters?e.preSearchFilters.reduce((e,t)=>t(e),t):t);return e.postSearchFilters?e.postSearchFilters.reduce((e,t)=>t(e),r):r});let i=e.validateSearch;i&&r.push(({search:e,next:t,meta:r})=>{let a=t(e);if(n)try{let e=kt(i,a);if(r&&e)for(let t in e)t in a||(r.defaulted||=new Map).set(t,e[t]);return{...a,...e}}catch{}return a})}let i=(e,n,a)=>{if(e>=r.length){if(!t.search)return{};if(t.search===!0)return n;let e=p(t.search,n);return a&&(a.explicit=e),e}return r[e]({search:n,next:(t,n)=>{if(n){let n=a||{};return{search:i(e+1,t,n),meta:n}}return i(e+1,t,a)},meta:a})};return function(e,r,a){return t=r,n=a,i(0,e)}}function Nt(e,t){if(e!==`root`)for(let e=t.length-1;e>=0;e--){let n=t[e];if(n.children)return n.id}return Pe}function Pt(e,t){let n=e.options.params?.parse??e.options.parseParams;if(n){let e=n(t);if(e===!1)throw Error(`Route params.parse returned false for a matched route`);Object.assign(t,e)}}function Ft(){try{return sessionStorage}catch{return}}var It=`tsr-scroll-restoration-v1_3`,Lt=Ft();function Rt(){try{return JSON.parse(Lt?.getItem(`tsr-scroll-restoration-v1_3`)||`{}`)}catch{return{}}}function zt(){try{Lt?.setItem(It,JSON.stringify(Bt))}catch{}}var Bt=Rt(),Vt=`data-scroll-restoration-id`,Ht=e=>e.state.__TSR_key||e.href;function Ut(e){let t=e.getAttribute(Vt);if(t)return`[${Vt}="${t}"]`;let n=``,r=e,i;for(;i=r.parentNode;){let e=1,t=r;for(;t=t.previousElementSibling;)e++;let a=`${r.localName}:nth-child(${e})`;n=n?`${a} > ${n}`:a,r=i}return n}var Wt=!1,Gt=`window`;function Kt(e){try{return typeof e==`function`?e():document.querySelector(e)}catch{}}function qt(e){let t=[];for(let n of e){if(n===Gt)continue;let e=Kt(n);e&&t.push(e)}return t}function Jt(e,t){let n=t??e.options.scrollRestoration,r=e._scroll;n&&(r.restoring=!0);let i=e.options.getScrollRestorationKey||Ht,a=new Map,o=(e,t,n)=>{let r=a.get(e)||{};r.scrollX=t,r.scrollY=n,a.set(e,r)},s=e=>{if(!(Wt||!r.restoring))if(e.target===document)o(Gt,scrollX,scrollY);else{let t=e.target;o(t,t.scrollLeft,t.scrollTop)}},c=e=>{if(!r.restoring)return;let t=Bt[e]||={};for(let[e,n]of a)e===Gt?t[Gt]=n:e.isConnected&&(t[Ut(e)]=n)};n&&!r.restoration&&(r.restoration=!0,Wt=!1,history.scrollRestoration=`manual`,document.addEventListener(`scroll`,s,!0),e.subscribe(`onBeforeLoad`,e=>{e.fromLocation&&c(i(e.fromLocation)),a.clear()}),addEventListener(`pagehide`,()=>{c(i(e.stores.resolvedLocation.get()??e.stores.location.get())),zt()})),!r.reset&&(r.reset=!0,e.subscribe(`onRendered`,t=>{let n=e.options.scrollRestorationBehavior,o=e.options.scrollToTopSelectors,s=r.next,c;if(a.clear(),s||(r.next=!0),typeof e.options.scrollRestoration==`function`&&!e.options.scrollRestoration({location:e.latestLocation}))return;let l=i(t.toLocation),u=t.fromLocation&&i(t.fromLocation);if(r.restoring&&u&&u!==l){let e=Bt[u];if(e){let t=Bt[l];for(let n in e){if(n===Gt){if(s)continue}else{let e=Kt(n);if(!e||s&&o&&(c??=qt(o),c.includes(e)))continue}t||=Bt[l]={},t[n]??=e[n]}}}Wt=!0;try{let e=t.toLocation.hash,i=t.toLocation.state.__hashScrollIntoViewOptions??!0,a=!1;if(s){let s=wt.get(t.toLocation),u=e&&i&&(s===`PUSH`||s===`REPLACE`),d=r.restoring?Bt[l]:void 0;if(d)for(let e in d){let{scrollX:t,scrollY:r}=d[e];if(e===Gt){if(u)continue;scrollTo({top:r,left:t,behavior:n}),a=!0}else{let n=Kt(e);n&&(n.scrollLeft=t,n.scrollTop=r)}}if(!a&&!e){let e={top:0,left:0,behavior:n};if(scrollTo(e),o){c??=qt(o);for(let t of c)t.scrollTo(e)}}}!a&&e&&i&&document.getElementById(e)?.scrollIntoView(i)}finally{Wt=!1}}))}var Yt=Symbol.for(`TSR_DEFERRED_PROMISE`);function Xt(e,t){let n=e;return n[Yt]?n:(n[Yt]={status:`pending`},n.then(e=>{n[Yt].status=`success`,n[Yt].data=e}).catch(e=>{n[Yt].status=`error`,n[Yt].error={data:(t?.serializeError??St)(e),__isServerError:!0}}),n)}function Zt(e,t){if(e)return typeof e==`string`?e:e[t]}function Qt(e){return e?.scriptFormat??`module`}function $t(e,t,n){let r=en(t),i=Zt(n,`script`)??r.crossOrigin;return{...Qt(e)===`iife`?{rel:`preload`,as:`script`}:{rel:`modulepreload`},href:r.href,...i?{crossOrigin:i}:{}}}function en(e){return typeof e==`string`?{href:e,crossOrigin:void 0}:e}function tn(e,t){if(t.length===0)return;if(t.length===1){e.push(t[0]);return}let n=new Set;for(let r of t){let t=JSON.stringify(r);n.has(t)||(n.add(t),e.push(r))}}function nn(e){return typeof e==`string`?{href:e,crossOrigin:void 0}:e}var rn=class{get to(){return this._to}get id(){return this._id}get path(){return this._path}get fullPath(){return this._fullPath}constructor(e){if(this.init=e=>{this.originalIndex=e.originalIndex;let t=this.options,n=!t?.path&&!t?.id;this.parentRoute=this.options.getParentRoute?.(),n?this._path=Pe:this.parentRoute||_();let r=n?Pe:t?.path;r&&r!==`/`&&(r=de(r));let i=t?.id||r,a=n?Pe:M([this.parentRoute.id===`__root__`?``:this.parentRoute.id,i]);r===`__root__`&&(r=`/`),a!==`__root__`&&(a=M([`/`,a]));let o=a===`__root__`?`/`:M([this.parentRoute.fullPath,r]);this._path=r,this._id=a,this._fullPath=o,this._to=O(o)},this.addChildren=e=>this._addFileChildren(e),this._addFileChildren=e=>(Array.isArray(e)&&(this.children=e),typeof e==`object`&&e&&(this.children=Object.values(e)),this),this._addFileTypes=()=>this,this.updateLoader=e=>(Object.assign(this.options,e),this),this.update=e=>(Object.assign(this.options,e),this),this.lazy=e=>(this.lazyFn=e,this),this.redirect=e=>Fe({from:this.fullPath,...e}),this.options=e||{},this.isRoot=!e?.getParentRoute,e?.id&&e?.path)throw Error(`Route cannot have both an 'id' and a 'path' option.`)}},an=class extends rn{constructor(e){super(e)}},on=(e=>(e[e.AggregateError=1]=`AggregateError`,e[e.ArrowFunction=2]=`ArrowFunction`,e[e.ErrorPrototypeStack=4]=`ErrorPrototypeStack`,e[e.ObjectAssign=8]=`ObjectAssign`,e[e.BigIntTypedArray=16]=`BigIntTypedArray`,e[e.RegExp=32]=`RegExp`,e))(on||{}),sn=Symbol.asyncIterator,cn=Symbol.hasInstance,ln=Symbol.isConcatSpreadable,un=Symbol.iterator,dn=Symbol.match,fn=Symbol.matchAll,pn=Symbol.replace,mn=Symbol.search,hn=Symbol.species,gn=Symbol.split,_n=Symbol.toPrimitive,vn=Symbol.toStringTag,yn=Symbol.unscopables,bn={[sn]:0,[cn]:1,[ln]:2,[un]:3,[dn]:4,[fn]:5,[pn]:6,[mn]:7,[hn]:8,[gn]:9,[_n]:10,[vn]:11,[yn]:12},xn={0:sn,1:cn,2:ln,3:un,4:dn,5:fn,6:pn,7:mn,8:hn,9:gn,10:_n,11:vn,12:yn},R=void 0,Sn={2:!0,3:!1,1:R,0:null,4:-0,5:1/0,6:-1/0,7:NaN},Cn={0:`Error`,1:`EvalError`,2:`RangeError`,3:`ReferenceError`,4:`SyntaxError`,5:`TypeError`,6:`URIError`},wn={0:Error,1:EvalError,2:RangeError,3:ReferenceError,4:SyntaxError,5:TypeError,6:URIError};function z(e,t,n,r,i,a,o,s,c,l,u,d){return{t:e,i:t,s:n,c:r,m:i,p:a,e:o,a:s,f:c,b:l,o:u,l:d}}function Tn(e){return z(2,R,e,R,R,R,R,R,R,R,R,R)}var En=Tn(2),Dn=Tn(3),On=Tn(1),kn=Tn(0),An=Tn(4),jn=Tn(5),Mn=Tn(6),Nn=Tn(7);function Pn(e){switch(e){case`"`:return`\\"`;case`\\`:return`\\\\`;case`
|
|
11
11
|
`:return`\\n`;case`\r`:return`\\r`;case`\b`:return`\\b`;case` `:return`\\t`;case`\f`:return`\\f`;case`<`:return`\\x3C`;case`\u2028`:return`\\u2028`;case`\u2029`:return`\\u2029`;default:return R}}function Fn(e){let t=``,n=0,r;for(let i=0,a=e.length;i<a;i++)r=Pn(e[i]),r&&(t+=e.slice(n,i)+r,n=i+1);return n===0?t=e:t+=e.slice(n),t}function In(e){switch(e){case`\\\\`:return`\\`;case`\\"`:return`"`;case`\\n`:return`
|
|
12
|
-
`;case`\\r`:return`\r`;case`\\b`:return`\b`;case`\\t`:return` `;case`\\f`:return`\f`;case`\\x3C`:return`<`;case`\\u2028`:return`\u2028`;case`\\u2029`:return`\u2029`;default:return e}}function Ln(e){return e.replace(/(\\\\|\\"|\\n|\\r|\\b|\\t|\\f|\\u2028|\\u2029|\\x3C)/g,In)}var Rn=`__SEROVAL_REFS__`,zn=new Map,Bn=new Map;function Vn(e){return zn.has(e)}function Hn(e){return Bn.has(e)}function Un(e){if(Vn(e))return zn.get(e);throw new jr(e)}function Wn(e){if(Hn(e))return Bn.get(e);throw new Mr(e)}typeof globalThis<`u`?Object.defineProperty(globalThis,Rn,{value:Bn,configurable:!0,writable:!1,enumerable:!1}):typeof window<`u`?Object.defineProperty(window,Rn,{value:Bn,configurable:!0,writable:!1,enumerable:!1}):typeof self<`u`?Object.defineProperty(self,Rn,{value:Bn,configurable:!0,writable:!1,enumerable:!1}):typeof global<`u`&&Object.defineProperty(global,Rn,{value:Bn,configurable:!0,writable:!1,enumerable:!1});function Gn(e){return e instanceof EvalError?1:e instanceof RangeError?2:e instanceof ReferenceError?3:e instanceof SyntaxError?4:e instanceof TypeError?5:e instanceof URIError?6:0}function Kn(e){let t=Cn[Gn(e)];return e.name===t?e.constructor.name===t?{}:{name:e.constructor.name}:{name:e.name}}function qn(e,t){let n=Kn(e),r=Object.getOwnPropertyNames(e);for(let i=0,a=r.length,o;i<a;i++)o=r[i],o!==`name`&&o!==`message`&&(o===`stack`?t&4&&(n||={},n[o]=e[o]):(n||={},n[o]=e[o]));return n}function Jn(e){return Object.isFrozen(e)?3:Object.isSealed(e)?2:+!Object.isExtensible(e)}function Yn(e){switch(e){case 1/0:return jn;case-1/0:return Mn}return e===e?Object.is(e,-0)?An:z(0,R,e,R,R,R,R,R,R,R,R,R):Nn}function Xn(e){return z(1,R,Fn(e),R,R,R,R,R,R,R,R,R)}function Zn(e){return z(3,R,``+e,R,R,R,R,R,R,R,R,R)}function Qn(e){return z(4,e,R,R,R,R,R,R,R,R,R,R)}function $n(e,t){let n=t.valueOf();return z(5,e,n===n?t.toISOString():``,R,R,R,R,R,R,R,R,R)}function er(e,t){return z(6,e,R,Fn(t.source),t.flags,R,R,R,R,R,R,R)}function tr(e,t){return z(17,e,bn[t],R,R,R,R,R,R,R,R,R)}function nr(e,t){return z(18,e,Fn(Un(t)),R,R,R,R,R,R,R,R,R)}function rr(e,t,n){return z(25,e,n,Fn(t),R,R,R,R,R,R,R,R)}function ir(e,t,n){return z(9,e,R,R,R,R,R,n,R,R,Jn(t),R)}function ar(e,t){return z(21,e,R,R,R,R,R,R,t,R,R,R)}function or(e,t,n){return z(15,e,R,t.constructor.name,R,R,R,R,n,t.byteOffset,R,t.length)}function sr(e,t,n){return z(16,e,R,t.constructor.name,R,R,R,R,n,t.byteOffset,R,t.byteLength)}function cr(e,t,n){return z(20,e,R,R,R,R,R,R,n,t.byteOffset,R,t.byteLength)}function lr(e,t,n){return z(13,e,Gn(t),R,Fn(t.message),n,R,R,R,R,R,R)}function ur(e,t,n){return z(14,e,Gn(t),R,Fn(t.message),n,R,R,R,R,R,R)}function dr(e,t){return z(7,e,R,R,R,R,R,t,R,R,R,R)}function fr(e,t){return z(28,R,R,R,R,R,R,[e,t],R,R,R,R)}function pr(e,t){return z(30,R,R,R,R,R,R,[e,t],R,R,R,R)}function mr(e,t,n){return z(31,e,R,R,R,R,R,n,t,R,R,R)}function hr(e,t){return z(32,e,R,R,R,R,R,R,t,R,R,R)}function gr(e,t){return z(33,e,R,R,R,R,R,R,t,R,R,R)}function _r(e,t){return z(34,e,R,R,R,R,R,R,t,R,R,R)}function vr(e,t,n,r){return z(35,e,n,R,R,R,R,t,R,R,R,r)}var{toString:yr}=Object.prototype,br={parsing:1,serialization:2,deserialization:3};function xr(e){return`Seroval Error (step: ${br[e]})`}var Sr=(e,t)=>xr(e),Cr=class extends Error{constructor(e,t){super(Sr(e,t)),this.cause=t}},wr=class extends Cr{constructor(e){super(`parsing`,e)}},Tr=class extends Cr{constructor(e){super(`deserialization`,e)}};function Er(e){return`Seroval Error (specific: ${e})`}var Dr=class extends Error{constructor(e){super(Er(1)),this.value=e}},Or=class extends Error{constructor(e){super(Er(2))}},kr=class extends Error{constructor(e){super(Er(3))}},Ar=class extends Error{constructor(e){super(Er(4))}},jr=class extends Error{constructor(e){super(Er(5)),this.value=e}},Mr=class extends Error{constructor(e){super(Er(6))}},Nr=class extends Error{constructor(e){super(Er(7))}},Pr=class extends Error{constructor(e){super(Er(8))}},Fr=class extends Error{constructor(e){super(Er(9))}},Ir=class{constructor(e,t){this.value=e,this.replacement=t}},Lr=()=>{let e={p:0,s:0,f:0};return e.p=new Promise((t,n)=>{e.s=t,e.f=n}),e};Lr.toString(),((e,t)=>{e.s(t),e.p.s=1,e.p.v=t}).toString(),((e,t)=>{e.f(t),e.p.s=2,e.p.v=t}).toString();var Rr=()=>{let e=[],t=[],n=!0,r=!1,i=0,a=(e,n,r)=>{for(r=0;r<i;r++)t[r]&&t[r][n](e)},o=(t,i,a,o)=>{for(i=0,a=e.length;i<a;i++)o=e[i],!n&&i===a-1?t[r?`return`:`throw`](o):t.next(o)},s=(e,r)=>(n&&(r=i++,t[r]=e),o(e),()=>{n&&(t[r]=t[i],t[i--]=void 0)});return{__SEROVAL_STREAM__:!0,on:e=>s(e),next:t=>{n&&(e.push(t),a(t,`next`))},throw:i=>{n&&(e.push(i),a(i,`throw`),n=!1,r=!1,t.length=0)},return:i=>{n&&(e.push(i),a(i,`return`),n=!1,r=!0,t.length=0)}}};Rr.toString();var zr=e=>t=>()=>{let n=0,r={[e]:()=>r,next:()=>{if(n>t.d)return{done:!0,value:void 0};let e=n++,r=t.v[e];if(e===t.t)throw r;return{done:e===t.d,value:r}}};return r};zr.toString();var Br=(e,t)=>n=>()=>{let r=0,i=-1,a=!1,o=[],s=[],c=(e=0,t=s.length)=>{for(;e<t;e++)s[e].s({done:!0,value:void 0})};n.on({next:e=>{let t=s.shift();t&&t.s({done:!1,value:e}),o.push(e)},throw:e=>{let t=s.shift();t&&t.f(e),c(),i=o.length,a=!0,o.push(e)},return:e=>{let t=s.shift();t&&t.s({done:!0,value:e}),c(),i=o.length,o.push(e)}});let l={[e]:()=>l,next:()=>{if(i===-1){let e=r++;if(e>=o.length){let e=t();return s.push(e),e.p}return{done:!1,value:o[e]}}if(r>i)return{done:!0,value:void 0};let e=r++,n=o[e];if(e!==i)return{done:!1,value:n};if(a)throw n;return{done:!0,value:n}}};return l};Br.toString();var Vr=e=>{let t=atob(e),n=t.length,r=new Uint8Array(n);for(let e=0;e<n;e++)r[e]=t.charCodeAt(e);return r.buffer};Vr.toString();function Hr(e){return`__SEROVAL_SEQUENCE__`in e}function Ur(e,t,n){return{__SEROVAL_SEQUENCE__:!0,v:e,t,d:n}}function Wr(e){let t=[],n=-1,r=-1,i=e[un]();for(;;)try{let e=i.next();if(t.push(e.value),e.done){r=t.length-1;break}}catch(e){n=t.length,t.push(e)}return Ur(t,n,r)}var Gr=zr(un);function Kr(e){return Gr(e)}var qr={},Jr={},Yr={0:{},1:{},2:{},3:{},4:{},5:{}};function Xr(e){return`__SEROVAL_STREAM__`in e}function Zr(){return Rr()}function Qr(e){let t=Zr(),n=e[sn]();async function r(){try{let e=await n.next();e.done?t.return(e.value):(t.next(e.value),await r())}catch(e){t.throw(e)}}return r().catch(()=>{}),t}var $r=Br(sn,Lr);function ei(e){return $r(e)}async function ti(e){try{return[1,await e]}catch(e){return[0,e]}}function ni(e,t){return{plugins:t.plugins,mode:e,marked:new Set,features:63^(t.disabledFeatures||0),refs:t.refs||new Map,depthLimit:t.depthLimit||1e3}}function ri(e,t){e.marked.add(t)}function ii(e,t){let n=e.refs.size;return e.refs.set(t,n),n}function ai(e,t){let n=e.refs.get(t);return n==null?{type:0,value:ii(e,t)}:(ri(e,n),{type:1,value:Qn(n)})}function oi(e,t){let n=ai(e,t);return n.type===1?n:Vn(t)?{type:2,value:nr(n.value,t)}:n}function si(e,t){let n=oi(e,t);if(n.type!==0)return n.value;if(t in bn)return tr(n.value,t);throw new Dr(t)}function ci(e,t){let n=ai(e,Yr[t]);return n.type===1?n.value:z(26,n.value,t,R,R,R,R,R,R,R,R,R)}function li(e){let t=ai(e,qr);return t.type===1?t.value:z(27,t.value,R,R,R,R,R,R,si(e,un),R,R,R)}function ui(e){let t=ai(e,Jr);return t.type===1?t.value:z(29,t.value,R,R,R,R,R,[ci(e,1),si(e,sn)],R,R,R,R)}function di(e,t,n,r){return z(n?11:10,e,R,R,R,r,R,R,R,R,Jn(t),R)}function fi(e,t,n,r){return z(8,t,R,R,R,R,{k:n,v:r},R,ci(e,0),R,R,R)}function pi(e,t,n){let r=new Uint8Array(n),i=``;for(let e=0,t=r.length;e<t;e++)i+=String.fromCharCode(r[e]);return z(19,t,Fn(btoa(i)),R,R,R,R,R,ci(e,5),R,R,R)}function mi(e,t){return{base:ni(e,t),child:void 0}}var hi=class{constructor(e,t){this._p=e,this.depth=t}parse(e){return B(this._p,this.depth,e)}};async function gi(e,t,n){let r=[];for(let i=0,a=n.length;i<a;i++)i in n?r[i]=await B(e,t,n[i]):r[i]=0;return r}async function _i(e,t,n,r){return ir(n,r,await gi(e,t,r))}async function vi(e,t,n){let r=Object.entries(n),i=[],a=[];for(let n=0,o=r.length;n<o;n++)i.push(Fn(r[n][0])),a.push(await B(e,t,r[n][1]));return un in n&&(i.push(si(e.base,un)),a.push(fr(li(e.base),await B(e,t,Wr(n))))),sn in n&&(i.push(si(e.base,sn)),a.push(pr(ui(e.base),await B(e,t,Qr(n))))),vn in n&&(i.push(si(e.base,vn)),a.push(Xn(n[vn]))),ln in n&&(i.push(si(e.base,ln)),a.push(n[ln]?En:Dn)),{k:i,v:a}}async function yi(e,t,n,r,i){return di(n,r,i,await vi(e,t,r))}async function bi(e,t,n,r){return ar(n,await B(e,t,r.valueOf()))}async function xi(e,t,n,r){return or(n,r,await B(e,t,r.buffer))}async function Si(e,t,n,r){return sr(n,r,await B(e,t,r.buffer))}async function Ci(e,t,n,r){return cr(n,r,await B(e,t,r.buffer))}async function wi(e,t,n,r){let i=qn(r,e.base.features);return lr(n,r,i?await vi(e,t,i):R)}async function Ti(e,t,n,r){let i=qn(r,e.base.features);return ur(n,r,i?await vi(e,t,i):R)}async function Ei(e,t,n,r){let i=[],a=[];for(let[n,o]of r.entries())i.push(await B(e,t,n)),a.push(await B(e,t,o));return fi(e.base,n,i,a)}async function Di(e,t,n,r){let i=[];for(let n of r.keys())i.push(await B(e,t,n));return dr(n,i)}async function Oi(e,t,n,r){let i=e.base.plugins;if(i)for(let a=0,o=i.length;a<o;a++){let o=i[a];if(o.parse.async&&o.test(r))return rr(n,o.tag,await o.parse.async(r,new hi(e,t),{id:n}))}return R}async function ki(e,t,n,r){let[i,a]=await ti(r);return z(12,n,i,R,R,R,R,R,await B(e,t,a),R,R,R)}function Ai(e,t,n,r,i){let a=[],o=n.on({next:n=>{ri(this.base,t),B(this,e,n).then(e=>{a.push(hr(t,e))},e=>{i(e),o()})},throw:n=>{ri(this.base,t),B(this,e,n).then(e=>{a.push(gr(t,e)),r(a),o()},e=>{i(e),o()})},return:n=>{ri(this.base,t),B(this,e,n).then(e=>{a.push(_r(t,e)),r(a),o()},e=>{i(e),o()})}})}async function ji(e,t,n,r){return mr(n,ci(e.base,4),await new Promise(Ai.bind(e,t,n,r)))}async function Mi(e,t,n,r){let i=[];for(let n=0,a=r.v.length;n<a;n++)i[n]=await B(e,t,r.v[n]);return vr(n,i,r.t,r.d)}async function Ni(e,t,n,r){if(Array.isArray(r))return _i(e,t,n,r);if(Xr(r))return ji(e,t,n,r);if(Hr(r))return Mi(e,t,n,r);let i=r.constructor;if(i===Ir)return B(e,t,r.replacement);let a=await Oi(e,t,n,r);if(a)return a;switch(i){case Object:return yi(e,t,n,r,!1);case R:return yi(e,t,n,r,!0);case Date:return $n(n,r);case Error:case EvalError:case RangeError:case ReferenceError:case SyntaxError:case TypeError:case URIError:return wi(e,t,n,r);case Number:case Boolean:case String:case BigInt:return bi(e,t,n,r);case ArrayBuffer:return pi(e.base,n,r);case Int8Array:case Int16Array:case Int32Array:case Uint8Array:case Uint16Array:case Uint32Array:case Uint8ClampedArray:case Float32Array:case Float64Array:return xi(e,t,n,r);case DataView:return Ci(e,t,n,r);case Map:return Ei(e,t,n,r);case Set:return Di(e,t,n,r);default:break}if(i===Promise||r instanceof Promise)return ki(e,t,n,r);let o=e.base.features;if(o&32&&i===RegExp)return er(n,r);if(o&16)switch(i){case BigInt64Array:case BigUint64Array:return Si(e,t,n,r);default:break}if(o&1&&typeof AggregateError<`u`&&(i===AggregateError||r instanceof AggregateError))return Ti(e,t,n,r);if(r instanceof Error)return wi(e,t,n,r);if(un in r||sn in r)return yi(e,t,n,r,!!i);throw new Dr(r)}async function Pi(e,t,n){let r=oi(e.base,n);if(r.type!==0)return r.value;let i=await Oi(e,t,r.value,n);if(i)return i;throw new Dr(n)}async function B(e,t,n){switch(typeof n){case`boolean`:return n?En:Dn;case`undefined`:return On;case`string`:return Xn(n);case`number`:return Yn(n);case`bigint`:return Zn(n);case`object`:if(n){let r=oi(e.base,n);return r.type===0?await Ni(e,t+1,r.value,n):r.value}return kn;case`symbol`:return si(e.base,n);case`function`:return Pi(e,t,n);default:throw new Dr(n)}}async function Fi(e,t){try{return await B(e,0,t)}catch(e){throw e instanceof wr?e:new wr(e)}}var Ii=(e=>(e[e.Vanilla=1]=`Vanilla`,e[e.Cross=2]=`Cross`,e))(Ii||{});function Li(e){return e}function Ri(e,t){for(let n=0,r=t.length;n<r;n++){let r=t[n];e.has(r)||(e.add(r),r.extends&&Ri(e,r.extends))}}function zi(e){if(e){let t=new Set;return Ri(t,e),[...t]}}function Bi(e){switch(e){case`Int8Array`:return Int8Array;case`Int16Array`:return Int16Array;case`Int32Array`:return Int32Array;case`Uint8Array`:return Uint8Array;case`Uint16Array`:return Uint16Array;case`Uint32Array`:return Uint32Array;case`Uint8ClampedArray`:return Uint8ClampedArray;case`Float32Array`:return Float32Array;case`Float64Array`:return Float64Array;case`BigInt64Array`:return BigInt64Array;case`BigUint64Array`:return BigUint64Array;default:throw new Nr(e)}}var Vi=1e6,Hi=1e4,Ui=2e4;function Wi(e,t){switch(t){case 3:return Object.freeze(e);case 1:return Object.preventExtensions(e);case 2:return Object.seal(e);default:return e}}var Gi=1e3;function Ki(e,t){let n=t.refs||new Map;return`types`in n||Object.assign(n,{types:new Map}),{mode:e,plugins:t.plugins,refs:n,features:t.features??63^(t.disabledFeatures||0),depthLimit:t.depthLimit||Gi}}function qi(e){return{mode:2,base:Ki(2,e),child:R}}var Ji=class{constructor(e,t){this._p=e,this.depth=t}deserialize(e){return Fa(this._p,this.depth,e)}};function Yi(e,t){if(t<0||!Number.isFinite(t)||!Number.isInteger(t))throw new Pr({t:4,i:t});if(e.refs.has(t))throw Error(`Conflicted ref id: `+t)}function Xi(e,t,n){return Yi(e.base,t),e.state.marked.has(t)&&e.base.refs.set(t,n),n}function Zi(e,t,n){return Yi(e.base,t),e.base.refs.set(t,n),n}function Qi(e,t,n){return e.mode===1?Xi(e,t,n):Zi(e,t,n)}function $i(e,t,n){if(Object.hasOwn(t,n))return t[n];throw new Pr(e)}function ea(e,t){return Qi(e,t.i,Wn(Ln(t.s)))}function ta(e,t,n){let r=n.a,i=r.length,a=Qi(e,n.i,Array(i));for(let n=0,o;n<i;n++)o=r[n],o&&(a[n]=Fa(e,t,o));return Wi(a,n.o),a}function na(e){switch(e){case`constructor`:case`__proto__`:case`prototype`:case`__defineGetter__`:case`__defineSetter__`:case`__lookupGetter__`:case`__lookupSetter__`:return!1;default:return!0}}function ra(e){switch(e){case sn:case ln:case vn:case un:return!0;default:return!1}}function ia(e,t,n){na(t)?e[t]=n:Object.defineProperty(e,t,{value:n,configurable:!0,enumerable:!0,writable:!0})}function aa(e,t,n,r,i){if(typeof r==`string`)ia(n,Ln(r),Fa(e,t,i));else{let a=Fa(e,t,r);switch(typeof a){case`string`:ia(n,a,Fa(e,t,i));break;case`symbol`:ra(a)&&(n[a]=Fa(e,t,i));break;default:throw new Pr(r)}}}function oa(e,t,n){e.base.refs.types.set(t,n)}function sa(e,t,n,r){if(e.base.refs.types.get(n)!==r)throw new Pr(t)}function ca(e,t,n,r){let i=n.k;if(i.length>0)for(let a=0,o=n.v,s=i.length;a<s;a++)aa(e,t,r,i[a],o[a]);return r}function la(e,t,n){let r=Qi(e,n.i,n.t===10?{}:Object.create(null));return ca(e,t,n.p,r),Wi(r,n.o),r}function ua(e,t){return Qi(e,t.i,new Date(t.s))}function da(e,t){if(e.base.features&32){let n=Ln(t.c);if(n.length>Ui)throw new Pr(t);return Qi(e,t.i,new RegExp(n,t.m))}throw new Or(t)}function fa(e,t,n){let r=Qi(e,n.i,new Set);for(let i=0,a=n.a,o=a.length;i<o;i++)r.add(Fa(e,t,a[i]));return r}function pa(e,t,n){let r=Qi(e,n.i,new Map);for(let i=0,a=n.e.k,o=n.e.v,s=a.length;i<s;i++)r.set(Fa(e,t,a[i]),Fa(e,t,o[i]));return r}function ma(e,t){if(t.s.length>Vi)throw new Pr(t);return Qi(e,t.i,Vr(Ln(t.s)))}function ha(e,t,n){let r=Bi(n.c),i=Fa(e,t,n.f),a=n.b??0;if(a<0||a>i.byteLength)throw new Pr(n);return Qi(e,n.i,new r(i,a,n.l))}function ga(e,t,n){let r=Fa(e,t,n.f),i=n.b??0;if(i<0||i>r.byteLength)throw new Pr(n);return Qi(e,n.i,new DataView(r,i,n.l))}function _a(e,t,n,r){if(n.p){let i=ca(e,t,n.p,{});Object.defineProperties(r,Object.getOwnPropertyDescriptors(i))}return r}function va(e,t,n){return _a(e,t,n,Qi(e,n.i,AggregateError([],Ln(n.m))))}function ya(e,t,n){let r=$i(n,wn,n.s);return _a(e,t,n,Qi(e,n.i,new r(Ln(n.m))))}function ba(e,t,n){let r=Lr(),i=Qi(e,n.i,r.p),a=Fa(e,t,n.f);return n.s?r.s(a):r.f(a),i}function xa(e,t,n){return Qi(e,n.i,Object(Fa(e,t,n.f)))}function Sa(e,t,n){let r=e.base.plugins;if(r){let i=Ln(n.c);for(let a=0,o=r.length;a<o;a++){let o=r[a];if(o.tag===i)return Qi(e,n.i,o.deserialize(n.s,new Ji(e,t),{id:n.i}))}}throw new kr(n.c)}function Ca(e,t){let n=Qi(e,t.i,Qi(e,t.s,Lr()).p);return oa(e,t.s,22),n}function wa(e,t,n){let r=e.base.refs.get(n.i);if(r)return sa(e,n,n.i,22),r.s(Fa(e,t,n.a[1])),R;throw new Ar(`Promise`)}function Ta(e,t,n){let r=e.base.refs.get(n.i);if(r)return sa(e,n,n.i,22),r.f(Fa(e,t,n.a[1])),R;throw new Ar(`Promise`)}function Ea(e,t,n){return Fa(e,t,n.a[0]),Kr(Fa(e,t,n.a[1]))}function Da(e,t,n){return Fa(e,t,n.a[0]),ei(Fa(e,t,n.a[1]))}function Oa(e,t,n){let r=Qi(e,n.i,Zr());oa(e,n.i,31);let i=n.a,a=i.length;if(a)for(let n=0;n<a;n++)Fa(e,t,i[n]);return r}function ka(e,t,n){let r=e.base.refs.get(n.i);if(r)return sa(e,n,n.i,31),r.next(Fa(e,t,n.f)),R;throw new Ar(`Stream`)}function Aa(e,t,n){let r=e.base.refs.get(n.i);if(r)return sa(e,n,n.i,31),r.throw(Fa(e,t,n.f)),R;throw new Ar(`Stream`)}function ja(e,t,n){let r=e.base.refs.get(n.i);if(r)return sa(e,n,n.i,31),r.return(Fa(e,t,n.f)),R;throw new Ar(`Stream`)}function Ma(e,t,n){return Fa(e,t,n.f),R}function Na(e,t,n){return Fa(e,t,n.a[1]),R}function Pa(e,t,n){let r=Qi(e,n.i,Ur([],n.s,n.l));for(let i=0,a=n.a.length;i<a;i++)r.v[i]=Fa(e,t,n.a[i]);return r}function Fa(e,t,n){if(t>e.base.depthLimit)throw new Fr(e.base.depthLimit);switch(t+=1,n.t){case 2:return $i(n,Sn,n.s);case 0:return Number(n.s);case 1:return Ln(String(n.s));case 3:if(String(n.s).length>Hi)throw new Pr(n);return BigInt(n.s);case 4:return e.base.refs.get(n.i);case 18:return ea(e,n);case 9:return ta(e,t,n);case 10:case 11:return la(e,t,n);case 5:return ua(e,n);case 6:return da(e,n);case 7:return fa(e,t,n);case 8:return pa(e,t,n);case 19:return ma(e,n);case 16:case 15:return ha(e,t,n);case 20:return ga(e,t,n);case 14:return va(e,t,n);case 13:return ya(e,t,n);case 12:return ba(e,t,n);case 17:return $i(n,xn,n.s);case 21:return xa(e,t,n);case 25:return Sa(e,t,n);case 22:return Ca(e,n);case 23:return wa(e,t,n);case 24:return Ta(e,t,n);case 28:return Ea(e,t,n);case 30:return Da(e,t,n);case 31:return Oa(e,t,n);case 32:return ka(e,t,n);case 33:return Aa(e,t,n);case 34:return ja(e,t,n);case 27:return Ma(e,t,n);case 29:return Na(e,t,n);case 35:return Pa(e,t,n);default:throw new Or(n)}}function Ia(e,t){try{return Fa(e,0,t)}catch(e){throw new Tr(e)}}var La=(()=>T).toString();/=>/.test(La);function Ra(e,t){return Ia(qi({plugins:zi(t.plugins),refs:t.refs,features:t.features,disabledFeatures:t.disabledFeatures,depthLimit:t.depthLimit}),e)}async function za(e,t={}){let n=mi(1,{plugins:zi(t.plugins),disabledFeatures:t.disabledFeatures});return{t:await Fi(n,e),f:n.base.features,m:Array.from(n.base.marked)}}function Ba(e){return e}function Va(e){return Li({tag:`$TSR/t/`+e.key,test:e.test,parse:{sync(t,n,r){return{v:n.parse(e.toSerializable(t))}},async async(t,n,r){return{v:await n.parse(e.toSerializable(t))}},stream(t,n,r){return{v:n.parse(e.toSerializable(t))}}},serialize:void 0,deserialize(t,n,r){return e.fromSerializable(n.deserialize(t.v))}})}var Ha=class{constructor(e,t){this.stream=e,this.hint=t?.hint??`binary`}},Ua=globalThis.Buffer,Wa=!!Ua&&typeof Ua.from==`function`;function Ga(e){if(e.length===0)return``;if(Wa)return Ua.from(e).toString(`base64`);let t=32768,n=[];for(let r=0;r<e.length;r+=t){let i=e.subarray(r,r+t);n.push(String.fromCharCode.apply(null,i))}return btoa(n.join(``))}function Ka(e){if(e.length===0)return new Uint8Array;if(Wa){let t=Ua.from(e,`base64`);return new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}let t=atob(e),n=new Uint8Array(t.length);for(let e=0;e<t.length;e++)n[e]=t.charCodeAt(e);return n}var qa=Object.create(null),Ja=Object.create(null),Ya=e=>new ReadableStream({start(t){e.on({next(e){try{t.enqueue(Ka(e))}catch{}},throw(e){t.error(e)},return(){try{t.close()}catch{}}})}}),Xa=new TextEncoder,Za=e=>new ReadableStream({start(t){e.on({next(e){try{typeof e==`string`?t.enqueue(Xa.encode(e)):t.enqueue(Ka(e.$b64))}catch{}},throw(e){t.error(e)},return(){try{t.close()}catch{}}})}}),Qa=`(s=>new ReadableStream({start(c){s.on({next(b){try{const d=atob(b),a=new Uint8Array(d.length);for(let i=0;i<d.length;i++)a[i]=d.charCodeAt(i);c.enqueue(a)}catch(_){}},throw(e){c.error(e)},return(){try{c.close()}catch(_){}}})}}))`,$a=`(s=>{const e=new TextEncoder();return new ReadableStream({start(c){s.on({next(v){try{if(typeof v==='string'){c.enqueue(e.encode(v))}else{const d=atob(v.$b64),a=new Uint8Array(d.length);for(let i=0;i<d.length;i++)a[i]=d.charCodeAt(i);c.enqueue(a)}}catch(_){}},throw(x){c.error(x)},return(){try{c.close()}catch(_){}}})}})})`;function eo(e){let t=Zr(),n=e.getReader();return(async()=>{try{for(;;){let{done:e,value:r}=await n.read();if(e){t.return(void 0);break}t.next(Ga(r))}}catch(e){t.throw(e)}finally{n.releaseLock()}})(),t}function to(e){let t=Zr(),n=e.getReader(),r=new TextDecoder(`utf-8`,{fatal:!0});return(async()=>{try{for(;;){let{done:e,value:i}=await n.read();if(e){try{let e=r.decode();e.length>0&&t.next(e)}catch{}t.return(void 0);break}try{let e=r.decode(i,{stream:!0});e.length>0&&t.next(e)}catch{t.next({$b64:Ga(i)})}}}catch(e){t.throw(e)}finally{n.releaseLock()}})(),t}var no=Li({tag:`tss/RawStream`,extends:[Li({tag:`tss/RawStreamFactory`,test(e){return e===qa},parse:{sync(e,t,n){return{}},async async(e,t,n){return{}},stream(e,t,n){return{}}},serialize(e,t,n){return Qa},deserialize(e,t,n){return qa}}),Li({tag:`tss/RawStreamFactoryText`,test(e){return e===Ja},parse:{sync(e,t,n){return{}},async async(e,t,n){return{}},stream(e,t,n){return{}}},serialize(e,t,n){return $a},deserialize(e,t,n){return Ja}})],test(e){return e instanceof Ha},parse:{sync(e,t,n){let r=e.hint===`text`?Ja:qa;return{hint:t.parse(e.hint),factory:t.parse(r),stream:t.parse(Zr())}},async async(e,t,n){let r=e.hint===`text`?Ja:qa,i=e.hint===`text`?to(e.stream):eo(e.stream);return{hint:await t.parse(e.hint),factory:await t.parse(r),stream:await t.parse(i)}},stream(e,t,n){let r=e.hint===`text`?Ja:qa,i=e.hint===`text`?to(e.stream):eo(e.stream);return{hint:t.parse(e.hint),factory:t.parse(r),stream:t.parse(i)}}},serialize(e,t,n){return`(`+t.serialize(e.factory)+`)(`+t.serialize(e.stream)+`)`},deserialize(e,t,n){let r=t.deserialize(e.stream);return t.deserialize(e.hint)===`text`?Za(r):Ya(r)}});function ro(e){return Li({tag:`tss/RawStream`,test:()=>!1,parse:{},serialize(){throw Error(`RawStreamDeserializePlugin.serialize should not be called. Client only deserializes.`)},deserialize(t,n,r){return e(typeof n?.deserialize==`function`?n.deserialize(t.streamId):t.streamId)}})}var io=Li({tag:`$TSR/Error`,test(e){return e instanceof Error},parse:{sync(e,t){return{message:t.parse(e.message)}},async async(e,t){return{message:await t.parse(e.message)}},stream(e,t){return{message:t.parse(e.message)}}},serialize(e,t){return`new Error(`+t.serialize(e.message)+`)`},deserialize(e,t){return Error(t.deserialize(e.message))}}),ao={},oo=e=>new ReadableStream({start:t=>{e.on({next:e=>{try{t.enqueue(e)}catch{}},throw:e=>{t.error(e)},return:()=>{try{t.close()}catch{}}})}}),so=Li({tag:`seroval-plugins/web/ReadableStreamFactory`,test(e){return e===ao},parse:{sync(){return ao},async async(){return await Promise.resolve(ao)},stream(){return ao}},serialize(){return oo.toString()},deserialize(){return ao}});function co(e){let t=Zr(),n=e.getReader();async function r(){try{let e=await n.read();e.done?t.return(e.value):(t.next(e.value),await r())}catch(e){t.throw(e)}}return r().catch(()=>{}),t}var lo=[io,no,Li({tag:`seroval/plugins/web/ReadableStream`,extends:[so],test(e){return typeof ReadableStream>`u`?!1:e instanceof ReadableStream},parse:{sync(e,t){return{factory:t.parse(ao),stream:t.parse(Zr())}},async async(e,t){return{factory:await t.parse(ao),stream:await t.parse(co(e))}},stream(e,t){return{factory:t.parse(ao),stream:t.parse(co(e))}}},serialize(e,t){return`(`+t.serialize(e.factory)+`)(`+t.serialize(e.stream)+`)`},deserialize(e,t){return oo(t.deserialize(e.stream))}})];function uo(){return[...(Te()?.serializationAdapters)?.map(Va)??[],...lo]}var fo=new TextDecoder,po=new Uint8Array,V=16*1024*1024,mo=32*1024*1024,ho=1024,go=1e5;function _o(e){let t=new Map,n=new Map,r=new Set,i=!1,a=null,o=0,s,c=new ReadableStream({start(e){s=e},cancel(){i=!0;try{a?.cancel()}catch{}t.forEach(e=>{try{e.error(Error(`Framed response cancelled`))}catch{}}),t.clear(),n.clear(),r.clear()}});function l(e){let i=n.get(e);if(i)return i;if(r.has(e))return new ReadableStream({start(e){e.close()}});if(n.size>=ho)throw Error(`Too many raw streams in framed response (max ${ho})`);let a=new ReadableStream({start(n){t.set(e,n)},cancel(){r.add(e),t.delete(e),n.delete(e)}});return n.set(e,a),a}function u(e){return l(e),t.get(e)}return(async()=>{let n=e.getReader();a=n;let c=[],l=0;function d(){if(l<9)return null;let e=c[0];if(e.length>=9)return{type:e[0],streamId:(e[1]<<24|e[2]<<16|e[3]<<8|e[4])>>>0,length:(e[5]<<24|e[6]<<16|e[7]<<8|e[8])>>>0};let t=new Uint8Array(9),n=0,r=9;for(let e=0;e<c.length&&r>0;e++){let i=c[e],a=Math.min(i.length,r);t.set(i.subarray(0,a),n),n+=a,r-=a}return{type:t[0],streamId:(t[1]<<24|t[2]<<16|t[3]<<8|t[4])>>>0,length:(t[5]<<24|t[6]<<16|t[7]<<8|t[8])>>>0}}function f(e){if(e===0)return po;let t=new Uint8Array(e),n=0,r=e;for(;r>0&&c.length>0;){let e=c[0];if(!e)break;let i=Math.min(e.length,r);t.set(e.subarray(0,i),n),n+=i,r-=i,i===e.length?c.shift():c[0]=e.subarray(i)}return l-=e,t}try{for(;;){let{done:e,value:a}=await n.read();if(i||e)break;if(a){if(l+a.length>mo)throw Error(`Framed response buffer exceeded ${mo} bytes`);for(c.push(a),l+=a.length;;){let e=d();if(!e)break;let{type:n,streamId:i,length:a}=e;if(n!==xe.JSON&&n!==xe.CHUNK&&n!==xe.END&&n!==xe.ERROR)throw Error(`Unknown frame type: ${n}`);if(n===xe.JSON){if(i!==0)throw Error(`Invalid JSON frame streamId (expected 0)`)}else if(i===0)throw Error(`Invalid raw frame streamId (expected non-zero)`);if(a>V)throw Error(`Frame payload too large: ${a} bytes (max ${V})`);let c=9+a;if(l<c)break;if(++o>go)throw Error(`Too many frames in framed response (max ${go})`);f(9);let p=f(a);switch(n){case xe.JSON:try{s.enqueue(fo.decode(p))}catch{}break;case xe.CHUNK:{let e=u(i);e&&e.enqueue(p);break}case xe.END:{let e=u(i);if(r.add(i),e){try{e.close()}catch{}t.delete(i)}break}case xe.ERROR:{let e=u(i);if(r.add(i),e){let n=fo.decode(p);e.error(Error(n)),t.delete(i)}break}}}}}if(l!==0)throw Error(`Incomplete frame at end of framed response`);try{s.close()}catch{}t.forEach(e=>{try{e.close()}catch{}}),t.clear()}catch(e){try{s.error(e)}catch{}t.forEach(t=>{try{t.error(e)}catch{}}),t.clear()}finally{try{n.releaseLock()}catch{}a=null}})(),{getOrCreateStream:l,jsonChunks:c}}var vo=null;async function yo(e){e.length>0&&await Promise.allSettled(e)}var bo=Object.prototype.hasOwnProperty;function xo(e){for(let t in e)if(bo.call(e,t))return!0;return!1}async function So(e,t,n){vo||=uo();let r=t[0],i=r.fetch??n,a=r.data instanceof FormData?`formData`:`payload`,o=r.headers?new Headers(r.headers):new Headers;if(o.set(`x-tsr-serverFn`,`true`),a===`payload`&&o.set(`accept`,`${be}, application/x-ndjson, application/json`),r.method===`GET`){if(a===`formData`)throw Error(`FormData is not supported with GET requests`);let t=await Co(r);if(t!==void 0){let n=De({payload:t});e.includes(`?`)?e+=`&${n}`:e+=`?${n}`}}let s;if(r.method===`POST`){let e=await To(r);e?.contentType&&o.set(`content-type`,e.contentType),s=e?.body}return await Eo(async()=>i(e,{method:r.method,headers:o,signal:r.signal,body:s}))}async function Co(e){let t=!1,n={};if(e.data!==void 0&&(t=!0,n.data=e.data),e.context&&xo(e.context)&&(t=!0,n.context=e.context),t)return wo(n)}async function wo(e){return JSON.stringify(await Promise.resolve(za(e,{plugins:vo})))}async function To(e){if(e.data instanceof FormData){let t;return e.context&&xo(e.context)&&(t=await wo(e.context)),t!==void 0&&e.data.set(_e,t),{body:e.data}}let t=await Co(e);if(t)return{body:t,contentType:`application/json`}}async function Eo(e){let t;try{t=await e()}catch(e){if(e instanceof Response)t=e;else throw console.log(e),e}if(t.headers.get(`x-tss-raw`)===`true`)return t;let n=t.headers.get(`content-type`);if(n||_(),t.headers.get(`x-tss-serialized`)){let e;if(n.includes(`application/x-tss-framed`)){if(we(n),!t.body)throw Error(`No response body for framed response`);let{getOrCreateStream:r,jsonChunks:i}=_o(t.body),a=[ro(r),...vo||[]],o=new Map;e=await Do({jsonStream:i,onMessage:e=>Ra(e,{refs:o,plugins:a}),onError(e,t){console.error(e,t)}})}else if(n.includes(`application/json`)){let n=await t.json(),r=[];try{e=Ra(n,{plugins:vo})}finally{}await yo(r)}if(e||_(),e instanceof Error)throw e;return e}if(n.includes(`application/json`)){let e=await t.json(),n=Le(e);if(n)throw n;if(Ee(e))throw e;return e}if(!t.ok)throw Error(await t.text());return t}async function Do({jsonStream:e,onMessage:t,onError:n}){let r=e.getReader(),{value:i,done:a}=await r.read();if(a||!i)throw Error(`Stream ended before first object`);let o=JSON.parse(i),s=!1,c=(async()=>{try{for(;;){let{value:e,done:i}=await r.read();if(i)break;if(e)try{let n=[];try{t(JSON.parse(e))}finally{}await yo(n)}catch(t){n?.(`Invalid JSON: ${e}`,t)}}}catch(e){s||n?.(`Stream processing error:`,e)}})(),l,u=[];try{l=t(o)}catch(e){throw s=!0,r.cancel().catch(()=>{}),e}return await yo(u),Promise.resolve(l).catch(()=>{s=!0,r.cancel().catch(()=>{})}),c.finally(()=>{try{r.releaseLock()}catch{}}),l}function Oo(e){let t=`/_serverFn/`+e;return Object.assign((...e)=>{let n=Te()?.serverFns?.fetch;return So(t,e,n??fetch)},{url:t,serverFnMeta:{id:e},[ve]:!0})}var ko=Ba({key:`$TSS/serverfn`,test:e=>typeof e!=`function`||!(ve in e)?!1:!!e[ve],toSerializable:({serverFnMeta:e})=>({functionId:e.id}),fromSerializable:({functionId:e})=>Oo(e)});function Ao(e){if(Array.isArray(e))return e.flatMap(e=>Ao(e));if(typeof e!=`string`)return[];let t=[],n=0,r,i,a,o,s,c=()=>{for(;n<e.length&&/\s/.test(e.charAt(n));)n+=1;return n<e.length},l=()=>(i=e.charAt(n),i!==`=`&&i!==`;`&&i!==`,`);for(;n<e.length;){for(r=n,s=!1;c();)if(i=e.charAt(n),i===`,`){for(a=n,n+=1,c(),o=n;n<e.length&&l();)n+=1;n<e.length&&e.charAt(n)===`=`?(s=!0,n=o,t.push(e.slice(r,a)),r=n):n=a+1}else n+=1;(!s||n>=e.length)&&t.push(e.slice(r))}return t}function jo(e){return e instanceof Headers?e:Array.isArray(e)||typeof e==`object`?new Headers(e):null}function Mo(...e){return e.reduce((e,t)=>{let n=jo(t);if(!n)return e;for(let[t,r]of n.entries())t===`set-cookie`?Ao(r).forEach(t=>e.append(`set-cookie`,t)):e.set(t,r);return e},new Headers)}function No(e){return e.replaceAll(`\0`,`/`).replaceAll(`�`,`/`)}function Po(e,t){e.id=t.i,e.__beforeLoadContext=t.b,e.loaderData=t.l,e.status=t.s,e.ssr=t.ssr,e.updatedAt=t.u,e.error=t.e,t.g!==void 0&&(e.globalNotFound=t.g)}async function Fo(e){window.$_TSR||_();let t=e.options.serializationAdapters;if(t?.length){let e=new Map;t.forEach(t=>{e.set(t.key,t.fromSerializable)}),window.$_TSR.t=e,window.$_TSR.buffer.forEach(e=>e())}window.$_TSR.initialized=!0,window.$_TSR.router||_();let n=window.$_TSR.router;n.matches.forEach(e=>{e.i=No(e.i)}),n.lastMatchId&&=No(n.lastMatchId);let{manifest:r,dehydratedData:i,lastMatchId:a}=n;e.ssr={manifest:r};let o=document.querySelector(`meta[property="csp-nonce"]`)?.content;e.options.ssr={nonce:o},await e.options.hydrate?.(i);let s=e.matchRoutes(e.stores.location.get()),c=Promise.all(s.map(t=>e.loadRouteChunk(e.looseRoutesById[t.routeId])));function l(t){let n=e.looseRoutesById[t.routeId].options.pendingMinMs??e.options.defaultPendingMinMs;if(n){let r=te();t._nonReactive.minPendingPromise=r,t._forcePending=!0,setTimeout(()=>{r.resolve(),e.updateMatch(t.id,e=>(e._nonReactive.minPendingPromise=void 0,{...e,_forcePending:void 0}))},n)}}function u(t){let n=e.looseRoutesById[t.routeId];n&&(n.options.ssr=t.ssr)}let d;s.forEach(e=>{let t=n.matches.find(t=>t.i===e.id);if(!t){e._nonReactive.dehydrated=!1,e.ssr=!1,u(e);return}Po(e,t),u(e),e._nonReactive.dehydrated=e.ssr!==!1,(e.ssr===`data-only`||e.ssr===!1)&&d===void 0&&(d=e.index,l(e))}),e.stores.setMatches(s);let f=e.stores.matches.get(),p=e.stores.location.get();await Promise.all(f.map(async t=>{try{let n=e.looseRoutesById[t.routeId],r=f[t.index-1]?.context??e.options.context;if(n.options.context){let i={deps:t.loaderDeps,params:t.params,context:r??{},location:p,navigate:t=>e.navigate({...t,_fromLocation:p}),buildLocation:e.buildLocation,cause:t.cause,abortController:t.abortController,preload:!1,matches:s,routeId:n.id};t.__routeContext=n.options.context(i)??void 0}t.context={...r,...t.__routeContext,...t.__beforeLoadContext};let i={ssr:e.options.ssr,matches:f,match:t,params:t.params,loaderData:t.loaderData},a=await n.options.head?.(i),o=await n.options.scripts?.(i);t.meta=a?.meta,t.links=a?.links,t.headScripts=a?.scripts,t.styles=a?.styles,t.scripts=o}catch(e){if(Ee(e))t.error={isNotFound:!0},console.error(`NotFound error during hydration for routeId: ${t.routeId}`,e);else throw t.error=e,console.error(`Error during hydration for route ${t.routeId}:`,e),e}}));let m=s[s.length-1].id!==a;if(!s.some(e=>e.ssr===!1)&&!m)return s.forEach(e=>{e._nonReactive.dehydrated=void 0}),e.stores.resolvedLocation.set(e.stores.location.get()),c;let h=Promise.resolve().then(()=>e.load()).catch(e=>{console.error(`Error during router hydration:`,e)});if(m){let t=s[1];t||_(),l(t),t._displayPending=!0,t._nonReactive.displayPendingPromise=h,h.then(()=>{e.batch(()=>{e.stores.status.get()===`pending`&&(e.stores.status.set(`idle`),e.stores.resolvedLocation.set(e.stores.location.get())),e.updateMatch(t.id,e=>({...e,_displayPending:void 0,displayPendingPromise:void 0}))})})}return c}var H=e(d(),1),U=F();function Io({promise:e}){if(se)return se(e);let t=Xt(e);if(t[Yt].status===`pending`)throw t;if(t[Yt].status===`error`)throw t[Yt].error;return t[Yt].data}function Lo(e){let t=(0,U.jsx)(Ro,{...e});return e.fallback?(0,U.jsx)(H.Suspense,{fallback:e.fallback,children:t}):t}function Ro(e){let t=Io(e);return e.children(t)}function zo(e){let t=e.errorComponent??Vo;return(0,U.jsx)(Bo,{getResetKey:e.getResetKey,onCatch:e.onCatch,children:({error:n,reset:r})=>n?H.createElement(t,{error:n,reset:r}):e.children})}var Bo=class extends H.Component{constructor(...e){super(...e),this.state={error:null}}static getDerivedStateFromProps(e,t){let n=e.getResetKey();return t.error&&t.resetKey!==n?{resetKey:n,error:null}:{resetKey:n}}static getDerivedStateFromError(e){return{error:e}}reset(){this.setState({error:null})}componentDidCatch(e,t){this.props.onCatch&&this.props.onCatch(e,t)}render(){return this.props.children({error:this.state.error,reset:()=>{this.reset()}})}};function Vo({error:e}){let[t,n]=H.useState(!1);return(0,U.jsxs)(`div`,{style:{padding:`.5rem`,maxWidth:`100%`},children:[(0,U.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:`.5rem`},children:[(0,U.jsx)(`strong`,{style:{fontSize:`1rem`},children:`Something went wrong!`}),(0,U.jsx)(`button`,{style:{appearance:`none`,fontSize:`.6em`,border:`1px solid currentColor`,padding:`.1rem .2rem`,fontWeight:`bold`,borderRadius:`.25rem`},onClick:()=>n(e=>!e),children:t?`Hide Error`:`Show Error`})]}),(0,U.jsx)(`div`,{style:{height:`.25rem`}}),t?(0,U.jsx)(`div`,{children:(0,U.jsx)(`pre`,{style:{fontSize:`.7em`,border:`1px solid red`,borderRadius:`.25rem`,padding:`.3rem`,color:`red`,overflow:`auto`},children:e.message?(0,U.jsx)(`code`,{children:e.message}):null})}):null]})}var Ho=H.createContext(void 0),Uo=H.createContext(void 0),Wo=(e=>(e[e.None=0]=`None`,e[e.Mutable=1]=`Mutable`,e[e.Watching=2]=`Watching`,e[e.RecursedCheck=4]=`RecursedCheck`,e[e.Recursed=8]=`Recursed`,e[e.Dirty=16]=`Dirty`,e[e.Pending=32]=`Pending`,e))(Wo||{});function Go({update:e,notify:t,unwatched:n}){return{link:r,unlink:i,propagate:a,checkDirty:o,shallowPropagate:s};function r(e,t,n){let r=t.depsTail;if(r!==void 0&&r.dep===e)return;let i=r===void 0?t.deps:r.nextDep;if(i!==void 0&&i.dep===e){i.version=n,t.depsTail=i;return}let a=e.subsTail;if(a!==void 0&&a.version===n&&a.sub===t)return;let o=t.depsTail=e.subsTail={version:n,dep:e,sub:t,prevDep:r,nextDep:i,prevSub:a,nextSub:void 0};i!==void 0&&(i.prevDep=o),r===void 0?t.deps=o:r.nextDep=o,a===void 0?e.subs=o:a.nextSub=o}function i(e,t=e.sub){let r=e.dep,i=e.prevDep,a=e.nextDep,o=e.nextSub,s=e.prevSub;return a===void 0?t.depsTail=i:a.prevDep=i,i===void 0?t.deps=a:i.nextDep=a,o===void 0?r.subsTail=s:o.prevSub=s,s===void 0?(r.subs=o)===void 0&&n(r):s.nextSub=o,a}function a(e){let n=e.nextSub,r;top:do{let i=e.sub,a=i.flags;if(a&60?a&12?a&4?!(a&48)&&c(e,i)?(i.flags=a|40,a&=1):a=0:i.flags=a&-9|32:a=0:i.flags=a|32,a&2&&t(i),a&1){let t=i.subs;if(t!==void 0){let i=(e=t).nextSub;i!==void 0&&(r={value:n,prev:r},n=i);continue}}if((e=n)!==void 0){n=e.nextSub;continue}for(;r!==void 0;)if(e=r.value,r=r.prev,e!==void 0){n=e.nextSub;continue top}break}while(!0)}function o(t,n){let r,i=0,a=!1;top:do{let o=t.dep,c=o.flags;if(n.flags&16)a=!0;else if((c&17)==17){if(e(o)){let e=o.subs;e.nextSub!==void 0&&s(e),a=!0}}else if((c&33)==33){(t.nextSub!==void 0||t.prevSub!==void 0)&&(r={value:t,prev:r}),t=o.deps,n=o,++i;continue}if(!a){let e=t.nextDep;if(e!==void 0){t=e;continue}}for(;i--;){let i=n.subs,o=i.nextSub!==void 0;if(o?(t=r.value,r=r.prev):t=i,a){if(e(n)){o&&s(i),n=t.sub;continue}a=!1}else n.flags&=-33;n=t.sub;let c=t.nextDep;if(c!==void 0){t=c;continue top}}return a}while(!0)}function s(e){do{let n=e.sub,r=n.flags;(r&48)==32&&(n.flags=r|16,(r&6)==2&&t(n))}while((e=e.nextSub)!==void 0)}function c(e,t){let n=t.depsTail;for(;n!==void 0;){if(n===e)return!0;n=n.prevDep}return!1}}function Ko(e,t,n){let r=typeof e==`object`,i=r?e:void 0;return{next:(r?e.next:e)?.bind(i),error:(r?e.error:t)?.bind(i),complete:(r?e.complete:n)?.bind(i)}}var qo=[],Jo=0,{link:Yo,unlink:Xo,propagate:Zo,checkDirty:Qo,shallowPropagate:$o}=Go({update(e){return e._update()},notify(e){qo[ts++]=e,e.flags&=~Wo.Watching},unwatched(e){e.depsTail!==void 0&&(e.depsTail=void 0,e.flags=Wo.Mutable|Wo.Dirty,as(e))}}),es=0,ts=0,ns,rs=0;function is(e){try{++rs,e()}finally{--rs||os()}}function as(e){let t=e.depsTail,n=t===void 0?e.deps:t.nextDep;for(;n!==void 0;)n=Xo(n,e)}function os(){if(!(rs>0)){for(;es<ts;){let e=qo[es];qo[es++]=void 0,e.notify()}es=0,ts=0}}function ss(e,t){let n=typeof e==`function`,r=e,i={_snapshot:n?void 0:e,subs:void 0,subsTail:void 0,deps:void 0,depsTail:void 0,flags:n?Wo.None:Wo.Mutable,get(){return ns!==void 0&&Yo(i,ns,Jo),i._snapshot},subscribe(e){let t=Ko(e),n={current:!1},r=cs(()=>{i.get(),n.current?t.next?.(i._snapshot):n.current=!0});return{unsubscribe:()=>{r.stop()}}},_update(e){let a=ns,o=t?.compare??Object.is;if(n)ns=i,++Jo,i.depsTail=void 0;else if(e===void 0)return!1;n&&(i.flags=Wo.Mutable|Wo.RecursedCheck);try{let t=i._snapshot,a=typeof e==`function`?e(t):e===void 0&&n?r(t):e;return t===void 0||!o(t,a)?(i._snapshot=a,!0):!1}finally{ns=a,n&&(i.flags&=~Wo.RecursedCheck),as(i)}}};return n?(i.flags=Wo.Mutable|Wo.Dirty,i.get=function(){let e=i.flags;if(e&Wo.Dirty||e&Wo.Pending&&Qo(i.deps,i)){if(i._update()){let e=i.subs;e!==void 0&&$o(e)}}else e&Wo.Pending&&(i.flags=e&~Wo.Pending);return ns!==void 0&&Yo(i,ns,Jo),i._snapshot}):i.set=function(e){if(i._update(e)){let e=i.subs;e!==void 0&&(Zo(e),$o(e),os())}},i}function cs(e){let t=()=>{let t=ns;ns=n,++Jo,n.depsTail=void 0,n.flags=Wo.Watching|Wo.RecursedCheck;try{return e()}finally{ns=t,n.flags&=~Wo.RecursedCheck,as(n)}},n={deps:void 0,depsTail:void 0,subs:void 0,subsTail:void 0,flags:Wo.Watching|Wo.RecursedCheck,notify(){let e=this.flags;e&Wo.Dirty||e&Wo.Pending&&Qo(this.deps,this)?t():this.flags=Wo.Watching},stop(){this.flags=Wo.None,this.depsTail=void 0,as(this)}};return t(),n}var ls={get(){},subscribe(){return{unsubscribe(){}}}};function us(e,t){let n=H.useRef();return r=>{let i=e?.select?e.select(r):r;return e?.structuralSharing??t.options.defaultStructuralSharing?n.current=S(n.current,i):i}}function ds(e){let t=D(),n=H.useContext(e.from?Uo:Ho),r=e.from?t.stores.getRouteMatchStore(e.from):t.stores.matchStores.get(n),i=us(e,t),a=re(r??ls,e=>e?i(e):ls);if(a!==ls)return a;(e.shouldThrow??!0)&&_()}function fs(e){return ds({from:e.from,strict:e.strict,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.loaderData):t.loaderData})}function ps(e){let{select:t,...n}=e;return ds({...n,select:e=>t?t(e.loaderDeps):e.loaderDeps})}function ms(e){return ds({from:e.from,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,strict:e.strict,select:t=>{let n=e.strict===!1?t.params:t._strictParams;return e.select?e.select(n):n}})}function hs(e){return ds({from:e.from,strict:e.strict,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.search):t.search})}function gs(e){let t=D();return H.useCallback(n=>t.navigate({...n,from:n.from??e?.from}),[e?.from,t])}function _s(e){return ds({...e,select:t=>e.select?e.select(t.context):t.context})}var vs=class extends rn{constructor(e){super(e),this.useMatch=e=>ds({select:e?.select,from:this.id,structuralSharing:e?.structuralSharing}),this.useRouteContext=e=>_s({...e,from:this.id}),this.useSearch=e=>hs({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useParams=e=>ms({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useLoaderDeps=e=>ps({...e,from:this.id}),this.useLoaderData=e=>fs({...e,from:this.id}),this.useNavigate=()=>gs({from:this.fullPath}),this.Link=H.forwardRef((e,t)=>(0,U.jsx)(oe,{ref:t,from:this.fullPath,...e}))}};function ys(e){return new vs(e)}var bs=class extends an{constructor(e){super(e),this.useMatch=e=>ds({select:e?.select,from:this.id,structuralSharing:e?.structuralSharing}),this.useRouteContext=e=>_s({...e,from:this.id}),this.useSearch=e=>hs({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useParams=e=>ms({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useLoaderDeps=e=>ps({...e,from:this.id}),this.useLoaderData=e=>fs({...e,from:this.id}),this.useNavigate=()=>gs({from:this.fullPath}),this.Link=H.forwardRef((e,t)=>(0,U.jsx)(oe,{ref:t,from:this.fullPath,...e}))}};function xs(e){return new bs(e)}function Ss(e){return new Cs(e,{silent:!0}).createRoute}var Cs=class{constructor(e,t){this.path=e,this.createRoute=e=>{let t=ys(e);return t.isRoot=!1,t},this.silent=t?.silent}};function ws(e,t){let n,r,i,a,o=()=>(n||=e().then(e=>{n=void 0,r=e[t??`default`]}).catch(e=>{if(i=e,fe(i)&&i instanceof Error&&typeof window<`u`&&typeof sessionStorage<`u`){let e=`tanstack_router_reload:${i.message}`;sessionStorage.getItem(e)||(sessionStorage.setItem(e,`1`),a=!0)}}),n),s=function(e){if(a)throw window.location.reload(),new Promise(()=>{});if(i)throw i;if(!r)if(se)se(o());else throw o();return H.createElement(r,e)};return s.preload=o,s}function Ts(e){let t=D(),n=`not-found-${re(t.stores.location,e=>e.pathname)}-${re(t.stores.status,e=>e)}`;return(0,U.jsx)(zo,{getResetKey:()=>n,onCatch:(t,n)=>{if(Ee(t))e.onCatch?.(t,n);else throw t},errorComponent:({error:t})=>{if(Ee(t))return e.fallback?.(t);throw t},children:e.children})}function Es(){return(0,U.jsx)(`p`,{children:`Not Found`})}function Ds(e){return(0,U.jsx)(U.Fragment,{children:e.children})}function Os(e,t,n){return t.options.notFoundComponent?(0,U.jsx)(t.options.notFoundComponent,{...n}):e.options.defaultNotFoundComponent?(0,U.jsx)(e.options.defaultNotFoundComponent,{...n}):(0,U.jsx)(Es,{})}var ks=(e,t)=>e.routeId===t.routeId&&e._displayPending===t._displayPending,As=(e,t)=>e[0]===t[0]&&e[1]===t[1],js=H.memo(function({matchId:e}){let t=D(),n=t.stores.matchStores.get(e);n||_();let r=re(t.stores.loadedAt,e=>e),i=re(n,e=>e,ks);return(0,U.jsx)(Ms,{router:t,matchId:e,resetKey:r,matchState:H.useMemo(()=>{let e=i.routeId,n=t.routesById[e].parentRoute?.id;return{routeId:e,ssr:i.ssr,_displayPending:i._displayPending,parentRouteId:n}},[i._displayPending,i.routeId,i.ssr,t.routesById])})});function Ms({router:e,matchId:t,resetKey:n,matchState:r}){let i=e.routesById[r.routeId],a=i.options.pendingComponent??e.options.defaultPendingComponent,o=a?(0,U.jsx)(a,{}):null,s=i.options.errorComponent??e.options.defaultErrorComponent,c=i.options.onCatch??e.options.defaultOnCatch,l=i.isRoot?i.options.notFoundComponent??e.options.notFoundRoute?.options.component:i.options.notFoundComponent,u=r.ssr===!1||r.ssr===`data-only`,d=(!i.isRoot||i.options.wrapInSuspense||u)&&(i.options.wrapInSuspense??a??(i.options.errorComponent?.preload||u))?H.Suspense:Ds,f=s?zo:Ds,p=l?Ts:Ds;return(0,U.jsxs)(i.isRoot?i.options.shellComponent??Ds:Ds,{children:[(0,U.jsx)(Ho.Provider,{value:t,children:(0,U.jsx)(d,{fallback:o,children:(0,U.jsx)(f,{getResetKey:()=>n,errorComponent:s||Vo,onCatch:(e,t)=>{if(Ee(e))throw e.routeId??=r.routeId,e;c?.(e,t)},children:(0,U.jsx)(p,{fallback:e=>{if(e.routeId??=r.routeId,!l||e.routeId&&e.routeId!==r.routeId||!e.routeId&&!i.isRoot)throw e;return H.createElement(l,e)},children:u||r._displayPending?(0,U.jsx)(L,{fallback:o,children:(0,U.jsx)(Ps,{matchId:t})}):(0,U.jsx)(Ps,{matchId:t})})})})}),r.parentRouteId===`__root__`?(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(Ns,{}),(e.options.scrollRestoration,null)]}):null]})}function Ns(){let e=D(),t=H.useRef();return A(()=>{let n=e.stores.resolvedLocation.get(),r=t.current;n&&(!r||r.href!==n.href)&&e.emit({type:`onRendered`,...Ct(e.stores.location.get(),r??n)}),t.current=n},[re(e.stores.resolvedLocation,e=>e?.state.__TSR_key),e]),null}var Ps=H.memo(function({matchId:e}){let t=D(),n=(e,n)=>t.getMatch(e.id)?._nonReactive[n]??e._nonReactive[n],r=t.stores.matchStores.get(e);r||_();let i=re(r,e=>e),a=i.routeId,o=t.routesById[a],s=H.useMemo(()=>{let e=(t.routesById[a].options.remountDeps??t.options.defaultRemountDeps)?.({routeId:a,loaderDeps:i.loaderDeps,params:i._strictParams,search:i._strictSearch});return e?JSON.stringify(e):void 0},[a,i.loaderDeps,i._strictParams,i._strictSearch,t.options.defaultRemountDeps,t.routesById]),c=H.useMemo(()=>{let e=o.options.component??t.options.defaultComponent;return e?(0,U.jsx)(e,{},s):(0,U.jsx)(Fs,{})},[s,o.options.component,t.options.defaultComponent]);if(i._displayPending)throw n(i,`displayPendingPromise`);if(i._forcePending)throw n(i,`minPendingPromise`);if(i.status===`pending`){let e=o.options.pendingMinMs??t.options.defaultPendingMinMs;if(e){let n=t.getMatch(i.id);if(n&&!n._nonReactive.minPendingPromise){let t=te();n._nonReactive.minPendingPromise=t,setTimeout(()=>{t.resolve(),n._nonReactive.minPendingPromise=void 0},e)}}throw n(i,`loadPromise`)}if(i.status===`notFound`)return Ee(i.error)||_(),Os(t,o,i.error);if(i.status===`redirected`)throw Ie(i.error)||_(),n(i,`loadPromise`);if(i.status===`error`)throw i.error;return c}),Fs=H.memo(function(){let e=D(),t=H.useContext(Ho),n,r=!1,i;{let a=t?e.stores.matchStores.get(t):void 0;[n,r]=re(a,e=>[e?.routeId,e?.globalNotFound??!1],As),i=re(e.stores.matchesId,e=>e[e.findIndex(e=>e===t)+1])}let a=n?e.routesById[n]:void 0,o=e.options.defaultPendingComponent?(0,U.jsx)(e.options.defaultPendingComponent,{}):null;if(r)return a||_(),Os(e,a,void 0);if(!i)return null;let s=(0,U.jsx)(js,{matchId:i});return n===`__root__`?(0,U.jsx)(H.Suspense,{fallback:o,children:s}):s});function Is(){let e=D(),t=H.useRef({router:e,mounted:!1}),[n,r]=H.useState(!1),i=re(e.stores.isLoading,e=>e),a=re(e.stores.hasPending,e=>e),o=j(i),s=i||n||a,c=j(s),l=i||a,u=j(l);return e.startTransition=e=>{r(!0),H.startTransition(()=>{e(),r(!1)})},H.useEffect(()=>{let t=e.history.subscribe(e.load),n=e.buildLocation({to:e.latestLocation.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0});return O(e.latestLocation.publicHref)!==O(n.publicHref)&&e.commitLocation({...n,replace:!0}),()=>{t()}},[e,e.history]),A(()=>{typeof window<`u`&&e.ssr||t.current.router===e&&t.current.mounted||(t.current={router:e,mounted:!0},(async()=>{try{await e.load()}catch(e){console.error(e)}})())},[e]),A(()=>{o&&!i&&e.emit({type:`onLoad`,...Ct(e.stores.location.get(),e.stores.resolvedLocation.get())})},[o,e,i]),A(()=>{u&&!l&&e.emit({type:`onBeforeRouteMount`,...Ct(e.stores.location.get(),e.stores.resolvedLocation.get())})},[l,u,e]),A(()=>{if(c&&!s){let t=Ct(e.stores.location.get(),e.stores.resolvedLocation.get());e.emit({type:`onResolved`,...t}),is(()=>{e.stores.status.set(`idle`),e.stores.resolvedLocation.set(e.stores.location.get())})}},[s,c,e]),null}function Ls(){let e=D(),t=e.routesById.__root__.options.pendingComponent??e.options.defaultPendingComponent,n=t?(0,U.jsx)(t,{}):null,r=(0,U.jsxs)(typeof document<`u`&&e.ssr?Ds:H.Suspense,{fallback:n,children:[(0,U.jsx)(Is,{}),(0,U.jsx)(Rs,{})]});return e.options.InnerWrap?(0,U.jsx)(e.options.InnerWrap,{children:r}):r}function Rs(){let e=D(),t=re(e.stores.firstId,e=>e),n=re(e.stores.loadedAt,e=>e),r=t?(0,U.jsx)(js,{matchId:t}):null;return(0,U.jsx)(Ho.Provider,{value:t,children:e.options.disableGlobalCatchBoundary?r:(0,U.jsx)(zo,{getResetKey:()=>n,errorComponent:Vo,onCatch:void 0,children:r})})}var zs=e=>({createMutableStore:ss,createReadonlyStore:ss,batch:is}),Bs=e=>new Vs(e),Vs=class extends Tt{constructor(e){super(e,zs)}};function Hs({router:e,children:t,...n}){m(n)&&e.update({...e.options,...n,context:{...e.options.context,...n.context}});let r=(0,U.jsx)(ie.Provider,{value:e,children:t});return e.options.Wrap?(0,U.jsx)(e.options.Wrap,{children:r}):r}function Us({router:e,...t}){return(0,U.jsx)(Hs,{router:e,...t,children:(0,U.jsx)(Ls,{})})}function Ws(e,t){if(t)for(let[n,r]of Object.entries(t))n!==`suppressHydrationWarning`&&r!==void 0&&r!==!1&&e.setAttribute(n,typeof r==`boolean`?``:String(r))}function Gs(e){let{attrs:t,children:n,nonce:r,preventScriptHoist:i}=e;switch(e.tag){case`title`:return(0,U.jsx)(`title`,{...t,suppressHydrationWarning:!0,children:n});case`meta`:return(0,U.jsx)(`meta`,{...t,suppressHydrationWarning:!0});case`link`:return(0,U.jsx)(`link`,{...t,precedence:t?.precedence??(t?.rel===`stylesheet`?`default`:void 0),nonce:r,suppressHydrationWarning:!0});case`style`:return e.inlineCss,(0,U.jsx)(`style`,{...t,dangerouslySetInnerHTML:{__html:n},nonce:r});case`script`:return(0,U.jsx)(Ks,{attrs:t,preventScriptHoist:i,children:n});default:return null}}function Ks({attrs:e,children:t,preventScriptHoist:n}){D();let r=k(),i=typeof e?.type==`string`&&e.type!==``&&e.type!==`text/javascript`&&e.type!==`module`;if(H.useEffect(()=>{if(!i){if(e?.src){let t=(()=>{try{let t=document.baseURI||window.location.href;return new URL(e.src,t).href}catch{return e.src}})();for(let e of document.querySelectorAll(`script[src]`))if(e.src===t)return;let n=document.createElement(`script`);return Ws(n,e),document.head.appendChild(n),()=>n.remove()}if(typeof t==`string`){let n=typeof e?.type==`string`?e.type:`text/javascript`,r=typeof e?.nonce==`string`?e.nonce:void 0;for(let e of document.querySelectorAll(`script:not([src])`)){if(!(e instanceof HTMLScriptElement))continue;let i=e.getAttribute(`type`)??`text/javascript`,a=e.getAttribute(`nonce`)??void 0;if(e.textContent===t&&i===n&&a===r)return}let i=document.createElement(`script`);return i.textContent=t,Ws(i,e),document.head.appendChild(i),()=>i.remove()}}},[e,t,i]),i&&typeof t==`string`)return(0,U.jsx)(`script`,{...e,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:t}});if(!r){if(e?.src)return(0,U.jsx)(`script`,{...e,suppressHydrationWarning:!0});if(typeof t==`string`)return(0,U.jsx)(`script`,{...e,dangerouslySetInnerHTML:{__html:t},suppressHydrationWarning:!0})}return null}var qs=e=>{let t=D(),n=t.options.ssr?.nonce,r=re(t.stores.matches,e=>e.map(e=>e.meta).filter(e=>e!==void 0),g),i=H.useMemo(()=>{let e=[],t={},i;for(let a=r.length-1;a>=0;a--){let o=r[a];for(let r=o.length-1;r>=0;r--){let a=o[r];if(a)if(a.title)i||={tag:`title`,children:a.title};else if(`script:ld+json`in a)try{let t=JSON.stringify(a[`script:ld+json`]);e.push({tag:`script`,attrs:{type:`application/ld+json`},children:u(t)})}catch{}else{let r=a.name??a.property;if(r){if(t[r])continue;t[r]=!0}e.push({tag:`meta`,attrs:{...a,nonce:n}})}}}return i&&e.push(i),n&&e.push({tag:`meta`,attrs:{property:`csp-nonce`,content:n}}),e.reverse(),e},[r,n]),a=re(t.stores.matches,e=>e.flatMap(e=>e.links??[]).filter(e=>e!==void 0).map(e=>({tag:`link`,attrs:{...e,nonce:n}})),g),o=re(t.stores.matches,r=>{let i=t.ssr?.manifest,a=[];return i?(r.forEach(t=>{i.routes[t.routeId]?.css?.forEach(t=>{let r=nn(t);a.push({tag:`link`,attrs:{rel:`stylesheet`,...r,crossOrigin:Zt(e,`stylesheet`)??r.crossOrigin,suppressHydrationWarning:!0,nonce:n}})})}),i.inlineStyle&&a.push({tag:`style`,attrs:{...i.inlineStyle.attrs,nonce:n},children:i.inlineStyle.children,inlineCss:!0}),a):a},g),s=re(t.stores.matches,r=>{let i=[],a=t.ssr?.manifest;return a&&r.forEach(t=>{a.routes[t.routeId]?.preloads?.forEach(t=>{i.push({tag:`link`,attrs:{...$t(a,t,e),nonce:n}})})}),i},g),c=re(t.stores.matches,e=>e.flatMap(e=>e.styles??[]).filter(e=>e!==void 0).map(({children:e,...t})=>({tag:`style`,attrs:{...t,nonce:n},children:e})),g),l=re(t.stores.matches,e=>e.flatMap(e=>e.headScripts??[]).filter(e=>e!==void 0).map(({children:e,...t})=>({tag:`script`,attrs:{...t,nonce:n},children:e})),g),d=[];return tn(d,i),d.push(...s),tn(d,a),d.push(...o),tn(d,c),tn(d,l),d};function Js(e){let t=qs(e.assetCrossOrigin),n=D().options.ssr?.nonce;return(0,U.jsx)(U.Fragment,{children:t.map(e=>(0,H.createElement)(Gs,{...e,key:`tsr-meta-${JSON.stringify(e)}`,nonce:n}))})}var Ys=()=>{let e=D(),t=e.options.ssr?.nonce,n=n=>{let r=[],i=e.ssr?.manifest;if(!i)return[];for(let e of n){let n=i.routes[e.routeId]?.scripts;if(n)for(let e of n)r.push({tag:`script`,attrs:{...e.attrs,nonce:t},children:e.children,...typeof e.attrs?.src==`string`?{preventScriptHoist:!0}:{}})}return r},r=e=>e.map(e=>e.scripts).flat(1).filter(Boolean).map(({children:e,...n})=>({tag:`script`,attrs:{...n,suppressHydrationWarning:!0,nonce:t},children:e})),i=re(e.stores.matches,n,g);return Xs(e,re(e.stores.matches,r,g),i)};function Xs(e,t,n){let r=[...t,...n];return(0,U.jsx)(U.Fragment,{children:r.map((e,t)=>(0,H.createElement)(Gs,{...e,key:`tsr-scripts-${e.tag}-${t}`}))})}function Zs(e){return e!==`__proto__`&&e!==`constructor`&&e!==`prototype`}function Qs(e,t){let n=Object.create(null);if(e)for(let t of Object.keys(e))Zs(t)&&(n[t]=e[t]);if(t&&typeof t==`object`)for(let e of Object.keys(t))Zs(e)&&(n[e]=t[e]);return n}function $s(e){if(!e)return Object.create(null);let t=Object.create(null);for(let n of Object.keys(e))Zs(n)&&(t[n]=e[n]);return t}var ec=()=>{throw Error(`createServerOnlyFn() functions can only be called on the server!`)},tc=(e,t)=>{let n=t||e||{};n.method===void 0&&(n.method=`GET`);let r=e=>tc(void 0,{...n,validator:e,inputValidator:e});return Object.assign(e=>tc(void 0,{...n,...e}),{options:n,middleware:e=>{let t=[...n.middleware||[]];e.map(e=>{ye in e?e.options.middleware&&t.push(...e.options.middleware):t.push(e)});let r=tc(void 0,{...n,middleware:t});return r[ye]=!0,r},validator:r,inputValidator:r,handler:(...e)=>{let[t,r]=e,i={...n,extractedFn:t,serverFn:r},a=[...i.middleware||[],ac(i)];return t.method=n.method,Object.assign(async e=>{let n=await nc(a,`client`,{...t,...i,data:e?.data,headers:e?.headers,signal:e?.signal,fetch:e?.fetch,context:$s()}),r=Le(n.error);if(r)throw r;if(n.error)throw n.error;return n.result},{...t,method:n.method,__executeServer:async e=>{let n=ec(),r=n.contextAfterGlobalMiddlewares;return await nc(a,`server`,{...t,...e,serverFnMeta:t.serverFnMeta,context:Qs(e.context,r),request:n.request}).then(e=>({result:e.result,error:e.error,context:e.sendContext}))}})}})};async function nc(e,t,n){let r=rc([...Te()?.functionMiddleware||[],...e]);if(t===`server`){let e=ec({throwIfNotFound:!1});e?.executedRequestMiddlewares&&(r=r.filter(t=>!e.executedRequestMiddlewares.has(t)))}let i=async e=>{let n=r.shift();if(!n)return e;try{let r=`validator`in n.options?n.options.validator:void 0;!r&&`inputValidator`in n.options&&(r=n.options.inputValidator),r&&t===`server`&&(e.data=await ic(r,e.data));let a;if(t===`client`?`client`in n.options&&(a=n.options.client):`server`in n.options&&(a=n.options.server),a){let t=async(t={})=>{let n=await i({...e,...t,context:Qs(e.context,t.context),sendContext:Qs(e.sendContext,t.sendContext),headers:Mo(e.headers,t.headers),_callSiteFetch:e._callSiteFetch,fetch:e._callSiteFetch??t.fetch??e.fetch,result:t.result===void 0?t instanceof Response?t:e.result:t.result,error:t.error??e.error});if(n.error)throw n.error;return n},n=await a({...e,next:t});if(Ie(n))return{...e,error:n};if(n instanceof Response)return{...e,result:n};if(!n)throw Error(`User middleware returned undefined. You must call next() or return a result in your middlewares.`);return n}return i(e)}catch(t){return{...e,error:t}}};return i({...n,headers:n.headers||{},sendContext:n.sendContext||{},context:n.context||$s(),_callSiteFetch:n.fetch})}function rc(e,t=100){let n=new Set,r=[],i=(e,a)=>{if(a>t)throw Error(`Middleware nesting depth exceeded maximum of ${t}. Check for circular references.`);e.forEach(e=>{e.options.middleware&&i(e.options.middleware,a+1),n.has(e)||(n.add(e),r.push(e))})};return i(e,0),r}async function ic(e,t){if(e==null)return{};if(`~standard`in e){let n=await e[`~standard`].validate(t);if(n.issues)throw Error(JSON.stringify(n.issues,void 0,2));return n.value}if(`parse`in e)return e.parse(t);if(typeof e==`function`)return e(t);throw Error(`Invalid validator type!`)}function ac(e){return{"~types":void 0,options:{inputValidator:e.validator??e.inputValidator,client:async({next:t,sendContext:n,fetch:r,...i})=>{let a={...i,context:n,fetch:r};return t(await e.extractedFn?.(a))},server:async({next:t,...n})=>{let r=await e.serverFn?.(n);return t({...n,result:r})}}}}function oc(e){let t=(0,H.useRef)(null);return t.current===null&&(t.current=e()),t.current}function sc(e,t){if(e?.inherit&&t){let{inherit:n,...r}=e;return{...t,...r}}return e}var cc=e=>!!(e&&e.getVelocity),lc=(0,H.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:`never`}),uc=new Set(`animate.exit.variants.initial.style.values.variants.transition.transformTemplate.custom.inherit.onBeforeLayoutMeasure.onAnimationStart.onAnimationComplete.onUpdate.onDragStart.onDrag.onDragEnd.onMeasureDragConstraints.onDirectionLock.onDragTransitionEnd._dragX._dragY.onHoverStart.onHoverEnd.onViewportEnter.onViewportLeave.globalTapTarget.propagate.ignoreStrict.viewport`.split(`.`));function dc(e){return e.startsWith(`while`)||e.startsWith(`drag`)&&e!==`draggable`||e.startsWith(`layout`)||e.startsWith(`onTap`)||e.startsWith(`onPan`)||e.startsWith(`onLayout`)||uc.has(e)}var fc=r({default:()=>pc}),pc,mc=n((()=>{throw pc={},Error(`Could not resolve "@emotion/is-prop-valid" imported by "framer-motion". Is it installed?`)})),hc=e=>!dc(e);function gc(e){typeof e==`function`&&(hc=t=>t.startsWith(`on`)?!dc(t):e(t))}try{gc((mc(),t(fc)).default)}catch{}function _c(e,t,n){let r={};for(let i in e)i===`values`&&typeof e.values==`object`||cc(e[i])||(hc(i)||n===!0&&dc(i)||!t&&!dc(i)||e.draggable&&i.startsWith(`onDrag`))&&(r[i]=e[i]);return r}function vc({children:e,isValidProp:t,...n}){t&&gc(t);let r=(0,H.useContext)(lc);n={...r,...n},n.transition=sc(n.transition,r.transition),n.isStatic=oc(()=>n.isStatic);let i=(0,H.useMemo)(()=>n,[JSON.stringify(n.transition),n.transformPagePoint,n.reducedMotion,n.skipAnimations]);return(0,U.jsx)(lc.Provider,{value:i,children:e})}var yc=`/assets/app-DMYVKfjU.css`,bc={};function xc(e,t){let n=H.useRef(bc);return n.current===bc&&(n.current=e(t)),n}var Sc=[],Cc=void 0;function wc(){return Cc}function Tc(e){Sc.push(e)}function Ec(e){let t=(t,n)=>{let r=xc(Oc).current,i;try{Cc=r;for(let e of Sc)e.before(r);i=e(t,n);for(let e of Sc)e.after(r);r.didInitialize=!0}finally{Cc=void 0}return i};return t.displayName=e.displayName||e.name,t}function Dc(e){return H.forwardRef(Ec(e))}function Oc(){return{didInitialize:!1}}var W=typeof document<`u`?H.useLayoutEffect:()=>{};function kc(e,t){return function(n,...r){let i=new URL(e);return i.searchParams.set(`code`,n.toString()),r.forEach(e=>i.searchParams.append(`args[]`,e)),`${t} error #${n}; visit ${i} for the full message.`}}var Ac=kc(`https://base-ui.com/production-error`,`Base UI`),jc=H.createContext(void 0);function Mc(e){let t=H.useContext(jc);if(t===void 0&&!e)throw Error(Ac(72));return t}var Nc=[];function Pc(e){H.useEffect(e,Nc)}var Fc=0,Ic=class e{static create(){return new e}currentId=Fc;start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=Fc,t()},e)}isStarted(){return this.currentId!==Fc}clear=()=>{this.currentId!==Fc&&(clearTimeout(this.currentId),this.currentId=Fc)};disposeEffect=()=>this.clear};function Lc(){let e=xc(Ic.create).current;return Pc(e.disposeEffect),e}function Rc(){return typeof navigator>`u`?{userAgent:``,platform:``,maxTouchPoints:0}:{userAgent:navigator.userAgent,platform:navigator.platform??``,maxTouchPoints:navigator.maxTouchPoints??0}}var{userAgent:zc,platform:Bc,maxTouchPoints:Vc}=Rc(),Hc=zc.toLowerCase(),Uc=Bc.toLowerCase(),Wc=/^i(os$|p)/.test(Uc)||Uc===`macintel`&&Vc>1,Gc=`android`,Kc=Uc===Gc||Hc.includes(Gc),qc=!Wc&&Uc.startsWith(`mac`);Uc.startsWith(`win`),!Kc&&/^(linux|chrome os)/.test(Uc);var Jc=qc||Wc,Yc=typeof CSS<`u`&&!!CSS.supports?.(`-webkit-backdrop-filter:none`);!Yc&&Hc.includes(`firefox`),!Yc&&Hc.includes(`chrom`);var Xc=Jc,Zc=/jsdom|happydom/.test(Hc);function Qc(e){e.preventDefault(),e.stopPropagation()}function $c(e){return`nativeEvent`in e}function el(e){return e.pointerType===``&&e.isTrusted?!0:Kc&&e.pointerType?e.type===`click`&&e.buttons===1:e.detail===0&&!e.pointerType}function tl(e){return Zc?!1:!Kc&&e.width===0&&e.height===0||Kc&&e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType===`mouse`||e.width<1&&e.height<1&&e.pressure===0&&e.detail===0&&e.pointerType===`touch`}function nl(e,t){let n=[`mouse`,`pen`];return t||n.push(``,void 0),n.includes(e)}function rl(e){let t=e.type;return t===`click`||t===`mousedown`||t===`keydown`||t===`keyup`}function il(){return typeof window<`u`}function al(e){return cl(e)?(e.nodeName||``).toLowerCase():`#document`}function ol(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function sl(e){return((cl(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function cl(e){return il()?e instanceof Node||e instanceof ol(e).Node:!1}function G(e){return il()?e instanceof Element||e instanceof ol(e).Element:!1}function ll(e){return il()?e instanceof HTMLElement||e instanceof ol(e).HTMLElement:!1}function ul(e){return!il()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof ol(e).ShadowRoot}function dl(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=Sl(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!==`inline`&&i!==`contents`}function fl(e){return/^(table|td|th)$/.test(al(e))}function pl(e){try{if(e.matches(`:popover-open`))return!0}catch{}try{return e.matches(`:modal`)}catch{return!1}}var ml=/transform|translate|scale|rotate|perspective|filter/,hl=/paint|layout|strict|content/,gl=e=>!!e&&e!==`none`,_l;function vl(e){let t=G(e)?Sl(e):e;return gl(t.transform)||gl(t.translate)||gl(t.scale)||gl(t.rotate)||gl(t.perspective)||!bl()&&(gl(t.backdropFilter)||gl(t.filter))||ml.test(t.willChange||``)||hl.test(t.contain||``)}function yl(e){let t=wl(e);for(;ll(t)&&!xl(t);){if(vl(t))return t;if(pl(t))return null;t=wl(t)}return null}function bl(){return _l??=typeof CSS<`u`&&CSS.supports&&CSS.supports(`-webkit-backdrop-filter`,`none`),_l}function xl(e){return/^(html|body|#document)$/.test(al(e))}function Sl(e){return ol(e).getComputedStyle(e)}function Cl(e){return G(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function wl(e){if(al(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||ul(e)&&e.host||sl(e);return ul(t)?t.host:t}function Tl(e){let t=wl(e);return xl(t)?e.ownerDocument?e.ownerDocument.body:e.body:ll(t)&&dl(t)?t:Tl(t)}function El(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!0);let r=Tl(e),i=r===e.ownerDocument?.body,a=ol(r);if(i){let e=Dl(a);return t.concat(a,a.visualViewport||[],dl(r)?r:[],e&&n?El(e):[])}else return t.concat(r,El(r,[],n))}function Dl(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}var Ol=`data-base-ui-focusable`,kl=`input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])`;function Al(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}function jl(e,t){if(!e||!t)return!1;let n=t.getRootNode?.();if(e.contains(t))return!0;if(n&&ul(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function Ml(e){return`composedPath`in e?e.composedPath()[0]:e.target}function Nl(e,t){if(!G(e))return!1;let n=e;if(t.hasElement(n))return!n.hasAttribute(`data-trigger-disabled`);for(let[,e]of t.entries())if(jl(e,n))return!e.hasAttribute(`data-trigger-disabled`);return!1}function Pl(e,t){if(t==null)return!1;if(`composedPath`in e)return e.composedPath().includes(t);let n=e;return n.target!=null&&t.contains(n.target)}function Fl(e){return e.matches(`html,body`)}function Il(e){return ll(e)&&e.matches(`input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])`)}function Ll(e){return e?.closest(`button,a[href],[role="button"],select,[tabindex]:not([tabindex="-1"]),${kl}`)!=null}function Rl(e){return e?e.getAttribute(`role`)===`combobox`&&Il(e):!1}function zl(e){if(!e||Zc)return!0;try{return e.matches(`:focus-visible`)}catch{return!0}}function Bl(e){return e?e.hasAttribute(`data-base-ui-focusable`)?e:e.querySelector(`[data-base-ui-focusable]`)||e:null}function Vl(e,t){return t!=null&&!nl(t)?0:typeof e==`function`?e():e}function K(e,t,n){let r=Vl(e,n);return typeof r==`number`?r:r?.[t]}function q(e){return typeof e==`function`?e():e}function Hl(e,t){return t||e===`click`||e===`mousedown`}function Ul(e){return e?.includes(`mouse`)&&e!==`mousedown`}function Wl(){}Object.freeze([]);var Gl=Object.freeze({}),Kl=`none`,ql=`trigger-press`,J=`trigger-hover`,Jl=`trigger-focus`,Yl=`outside-press`,Xl=`close-press`,Zl=`focus-out`,Ql=`escape-key`,$l=`disabled`,eu=`imperative-action`;function tu(e,t,n,r){let i=!1,a=!1,o=r??Gl;return{reason:e,event:t??new Event(`base-ui`),cancel(){i=!0},allowPropagation(){a=!0},get isCanceled(){return i},get isPropagationAllowed(){return a},trigger:n,...o}}var nu=H.createContext({hasProvider:!1,timeoutMs:0,delayRef:{current:0},initialDelayRef:{current:0},timeout:new Ic,currentIdRef:{current:null},currentContextRef:{current:null}});function ru(e,t){e.current=t.current}function iu(e){let{children:t,delay:n,timeoutMs:r=0}=e,i=H.useRef(n),a=H.useRef(n),o=H.useRef(null),s=H.useRef(null),c=Lc();return W(()=>{if(a.current=n,!o.current){i.current=n;return}i.current={open:K(i.current,`open`),close:K(n,`close`)}},[n,o,i,a]),(0,U.jsx)(nu.Provider,{value:H.useMemo(()=>({hasProvider:!0,delayRef:i,initialDelayRef:a,currentIdRef:o,timeoutMs:r,currentContextRef:s,timeout:c}),[r,c]),children:t})}function au(e,t={open:!1}){let{open:n}=t,r=`rootStore`in e?e.rootStore:e,i=r.useState(`floatingId`),{currentIdRef:a,delayRef:o,timeoutMs:s,initialDelayRef:c,currentContextRef:l,hasProvider:u,timeout:d}=H.useContext(nu),[f,p]=H.useState(!1),m=H.useRef(n),h=H.useRef(!1);return W(()=>{m.current=n},[n]),W(()=>()=>{h.current=!0},[]),W(()=>{function e(){h.current||p(!1),l.current?.setIsInstantPhase(!1),a.current=null,l.current=null,o.current=c.current,d.clear()}if(a.current&&!n&&a.current===i){if(p(!1),s){let t=i;return d.start(s,()=>{r.select(`open`)||a.current&&a.current!==t||e()}),()=>{(m.current||a.current!==t)&&d.clear()}}e()}},[n,i,a,o,s,c,l,d,r]),W(()=>{if(!n)return;let e=l.current,t=a.current;d.clear(),l.current={onOpenChange:r.setOpen,setIsInstantPhase:p},a.current=i,o.current={open:0,close:K(c.current,`close`)},t!==null&&t!==i?(p(!0),e?.setIsInstantPhase(!0),e?.onOpenChange(!1,tu(Kl))):(p(!1),e?.setIsInstantPhase(!1))},[n,i,r,a,o,c,l,d]),W(()=>()=>{if(a.current===i){if(l.current=null,!m.current)return;a.current=null,ru(o,c),d.clear()}},[l,a,o,i,c,d]),H.useMemo(()=>({hasProvider:u,delayRef:o,isInstantPhase:f}),[u,o,f])}function Y(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function ou(...e){return()=>{for(let t=0;t<e.length;t+=1){let n=e[t];n&&n()}}}function su(e,t,n,r){let i=xc(lu).current;return uu(i,e,t,n,r)&&fu(i,[e,t,n,r]),i.callback}function cu(e){let t=xc(lu).current;return du(t,e)&&fu(t,e),t.callback}function lu(){return{callback:null,cleanup:null,refs:[]}}function uu(e,t,n,r,i){return e.refs[0]!==t||e.refs[1]!==n||e.refs[2]!==r||e.refs[3]!==i}function du(e,t){return e.refs.length!==t.length||e.refs.some((e,n)=>e!==t[n])}function fu(e,t){if(e.refs=t,t.every(e=>e==null)){e.callback=null;return}e.callback=n=>{if(e.cleanup&&=(e.cleanup(),null),n!=null){let r=Array(t.length).fill(null);for(let e=0;e<t.length;e+=1){let i=t[e];if(i!=null)switch(typeof i){case`function`:{let t=i(n);typeof t==`function`&&(r[e]=t);break}case`object`:i.current=n;break;default:}}e.cleanup=()=>{for(let e=0;e<t.length;e+=1){let n=t[e];if(n!=null)switch(typeof n){case`function`:{let t=r[e];typeof t==`function`?t():n(null);break}case`object`:n.current=null;break;default:}}}}}}function pu(e){let t=xc(mu,e).current;return t.next=e,W(t.effect),t}function mu(e){let t={current:e,next:e,effect:()=>{t.current=t.next}};return t}var hu={...H},gu=hu.useInsertionEffect,_u=gu&&gu!==hu.useLayoutEffect?gu:e=>e();function vu(e){let t=xc(yu).current;return t.next=e,_u(t.effect),t.trampoline}function yu(){let e={next:void 0,callback:bu,trampoline:(...t)=>e.callback?.(...t),effect:()=>{e.callback=e.next}};return e}function bu(){}var xu=null;globalThis.requestAnimationFrame;var Su=new class{callbacks=[];callbacksCount=0;nextId=1;startId=1;isScheduled=!1;tick=e=>{this.isScheduled=!1;let t=this.callbacks,n=this.callbacksCount;if(this.callbacks=[],this.callbacksCount=0,this.startId=this.nextId,n>0)for(let n=0;n<t.length;n+=1)t[n]?.(e)};request(e){let t=this.nextId;return this.nextId+=1,this.callbacks.push(e),this.callbacksCount+=1,this.isScheduled||=(requestAnimationFrame(this.tick),!0),t}cancel(e){let t=e-this.startId;t<0||t>=this.callbacks.length||(this.callbacks[t]=null,--this.callbacksCount)}},Cu=class e{static create(){return new e}static request(e){return Su.request(e)}static cancel(e){return Su.cancel(e)}currentId=xu;request(e){this.cancel(),this.currentId=Su.request(()=>{this.currentId=xu,e()})}cancel=()=>{this.currentId!==xu&&(Su.cancel(this.currentId),this.currentId=xu)};disposeEffect=()=>this.cancel};function wu(){let e=xc(Cu.create).current;return Pc(e.disposeEffect),e}function Tu(e){return e?.ownerDocument||document}var Eu={clipPath:`inset(50%)`,overflow:`hidden`,whiteSpace:`nowrap`,border:0,padding:0,width:1,height:1,margin:-1},Du={...Eu,position:`fixed`,top:0,left:0},Ou={...Eu,position:`absolute`},ku=H.forwardRef(function(e,t){let[n,r]=H.useState();W(()=>{Xc&&Yc&&r(`button`)},[]);let i={tabIndex:0,role:n};return(0,U.jsx)(`span`,{...e,ref:t,style:Du,"aria-hidden":n?void 0:!0,...i,"data-base-ui-focus-guard":``})}),Au=[`top`,`right`,`bottom`,`left`],ju=Math.min,Mu=Math.max,Nu=Math.round,Pu=Math.floor,Fu=e=>({x:e,y:e}),Iu={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function Lu(e,t,n){return Mu(e,ju(t,n))}function Ru(e,t){return typeof e==`function`?e(t):e}function zu(e){return e.split(`-`)[0]}function Bu(e){return e.split(`-`)[1]}function Vu(e){return e===`x`?`y`:`x`}function Hu(e){return e===`y`?`height`:`width`}function Uu(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function Wu(e){return Vu(Uu(e))}function Gu(e,t,n){n===void 0&&(n=!1);let r=Bu(e),i=Wu(e),a=Hu(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=ed(o)),[o,ed(o)]}function Ku(e){let t=ed(e);return[qu(e),t,qu(t)]}function qu(e){return e.includes(`start`)?e.replace(`start`,`end`):e.replace(`end`,`start`)}var Ju=[`left`,`right`],Yu=[`right`,`left`],Xu=[`top`,`bottom`],Zu=[`bottom`,`top`];function Qu(e,t,n){switch(e){case`top`:case`bottom`:return n?t?Yu:Ju:t?Ju:Yu;case`left`:case`right`:return t?Xu:Zu;default:return[]}}function $u(e,t,n,r){let i=Bu(e),a=Qu(zu(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(qu)))),a}function ed(e){let t=zu(e);return Iu[t]+e.slice(t.length)}function td(e){return{top:0,right:0,bottom:0,left:0,...e}}function nd(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:td(e)}function rd(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function id(e){return e.visibility===`hidden`||e.visibility===`collapse`}function ad(e,t=e?Sl(e):null){return!e||!e.isConnected||!t||id(t)?!1:typeof e.checkVisibility==`function`?e.checkVisibility():t.display!==`none`&&t.display!==`contents`}var od=`a[href],button,input,select,textarea,summary,details,iframe,object,embed,[tabindex],[contenteditable]:not([contenteditable="false"]),audio[controls],video[controls]`;function sd(e){let t=e.assignedSlot;if(t)return t;if(e.parentElement)return e.parentElement;let n=e.getRootNode();return ul(n)?n.host:null}function cd(e){for(let t of Array.from(e.children))if(al(t)===`summary`)return t;return null}function ld(e,t){let n=cd(t);return!!n&&(e===n||jl(n,e))}function ud(e){let t=e?al(e):``;return e!=null&&e.matches(od)&&(t!==`summary`||e.parentElement!=null&&al(e.parentElement)===`details`&&cd(e.parentElement)===e)&&(t!==`details`||cd(e)==null)&&(t!==`input`||e.type!==`hidden`)}function dd(e){if(!ud(e)||!e.isConnected||e.matches(`:disabled`))return!1;for(let t=e;t;t=sd(t)){let n=t!==e,r=al(t)===`slot`;if(t.hasAttribute(`inert`)||n&&al(t)===`details`&&!t.open&&!ld(e,t)||t.hasAttribute(`hidden`)||!r&&!fd(t,n))return!1}return!0}function fd(e,t){let n=Sl(e);return t?n.display!==`none`:ad(e,n)}function pd(e){let t=e.tabIndex;if(t<0){let t=al(e);if(t===`details`||t===`audio`||t===`video`||ll(e)&&e.isContentEditable)return 0}return t}function md(e){if(al(e)!==`input`)return null;let t=e;return t.type===`radio`&&t.name!==``?t:null}function hd(e,t){let n=md(e);if(!n)return!0;let r=t.find(e=>{let t=md(e);return t?.name===n.name&&t.form===n.form&&t.checked});return r?r===n:t.find(e=>{let t=md(e);return t?.name===n.name&&t.form===n.form})===n}function gd(e){if(ll(e)&&al(e)===`slot`){let t=e.assignedElements({flatten:!0});if(t.length>0)return t}return ll(e)&&e.shadowRoot?Array.from(e.shadowRoot.children):Array.from(e.children)}function _d(e,t){gd(e).forEach(e=>{ud(e)&&t.push(e),_d(e,t)})}function vd(e,t,n){gd(e).forEach(e=>{ll(e)&&e.matches(t)&&n.push(e),vd(e,t,n)})}function yd(e){return dd(e)&&pd(e)>=0}function bd(e){let t=[];return _d(e,t),t.filter(dd)}function xd(e){let t=bd(e);return t.filter(e=>pd(e)>=0&&hd(e,t))}function Sd(e,t){let n=xd(e),r=n.length;if(r===0)return;let i=Al(Tu(e)),a=n.indexOf(i);return n[a===-1?t===1?0:r-1:a+t]}function X(e){return Sd(Tu(e).body,1)||e}function Cd(e){return Sd(Tu(e).body,-1)||e}function wd(e,t){if(!e)return null;let n=xd(Tu(e).body),r=n.length;if(r===0)return null;let i=n.indexOf(e);return i===-1?null:n[(i+t+r)%r]}function Td(e){return wd(e,1)}function Ed(e){return wd(e,-1)}function Dd(e,t){let n=t||e.currentTarget,r=e.relatedTarget;return!r||!jl(n,r)}function Od(e){xd(e).forEach(e=>{e.dataset.tabindex=e.getAttribute(`tabindex`)||``,e.setAttribute(`tabindex`,`-1`)})}function kd(e){let t=[];vd(e,`[data-tabindex]`,t),t.forEach(e=>{let t=e.dataset.tabindex;delete e.dataset.tabindex,t?e.setAttribute(`tabindex`,t):e.removeAttribute(`tabindex`)})}function Ad(e,t,n=!0){return e.filter(e=>e.parentId===t).flatMap(t=>[...!n||t.context?.open?[t]:[],...Ad(e,t.id,n)])}function jd(e,t){let n=[],r=e.find(e=>e.id===t)?.parentId;for(;r;){let t=e.find(e=>e.id===r);r=t?.parentId,t&&(n=n.concat(t))}return n}function Md(e){return`data-base-ui-${e}`}var Nd=0;function Pd(e,t=`mui`){let[n,r]=H.useState(e),i=e||n;return H.useEffect(()=>{n??(Nd+=1,r(`${t}-${Nd}`))},[n,t]),i}var Fd=hu.useId;function Id(e,t){if(Fd!==void 0){let n=Fd();return e??(t?`${t}-${n}`:n)}return Pd(e,t)}var Ld=19;function Rd(e){return Ld>=e}function zd(e){if(!H.isValidElement(e))return null;let t=e,n=t.props;return(Rd(19)?n?.ref:t.ref)??null}function Bd(e,t){if(e&&!t)return e;if(!e&&t)return t;if(e||t)return{...e,...t}}function Vd(e,t){let n={};for(let r in e){let i=e[r];if(t?.hasOwnProperty(r)){let e=t[r](i);e!=null&&Object.assign(n,e);continue}i===!0?n[`data-${r.toLowerCase()}`]=``:i&&(n[`data-${r.toLowerCase()}`]=i.toString())}return n}function Hd(e,t){return typeof e==`function`?e(t):e}function Ud(e,t){return typeof e==`function`?e(t):e}var Wd={};function Gd(e,t,n,r,i){if(!n&&!r&&!i&&!e)return qd(t);let a=qd(e);return t&&(a=Jd(a,t)),n&&(a=Jd(a,n)),r&&(a=Jd(a,r)),i&&(a=Jd(a,i)),a}function Kd(e){if(e.length===0)return Wd;if(e.length===1)return qd(e[0]);let t=qd(e[0]);for(let n=1;n<e.length;n+=1)t=Jd(t,e[n]);return t}function qd(e){return Qd(e)?{...$d(e,Wd)}:Yd(e)}function Jd(e,t){return Qd(t)?$d(t,e):Xd(e,t)}function Yd(e){let t={...e};for(let e in t){let n=t[e];Zd(e,n)&&(t[e]=tf(n))}return t}function Xd(e,t){if(!t)return e;for(let n in t){let r=t[n];switch(n){case`style`:e[n]=Bd(e.style,r);break;case`className`:e[n]=rf(e.className,r);break;default:Zd(n,r)?e[n]=ef(e[n],r):e[n]=r}}return e}function Zd(e,t){let n=e.charCodeAt(0),r=e.charCodeAt(1),i=e.charCodeAt(2);return n===111&&r===110&&i>=65&&i<=90&&(typeof t==`function`||t===void 0)}function Qd(e){return typeof e==`function`}function $d(e,t){return Qd(e)?e(t):e??Wd}function ef(e,t){return t?e?(...n)=>{let r=n[0];if(af(r)){let i=r;nf(i);let a=t(...n);return i.baseUIHandlerPrevented||e?.(...n),a}let i=t(...n);return e?.(...n),i}:tf(t):e}function tf(e){return e&&((...t)=>{let n=t[0];return af(n)&&nf(n),e(...t)})}function nf(e){return e.preventBaseUIHandler=()=>{e.baseUIHandlerPrevented=!0},e}function rf(e,t){return t?e?t+` `+e:t:e}function af(e){return typeof e==`object`&&!!e&&`nativeEvent`in e}function of(e,t,n={}){let r=t.render,i=sf(t,n);return n.enabled===!1?null:uf(e,r,i,n.state??Gl)}function sf(e,t={}){let{className:n,style:r,render:i}=e,{state:a=Gl,ref:o,props:s,stateAttributesMapping:c,enabled:l=!0}=t,u=l?Hd(n,a):void 0,d=l?Ud(r,a):void 0,f=l?Vd(a,c):Gl,p=l&&s?cf(s):void 0,m=l?Bd(f,p)??{}:Gl;return typeof document<`u`&&(l?Array.isArray(o)?m.ref=cu([m.ref,zd(i),...o]):m.ref=su(m.ref,zd(i),o):su(null,null)),l?(u!==void 0&&(m.className=rf(m.className,u)),d!==void 0&&(m.style=Bd(m.style,d)),m):Gl}function cf(e){return Array.isArray(e)?Kd(e):Gd(void 0,e)}var lf=Symbol.for(`react.lazy`);function uf(e,t,n,r){if(t){if(typeof t==`function`)return t(n,r);let e=Gd(n,t.props);e.ref=n.ref;let i=t;return i?.$$typeof===lf&&(i=H.Children.toArray(t)[0]),H.cloneElement(i,e)}if(e&&typeof e==`string`)return df(e,n);throw Error(Ac(8))}function df(e,t){return e===`button`?(0,H.createElement)(`button`,{type:`button`,...t,key:t.key}):e===`img`?(0,H.createElement)(`img`,{alt:``,...t,key:t.key}):H.createElement(e,t)}var ff={style:{transition:`none`}},pf=`data-base-ui-click-trigger`,mf={fallbackAxisSide:`end`},hf={clipPath:`inset(50%)`,position:`fixed`,top:0,left:0},gf=e(w(),1),_f=H.createContext(null),vf=()=>H.useContext(_f),yf=Md(`portal`);function bf(e={}){let{ref:t,container:n,componentProps:r=Gl,elementProps:i}=e,a=Id(),o=vf()?.portalNode,[s,c]=H.useState(null),[l,u]=H.useState(null),d=vu(e=>{e!==null&&u(e)}),f=H.useRef(null);W(()=>{if(n===null){f.current&&(f.current=null,u(null),c(null));return}if(a==null)return;let e=(n&&(cl(n)?n:n.current))??o??document.body;if(e==null){f.current&&(f.current=null,u(null),c(null));return}f.current!==e&&(f.current=e,u(null),c(e))},[n,o,a]);let p=of(`div`,r,{ref:[t,d],props:[{id:a,[yf]:``},i]});return{portalNode:l,portalSubtree:s&&p?gf.createPortal(p,s):null}}var xf=H.forwardRef(function(e,t){let{render:n,className:r,style:i,children:a,container:o,renderGuards:s,...c}=e,{portalNode:l,portalSubtree:u}=bf({container:o,ref:t,componentProps:e,elementProps:c}),d=H.useRef(null),f=H.useRef(null),p=H.useRef(null),m=H.useRef(null),[h,g]=H.useState(null),_=H.useRef(!1),v=h?.modal,y=h?.open,b=typeof s==`boolean`?s:!!h&&!h.modal&&h.open&&!!l;H.useEffect(()=>{if(!l||v)return;function e(e){l&&e.relatedTarget&&Dd(e)&&(e.type===`focusin`?_.current&&=(kd(l),!1):(Od(l),_.current=!0))}return ou(Y(l,`focusin`,e,!0),Y(l,`focusout`,e,!0))},[l,v]),W(()=>{!l||y!==!0||!_.current||(kd(l),_.current=!1)},[y,l]);let x=H.useMemo(()=>({beforeOutsideRef:d,afterOutsideRef:f,beforeInsideRef:p,afterInsideRef:m,portalNode:l,setFocusManagerState:g}),[l]);return(0,U.jsxs)(H.Fragment,{children:[u,(0,U.jsxs)(_f.Provider,{value:x,children:[b&&l&&(0,U.jsx)(ku,{"data-type":`outside`,ref:d,onFocus:e=>{Dd(e,l)?p.current?.focus():Cd(h?h.domReference:null)?.focus()}}),b&&l&&(0,U.jsx)(`span`,{"aria-owns":l.id,style:hf}),l&&gf.createPortal(a,l),b&&l&&(0,U.jsx)(ku,{"data-type":`outside`,ref:f,onFocus:e=>{Dd(e,l)?m.current?.focus():(X(h?h.domReference:null)?.focus(),h?.closeOnFocusOut&&h?.onOpenChange(!1,tu(`focus-out`,e.nativeEvent)))}})]})]})});function Sf(){let e=new Map;return{emit(t,n){e.get(t)?.forEach(e=>e(n))},on(t,n){e.has(t)||e.set(t,new Set),e.get(t).add(n)},off(t,n){e.get(t)?.delete(n)}}}var Cf=class{nodesRef={current:[]};events=Sf();addNode(e){this.nodesRef.current.push(e)}removeNode(e){let t=this.nodesRef.current.findIndex(t=>t===e);t!==-1&&this.nodesRef.current.splice(t,1)}},wf=H.createContext(null),Tf=H.createContext(null),Ef=()=>H.useContext(wf)?.id||null,Df=e=>{let t=H.useContext(Tf);return e??t};function Of(e){let t=Id(),n=Df(e),r=Ef();return W(()=>{if(!t)return;let e={id:t,parentId:r};return n?.addNode(e),()=>{n?.removeNode(e)}},[n,t,r]),t}function kf(e){let{children:t,id:n}=e,r=Ef();return(0,U.jsx)(wf.Provider,{value:H.useMemo(()=>({id:n,parentId:r}),[n,r]),children:t})}function Af(e){let{children:t,externalTree:n}=e,r=xc(()=>n??new Cf).current;return(0,U.jsx)(Tf.Provider,{value:r,children:t})}function jf(e){return e==null?e:`current`in e?e.current:e}function Mf(e,t){let n=null,r=null,i=!1;return{contextElement:e||void 0,getBoundingClientRect(){let a=e?.getBoundingClientRect()||{width:0,height:0,x:0,y:0},o=t.axis===`x`||t.axis===`both`,s=t.axis===`y`||t.axis===`both`,c=[`mouseenter`,`mousemove`].includes(t.dataRef.current.openEvent?.type||``)&&t.pointerType!==`touch`,l=a.width,u=a.height,d=a.x,f=a.y;return n==null&&t.x&&o&&(n=a.x-t.x),r==null&&t.y&&s&&(r=a.y-t.y),d-=n||0,f-=r||0,l=0,u=0,!i||c?(l=t.axis===`y`?a.width:0,u=t.axis===`x`?a.height:0,d=o&&t.x!=null?t.x:d,f=s&&t.y!=null?t.y:f):i&&!c&&(u=t.axis===`x`?a.height:u,l=t.axis===`y`?a.width:l),i=!0,{width:l,height:u,x:d,y:f,top:f,right:d+l,bottom:f+u,left:d}}}}function Nf(e){return e!=null&&e.clientX!=null}function Pf(e,t={}){let{enabled:n=!0,axis:r=`both`}=t,i=`rootStore`in e?e.rootStore:e,a=i.useState(`open`),o=i.useState(`floatingElement`),s=i.useState(`domReferenceElement`),c=i.context.dataRef,l=H.useRef(!1),u=H.useRef(null),[d,f]=H.useState(),[p,m]=H.useState([]),h=vu(e=>{i.set(`positionReference`,e)}),g=vu((e,t,n)=>{l.current||c.current.openEvent&&!Nf(c.current.openEvent)||i.set(`positionReference`,Mf(n??s,{x:e,y:t,axis:r,dataRef:c,pointerType:d}))}),_=vu(e=>{a?u.current||(g(e.clientX,e.clientY,e.currentTarget),m([])):g(e.clientX,e.clientY,e.currentTarget)}),v=nl(d)?o:a;H.useEffect(()=>{if(!n){h(s);return}if(!v)return;function e(){u.current?.(),u.current=null}let t=ol(o);function r(t){jl(o,Ml(t))?e():g(t.clientX,t.clientY)}return!c.current.openEvent||Nf(c.current.openEvent)?u.current=Y(t,`mousemove`,r):h(s),e},[v,n,o,c,s,i,g,h,p]),H.useEffect(()=>()=>{i.set(`positionReference`,null)},[i]),H.useEffect(()=>{n&&!o&&(l.current=!1)},[n,o]),H.useEffect(()=>{!n&&a&&(l.current=!0)},[n,a]);let y=H.useMemo(()=>{function e(e){f(e.pointerType)}return{onPointerDown:e,onPointerEnter:e,onMouseMove:_,onMouseEnter:_}},[_]);return H.useMemo(()=>n?{reference:y,trigger:y}:{},[n,y])}function Ff(){return!1}function If(e){return{escapeKey:typeof e==`boolean`?e:e?.escapeKey??!1,outsidePress:typeof e==`boolean`?e:e?.outsidePress??!0}}function Lf(e,t={}){let{enabled:n=!0,escapeKey:r=!0,outsidePress:i=!0,outsidePressEvent:a=`sloppy`,referencePress:o=Ff,bubbles:s,externalTree:c}=t,l=`rootStore`in e?e.rootStore:e,u=l.useState(`open`),d=l.useState(`floatingElement`),{dataRef:f}=l.context,p=Df(c),m=vu(typeof i==`function`?i:()=>!1),h=typeof i==`function`?m:i,g=h!==!1,_=vu(()=>a),{escapeKey:v,outsidePress:y}=If(s),b=H.useRef(!1),x=H.useRef(!1),S=H.useRef(!1),C=H.useRef(!1),w=H.useRef(``),E=H.useRef(null),D=Lc(),O=Lc(),k=vu(()=>{O.clear(),f.current.insideReactTree=!1}),A=vu(e=>{let t=f.current.floatingContext?.nodeId;return(p?Ad(p.nodesRef.current,t):[]).some(t=>t.context?.open&&!t.context.dataRef.current[e])}),j=vu(e=>Pl(e,l.select(`floatingElement`))||Pl(e,l.select(`domReferenceElement`))),M=vu(e=>{o()&&l.setOpen(!1,tu(ql,e.nativeEvent))}),N=vu(e=>{if(!u||!n||!r||e.key!==`Escape`||C.current||!v&&A(`__escapeKeyBubbles`))return;let t=tu(Ql,$c(e)?e.nativeEvent:e);l.setOpen(!1,t),t.isCanceled||e.preventDefault(),!v&&!t.isPropagationAllowed&&e.stopPropagation()}),ee=vu(()=>{f.current.insideReactTree=!0,O.start(0,k)}),te=vu(e=>{if(!u||!n||e.button!==0)return;let t=Ml(e.nativeEvent);jl(l.select(`floatingElement`),t)&&(b.current||(b.current=!0,x.current=!1))}),P=vu(e=>{!u||!n||(e.defaultPrevented||e.nativeEvent.defaultPrevented)&&b.current&&(x.current=!0)});H.useEffect(()=>{if(!u||!n)return;f.current.__escapeKeyBubbles=v,f.current.__outsidePressBubbles=y;let e=new Ic,t=new Ic;function i(){e.clear(),C.current=!0}function a(){e.start(Yc?5:0,()=>{C.current=!1})}function o(){S.current=!0,t.start(0,()=>{S.current=!1})}function s(){b.current=!1,x.current=!1}function c(){let e=w.current,t=e===`pen`||!e?`mouse`:e,n=_(),r=typeof n==`function`?n():n;return typeof r==`string`?r:r[t]}function m(e){let t=c();return t===`intentional`&&e.type!==`click`||t===`sloppy`&&e.type===`click`}function O(e){let t=f.current.floatingContext?.nodeId,n=p&&Ad(p.nodesRef.current,t).some(t=>Pl(e,t.context?.elements.floating));return j(e)||n}function M(e){if(m(e)){e.type!==`click`&&!j(e)&&(t.clear(),S.current=!1),k();return}if(f.current.insideReactTree){k();return}let n=Ml(e),r=`[${Md(`inert`)}]`,i=G(n)?n.getRootNode():null,a=Array.from((ul(i)?i:Tu(l.select(`floatingElement`))).querySelectorAll(r)),o=l.context.triggerElements;if(n&&(o.hasElement(n)||o.hasMatchingElement(e=>jl(e,n))))return;let s=G(n)?n:null;for(;s&&!xl(s);){let e=wl(s);if(xl(e)||!G(e))break;s=e}if(!(a.length&&G(n)&&!Fl(n)&&!jl(n,l.select(`floatingElement`))&&a.every(e=>!jl(s,e)))){if(ll(n)&&!(`touches`in e)){let t=xl(n),r=Sl(n),i=/auto|scroll/,a=t||i.test(r.overflowX),o=t||i.test(r.overflowY),s=a&&n.clientWidth>0&&n.scrollWidth>n.clientWidth,c=o&&n.clientHeight>0&&n.scrollHeight>n.clientHeight,l=r.direction===`rtl`,u=c&&(l?e.offsetX<=n.offsetWidth-n.clientWidth:e.offsetX>n.clientWidth),d=s&&e.offsetY>n.clientHeight;if(u||d)return}if(!O(e)){if(c()===`intentional`&&S.current){t.clear(),S.current=!1;return}typeof h==`function`&&!h(e)||A(`__outsidePressBubbles`)||(l.setOpen(!1,tu(Yl,e)),k())}}}function ee(e){c()!==`sloppy`||e.pointerType===`touch`||!l.select(`open`)||!n||j(e)||M(e)}function te(e){if(c()!==`sloppy`||!l.select(`open`)||!n||j(e))return;let t=e.touches[0];t&&(E.current={startTime:Date.now(),startX:t.clientX,startY:t.clientY,dismissOnTouchEnd:!1,dismissOnMouseDown:!0},D.start(1e3,()=>{E.current&&(E.current.dismissOnTouchEnd=!1,E.current.dismissOnMouseDown=!1)}))}function P(e,t){let n=Ml(e);if(!n)return;let r=Y(n,e.type,()=>{t(e),r()})}function F(e){w.current=`touch`,P(e,te)}function ne(e){D.clear(),e.type===`pointerdown`&&(w.current=e.pointerType),!(e.type===`mousedown`&&E.current&&!E.current.dismissOnMouseDown)&&P(e,e=>{e.type===`pointerdown`?ee(e):M(e)})}function re(e){if(!b.current)return;let n=x.current;if(s(),c()===`intentional`){if(e.type===`pointercancel`){n&&o();return}if(!O(e)){if(n){o();return}typeof h==`function`&&!h(e)||(t.clear(),S.current=!0,k())}}}function ie(e){if(c()!==`sloppy`||!E.current||j(e))return;let t=e.touches[0];if(!t)return;let n=Math.abs(t.clientX-E.current.startX),r=Math.abs(t.clientY-E.current.startY),i=Math.sqrt(n*n+r*r);i>5&&(E.current.dismissOnTouchEnd=!0),i>10&&(M(e),D.clear(),E.current=null)}function ae(e){P(e,ie)}function I(e){c()!==`sloppy`||!E.current||j(e)||(E.current.dismissOnTouchEnd&&M(e),D.clear(),E.current=null)}function L(e){P(e,I)}let oe=Tu(d),se=ou(r&&ou(Y(oe,`keydown`,N),Y(oe,`compositionstart`,i),Y(oe,`compositionend`,a)),g&&ou(Y(oe,`click`,ne,!0),Y(oe,`pointerdown`,ne,!0),Y(oe,`pointerup`,re,!0),Y(oe,`pointercancel`,re,!0),Y(oe,`mousedown`,ne,!0),Y(oe,`mouseup`,re,!0),Y(oe,`touchstart`,F,!0),Y(oe,`touchmove`,ae,!0),Y(oe,`touchend`,L,!0)));return()=>{se(),e.clear(),t.clear(),s(),S.current=!1}},[f,d,r,g,h,u,n,v,y,N,k,_,A,j,p,l,D]),H.useEffect(k,[h,k]);let F=H.useMemo(()=>({onKeyDown:N,onPointerDown:M,onClick:M}),[N,M]),ne=H.useMemo(()=>({onKeyDown:N,onPointerDown:P,onMouseDown:P,onClickCapture:ee,onMouseDownCapture(e){ee(),te(e)},onPointerDownCapture(e){ee(),te(e)},onMouseUpCapture:ee,onTouchEndCapture:ee,onTouchMoveCapture:ee}),[N,ee,te,P]);return H.useMemo(()=>n?{reference:F,floating:ne,trigger:F}:{},[n,F,ne])}function Rf(e,t,n){let{reference:r,floating:i}=e,a=Uu(t),o=Wu(t),s=Hu(o),c=zu(t),l=a===`y`,u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[s]/2-i[s]/2,p;switch(c){case`top`:p={x:u,y:r.y-i.height};break;case`bottom`:p={x:u,y:r.y+r.height};break;case`right`:p={x:r.x+r.width,y:d};break;case`left`:p={x:r.x-i.width,y:d};break;default:p={x:r.x,y:r.y}}switch(Bu(t)){case`start`:p[o]-=f*(n&&l?-1:1);break;case`end`:p[o]+=f*(n&&l?-1:1);break}return p}async function zf(e,t){t===void 0&&(t={});let{x:n,y:r,platform:i,rects:a,elements:o,strategy:s}=e,{boundary:c=`clippingAncestors`,rootBoundary:l=`viewport`,elementContext:u=`floating`,altBoundary:d=!1,padding:f=0}=Ru(t,e),p=nd(f),m=o[d?u===`floating`?`reference`:`floating`:u],h=rd(await i.getClippingRect({element:await(i.isElement==null?void 0:i.isElement(m))??!0?m:m.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(o.floating)),boundary:c,rootBoundary:l,strategy:s})),g=u===`floating`?{x:n,y:r,width:a.floating.width,height:a.floating.height}:a.reference,_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(o.floating)),v=await(i.isElement==null?void 0:i.isElement(_))&&await(i.getScale==null?void 0:i.getScale(_))||{x:1,y:1},y=rd(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:g,offsetParent:_,strategy:s}):g);return{top:(h.top-y.top+p.top)/v.y,bottom:(y.bottom-h.bottom+p.bottom)/v.y,left:(h.left-y.left+p.left)/v.x,right:(y.right-h.right+p.right)/v.x}}var Bf=50,Vf=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=o.detectOverflow?o:{...o,detectOverflow:zf},c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=Rf(l,r,c),f=r,p=0,m={};for(let n=0;n<a.length;n++){let h=a[n];if(!h)continue;let{name:g,fn:_}=h,{x:v,y,data:b,reset:x}=await _({x:u,y:d,initialPlacement:r,placement:f,strategy:i,middlewareData:m,rects:l,platform:s,elements:{reference:e,floating:t}});u=v??u,d=y??d,m[g]={...m[g],...b},x&&p<Bf&&(p++,typeof x==`object`&&(x.placement&&(f=x.placement),x.rects&&(l=x.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):x.rects),{x:u,y:d}=Rf(l,f,c)),n=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:m}},Hf=function(e){return e===void 0&&(e={}),{name:`flip`,options:e,async fn(t){var n;let{placement:r,middlewareData:i,rects:a,initialPlacement:o,platform:s,elements:c}=t,{mainAxis:l=!0,crossAxis:u=!0,fallbackPlacements:d,fallbackStrategy:f=`bestFit`,fallbackAxisSideDirection:p=`none`,flipAlignment:m=!0,...h}=Ru(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};let g=zu(r),_=Uu(o),v=zu(o)===o,y=await(s.isRTL==null?void 0:s.isRTL(c.floating)),b=d||(v||!m?[ed(o)]:Ku(o)),x=p!==`none`;!d&&x&&b.push(...$u(o,m,p,y));let S=[o,...b],C=await s.detectOverflow(t,h),w=[],E=i.flip?.overflows||[];if(l&&w.push(C[g]),u){let e=Gu(r,a,y);w.push(C[e[0]],C[e[1]])}if(E=[...E,{placement:r,overflows:w}],!w.every(e=>e<=0)){let e=(i.flip?.index||0)+1,t=S[e];if(t&&(!(u===`alignment`&&_!==Uu(t))||E.every(e=>Uu(e.placement)===_?e.overflows[0]>0:!0)))return{data:{index:e,overflows:E},reset:{placement:t}};let n=E.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0]?.placement;if(!n)switch(f){case`bestFit`:{let e=E.filter(e=>{if(x){let t=Uu(e.placement);return t===_||t===`y`}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0]?.[0];e&&(n=e);break}case`initialPlacement`:n=o;break}if(r!==n)return{reset:{placement:n}}}return{}}}};function Uf(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Wf(e){return Au.some(t=>e[t]>=0)}var Gf=function(e){return e===void 0&&(e={}),{name:`hide`,options:e,async fn(t){let{rects:n,platform:r}=t,{strategy:i=`referenceHidden`,...a}=Ru(e,t);switch(i){case`referenceHidden`:{let e=Uf(await r.detectOverflow(t,{...a,elementContext:`reference`}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:Wf(e)}}}case`escaped`:{let e=Uf(await r.detectOverflow(t,{...a,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:Wf(e)}}}default:return{}}}}},Kf=new Set([`left`,`top`]);async function qf(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=zu(n),s=Bu(n),c=Uu(n)===`y`,l=Kf.has(o)?-1:1,u=a&&c?-1:1,d=Ru(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof d==`number`?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof m==`number`&&(p=s===`end`?m*-1:m),c?{x:p*u,y:f*l}:{x:f*l,y:p*u}}var Jf=function(e){return e===void 0&&(e=0),{name:`offset`,options:e,async fn(t){var n;let{x:r,y:i,placement:a,middlewareData:o}=t,s=await qf(t,e);return a===o.offset?.placement&&(n=o.arrow)!=null&&n.alignmentOffset?{}:{x:r+s.x,y:i+s.y,data:{...s,placement:a}}}}},Yf=function(e){return e===void 0&&(e={}),{name:`shift`,options:e,async fn(t){let{x:n,y:r,placement:i,platform:a}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=Ru(e,t),u={x:n,y:r},d=await a.detectOverflow(t,l),f=Uu(zu(i)),p=Vu(f),m=u[p],h=u[f];if(o){let e=p===`y`?`top`:`left`,t=p===`y`?`bottom`:`right`,n=m+d[e],r=m-d[t];m=Lu(n,m,r)}if(s){let e=f===`y`?`top`:`left`,t=f===`y`?`bottom`:`right`,n=h+d[e],r=h-d[t];h=Lu(n,h,r)}let g=c.fn({...t,[p]:m,[f]:h});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[p]:o,[f]:s}}}}}},Xf=function(e){return e===void 0&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:i,rects:a,middlewareData:o}=t,{offset:s=0,mainAxis:c=!0,crossAxis:l=!0}=Ru(e,t),u={x:n,y:r},d=Uu(i),f=Vu(d),p=u[f],m=u[d],h=Ru(s,t),g=typeof h==`number`?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(c){let e=f===`y`?`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(l){let e=f===`y`?`width`:`height`,t=Kf.has(zu(i)),n=a.reference[d]-a.floating[e]+(t&&o.offset?.[d]||0)+(t?0:g.crossAxis),r=a.reference[d]+a.reference[e]+(t?0:o.offset?.[d]||0)-(t?g.crossAxis:0);m<n?m=n:m>r&&(m=r)}return{[f]:p,[d]:m}}}},Zf=function(e){return e===void 0&&(e={}),{name:`size`,options:e,async fn(t){var n,r;let{placement:i,rects:a,platform:o,elements:s}=t,{apply:c=()=>{},...l}=Ru(e,t),u=await o.detectOverflow(t,l),d=zu(i),f=Bu(i),p=Uu(i)===`y`,{width:m,height:h}=a.floating,g,_;d===`top`||d===`bottom`?(g=d,_=f===(await(o.isRTL==null?void 0:o.isRTL(s.floating))?`start`:`end`)?`left`:`right`):(_=d,g=f===`end`?`top`:`bottom`);let v=h-u.top-u.bottom,y=m-u.left-u.right,b=ju(h-u[g],v),x=ju(m-u[_],y),S=!t.middlewareData.shift,C=b,w=x;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(w=y),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(C=v),S&&!f){let e=Mu(u.left,0),t=Mu(u.right,0),n=Mu(u.top,0),r=Mu(u.bottom,0);p?w=m-2*(e!==0||t!==0?e+t:Mu(u.left,u.right)):C=h-2*(n!==0||r!==0?n+r:Mu(u.top,u.bottom))}await c({...t,availableWidth:w,availableHeight:C});let E=await o.getDimensions(s.floating);return m!==E.width||h!==E.height?{reset:{rects:!0}}:{}}}};function Qf(e){let t=Sl(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=ll(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=Nu(n)!==a||Nu(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function $f(e){return G(e)?e:e.contextElement}function ep(e){let t=$f(e);if(!ll(t))return Fu(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=Qf(t),o=(a?Nu(n.width):n.width)/r,s=(a?Nu(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}var tp=Fu(0);function np(e){let t=ol(e);return!bl()||!t.visualViewport?tp:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function rp(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==ol(e)?!1:t}function ip(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=$f(e),o=Fu(1);t&&(r?G(r)&&(o=ep(r)):o=ep(e));let s=rp(a,n,r)?np(a):Fu(0),c=(i.left+s.x)/o.x,l=(i.top+s.y)/o.y,u=i.width/o.x,d=i.height/o.y;if(a){let e=ol(a),t=r&&G(r)?ol(r):r,n=e,i=Dl(n);for(;i&&r&&t!==n;){let e=ep(i),t=i.getBoundingClientRect(),r=Sl(i),a=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,d*=e.y,c+=a,l+=o,n=ol(i),i=Dl(n)}}return rd({width:u,height:d,x:c,y:l})}function ap(e,t){let n=Cl(e).scrollLeft;return t?t.left+n:ip(sl(e)).left+n}function op(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-ap(e,n),y:n.top+t.scrollTop}}function sp(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=sl(r),s=t?pl(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=Fu(1),u=Fu(0),d=ll(r);if((d||!d&&!a)&&((al(r)!==`body`||dl(o))&&(c=Cl(r)),d)){let e=ip(r);l=ep(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=o&&!d&&!a?op(o,c):Fu(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+f.x,y:n.y*l.y-c.scrollTop*l.y+u.y+f.y}}function cp(e){return Array.from(e.getClientRects())}function lp(e){let t=sl(e),n=Cl(e),r=e.ownerDocument.body,i=Mu(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=Mu(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),o=-n.scrollLeft+ap(e),s=-n.scrollTop;return Sl(r).direction===`rtl`&&(o+=Mu(t.clientWidth,r.clientWidth)-i),{width:i,height:a,x:o,y:s}}var up=25;function dp(e,t){let n=ol(e),r=sl(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,c=0;if(i){a=i.width,o=i.height;let e=bl();(!e||e&&t===`fixed`)&&(s=i.offsetLeft,c=i.offsetTop)}let l=ap(r);if(l<=0){let e=r.ownerDocument,t=e.body,n=getComputedStyle(t),i=e.compatMode===`CSS1Compat`&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,o=Math.abs(r.clientWidth-t.clientWidth-i);o<=up&&(a-=o)}else l<=up&&(a+=l);return{width:a,height:o,x:s,y:c}}function fp(e,t){let n=ip(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=ll(e)?ep(e):Fu(1);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function pp(e,t,n){let r;if(t===`viewport`)r=dp(e,n);else if(t===`document`)r=lp(sl(e));else if(G(t))r=fp(t,n);else{let n=np(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return rd(r)}function mp(e,t){let n=wl(e);return n===t||!G(n)||xl(n)?!1:Sl(n).position===`fixed`||mp(n,t)}function hp(e,t){let n=t.get(e);if(n)return n;let r=El(e,[],!1).filter(e=>G(e)&&al(e)!==`body`),i=null,a=Sl(e).position===`fixed`,o=a?wl(e):e;for(;G(o)&&!xl(o);){let t=Sl(o),n=vl(o);!n&&t.position===`fixed`&&(i=null),(a?!n&&!i:!n&&t.position===`static`&&i&&(i.position===`absolute`||i.position===`fixed`)||dl(o)&&!n&&mp(e,o))?r=r.filter(e=>e!==o):i=t,o=wl(o)}return t.set(e,r),r}function gp(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?pl(t)?[]:hp(t,this._c):[].concat(n),r],o=pp(t,a[0],i),s=o.top,c=o.right,l=o.bottom,u=o.left;for(let e=1;e<a.length;e++){let n=pp(t,a[e],i);s=Mu(n.top,s),c=ju(n.right,c),l=ju(n.bottom,l),u=Mu(n.left,u)}return{width:c-u,height:l-s,x:u,y:s}}function _p(e){let{width:t,height:n}=Qf(e);return{width:t,height:n}}function vp(e,t,n){let r=ll(t),i=sl(t),a=n===`fixed`,o=ip(e,!0,a,t),s={scrollLeft:0,scrollTop:0},c=Fu(0);function l(){c.x=ap(i)}if(r||!r&&!a)if((al(t)!==`body`||dl(i))&&(s=Cl(t)),r){let e=ip(t,!0,a,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}else i&&l();a&&!r&&i&&l();let u=i&&!r&&!a?op(i,s):Fu(0);return{x:o.left+s.scrollLeft-c.x-u.x,y:o.top+s.scrollTop-c.y-u.y,width:o.width,height:o.height}}function yp(e){return Sl(e).position===`static`}function bp(e,t){if(!ll(e)||Sl(e).position===`fixed`)return null;if(t)return t(e);let n=e.offsetParent;return sl(e)===n&&(n=n.ownerDocument.body),n}function xp(e,t){let n=ol(e);if(pl(e))return n;if(!ll(e)){let t=wl(e);for(;t&&!xl(t);){if(G(t)&&!yp(t))return t;t=wl(t)}return n}let r=bp(e,t);for(;r&&fl(r)&&yp(r);)r=bp(r,t);return r&&xl(r)&&yp(r)&&!vl(r)?n:r||yl(e)||n}var Sp=async function(e){let t=this.getOffsetParent||xp,n=this.getDimensions,r=await n(e.floating);return{reference:vp(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Cp(e){return Sl(e).direction===`rtl`}var wp={convertOffsetParentRelativeRectToViewportRelativeRect:sp,getDocumentElement:sl,getClippingRect:gp,getOffsetParent:xp,getElementRects:Sp,getClientRects:cp,getDimensions:_p,getScale:ep,isElement:G,isRTL:Cp};function Tp(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Ep(e,t){let n=null,r,i=sl(e);function a(){var e;clearTimeout(r),(e=n)==null||e.disconnect(),n=null}function o(s,c){s===void 0&&(s=!1),c===void 0&&(c=1),a();let l=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=l;if(s||t(),!f||!p)return;let m=Pu(d),h=Pu(i.clientWidth-(u+f)),g=Pu(i.clientHeight-(d+p)),_=Pu(u),v={rootMargin:-m+`px `+-h+`px `+-g+`px `+-_+`px`,threshold:Mu(0,ju(1,c))||1},y=!0;function b(t){let n=t[0].intersectionRatio;if(n!==c){if(!y)return o();n?o(!1,n):r=setTimeout(()=>{o(!1,1e-7)},1e3)}n===1&&!Tp(l,e.getBoundingClientRect())&&o(),y=!1}try{n=new IntersectionObserver(b,{...v,root:i.ownerDocument})}catch{n=new IntersectionObserver(b,v)}n.observe(e)}return o(!0),a}function Dp(e,t,n,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver==`function`,layoutShift:s=typeof IntersectionObserver==`function`,animationFrame:c=!1}=r,l=$f(e),u=i||a?[...l?El(l):[],...t?El(t):[]]:[];u.forEach(e=>{i&&e.addEventListener(`scroll`,n,{passive:!0}),a&&e.addEventListener(`resize`,n)});let d=l&&s?Ep(l,n):null,f=-1,p=null;o&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===l&&p&&t&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;(e=p)==null||e.observe(t)})),n()}),l&&!c&&p.observe(l),t&&p.observe(t));let m,h=c?ip(e):null;c&&g();function g(){let t=ip(e);h&&!Tp(h,t)&&n(),h=t,m=requestAnimationFrame(g)}return n(),()=>{var e;u.forEach(e=>{i&&e.removeEventListener(`scroll`,n),a&&e.removeEventListener(`resize`,n)}),d?.(),(e=p)==null||e.disconnect(),p=null,c&&cancelAnimationFrame(m)}}var Op=Jf,kp=Yf,Ap=Hf,jp=Zf,Mp=Gf,Np=Xf,Pp=(e,t,n)=>{let r=new Map,i={platform:wp,...n},a={...i.platform,_c:r};return Vf(e,t,{...i,platform:a})},Fp=typeof document<`u`?H.useLayoutEffect:function(){};function Ip(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e==`function`&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e==`object`){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Ip(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){let n=i[r];if(!(n===`_owner`&&e.$$typeof)&&!Ip(e[n],t[n]))return!1}return!0}return e!==e&&t!==t}function Lp(e){return typeof window>`u`?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Rp(e,t){let n=Lp(e);return Math.round(t*n)/n}function zp(e){let t=H.useRef(e);return Fp(()=>{t.current=e}),t}function Bp(e){e===void 0&&(e={});let{placement:t=`bottom`,strategy:n=`absolute`,middleware:r=[],platform:i,elements:{reference:a,floating:o}={},transform:s=!0,whileElementsMounted:c,open:l}=e,[u,d]=H.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=H.useState(r);Ip(f,r)||p(r);let[m,h]=H.useState(null),[g,_]=H.useState(null),v=H.useCallback(e=>{e!==S.current&&(S.current=e,h(e))},[]),y=H.useCallback(e=>{e!==C.current&&(C.current=e,_(e))},[]),b=a||m,x=o||g,S=H.useRef(null),C=H.useRef(null),w=H.useRef(u),E=c!=null,D=zp(c),O=zp(i),k=zp(l),A=H.useCallback(()=>{if(!S.current||!C.current)return;let e={placement:t,strategy:n,middleware:f};O.current&&(e.platform=O.current),Pp(S.current,C.current,e).then(e=>{let t={...e,isPositioned:k.current!==!1};j.current&&!Ip(w.current,t)&&(w.current=t,gf.flushSync(()=>{d(t)}))})},[f,t,n,O,k]);Fp(()=>{l===!1&&w.current.isPositioned&&(w.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[l]);let j=H.useRef(!1);Fp(()=>(j.current=!0,()=>{j.current=!1}),[]),Fp(()=>{if(b&&(S.current=b),x&&(C.current=x),b&&x){if(D.current)return D.current(b,x,A);A()}},[b,x,A,D,E]);let M=H.useMemo(()=>({reference:S,floating:C,setReference:v,setFloating:y}),[v,y]),N=H.useMemo(()=>({reference:b,floating:x}),[b,x]),ee=H.useMemo(()=>{let e={position:n,left:0,top:0};if(!N.floating)return e;let t=Rp(N.floating,u.x),r=Rp(N.floating,u.y);return s?{...e,transform:`translate(`+t+`px, `+r+`px)`,...Lp(N.floating)>=1.5&&{willChange:`transform`}}:{position:n,left:t,top:r}},[n,s,N.floating,u.x,u.y]);return H.useMemo(()=>({...u,update:A,refs:M,elements:N,floatingStyles:ee}),[u,A,M,N,ee])}var Vp=(e,t)=>{let n=Op(e);return{name:n.name,fn:n.fn,options:[e,t]}},Hp=(e,t)=>{let n=kp(e);return{name:n.name,fn:n.fn,options:[e,t]}},Up=(e,t)=>({fn:Np(e).fn,options:[e,t]}),Wp=(e,t)=>{let n=Ap(e);return{name:n.name,fn:n.fn,options:[e,t]}},Gp=(e,t)=>{let n=jp(e);return{name:n.name,fn:n.fn,options:[e,t]}},Kp=(e,t)=>{let n=Mp(e);return{name:n.name,fn:n.fn,options:[e,t]}};function qp(e){let t=H.useRef(!0);t.current&&(t.current=!1,e())}var Jp=(e,t,n,r,i,a,...o)=>{if(o.length>0)throw Error(Ac(1));let s;if(e&&t&&n&&r&&i&&a)s=(o,s,c,l)=>a(e(o,s,c,l),t(o,s,c,l),n(o,s,c,l),r(o,s,c,l),i(o,s,c,l),s,c,l);else if(e&&t&&n&&r&&i)s=(a,o,s,c)=>i(e(a,o,s,c),t(a,o,s,c),n(a,o,s,c),r(a,o,s,c),o,s,c);else if(e&&t&&n&&r)s=(i,a,o,s)=>r(e(i,a,o,s),t(i,a,o,s),n(i,a,o,s),a,o,s);else if(e&&t&&n)s=(r,i,a,o)=>n(e(r,i,a,o),t(r,i,a,o),i,a,o);else if(e&&t)s=(n,r,i,a)=>t(e(n,r,i,a),r,i,a);else if(e)s=e;else throw Error(`Missing arguments`);return s},Yp=ee(),Xp=I(),Zp=Rd(19)?em:tm;function Qp(e,t,n,r,i){return Zp(e,t,n,r,i)}function $p(e,t,n,r,i){let a=H.useCallback(()=>t(e.getSnapshot(),n,r,i),[e,t,n,r,i]);return(0,Yp.useSyncExternalStore)(e.subscribe,a,a)}Tc({before(e){e.syncIndex=0,e.didInitialize||(e.syncTick=1,e.syncHooks=[],e.didChangeStore=!0,e.getSnapshot=()=>{let t=!1;for(let n=0;n<e.syncHooks.length;n+=1){let r=e.syncHooks[n],i=r.selector(r.store.state,r.a1,r.a2,r.a3);Object.is(r.value,i)||(t=!0,r.value=i)}return t&&(e.syncTick+=1),e.syncTick})},after(e){e.syncHooks.length>0&&(e.didChangeStore&&(e.didChangeStore=!1,e.subscribe=t=>{let n=new Set;for(let t of e.syncHooks)n.add(t.store);let r=[];for(let e of n)r.push(e.subscribe(t));return()=>{for(let e of r)e()}}),(0,Yp.useSyncExternalStore)(e.subscribe,e.getSnapshot,e.getSnapshot))}});function em(e,t,n,r,i){let a=wc();if(!a)return $p(e,t,n,r,i);let o=a.syncIndex;a.syncIndex+=1;let s;return a.didInitialize?(s=a.syncHooks[o],(s.store!==e||s.selector!==t||!Object.is(s.a1,n)||!Object.is(s.a2,r)||!Object.is(s.a3,i))&&(s.store!==e&&(a.didChangeStore=!0),s.store=e,s.selector=t,s.a1=n,s.a2=r,s.a3=i,s.value=t(e.getSnapshot(),n,r,i))):(s={store:e,selector:t,a1:n,a2:r,a3:i,value:t(e.getSnapshot(),n,r,i)},a.syncHooks.push(s)),s.value}function tm(e,t,n,r,i){return(0,Xp.useSyncExternalStoreWithSelector)(e.subscribe,e.getSnapshot,e.getSnapshot,e=>t(e,n,r,i))}var nm=class{constructor(e){this.state=e,this.listeners=new Set,this.updateTick=0}subscribe=e=>(this.listeners.add(e),()=>{this.listeners.delete(e)});getSnapshot=()=>this.state;setState(e){if(this.state===e)return;this.state=e,this.updateTick+=1;let t=this.updateTick;for(let n of this.listeners){if(t!==this.updateTick)return;n(e)}}update(e){for(let t in e)if(!Object.is(this.state[t],e[t])){this.setState({...this.state,...e});return}}set(e,t){Object.is(this.state[e],t)||this.setState({...this.state,[e]:t})}notifyAll(){let e={...this.state};this.setState(e)}use(e,t,n,r){return Qp(this,e,t,n,r)}},rm=class extends nm{constructor(e,t={},n){super(e),this.context=t,this.selectors=n}useSyncedValue(e,t){H.useDebugValue(e);let n=this;W(()=>{n.state[e]!==t&&n.set(e,t)},[n,e,t])}useSyncedValueWithCleanup(e,t){let n=this;W(()=>(n.state[e]!==t&&n.set(e,t),()=>{n.set(e,void 0)}),[n,e,t])}useSyncedValues(e){let t=this;W(()=>{t.update(e)},[t,...Object.values(e)])}useControlledProp(e,t){H.useDebugValue(e);let n=this,r=t!==void 0;W(()=>{r&&!Object.is(n.state[e],t)&&n.setState({...n.state,[e]:t})},[n,e,t,r])}select(e,t,n,r){let i=this.selectors[e];return i(this.state,t,n,r)}useState(e,t,n,r){return H.useDebugValue(e),Qp(this,this.selectors[e],t,n,r)}useContextCallback(e,t){H.useDebugValue(e);let n=vu(t??Wl);this.context[e]=n}useStateSetter(e){let t=H.useRef(void 0);return t.current===void 0&&(t.current=t=>{this.set(e,t)}),t.current}observe(e,t){let n;n=typeof e==`function`?e:this.selectors[e];let r=n(this.state);return t(r,r,this),this.subscribe(e=>{let i=n(e);if(!Object.is(r,i)){let e=r;r=i,t(i,e,this)}})}},im={open:Jp(e=>e.open),transitionStatus:Jp(e=>e.transitionStatus),domReferenceElement:Jp(e=>e.domReferenceElement),referenceElement:Jp(e=>e.positionReference??e.referenceElement),floatingElement:Jp(e=>e.floatingElement),floatingId:Jp(e=>e.floatingId)},am=class extends rm{constructor(e){let{syncOnly:t,nested:n,onOpenChange:r,triggerElements:i,...a}=e;super({...a,positionReference:a.referenceElement,domReferenceElement:a.referenceElement},{onOpenChange:r,dataRef:{current:{}},events:Sf(),nested:n,triggerElements:i},im),this.syncOnly=t}syncOpenEvent=(e,t)=>{(!e||!this.state.open||t!=null&&rl(t))&&(this.context.dataRef.current.openEvent=e?t:void 0)};dispatchOpenChange=(e,t)=>{this.syncOpenEvent(e,t.event);let n={open:e,reason:t.reason,nativeEvent:t.event,nested:this.context.nested,triggerElement:t.trigger};this.context.events.emit(`openchange`,n)};setOpen=(e,t)=>{if(this.syncOnly){this.context.onOpenChange?.(e,t);return}this.dispatchOpenChange(e,t),this.context.onOpenChange?.(e,t)}};function om(e){let{popupStore:t,treatPopupAsFloatingElement:n=!1,floatingRootContext:r,floatingId:i,nested:a,onOpenChange:o}=e,s=t.useState(`open`),c=t.useState(`activeTriggerElement`),l=t.useState(n?`popupElement`:`positionerElement`),u=t.context.triggerElements,d=o,f=H.useRef(null);r===void 0&&f.current===null&&(f.current=new am({open:s,transitionStatus:void 0,referenceElement:c,floatingElement:l,triggerElements:u,onOpenChange:d,floatingId:i,syncOnly:!0,nested:a}));let p=r??f.current;return t.useSyncedValue(`floatingId`,i),W(()=>{let e={open:s,floatingId:i,referenceElement:c,floatingElement:l};G(c)&&(e.domReferenceElement=c),p.state.positionReference===p.state.referenceElement&&(e.positionReference=c),p.update(e)},[s,i,c,l,p]),p.context.onOpenChange=d,p.context.nested=a,p}function sm(e,t=!1,n=!1){let[r,i]=H.useState(e&&t?`idle`:void 0),[a,o]=H.useState(e);return e&&!a&&(o(!0),i(`starting`)),!e&&a&&r!==`ending`&&!n&&i(`ending`),!e&&!a&&r===`ending`&&i(void 0),W(()=>{if(!e&&a&&r!==`ending`&&n){let e=Cu.request(()=>{i(`ending`)});return()=>{Cu.cancel(e)}}},[e,a,r,n]),W(()=>{if(!e||t)return;let n=Cu.request(()=>{i(void 0)});return()=>{Cu.cancel(n)}},[t,e]),W(()=>{if(!e||!t)return;e&&a&&r!==`idle`&&i(`starting`);let n=Cu.request(()=>{i(`idle`)});return()=>{Cu.cancel(n)}},[t,e,a,r]),{mounted:a,setMounted:o,transitionStatus:r}}var cm=function(e){return e.startingStyle=`data-starting-style`,e.endingStyle=`data-ending-style`,e}({}),lm={[cm.startingStyle]:``},um={[cm.endingStyle]:``},dm={transitionStatus(e){return e===`starting`?lm:e===`ending`?um:null}};function fm(e,t=!1,n=!0){let r=wu();return vu((i,a=null)=>{r.cancel();let o=jf(e);if(o==null)return;let s=o,c=()=>{gf.flushSync(i)};if(typeof s.getAnimations!=`function`||globalThis.BASE_UI_ANIMATIONS_DISABLED){i();return}function l(){Promise.all(s.getAnimations().map(e=>e.finished)).then(()=>{a?.aborted||c()}).catch(()=>{if(n){a?.aborted||c();return}let e=s.getAnimations();!a?.aborted&&e.length>0&&e.some(e=>e.pending||e.playState!==`finished`)&&l()})}if(t){let e=cm.startingStyle;if(!s.hasAttribute(e)){r.request(l);return}let t=new MutationObserver(()=>{s.hasAttribute(e)||(t.disconnect(),l())});t.observe(s,{attributes:!0,attributeFilter:[e]}),a?.addEventListener(`abort`,()=>t.disconnect(),{once:!0});return}r.request(l)})}function pm(e){let{enabled:t=!0,open:n,ref:r,onComplete:i}=e,a=vu(i),o=fm(r,n,!1);H.useEffect(()=>{if(!t)return;let e=new AbortController;return o(a,e.signal),()=>{e.abort()}},[t,n,a,o])}var mm={tabIndex:-1,[Ol]:``};function hm(e){return t=>t===`touch`?e.current:!0}function gm(e,t,n=!1){let r=Id(),i=Ef()!=null,a=H.useRef(null);e===void 0&&a.current===null&&(a.current=t(r,i));let o=e??a.current;return om({popupStore:o,treatPopupAsFloatingElement:n,floatingRootContext:o.state.floatingRootContext,floatingId:r,nested:i,onOpenChange:o.setOpen}),{store:o,internalStore:a.current}}function _m(e,t){let n=H.useRef(null),r=H.useRef(null);return H.useCallback(i=>{if(e===void 0)return;let a=!1;if(n.current!==null){let e=n.current,i=r.current,o=t.context.triggerElements.getById(e);i&&o===i&&(t.context.triggerElements.delete(e),a=!0),n.current=null,r.current=null}if(i!==null&&(n.current=e,r.current=i,t.context.triggerElements.add(e,i),a=!0),a){let e=t.context.triggerElements.size;t.select(`open`)&&t.state.triggerCount!==e&&t.set(`triggerCount`,e)}},[t,e])}function vm(e,t,n,r=!1){t?e.preventUnmountingOnClose=!1:r&&(e.preventUnmountingOnClose=!0);let i=n?.id??null;(i||t)&&(e.activeTriggerId=i,e.activeTriggerElement=n??null)}function ym(e){let t=!1;return e.preventUnmountOnClose=()=>{t=!0},()=>t}function bm(e,t,n,r={}){let i=n.reason,a=i===J,o=t&&i===`trigger-focus`,s=!t&&(i===`trigger-press`||i===`escape-key`),c=ym(n);if(e.context.onOpenChange?.(t,n),n.isCanceled)return;r.onBeforeDispatch?.(),e.state.floatingRootContext.dispatchOpenChange(t,n);let l=()=>{let i={...r.extraState,open:t};o?i.instantType=`focus`:s?i.instantType=`dismiss`:a&&(i.instantType=void 0),vm(i,t,n.trigger,c()),e.update(i)};a?gf.flushSync(l):l()}function xm(e,t,n,r){qp(()=>{t===void 0&&e.state.open===!1&&n&&(e.state={...e.state,open:!0,activeTriggerId:r,preventUnmountingOnClose:!1})})}function Sm(e,t,n,r){let i=n.useState(`isMountedByTrigger`,e),a=_m(e,n),o=vu(t=>{if(a(t),!t)return;let i=n.select(`open`),o=n.select(`activeTriggerId`);if(o===e){n.update({activeTriggerElement:t,...i?r:null});return}o==null&&i&&n.update({activeTriggerId:e,activeTriggerElement:t,...r})});return W(()=>{i&&n.update({activeTriggerElement:t.current,...r})},[i,n,t,...Object.values(r)]),{registerTrigger:o,isMountedByThisTrigger:i}}function Cm(e,t={}){let{closeOnActiveTriggerUnmount:n=!1}=t,r=e.useState(`open`);W(()=>{if(!r){e.state.triggerCount!==0&&e.set(`triggerCount`,0);return}let t=e.context.triggerElements.size,i={};e.state.triggerCount!==t&&(i.triggerCount=t);let a=e.select(`activeTriggerId`),o=null;if(a){let t=e.context.triggerElements.getById(a);t?t!==e.state.activeTriggerElement&&(i.activeTriggerElement=t):o=a}if(!o&&!a&&t===1){let t=e.context.triggerElements.entries().next();if(!t.done){let[e,n]=t.value;i.activeTriggerId=e,i.activeTriggerElement=n}}(i.triggerCount!==void 0||i.activeTriggerId!==void 0||i.activeTriggerElement!==void 0)&&e.update(i),o&&n&&queueMicrotask(()=>{if(e.select(`open`)&&e.select(`activeTriggerId`)===o&&!e.context.triggerElements.getById(o)){let t=tu(Kl);e.setOpen(!1,t),t.isCanceled||e.update({activeTriggerId:null,activeTriggerElement:null})}})},[r,e,e.useState(`triggerCount`),n])}function wm(e,t,n){let{mounted:r,setMounted:i,transitionStatus:a}=sm(e),o=t.useState(`preventUnmountingOnClose`),s=e?!1:o;t.useSyncedValues({mounted:r,transitionStatus:a,preventUnmountingOnClose:s});let c=vu(()=>{i(!1),t.update({activeTriggerId:null,activeTriggerElement:null,mounted:!1,preventUnmountingOnClose:!1}),n?.(),t.context.onOpenChangeComplete?.(!1)});return pm({enabled:r&&!e&&!s,open:e,ref:t.context.popupRef,onComplete(){e||c()}}),{forceUnmount:c,transitionStatus:a}}function Tm(e,t){e.useSyncedValues(t),W(()=>()=>{e.update({activeTriggerProps:Gl,inactiveTriggerProps:Gl,popupProps:Gl})},[e])}function Em(e,t){W(()=>{!t&&e.state.openMethod!==null&&e.set(`openMethod`,null)},[t,e]),W(()=>()=>{e.state.openMethod!==null&&e.set(`openMethod`,null)},[e])}var Dm=class{constructor(){this.elementsSet=new Set,this.idMap=new Map}add(e,t){let n=this.idMap.get(e);n!==t&&(n!==void 0&&this.elementsSet.delete(n),this.elementsSet.add(t),this.idMap.set(e,t))}delete(e){let t=this.idMap.get(e);t&&(this.elementsSet.delete(t),this.idMap.delete(e))}hasElement(e){return this.elementsSet.has(e)}hasMatchingElement(e){for(let t of this.elementsSet)if(e(t))return!0;return!1}getById(e){return this.idMap.get(e)}entries(){return this.idMap.entries()}elements(){return this.elementsSet.values()}get size(){return this.idMap.size}};function Om(){return new am({open:!1,transitionStatus:void 0,floatingElement:null,referenceElement:null,triggerElements:new Dm,floatingId:void 0,syncOnly:!1,nested:!1,onOpenChange:void 0})}function km(){return{open:!1,openProp:void 0,mounted:!1,transitionStatus:void 0,floatingRootContext:Om(),floatingId:void 0,triggerCount:0,preventUnmountingOnClose:!1,payload:void 0,activeTriggerId:null,activeTriggerElement:null,triggerIdProp:void 0,popupElement:null,positionerElement:null,activeTriggerProps:Gl,inactiveTriggerProps:Gl,popupProps:Gl}}function Am(e,t,n=!1){return new am({open:!1,transitionStatus:void 0,floatingElement:null,referenceElement:null,triggerElements:e,floatingId:t,syncOnly:!0,nested:n,onOpenChange:void 0})}var jm=Jp(e=>e.triggerIdProp??e.activeTriggerId),Mm=Jp(e=>e.openProp??e.open),Nm=Jp(e=>(e.popupElement?.id??e.floatingId)||void 0);function Pm(e,t){return t!==void 0&&Mm(e)&&jm(e)===t}function Fm(e,t){return Pm(e,t)?!0:t!==void 0&&Mm(e)&&jm(e)==null&&e.triggerCount===1}var Im={open:Mm,mounted:Jp(e=>e.mounted),transitionStatus:Jp(e=>e.transitionStatus),floatingRootContext:Jp(e=>e.floatingRootContext),triggerCount:Jp(e=>e.triggerCount),preventUnmountingOnClose:Jp(e=>e.preventUnmountingOnClose),payload:Jp(e=>e.payload),activeTriggerId:jm,activeTriggerElement:Jp(e=>e.mounted?e.activeTriggerElement:null),popupId:Nm,isTriggerActive:Jp((e,t)=>t!==void 0&&jm(e)===t),isOpenedByTrigger:Jp((e,t)=>Pm(e,t)),isMountedByTrigger:Jp((e,t)=>t!==void 0&&jm(e)===t&&e.mounted),triggerProps:Jp((e,t)=>t?e.activeTriggerProps:e.inactiveTriggerProps),triggerPopupId:Jp((e,t)=>Fm(e,t)?Nm(e):void 0),popupProps:Jp(e=>e.popupProps),popupElement:Jp(e=>e.popupElement),positionerElement:Jp(e=>e.positionerElement)};function Lm(e){let{open:t=!1,onOpenChange:n,elements:r={}}=e,i=Id(),a=Ef()!=null,o=xc(()=>new am({open:t,transitionStatus:void 0,onOpenChange:n,referenceElement:r.reference??null,floatingElement:r.floating??null,triggerElements:new Dm,floatingId:i,syncOnly:!1,nested:a})).current;return W(()=>{let e={open:t,floatingId:i};r.reference!==void 0&&(e.referenceElement=r.reference,e.domReferenceElement=G(r.reference)?r.reference:null),r.floating!==void 0&&(e.floatingElement=r.floating),o.update(e)},[t,i,r.reference,r.floating,o]),o.context.onOpenChange=n,o.context.nested=a,o}function Rm(e={}){let{nodeId:t,externalTree:n}=e,r=Lm(e),i=e.rootContext||r,a=i.useState(`referenceElement`),o=i.useState(`floatingElement`),s=i.useState(`domReferenceElement`),c=i.useState(`open`),l=i.useState(`floatingId`),[u,d]=H.useState(null),[f,p]=H.useState(void 0),[m,h]=H.useState(void 0),g=H.useRef(null),_=Df(n),v=H.useMemo(()=>({reference:a,floating:o,domReference:s}),[a,o,s]),y=Bp({...e,elements:{...v,...u&&{reference:u}}}),b=G(f)?f:null,x=m===void 0?i.state.floatingElement:m;i.useSyncedValue(`referenceElement`,f??null),i.useSyncedValue(`domReferenceElement`,f===void 0?s:b),i.useSyncedValue(`floatingElement`,x);let S=H.useCallback(e=>{let t=G(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),getClientRects:()=>e.getClientRects(),contextElement:e}:e;d(t),y.refs.setReference(t)},[y.refs]),C=H.useCallback(e=>{(G(e)||e===null)&&(g.current=e,p(e)),(G(y.refs.reference.current)||y.refs.reference.current===null||e!==null&&!G(e))&&y.refs.setReference(e)},[y.refs,p]),w=H.useCallback(e=>{h(e),y.refs.setFloating(e)},[y.refs]),E=H.useMemo(()=>({...y.refs,setReference:C,setFloating:w,setPositionReference:S,domReference:g}),[y.refs,C,w,S]),D=H.useMemo(()=>({...y.elements,domReference:s}),[y.elements,s]),O=H.useMemo(()=>({...y,dataRef:i.context.dataRef,open:c,onOpenChange:i.setOpen,events:i.context.events,floatingId:l,refs:E,elements:D,nodeId:t,rootStore:i}),[y,E,D,t,i,c,l]);return W(()=>{s&&(g.current=s)},[s]),W(()=>{i.context.dataRef.current.floatingContext=O;let e=_?.nodesRef.current.find(e=>e.id===t);e&&(e.context=O)}),H.useMemo(()=>({...y,context:O,refs:E,elements:D,rootStore:i}),[y,E,D,O,i])}var zm=qc&&Yc;function Bm(e,t={}){let{enabled:n=!0,delay:r}=t,i=`rootStore`in e?e.rootStore:e,{events:a,dataRef:o}=i.context,s=H.useRef(!1),c=H.useRef(null),l=H.useRef(!0),u=Lc();H.useEffect(()=>{let e=i.select(`domReferenceElement`);if(!n)return;let t=ol(e);function r(){let e=i.select(`domReferenceElement`);!i.select(`open`)&&ll(e)&&e===Al(Tu(e))&&(s.current=!0)}function a(){l.current=!0}function o(){l.current=!1}return ou(Y(t,`blur`,r),zm&&Y(t,`keydown`,a,!0),zm&&Y(t,`pointerdown`,o,!0))},[i,n]),H.useEffect(()=>{if(!n)return;function e(e){if(e.reason===`trigger-press`||e.reason===`escape-key`){let e=i.select(`domReferenceElement`);G(e)&&(c.current=e,s.current=!0)}}return a.on(`openchange`,e),()=>{a.off(`openchange`,e)}},[a,n,i]);let d=H.useMemo(()=>{function e(){s.current=!1,c.current=null}return{onMouseLeave(){e()},onFocus(t){let n=t.currentTarget;if(s.current){if(c.current===n)return;e()}let a=Ml(t.nativeEvent);if(G(a)){if(zm&&!t.relatedTarget){if(!l.current&&!Il(a))return}else if(!zl(a))return}let o=Nl(t.relatedTarget,i.context.triggerElements),{nativeEvent:d,currentTarget:f}=t,p=typeof r==`function`?r():r;if(i.select(`open`)&&o||p===0||p===void 0){i.setOpen(!0,tu(Jl,d,f));return}u.start(p,()=>{s.current||i.setOpen(!0,tu(Jl,d,f))})},onBlur(t){e();let n=t.relatedTarget,r=t.nativeEvent,a=G(n)&&n.hasAttribute(Md(`focus-guard`))&&n.getAttribute(`data-type`)===`outside`;u.start(0,()=>{let e=i.select(`domReferenceElement`),t=Al(Tu(e));!n&&t===e||jl(o.current.floatingContext?.refs.floating.current,t)||jl(e,t)||a||Nl(n??t,i.context.triggerElements)||i.setOpen(!1,tu(Jl,r))})}}},[o,r,i,u]);return H.useMemo(()=>n?{reference:d,trigger:d}:{},[n,d])}var Vm=class e{constructor(){this.pointerType=void 0,this.interactedInside=!1,this.handler=void 0,this.blockMouseMove=!0,this.performedPointerEventsMutation=!1,this.pointerEventsScopeElement=null,this.pointerEventsReferenceElement=null,this.pointerEventsFloatingElement=null,this.restTimeoutPending=!1,this.openChangeTimeout=new Ic,this.restTimeout=new Ic,this.handleCloseOptions=void 0}static create(){return new e}dispose=()=>{this.openChangeTimeout.clear(),this.restTimeout.clear()};disposeEffect=()=>this.dispose},Hm=new WeakMap;function Um(e){if(!e.performedPointerEventsMutation)return;let t=e.pointerEventsScopeElement;t&&Hm.get(t)===e&&(e.pointerEventsScopeElement?.style.removeProperty(`pointer-events`),e.pointerEventsReferenceElement?.style.removeProperty(`pointer-events`),e.pointerEventsFloatingElement?.style.removeProperty(`pointer-events`),Hm.delete(t)),e.performedPointerEventsMutation=!1,e.pointerEventsScopeElement=null,e.pointerEventsReferenceElement=null,e.pointerEventsFloatingElement=null}function Wm(e,t){let{scopeElement:n,referenceElement:r,floatingElement:i}=t,a=Hm.get(n);a&&a!==e&&Um(a),Um(e),e.performedPointerEventsMutation=!0,e.pointerEventsScopeElement=n,e.pointerEventsReferenceElement=r,e.pointerEventsFloatingElement=i,Hm.set(n,e),n.style.pointerEvents=`none`,r.style.pointerEvents=`auto`,i.style.pointerEvents=`auto`}function Gm(e){let t=e.context.dataRef.current,n=xc(()=>t.hoverInteractionState??Vm.create()).current;return t.hoverInteractionState||=n,Pc(t.hoverInteractionState.disposeEffect),t.hoverInteractionState}function Km(e,t={}){let{enabled:n=!0,closeDelay:r=0,nodeId:i}=t,a=`rootStore`in e?e.rootStore:e,o=a.useState(`open`),s=a.useState(`floatingElement`),c=a.useState(`domReferenceElement`),{dataRef:l}=a.context,u=Df(),d=Ef(),f=Gm(a),p=Lc(),m=vu(()=>Hl(l.current.openEvent?.type,f.interactedInside)),h=vu(()=>Ul(l.current.openEvent?.type)),g=vu(()=>{Um(f)});W(()=>{o||(f.pointerType=void 0,f.restTimeoutPending=!1,f.interactedInside=!1,g())},[o,f,g]),H.useEffect(()=>g,[g]),W(()=>{if(n&&o&&f.handleCloseOptions?.blockPointerEvents&&h()&&G(c)&&s){let e=c,t=s,n=Tu(s),r=u?.nodesRef.current.find(e=>e.id===d)?.context?.elements.floating;r&&(r.style.pointerEvents=``);let i=f.pointerEventsScopeElement===t?null:f.pointerEventsScopeElement,a=r===t?null:r;return Wm(f,{scopeElement:f.handleCloseOptions?.getScope?.()??i??a??e.closest(`[data-rootownerid]`)??n.body,referenceElement:e,floatingElement:t}),()=>{g()}}},[n,o,c,s,f,h,u,d,g]),H.useEffect(()=>{if(!n)return;function e(){return!!(u&&d&&Ad(u.nodesRef.current,d).length>0)}function t(e){let t=K(r,`close`,f.pointerType),n=()=>{a.setOpen(!1,tu(J,e)),u?.events.emit(`floating.closed`,e)};t?f.openChangeTimeout.start(t,n):(f.openChangeTimeout.clear(),n())}function o(e){let t=Ml(e);if(!Ll(t)){f.interactedInside=!1;return}f.interactedInside=t?.closest(`[aria-haspopup]`)!=null}function c(){f.openChangeTimeout.clear(),p.clear(),u?.events.off(`floating.closed`,v),g()}function _(n){if(e()&&u){u.events.on(`floating.closed`,v);return}if(Nl(n.relatedTarget,a.context.triggerElements))return;let r=l.current.floatingContext?.nodeId??i,o=n.relatedTarget;if(!(u&&r&&G(o)&&Ad(u.nodesRef.current,r,!1).some(e=>jl(e.context?.elements.floating,o)))){if(f.handler){f.handler(n);return}g(),h()&&!m()&&t(n)}}function v(t){!u||!d||e()||p.start(0,()=>{u.events.off(`floating.closed`,v),a.setOpen(!1,tu(J,t)),u.events.emit(`floating.closed`,t)})}let y=s;return ou(y&&Y(y,`mouseenter`,c),y&&Y(y,`mouseleave`,_),y&&Y(y,`pointerdown`,o,!0),()=>{u?.events.off(`floating.closed`,v)})},[n,s,a,l,r,i,h,m,g,f,u,d,p])}var qm={current:null};function Jm(e,t={}){let{enabled:n=!0,delay:r=0,handleClose:i=null,mouseOnly:a=!1,restMs:o=0,move:s=!0,triggerElementRef:c=qm,externalTree:l,isActiveTrigger:u=!0,getHandleCloseContext:d,isClosing:f,shouldOpen:p}=t,m=`rootStore`in e?e.rootStore:e,{dataRef:h,events:g}=m.context,_=Df(l),v=Gm(m),y=H.useRef(!1),b=pu(i),x=pu(r),S=pu(o),C=pu(n),w=pu(p),E=pu(f),D=vu(()=>Hl(h.current.openEvent?.type,v.interactedInside)),O=vu(()=>w.current?.()!==!1),k=vu((e,t,n)=>{let r=m.context.triggerElements;if(r.hasElement(t))return!e||!jl(e,t);if(!G(n))return!1;let i=n;return r.hasMatchingElement(e=>jl(e,i))&&(!e||!jl(e,i))}),A=vu(()=>{v.handler&&=(Tu(m.select(`domReferenceElement`)).removeEventListener(`mousemove`,v.handler),void 0)}),j=vu(()=>{Um(v)});return u&&(v.handleCloseOptions=b.current?.__options),H.useEffect(()=>A,[A]),H.useEffect(()=>{if(!n)return;function e(e){e.open?y.current=!1:(y.current=e.reason===J,A(),v.openChangeTimeout.clear(),v.restTimeout.clear(),v.blockMouseMove=!0,v.restTimeoutPending=!1)}return g.on(`openchange`,e),()=>{g.off(`openchange`,e)}},[n,g,v,A]),H.useEffect(()=>{if(!n)return;function e(e,t=!0){let n=K(x.current,`close`,v.pointerType);n?v.openChangeTimeout.start(n,()=>{m.setOpen(!1,tu(J,e)),_?.events.emit(`floating.closed`,e)}):t&&(v.openChangeTimeout.clear(),m.setOpen(!1,tu(J,e)),_?.events.emit(`floating.closed`,e))}let t=c.current??(u?m.select(`domReferenceElement`):null);if(!G(t))return;function r(e){if(v.openChangeTimeout.clear(),v.blockMouseMove=!1,a&&!nl(v.pointerType))return;let t=q(S.current),n=K(x.current,`open`,v.pointerType),r=Ml(e),i=e.currentTarget??null,o=m.select(`domReferenceElement`),s=i;if(G(r)&&!m.context.triggerElements.hasElement(r)){for(let e of m.context.triggerElements.elements())if(jl(e,r)){s=e;break}}G(i)&&G(o)&&!m.context.triggerElements.hasElement(i)&&jl(i,o)&&(s=o);let c=s==null?!1:k(o,s,r),l=m.select(`open`),u=E.current?.()??m.select(`transitionStatus`)===`ending`,d=!l&&u&&y.current,f=!c&&G(s)&&G(o)&&jl(o,s)&&d,p=t>0&&!n,h=c&&(l||d)||f,g=!l||c;if(h){O()&&m.setOpen(!0,tu(J,e,s));return}p||(n?v.openChangeTimeout.start(n,()=>{g&&O()&&m.setOpen(!0,tu(J,e,s))}):g&&O()&&m.setOpen(!0,tu(J,e,s)))}function i(t){if(D()){j();return}A();let n=Tu(m.select(`domReferenceElement`));v.restTimeout.clear(),v.restTimeoutPending=!1;let r=h.current.floatingContext??d?.();if(!Nl(t.relatedTarget,m.context.triggerElements)){if(b.current&&r){m.select(`open`)||v.openChangeTimeout.clear();let i=c.current;v.handler=b.current({...r,tree:_,x:t.clientX,y:t.clientY,onClose(){j(),A(),C.current&&!D()&&i===m.select(`domReferenceElement`)&&e(t,!0)}}),n.addEventListener(`mousemove`,v.handler),v.handler(t);return}(v.pointerType!==`touch`||!jl(m.select(`floatingElement`),t.relatedTarget))&&e(t)}}return s?ou(Y(t,`mousemove`,r,{once:!0}),Y(t,`mouseenter`,r),Y(t,`mouseleave`,i)):ou(Y(t,`mouseenter`,r),Y(t,`mouseleave`,i))},[A,j,h,x,m,n,b,v,u,k,D,a,s,S,c,_,C,d,E,O]),H.useMemo(()=>{if(!n)return;function e(e){v.pointerType=e.pointerType}return{onPointerDown:e,onPointerEnter:e,onMouseMove(e){let{nativeEvent:t}=e,n=e.currentTarget,r=m.select(`domReferenceElement`),i=m.select(`open`),o=k(r,n,e.target);if(a&&!nl(v.pointerType))return;if(i&&o&&v.handleCloseOptions?.blockPointerEvents){let e=m.select(`floatingElement`);e&&Wm(v,{scopeElement:v.handleCloseOptions?.getScope?.()??n.ownerDocument.body,referenceElement:n,floatingElement:e})}let s=q(S.current);if(i&&!o||s===0||!o&&v.restTimeoutPending&&e.movementX**2+e.movementY**2<2)return;v.restTimeout.clear();function c(){if(v.restTimeoutPending=!1,D())return;let e=m.select(`open`);!v.blockMouseMove&&(!e||o)&&O()&&m.setOpen(!0,tu(J,t,n))}v.pointerType===`touch`?gf.flushSync(()=>{c()}):o&&i?c():(v.restTimeoutPending=!0,v.restTimeout.start(s,c))}}},[n,v,D,k,a,m,S,O])}var Ym=.1,Xm=Ym*Ym,Zm=.5;function Qm(e,t,n,r,i,a){return r>=t!=a>=t&&e<=(i-n)*(t-r)/(a-r)+n}function $m(e,t,n,r,i,a,o,s,c,l){let u=!1;return Qm(e,t,n,r,i,a)&&(u=!u),Qm(e,t,i,a,o,s)&&(u=!u),Qm(e,t,o,s,c,l)&&(u=!u),Qm(e,t,c,l,n,r)&&(u=!u),u}function eh(e,t,n){return e>=n.x&&e<=n.x+n.width&&t>=n.y&&t<=n.y+n.height}function th(e,t,n,r,i,a){return e>=Math.min(n,i)&&e<=Math.max(n,i)&&t>=Math.min(r,a)&&t<=Math.max(r,a)}function nh(e={}){let{blockPointerEvents:t=!1}=e,n=new Ic,r=({x:e,y:t,placement:r,elements:i,onClose:a,nodeId:o,tree:s})=>{let c=r?.split(`-`)[0],l=!1,u=null,d=null,f=typeof performance<`u`?performance.now():0;function p(e,t){let n=performance.now(),r=n-f;if(u===null||d===null||r===0)return u=e,d=t,f=n,!1;let i=e-u,a=t-d,o=i*i+a*a,s=r*r*Xm;return u=e,d=t,f=n,o<s}function m(){n.clear(),a()}return function(r){n.clear();let a=i.domReference,u=i.floating;if(!a||!u||c==null||e==null||t==null)return;let{clientX:d,clientY:f}=r,h=Ml(r),g=r.type===`mouseleave`,_=jl(u,h),v=jl(a,h);if(_&&(l=!0,!g))return;if(v&&(l=!1,!g)){l=!0;return}if(g&&G(r.relatedTarget)&&jl(u,r.relatedTarget))return;function y(){return!!(s&&Ad(s.nodesRef.current,o).length>0)}function b(){y()||m()}if(y())return;let x=a.getBoundingClientRect(),S=u.getBoundingClientRect(),C=e>S.right-S.width/2,w=t>S.bottom-S.height/2,E=S.width>x.width,D=S.height>x.height,O=(E?x:S).left,k=(E?x:S).right,A=(D?x:S).top,j=(D?x:S).bottom;if(c===`top`&&t>=x.bottom-1||c===`bottom`&&t<=x.top+1||c===`left`&&e>=x.right-1||c===`right`&&e<=x.left+1){b();return}let M=!1;switch(c){case`top`:M=th(d,f,O,x.top+1,k,S.bottom-1);break;case`bottom`:M=th(d,f,O,S.top+1,k,x.bottom-1);break;case`left`:M=th(d,f,S.right-1,j,x.left+1,A);break;case`right`:M=th(d,f,x.right-1,j,S.left+1,A);break;default:}if(M)return;if(l&&!eh(d,f,x)){b();return}if(!g&&p(d,f)){b();return}let N=!1;switch(c){case`top`:{let n=E?Zm/2:Zm*4,r=E||C?e+n:e-n,i=E?e-n:C?e+n:e-n,a=t+Zm+1,o=C||E?S.bottom-Zm:S.top,s=C?E?S.bottom-Zm:S.top:S.bottom-Zm;N=$m(d,f,r,a,i,a,S.left,o,S.right,s);break}case`bottom`:{let n=E?Zm/2:Zm*4,r=E||C?e+n:e-n,i=E?e-n:C?e+n:e-n,a=t-Zm,o=C||E?S.top+Zm:S.bottom,s=C?E?S.top+Zm:S.bottom:S.top+Zm;N=$m(d,f,r,a,i,a,S.left,o,S.right,s);break}case`left`:{let n=D?Zm/2:Zm*4,r=D||w?t+n:t-n,i=D?t-n:w?t+n:t-n,a=e+Zm+1,o=w||D?S.right-Zm:S.left,s=w?D?S.right-Zm:S.left:S.right-Zm;N=$m(d,f,o,S.top,s,S.bottom,a,r,a,i);break}case`right`:{let n=D?Zm/2:Zm*4,r=D||w?t+n:t-n,i=D?t-n:w?t+n:t-n,a=e-Zm,o=w||D?S.left+Zm:S.right,s=w?D?S.left+Zm:S.right:S.left+Zm;N=$m(d,f,a,r,a,i,o,S.top,s,S.bottom);break}default:}N?l||n.start(40,b):b()}};return r.__options={...e,blockPointerEvents:t},r}var rh={...Im,disabled:Jp(e=>e.disabled),instantType:Jp(e=>e.instantType),isInstantPhase:Jp(e=>e.isInstantPhase),trackCursorAxis:Jp(e=>e.trackCursorAxis),disableHoverablePopup:Jp(e=>e.disableHoverablePopup),lastOpenChangeReason:Jp(e=>e.openChangeReason),closeOnClick:Jp(e=>e.closeOnClick),closeDelay:Jp(e=>e.closeDelay),hasViewport:Jp(e=>e.hasViewport)},ih=class e extends rm{constructor(e,t,n=!1){let r=new Dm,i={...ah(),...e};i.floatingRootContext=Am(r,t,n),super(i,{popupRef:H.createRef(),onOpenChange:void 0,onOpenChangeComplete:void 0,triggerElements:r},rh)}setOpen=(e,t)=>{bm(this,e,t,{extraState:{openChangeReason:t.reason}})};cancelPendingOpen(e){this.state.floatingRootContext.dispatchOpenChange(!1,tu(ql,e))}static useStore(t,n){return gm(t,(t,r)=>new e(n,t,r)).store}};function ah(){return{...km(),disabled:!1,instantType:void 0,isInstantPhase:!1,trackCursorAxis:`none`,disableHoverablePopup:!1,openChangeReason:null,closeOnClick:!0,closeDelay:0,hasViewport:!1}}var oh=Ec(function(e){let{disabled:t=!1,defaultOpen:n=!1,open:r,disableHoverablePopup:i=!1,trackCursorAxis:a=`none`,actionsRef:o,onOpenChange:s,onOpenChangeComplete:c,handle:l,triggerId:u,defaultTriggerId:d=null,children:f}=e,p=ih.useStore(l?.store,{open:n,openProp:r,activeTriggerId:d,triggerIdProp:u});xm(p,r,n,d),p.useControlledProp(`openProp`,r),p.useControlledProp(`triggerIdProp`,u),p.useContextCallback(`onOpenChange`,s),p.useContextCallback(`onOpenChangeComplete`,c);let m=p.useState(`open`),h=!t&&m,g=p.useState(`activeTriggerId`),_=p.useState(`mounted`),v=p.useState(`payload`);p.useSyncedValues({trackCursorAxis:a,disableHoverablePopup:i}),p.useSyncedValue(`disabled`,t),Cm(p,{closeOnActiveTriggerUnmount:!0});let{forceUnmount:y,transitionStatus:b}=wm(h,p),x=p.useState(`isInstantPhase`),S=p.useState(`instantType`),C=p.useState(`lastOpenChangeReason`),w=H.useRef(null);W(()=>{m&&t&&p.setOpen(!1,tu($l))},[m,t,p]),W(()=>{b===`ending`&&C===`none`||b!==`ending`&&x?(S!==`delay`&&(w.current=S),p.set(`instantType`,`delay`)):w.current!==null&&(p.set(`instantType`,w.current),w.current=null)},[b,x,C,S,p]),W(()=>{h&&(g??p.set(`payload`,void 0))},[p,g,h]);let E=H.useCallback(()=>{p.setOpen(!1,tu(eu))},[p]);H.useImperativeHandle(o,()=>({unmount:y,close:E}),[y,E]);let D=h||_||!t&&a!==`none`;return(0,U.jsxs)(jc.Provider,{value:p,children:[D&&(0,U.jsx)(sh,{store:p,disabled:t,trackCursorAxis:a}),typeof f==`function`?f({payload:v}):f]})});function sh({store:e,disabled:t,trackCursorAxis:n}){let r=e.useState(`floatingRootContext`),i=Lf(r,{enabled:!t,referencePress:()=>e.select(`closeOnClick`)}),a=Pf(r,{enabled:!t&&n!==`none`,axis:n===`none`?void 0:n});return Tm(e,{activeTriggerProps:H.useMemo(()=>Gd(a.reference,i.reference),[a.reference,i.reference]),inactiveTriggerProps:H.useMemo(()=>Gd(a.trigger,i.trigger),[a.trigger,i.trigger]),popupProps:H.useMemo(()=>Gd(mm,a.floating,i.floating),[a.floating,i.floating])}),null}var ch=function(e){return e.open=`data-open`,e.closed=`data-closed`,e[e.startingStyle=cm.startingStyle]=`startingStyle`,e[e.endingStyle=cm.endingStyle]=`endingStyle`,e.anchorHidden=`data-anchor-hidden`,e.side=`data-side`,e.align=`data-align`,e}({}),lh=function(e){return e.popupOpen=`data-popup-open`,e.pressed=`data-pressed`,e}({}),uh={[lh.popupOpen]:``},dh={[lh.popupOpen]:``,[lh.pressed]:``},fh={[ch.open]:``},ph={[ch.closed]:``},mh={[ch.anchorHidden]:``},hh={open(e){return e?uh:null}},gh={open(e){return e?dh:null}},_h={open(e){return e?fh:ph},anchorHidden(e){return e?mh:null}};function vh(e){return Id(e,`base-ui`)}var yh=H.createContext(void 0);function bh(){return H.useContext(yh)}var xh=function(e){return e[e.popupOpen=lh.popupOpen]=`popupOpen`,e.triggerDisabled=`data-trigger-disabled`,e}({}),Sh=`data-base-ui-tooltip-trigger`;function Ch(e){if(`composedPath`in e){let t=e.composedPath();for(let e=0;e<t.length;e+=1){let n=t[e];if(G(n))return n}}let t=e.target;return G(t)?t:null}function wh(e){let t=e;for(;t;){if(t.hasAttribute(Sh))return t;let e=t.parentElement;if(e){t=e;continue}let n=t.getRootNode();t=`host`in n&&G(n.host)?n.host:null}return null}var Th=Dc(function(e,t){let{render:n,className:r,style:i,handle:a,payload:o,disabled:s,delay:c,closeOnClick:l=!0,closeDelay:u,id:d,...f}=e,p=Mc(!0),m=a?.store??p;if(!m)throw Error(Ac(82));let h=vh(d),g=m.useState(`isTriggerActive`,h),_=m.useState(`isOpenedByTrigger`,h),v=m.useState(`floatingRootContext`),y=H.useRef(null),b=c??600,x=u??0,{registerTrigger:S,isMountedByThisTrigger:C}=Sm(h,y,m,{payload:o,closeOnClick:l,closeDelay:x}),w=bh(),{delayRef:E,isInstantPhase:D,hasProvider:O}=au(v,{open:_}),k=Gm(v);m.useSyncedValue(`isInstantPhase`,D);let A=m.useState(`disabled`),j=s??A,M=pu(j),N=m.useState(`trackCursorAxis`),ee=m.useState(`disableHoverablePopup`),te=H.useRef(!1),P=Lc(),F=H.useRef(void 0);function ne(){let e=w?.delay,t=typeof E.current==`object`?E.current.open:void 0,n=b;return O&&(n=t===0?0:c??e??b),n}function re(e){let t=y.current;if(!t||!e)return!1;let n=wh(e);return n!==null&&n!==t&&jl(t,n)}function ie(e){let t=re(e);return te.current=t,t&&(k.openChangeTimeout.clear(),k.restTimeout.clear(),k.restTimeoutPending=!1,P.clear()),t}let ae=Jm(v,{enabled:!j,mouseOnly:!0,move:!1,handleClose:!ee&&N!==`both`?nh():null,restMs:ne,delay(){let e=typeof E.current==`object`?E.current.close:void 0,t=x;return u==null&&O&&(t=e),{close:t}},triggerElementRef:y,isActiveTrigger:g,isClosing:()=>m.select(`transitionStatus`)===`ending`,shouldOpen(){return!te.current}}),I=Bm(v,{enabled:!j}).reference,L=e=>{let t=te.current,n=Ch(e),r=ie(n),i=y.current,a=i&&n&&jl(i,n);if(r&&m.select(`open`)&&m.select(`lastOpenChangeReason`)===`trigger-hover`){m.setOpen(!1,tu(J,e));return}if(t&&!r&&a&&!M.current&&!m.select(`open`)&&i&&nl(F.current)){let t=()=>{!te.current&&!M.current&&!m.select(`open`)&&m.setOpen(!0,tu(J,e,i))},n=ne();n===0?(P.clear(),t()):P.start(n,t)}},oe=m.useState(`triggerProps`,C);return of(`button`,e,{state:{open:_},ref:[t,S,y],props:[ae,I,C||N!==`none`?oe:void 0,{onMouseOver(e){L(e.nativeEvent)},onFocus(e){re(Ch(e.nativeEvent))&&e.preventBaseUIHandler()},onMouseLeave(){te.current=!1,P.clear(),F.current=void 0},onPointerEnter(e){F.current=e.pointerType},onPointerDown(e){F.current=e.pointerType,m.set(`closeOnClick`,l),l&&!m.select(`open`)&&m.cancelPendingOpen(e.nativeEvent)},onClick(e){l&&!m.select(`open`)&&m.cancelPendingOpen(e.nativeEvent)},id:h,[xh.triggerDisabled]:j?``:void 0,[Sh]:j?void 0:``},f],stateAttributesMapping:hh})}),Eh=H.createContext(void 0);function Dh(){let e=H.useContext(Eh);if(e===void 0)throw Error(Ac(70));return e}var Oh=H.forwardRef(function(e,t){let{children:n,container:r,className:i,render:a,style:o,...s}=e,{portalNode:c,portalSubtree:l}=bf({container:r,ref:t,componentProps:e,elementProps:s});return!l&&!c?null:(0,U.jsxs)(H.Fragment,{children:[l,c&&gf.createPortal(n,c)]})}),kh=H.forwardRef(function(e,t){let{keepMounted:n=!1,...r}=e;return Mc().useState(`mounted`)||n?(0,U.jsx)(Eh.Provider,{value:n,children:(0,U.jsx)(Oh,{ref:t,...r})}):null}),Ah=H.createContext(void 0);function jh(){let e=H.useContext(Ah);if(e===void 0)throw Error(Ac(71));return e}var Mh=H.createContext(void 0);function Nh(){return H.useContext(Mh)?.direction??`ltr`}var Ph=e=>({name:`arrow`,options:e,async fn(t){let{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:c}=t,{element:l,padding:u=0,offsetParent:d=`real`}=Ru(e,t)||{};if(l==null)return{};let f=nd(u),p={x:n,y:r},m=Wu(i),h=Hu(m),g=await o.getDimensions(l),_=m===`y`,v=_?`top`:`left`,y=_?`bottom`:`right`,b=_?`clientHeight`:`clientWidth`,x=a.reference[h]+a.reference[m]-p[m]-a.floating[h],S=p[m]-a.reference[m],C=d===`real`?await o.getOffsetParent?.(l):s.floating,w=s.floating[b]||a.floating[h];(!w||!await o.isElement?.(C))&&(w=s.floating[b]||a.floating[h]);let E=x/2-S/2,D=w/2-g[h]/2-1,O=Math.min(f[v],D),k=Math.min(f[y],D),A=O,j=w-g[h]-k,M=w/2-g[h]/2+E,N=Lu(A,M,j),ee=!c.arrow&&Bu(i)!=null&&M!==N&&a.reference[h]/2-(M<A?O:k)-g[h]/2<0,te=ee?M<A?M-A:M-j:0;return{[m]:p[m]+te,data:{[m]:N,centerOffset:M-N-te,...ee&&{alignmentOffset:te}},reset:ee}}}),Fh=(e,t)=>({...Ph(e),options:[e,t]}),Ih=Kp().fn,Lh={name:`hide`,async fn(e){let{width:t,height:n,x:r,y:i}=e.rects.reference,a=t===0&&n===0&&r===0&&i===0;return{data:{referenceHidden:(await Ih(e)).data?.referenceHidden||a}}}},Rh={sideX:`left`,sideY:`top`},zh={name:`adaptiveOrigin`,async fn(e){let{x:t,y:n,rects:{floating:r},elements:{floating:i},platform:a,strategy:o,placement:s}=e,c=ol(i),l=c.getComputedStyle(i);if(!(l.transitionDuration!==`0s`&&l.transitionDuration!==``))return{x:t,y:n,data:Rh};let u=await a.getOffsetParent?.(i),d={width:0,height:0};if(o===`fixed`&&c?.visualViewport)d={width:c.visualViewport.width,height:c.visualViewport.height};else if(u===c){let e=Tu(i);d={width:e.documentElement.clientWidth,height:e.documentElement.clientHeight}}else await a.isElement?.(u)&&(d=await a.getDimensions(u));let f=zu(s),p=t,m=n;f===`left`&&(p=d.width-(t+r.width)),f===`top`&&(m=d.height-(n+r.height));let h=f===`left`?`right`:Rh.sideX,g=f===`top`?`bottom`:Rh.sideY;return{x:p,y:m,data:{sideX:h,sideY:g}}}};function Bh(e,t,n){let r=e===`inline-start`||e===`inline-end`;return{top:`top`,right:r?n?`inline-start`:`inline-end`:`right`,bottom:`bottom`,left:r?n?`inline-end`:`inline-start`:`left`}[t]}function Vh(e,t,n){let{rects:r,placement:i}=e;return{side:Bh(t,zu(i),n),align:Bu(i)||`center`,anchor:{width:r.reference.width,height:r.reference.height},positioner:{width:r.floating.width,height:r.floating.height}}}function Hh(e){let{anchor:t,positionMethod:n=`absolute`,side:r=`bottom`,sideOffset:i=0,align:a=`center`,alignOffset:o=0,collisionBoundary:s,collisionPadding:c=5,sticky:l=!1,arrowPadding:u=5,disableAnchorTracking:d=!1,inline:f,keepMounted:p=!1,floatingRootContext:m,mounted:h,collisionAvoidance:g,shiftCrossAxis:_=!1,nodeId:v,adaptiveOrigin:y,lazyFlip:b=!1,externalTree:x}=e,[S,C]=H.useState(null);!h&&S!==null&&C(null);let w=g.side||`flip`,E=g.align||`flip`,D=g.fallbackAxisSide||`end`,O=typeof t==`function`?t:void 0,k=vu(O),A=O?k:t,j=pu(t),M=pu(h),N=Nh()===`rtl`,ee=S||{top:`top`,right:`right`,bottom:`bottom`,left:`left`,"inline-end":N?`left`:`right`,"inline-start":N?`right`:`left`}[r],te=a===`center`?ee:`${ee}-${a}`,P=c,F=+(r===`bottom`),ne=+(r===`top`),re=+(r===`right`),ie=+(r===`left`);typeof P==`number`?P={top:P+F,right:P+ie,bottom:P+ne,left:P+re}:P&&={top:(P.top||0)+F,right:(P.right||0)+ie,bottom:(P.bottom||0)+ne,left:(P.left||0)+re};let ae={boundary:s===`clipping-ancestors`?`clippingAncestors`:s,padding:P},I=H.useRef(null),L=pu(i),oe=pu(o),se=typeof i==`function`?0:i,ce=typeof o==`function`?0:o,le=[];f&&le.push(f),le.push(Vp(e=>{let t=Vh(e,r,N),n=typeof L.current==`function`?L.current(t):L.current,i=typeof oe.current==`function`?oe.current(t):oe.current;return{mainAxis:n,crossAxis:i,alignmentAxis:i}},[se,ce,N,r]));let ue=E===`none`&&w!==`shift`,de=!ue&&(l||_||w===`shift`),fe=w===`none`?null:Wp({...ae,padding:{top:P.top+1,right:P.right+1,bottom:P.bottom+1,left:P.left+1},mainAxis:!_&&w===`flip`,crossAxis:E===`flip`?`alignment`:!1,fallbackAxisSideDirection:D}),pe=ue?null:Hp(e=>{let t=Tu(e.elements.floating).documentElement;return{...ae,rootBoundary:_?{x:0,y:0,width:t.clientWidth,height:t.clientHeight}:void 0,mainAxis:E!==`none`,crossAxis:de,limiter:l||_?void 0:Up(e=>{if(!I.current)return{};let{width:t,height:n}=I.current.getBoundingClientRect(),r=Uu(zu(e.placement)),i=r===`y`?t:n,a=r===`y`?P.left+P.right:P.top+P.bottom;return{offset:i/2+a/2}})}},[ae,l,_,P,E]);w===`shift`||E===`shift`||a===`center`?le.push(pe,fe):le.push(fe,pe),le.push(Gp({...ae,apply({elements:{floating:e},availableWidth:t,availableHeight:n,rects:r}){if(!M.current)return;let i=e.style;i.setProperty(`--available-width`,`${t}px`),i.setProperty(`--available-height`,`${n}px`);let a=ol(e).devicePixelRatio||1,{x:o,y:s,width:c,height:l}=r.reference,u=(Math.round((o+c)*a)-Math.round(o*a))/a,d=(Math.round((s+l)*a)-Math.round(s*a))/a;i.setProperty(`--anchor-width`,`${u}px`),i.setProperty(`--anchor-height`,`${d}px`)}}),Fh(e=>({element:I.current||Tu(e.elements.floating).createElement(`div`),padding:u,offsetParent:`floating`}),[u]),{name:`transformOrigin`,fn(e){let{elements:t,middlewareData:n,placement:a,rects:o,y:s}=e,c=zu(a),l=Uu(c),u=I.current,d=n.arrow?.x||0,f=n.arrow?.y||0,p=u?.clientWidth||0,m=u?.clientHeight||0,h=d+p/2,g=f+m/2,_=Math.abs(n.shift?.y||0),v=o.reference.height/2,y=typeof i==`function`?i(Vh(e,r,N)):i,b=_>y,x={top:`${h}px calc(100% + ${y}px)`,bottom:`${h}px ${-y}px`,left:`calc(100% + ${y}px) ${g}px`,right:`${-y}px ${g}px`}[c],S=`${h}px ${o.reference.y+v-s}px`;return t.floating.style.setProperty(`--transform-origin`,de&&l===`y`&&b?S:x),{}}},Lh,y),W(()=>{!h&&m&&m.update({referenceElement:null,floatingElement:null,domReferenceElement:null,positionReference:null})},[h,m]);let me=H.useMemo(()=>({elementResize:!d&&typeof ResizeObserver<`u`,layoutShift:!d&&typeof IntersectionObserver<`u`}),[d]),{refs:he,elements:ge,x:_e,y:ve,middlewareData:ye,update:be,placement:xe,context:Se,isPositioned:Ce,floatingStyles:we}=Rm({rootContext:m,open:p?h:void 0,placement:te,middleware:le,strategy:n,whileElementsMounted:p?void 0:(...e)=>Dp(...e,me),nodeId:v,externalTree:x}),{sideX:Te,sideY:Ee}=ye.adaptiveOrigin||Rh,De=Ce?n:`fixed`,Oe=H.useMemo(()=>{let e=y?{position:De,[Te]:_e,[Ee]:ve}:{position:De,...we};return Ce||(e.opacity=0),e},[y,De,Te,_e,Ee,ve,we,Ce]),ke=H.useRef(null);W(()=>{if(!h)return;let e=j.current,t=typeof e==`function`?e():e,n=(Uh(t)?t.current:t)||null;n!==ke.current&&(he.setPositionReference(n),ke.current=n)},[h,he,A,j]),H.useEffect(()=>{if(!h)return;let e=j.current;typeof e!=`function`&&Uh(e)&&e.current!==ke.current&&(he.setPositionReference(e.current),ke.current=e.current)},[h,he,A,j]),H.useEffect(()=>{if(p&&h&&ge.reference&&ge.floating)return Dp(ge.reference,ge.floating,be,me)},[p,h,ge,be,me]);let Ae=zu(xe),je=Bh(r,Ae,N),Me=Bu(xe)||`center`,Ne=!!ye.hide?.referenceHidden;W(()=>{b&&h&&Ce&&C(Ae)},[b,h,Ce,Ae]);let Pe=H.useMemo(()=>({position:`absolute`,top:ye.arrow?.y,left:ye.arrow?.x}),[ye.arrow]),Fe=ye.arrow?.centerOffset!==0;return H.useMemo(()=>({positionerStyles:Oe,arrowStyles:Pe,arrowRef:I,arrowUncentered:Fe,side:je,align:Me,physicalSide:Ae,anchorHidden:Ne,refs:he,context:Se,isPositioned:Ce,update:be}),[Oe,Pe,I,Fe,je,Me,Ae,Ne,he,Se,Ce,be])}function Uh(e){return e!=null&&`current`in e}function Wh(e){return e===`starting`?ff:Gl}function Gh(e,t,{styles:n,transitionStatus:r,props:i,refs:a,hidden:o,inert:s=!1}){let c={...n};return s&&(c.pointerEvents=`none`),of(`div`,e,{state:t,ref:a,props:[{role:`presentation`,hidden:o,style:c},Wh(r),i],stateAttributesMapping:_h})}var Kh=H.forwardRef(function(e,t){let{render:n,className:r,anchor:i,positionMethod:a=`absolute`,side:o=`top`,align:s=`center`,sideOffset:c=0,alignOffset:l=0,collisionBoundary:u=`clipping-ancestors`,collisionPadding:d=5,arrowPadding:f=5,sticky:p=!1,disableAnchorTracking:m=!1,collisionAvoidance:h=mf,style:g,..._}=e,v=Mc(),y=Dh(),b=v.useState(`open`),x=v.useState(`mounted`),S=v.useState(`trackCursorAxis`),C=v.useState(`disableHoverablePopup`),w=v.useState(`floatingRootContext`),E=v.useState(`instantType`),D=v.useState(`transitionStatus`),O=Hh({anchor:i,positionMethod:a,floatingRootContext:w,mounted:x,side:o,sideOffset:c,align:s,alignOffset:l,collisionBoundary:u,collisionPadding:d,sticky:p,arrowPadding:f,disableAnchorTracking:m,keepMounted:y,collisionAvoidance:h,adaptiveOrigin:v.useState(`hasViewport`)?zh:void 0}),k=Gh(e,H.useMemo(()=>({open:b,side:O.side,align:O.align,anchorHidden:O.anchorHidden,instant:S===`none`?E:`tracking-cursor`}),[b,O.side,O.align,O.anchorHidden,S,E]),{styles:O.positionerStyles,transitionStatus:D,props:_,refs:[t,v.useStateSetter(`positionerElement`)],hidden:!x,inert:!b||S===`both`||C});return(0,U.jsx)(Ah.Provider,{value:O,children:k})}),qh={..._h,...dm},Jh=H.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,o=Mc(),{side:s,align:c}=jh(),l=o.useState(`open`),u=o.useState(`instantType`),d=o.useState(`transitionStatus`),f=o.useState(`popupProps`),p=o.useState(`floatingRootContext`),m=o.useState(`disabled`),h=o.useState(`closeDelay`);pm({open:l,ref:o.context.popupRef,onComplete(){l&&o.context.onOpenChangeComplete?.(!0)}}),Km(p,{enabled:!m,closeDelay:h});let g=o.useStateSetter(`popupElement`);return of(`div`,e,{state:{open:l,side:s,align:c,instant:u,transitionStatus:d},ref:[t,o.context.popupRef,g],props:[f,Wh(d),a],stateAttributesMapping:qh})}),Yh=H.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,o=Mc(),{arrowRef:s,side:c,align:l,arrowUncentered:u,arrowStyles:d}=jh();return of(`div`,e,{state:{open:o.useState(`open`),side:c,align:l,uncentered:u,instant:o.useState(`instantType`)},ref:[t,s],props:[{style:d,"aria-hidden":!0},a],stateAttributesMapping:_h})}),Xh=function(e){let{delay:t,closeDelay:n,timeout:r=400}=e,i=H.useMemo(()=>({delay:t,closeDelay:n}),[t,n]),a=H.useMemo(()=>({open:t,close:n}),[t,n]);return(0,U.jsx)(yh.Provider,{value:i,children:(0,U.jsx)(iu,{delay:a,timeoutMs:r,children:e.children})})};function Zh(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`)if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=Zh(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n);return r}function Qh(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=Zh(e))&&(r&&(r+=` `),r+=t);return r}var $h=(e,t)=>{let n=Array(e.length+t.length);for(let t=0;t<e.length;t++)n[t]=e[t];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},eg=(e,t)=>({classGroupId:e,validator:t}),tg=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),ng=`-`,rg=[],ig=`arbitrary..`,ag=e=>{let t=cg(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{if(e.startsWith(`[`)&&e.endsWith(`]`))return sg(e);let n=e.split(ng);return og(n,+(n[0]===``&&n.length>1),t)},getConflictingClassGroupIds:(e,t)=>{if(t){let t=r[e],i=n[e];return t?i?$h(i,t):t:i||rg}return n[e]||rg}}},og=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;let r=e[t],i=n.nextPart.get(r);if(i){let n=og(e,t+1,i);if(n)return n}let a=n.validators;if(a===null)return;let o=t===0?e.join(ng):e.slice(t).join(ng),s=a.length;for(let e=0;e<s;e++){let t=a[e];if(t.validator(o))return t.classGroupId}},sg=e=>e.slice(1,-1).indexOf(`:`)===-1?void 0:(()=>{let t=e.slice(1,-1),n=t.indexOf(`:`),r=t.slice(0,n);return r?ig+r:void 0})(),cg=e=>{let{theme:t,classGroups:n}=e;return lg(n,t)},lg=(e,t)=>{let n=tg();for(let r in e){let i=e[r];ug(i,n,r,t)}return n},ug=(e,t,n,r)=>{let i=e.length;for(let a=0;a<i;a++){let i=e[a];dg(i,t,n,r)}},dg=(e,t,n,r)=>{if(typeof e==`string`){fg(e,t,n);return}if(typeof e==`function`){pg(e,t,n,r);return}mg(e,t,n,r)},fg=(e,t,n)=>{let r=e===``?t:hg(t,e);r.classGroupId=n},pg=(e,t,n,r)=>{if(gg(e)){ug(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(eg(n,e))},mg=(e,t,n,r)=>{let i=Object.entries(e),a=i.length;for(let e=0;e<a;e++){let[a,o]=i[e];ug(o,hg(t,a),n,r)}},hg=(e,t)=>{let n=e,r=t.split(ng),i=r.length;for(let e=0;e<i;e++){let t=r[e],i=n.nextPart.get(t);i||(i=tg(),n.nextPart.set(t,i)),n=i}return n},gg=e=>`isThemeGetter`in e&&e.isThemeGetter===!0,_g=e=>{if(e<1)return{get:()=>void 0,set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null),i=(i,a)=>{n[i]=a,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(e){let t=n[e];if(t!==void 0)return t;if((t=r[e])!==void 0)return i(e,t),t},set(e,t){e in n?n[e]=t:i(e,t)}}},vg=`!`,yg=`:`,bg=[],xg=(e,t,n,r,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),Sg=e=>{let{prefix:t,experimentalParseClassName:n}=e,r=e=>{let t=[],n=0,r=0,i=0,a,o=e.length;for(let s=0;s<o;s++){let o=e[s];if(n===0&&r===0){if(o===yg){t.push(e.slice(i,s)),i=s+1;continue}if(o===`/`){a=s;continue}}o===`[`?n++:o===`]`?n--:o===`(`?r++:o===`)`&&r--}let s=t.length===0?e:e.slice(i),c=s,l=!1;s.endsWith(vg)?(c=s.slice(0,-1),l=!0):s.startsWith(vg)&&(c=s.slice(1),l=!0);let u=a&&a>i?a-i:void 0;return xg(t,l,c,u)};if(t){let e=t+yg,n=r;r=t=>t.startsWith(e)?n(t.slice(e.length)):xg(bg,!1,t,void 0,!0)}if(n){let e=r;r=t=>n({className:t,parseClassName:e})}return r},Cg=e=>{let t=new Map;return e.orderSensitiveModifiers.forEach((e,n)=>{t.set(e,1e6+n)}),e=>{let n=[],r=[];for(let i=0;i<e.length;i++){let a=e[i],o=a[0]===`[`,s=t.has(a);o||s?(r.length>0&&(r.sort(),n.push(...r),r=[]),n.push(a)):r.push(a)}return r.length>0&&(r.sort(),n.push(...r)),n}},wg=e=>({cache:_g(e.cacheSize),parseClassName:Sg(e),sortModifiers:Cg(e),postfixLookupClassGroupIds:Tg(e),...ag(e)}),Tg=e=>{let t=Object.create(null),n=e.postfixLookupClassGroups;if(n)for(let e=0;e<n.length;e++)t[n[e]]=!0;return t},Eg=/\s+/,Dg=(e,t)=>{let{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:a,postfixLookupClassGroupIds:o}=t,s=[],c=e.trim().split(Eg),l=``;for(let e=c.length-1;e>=0;--e){let t=c[e],{isExternal:u,modifiers:d,hasImportantModifier:f,baseClassName:p,maybePostfixModifierPosition:m}=n(t);if(u){l=t+(l.length>0?` `+l:l);continue}let h=!!m,g;if(h){g=r(p.substring(0,m));let e=g&&o[g]?r(p):void 0;e&&e!==g&&(g=e,h=!1)}else g=r(p);if(!g){if(!h){l=t+(l.length>0?` `+l:l);continue}if(g=r(p),!g){l=t+(l.length>0?` `+l:l);continue}h=!1}let _=d.length===0?``:d.length===1?d[0]:a(d).join(`:`),v=f?_+vg:_,y=v+g;if(s.indexOf(y)>-1)continue;s.push(y);let b=i(g,h);for(let e=0;e<b.length;++e){let t=b[e];s.push(v+t)}l=t+(l.length>0?` `+l:l)}return l},Og=(...e)=>{let t=0,n,r,i=``;for(;t<e.length;)(n=e[t++])&&(r=kg(n))&&(i&&(i+=` `),i+=r);return i},kg=e=>{if(typeof e==`string`)return e;let t,n=``;for(let r=0;r<e.length;r++)e[r]&&(t=kg(e[r]))&&(n&&(n+=` `),n+=t);return n},Ag=(e,...t)=>{let n,r,i,a,o=o=>(n=wg(t.reduce((e,t)=>t(e),e())),r=n.cache.get,i=n.cache.set,a=s,s(o)),s=e=>{let t=r(e);if(t)return t;let a=Dg(e,n);return i(e,a),a};return a=o,(...e)=>a(Og(...e))},jg=[],Mg=e=>{let t=t=>t[e]||jg;return t.isThemeGetter=!0,t},Ng=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Pg=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Fg=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,Ig=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Lg=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Rg=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,zg=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Bg=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Vg=e=>Fg.test(e),Z=e=>!!e&&!Number.isNaN(Number(e)),Hg=e=>!!e&&Number.isInteger(Number(e)),Ug=e=>e.endsWith(`%`)&&Z(e.slice(0,-1)),Wg=e=>Ig.test(e),Gg=()=>!0,Kg=e=>Lg.test(e)&&!Rg.test(e),qg=()=>!1,Jg=e=>zg.test(e),Yg=e=>Bg.test(e),Xg=e=>!Q(e)&&!$(e),Zg=e=>e.startsWith(`@container`)&&(e[10]===`/`&&e[11]!==void 0||e[11]===`s`&&e[16]!==void 0&&e.startsWith(`-size/`,10)||e[11]===`n`&&e[18]!==void 0&&e.startsWith(`-normal/`,10)),Qg=e=>p_(e,__,qg),Q=e=>Ng.test(e),$g=e=>p_(e,v_,Kg),e_=e=>p_(e,y_,Z),t_=e=>p_(e,x_,Gg),n_=e=>p_(e,b_,qg),r_=e=>p_(e,h_,qg),i_=e=>p_(e,g_,Yg),a_=e=>p_(e,S_,Jg),$=e=>Pg.test(e),o_=e=>m_(e,v_),s_=e=>m_(e,b_),c_=e=>m_(e,h_),l_=e=>m_(e,__),u_=e=>m_(e,g_),d_=e=>m_(e,S_,!0),f_=e=>m_(e,x_,!0),p_=(e,t,n)=>{let r=Ng.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},m_=(e,t,n=!1)=>{let r=Pg.exec(e);return r?r[1]?t(r[1]):n:!1},h_=e=>e===`position`||e===`percentage`,g_=e=>e===`image`||e===`url`,__=e=>e===`length`||e===`size`||e===`bg-size`,v_=e=>e===`length`,y_=e=>e===`number`,b_=e=>e===`family-name`,x_=e=>e===`number`||e===`weight`,S_=e=>e===`shadow`,C_=Ag(()=>{let e=Mg(`color`),t=Mg(`font`),n=Mg(`text`),r=Mg(`font-weight`),i=Mg(`tracking`),a=Mg(`leading`),o=Mg(`breakpoint`),s=Mg(`container`),c=Mg(`spacing`),l=Mg(`radius`),u=Mg(`shadow`),d=Mg(`inset-shadow`),f=Mg(`text-shadow`),p=Mg(`drop-shadow`),m=Mg(`blur`),h=Mg(`perspective`),g=Mg(`aspect`),_=Mg(`ease`),v=Mg(`animate`),y=()=>[`auto`,`avoid`,`all`,`avoid-page`,`page`,`left`,`right`,`column`],b=()=>[`center`,`top`,`bottom`,`left`,`right`,`top-left`,`left-top`,`top-right`,`right-top`,`bottom-right`,`right-bottom`,`bottom-left`,`left-bottom`],x=()=>[...b(),$,Q],S=()=>[`auto`,`hidden`,`clip`,`visible`,`scroll`],C=()=>[`auto`,`contain`,`none`],w=()=>[$,Q,c],E=()=>[Vg,`full`,`auto`,...w()],D=()=>[Hg,`none`,`subgrid`,$,Q],O=()=>[`auto`,{span:[`full`,Hg,$,Q]},Hg,$,Q],k=()=>[Hg,`auto`,$,Q],A=()=>[`auto`,`min`,`max`,`fr`,$,Q],j=()=>[`start`,`end`,`center`,`between`,`around`,`evenly`,`stretch`,`baseline`,`center-safe`,`end-safe`],M=()=>[`start`,`end`,`center`,`stretch`,`center-safe`,`end-safe`],N=()=>[`auto`,...w()],ee=()=>[Vg,`auto`,`full`,`dvw`,`dvh`,`lvw`,`lvh`,`svw`,`svh`,`min`,`max`,`fit`,...w()],te=()=>[Vg,`screen`,`full`,`dvw`,`lvw`,`svw`,`min`,`max`,`fit`,...w()],P=()=>[Vg,`screen`,`full`,`lh`,`dvh`,`lvh`,`svh`,`min`,`max`,`fit`,...w()],F=()=>[e,$,Q],ne=()=>[...b(),c_,r_,{position:[$,Q]}],re=()=>[`no-repeat`,{repeat:[``,`x`,`y`,`space`,`round`]}],ie=()=>[`auto`,`cover`,`contain`,l_,Qg,{size:[$,Q]}],ae=()=>[Ug,o_,$g],I=()=>[``,`none`,`full`,l,$,Q],L=()=>[``,Z,o_,$g],oe=()=>[`solid`,`dashed`,`dotted`,`double`],se=()=>[`normal`,`multiply`,`screen`,`overlay`,`darken`,`lighten`,`color-dodge`,`color-burn`,`hard-light`,`soft-light`,`difference`,`exclusion`,`hue`,`saturation`,`color`,`luminosity`],ce=()=>[Z,Ug,c_,r_],le=()=>[``,`none`,m,$,Q],ue=()=>[`none`,Z,$,Q],de=()=>[`none`,Z,$,Q],fe=()=>[Z,$,Q],pe=()=>[Vg,`full`,...w()];return{cacheSize:500,theme:{animate:[`spin`,`ping`,`pulse`,`bounce`],aspect:[`video`],blur:[Wg],breakpoint:[Wg],color:[Gg],container:[Wg],"drop-shadow":[Wg],ease:[`in`,`out`,`in-out`],font:[Xg],"font-weight":[`thin`,`extralight`,`light`,`normal`,`medium`,`semibold`,`bold`,`extrabold`,`black`],"inset-shadow":[Wg],leading:[`none`,`tight`,`snug`,`normal`,`relaxed`,`loose`],perspective:[`dramatic`,`near`,`normal`,`midrange`,`distant`,`none`],radius:[Wg],shadow:[Wg],spacing:[`px`,Z],text:[Wg],"text-shadow":[Wg],tracking:[`tighter`,`tight`,`normal`,`wide`,`wider`,`widest`]},classGroups:{aspect:[{aspect:[`auto`,`square`,Vg,Q,$,g]}],container:[`container`],"container-type":[{"@container":[``,`normal`,`size`,$,Q]}],"container-named":[Zg],columns:[{columns:[Z,Q,$,s]}],"break-after":[{"break-after":y()}],"break-before":[{"break-before":y()}],"break-inside":[{"break-inside":[`auto`,`avoid`,`avoid-page`,`avoid-column`]}],"box-decoration":[{"box-decoration":[`slice`,`clone`]}],box:[{box:[`border`,`content`]}],display:[`block`,`inline-block`,`inline`,`flex`,`inline-flex`,`table`,`inline-table`,`table-caption`,`table-cell`,`table-column`,`table-column-group`,`table-footer-group`,`table-header-group`,`table-row-group`,`table-row`,`flow-root`,`grid`,`inline-grid`,`contents`,`list-item`,`hidden`],sr:[`sr-only`,`not-sr-only`],float:[{float:[`right`,`left`,`none`,`start`,`end`]}],clear:[{clear:[`left`,`right`,`both`,`none`,`start`,`end`]}],isolation:[`isolate`,`isolation-auto`],"object-fit":[{object:[`contain`,`cover`,`fill`,`none`,`scale-down`]}],"object-position":[{object:x()}],overflow:[{overflow:S()}],"overflow-x":[{"overflow-x":S()}],"overflow-y":[{"overflow-y":S()}],overscroll:[{overscroll:C()}],"overscroll-x":[{"overscroll-x":C()}],"overscroll-y":[{"overscroll-y":C()}],position:[`static`,`fixed`,`absolute`,`relative`,`sticky`],inset:[{inset:E()}],"inset-x":[{"inset-x":E()}],"inset-y":[{"inset-y":E()}],start:[{"inset-s":E(),start:E()}],end:[{"inset-e":E(),end:E()}],"inset-bs":[{"inset-bs":E()}],"inset-be":[{"inset-be":E()}],top:[{top:E()}],right:[{right:E()}],bottom:[{bottom:E()}],left:[{left:E()}],visibility:[`visible`,`invisible`,`collapse`],z:[{z:[Hg,`auto`,$,Q]}],basis:[{basis:[Vg,`full`,`auto`,s,...w()]}],"flex-direction":[{flex:[`row`,`row-reverse`,`col`,`col-reverse`]}],"flex-wrap":[{flex:[`nowrap`,`wrap`,`wrap-reverse`]}],flex:[{flex:[Z,Vg,`auto`,`initial`,`none`,Q]}],grow:[{grow:[``,Z,$,Q]}],shrink:[{shrink:[``,Z,$,Q]}],order:[{order:[Hg,`first`,`last`,`none`,$,Q]}],"grid-cols":[{"grid-cols":D()}],"col-start-end":[{col:O()}],"col-start":[{"col-start":k()}],"col-end":[{"col-end":k()}],"grid-rows":[{"grid-rows":D()}],"row-start-end":[{row:O()}],"row-start":[{"row-start":k()}],"row-end":[{"row-end":k()}],"grid-flow":[{"grid-flow":[`row`,`col`,`dense`,`row-dense`,`col-dense`]}],"auto-cols":[{"auto-cols":A()}],"auto-rows":[{"auto-rows":A()}],gap:[{gap:w()}],"gap-x":[{"gap-x":w()}],"gap-y":[{"gap-y":w()}],"justify-content":[{justify:[...j(),`normal`]}],"justify-items":[{"justify-items":[...M(),`normal`]}],"justify-self":[{"justify-self":[`auto`,...M()]}],"align-content":[{content:[`normal`,...j()]}],"align-items":[{items:[...M(),{baseline:[``,`last`]}]}],"align-self":[{self:[`auto`,...M(),{baseline:[``,`last`]}]}],"place-content":[{"place-content":j()}],"place-items":[{"place-items":[...M(),`baseline`]}],"place-self":[{"place-self":[`auto`,...M()]}],p:[{p:w()}],px:[{px:w()}],py:[{py:w()}],ps:[{ps:w()}],pe:[{pe:w()}],pbs:[{pbs:w()}],pbe:[{pbe:w()}],pt:[{pt:w()}],pr:[{pr:w()}],pb:[{pb:w()}],pl:[{pl:w()}],m:[{m:N()}],mx:[{mx:N()}],my:[{my:N()}],ms:[{ms:N()}],me:[{me:N()}],mbs:[{mbs:N()}],mbe:[{mbe:N()}],mt:[{mt:N()}],mr:[{mr:N()}],mb:[{mb:N()}],ml:[{ml:N()}],"space-x":[{"space-x":w()}],"space-x-reverse":[`space-x-reverse`],"space-y":[{"space-y":w()}],"space-y-reverse":[`space-y-reverse`],size:[{size:ee()}],"inline-size":[{inline:[`auto`,...te()]}],"min-inline-size":[{"min-inline":[`auto`,...te()]}],"max-inline-size":[{"max-inline":[`none`,...te()]}],"block-size":[{block:[`auto`,...P()]}],"min-block-size":[{"min-block":[`auto`,...P()]}],"max-block-size":[{"max-block":[`none`,...P()]}],w:[{w:[s,`screen`,...ee()]}],"min-w":[{"min-w":[s,`screen`,`none`,...ee()]}],"max-w":[{"max-w":[s,`screen`,`none`,`prose`,{screen:[o]},...ee()]}],h:[{h:[`screen`,`lh`,...ee()]}],"min-h":[{"min-h":[`screen`,`lh`,`none`,...ee()]}],"max-h":[{"max-h":[`screen`,`lh`,...ee()]}],"font-size":[{text:[`base`,n,o_,$g]}],"font-smoothing":[`antialiased`,`subpixel-antialiased`],"font-style":[`italic`,`not-italic`],"font-weight":[{font:[r,f_,t_]}],"font-stretch":[{"font-stretch":[`ultra-condensed`,`extra-condensed`,`condensed`,`semi-condensed`,`normal`,`semi-expanded`,`expanded`,`extra-expanded`,`ultra-expanded`,Ug,Q]}],"font-family":[{font:[s_,n_,t]}],"font-features":[{"font-features":[Q]}],"fvn-normal":[`normal-nums`],"fvn-ordinal":[`ordinal`],"fvn-slashed-zero":[`slashed-zero`],"fvn-figure":[`lining-nums`,`oldstyle-nums`],"fvn-spacing":[`proportional-nums`,`tabular-nums`],"fvn-fraction":[`diagonal-fractions`,`stacked-fractions`],tracking:[{tracking:[i,$,Q]}],"line-clamp":[{"line-clamp":[Z,`none`,$,e_]}],leading:[{leading:[a,...w()]}],"list-image":[{"list-image":[`none`,$,Q]}],"list-style-position":[{list:[`inside`,`outside`]}],"list-style-type":[{list:[`disc`,`decimal`,`none`,$,Q]}],"text-alignment":[{text:[`left`,`center`,`right`,`justify`,`start`,`end`]}],"placeholder-color":[{placeholder:F()}],"text-color":[{text:F()}],"text-decoration":[`underline`,`overline`,`line-through`,`no-underline`],"text-decoration-style":[{decoration:[...oe(),`wavy`]}],"text-decoration-thickness":[{decoration:[Z,`from-font`,`auto`,$,$g]}],"text-decoration-color":[{decoration:F()}],"underline-offset":[{"underline-offset":[Z,`auto`,$,Q]}],"text-transform":[`uppercase`,`lowercase`,`capitalize`,`normal-case`],"text-overflow":[`truncate`,`text-ellipsis`,`text-clip`],"text-wrap":[{text:[`wrap`,`nowrap`,`balance`,`pretty`]}],indent:[{indent:w()}],"tab-size":[{tab:[Hg,$,Q]}],"vertical-align":[{align:[`baseline`,`top`,`middle`,`bottom`,`text-top`,`text-bottom`,`sub`,`super`,$,Q]}],whitespace:[{whitespace:[`normal`,`nowrap`,`pre`,`pre-line`,`pre-wrap`,`break-spaces`]}],break:[{break:[`normal`,`words`,`all`,`keep`]}],wrap:[{wrap:[`break-word`,`anywhere`,`normal`]}],hyphens:[{hyphens:[`none`,`manual`,`auto`]}],content:[{content:[`none`,$,Q]}],"bg-attachment":[{bg:[`fixed`,`local`,`scroll`]}],"bg-clip":[{"bg-clip":[`border`,`padding`,`content`,`text`]}],"bg-origin":[{"bg-origin":[`border`,`padding`,`content`]}],"bg-position":[{bg:ne()}],"bg-repeat":[{bg:re()}],"bg-size":[{bg:ie()}],"bg-image":[{bg:[`none`,{linear:[{to:[`t`,`tr`,`r`,`br`,`b`,`bl`,`l`,`tl`]},Hg,$,Q],radial:[``,$,Q],conic:[Hg,$,Q]},u_,i_]}],"bg-color":[{bg:F()}],"gradient-from-pos":[{from:ae()}],"gradient-via-pos":[{via:ae()}],"gradient-to-pos":[{to:ae()}],"gradient-from":[{from:F()}],"gradient-via":[{via:F()}],"gradient-to":[{to:F()}],rounded:[{rounded:I()}],"rounded-s":[{"rounded-s":I()}],"rounded-e":[{"rounded-e":I()}],"rounded-t":[{"rounded-t":I()}],"rounded-r":[{"rounded-r":I()}],"rounded-b":[{"rounded-b":I()}],"rounded-l":[{"rounded-l":I()}],"rounded-ss":[{"rounded-ss":I()}],"rounded-se":[{"rounded-se":I()}],"rounded-ee":[{"rounded-ee":I()}],"rounded-es":[{"rounded-es":I()}],"rounded-tl":[{"rounded-tl":I()}],"rounded-tr":[{"rounded-tr":I()}],"rounded-br":[{"rounded-br":I()}],"rounded-bl":[{"rounded-bl":I()}],"border-w":[{border:L()}],"border-w-x":[{"border-x":L()}],"border-w-y":[{"border-y":L()}],"border-w-s":[{"border-s":L()}],"border-w-e":[{"border-e":L()}],"border-w-bs":[{"border-bs":L()}],"border-w-be":[{"border-be":L()}],"border-w-t":[{"border-t":L()}],"border-w-r":[{"border-r":L()}],"border-w-b":[{"border-b":L()}],"border-w-l":[{"border-l":L()}],"divide-x":[{"divide-x":L()}],"divide-x-reverse":[`divide-x-reverse`],"divide-y":[{"divide-y":L()}],"divide-y-reverse":[`divide-y-reverse`],"border-style":[{border:[...oe(),`hidden`,`none`]}],"divide-style":[{divide:[...oe(),`hidden`,`none`]}],"border-color":[{border:F()}],"border-color-x":[{"border-x":F()}],"border-color-y":[{"border-y":F()}],"border-color-s":[{"border-s":F()}],"border-color-e":[{"border-e":F()}],"border-color-bs":[{"border-bs":F()}],"border-color-be":[{"border-be":F()}],"border-color-t":[{"border-t":F()}],"border-color-r":[{"border-r":F()}],"border-color-b":[{"border-b":F()}],"border-color-l":[{"border-l":F()}],"divide-color":[{divide:F()}],"outline-style":[{outline:[...oe(),`none`,`hidden`]}],"outline-offset":[{"outline-offset":[Z,$,Q]}],"outline-w":[{outline:[``,Z,o_,$g]}],"outline-color":[{outline:F()}],shadow:[{shadow:[``,`none`,u,d_,a_]}],"shadow-color":[{shadow:F()}],"inset-shadow":[{"inset-shadow":[`none`,d,d_,a_]}],"inset-shadow-color":[{"inset-shadow":F()}],"ring-w":[{ring:L()}],"ring-w-inset":[`ring-inset`],"ring-color":[{ring:F()}],"ring-offset-w":[{"ring-offset":[Z,$g]}],"ring-offset-color":[{"ring-offset":F()}],"inset-ring-w":[{"inset-ring":L()}],"inset-ring-color":[{"inset-ring":F()}],"text-shadow":[{"text-shadow":[`none`,f,d_,a_]}],"text-shadow-color":[{"text-shadow":F()}],opacity:[{opacity:[Z,$,Q]}],"mix-blend":[{"mix-blend":[...se(),`plus-darker`,`plus-lighter`]}],"bg-blend":[{"bg-blend":se()}],"mask-clip":[{"mask-clip":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]},`mask-no-clip`],"mask-composite":[{mask:[`add`,`subtract`,`intersect`,`exclude`]}],"mask-image-linear-pos":[{"mask-linear":[Z]}],"mask-image-linear-from-pos":[{"mask-linear-from":ce()}],"mask-image-linear-to-pos":[{"mask-linear-to":ce()}],"mask-image-linear-from-color":[{"mask-linear-from":F()}],"mask-image-linear-to-color":[{"mask-linear-to":F()}],"mask-image-t-from-pos":[{"mask-t-from":ce()}],"mask-image-t-to-pos":[{"mask-t-to":ce()}],"mask-image-t-from-color":[{"mask-t-from":F()}],"mask-image-t-to-color":[{"mask-t-to":F()}],"mask-image-r-from-pos":[{"mask-r-from":ce()}],"mask-image-r-to-pos":[{"mask-r-to":ce()}],"mask-image-r-from-color":[{"mask-r-from":F()}],"mask-image-r-to-color":[{"mask-r-to":F()}],"mask-image-b-from-pos":[{"mask-b-from":ce()}],"mask-image-b-to-pos":[{"mask-b-to":ce()}],"mask-image-b-from-color":[{"mask-b-from":F()}],"mask-image-b-to-color":[{"mask-b-to":F()}],"mask-image-l-from-pos":[{"mask-l-from":ce()}],"mask-image-l-to-pos":[{"mask-l-to":ce()}],"mask-image-l-from-color":[{"mask-l-from":F()}],"mask-image-l-to-color":[{"mask-l-to":F()}],"mask-image-x-from-pos":[{"mask-x-from":ce()}],"mask-image-x-to-pos":[{"mask-x-to":ce()}],"mask-image-x-from-color":[{"mask-x-from":F()}],"mask-image-x-to-color":[{"mask-x-to":F()}],"mask-image-y-from-pos":[{"mask-y-from":ce()}],"mask-image-y-to-pos":[{"mask-y-to":ce()}],"mask-image-y-from-color":[{"mask-y-from":F()}],"mask-image-y-to-color":[{"mask-y-to":F()}],"mask-image-radial":[{"mask-radial":[$,Q]}],"mask-image-radial-from-pos":[{"mask-radial-from":ce()}],"mask-image-radial-to-pos":[{"mask-radial-to":ce()}],"mask-image-radial-from-color":[{"mask-radial-from":F()}],"mask-image-radial-to-color":[{"mask-radial-to":F()}],"mask-image-radial-shape":[{"mask-radial":[`circle`,`ellipse`]}],"mask-image-radial-size":[{"mask-radial":[{closest:[`side`,`corner`],farthest:[`side`,`corner`]}]}],"mask-image-radial-pos":[{"mask-radial-at":b()}],"mask-image-conic-pos":[{"mask-conic":[Z]}],"mask-image-conic-from-pos":[{"mask-conic-from":ce()}],"mask-image-conic-to-pos":[{"mask-conic-to":ce()}],"mask-image-conic-from-color":[{"mask-conic-from":F()}],"mask-image-conic-to-color":[{"mask-conic-to":F()}],"mask-mode":[{mask:[`alpha`,`luminance`,`match`]}],"mask-origin":[{"mask-origin":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]}],"mask-position":[{mask:ne()}],"mask-repeat":[{mask:re()}],"mask-size":[{mask:ie()}],"mask-type":[{"mask-type":[`alpha`,`luminance`]}],"mask-image":[{mask:[`none`,$,Q]}],filter:[{filter:[``,`none`,$,Q]}],blur:[{blur:le()}],brightness:[{brightness:[Z,$,Q]}],contrast:[{contrast:[Z,$,Q]}],"drop-shadow":[{"drop-shadow":[``,`none`,p,d_,a_]}],"drop-shadow-color":[{"drop-shadow":F()}],grayscale:[{grayscale:[``,Z,$,Q]}],"hue-rotate":[{"hue-rotate":[Z,$,Q]}],invert:[{invert:[``,Z,$,Q]}],saturate:[{saturate:[Z,$,Q]}],sepia:[{sepia:[``,Z,$,Q]}],"backdrop-filter":[{"backdrop-filter":[``,`none`,$,Q]}],"backdrop-blur":[{"backdrop-blur":le()}],"backdrop-brightness":[{"backdrop-brightness":[Z,$,Q]}],"backdrop-contrast":[{"backdrop-contrast":[Z,$,Q]}],"backdrop-grayscale":[{"backdrop-grayscale":[``,Z,$,Q]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Z,$,Q]}],"backdrop-invert":[{"backdrop-invert":[``,Z,$,Q]}],"backdrop-opacity":[{"backdrop-opacity":[Z,$,Q]}],"backdrop-saturate":[{"backdrop-saturate":[Z,$,Q]}],"backdrop-sepia":[{"backdrop-sepia":[``,Z,$,Q]}],"border-collapse":[{border:[`collapse`,`separate`]}],"border-spacing":[{"border-spacing":w()}],"border-spacing-x":[{"border-spacing-x":w()}],"border-spacing-y":[{"border-spacing-y":w()}],"table-layout":[{table:[`auto`,`fixed`]}],caption:[{caption:[`top`,`bottom`]}],transition:[{transition:[``,`all`,`colors`,`opacity`,`shadow`,`transform`,`none`,$,Q]}],"transition-behavior":[{transition:[`normal`,`discrete`]}],duration:[{duration:[Z,`initial`,$,Q]}],ease:[{ease:[`linear`,`initial`,_,$,Q]}],delay:[{delay:[Z,$,Q]}],animate:[{animate:[`none`,v,$,Q]}],backface:[{backface:[`hidden`,`visible`]}],perspective:[{perspective:[h,$,Q]}],"perspective-origin":[{"perspective-origin":x()}],rotate:[{rotate:ue()}],"rotate-x":[{"rotate-x":ue()}],"rotate-y":[{"rotate-y":ue()}],"rotate-z":[{"rotate-z":ue()}],scale:[{scale:de()}],"scale-x":[{"scale-x":de()}],"scale-y":[{"scale-y":de()}],"scale-z":[{"scale-z":de()}],"scale-3d":[`scale-3d`],skew:[{skew:fe()}],"skew-x":[{"skew-x":fe()}],"skew-y":[{"skew-y":fe()}],transform:[{transform:[$,Q,``,`none`,`gpu`,`cpu`]}],"transform-origin":[{origin:x()}],"transform-style":[{transform:[`3d`,`flat`]}],translate:[{translate:pe()}],"translate-x":[{"translate-x":pe()}],"translate-y":[{"translate-y":pe()}],"translate-z":[{"translate-z":pe()}],"translate-none":[`translate-none`],zoom:[{zoom:[Hg,$,Q]}],accent:[{accent:F()}],appearance:[{appearance:[`none`,`auto`]}],"caret-color":[{caret:F()}],"color-scheme":[{scheme:[`normal`,`dark`,`light`,`light-dark`,`only-dark`,`only-light`]}],cursor:[{cursor:[`auto`,`default`,`pointer`,`wait`,`text`,`move`,`help`,`not-allowed`,`none`,`context-menu`,`progress`,`cell`,`crosshair`,`vertical-text`,`alias`,`copy`,`no-drop`,`grab`,`grabbing`,`all-scroll`,`col-resize`,`row-resize`,`n-resize`,`e-resize`,`s-resize`,`w-resize`,`ne-resize`,`nw-resize`,`se-resize`,`sw-resize`,`ew-resize`,`ns-resize`,`nesw-resize`,`nwse-resize`,`zoom-in`,`zoom-out`,$,Q]}],"field-sizing":[{"field-sizing":[`fixed`,`content`]}],"pointer-events":[{"pointer-events":[`auto`,`none`]}],resize:[{resize:[`none`,``,`y`,`x`]}],"scroll-behavior":[{scroll:[`auto`,`smooth`]}],"scrollbar-thumb-color":[{"scrollbar-thumb":F()}],"scrollbar-track-color":[{"scrollbar-track":F()}],"scrollbar-gutter":[{"scrollbar-gutter":[`auto`,`stable`,`both`]}],"scrollbar-w":[{scrollbar:[`auto`,`thin`,`none`]}],"scroll-m":[{"scroll-m":w()}],"scroll-mx":[{"scroll-mx":w()}],"scroll-my":[{"scroll-my":w()}],"scroll-ms":[{"scroll-ms":w()}],"scroll-me":[{"scroll-me":w()}],"scroll-mbs":[{"scroll-mbs":w()}],"scroll-mbe":[{"scroll-mbe":w()}],"scroll-mt":[{"scroll-mt":w()}],"scroll-mr":[{"scroll-mr":w()}],"scroll-mb":[{"scroll-mb":w()}],"scroll-ml":[{"scroll-ml":w()}],"scroll-p":[{"scroll-p":w()}],"scroll-px":[{"scroll-px":w()}],"scroll-py":[{"scroll-py":w()}],"scroll-ps":[{"scroll-ps":w()}],"scroll-pe":[{"scroll-pe":w()}],"scroll-pbs":[{"scroll-pbs":w()}],"scroll-pbe":[{"scroll-pbe":w()}],"scroll-pt":[{"scroll-pt":w()}],"scroll-pr":[{"scroll-pr":w()}],"scroll-pb":[{"scroll-pb":w()}],"scroll-pl":[{"scroll-pl":w()}],"snap-align":[{snap:[`start`,`end`,`center`,`align-none`]}],"snap-stop":[{snap:[`normal`,`always`]}],"snap-type":[{snap:[`none`,`x`,`y`,`both`]}],"snap-strictness":[{snap:[`mandatory`,`proximity`]}],touch:[{touch:[`auto`,`none`,`manipulation`]}],"touch-x":[{"touch-pan":[`x`,`left`,`right`]}],"touch-y":[{"touch-pan":[`y`,`up`,`down`]}],"touch-pz":[`touch-pinch-zoom`],select:[{select:[`none`,`text`,`all`,`auto`]}],"will-change":[{"will-change":[`auto`,`scroll`,`contents`,`transform`,$,Q]}],fill:[{fill:[`none`,...F()]}],"stroke-w":[{stroke:[Z,o_,$g,e_]}],stroke:[{stroke:[`none`,...F()]}],"forced-color-adjust":[{"forced-color-adjust":[`auto`,`none`]}]},conflictingClassGroups:{"container-named":[`container-type`],overflow:[`overflow-x`,`overflow-y`],overscroll:[`overscroll-x`,`overscroll-y`],inset:[`inset-x`,`inset-y`,`inset-bs`,`inset-be`,`start`,`end`,`top`,`right`,`bottom`,`left`],"inset-x":[`right`,`left`],"inset-y":[`top`,`bottom`],flex:[`basis`,`grow`,`shrink`],gap:[`gap-x`,`gap-y`],p:[`px`,`py`,`ps`,`pe`,`pbs`,`pbe`,`pt`,`pr`,`pb`,`pl`],px:[`pr`,`pl`],py:[`pt`,`pb`],m:[`mx`,`my`,`ms`,`me`,`mbs`,`mbe`,`mt`,`mr`,`mb`,`ml`],mx:[`mr`,`ml`],my:[`mt`,`mb`],size:[`w`,`h`],"font-size":[`leading`],"fvn-normal":[`fvn-ordinal`,`fvn-slashed-zero`,`fvn-figure`,`fvn-spacing`,`fvn-fraction`],"fvn-ordinal":[`fvn-normal`],"fvn-slashed-zero":[`fvn-normal`],"fvn-figure":[`fvn-normal`],"fvn-spacing":[`fvn-normal`],"fvn-fraction":[`fvn-normal`],"line-clamp":[`display`,`overflow`],rounded:[`rounded-s`,`rounded-e`,`rounded-t`,`rounded-r`,`rounded-b`,`rounded-l`,`rounded-ss`,`rounded-se`,`rounded-ee`,`rounded-es`,`rounded-tl`,`rounded-tr`,`rounded-br`,`rounded-bl`],"rounded-s":[`rounded-ss`,`rounded-es`],"rounded-e":[`rounded-se`,`rounded-ee`],"rounded-t":[`rounded-tl`,`rounded-tr`],"rounded-r":[`rounded-tr`,`rounded-br`],"rounded-b":[`rounded-br`,`rounded-bl`],"rounded-l":[`rounded-tl`,`rounded-bl`],"border-spacing":[`border-spacing-x`,`border-spacing-y`],"border-w":[`border-w-x`,`border-w-y`,`border-w-s`,`border-w-e`,`border-w-bs`,`border-w-be`,`border-w-t`,`border-w-r`,`border-w-b`,`border-w-l`],"border-w-x":[`border-w-r`,`border-w-l`],"border-w-y":[`border-w-t`,`border-w-b`],"border-color":[`border-color-x`,`border-color-y`,`border-color-s`,`border-color-e`,`border-color-bs`,`border-color-be`,`border-color-t`,`border-color-r`,`border-color-b`,`border-color-l`],"border-color-x":[`border-color-r`,`border-color-l`],"border-color-y":[`border-color-t`,`border-color-b`],translate:[`translate-x`,`translate-y`,`translate-none`],"translate-none":[`translate`,`translate-x`,`translate-y`,`translate-z`],"scroll-m":[`scroll-mx`,`scroll-my`,`scroll-ms`,`scroll-me`,`scroll-mbs`,`scroll-mbe`,`scroll-mt`,`scroll-mr`,`scroll-mb`,`scroll-ml`],"scroll-mx":[`scroll-mr`,`scroll-ml`],"scroll-my":[`scroll-mt`,`scroll-mb`],"scroll-p":[`scroll-px`,`scroll-py`,`scroll-ps`,`scroll-pe`,`scroll-pbs`,`scroll-pbe`,`scroll-pt`,`scroll-pr`,`scroll-pb`,`scroll-pl`],"scroll-px":[`scroll-pr`,`scroll-pl`],"scroll-py":[`scroll-pt`,`scroll-pb`],touch:[`touch-x`,`touch-y`,`touch-pz`],"touch-x":[`touch`],"touch-y":[`touch`],"touch-pz":[`touch`]},conflictingClassGroupModifiers:{"font-size":[`leading`]},postfixLookupClassGroups:[`container-type`],orderSensitiveModifiers:[`*`,`**`,`after`,`backdrop`,`before`,`details-content`,`file`,`first-letter`,`first-line`,`marker`,`placeholder`,`selection`]}});function w_(...e){return C_(Qh(e))}function T_({delay:e=0,...t}){return(0,U.jsx)(Xh,{"data-slot":`tooltip-provider`,delay:e,...t})}function E_({...e}){return(0,U.jsx)(oh,{"data-slot":`tooltip`,...e})}function D_({...e}){return(0,U.jsx)(Th,{"data-slot":`tooltip-trigger`,...e})}function O_({className:e,side:t=`top`,sideOffset:n=4,align:r=`center`,alignOffset:i=0,children:a,...o}){return(0,U.jsx)(kh,{children:(0,U.jsx)(Kh,{align:r,alignOffset:i,side:t,sideOffset:n,className:`isolate z-50`,children:(0,U.jsxs)(Jh,{"data-slot":`tooltip-content`,className:w_(`z-50 inline-flex w-fit max-w-xs origin-(--transform-origin) items-center gap-1.5 rounded-xl bg-foreground px-3 py-1.5 text-xs text-background has-data-[slot=kbd]:pr-1.5 data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-left-2 data-[side=inline-start]:slide-in-from-right-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 **:data-[slot=kbd]:relative **:data-[slot=kbd]:isolate **:data-[slot=kbd]:z-50 **:data-[slot=kbd]:rounded-lg data-[state=delayed-open]:animate-in data-[state=delayed-open]:fade-in-0 data-[state=delayed-open]:zoom-in-95 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95`,e),...o,children:[a,(0,U.jsx)(Yh,{className:`z-50 size-2.5 translate-y-[calc(-50%-2px)] rotate-45 rounded-[2px] bg-foreground fill-foreground data-[side=bottom]:top-1 data-[side=inline-end]:top-1/2! data-[side=inline-end]:-left-1 data-[side=inline-end]:translate-x-[1.5px] data-[side=inline-end]:-translate-y-1/2 data-[side=inline-start]:top-1/2! data-[side=inline-start]:-right-1 data-[side=inline-start]:translate-x-[-1.5px] data-[side=inline-start]:-translate-y-1/2 data-[side=left]:top-1/2! data-[side=left]:-right-1 data-[side=left]:translate-x-[-1.5px] data-[side=left]:-translate-y-1/2 data-[side=right]:top-1/2! data-[side=right]:-left-1 data-[side=right]:translate-x-[1.5px] data-[side=right]:-translate-y-1/2 data-[side=top]:-bottom-2.5`})]})})})}var k_=`https://lanework.dev`,A_=`Visualize your AI coding agent's review checklists as a Kanban board.`,j_=`${k_}/og.png`;tc().handler(Oo(`398380cad01774b31b3410fb75a104c88e423eadf39c2022b2b46f10804116f0`));var M_=xs({beforeLoad:async()=>{},head:()=>({meta:[{charSet:`utf-8`},{name:`viewport`,content:`width=device-width, initial-scale=1`},{title:`Lanework`},{name:`description`,content:A_},{name:`theme-color`,content:`#059669`},{property:`og:type`,content:`website`},{property:`og:url`,content:k_},{property:`og:title`,content:`Lanework`},{property:`og:description`,content:A_},{property:`og:image`,content:j_},{property:`og:image:width`,content:`1200`},{property:`og:image:height`,content:`630`},{property:`og:image:alt`,content:`Lanework — every agent review, in its lane.`},{property:`og:site_name`,content:`Lanework`},{name:`twitter:card`,content:`summary_large_image`},{name:`twitter:title`,content:`Lanework`},{name:`twitter:description`,content:A_},{name:`twitter:image`,content:j_}],links:[{rel:`stylesheet`,href:yc},{rel:`icon`,href:`/favicon.ico`,sizes:`any`},{rel:`icon`,type:`image/png`,sizes:`32x32`,href:`/favicon-32x32.png`},{rel:`icon`,type:`image/png`,sizes:`16x16`,href:`/favicon-16x16.png`},{rel:`apple-touch-icon`,sizes:`180x180`,href:`/apple-touch-icon.png`},{rel:`manifest`,href:`/site.webmanifest`}]}),shellComponent:N_,component:()=>(0,U.jsx)(Fs,{})});function N_({children:e}){return(0,U.jsxs)(`html`,{lang:`en`,children:[(0,U.jsx)(`head`,{children:(0,U.jsx)(Js,{})}),(0,U.jsxs)(`body`,{className:`min-h-screen bg-background text-foreground antialiased`,children:[(0,U.jsx)(vc,{reducedMotion:`user`,children:(0,U.jsx)(T_,{children:e})}),(0,U.jsx)(Ys,{})]})]})}var P_=tc({method:`GET`}).handler(Oo(`a102db744a359aef9a0a6335c0f6cce730279bb2e26fa5e778639c5803f3ebce`)),F_=tc({method:`GET`}).handler(Oo(`ef794f9db99392d3fdb07f34656fa69dfdbf02de31f4f127a19865046b64be27`)),I_=tc({method:`GET`}).handler(Oo(`163dbda880cb3a3b81e5442b90d81c7f97cd8e53e4bbd445dc2e8b58facee955`));tc({method:`GET`}).handler(Oo(`146357c14cdd179fa19927fbc6cc2d08d73b55952f15cbb027f78ee1f8005ebc`));var L_=tc({method:`GET`}).handler(Oo(`86feddf0300a9465155a4c337e84fd04f52a3d2a8785a5950d10ead55296987e`)),R_=tc({method:`GET`}).handler(Oo(`1c7000333f4be48c6e4fdd485a667b06b074e37640ac6d9c50503f435e606520`)),z_=`modulepreload`,B_=function(e){return`/`+e},V_={},H_=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}r=o(t.map(t=>{if(t=B_(t,n),t in V_)return;V_[t]=!0;let r=t.endsWith(`.css`),i=r?`[rel="stylesheet"]`:``;if(n)for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}else if(document.querySelector(`link[href="${t}"]${i}`))return;let o=document.createElement(`link`);if(o.rel=r?`stylesheet`:z_,r||(o.as=`script`),o.crossOrigin=``,o.href=t,a&&o.setAttribute(`nonce`,a),document.head.appendChild(o),r)return new Promise((e,n)=>{o.addEventListener(`load`,e),o.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})},U_=Ss(`/guide`)({loader:async()=>({user:await P_()}),head:()=>({meta:[{title:`How to use - Lanework`}]}),component:ws(()=>H_(()=>import(`./guide-BXJBZbQA.js`),__vite__mapDeps([0,1,2,3,4,5])),`component`)}),W_=Ss(`/`)({loader:async()=>{let e=await P_();if(e)throw Fe({to:`/board/$owner/$repo`,params:{owner:`local`,repo:e.name.replace(/[^A-Za-z0-9._-]/g,`-`)||`local`}});return{user:e}},head:({loaderData:e})=>({meta:[{title:e?.user?`Projects - Lanework`:`Lanework — every agent review, in its lane.`}]}),component:ws(()=>H_(()=>import(`./routes-DhFdKFMi.js`),__vite__mapDeps([6,1,2,3,4,7])),`component`)});function G_({className:e,...t}){return(0,U.jsx)(`div`,{"data-slot":`skeleton`,className:w_(`animate-pulse rounded-2xl bg-muted`,e),...t})}function K_({owner:e,repo:t}){return(0,U.jsx)(`div`,{className:`h-screen w-screen overflow-hidden bg-neutral-200/60 p-2 dark:bg-neutral-900 sm:p-3`,children:(0,U.jsxs)(`div`,{className:`flex h-full overflow-hidden rounded-2xl border bg-background shadow-sm`,children:[(0,U.jsxs)(`aside`,{className:`flex w-64 shrink-0 flex-col gap-3 border-r bg-sidebar p-3`,children:[(0,U.jsx)(G_,{className:`mt-1 h-10 w-full rounded-lg`}),(0,U.jsxs)(`div`,{className:`mt-2 space-y-1.5`,children:[(0,U.jsx)(G_,{className:`h-3 w-16`}),(0,U.jsx)(G_,{className:`h-8 w-full rounded-lg`}),(0,U.jsx)(G_,{className:`h-8 w-full rounded-lg`})]}),(0,U.jsxs)(`div`,{className:`mt-2 space-y-1.5`,children:[(0,U.jsx)(G_,{className:`h-3 w-12`}),Array.from({length:4}).map((e,t)=>(0,U.jsx)(G_,{className:`h-8 w-full rounded-lg`},t))]}),(0,U.jsx)(`div`,{className:`mt-auto`,children:(0,U.jsx)(G_,{className:`h-10 w-full rounded-lg`})})]}),(0,U.jsxs)(`main`,{className:`flex min-w-0 flex-1 flex-col`,children:[(0,U.jsxs)(`div`,{className:`px-6 pt-5`,children:[(0,U.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:e}),(0,U.jsx)(`h1`,{className:`mt-1 font-heading text-2xl font-semibold tracking-tight`,children:t}),(0,U.jsxs)(`div`,{className:`mt-4 flex gap-2 border-b pb-2`,children:[(0,U.jsx)(G_,{className:`h-7 w-16 rounded-lg`}),(0,U.jsx)(G_,{className:`h-7 w-14 rounded-lg`}),(0,U.jsx)(G_,{className:`h-7 w-20 rounded-lg`})]})]}),(0,U.jsx)(`div`,{className:`flex flex-1 gap-4 overflow-hidden px-6 pt-5 pb-6`,children:Array.from({length:4}).map((e,t)=>(0,U.jsxs)(`div`,{className:`flex w-80 shrink-0 flex-col rounded-2xl bg-muted/40`,children:[(0,U.jsxs)(`div`,{className:`flex items-center gap-2 px-4 py-3`,children:[(0,U.jsx)(G_,{className:`size-2 rounded-full`}),(0,U.jsx)(G_,{className:`h-4 w-24`})]}),(0,U.jsx)(`div`,{className:`flex flex-col gap-2.5 px-2.5 pb-2.5`,children:Array.from({length:3}).map((e,t)=>(0,U.jsx)(q_,{},t))})]},t))})]})]})})}function q_(){return(0,U.jsxs)(`div`,{className:`space-y-3 rounded-xl border bg-card p-3.5`,children:[(0,U.jsx)(G_,{className:`h-4 w-4/5`}),(0,U.jsx)(G_,{className:`h-3 w-2/5`}),(0,U.jsxs)(`div`,{className:`flex items-center gap-3 border-t pt-2.5`,children:[(0,U.jsx)(G_,{className:`h-3 w-10`}),(0,U.jsx)(G_,{className:`h-3 w-8`}),(0,U.jsx)(G_,{className:`ml-auto h-4 w-10 rounded-md`})]})]})}var J_=Ss(`/board/$owner/$repo`)({validateSearch:e=>({mine:e.mine===!0||e.mine===`true`?!0:void 0,tag:typeof e.tag==`string`&&e.tag?e.tag:void 0,branch:typeof e.branch==`string`&&e.branch?e.branch:void 0}),beforeLoad:async()=>{let e=await P_();if(!e)throw Fe({to:`/`});return{user:e}},loaderDeps:({search:{branch:e}})=>({branch:e}),loader:async({params:e,deps:t})=>({board:await L_({data:{owner:e.owner,repo:e.repo,branch:t.branch}})}),head:({params:e})=>({meta:[{title:`${e.owner}/${e.repo} - Lanework`}]}),component:ws(()=>H_(()=>import(`./board._owner._repo-hvj6B94q.js`),__vite__mapDeps([8,1,2,3,7,9,5])),`component`),pendingMs:120,pendingMinMs:400,pendingComponent:Y_,errorComponent:ws(()=>H_(()=>import(`./board._owner._repo-DyrvTwhk.js`),__vite__mapDeps([10,3,1])),`errorComponent`)});function Y_(){let{owner:e,repo:t}=J_.useParams();return(0,U.jsx)(K_,{owner:e,repo:t})}var X_=U_.update({id:`/guide`,path:`/guide`,getParentRoute:()=>M_}),Z_={IndexRoute:W_.update({id:`/`,path:`/`,getParentRoute:()=>M_}),GuideRoute:X_,BoardOwnerRepoRoute:J_.update({id:`/board/$owner/$repo`,path:`/board/$owner/$repo`,getParentRoute:()=>M_})},Q_=M_._addFileChildren(Z_);function $_(){return Bs({routeTree:Q_,defaultPreload:`intent`,defaultStaleTime:1/0,scrollRestoration:!0,defaultNotFoundComponent:()=>(0,U.jsx)(`div`,{className:`p-8`,children:`Not found.`})})}async function ev(){let e=await $_(),t=[];return window.__TSS_START_OPTIONS__={serializationAdapters:t},t.push(ko),e.options.serializationAdapters&&t.push(...e.options.serializationAdapters),e.update({basepath:``,serializationAdapters:t}),e.stores.matchesId.get().length||await Fo(e),e}var tv=ev;async function nv(){let e=await tv();return window.$_TSR?.h(),e}var rv;function iv(){return rv||=nv(),(0,U.jsx)(Lo,{promise:rv,children:e=>(0,U.jsx)(Us,{router:e})})}var av=ge();(0,H.startTransition)(()=>{(0,av.hydrateRoot)(document,(0,U.jsx)(H.StrictMode,{children:(0,U.jsx)(iv,{})}))});export{Of as $,dl as $t,Dm as A,su as At,gm as B,J as Bt,hh as C,Du as Ct,km as D,wu as Dt,Km as E,Cu as Et,Cm as F,Ql as Ft,sm as G,Rl as Gt,pm as H,Gl as Ht,xm as I,Zl as It,qp as J,jl as Jt,rm as K,Il as Kt,wm as L,eu as Lt,ym as M,Y as Mt,hm as N,tu as Nt,Am as O,vu as Ot,vm as P,Xl as Pt,Af as Q,ll as Qt,Tm as R,Kl as Rt,gh as S,ku as St,Jm as T,Tu as Tt,fm as U,Wl as Ut,Sm as V,ql as Vt,dm as W,Bl as Wt,jf as X,al as Xt,Lf as Y,Ml as Yt,kf as Z,ol as Zt,Hh as _,gs as _n,Ed as _t,H_ as a,Yc as an,mf as at,ch as b,xd as bt,R_ as c,Lc as cn,Gd as ct,O_ as d,xc as dn,jd as dt,ul as en,Ef as et,D_ as f,_c as fn,Ad as ft,Wh as g,oc as gn,Td as gt,Gh as h,sc as hn,Cd as ht,U_ as i,Qc as in,pf as it,mm as j,ou as jt,Im as k,pu as kt,I_ as l,Ac as ln,Rd as lt,Qh as m,cc as mn,X as mt,G_ as n,el as nn,xf as nt,F_ as o,Wc as on,of as ot,w_ as p,lc as pn,bd as pt,Jp as q,Al as qt,W_ as r,tl as rn,vf as rt,L_ as s,Ic as sn,nf as st,J_ as t,nl as tn,Df as tt,E_ as u,W as un,Md as ut,zh as v,Dd as vt,nh as w,Ou as wt,_h as x,ad as xt,vh as y,yd as yt,Em as z,Yl as zt};
|
|
12
|
+
`;case`\\r`:return`\r`;case`\\b`:return`\b`;case`\\t`:return` `;case`\\f`:return`\f`;case`\\x3C`:return`<`;case`\\u2028`:return`\u2028`;case`\\u2029`:return`\u2029`;default:return e}}function Ln(e){return e.replace(/(\\\\|\\"|\\n|\\r|\\b|\\t|\\f|\\u2028|\\u2029|\\x3C)/g,In)}var Rn=`__SEROVAL_REFS__`,zn=new Map,Bn=new Map;function Vn(e){return zn.has(e)}function Hn(e){return Bn.has(e)}function Un(e){if(Vn(e))return zn.get(e);throw new jr(e)}function Wn(e){if(Hn(e))return Bn.get(e);throw new Mr(e)}typeof globalThis<`u`?Object.defineProperty(globalThis,Rn,{value:Bn,configurable:!0,writable:!1,enumerable:!1}):typeof window<`u`?Object.defineProperty(window,Rn,{value:Bn,configurable:!0,writable:!1,enumerable:!1}):typeof self<`u`?Object.defineProperty(self,Rn,{value:Bn,configurable:!0,writable:!1,enumerable:!1}):typeof global<`u`&&Object.defineProperty(global,Rn,{value:Bn,configurable:!0,writable:!1,enumerable:!1});function Gn(e){return e instanceof EvalError?1:e instanceof RangeError?2:e instanceof ReferenceError?3:e instanceof SyntaxError?4:e instanceof TypeError?5:e instanceof URIError?6:0}function Kn(e){let t=Cn[Gn(e)];return e.name===t?e.constructor.name===t?{}:{name:e.constructor.name}:{name:e.name}}function qn(e,t){let n=Kn(e),r=Object.getOwnPropertyNames(e);for(let i=0,a=r.length,o;i<a;i++)o=r[i],o!==`name`&&o!==`message`&&(o===`stack`?t&4&&(n||={},n[o]=e[o]):(n||={},n[o]=e[o]));return n}function Jn(e){return Object.isFrozen(e)?3:Object.isSealed(e)?2:+!Object.isExtensible(e)}function Yn(e){switch(e){case 1/0:return jn;case-1/0:return Mn}return e===e?Object.is(e,-0)?An:z(0,R,e,R,R,R,R,R,R,R,R,R):Nn}function Xn(e){return z(1,R,Fn(e),R,R,R,R,R,R,R,R,R)}function Zn(e){return z(3,R,``+e,R,R,R,R,R,R,R,R,R)}function Qn(e){return z(4,e,R,R,R,R,R,R,R,R,R,R)}function $n(e,t){let n=t.valueOf();return z(5,e,n===n?t.toISOString():``,R,R,R,R,R,R,R,R,R)}function er(e,t){return z(6,e,R,Fn(t.source),t.flags,R,R,R,R,R,R,R)}function tr(e,t){return z(17,e,bn[t],R,R,R,R,R,R,R,R,R)}function nr(e,t){return z(18,e,Fn(Un(t)),R,R,R,R,R,R,R,R,R)}function rr(e,t,n){return z(25,e,n,Fn(t),R,R,R,R,R,R,R,R)}function ir(e,t,n){return z(9,e,R,R,R,R,R,n,R,R,Jn(t),R)}function ar(e,t){return z(21,e,R,R,R,R,R,R,t,R,R,R)}function or(e,t,n){return z(15,e,R,t.constructor.name,R,R,R,R,n,t.byteOffset,R,t.length)}function sr(e,t,n){return z(16,e,R,t.constructor.name,R,R,R,R,n,t.byteOffset,R,t.byteLength)}function cr(e,t,n){return z(20,e,R,R,R,R,R,R,n,t.byteOffset,R,t.byteLength)}function lr(e,t,n){return z(13,e,Gn(t),R,Fn(t.message),n,R,R,R,R,R,R)}function ur(e,t,n){return z(14,e,Gn(t),R,Fn(t.message),n,R,R,R,R,R,R)}function dr(e,t){return z(7,e,R,R,R,R,R,t,R,R,R,R)}function fr(e,t){return z(28,R,R,R,R,R,R,[e,t],R,R,R,R)}function pr(e,t){return z(30,R,R,R,R,R,R,[e,t],R,R,R,R)}function mr(e,t,n){return z(31,e,R,R,R,R,R,n,t,R,R,R)}function hr(e,t){return z(32,e,R,R,R,R,R,R,t,R,R,R)}function gr(e,t){return z(33,e,R,R,R,R,R,R,t,R,R,R)}function _r(e,t){return z(34,e,R,R,R,R,R,R,t,R,R,R)}function vr(e,t,n,r){return z(35,e,n,R,R,R,R,t,R,R,R,r)}var{toString:yr}=Object.prototype,br={parsing:1,serialization:2,deserialization:3};function xr(e){return`Seroval Error (step: ${br[e]})`}var Sr=(e,t)=>xr(e),Cr=class extends Error{constructor(e,t){super(Sr(e,t)),this.cause=t}},wr=class extends Cr{constructor(e){super(`parsing`,e)}},Tr=class extends Cr{constructor(e){super(`deserialization`,e)}};function Er(e){return`Seroval Error (specific: ${e})`}var Dr=class extends Error{constructor(e){super(Er(1)),this.value=e}},Or=class extends Error{constructor(e){super(Er(2))}},kr=class extends Error{constructor(e){super(Er(3))}},Ar=class extends Error{constructor(e){super(Er(4))}},jr=class extends Error{constructor(e){super(Er(5)),this.value=e}},Mr=class extends Error{constructor(e){super(Er(6))}},Nr=class extends Error{constructor(e){super(Er(7))}},Pr=class extends Error{constructor(e){super(Er(8))}},Fr=class extends Error{constructor(e){super(Er(9))}},Ir=class{constructor(e,t){this.value=e,this.replacement=t}},Lr=()=>{let e={p:0,s:0,f:0};return e.p=new Promise((t,n)=>{e.s=t,e.f=n}),e};Lr.toString(),((e,t)=>{e.s(t),e.p.s=1,e.p.v=t}).toString(),((e,t)=>{e.f(t),e.p.s=2,e.p.v=t}).toString();var Rr=()=>{let e=[],t=[],n=!0,r=!1,i=0,a=(e,n,r)=>{for(r=0;r<i;r++)t[r]&&t[r][n](e)},o=(t,i,a,o)=>{for(i=0,a=e.length;i<a;i++)o=e[i],!n&&i===a-1?t[r?`return`:`throw`](o):t.next(o)},s=(e,r)=>(n&&(r=i++,t[r]=e),o(e),()=>{n&&(t[r]=t[i],t[i--]=void 0)});return{__SEROVAL_STREAM__:!0,on:e=>s(e),next:t=>{n&&(e.push(t),a(t,`next`))},throw:i=>{n&&(e.push(i),a(i,`throw`),n=!1,r=!1,t.length=0)},return:i=>{n&&(e.push(i),a(i,`return`),n=!1,r=!0,t.length=0)}}};Rr.toString();var zr=e=>t=>()=>{let n=0,r={[e]:()=>r,next:()=>{if(n>t.d)return{done:!0,value:void 0};let e=n++,r=t.v[e];if(e===t.t)throw r;return{done:e===t.d,value:r}}};return r};zr.toString();var Br=(e,t)=>n=>()=>{let r=0,i=-1,a=!1,o=[],s=[],c=(e=0,t=s.length)=>{for(;e<t;e++)s[e].s({done:!0,value:void 0})};n.on({next:e=>{let t=s.shift();t&&t.s({done:!1,value:e}),o.push(e)},throw:e=>{let t=s.shift();t&&t.f(e),c(),i=o.length,a=!0,o.push(e)},return:e=>{let t=s.shift();t&&t.s({done:!0,value:e}),c(),i=o.length,o.push(e)}});let l={[e]:()=>l,next:()=>{if(i===-1){let e=r++;if(e>=o.length){let e=t();return s.push(e),e.p}return{done:!1,value:o[e]}}if(r>i)return{done:!0,value:void 0};let e=r++,n=o[e];if(e!==i)return{done:!1,value:n};if(a)throw n;return{done:!0,value:n}}};return l};Br.toString();var Vr=e=>{let t=atob(e),n=t.length,r=new Uint8Array(n);for(let e=0;e<n;e++)r[e]=t.charCodeAt(e);return r.buffer};Vr.toString();function Hr(e){return`__SEROVAL_SEQUENCE__`in e}function Ur(e,t,n){return{__SEROVAL_SEQUENCE__:!0,v:e,t,d:n}}function Wr(e){let t=[],n=-1,r=-1,i=e[un]();for(;;)try{let e=i.next();if(t.push(e.value),e.done){r=t.length-1;break}}catch(e){n=t.length,t.push(e)}return Ur(t,n,r)}var Gr=zr(un);function Kr(e){return Gr(e)}var qr={},Jr={},Yr={0:{},1:{},2:{},3:{},4:{},5:{}};function Xr(e){return`__SEROVAL_STREAM__`in e}function Zr(){return Rr()}function Qr(e){let t=Zr(),n=e[sn]();async function r(){try{let e=await n.next();e.done?t.return(e.value):(t.next(e.value),await r())}catch(e){t.throw(e)}}return r().catch(()=>{}),t}var $r=Br(sn,Lr);function ei(e){return $r(e)}async function ti(e){try{return[1,await e]}catch(e){return[0,e]}}function ni(e,t){return{plugins:t.plugins,mode:e,marked:new Set,features:63^(t.disabledFeatures||0),refs:t.refs||new Map,depthLimit:t.depthLimit||1e3}}function ri(e,t){e.marked.add(t)}function ii(e,t){let n=e.refs.size;return e.refs.set(t,n),n}function ai(e,t){let n=e.refs.get(t);return n==null?{type:0,value:ii(e,t)}:(ri(e,n),{type:1,value:Qn(n)})}function oi(e,t){let n=ai(e,t);return n.type===1?n:Vn(t)?{type:2,value:nr(n.value,t)}:n}function si(e,t){let n=oi(e,t);if(n.type!==0)return n.value;if(t in bn)return tr(n.value,t);throw new Dr(t)}function ci(e,t){let n=ai(e,Yr[t]);return n.type===1?n.value:z(26,n.value,t,R,R,R,R,R,R,R,R,R)}function li(e){let t=ai(e,qr);return t.type===1?t.value:z(27,t.value,R,R,R,R,R,R,si(e,un),R,R,R)}function ui(e){let t=ai(e,Jr);return t.type===1?t.value:z(29,t.value,R,R,R,R,R,[ci(e,1),si(e,sn)],R,R,R,R)}function di(e,t,n,r){return z(n?11:10,e,R,R,R,r,R,R,R,R,Jn(t),R)}function fi(e,t,n,r){return z(8,t,R,R,R,R,{k:n,v:r},R,ci(e,0),R,R,R)}function pi(e,t,n){let r=new Uint8Array(n),i=``;for(let e=0,t=r.length;e<t;e++)i+=String.fromCharCode(r[e]);return z(19,t,Fn(btoa(i)),R,R,R,R,R,ci(e,5),R,R,R)}function mi(e,t){return{base:ni(e,t),child:void 0}}var hi=class{constructor(e,t){this._p=e,this.depth=t}parse(e){return B(this._p,this.depth,e)}};async function gi(e,t,n){let r=[];for(let i=0,a=n.length;i<a;i++)i in n?r[i]=await B(e,t,n[i]):r[i]=0;return r}async function _i(e,t,n,r){return ir(n,r,await gi(e,t,r))}async function vi(e,t,n){let r=Object.entries(n),i=[],a=[];for(let n=0,o=r.length;n<o;n++)i.push(Fn(r[n][0])),a.push(await B(e,t,r[n][1]));return un in n&&(i.push(si(e.base,un)),a.push(fr(li(e.base),await B(e,t,Wr(n))))),sn in n&&(i.push(si(e.base,sn)),a.push(pr(ui(e.base),await B(e,t,Qr(n))))),vn in n&&(i.push(si(e.base,vn)),a.push(Xn(n[vn]))),ln in n&&(i.push(si(e.base,ln)),a.push(n[ln]?En:Dn)),{k:i,v:a}}async function yi(e,t,n,r,i){return di(n,r,i,await vi(e,t,r))}async function bi(e,t,n,r){return ar(n,await B(e,t,r.valueOf()))}async function xi(e,t,n,r){return or(n,r,await B(e,t,r.buffer))}async function Si(e,t,n,r){return sr(n,r,await B(e,t,r.buffer))}async function Ci(e,t,n,r){return cr(n,r,await B(e,t,r.buffer))}async function wi(e,t,n,r){let i=qn(r,e.base.features);return lr(n,r,i?await vi(e,t,i):R)}async function Ti(e,t,n,r){let i=qn(r,e.base.features);return ur(n,r,i?await vi(e,t,i):R)}async function Ei(e,t,n,r){let i=[],a=[];for(let[n,o]of r.entries())i.push(await B(e,t,n)),a.push(await B(e,t,o));return fi(e.base,n,i,a)}async function Di(e,t,n,r){let i=[];for(let n of r.keys())i.push(await B(e,t,n));return dr(n,i)}async function Oi(e,t,n,r){let i=e.base.plugins;if(i)for(let a=0,o=i.length;a<o;a++){let o=i[a];if(o.parse.async&&o.test(r))return rr(n,o.tag,await o.parse.async(r,new hi(e,t),{id:n}))}return R}async function ki(e,t,n,r){let[i,a]=await ti(r);return z(12,n,i,R,R,R,R,R,await B(e,t,a),R,R,R)}function Ai(e,t,n,r,i){let a=[],o=n.on({next:n=>{ri(this.base,t),B(this,e,n).then(e=>{a.push(hr(t,e))},e=>{i(e),o()})},throw:n=>{ri(this.base,t),B(this,e,n).then(e=>{a.push(gr(t,e)),r(a),o()},e=>{i(e),o()})},return:n=>{ri(this.base,t),B(this,e,n).then(e=>{a.push(_r(t,e)),r(a),o()},e=>{i(e),o()})}})}async function ji(e,t,n,r){return mr(n,ci(e.base,4),await new Promise(Ai.bind(e,t,n,r)))}async function Mi(e,t,n,r){let i=[];for(let n=0,a=r.v.length;n<a;n++)i[n]=await B(e,t,r.v[n]);return vr(n,i,r.t,r.d)}async function Ni(e,t,n,r){if(Array.isArray(r))return _i(e,t,n,r);if(Xr(r))return ji(e,t,n,r);if(Hr(r))return Mi(e,t,n,r);let i=r.constructor;if(i===Ir)return B(e,t,r.replacement);let a=await Oi(e,t,n,r);if(a)return a;switch(i){case Object:return yi(e,t,n,r,!1);case R:return yi(e,t,n,r,!0);case Date:return $n(n,r);case Error:case EvalError:case RangeError:case ReferenceError:case SyntaxError:case TypeError:case URIError:return wi(e,t,n,r);case Number:case Boolean:case String:case BigInt:return bi(e,t,n,r);case ArrayBuffer:return pi(e.base,n,r);case Int8Array:case Int16Array:case Int32Array:case Uint8Array:case Uint16Array:case Uint32Array:case Uint8ClampedArray:case Float32Array:case Float64Array:return xi(e,t,n,r);case DataView:return Ci(e,t,n,r);case Map:return Ei(e,t,n,r);case Set:return Di(e,t,n,r);default:break}if(i===Promise||r instanceof Promise)return ki(e,t,n,r);let o=e.base.features;if(o&32&&i===RegExp)return er(n,r);if(o&16)switch(i){case BigInt64Array:case BigUint64Array:return Si(e,t,n,r);default:break}if(o&1&&typeof AggregateError<`u`&&(i===AggregateError||r instanceof AggregateError))return Ti(e,t,n,r);if(r instanceof Error)return wi(e,t,n,r);if(un in r||sn in r)return yi(e,t,n,r,!!i);throw new Dr(r)}async function Pi(e,t,n){let r=oi(e.base,n);if(r.type!==0)return r.value;let i=await Oi(e,t,r.value,n);if(i)return i;throw new Dr(n)}async function B(e,t,n){switch(typeof n){case`boolean`:return n?En:Dn;case`undefined`:return On;case`string`:return Xn(n);case`number`:return Yn(n);case`bigint`:return Zn(n);case`object`:if(n){let r=oi(e.base,n);return r.type===0?await Ni(e,t+1,r.value,n):r.value}return kn;case`symbol`:return si(e.base,n);case`function`:return Pi(e,t,n);default:throw new Dr(n)}}async function Fi(e,t){try{return await B(e,0,t)}catch(e){throw e instanceof wr?e:new wr(e)}}var Ii=(e=>(e[e.Vanilla=1]=`Vanilla`,e[e.Cross=2]=`Cross`,e))(Ii||{});function Li(e){return e}function Ri(e,t){for(let n=0,r=t.length;n<r;n++){let r=t[n];e.has(r)||(e.add(r),r.extends&&Ri(e,r.extends))}}function zi(e){if(e){let t=new Set;return Ri(t,e),[...t]}}function Bi(e){switch(e){case`Int8Array`:return Int8Array;case`Int16Array`:return Int16Array;case`Int32Array`:return Int32Array;case`Uint8Array`:return Uint8Array;case`Uint16Array`:return Uint16Array;case`Uint32Array`:return Uint32Array;case`Uint8ClampedArray`:return Uint8ClampedArray;case`Float32Array`:return Float32Array;case`Float64Array`:return Float64Array;case`BigInt64Array`:return BigInt64Array;case`BigUint64Array`:return BigUint64Array;default:throw new Nr(e)}}var Vi=1e6,Hi=1e4,Ui=2e4;function Wi(e,t){switch(t){case 3:return Object.freeze(e);case 1:return Object.preventExtensions(e);case 2:return Object.seal(e);default:return e}}var Gi=1e3;function Ki(e,t){let n=t.refs||new Map;return`types`in n||Object.assign(n,{types:new Map}),{mode:e,plugins:t.plugins,refs:n,features:t.features??63^(t.disabledFeatures||0),depthLimit:t.depthLimit||Gi}}function qi(e){return{mode:2,base:Ki(2,e),child:R}}var Ji=class{constructor(e,t){this._p=e,this.depth=t}deserialize(e){return Fa(this._p,this.depth,e)}};function Yi(e,t){if(t<0||!Number.isFinite(t)||!Number.isInteger(t))throw new Pr({t:4,i:t});if(e.refs.has(t))throw Error(`Conflicted ref id: `+t)}function Xi(e,t,n){return Yi(e.base,t),e.state.marked.has(t)&&e.base.refs.set(t,n),n}function Zi(e,t,n){return Yi(e.base,t),e.base.refs.set(t,n),n}function Qi(e,t,n){return e.mode===1?Xi(e,t,n):Zi(e,t,n)}function $i(e,t,n){if(Object.hasOwn(t,n))return t[n];throw new Pr(e)}function ea(e,t){return Qi(e,t.i,Wn(Ln(t.s)))}function ta(e,t,n){let r=n.a,i=r.length,a=Qi(e,n.i,Array(i));for(let n=0,o;n<i;n++)o=r[n],o&&(a[n]=Fa(e,t,o));return Wi(a,n.o),a}function na(e){switch(e){case`constructor`:case`__proto__`:case`prototype`:case`__defineGetter__`:case`__defineSetter__`:case`__lookupGetter__`:case`__lookupSetter__`:return!1;default:return!0}}function ra(e){switch(e){case sn:case ln:case vn:case un:return!0;default:return!1}}function ia(e,t,n){na(t)?e[t]=n:Object.defineProperty(e,t,{value:n,configurable:!0,enumerable:!0,writable:!0})}function aa(e,t,n,r,i){if(typeof r==`string`)ia(n,Ln(r),Fa(e,t,i));else{let a=Fa(e,t,r);switch(typeof a){case`string`:ia(n,a,Fa(e,t,i));break;case`symbol`:ra(a)&&(n[a]=Fa(e,t,i));break;default:throw new Pr(r)}}}function oa(e,t,n){e.base.refs.types.set(t,n)}function sa(e,t,n,r){if(e.base.refs.types.get(n)!==r)throw new Pr(t)}function ca(e,t,n,r){let i=n.k;if(i.length>0)for(let a=0,o=n.v,s=i.length;a<s;a++)aa(e,t,r,i[a],o[a]);return r}function la(e,t,n){let r=Qi(e,n.i,n.t===10?{}:Object.create(null));return ca(e,t,n.p,r),Wi(r,n.o),r}function ua(e,t){return Qi(e,t.i,new Date(t.s))}function da(e,t){if(e.base.features&32){let n=Ln(t.c);if(n.length>Ui)throw new Pr(t);return Qi(e,t.i,new RegExp(n,t.m))}throw new Or(t)}function fa(e,t,n){let r=Qi(e,n.i,new Set);for(let i=0,a=n.a,o=a.length;i<o;i++)r.add(Fa(e,t,a[i]));return r}function pa(e,t,n){let r=Qi(e,n.i,new Map);for(let i=0,a=n.e.k,o=n.e.v,s=a.length;i<s;i++)r.set(Fa(e,t,a[i]),Fa(e,t,o[i]));return r}function ma(e,t){if(t.s.length>Vi)throw new Pr(t);return Qi(e,t.i,Vr(Ln(t.s)))}function ha(e,t,n){let r=Bi(n.c),i=Fa(e,t,n.f),a=n.b??0;if(a<0||a>i.byteLength)throw new Pr(n);return Qi(e,n.i,new r(i,a,n.l))}function ga(e,t,n){let r=Fa(e,t,n.f),i=n.b??0;if(i<0||i>r.byteLength)throw new Pr(n);return Qi(e,n.i,new DataView(r,i,n.l))}function _a(e,t,n,r){if(n.p){let i=ca(e,t,n.p,{});Object.defineProperties(r,Object.getOwnPropertyDescriptors(i))}return r}function va(e,t,n){return _a(e,t,n,Qi(e,n.i,AggregateError([],Ln(n.m))))}function ya(e,t,n){let r=$i(n,wn,n.s);return _a(e,t,n,Qi(e,n.i,new r(Ln(n.m))))}function ba(e,t,n){let r=Lr(),i=Qi(e,n.i,r.p),a=Fa(e,t,n.f);return n.s?r.s(a):r.f(a),i}function xa(e,t,n){return Qi(e,n.i,Object(Fa(e,t,n.f)))}function Sa(e,t,n){let r=e.base.plugins;if(r){let i=Ln(n.c);for(let a=0,o=r.length;a<o;a++){let o=r[a];if(o.tag===i)return Qi(e,n.i,o.deserialize(n.s,new Ji(e,t),{id:n.i}))}}throw new kr(n.c)}function Ca(e,t){let n=Qi(e,t.i,Qi(e,t.s,Lr()).p);return oa(e,t.s,22),n}function wa(e,t,n){let r=e.base.refs.get(n.i);if(r)return sa(e,n,n.i,22),r.s(Fa(e,t,n.a[1])),R;throw new Ar(`Promise`)}function Ta(e,t,n){let r=e.base.refs.get(n.i);if(r)return sa(e,n,n.i,22),r.f(Fa(e,t,n.a[1])),R;throw new Ar(`Promise`)}function Ea(e,t,n){return Fa(e,t,n.a[0]),Kr(Fa(e,t,n.a[1]))}function Da(e,t,n){return Fa(e,t,n.a[0]),ei(Fa(e,t,n.a[1]))}function Oa(e,t,n){let r=Qi(e,n.i,Zr());oa(e,n.i,31);let i=n.a,a=i.length;if(a)for(let n=0;n<a;n++)Fa(e,t,i[n]);return r}function ka(e,t,n){let r=e.base.refs.get(n.i);if(r)return sa(e,n,n.i,31),r.next(Fa(e,t,n.f)),R;throw new Ar(`Stream`)}function Aa(e,t,n){let r=e.base.refs.get(n.i);if(r)return sa(e,n,n.i,31),r.throw(Fa(e,t,n.f)),R;throw new Ar(`Stream`)}function ja(e,t,n){let r=e.base.refs.get(n.i);if(r)return sa(e,n,n.i,31),r.return(Fa(e,t,n.f)),R;throw new Ar(`Stream`)}function Ma(e,t,n){return Fa(e,t,n.f),R}function Na(e,t,n){return Fa(e,t,n.a[1]),R}function Pa(e,t,n){let r=Qi(e,n.i,Ur([],n.s,n.l));for(let i=0,a=n.a.length;i<a;i++)r.v[i]=Fa(e,t,n.a[i]);return r}function Fa(e,t,n){if(t>e.base.depthLimit)throw new Fr(e.base.depthLimit);switch(t+=1,n.t){case 2:return $i(n,Sn,n.s);case 0:return Number(n.s);case 1:return Ln(String(n.s));case 3:if(String(n.s).length>Hi)throw new Pr(n);return BigInt(n.s);case 4:return e.base.refs.get(n.i);case 18:return ea(e,n);case 9:return ta(e,t,n);case 10:case 11:return la(e,t,n);case 5:return ua(e,n);case 6:return da(e,n);case 7:return fa(e,t,n);case 8:return pa(e,t,n);case 19:return ma(e,n);case 16:case 15:return ha(e,t,n);case 20:return ga(e,t,n);case 14:return va(e,t,n);case 13:return ya(e,t,n);case 12:return ba(e,t,n);case 17:return $i(n,xn,n.s);case 21:return xa(e,t,n);case 25:return Sa(e,t,n);case 22:return Ca(e,n);case 23:return wa(e,t,n);case 24:return Ta(e,t,n);case 28:return Ea(e,t,n);case 30:return Da(e,t,n);case 31:return Oa(e,t,n);case 32:return ka(e,t,n);case 33:return Aa(e,t,n);case 34:return ja(e,t,n);case 27:return Ma(e,t,n);case 29:return Na(e,t,n);case 35:return Pa(e,t,n);default:throw new Or(n)}}function Ia(e,t){try{return Fa(e,0,t)}catch(e){throw new Tr(e)}}var La=(()=>T).toString();/=>/.test(La);function Ra(e,t){return Ia(qi({plugins:zi(t.plugins),refs:t.refs,features:t.features,disabledFeatures:t.disabledFeatures,depthLimit:t.depthLimit}),e)}async function za(e,t={}){let n=mi(1,{plugins:zi(t.plugins),disabledFeatures:t.disabledFeatures});return{t:await Fi(n,e),f:n.base.features,m:Array.from(n.base.marked)}}function Ba(e){return e}function Va(e){return Li({tag:`$TSR/t/`+e.key,test:e.test,parse:{sync(t,n,r){return{v:n.parse(e.toSerializable(t))}},async async(t,n,r){return{v:await n.parse(e.toSerializable(t))}},stream(t,n,r){return{v:n.parse(e.toSerializable(t))}}},serialize:void 0,deserialize(t,n,r){return e.fromSerializable(n.deserialize(t.v))}})}var Ha=class{constructor(e,t){this.stream=e,this.hint=t?.hint??`binary`}},Ua=globalThis.Buffer,Wa=!!Ua&&typeof Ua.from==`function`;function Ga(e){if(e.length===0)return``;if(Wa)return Ua.from(e).toString(`base64`);let t=32768,n=[];for(let r=0;r<e.length;r+=t){let i=e.subarray(r,r+t);n.push(String.fromCharCode.apply(null,i))}return btoa(n.join(``))}function Ka(e){if(e.length===0)return new Uint8Array;if(Wa){let t=Ua.from(e,`base64`);return new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}let t=atob(e),n=new Uint8Array(t.length);for(let e=0;e<t.length;e++)n[e]=t.charCodeAt(e);return n}var qa=Object.create(null),Ja=Object.create(null),Ya=e=>new ReadableStream({start(t){e.on({next(e){try{t.enqueue(Ka(e))}catch{}},throw(e){t.error(e)},return(){try{t.close()}catch{}}})}}),Xa=new TextEncoder,Za=e=>new ReadableStream({start(t){e.on({next(e){try{typeof e==`string`?t.enqueue(Xa.encode(e)):t.enqueue(Ka(e.$b64))}catch{}},throw(e){t.error(e)},return(){try{t.close()}catch{}}})}}),Qa=`(s=>new ReadableStream({start(c){s.on({next(b){try{const d=atob(b),a=new Uint8Array(d.length);for(let i=0;i<d.length;i++)a[i]=d.charCodeAt(i);c.enqueue(a)}catch(_){}},throw(e){c.error(e)},return(){try{c.close()}catch(_){}}})}}))`,$a=`(s=>{const e=new TextEncoder();return new ReadableStream({start(c){s.on({next(v){try{if(typeof v==='string'){c.enqueue(e.encode(v))}else{const d=atob(v.$b64),a=new Uint8Array(d.length);for(let i=0;i<d.length;i++)a[i]=d.charCodeAt(i);c.enqueue(a)}}catch(_){}},throw(x){c.error(x)},return(){try{c.close()}catch(_){}}})}})})`;function eo(e){let t=Zr(),n=e.getReader();return(async()=>{try{for(;;){let{done:e,value:r}=await n.read();if(e){t.return(void 0);break}t.next(Ga(r))}}catch(e){t.throw(e)}finally{n.releaseLock()}})(),t}function to(e){let t=Zr(),n=e.getReader(),r=new TextDecoder(`utf-8`,{fatal:!0});return(async()=>{try{for(;;){let{done:e,value:i}=await n.read();if(e){try{let e=r.decode();e.length>0&&t.next(e)}catch{}t.return(void 0);break}try{let e=r.decode(i,{stream:!0});e.length>0&&t.next(e)}catch{t.next({$b64:Ga(i)})}}}catch(e){t.throw(e)}finally{n.releaseLock()}})(),t}var no=Li({tag:`tss/RawStream`,extends:[Li({tag:`tss/RawStreamFactory`,test(e){return e===qa},parse:{sync(e,t,n){return{}},async async(e,t,n){return{}},stream(e,t,n){return{}}},serialize(e,t,n){return Qa},deserialize(e,t,n){return qa}}),Li({tag:`tss/RawStreamFactoryText`,test(e){return e===Ja},parse:{sync(e,t,n){return{}},async async(e,t,n){return{}},stream(e,t,n){return{}}},serialize(e,t,n){return $a},deserialize(e,t,n){return Ja}})],test(e){return e instanceof Ha},parse:{sync(e,t,n){let r=e.hint===`text`?Ja:qa;return{hint:t.parse(e.hint),factory:t.parse(r),stream:t.parse(Zr())}},async async(e,t,n){let r=e.hint===`text`?Ja:qa,i=e.hint===`text`?to(e.stream):eo(e.stream);return{hint:await t.parse(e.hint),factory:await t.parse(r),stream:await t.parse(i)}},stream(e,t,n){let r=e.hint===`text`?Ja:qa,i=e.hint===`text`?to(e.stream):eo(e.stream);return{hint:t.parse(e.hint),factory:t.parse(r),stream:t.parse(i)}}},serialize(e,t,n){return`(`+t.serialize(e.factory)+`)(`+t.serialize(e.stream)+`)`},deserialize(e,t,n){let r=t.deserialize(e.stream);return t.deserialize(e.hint)===`text`?Za(r):Ya(r)}});function ro(e){return Li({tag:`tss/RawStream`,test:()=>!1,parse:{},serialize(){throw Error(`RawStreamDeserializePlugin.serialize should not be called. Client only deserializes.`)},deserialize(t,n,r){return e(typeof n?.deserialize==`function`?n.deserialize(t.streamId):t.streamId)}})}var io=Li({tag:`$TSR/Error`,test(e){return e instanceof Error},parse:{sync(e,t){return{message:t.parse(e.message)}},async async(e,t){return{message:await t.parse(e.message)}},stream(e,t){return{message:t.parse(e.message)}}},serialize(e,t){return`new Error(`+t.serialize(e.message)+`)`},deserialize(e,t){return Error(t.deserialize(e.message))}}),ao={},oo=e=>new ReadableStream({start:t=>{e.on({next:e=>{try{t.enqueue(e)}catch{}},throw:e=>{t.error(e)},return:()=>{try{t.close()}catch{}}})}}),so=Li({tag:`seroval-plugins/web/ReadableStreamFactory`,test(e){return e===ao},parse:{sync(){return ao},async async(){return await Promise.resolve(ao)},stream(){return ao}},serialize(){return oo.toString()},deserialize(){return ao}});function co(e){let t=Zr(),n=e.getReader();async function r(){try{let e=await n.read();e.done?t.return(e.value):(t.next(e.value),await r())}catch(e){t.throw(e)}}return r().catch(()=>{}),t}var lo=[io,no,Li({tag:`seroval/plugins/web/ReadableStream`,extends:[so],test(e){return typeof ReadableStream>`u`?!1:e instanceof ReadableStream},parse:{sync(e,t){return{factory:t.parse(ao),stream:t.parse(Zr())}},async async(e,t){return{factory:await t.parse(ao),stream:await t.parse(co(e))}},stream(e,t){return{factory:t.parse(ao),stream:t.parse(co(e))}}},serialize(e,t){return`(`+t.serialize(e.factory)+`)(`+t.serialize(e.stream)+`)`},deserialize(e,t){return oo(t.deserialize(e.stream))}})];function uo(){return[...(Te()?.serializationAdapters)?.map(Va)??[],...lo]}var fo=new TextDecoder,po=new Uint8Array,V=16*1024*1024,mo=32*1024*1024,ho=1024,go=1e5;function _o(e){let t=new Map,n=new Map,r=new Set,i=!1,a=null,o=0,s,c=new ReadableStream({start(e){s=e},cancel(){i=!0;try{a?.cancel()}catch{}t.forEach(e=>{try{e.error(Error(`Framed response cancelled`))}catch{}}),t.clear(),n.clear(),r.clear()}});function l(e){let i=n.get(e);if(i)return i;if(r.has(e))return new ReadableStream({start(e){e.close()}});if(n.size>=ho)throw Error(`Too many raw streams in framed response (max ${ho})`);let a=new ReadableStream({start(n){t.set(e,n)},cancel(){r.add(e),t.delete(e),n.delete(e)}});return n.set(e,a),a}function u(e){return l(e),t.get(e)}return(async()=>{let n=e.getReader();a=n;let c=[],l=0;function d(){if(l<9)return null;let e=c[0];if(e.length>=9)return{type:e[0],streamId:(e[1]<<24|e[2]<<16|e[3]<<8|e[4])>>>0,length:(e[5]<<24|e[6]<<16|e[7]<<8|e[8])>>>0};let t=new Uint8Array(9),n=0,r=9;for(let e=0;e<c.length&&r>0;e++){let i=c[e],a=Math.min(i.length,r);t.set(i.subarray(0,a),n),n+=a,r-=a}return{type:t[0],streamId:(t[1]<<24|t[2]<<16|t[3]<<8|t[4])>>>0,length:(t[5]<<24|t[6]<<16|t[7]<<8|t[8])>>>0}}function f(e){if(e===0)return po;let t=new Uint8Array(e),n=0,r=e;for(;r>0&&c.length>0;){let e=c[0];if(!e)break;let i=Math.min(e.length,r);t.set(e.subarray(0,i),n),n+=i,r-=i,i===e.length?c.shift():c[0]=e.subarray(i)}return l-=e,t}try{for(;;){let{done:e,value:a}=await n.read();if(i||e)break;if(a){if(l+a.length>mo)throw Error(`Framed response buffer exceeded ${mo} bytes`);for(c.push(a),l+=a.length;;){let e=d();if(!e)break;let{type:n,streamId:i,length:a}=e;if(n!==xe.JSON&&n!==xe.CHUNK&&n!==xe.END&&n!==xe.ERROR)throw Error(`Unknown frame type: ${n}`);if(n===xe.JSON){if(i!==0)throw Error(`Invalid JSON frame streamId (expected 0)`)}else if(i===0)throw Error(`Invalid raw frame streamId (expected non-zero)`);if(a>V)throw Error(`Frame payload too large: ${a} bytes (max ${V})`);let c=9+a;if(l<c)break;if(++o>go)throw Error(`Too many frames in framed response (max ${go})`);f(9);let p=f(a);switch(n){case xe.JSON:try{s.enqueue(fo.decode(p))}catch{}break;case xe.CHUNK:{let e=u(i);e&&e.enqueue(p);break}case xe.END:{let e=u(i);if(r.add(i),e){try{e.close()}catch{}t.delete(i)}break}case xe.ERROR:{let e=u(i);if(r.add(i),e){let n=fo.decode(p);e.error(Error(n)),t.delete(i)}break}}}}}if(l!==0)throw Error(`Incomplete frame at end of framed response`);try{s.close()}catch{}t.forEach(e=>{try{e.close()}catch{}}),t.clear()}catch(e){try{s.error(e)}catch{}t.forEach(t=>{try{t.error(e)}catch{}}),t.clear()}finally{try{n.releaseLock()}catch{}a=null}})(),{getOrCreateStream:l,jsonChunks:c}}var vo=null;async function yo(e){e.length>0&&await Promise.allSettled(e)}var bo=Object.prototype.hasOwnProperty;function xo(e){for(let t in e)if(bo.call(e,t))return!0;return!1}async function So(e,t,n){vo||=uo();let r=t[0],i=r.fetch??n,a=r.data instanceof FormData?`formData`:`payload`,o=r.headers?new Headers(r.headers):new Headers;if(o.set(`x-tsr-serverFn`,`true`),a===`payload`&&o.set(`accept`,`${be}, application/x-ndjson, application/json`),r.method===`GET`){if(a===`formData`)throw Error(`FormData is not supported with GET requests`);let t=await Co(r);if(t!==void 0){let n=De({payload:t});e.includes(`?`)?e+=`&${n}`:e+=`?${n}`}}let s;if(r.method===`POST`){let e=await To(r);e?.contentType&&o.set(`content-type`,e.contentType),s=e?.body}return await Eo(async()=>i(e,{method:r.method,headers:o,signal:r.signal,body:s}))}async function Co(e){let t=!1,n={};if(e.data!==void 0&&(t=!0,n.data=e.data),e.context&&xo(e.context)&&(t=!0,n.context=e.context),t)return wo(n)}async function wo(e){return JSON.stringify(await Promise.resolve(za(e,{plugins:vo})))}async function To(e){if(e.data instanceof FormData){let t;return e.context&&xo(e.context)&&(t=await wo(e.context)),t!==void 0&&e.data.set(_e,t),{body:e.data}}let t=await Co(e);if(t)return{body:t,contentType:`application/json`}}async function Eo(e){let t;try{t=await e()}catch(e){if(e instanceof Response)t=e;else throw console.log(e),e}if(t.headers.get(`x-tss-raw`)===`true`)return t;let n=t.headers.get(`content-type`);if(n||_(),t.headers.get(`x-tss-serialized`)){let e;if(n.includes(`application/x-tss-framed`)){if(we(n),!t.body)throw Error(`No response body for framed response`);let{getOrCreateStream:r,jsonChunks:i}=_o(t.body),a=[ro(r),...vo||[]],o=new Map;e=await Do({jsonStream:i,onMessage:e=>Ra(e,{refs:o,plugins:a}),onError(e,t){console.error(e,t)}})}else if(n.includes(`application/json`)){let n=await t.json(),r=[];try{e=Ra(n,{plugins:vo})}finally{}await yo(r)}if(e||_(),e instanceof Error)throw e;return e}if(n.includes(`application/json`)){let e=await t.json(),n=Le(e);if(n)throw n;if(Ee(e))throw e;return e}if(!t.ok)throw Error(await t.text());return t}async function Do({jsonStream:e,onMessage:t,onError:n}){let r=e.getReader(),{value:i,done:a}=await r.read();if(a||!i)throw Error(`Stream ended before first object`);let o=JSON.parse(i),s=!1,c=(async()=>{try{for(;;){let{value:e,done:i}=await r.read();if(i)break;if(e)try{let n=[];try{t(JSON.parse(e))}finally{}await yo(n)}catch(t){n?.(`Invalid JSON: ${e}`,t)}}}catch(e){s||n?.(`Stream processing error:`,e)}})(),l,u=[];try{l=t(o)}catch(e){throw s=!0,r.cancel().catch(()=>{}),e}return await yo(u),Promise.resolve(l).catch(()=>{s=!0,r.cancel().catch(()=>{})}),c.finally(()=>{try{r.releaseLock()}catch{}}),l}function Oo(e){let t=`/_serverFn/`+e;return Object.assign((...e)=>{let n=Te()?.serverFns?.fetch;return So(t,e,n??fetch)},{url:t,serverFnMeta:{id:e},[ve]:!0})}var ko=Ba({key:`$TSS/serverfn`,test:e=>typeof e!=`function`||!(ve in e)?!1:!!e[ve],toSerializable:({serverFnMeta:e})=>({functionId:e.id}),fromSerializable:({functionId:e})=>Oo(e)});function Ao(e){if(Array.isArray(e))return e.flatMap(e=>Ao(e));if(typeof e!=`string`)return[];let t=[],n=0,r,i,a,o,s,c=()=>{for(;n<e.length&&/\s/.test(e.charAt(n));)n+=1;return n<e.length},l=()=>(i=e.charAt(n),i!==`=`&&i!==`;`&&i!==`,`);for(;n<e.length;){for(r=n,s=!1;c();)if(i=e.charAt(n),i===`,`){for(a=n,n+=1,c(),o=n;n<e.length&&l();)n+=1;n<e.length&&e.charAt(n)===`=`?(s=!0,n=o,t.push(e.slice(r,a)),r=n):n=a+1}else n+=1;(!s||n>=e.length)&&t.push(e.slice(r))}return t}function jo(e){return e instanceof Headers?e:Array.isArray(e)||typeof e==`object`?new Headers(e):null}function Mo(...e){return e.reduce((e,t)=>{let n=jo(t);if(!n)return e;for(let[t,r]of n.entries())t===`set-cookie`?Ao(r).forEach(t=>e.append(`set-cookie`,t)):e.set(t,r);return e},new Headers)}function No(e){return e.replaceAll(`\0`,`/`).replaceAll(`�`,`/`)}function Po(e,t){e.id=t.i,e.__beforeLoadContext=t.b,e.loaderData=t.l,e.status=t.s,e.ssr=t.ssr,e.updatedAt=t.u,e.error=t.e,t.g!==void 0&&(e.globalNotFound=t.g)}async function Fo(e){window.$_TSR||_();let t=e.options.serializationAdapters;if(t?.length){let e=new Map;t.forEach(t=>{e.set(t.key,t.fromSerializable)}),window.$_TSR.t=e,window.$_TSR.buffer.forEach(e=>e())}window.$_TSR.initialized=!0,window.$_TSR.router||_();let n=window.$_TSR.router;n.matches.forEach(e=>{e.i=No(e.i)}),n.lastMatchId&&=No(n.lastMatchId);let{manifest:r,dehydratedData:i,lastMatchId:a}=n;e.ssr={manifest:r};let o=document.querySelector(`meta[property="csp-nonce"]`)?.content;e.options.ssr={nonce:o},await e.options.hydrate?.(i);let s=e.matchRoutes(e.stores.location.get()),c=Promise.all(s.map(t=>e.loadRouteChunk(e.looseRoutesById[t.routeId])));function l(t){let n=e.looseRoutesById[t.routeId].options.pendingMinMs??e.options.defaultPendingMinMs;if(n){let r=te();t._nonReactive.minPendingPromise=r,t._forcePending=!0,setTimeout(()=>{r.resolve(),e.updateMatch(t.id,e=>(e._nonReactive.minPendingPromise=void 0,{...e,_forcePending:void 0}))},n)}}function u(t){let n=e.looseRoutesById[t.routeId];n&&(n.options.ssr=t.ssr)}let d;s.forEach(e=>{let t=n.matches.find(t=>t.i===e.id);if(!t){e._nonReactive.dehydrated=!1,e.ssr=!1,u(e);return}Po(e,t),u(e),e._nonReactive.dehydrated=e.ssr!==!1,(e.ssr===`data-only`||e.ssr===!1)&&d===void 0&&(d=e.index,l(e))}),e.stores.setMatches(s);let f=e.stores.matches.get(),p=e.stores.location.get();await Promise.all(f.map(async t=>{try{let n=e.looseRoutesById[t.routeId],r=f[t.index-1]?.context??e.options.context;if(n.options.context){let i={deps:t.loaderDeps,params:t.params,context:r??{},location:p,navigate:t=>e.navigate({...t,_fromLocation:p}),buildLocation:e.buildLocation,cause:t.cause,abortController:t.abortController,preload:!1,matches:s,routeId:n.id};t.__routeContext=n.options.context(i)??void 0}t.context={...r,...t.__routeContext,...t.__beforeLoadContext};let i={ssr:e.options.ssr,matches:f,match:t,params:t.params,loaderData:t.loaderData},a=await n.options.head?.(i),o=await n.options.scripts?.(i);t.meta=a?.meta,t.links=a?.links,t.headScripts=a?.scripts,t.styles=a?.styles,t.scripts=o}catch(e){if(Ee(e))t.error={isNotFound:!0},console.error(`NotFound error during hydration for routeId: ${t.routeId}`,e);else throw t.error=e,console.error(`Error during hydration for route ${t.routeId}:`,e),e}}));let m=s[s.length-1].id!==a;if(!s.some(e=>e.ssr===!1)&&!m)return s.forEach(e=>{e._nonReactive.dehydrated=void 0}),e.stores.resolvedLocation.set(e.stores.location.get()),c;let h=Promise.resolve().then(()=>e.load()).catch(e=>{console.error(`Error during router hydration:`,e)});if(m){let t=s[1];t||_(),l(t),t._displayPending=!0,t._nonReactive.displayPendingPromise=h,h.then(()=>{e.batch(()=>{e.stores.status.get()===`pending`&&(e.stores.status.set(`idle`),e.stores.resolvedLocation.set(e.stores.location.get())),e.updateMatch(t.id,e=>({...e,_displayPending:void 0,displayPendingPromise:void 0}))})})}return c}var H=e(d(),1),U=F();function Io({promise:e}){if(se)return se(e);let t=Xt(e);if(t[Yt].status===`pending`)throw t;if(t[Yt].status===`error`)throw t[Yt].error;return t[Yt].data}function Lo(e){let t=(0,U.jsx)(Ro,{...e});return e.fallback?(0,U.jsx)(H.Suspense,{fallback:e.fallback,children:t}):t}function Ro(e){let t=Io(e);return e.children(t)}function zo(e){let t=e.errorComponent??Vo;return(0,U.jsx)(Bo,{getResetKey:e.getResetKey,onCatch:e.onCatch,children:({error:n,reset:r})=>n?H.createElement(t,{error:n,reset:r}):e.children})}var Bo=class extends H.Component{constructor(...e){super(...e),this.state={error:null}}static getDerivedStateFromProps(e,t){let n=e.getResetKey();return t.error&&t.resetKey!==n?{resetKey:n,error:null}:{resetKey:n}}static getDerivedStateFromError(e){return{error:e}}reset(){this.setState({error:null})}componentDidCatch(e,t){this.props.onCatch&&this.props.onCatch(e,t)}render(){return this.props.children({error:this.state.error,reset:()=>{this.reset()}})}};function Vo({error:e}){let[t,n]=H.useState(!1);return(0,U.jsxs)(`div`,{style:{padding:`.5rem`,maxWidth:`100%`},children:[(0,U.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,gap:`.5rem`},children:[(0,U.jsx)(`strong`,{style:{fontSize:`1rem`},children:`Something went wrong!`}),(0,U.jsx)(`button`,{style:{appearance:`none`,fontSize:`.6em`,border:`1px solid currentColor`,padding:`.1rem .2rem`,fontWeight:`bold`,borderRadius:`.25rem`},onClick:()=>n(e=>!e),children:t?`Hide Error`:`Show Error`})]}),(0,U.jsx)(`div`,{style:{height:`.25rem`}}),t?(0,U.jsx)(`div`,{children:(0,U.jsx)(`pre`,{style:{fontSize:`.7em`,border:`1px solid red`,borderRadius:`.25rem`,padding:`.3rem`,color:`red`,overflow:`auto`},children:e.message?(0,U.jsx)(`code`,{children:e.message}):null})}):null]})}var Ho=H.createContext(void 0),Uo=H.createContext(void 0),Wo=(e=>(e[e.None=0]=`None`,e[e.Mutable=1]=`Mutable`,e[e.Watching=2]=`Watching`,e[e.RecursedCheck=4]=`RecursedCheck`,e[e.Recursed=8]=`Recursed`,e[e.Dirty=16]=`Dirty`,e[e.Pending=32]=`Pending`,e))(Wo||{});function Go({update:e,notify:t,unwatched:n}){return{link:r,unlink:i,propagate:a,checkDirty:o,shallowPropagate:s};function r(e,t,n){let r=t.depsTail;if(r!==void 0&&r.dep===e)return;let i=r===void 0?t.deps:r.nextDep;if(i!==void 0&&i.dep===e){i.version=n,t.depsTail=i;return}let a=e.subsTail;if(a!==void 0&&a.version===n&&a.sub===t)return;let o=t.depsTail=e.subsTail={version:n,dep:e,sub:t,prevDep:r,nextDep:i,prevSub:a,nextSub:void 0};i!==void 0&&(i.prevDep=o),r===void 0?t.deps=o:r.nextDep=o,a===void 0?e.subs=o:a.nextSub=o}function i(e,t=e.sub){let r=e.dep,i=e.prevDep,a=e.nextDep,o=e.nextSub,s=e.prevSub;return a===void 0?t.depsTail=i:a.prevDep=i,i===void 0?t.deps=a:i.nextDep=a,o===void 0?r.subsTail=s:o.prevSub=s,s===void 0?(r.subs=o)===void 0&&n(r):s.nextSub=o,a}function a(e){let n=e.nextSub,r;top:do{let i=e.sub,a=i.flags;if(a&60?a&12?a&4?!(a&48)&&c(e,i)?(i.flags=a|40,a&=1):a=0:i.flags=a&-9|32:a=0:i.flags=a|32,a&2&&t(i),a&1){let t=i.subs;if(t!==void 0){let i=(e=t).nextSub;i!==void 0&&(r={value:n,prev:r},n=i);continue}}if((e=n)!==void 0){n=e.nextSub;continue}for(;r!==void 0;)if(e=r.value,r=r.prev,e!==void 0){n=e.nextSub;continue top}break}while(!0)}function o(t,n){let r,i=0,a=!1;top:do{let o=t.dep,c=o.flags;if(n.flags&16)a=!0;else if((c&17)==17){if(e(o)){let e=o.subs;e.nextSub!==void 0&&s(e),a=!0}}else if((c&33)==33){(t.nextSub!==void 0||t.prevSub!==void 0)&&(r={value:t,prev:r}),t=o.deps,n=o,++i;continue}if(!a){let e=t.nextDep;if(e!==void 0){t=e;continue}}for(;i--;){let i=n.subs,o=i.nextSub!==void 0;if(o?(t=r.value,r=r.prev):t=i,a){if(e(n)){o&&s(i),n=t.sub;continue}a=!1}else n.flags&=-33;n=t.sub;let c=t.nextDep;if(c!==void 0){t=c;continue top}}return a}while(!0)}function s(e){do{let n=e.sub,r=n.flags;(r&48)==32&&(n.flags=r|16,(r&6)==2&&t(n))}while((e=e.nextSub)!==void 0)}function c(e,t){let n=t.depsTail;for(;n!==void 0;){if(n===e)return!0;n=n.prevDep}return!1}}function Ko(e,t,n){let r=typeof e==`object`,i=r?e:void 0;return{next:(r?e.next:e)?.bind(i),error:(r?e.error:t)?.bind(i),complete:(r?e.complete:n)?.bind(i)}}var qo=[],Jo=0,{link:Yo,unlink:Xo,propagate:Zo,checkDirty:Qo,shallowPropagate:$o}=Go({update(e){return e._update()},notify(e){qo[ts++]=e,e.flags&=~Wo.Watching},unwatched(e){e.depsTail!==void 0&&(e.depsTail=void 0,e.flags=Wo.Mutable|Wo.Dirty,as(e))}}),es=0,ts=0,ns,rs=0;function is(e){try{++rs,e()}finally{--rs||os()}}function as(e){let t=e.depsTail,n=t===void 0?e.deps:t.nextDep;for(;n!==void 0;)n=Xo(n,e)}function os(){if(!(rs>0)){for(;es<ts;){let e=qo[es];qo[es++]=void 0,e.notify()}es=0,ts=0}}function ss(e,t){let n=typeof e==`function`,r=e,i={_snapshot:n?void 0:e,subs:void 0,subsTail:void 0,deps:void 0,depsTail:void 0,flags:n?Wo.None:Wo.Mutable,get(){return ns!==void 0&&Yo(i,ns,Jo),i._snapshot},subscribe(e){let t=Ko(e),n={current:!1},r=cs(()=>{i.get(),n.current?t.next?.(i._snapshot):n.current=!0});return{unsubscribe:()=>{r.stop()}}},_update(e){let a=ns,o=t?.compare??Object.is;if(n)ns=i,++Jo,i.depsTail=void 0;else if(e===void 0)return!1;n&&(i.flags=Wo.Mutable|Wo.RecursedCheck);try{let t=i._snapshot,a=typeof e==`function`?e(t):e===void 0&&n?r(t):e;return t===void 0||!o(t,a)?(i._snapshot=a,!0):!1}finally{ns=a,n&&(i.flags&=~Wo.RecursedCheck),as(i)}}};return n?(i.flags=Wo.Mutable|Wo.Dirty,i.get=function(){let e=i.flags;if(e&Wo.Dirty||e&Wo.Pending&&Qo(i.deps,i)){if(i._update()){let e=i.subs;e!==void 0&&$o(e)}}else e&Wo.Pending&&(i.flags=e&~Wo.Pending);return ns!==void 0&&Yo(i,ns,Jo),i._snapshot}):i.set=function(e){if(i._update(e)){let e=i.subs;e!==void 0&&(Zo(e),$o(e),os())}},i}function cs(e){let t=()=>{let t=ns;ns=n,++Jo,n.depsTail=void 0,n.flags=Wo.Watching|Wo.RecursedCheck;try{return e()}finally{ns=t,n.flags&=~Wo.RecursedCheck,as(n)}},n={deps:void 0,depsTail:void 0,subs:void 0,subsTail:void 0,flags:Wo.Watching|Wo.RecursedCheck,notify(){let e=this.flags;e&Wo.Dirty||e&Wo.Pending&&Qo(this.deps,this)?t():this.flags=Wo.Watching},stop(){this.flags=Wo.None,this.depsTail=void 0,as(this)}};return t(),n}var ls={get(){},subscribe(){return{unsubscribe(){}}}};function us(e,t){let n=H.useRef();return r=>{let i=e?.select?e.select(r):r;return e?.structuralSharing??t.options.defaultStructuralSharing?n.current=S(n.current,i):i}}function ds(e){let t=D(),n=H.useContext(e.from?Uo:Ho),r=e.from?t.stores.getRouteMatchStore(e.from):t.stores.matchStores.get(n),i=us(e,t),a=re(r??ls,e=>e?i(e):ls);if(a!==ls)return a;(e.shouldThrow??!0)&&_()}function fs(e){return ds({from:e.from,strict:e.strict,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.loaderData):t.loaderData})}function ps(e){let{select:t,...n}=e;return ds({...n,select:e=>t?t(e.loaderDeps):e.loaderDeps})}function ms(e){return ds({from:e.from,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,strict:e.strict,select:t=>{let n=e.strict===!1?t.params:t._strictParams;return e.select?e.select(n):n}})}function hs(e){return ds({from:e.from,strict:e.strict,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.search):t.search})}function gs(e){let t=D();return H.useCallback(n=>t.navigate({...n,from:n.from??e?.from}),[e?.from,t])}function _s(e){return ds({...e,select:t=>e.select?e.select(t.context):t.context})}var vs=class extends rn{constructor(e){super(e),this.useMatch=e=>ds({select:e?.select,from:this.id,structuralSharing:e?.structuralSharing}),this.useRouteContext=e=>_s({...e,from:this.id}),this.useSearch=e=>hs({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useParams=e=>ms({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useLoaderDeps=e=>ps({...e,from:this.id}),this.useLoaderData=e=>fs({...e,from:this.id}),this.useNavigate=()=>gs({from:this.fullPath}),this.Link=H.forwardRef((e,t)=>(0,U.jsx)(oe,{ref:t,from:this.fullPath,...e}))}};function ys(e){return new vs(e)}var bs=class extends an{constructor(e){super(e),this.useMatch=e=>ds({select:e?.select,from:this.id,structuralSharing:e?.structuralSharing}),this.useRouteContext=e=>_s({...e,from:this.id}),this.useSearch=e=>hs({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useParams=e=>ms({select:e?.select,structuralSharing:e?.structuralSharing,from:this.id}),this.useLoaderDeps=e=>ps({...e,from:this.id}),this.useLoaderData=e=>fs({...e,from:this.id}),this.useNavigate=()=>gs({from:this.fullPath}),this.Link=H.forwardRef((e,t)=>(0,U.jsx)(oe,{ref:t,from:this.fullPath,...e}))}};function xs(e){return new bs(e)}function Ss(e){return new Cs(e,{silent:!0}).createRoute}var Cs=class{constructor(e,t){this.path=e,this.createRoute=e=>{let t=ys(e);return t.isRoot=!1,t},this.silent=t?.silent}};function ws(e,t){let n,r,i,a,o=()=>(n||=e().then(e=>{n=void 0,r=e[t??`default`]}).catch(e=>{if(i=e,fe(i)&&i instanceof Error&&typeof window<`u`&&typeof sessionStorage<`u`){let e=`tanstack_router_reload:${i.message}`;sessionStorage.getItem(e)||(sessionStorage.setItem(e,`1`),a=!0)}}),n),s=function(e){if(a)throw window.location.reload(),new Promise(()=>{});if(i)throw i;if(!r)if(se)se(o());else throw o();return H.createElement(r,e)};return s.preload=o,s}function Ts(e){let t=D(),n=`not-found-${re(t.stores.location,e=>e.pathname)}-${re(t.stores.status,e=>e)}`;return(0,U.jsx)(zo,{getResetKey:()=>n,onCatch:(t,n)=>{if(Ee(t))e.onCatch?.(t,n);else throw t},errorComponent:({error:t})=>{if(Ee(t))return e.fallback?.(t);throw t},children:e.children})}function Es(){return(0,U.jsx)(`p`,{children:`Not Found`})}function Ds(e){return(0,U.jsx)(U.Fragment,{children:e.children})}function Os(e,t,n){return t.options.notFoundComponent?(0,U.jsx)(t.options.notFoundComponent,{...n}):e.options.defaultNotFoundComponent?(0,U.jsx)(e.options.defaultNotFoundComponent,{...n}):(0,U.jsx)(Es,{})}var ks=(e,t)=>e.routeId===t.routeId&&e._displayPending===t._displayPending,As=(e,t)=>e[0]===t[0]&&e[1]===t[1],js=H.memo(function({matchId:e}){let t=D(),n=t.stores.matchStores.get(e);n||_();let r=re(t.stores.loadedAt,e=>e),i=re(n,e=>e,ks);return(0,U.jsx)(Ms,{router:t,matchId:e,resetKey:r,matchState:H.useMemo(()=>{let e=i.routeId,n=t.routesById[e].parentRoute?.id;return{routeId:e,ssr:i.ssr,_displayPending:i._displayPending,parentRouteId:n}},[i._displayPending,i.routeId,i.ssr,t.routesById])})});function Ms({router:e,matchId:t,resetKey:n,matchState:r}){let i=e.routesById[r.routeId],a=i.options.pendingComponent??e.options.defaultPendingComponent,o=a?(0,U.jsx)(a,{}):null,s=i.options.errorComponent??e.options.defaultErrorComponent,c=i.options.onCatch??e.options.defaultOnCatch,l=i.isRoot?i.options.notFoundComponent??e.options.notFoundRoute?.options.component:i.options.notFoundComponent,u=r.ssr===!1||r.ssr===`data-only`,d=(!i.isRoot||i.options.wrapInSuspense||u)&&(i.options.wrapInSuspense??a??(i.options.errorComponent?.preload||u))?H.Suspense:Ds,f=s?zo:Ds,p=l?Ts:Ds;return(0,U.jsxs)(i.isRoot?i.options.shellComponent??Ds:Ds,{children:[(0,U.jsx)(Ho.Provider,{value:t,children:(0,U.jsx)(d,{fallback:o,children:(0,U.jsx)(f,{getResetKey:()=>n,errorComponent:s||Vo,onCatch:(e,t)=>{if(Ee(e))throw e.routeId??=r.routeId,e;c?.(e,t)},children:(0,U.jsx)(p,{fallback:e=>{if(e.routeId??=r.routeId,!l||e.routeId&&e.routeId!==r.routeId||!e.routeId&&!i.isRoot)throw e;return H.createElement(l,e)},children:u||r._displayPending?(0,U.jsx)(L,{fallback:o,children:(0,U.jsx)(Ps,{matchId:t})}):(0,U.jsx)(Ps,{matchId:t})})})})}),r.parentRouteId===`__root__`?(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(Ns,{}),(e.options.scrollRestoration,null)]}):null]})}function Ns(){let e=D(),t=H.useRef();return A(()=>{let n=e.stores.resolvedLocation.get(),r=t.current;n&&(!r||r.href!==n.href)&&e.emit({type:`onRendered`,...Ct(e.stores.location.get(),r??n)}),t.current=n},[re(e.stores.resolvedLocation,e=>e?.state.__TSR_key),e]),null}var Ps=H.memo(function({matchId:e}){let t=D(),n=(e,n)=>t.getMatch(e.id)?._nonReactive[n]??e._nonReactive[n],r=t.stores.matchStores.get(e);r||_();let i=re(r,e=>e),a=i.routeId,o=t.routesById[a],s=H.useMemo(()=>{let e=(t.routesById[a].options.remountDeps??t.options.defaultRemountDeps)?.({routeId:a,loaderDeps:i.loaderDeps,params:i._strictParams,search:i._strictSearch});return e?JSON.stringify(e):void 0},[a,i.loaderDeps,i._strictParams,i._strictSearch,t.options.defaultRemountDeps,t.routesById]),c=H.useMemo(()=>{let e=o.options.component??t.options.defaultComponent;return e?(0,U.jsx)(e,{},s):(0,U.jsx)(Fs,{})},[s,o.options.component,t.options.defaultComponent]);if(i._displayPending)throw n(i,`displayPendingPromise`);if(i._forcePending)throw n(i,`minPendingPromise`);if(i.status===`pending`){let e=o.options.pendingMinMs??t.options.defaultPendingMinMs;if(e){let n=t.getMatch(i.id);if(n&&!n._nonReactive.minPendingPromise){let t=te();n._nonReactive.minPendingPromise=t,setTimeout(()=>{t.resolve(),n._nonReactive.minPendingPromise=void 0},e)}}throw n(i,`loadPromise`)}if(i.status===`notFound`)return Ee(i.error)||_(),Os(t,o,i.error);if(i.status===`redirected`)throw Ie(i.error)||_(),n(i,`loadPromise`);if(i.status===`error`)throw i.error;return c}),Fs=H.memo(function(){let e=D(),t=H.useContext(Ho),n,r=!1,i;{let a=t?e.stores.matchStores.get(t):void 0;[n,r]=re(a,e=>[e?.routeId,e?.globalNotFound??!1],As),i=re(e.stores.matchesId,e=>e[e.findIndex(e=>e===t)+1])}let a=n?e.routesById[n]:void 0,o=e.options.defaultPendingComponent?(0,U.jsx)(e.options.defaultPendingComponent,{}):null;if(r)return a||_(),Os(e,a,void 0);if(!i)return null;let s=(0,U.jsx)(js,{matchId:i});return n===`__root__`?(0,U.jsx)(H.Suspense,{fallback:o,children:s}):s});function Is(){let e=D(),t=H.useRef({router:e,mounted:!1}),[n,r]=H.useState(!1),i=re(e.stores.isLoading,e=>e),a=re(e.stores.hasPending,e=>e),o=j(i),s=i||n||a,c=j(s),l=i||a,u=j(l);return e.startTransition=e=>{r(!0),H.startTransition(()=>{e(),r(!1)})},H.useEffect(()=>{let t=e.history.subscribe(e.load),n=e.buildLocation({to:e.latestLocation.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0});return O(e.latestLocation.publicHref)!==O(n.publicHref)&&e.commitLocation({...n,replace:!0}),()=>{t()}},[e,e.history]),A(()=>{typeof window<`u`&&e.ssr||t.current.router===e&&t.current.mounted||(t.current={router:e,mounted:!0},(async()=>{try{await e.load()}catch(e){console.error(e)}})())},[e]),A(()=>{o&&!i&&e.emit({type:`onLoad`,...Ct(e.stores.location.get(),e.stores.resolvedLocation.get())})},[o,e,i]),A(()=>{u&&!l&&e.emit({type:`onBeforeRouteMount`,...Ct(e.stores.location.get(),e.stores.resolvedLocation.get())})},[l,u,e]),A(()=>{if(c&&!s){let t=Ct(e.stores.location.get(),e.stores.resolvedLocation.get());e.emit({type:`onResolved`,...t}),is(()=>{e.stores.status.set(`idle`),e.stores.resolvedLocation.set(e.stores.location.get())})}},[s,c,e]),null}function Ls(){let e=D(),t=e.routesById.__root__.options.pendingComponent??e.options.defaultPendingComponent,n=t?(0,U.jsx)(t,{}):null,r=(0,U.jsxs)(typeof document<`u`&&e.ssr?Ds:H.Suspense,{fallback:n,children:[(0,U.jsx)(Is,{}),(0,U.jsx)(Rs,{})]});return e.options.InnerWrap?(0,U.jsx)(e.options.InnerWrap,{children:r}):r}function Rs(){let e=D(),t=re(e.stores.firstId,e=>e),n=re(e.stores.loadedAt,e=>e),r=t?(0,U.jsx)(js,{matchId:t}):null;return(0,U.jsx)(Ho.Provider,{value:t,children:e.options.disableGlobalCatchBoundary?r:(0,U.jsx)(zo,{getResetKey:()=>n,errorComponent:Vo,onCatch:void 0,children:r})})}var zs=e=>({createMutableStore:ss,createReadonlyStore:ss,batch:is}),Bs=e=>new Vs(e),Vs=class extends Tt{constructor(e){super(e,zs)}};function Hs({router:e,children:t,...n}){m(n)&&e.update({...e.options,...n,context:{...e.options.context,...n.context}});let r=(0,U.jsx)(ie.Provider,{value:e,children:t});return e.options.Wrap?(0,U.jsx)(e.options.Wrap,{children:r}):r}function Us({router:e,...t}){return(0,U.jsx)(Hs,{router:e,...t,children:(0,U.jsx)(Ls,{})})}function Ws(e,t){if(t)for(let[n,r]of Object.entries(t))n!==`suppressHydrationWarning`&&r!==void 0&&r!==!1&&e.setAttribute(n,typeof r==`boolean`?``:String(r))}function Gs(e){let{attrs:t,children:n,nonce:r,preventScriptHoist:i}=e;switch(e.tag){case`title`:return(0,U.jsx)(`title`,{...t,suppressHydrationWarning:!0,children:n});case`meta`:return(0,U.jsx)(`meta`,{...t,suppressHydrationWarning:!0});case`link`:return(0,U.jsx)(`link`,{...t,precedence:t?.precedence??(t?.rel===`stylesheet`?`default`:void 0),nonce:r,suppressHydrationWarning:!0});case`style`:return e.inlineCss,(0,U.jsx)(`style`,{...t,dangerouslySetInnerHTML:{__html:n},nonce:r});case`script`:return(0,U.jsx)(Ks,{attrs:t,preventScriptHoist:i,children:n});default:return null}}function Ks({attrs:e,children:t,preventScriptHoist:n}){D();let r=k(),i=typeof e?.type==`string`&&e.type!==``&&e.type!==`text/javascript`&&e.type!==`module`;if(H.useEffect(()=>{if(!i){if(e?.src){let t=(()=>{try{let t=document.baseURI||window.location.href;return new URL(e.src,t).href}catch{return e.src}})();for(let e of document.querySelectorAll(`script[src]`))if(e.src===t)return;let n=document.createElement(`script`);return Ws(n,e),document.head.appendChild(n),()=>n.remove()}if(typeof t==`string`){let n=typeof e?.type==`string`?e.type:`text/javascript`,r=typeof e?.nonce==`string`?e.nonce:void 0;for(let e of document.querySelectorAll(`script:not([src])`)){if(!(e instanceof HTMLScriptElement))continue;let i=e.getAttribute(`type`)??`text/javascript`,a=e.getAttribute(`nonce`)??void 0;if(e.textContent===t&&i===n&&a===r)return}let i=document.createElement(`script`);return i.textContent=t,Ws(i,e),document.head.appendChild(i),()=>i.remove()}}},[e,t,i]),i&&typeof t==`string`)return(0,U.jsx)(`script`,{...e,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:t}});if(!r){if(e?.src)return(0,U.jsx)(`script`,{...e,suppressHydrationWarning:!0});if(typeof t==`string`)return(0,U.jsx)(`script`,{...e,dangerouslySetInnerHTML:{__html:t},suppressHydrationWarning:!0})}return null}var qs=e=>{let t=D(),n=t.options.ssr?.nonce,r=re(t.stores.matches,e=>e.map(e=>e.meta).filter(e=>e!==void 0),g),i=H.useMemo(()=>{let e=[],t={},i;for(let a=r.length-1;a>=0;a--){let o=r[a];for(let r=o.length-1;r>=0;r--){let a=o[r];if(a)if(a.title)i||={tag:`title`,children:a.title};else if(`script:ld+json`in a)try{let t=JSON.stringify(a[`script:ld+json`]);e.push({tag:`script`,attrs:{type:`application/ld+json`},children:u(t)})}catch{}else{let r=a.name??a.property;if(r){if(t[r])continue;t[r]=!0}e.push({tag:`meta`,attrs:{...a,nonce:n}})}}}return i&&e.push(i),n&&e.push({tag:`meta`,attrs:{property:`csp-nonce`,content:n}}),e.reverse(),e},[r,n]),a=re(t.stores.matches,e=>e.flatMap(e=>e.links??[]).filter(e=>e!==void 0).map(e=>({tag:`link`,attrs:{...e,nonce:n}})),g),o=re(t.stores.matches,r=>{let i=t.ssr?.manifest,a=[];return i?(r.forEach(t=>{i.routes[t.routeId]?.css?.forEach(t=>{let r=nn(t);a.push({tag:`link`,attrs:{rel:`stylesheet`,...r,crossOrigin:Zt(e,`stylesheet`)??r.crossOrigin,suppressHydrationWarning:!0,nonce:n}})})}),i.inlineStyle&&a.push({tag:`style`,attrs:{...i.inlineStyle.attrs,nonce:n},children:i.inlineStyle.children,inlineCss:!0}),a):a},g),s=re(t.stores.matches,r=>{let i=[],a=t.ssr?.manifest;return a&&r.forEach(t=>{a.routes[t.routeId]?.preloads?.forEach(t=>{i.push({tag:`link`,attrs:{...$t(a,t,e),nonce:n}})})}),i},g),c=re(t.stores.matches,e=>e.flatMap(e=>e.styles??[]).filter(e=>e!==void 0).map(({children:e,...t})=>({tag:`style`,attrs:{...t,nonce:n},children:e})),g),l=re(t.stores.matches,e=>e.flatMap(e=>e.headScripts??[]).filter(e=>e!==void 0).map(({children:e,...t})=>({tag:`script`,attrs:{...t,nonce:n},children:e})),g),d=[];return tn(d,i),d.push(...s),tn(d,a),d.push(...o),tn(d,c),tn(d,l),d};function Js(e){let t=qs(e.assetCrossOrigin),n=D().options.ssr?.nonce;return(0,U.jsx)(U.Fragment,{children:t.map(e=>(0,H.createElement)(Gs,{...e,key:`tsr-meta-${JSON.stringify(e)}`,nonce:n}))})}var Ys=()=>{let e=D(),t=e.options.ssr?.nonce,n=n=>{let r=[],i=e.ssr?.manifest;if(!i)return[];for(let e of n){let n=i.routes[e.routeId]?.scripts;if(n)for(let e of n)r.push({tag:`script`,attrs:{...e.attrs,nonce:t},children:e.children,...typeof e.attrs?.src==`string`?{preventScriptHoist:!0}:{}})}return r},r=e=>e.map(e=>e.scripts).flat(1).filter(Boolean).map(({children:e,...n})=>({tag:`script`,attrs:{...n,suppressHydrationWarning:!0,nonce:t},children:e})),i=re(e.stores.matches,n,g);return Xs(e,re(e.stores.matches,r,g),i)};function Xs(e,t,n){let r=[...t,...n];return(0,U.jsx)(U.Fragment,{children:r.map((e,t)=>(0,H.createElement)(Gs,{...e,key:`tsr-scripts-${e.tag}-${t}`}))})}function Zs(e){return e!==`__proto__`&&e!==`constructor`&&e!==`prototype`}function Qs(e,t){let n=Object.create(null);if(e)for(let t of Object.keys(e))Zs(t)&&(n[t]=e[t]);if(t&&typeof t==`object`)for(let e of Object.keys(t))Zs(e)&&(n[e]=t[e]);return n}function $s(e){if(!e)return Object.create(null);let t=Object.create(null);for(let n of Object.keys(e))Zs(n)&&(t[n]=e[n]);return t}var ec=()=>{throw Error(`createServerOnlyFn() functions can only be called on the server!`)},tc=(e,t)=>{let n=t||e||{};n.method===void 0&&(n.method=`GET`);let r=e=>tc(void 0,{...n,validator:e,inputValidator:e});return Object.assign(e=>tc(void 0,{...n,...e}),{options:n,middleware:e=>{let t=[...n.middleware||[]];e.map(e=>{ye in e?e.options.middleware&&t.push(...e.options.middleware):t.push(e)});let r=tc(void 0,{...n,middleware:t});return r[ye]=!0,r},validator:r,inputValidator:r,handler:(...e)=>{let[t,r]=e,i={...n,extractedFn:t,serverFn:r},a=[...i.middleware||[],ac(i)];return t.method=n.method,Object.assign(async e=>{let n=await nc(a,`client`,{...t,...i,data:e?.data,headers:e?.headers,signal:e?.signal,fetch:e?.fetch,context:$s()}),r=Le(n.error);if(r)throw r;if(n.error)throw n.error;return n.result},{...t,method:n.method,__executeServer:async e=>{let n=ec(),r=n.contextAfterGlobalMiddlewares;return await nc(a,`server`,{...t,...e,serverFnMeta:t.serverFnMeta,context:Qs(e.context,r),request:n.request}).then(e=>({result:e.result,error:e.error,context:e.sendContext}))}})}})};async function nc(e,t,n){let r=rc([...Te()?.functionMiddleware||[],...e]);if(t===`server`){let e=ec({throwIfNotFound:!1});e?.executedRequestMiddlewares&&(r=r.filter(t=>!e.executedRequestMiddlewares.has(t)))}let i=async e=>{let n=r.shift();if(!n)return e;try{let r=`validator`in n.options?n.options.validator:void 0;!r&&`inputValidator`in n.options&&(r=n.options.inputValidator),r&&t===`server`&&(e.data=await ic(r,e.data));let a;if(t===`client`?`client`in n.options&&(a=n.options.client):`server`in n.options&&(a=n.options.server),a){let t=async(t={})=>{let n=await i({...e,...t,context:Qs(e.context,t.context),sendContext:Qs(e.sendContext,t.sendContext),headers:Mo(e.headers,t.headers),_callSiteFetch:e._callSiteFetch,fetch:e._callSiteFetch??t.fetch??e.fetch,result:t.result===void 0?t instanceof Response?t:e.result:t.result,error:t.error??e.error});if(n.error)throw n.error;return n},n=await a({...e,next:t});if(Ie(n))return{...e,error:n};if(n instanceof Response)return{...e,result:n};if(!n)throw Error(`User middleware returned undefined. You must call next() or return a result in your middlewares.`);return n}return i(e)}catch(t){return{...e,error:t}}};return i({...n,headers:n.headers||{},sendContext:n.sendContext||{},context:n.context||$s(),_callSiteFetch:n.fetch})}function rc(e,t=100){let n=new Set,r=[],i=(e,a)=>{if(a>t)throw Error(`Middleware nesting depth exceeded maximum of ${t}. Check for circular references.`);e.forEach(e=>{e.options.middleware&&i(e.options.middleware,a+1),n.has(e)||(n.add(e),r.push(e))})};return i(e,0),r}async function ic(e,t){if(e==null)return{};if(`~standard`in e){let n=await e[`~standard`].validate(t);if(n.issues)throw Error(JSON.stringify(n.issues,void 0,2));return n.value}if(`parse`in e)return e.parse(t);if(typeof e==`function`)return e(t);throw Error(`Invalid validator type!`)}function ac(e){return{"~types":void 0,options:{inputValidator:e.validator??e.inputValidator,client:async({next:t,sendContext:n,fetch:r,...i})=>{let a={...i,context:n,fetch:r};return t(await e.extractedFn?.(a))},server:async({next:t,...n})=>{let r=await e.serverFn?.(n);return t({...n,result:r})}}}}function oc(e){let t=(0,H.useRef)(null);return t.current===null&&(t.current=e()),t.current}function sc(e,t){if(e?.inherit&&t){let{inherit:n,...r}=e;return{...t,...r}}return e}var cc=e=>!!(e&&e.getVelocity),lc=(0,H.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:`never`}),uc=new Set(`animate.exit.variants.initial.style.values.variants.transition.transformTemplate.custom.inherit.onBeforeLayoutMeasure.onAnimationStart.onAnimationComplete.onUpdate.onDragStart.onDrag.onDragEnd.onMeasureDragConstraints.onDirectionLock.onDragTransitionEnd._dragX._dragY.onHoverStart.onHoverEnd.onViewportEnter.onViewportLeave.globalTapTarget.propagate.ignoreStrict.viewport`.split(`.`));function dc(e){return e.startsWith(`while`)||e.startsWith(`drag`)&&e!==`draggable`||e.startsWith(`layout`)||e.startsWith(`onTap`)||e.startsWith(`onPan`)||e.startsWith(`onLayout`)||uc.has(e)}var fc=r({default:()=>pc}),pc,mc=n((()=>{throw pc={},Error(`Could not resolve "@emotion/is-prop-valid" imported by "framer-motion". Is it installed?`)})),hc=e=>!dc(e);function gc(e){typeof e==`function`&&(hc=t=>t.startsWith(`on`)?!dc(t):e(t))}try{gc((mc(),t(fc)).default)}catch{}function _c(e,t,n){let r={};for(let i in e)i===`values`&&typeof e.values==`object`||cc(e[i])||(hc(i)||n===!0&&dc(i)||!t&&!dc(i)||e.draggable&&i.startsWith(`onDrag`))&&(r[i]=e[i]);return r}function vc({children:e,isValidProp:t,...n}){t&&gc(t);let r=(0,H.useContext)(lc);n={...r,...n},n.transition=sc(n.transition,r.transition),n.isStatic=oc(()=>n.isStatic);let i=(0,H.useMemo)(()=>n,[JSON.stringify(n.transition),n.transformPagePoint,n.reducedMotion,n.skipAnimations]);return(0,U.jsx)(lc.Provider,{value:i,children:e})}var yc=`/assets/app-BLu5Ut7v.css`,bc={};function xc(e,t){let n=H.useRef(bc);return n.current===bc&&(n.current=e(t)),n}var Sc=[],Cc=void 0;function wc(){return Cc}function Tc(e){Sc.push(e)}function Ec(e){let t=(t,n)=>{let r=xc(Oc).current,i;try{Cc=r;for(let e of Sc)e.before(r);i=e(t,n);for(let e of Sc)e.after(r);r.didInitialize=!0}finally{Cc=void 0}return i};return t.displayName=e.displayName||e.name,t}function Dc(e){return H.forwardRef(Ec(e))}function Oc(){return{didInitialize:!1}}var W=typeof document<`u`?H.useLayoutEffect:()=>{};function kc(e,t){return function(n,...r){let i=new URL(e);return i.searchParams.set(`code`,n.toString()),r.forEach(e=>i.searchParams.append(`args[]`,e)),`${t} error #${n}; visit ${i} for the full message.`}}var Ac=kc(`https://base-ui.com/production-error`,`Base UI`),jc=H.createContext(void 0);function Mc(e){let t=H.useContext(jc);if(t===void 0&&!e)throw Error(Ac(72));return t}var Nc=[];function Pc(e){H.useEffect(e,Nc)}var Fc=0,Ic=class e{static create(){return new e}currentId=Fc;start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=Fc,t()},e)}isStarted(){return this.currentId!==Fc}clear=()=>{this.currentId!==Fc&&(clearTimeout(this.currentId),this.currentId=Fc)};disposeEffect=()=>this.clear};function Lc(){let e=xc(Ic.create).current;return Pc(e.disposeEffect),e}function Rc(){return typeof navigator>`u`?{userAgent:``,platform:``,maxTouchPoints:0}:{userAgent:navigator.userAgent,platform:navigator.platform??``,maxTouchPoints:navigator.maxTouchPoints??0}}var{userAgent:zc,platform:Bc,maxTouchPoints:Vc}=Rc(),Hc=zc.toLowerCase(),Uc=Bc.toLowerCase(),Wc=/^i(os$|p)/.test(Uc)||Uc===`macintel`&&Vc>1,Gc=`android`,Kc=Uc===Gc||Hc.includes(Gc),qc=!Wc&&Uc.startsWith(`mac`);Uc.startsWith(`win`),!Kc&&/^(linux|chrome os)/.test(Uc);var Jc=qc||Wc,Yc=typeof CSS<`u`&&!!CSS.supports?.(`-webkit-backdrop-filter:none`);!Yc&&Hc.includes(`firefox`),!Yc&&Hc.includes(`chrom`);var Xc=Jc,Zc=/jsdom|happydom/.test(Hc);function Qc(e){e.preventDefault(),e.stopPropagation()}function $c(e){return`nativeEvent`in e}function el(e){return e.pointerType===``&&e.isTrusted?!0:Kc&&e.pointerType?e.type===`click`&&e.buttons===1:e.detail===0&&!e.pointerType}function tl(e){return Zc?!1:!Kc&&e.width===0&&e.height===0||Kc&&e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType===`mouse`||e.width<1&&e.height<1&&e.pressure===0&&e.detail===0&&e.pointerType===`touch`}function nl(e,t){let n=[`mouse`,`pen`];return t||n.push(``,void 0),n.includes(e)}function rl(e){let t=e.type;return t===`click`||t===`mousedown`||t===`keydown`||t===`keyup`}function il(){return typeof window<`u`}function al(e){return cl(e)?(e.nodeName||``).toLowerCase():`#document`}function ol(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function sl(e){return((cl(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function cl(e){return il()?e instanceof Node||e instanceof ol(e).Node:!1}function G(e){return il()?e instanceof Element||e instanceof ol(e).Element:!1}function ll(e){return il()?e instanceof HTMLElement||e instanceof ol(e).HTMLElement:!1}function ul(e){return!il()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof ol(e).ShadowRoot}function dl(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=Sl(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!==`inline`&&i!==`contents`}function fl(e){return/^(table|td|th)$/.test(al(e))}function pl(e){try{if(e.matches(`:popover-open`))return!0}catch{}try{return e.matches(`:modal`)}catch{return!1}}var ml=/transform|translate|scale|rotate|perspective|filter/,hl=/paint|layout|strict|content/,gl=e=>!!e&&e!==`none`,_l;function vl(e){let t=G(e)?Sl(e):e;return gl(t.transform)||gl(t.translate)||gl(t.scale)||gl(t.rotate)||gl(t.perspective)||!bl()&&(gl(t.backdropFilter)||gl(t.filter))||ml.test(t.willChange||``)||hl.test(t.contain||``)}function yl(e){let t=wl(e);for(;ll(t)&&!xl(t);){if(vl(t))return t;if(pl(t))return null;t=wl(t)}return null}function bl(){return _l??=typeof CSS<`u`&&CSS.supports&&CSS.supports(`-webkit-backdrop-filter`,`none`),_l}function xl(e){return/^(html|body|#document)$/.test(al(e))}function Sl(e){return ol(e).getComputedStyle(e)}function Cl(e){return G(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function wl(e){if(al(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||ul(e)&&e.host||sl(e);return ul(t)?t.host:t}function Tl(e){let t=wl(e);return xl(t)?e.ownerDocument?e.ownerDocument.body:e.body:ll(t)&&dl(t)?t:Tl(t)}function El(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!0);let r=Tl(e),i=r===e.ownerDocument?.body,a=ol(r);if(i){let e=Dl(a);return t.concat(a,a.visualViewport||[],dl(r)?r:[],e&&n?El(e):[])}else return t.concat(r,El(r,[],n))}function Dl(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}var Ol=`data-base-ui-focusable`,kl=`input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])`;function Al(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}function jl(e,t){if(!e||!t)return!1;let n=t.getRootNode?.();if(e.contains(t))return!0;if(n&&ul(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function Ml(e){return`composedPath`in e?e.composedPath()[0]:e.target}function Nl(e,t){if(!G(e))return!1;let n=e;if(t.hasElement(n))return!n.hasAttribute(`data-trigger-disabled`);for(let[,e]of t.entries())if(jl(e,n))return!e.hasAttribute(`data-trigger-disabled`);return!1}function Pl(e,t){if(t==null)return!1;if(`composedPath`in e)return e.composedPath().includes(t);let n=e;return n.target!=null&&t.contains(n.target)}function Fl(e){return e.matches(`html,body`)}function Il(e){return ll(e)&&e.matches(`input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])`)}function Ll(e){return e?.closest(`button,a[href],[role="button"],select,[tabindex]:not([tabindex="-1"]),${kl}`)!=null}function Rl(e){return e?e.getAttribute(`role`)===`combobox`&&Il(e):!1}function zl(e){if(!e||Zc)return!0;try{return e.matches(`:focus-visible`)}catch{return!0}}function Bl(e){return e?e.hasAttribute(`data-base-ui-focusable`)?e:e.querySelector(`[data-base-ui-focusable]`)||e:null}function Vl(e,t){return t!=null&&!nl(t)?0:typeof e==`function`?e():e}function K(e,t,n){let r=Vl(e,n);return typeof r==`number`?r:r?.[t]}function q(e){return typeof e==`function`?e():e}function Hl(e,t){return t||e===`click`||e===`mousedown`}function Ul(e){return e?.includes(`mouse`)&&e!==`mousedown`}function Wl(){}Object.freeze([]);var Gl=Object.freeze({}),Kl=`none`,ql=`trigger-press`,J=`trigger-hover`,Jl=`trigger-focus`,Yl=`outside-press`,Xl=`close-press`,Zl=`focus-out`,Ql=`escape-key`,$l=`disabled`,eu=`imperative-action`;function tu(e,t,n,r){let i=!1,a=!1,o=r??Gl;return{reason:e,event:t??new Event(`base-ui`),cancel(){i=!0},allowPropagation(){a=!0},get isCanceled(){return i},get isPropagationAllowed(){return a},trigger:n,...o}}var nu=H.createContext({hasProvider:!1,timeoutMs:0,delayRef:{current:0},initialDelayRef:{current:0},timeout:new Ic,currentIdRef:{current:null},currentContextRef:{current:null}});function ru(e,t){e.current=t.current}function iu(e){let{children:t,delay:n,timeoutMs:r=0}=e,i=H.useRef(n),a=H.useRef(n),o=H.useRef(null),s=H.useRef(null),c=Lc();return W(()=>{if(a.current=n,!o.current){i.current=n;return}i.current={open:K(i.current,`open`),close:K(n,`close`)}},[n,o,i,a]),(0,U.jsx)(nu.Provider,{value:H.useMemo(()=>({hasProvider:!0,delayRef:i,initialDelayRef:a,currentIdRef:o,timeoutMs:r,currentContextRef:s,timeout:c}),[r,c]),children:t})}function au(e,t={open:!1}){let{open:n}=t,r=`rootStore`in e?e.rootStore:e,i=r.useState(`floatingId`),{currentIdRef:a,delayRef:o,timeoutMs:s,initialDelayRef:c,currentContextRef:l,hasProvider:u,timeout:d}=H.useContext(nu),[f,p]=H.useState(!1),m=H.useRef(n),h=H.useRef(!1);return W(()=>{m.current=n},[n]),W(()=>()=>{h.current=!0},[]),W(()=>{function e(){h.current||p(!1),l.current?.setIsInstantPhase(!1),a.current=null,l.current=null,o.current=c.current,d.clear()}if(a.current&&!n&&a.current===i){if(p(!1),s){let t=i;return d.start(s,()=>{r.select(`open`)||a.current&&a.current!==t||e()}),()=>{(m.current||a.current!==t)&&d.clear()}}e()}},[n,i,a,o,s,c,l,d,r]),W(()=>{if(!n)return;let e=l.current,t=a.current;d.clear(),l.current={onOpenChange:r.setOpen,setIsInstantPhase:p},a.current=i,o.current={open:0,close:K(c.current,`close`)},t!==null&&t!==i?(p(!0),e?.setIsInstantPhase(!0),e?.onOpenChange(!1,tu(Kl))):(p(!1),e?.setIsInstantPhase(!1))},[n,i,r,a,o,c,l,d]),W(()=>()=>{if(a.current===i){if(l.current=null,!m.current)return;a.current=null,ru(o,c),d.clear()}},[l,a,o,i,c,d]),H.useMemo(()=>({hasProvider:u,delayRef:o,isInstantPhase:f}),[u,o,f])}function Y(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function ou(...e){return()=>{for(let t=0;t<e.length;t+=1){let n=e[t];n&&n()}}}function su(e,t,n,r){let i=xc(lu).current;return uu(i,e,t,n,r)&&fu(i,[e,t,n,r]),i.callback}function cu(e){let t=xc(lu).current;return du(t,e)&&fu(t,e),t.callback}function lu(){return{callback:null,cleanup:null,refs:[]}}function uu(e,t,n,r,i){return e.refs[0]!==t||e.refs[1]!==n||e.refs[2]!==r||e.refs[3]!==i}function du(e,t){return e.refs.length!==t.length||e.refs.some((e,n)=>e!==t[n])}function fu(e,t){if(e.refs=t,t.every(e=>e==null)){e.callback=null;return}e.callback=n=>{if(e.cleanup&&=(e.cleanup(),null),n!=null){let r=Array(t.length).fill(null);for(let e=0;e<t.length;e+=1){let i=t[e];if(i!=null)switch(typeof i){case`function`:{let t=i(n);typeof t==`function`&&(r[e]=t);break}case`object`:i.current=n;break;default:}}e.cleanup=()=>{for(let e=0;e<t.length;e+=1){let n=t[e];if(n!=null)switch(typeof n){case`function`:{let t=r[e];typeof t==`function`?t():n(null);break}case`object`:n.current=null;break;default:}}}}}}function pu(e){let t=xc(mu,e).current;return t.next=e,W(t.effect),t}function mu(e){let t={current:e,next:e,effect:()=>{t.current=t.next}};return t}var hu={...H},gu=hu.useInsertionEffect,_u=gu&&gu!==hu.useLayoutEffect?gu:e=>e();function vu(e){let t=xc(yu).current;return t.next=e,_u(t.effect),t.trampoline}function yu(){let e={next:void 0,callback:bu,trampoline:(...t)=>e.callback?.(...t),effect:()=>{e.callback=e.next}};return e}function bu(){}var xu=null;globalThis.requestAnimationFrame;var Su=new class{callbacks=[];callbacksCount=0;nextId=1;startId=1;isScheduled=!1;tick=e=>{this.isScheduled=!1;let t=this.callbacks,n=this.callbacksCount;if(this.callbacks=[],this.callbacksCount=0,this.startId=this.nextId,n>0)for(let n=0;n<t.length;n+=1)t[n]?.(e)};request(e){let t=this.nextId;return this.nextId+=1,this.callbacks.push(e),this.callbacksCount+=1,this.isScheduled||=(requestAnimationFrame(this.tick),!0),t}cancel(e){let t=e-this.startId;t<0||t>=this.callbacks.length||(this.callbacks[t]=null,--this.callbacksCount)}},Cu=class e{static create(){return new e}static request(e){return Su.request(e)}static cancel(e){return Su.cancel(e)}currentId=xu;request(e){this.cancel(),this.currentId=Su.request(()=>{this.currentId=xu,e()})}cancel=()=>{this.currentId!==xu&&(Su.cancel(this.currentId),this.currentId=xu)};disposeEffect=()=>this.cancel};function wu(){let e=xc(Cu.create).current;return Pc(e.disposeEffect),e}function Tu(e){return e?.ownerDocument||document}var Eu={clipPath:`inset(50%)`,overflow:`hidden`,whiteSpace:`nowrap`,border:0,padding:0,width:1,height:1,margin:-1},Du={...Eu,position:`fixed`,top:0,left:0},Ou={...Eu,position:`absolute`},ku=H.forwardRef(function(e,t){let[n,r]=H.useState();W(()=>{Xc&&Yc&&r(`button`)},[]);let i={tabIndex:0,role:n};return(0,U.jsx)(`span`,{...e,ref:t,style:Du,"aria-hidden":n?void 0:!0,...i,"data-base-ui-focus-guard":``})}),Au=[`top`,`right`,`bottom`,`left`],ju=Math.min,Mu=Math.max,Nu=Math.round,Pu=Math.floor,Fu=e=>({x:e,y:e}),Iu={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function Lu(e,t,n){return Mu(e,ju(t,n))}function Ru(e,t){return typeof e==`function`?e(t):e}function zu(e){return e.split(`-`)[0]}function Bu(e){return e.split(`-`)[1]}function Vu(e){return e===`x`?`y`:`x`}function Hu(e){return e===`y`?`height`:`width`}function Uu(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function Wu(e){return Vu(Uu(e))}function Gu(e,t,n){n===void 0&&(n=!1);let r=Bu(e),i=Wu(e),a=Hu(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=ed(o)),[o,ed(o)]}function Ku(e){let t=ed(e);return[qu(e),t,qu(t)]}function qu(e){return e.includes(`start`)?e.replace(`start`,`end`):e.replace(`end`,`start`)}var Ju=[`left`,`right`],Yu=[`right`,`left`],Xu=[`top`,`bottom`],Zu=[`bottom`,`top`];function Qu(e,t,n){switch(e){case`top`:case`bottom`:return n?t?Yu:Ju:t?Ju:Yu;case`left`:case`right`:return t?Xu:Zu;default:return[]}}function $u(e,t,n,r){let i=Bu(e),a=Qu(zu(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(qu)))),a}function ed(e){let t=zu(e);return Iu[t]+e.slice(t.length)}function td(e){return{top:0,right:0,bottom:0,left:0,...e}}function nd(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:td(e)}function rd(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function id(e){return e.visibility===`hidden`||e.visibility===`collapse`}function ad(e,t=e?Sl(e):null){return!e||!e.isConnected||!t||id(t)?!1:typeof e.checkVisibility==`function`?e.checkVisibility():t.display!==`none`&&t.display!==`contents`}var od=`a[href],button,input,select,textarea,summary,details,iframe,object,embed,[tabindex],[contenteditable]:not([contenteditable="false"]),audio[controls],video[controls]`;function sd(e){let t=e.assignedSlot;if(t)return t;if(e.parentElement)return e.parentElement;let n=e.getRootNode();return ul(n)?n.host:null}function cd(e){for(let t of Array.from(e.children))if(al(t)===`summary`)return t;return null}function ld(e,t){let n=cd(t);return!!n&&(e===n||jl(n,e))}function ud(e){let t=e?al(e):``;return e!=null&&e.matches(od)&&(t!==`summary`||e.parentElement!=null&&al(e.parentElement)===`details`&&cd(e.parentElement)===e)&&(t!==`details`||cd(e)==null)&&(t!==`input`||e.type!==`hidden`)}function dd(e){if(!ud(e)||!e.isConnected||e.matches(`:disabled`))return!1;for(let t=e;t;t=sd(t)){let n=t!==e,r=al(t)===`slot`;if(t.hasAttribute(`inert`)||n&&al(t)===`details`&&!t.open&&!ld(e,t)||t.hasAttribute(`hidden`)||!r&&!fd(t,n))return!1}return!0}function fd(e,t){let n=Sl(e);return t?n.display!==`none`:ad(e,n)}function pd(e){let t=e.tabIndex;if(t<0){let t=al(e);if(t===`details`||t===`audio`||t===`video`||ll(e)&&e.isContentEditable)return 0}return t}function md(e){if(al(e)!==`input`)return null;let t=e;return t.type===`radio`&&t.name!==``?t:null}function hd(e,t){let n=md(e);if(!n)return!0;let r=t.find(e=>{let t=md(e);return t?.name===n.name&&t.form===n.form&&t.checked});return r?r===n:t.find(e=>{let t=md(e);return t?.name===n.name&&t.form===n.form})===n}function gd(e){if(ll(e)&&al(e)===`slot`){let t=e.assignedElements({flatten:!0});if(t.length>0)return t}return ll(e)&&e.shadowRoot?Array.from(e.shadowRoot.children):Array.from(e.children)}function _d(e,t){gd(e).forEach(e=>{ud(e)&&t.push(e),_d(e,t)})}function vd(e,t,n){gd(e).forEach(e=>{ll(e)&&e.matches(t)&&n.push(e),vd(e,t,n)})}function yd(e){return dd(e)&&pd(e)>=0}function bd(e){let t=[];return _d(e,t),t.filter(dd)}function xd(e){let t=bd(e);return t.filter(e=>pd(e)>=0&&hd(e,t))}function Sd(e,t){let n=xd(e),r=n.length;if(r===0)return;let i=Al(Tu(e)),a=n.indexOf(i);return n[a===-1?t===1?0:r-1:a+t]}function X(e){return Sd(Tu(e).body,1)||e}function Cd(e){return Sd(Tu(e).body,-1)||e}function wd(e,t){if(!e)return null;let n=xd(Tu(e).body),r=n.length;if(r===0)return null;let i=n.indexOf(e);return i===-1?null:n[(i+t+r)%r]}function Td(e){return wd(e,1)}function Ed(e){return wd(e,-1)}function Dd(e,t){let n=t||e.currentTarget,r=e.relatedTarget;return!r||!jl(n,r)}function Od(e){xd(e).forEach(e=>{e.dataset.tabindex=e.getAttribute(`tabindex`)||``,e.setAttribute(`tabindex`,`-1`)})}function kd(e){let t=[];vd(e,`[data-tabindex]`,t),t.forEach(e=>{let t=e.dataset.tabindex;delete e.dataset.tabindex,t?e.setAttribute(`tabindex`,t):e.removeAttribute(`tabindex`)})}function Ad(e,t,n=!0){return e.filter(e=>e.parentId===t).flatMap(t=>[...!n||t.context?.open?[t]:[],...Ad(e,t.id,n)])}function jd(e,t){let n=[],r=e.find(e=>e.id===t)?.parentId;for(;r;){let t=e.find(e=>e.id===r);r=t?.parentId,t&&(n=n.concat(t))}return n}function Md(e){return`data-base-ui-${e}`}var Nd=0;function Pd(e,t=`mui`){let[n,r]=H.useState(e),i=e||n;return H.useEffect(()=>{n??(Nd+=1,r(`${t}-${Nd}`))},[n,t]),i}var Fd=hu.useId;function Id(e,t){if(Fd!==void 0){let n=Fd();return e??(t?`${t}-${n}`:n)}return Pd(e,t)}var Ld=19;function Rd(e){return Ld>=e}function zd(e){if(!H.isValidElement(e))return null;let t=e,n=t.props;return(Rd(19)?n?.ref:t.ref)??null}function Bd(e,t){if(e&&!t)return e;if(!e&&t)return t;if(e||t)return{...e,...t}}function Vd(e,t){let n={};for(let r in e){let i=e[r];if(t?.hasOwnProperty(r)){let e=t[r](i);e!=null&&Object.assign(n,e);continue}i===!0?n[`data-${r.toLowerCase()}`]=``:i&&(n[`data-${r.toLowerCase()}`]=i.toString())}return n}function Hd(e,t){return typeof e==`function`?e(t):e}function Ud(e,t){return typeof e==`function`?e(t):e}var Wd={};function Gd(e,t,n,r,i){if(!n&&!r&&!i&&!e)return qd(t);let a=qd(e);return t&&(a=Jd(a,t)),n&&(a=Jd(a,n)),r&&(a=Jd(a,r)),i&&(a=Jd(a,i)),a}function Kd(e){if(e.length===0)return Wd;if(e.length===1)return qd(e[0]);let t=qd(e[0]);for(let n=1;n<e.length;n+=1)t=Jd(t,e[n]);return t}function qd(e){return Qd(e)?{...$d(e,Wd)}:Yd(e)}function Jd(e,t){return Qd(t)?$d(t,e):Xd(e,t)}function Yd(e){let t={...e};for(let e in t){let n=t[e];Zd(e,n)&&(t[e]=tf(n))}return t}function Xd(e,t){if(!t)return e;for(let n in t){let r=t[n];switch(n){case`style`:e[n]=Bd(e.style,r);break;case`className`:e[n]=rf(e.className,r);break;default:Zd(n,r)?e[n]=ef(e[n],r):e[n]=r}}return e}function Zd(e,t){let n=e.charCodeAt(0),r=e.charCodeAt(1),i=e.charCodeAt(2);return n===111&&r===110&&i>=65&&i<=90&&(typeof t==`function`||t===void 0)}function Qd(e){return typeof e==`function`}function $d(e,t){return Qd(e)?e(t):e??Wd}function ef(e,t){return t?e?(...n)=>{let r=n[0];if(af(r)){let i=r;nf(i);let a=t(...n);return i.baseUIHandlerPrevented||e?.(...n),a}let i=t(...n);return e?.(...n),i}:tf(t):e}function tf(e){return e&&((...t)=>{let n=t[0];return af(n)&&nf(n),e(...t)})}function nf(e){return e.preventBaseUIHandler=()=>{e.baseUIHandlerPrevented=!0},e}function rf(e,t){return t?e?t+` `+e:t:e}function af(e){return typeof e==`object`&&!!e&&`nativeEvent`in e}function of(e,t,n={}){let r=t.render,i=sf(t,n);return n.enabled===!1?null:uf(e,r,i,n.state??Gl)}function sf(e,t={}){let{className:n,style:r,render:i}=e,{state:a=Gl,ref:o,props:s,stateAttributesMapping:c,enabled:l=!0}=t,u=l?Hd(n,a):void 0,d=l?Ud(r,a):void 0,f=l?Vd(a,c):Gl,p=l&&s?cf(s):void 0,m=l?Bd(f,p)??{}:Gl;return typeof document<`u`&&(l?Array.isArray(o)?m.ref=cu([m.ref,zd(i),...o]):m.ref=su(m.ref,zd(i),o):su(null,null)),l?(u!==void 0&&(m.className=rf(m.className,u)),d!==void 0&&(m.style=Bd(m.style,d)),m):Gl}function cf(e){return Array.isArray(e)?Kd(e):Gd(void 0,e)}var lf=Symbol.for(`react.lazy`);function uf(e,t,n,r){if(t){if(typeof t==`function`)return t(n,r);let e=Gd(n,t.props);e.ref=n.ref;let i=t;return i?.$$typeof===lf&&(i=H.Children.toArray(t)[0]),H.cloneElement(i,e)}if(e&&typeof e==`string`)return df(e,n);throw Error(Ac(8))}function df(e,t){return e===`button`?(0,H.createElement)(`button`,{type:`button`,...t,key:t.key}):e===`img`?(0,H.createElement)(`img`,{alt:``,...t,key:t.key}):H.createElement(e,t)}var ff={style:{transition:`none`}},pf=`data-base-ui-click-trigger`,mf={fallbackAxisSide:`end`},hf={clipPath:`inset(50%)`,position:`fixed`,top:0,left:0},gf=e(w(),1),_f=H.createContext(null),vf=()=>H.useContext(_f),yf=Md(`portal`);function bf(e={}){let{ref:t,container:n,componentProps:r=Gl,elementProps:i}=e,a=Id(),o=vf()?.portalNode,[s,c]=H.useState(null),[l,u]=H.useState(null),d=vu(e=>{e!==null&&u(e)}),f=H.useRef(null);W(()=>{if(n===null){f.current&&(f.current=null,u(null),c(null));return}if(a==null)return;let e=(n&&(cl(n)?n:n.current))??o??document.body;if(e==null){f.current&&(f.current=null,u(null),c(null));return}f.current!==e&&(f.current=e,u(null),c(e))},[n,o,a]);let p=of(`div`,r,{ref:[t,d],props:[{id:a,[yf]:``},i]});return{portalNode:l,portalSubtree:s&&p?gf.createPortal(p,s):null}}var xf=H.forwardRef(function(e,t){let{render:n,className:r,style:i,children:a,container:o,renderGuards:s,...c}=e,{portalNode:l,portalSubtree:u}=bf({container:o,ref:t,componentProps:e,elementProps:c}),d=H.useRef(null),f=H.useRef(null),p=H.useRef(null),m=H.useRef(null),[h,g]=H.useState(null),_=H.useRef(!1),v=h?.modal,y=h?.open,b=typeof s==`boolean`?s:!!h&&!h.modal&&h.open&&!!l;H.useEffect(()=>{if(!l||v)return;function e(e){l&&e.relatedTarget&&Dd(e)&&(e.type===`focusin`?_.current&&=(kd(l),!1):(Od(l),_.current=!0))}return ou(Y(l,`focusin`,e,!0),Y(l,`focusout`,e,!0))},[l,v]),W(()=>{!l||y!==!0||!_.current||(kd(l),_.current=!1)},[y,l]);let x=H.useMemo(()=>({beforeOutsideRef:d,afterOutsideRef:f,beforeInsideRef:p,afterInsideRef:m,portalNode:l,setFocusManagerState:g}),[l]);return(0,U.jsxs)(H.Fragment,{children:[u,(0,U.jsxs)(_f.Provider,{value:x,children:[b&&l&&(0,U.jsx)(ku,{"data-type":`outside`,ref:d,onFocus:e=>{Dd(e,l)?p.current?.focus():Cd(h?h.domReference:null)?.focus()}}),b&&l&&(0,U.jsx)(`span`,{"aria-owns":l.id,style:hf}),l&&gf.createPortal(a,l),b&&l&&(0,U.jsx)(ku,{"data-type":`outside`,ref:f,onFocus:e=>{Dd(e,l)?m.current?.focus():(X(h?h.domReference:null)?.focus(),h?.closeOnFocusOut&&h?.onOpenChange(!1,tu(`focus-out`,e.nativeEvent)))}})]})]})});function Sf(){let e=new Map;return{emit(t,n){e.get(t)?.forEach(e=>e(n))},on(t,n){e.has(t)||e.set(t,new Set),e.get(t).add(n)},off(t,n){e.get(t)?.delete(n)}}}var Cf=class{nodesRef={current:[]};events=Sf();addNode(e){this.nodesRef.current.push(e)}removeNode(e){let t=this.nodesRef.current.findIndex(t=>t===e);t!==-1&&this.nodesRef.current.splice(t,1)}},wf=H.createContext(null),Tf=H.createContext(null),Ef=()=>H.useContext(wf)?.id||null,Df=e=>{let t=H.useContext(Tf);return e??t};function Of(e){let t=Id(),n=Df(e),r=Ef();return W(()=>{if(!t)return;let e={id:t,parentId:r};return n?.addNode(e),()=>{n?.removeNode(e)}},[n,t,r]),t}function kf(e){let{children:t,id:n}=e,r=Ef();return(0,U.jsx)(wf.Provider,{value:H.useMemo(()=>({id:n,parentId:r}),[n,r]),children:t})}function Af(e){let{children:t,externalTree:n}=e,r=xc(()=>n??new Cf).current;return(0,U.jsx)(Tf.Provider,{value:r,children:t})}function jf(e){return e==null?e:`current`in e?e.current:e}function Mf(e,t){let n=null,r=null,i=!1;return{contextElement:e||void 0,getBoundingClientRect(){let a=e?.getBoundingClientRect()||{width:0,height:0,x:0,y:0},o=t.axis===`x`||t.axis===`both`,s=t.axis===`y`||t.axis===`both`,c=[`mouseenter`,`mousemove`].includes(t.dataRef.current.openEvent?.type||``)&&t.pointerType!==`touch`,l=a.width,u=a.height,d=a.x,f=a.y;return n==null&&t.x&&o&&(n=a.x-t.x),r==null&&t.y&&s&&(r=a.y-t.y),d-=n||0,f-=r||0,l=0,u=0,!i||c?(l=t.axis===`y`?a.width:0,u=t.axis===`x`?a.height:0,d=o&&t.x!=null?t.x:d,f=s&&t.y!=null?t.y:f):i&&!c&&(u=t.axis===`x`?a.height:u,l=t.axis===`y`?a.width:l),i=!0,{width:l,height:u,x:d,y:f,top:f,right:d+l,bottom:f+u,left:d}}}}function Nf(e){return e!=null&&e.clientX!=null}function Pf(e,t={}){let{enabled:n=!0,axis:r=`both`}=t,i=`rootStore`in e?e.rootStore:e,a=i.useState(`open`),o=i.useState(`floatingElement`),s=i.useState(`domReferenceElement`),c=i.context.dataRef,l=H.useRef(!1),u=H.useRef(null),[d,f]=H.useState(),[p,m]=H.useState([]),h=vu(e=>{i.set(`positionReference`,e)}),g=vu((e,t,n)=>{l.current||c.current.openEvent&&!Nf(c.current.openEvent)||i.set(`positionReference`,Mf(n??s,{x:e,y:t,axis:r,dataRef:c,pointerType:d}))}),_=vu(e=>{a?u.current||(g(e.clientX,e.clientY,e.currentTarget),m([])):g(e.clientX,e.clientY,e.currentTarget)}),v=nl(d)?o:a;H.useEffect(()=>{if(!n){h(s);return}if(!v)return;function e(){u.current?.(),u.current=null}let t=ol(o);function r(t){jl(o,Ml(t))?e():g(t.clientX,t.clientY)}return!c.current.openEvent||Nf(c.current.openEvent)?u.current=Y(t,`mousemove`,r):h(s),e},[v,n,o,c,s,i,g,h,p]),H.useEffect(()=>()=>{i.set(`positionReference`,null)},[i]),H.useEffect(()=>{n&&!o&&(l.current=!1)},[n,o]),H.useEffect(()=>{!n&&a&&(l.current=!0)},[n,a]);let y=H.useMemo(()=>{function e(e){f(e.pointerType)}return{onPointerDown:e,onPointerEnter:e,onMouseMove:_,onMouseEnter:_}},[_]);return H.useMemo(()=>n?{reference:y,trigger:y}:{},[n,y])}function Ff(){return!1}function If(e){return{escapeKey:typeof e==`boolean`?e:e?.escapeKey??!1,outsidePress:typeof e==`boolean`?e:e?.outsidePress??!0}}function Lf(e,t={}){let{enabled:n=!0,escapeKey:r=!0,outsidePress:i=!0,outsidePressEvent:a=`sloppy`,referencePress:o=Ff,bubbles:s,externalTree:c}=t,l=`rootStore`in e?e.rootStore:e,u=l.useState(`open`),d=l.useState(`floatingElement`),{dataRef:f}=l.context,p=Df(c),m=vu(typeof i==`function`?i:()=>!1),h=typeof i==`function`?m:i,g=h!==!1,_=vu(()=>a),{escapeKey:v,outsidePress:y}=If(s),b=H.useRef(!1),x=H.useRef(!1),S=H.useRef(!1),C=H.useRef(!1),w=H.useRef(``),E=H.useRef(null),D=Lc(),O=Lc(),k=vu(()=>{O.clear(),f.current.insideReactTree=!1}),A=vu(e=>{let t=f.current.floatingContext?.nodeId;return(p?Ad(p.nodesRef.current,t):[]).some(t=>t.context?.open&&!t.context.dataRef.current[e])}),j=vu(e=>Pl(e,l.select(`floatingElement`))||Pl(e,l.select(`domReferenceElement`))),M=vu(e=>{o()&&l.setOpen(!1,tu(ql,e.nativeEvent))}),N=vu(e=>{if(!u||!n||!r||e.key!==`Escape`||C.current||!v&&A(`__escapeKeyBubbles`))return;let t=tu(Ql,$c(e)?e.nativeEvent:e);l.setOpen(!1,t),t.isCanceled||e.preventDefault(),!v&&!t.isPropagationAllowed&&e.stopPropagation()}),ee=vu(()=>{f.current.insideReactTree=!0,O.start(0,k)}),te=vu(e=>{if(!u||!n||e.button!==0)return;let t=Ml(e.nativeEvent);jl(l.select(`floatingElement`),t)&&(b.current||(b.current=!0,x.current=!1))}),P=vu(e=>{!u||!n||(e.defaultPrevented||e.nativeEvent.defaultPrevented)&&b.current&&(x.current=!0)});H.useEffect(()=>{if(!u||!n)return;f.current.__escapeKeyBubbles=v,f.current.__outsidePressBubbles=y;let e=new Ic,t=new Ic;function i(){e.clear(),C.current=!0}function a(){e.start(Yc?5:0,()=>{C.current=!1})}function o(){S.current=!0,t.start(0,()=>{S.current=!1})}function s(){b.current=!1,x.current=!1}function c(){let e=w.current,t=e===`pen`||!e?`mouse`:e,n=_(),r=typeof n==`function`?n():n;return typeof r==`string`?r:r[t]}function m(e){let t=c();return t===`intentional`&&e.type!==`click`||t===`sloppy`&&e.type===`click`}function O(e){let t=f.current.floatingContext?.nodeId,n=p&&Ad(p.nodesRef.current,t).some(t=>Pl(e,t.context?.elements.floating));return j(e)||n}function M(e){if(m(e)){e.type!==`click`&&!j(e)&&(t.clear(),S.current=!1),k();return}if(f.current.insideReactTree){k();return}let n=Ml(e),r=`[${Md(`inert`)}]`,i=G(n)?n.getRootNode():null,a=Array.from((ul(i)?i:Tu(l.select(`floatingElement`))).querySelectorAll(r)),o=l.context.triggerElements;if(n&&(o.hasElement(n)||o.hasMatchingElement(e=>jl(e,n))))return;let s=G(n)?n:null;for(;s&&!xl(s);){let e=wl(s);if(xl(e)||!G(e))break;s=e}if(!(a.length&&G(n)&&!Fl(n)&&!jl(n,l.select(`floatingElement`))&&a.every(e=>!jl(s,e)))){if(ll(n)&&!(`touches`in e)){let t=xl(n),r=Sl(n),i=/auto|scroll/,a=t||i.test(r.overflowX),o=t||i.test(r.overflowY),s=a&&n.clientWidth>0&&n.scrollWidth>n.clientWidth,c=o&&n.clientHeight>0&&n.scrollHeight>n.clientHeight,l=r.direction===`rtl`,u=c&&(l?e.offsetX<=n.offsetWidth-n.clientWidth:e.offsetX>n.clientWidth),d=s&&e.offsetY>n.clientHeight;if(u||d)return}if(!O(e)){if(c()===`intentional`&&S.current){t.clear(),S.current=!1;return}typeof h==`function`&&!h(e)||A(`__outsidePressBubbles`)||(l.setOpen(!1,tu(Yl,e)),k())}}}function ee(e){c()!==`sloppy`||e.pointerType===`touch`||!l.select(`open`)||!n||j(e)||M(e)}function te(e){if(c()!==`sloppy`||!l.select(`open`)||!n||j(e))return;let t=e.touches[0];t&&(E.current={startTime:Date.now(),startX:t.clientX,startY:t.clientY,dismissOnTouchEnd:!1,dismissOnMouseDown:!0},D.start(1e3,()=>{E.current&&(E.current.dismissOnTouchEnd=!1,E.current.dismissOnMouseDown=!1)}))}function P(e,t){let n=Ml(e);if(!n)return;let r=Y(n,e.type,()=>{t(e),r()})}function F(e){w.current=`touch`,P(e,te)}function ne(e){D.clear(),e.type===`pointerdown`&&(w.current=e.pointerType),!(e.type===`mousedown`&&E.current&&!E.current.dismissOnMouseDown)&&P(e,e=>{e.type===`pointerdown`?ee(e):M(e)})}function re(e){if(!b.current)return;let n=x.current;if(s(),c()===`intentional`){if(e.type===`pointercancel`){n&&o();return}if(!O(e)){if(n){o();return}typeof h==`function`&&!h(e)||(t.clear(),S.current=!0,k())}}}function ie(e){if(c()!==`sloppy`||!E.current||j(e))return;let t=e.touches[0];if(!t)return;let n=Math.abs(t.clientX-E.current.startX),r=Math.abs(t.clientY-E.current.startY),i=Math.sqrt(n*n+r*r);i>5&&(E.current.dismissOnTouchEnd=!0),i>10&&(M(e),D.clear(),E.current=null)}function ae(e){P(e,ie)}function I(e){c()!==`sloppy`||!E.current||j(e)||(E.current.dismissOnTouchEnd&&M(e),D.clear(),E.current=null)}function L(e){P(e,I)}let oe=Tu(d),se=ou(r&&ou(Y(oe,`keydown`,N),Y(oe,`compositionstart`,i),Y(oe,`compositionend`,a)),g&&ou(Y(oe,`click`,ne,!0),Y(oe,`pointerdown`,ne,!0),Y(oe,`pointerup`,re,!0),Y(oe,`pointercancel`,re,!0),Y(oe,`mousedown`,ne,!0),Y(oe,`mouseup`,re,!0),Y(oe,`touchstart`,F,!0),Y(oe,`touchmove`,ae,!0),Y(oe,`touchend`,L,!0)));return()=>{se(),e.clear(),t.clear(),s(),S.current=!1}},[f,d,r,g,h,u,n,v,y,N,k,_,A,j,p,l,D]),H.useEffect(k,[h,k]);let F=H.useMemo(()=>({onKeyDown:N,onPointerDown:M,onClick:M}),[N,M]),ne=H.useMemo(()=>({onKeyDown:N,onPointerDown:P,onMouseDown:P,onClickCapture:ee,onMouseDownCapture(e){ee(),te(e)},onPointerDownCapture(e){ee(),te(e)},onMouseUpCapture:ee,onTouchEndCapture:ee,onTouchMoveCapture:ee}),[N,ee,te,P]);return H.useMemo(()=>n?{reference:F,floating:ne,trigger:F}:{},[n,F,ne])}function Rf(e,t,n){let{reference:r,floating:i}=e,a=Uu(t),o=Wu(t),s=Hu(o),c=zu(t),l=a===`y`,u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[s]/2-i[s]/2,p;switch(c){case`top`:p={x:u,y:r.y-i.height};break;case`bottom`:p={x:u,y:r.y+r.height};break;case`right`:p={x:r.x+r.width,y:d};break;case`left`:p={x:r.x-i.width,y:d};break;default:p={x:r.x,y:r.y}}switch(Bu(t)){case`start`:p[o]-=f*(n&&l?-1:1);break;case`end`:p[o]+=f*(n&&l?-1:1);break}return p}async function zf(e,t){t===void 0&&(t={});let{x:n,y:r,platform:i,rects:a,elements:o,strategy:s}=e,{boundary:c=`clippingAncestors`,rootBoundary:l=`viewport`,elementContext:u=`floating`,altBoundary:d=!1,padding:f=0}=Ru(t,e),p=nd(f),m=o[d?u===`floating`?`reference`:`floating`:u],h=rd(await i.getClippingRect({element:await(i.isElement==null?void 0:i.isElement(m))??!0?m:m.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(o.floating)),boundary:c,rootBoundary:l,strategy:s})),g=u===`floating`?{x:n,y:r,width:a.floating.width,height:a.floating.height}:a.reference,_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(o.floating)),v=await(i.isElement==null?void 0:i.isElement(_))&&await(i.getScale==null?void 0:i.getScale(_))||{x:1,y:1},y=rd(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:g,offsetParent:_,strategy:s}):g);return{top:(h.top-y.top+p.top)/v.y,bottom:(y.bottom-h.bottom+p.bottom)/v.y,left:(h.left-y.left+p.left)/v.x,right:(y.right-h.right+p.right)/v.x}}var Bf=50,Vf=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=o.detectOverflow?o:{...o,detectOverflow:zf},c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=Rf(l,r,c),f=r,p=0,m={};for(let n=0;n<a.length;n++){let h=a[n];if(!h)continue;let{name:g,fn:_}=h,{x:v,y,data:b,reset:x}=await _({x:u,y:d,initialPlacement:r,placement:f,strategy:i,middlewareData:m,rects:l,platform:s,elements:{reference:e,floating:t}});u=v??u,d=y??d,m[g]={...m[g],...b},x&&p<Bf&&(p++,typeof x==`object`&&(x.placement&&(f=x.placement),x.rects&&(l=x.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):x.rects),{x:u,y:d}=Rf(l,f,c)),n=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:m}},Hf=function(e){return e===void 0&&(e={}),{name:`flip`,options:e,async fn(t){var n;let{placement:r,middlewareData:i,rects:a,initialPlacement:o,platform:s,elements:c}=t,{mainAxis:l=!0,crossAxis:u=!0,fallbackPlacements:d,fallbackStrategy:f=`bestFit`,fallbackAxisSideDirection:p=`none`,flipAlignment:m=!0,...h}=Ru(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};let g=zu(r),_=Uu(o),v=zu(o)===o,y=await(s.isRTL==null?void 0:s.isRTL(c.floating)),b=d||(v||!m?[ed(o)]:Ku(o)),x=p!==`none`;!d&&x&&b.push(...$u(o,m,p,y));let S=[o,...b],C=await s.detectOverflow(t,h),w=[],E=i.flip?.overflows||[];if(l&&w.push(C[g]),u){let e=Gu(r,a,y);w.push(C[e[0]],C[e[1]])}if(E=[...E,{placement:r,overflows:w}],!w.every(e=>e<=0)){let e=(i.flip?.index||0)+1,t=S[e];if(t&&(!(u===`alignment`&&_!==Uu(t))||E.every(e=>Uu(e.placement)===_?e.overflows[0]>0:!0)))return{data:{index:e,overflows:E},reset:{placement:t}};let n=E.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0]?.placement;if(!n)switch(f){case`bestFit`:{let e=E.filter(e=>{if(x){let t=Uu(e.placement);return t===_||t===`y`}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0]?.[0];e&&(n=e);break}case`initialPlacement`:n=o;break}if(r!==n)return{reset:{placement:n}}}return{}}}};function Uf(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Wf(e){return Au.some(t=>e[t]>=0)}var Gf=function(e){return e===void 0&&(e={}),{name:`hide`,options:e,async fn(t){let{rects:n,platform:r}=t,{strategy:i=`referenceHidden`,...a}=Ru(e,t);switch(i){case`referenceHidden`:{let e=Uf(await r.detectOverflow(t,{...a,elementContext:`reference`}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:Wf(e)}}}case`escaped`:{let e=Uf(await r.detectOverflow(t,{...a,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:Wf(e)}}}default:return{}}}}},Kf=new Set([`left`,`top`]);async function qf(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=zu(n),s=Bu(n),c=Uu(n)===`y`,l=Kf.has(o)?-1:1,u=a&&c?-1:1,d=Ru(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof d==`number`?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof m==`number`&&(p=s===`end`?m*-1:m),c?{x:p*u,y:f*l}:{x:f*l,y:p*u}}var Jf=function(e){return e===void 0&&(e=0),{name:`offset`,options:e,async fn(t){var n;let{x:r,y:i,placement:a,middlewareData:o}=t,s=await qf(t,e);return a===o.offset?.placement&&(n=o.arrow)!=null&&n.alignmentOffset?{}:{x:r+s.x,y:i+s.y,data:{...s,placement:a}}}}},Yf=function(e){return e===void 0&&(e={}),{name:`shift`,options:e,async fn(t){let{x:n,y:r,placement:i,platform:a}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=Ru(e,t),u={x:n,y:r},d=await a.detectOverflow(t,l),f=Uu(zu(i)),p=Vu(f),m=u[p],h=u[f];if(o){let e=p===`y`?`top`:`left`,t=p===`y`?`bottom`:`right`,n=m+d[e],r=m-d[t];m=Lu(n,m,r)}if(s){let e=f===`y`?`top`:`left`,t=f===`y`?`bottom`:`right`,n=h+d[e],r=h-d[t];h=Lu(n,h,r)}let g=c.fn({...t,[p]:m,[f]:h});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[p]:o,[f]:s}}}}}},Xf=function(e){return e===void 0&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:i,rects:a,middlewareData:o}=t,{offset:s=0,mainAxis:c=!0,crossAxis:l=!0}=Ru(e,t),u={x:n,y:r},d=Uu(i),f=Vu(d),p=u[f],m=u[d],h=Ru(s,t),g=typeof h==`number`?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(c){let e=f===`y`?`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(l){let e=f===`y`?`width`:`height`,t=Kf.has(zu(i)),n=a.reference[d]-a.floating[e]+(t&&o.offset?.[d]||0)+(t?0:g.crossAxis),r=a.reference[d]+a.reference[e]+(t?0:o.offset?.[d]||0)-(t?g.crossAxis:0);m<n?m=n:m>r&&(m=r)}return{[f]:p,[d]:m}}}},Zf=function(e){return e===void 0&&(e={}),{name:`size`,options:e,async fn(t){var n,r;let{placement:i,rects:a,platform:o,elements:s}=t,{apply:c=()=>{},...l}=Ru(e,t),u=await o.detectOverflow(t,l),d=zu(i),f=Bu(i),p=Uu(i)===`y`,{width:m,height:h}=a.floating,g,_;d===`top`||d===`bottom`?(g=d,_=f===(await(o.isRTL==null?void 0:o.isRTL(s.floating))?`start`:`end`)?`left`:`right`):(_=d,g=f===`end`?`top`:`bottom`);let v=h-u.top-u.bottom,y=m-u.left-u.right,b=ju(h-u[g],v),x=ju(m-u[_],y),S=!t.middlewareData.shift,C=b,w=x;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(w=y),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(C=v),S&&!f){let e=Mu(u.left,0),t=Mu(u.right,0),n=Mu(u.top,0),r=Mu(u.bottom,0);p?w=m-2*(e!==0||t!==0?e+t:Mu(u.left,u.right)):C=h-2*(n!==0||r!==0?n+r:Mu(u.top,u.bottom))}await c({...t,availableWidth:w,availableHeight:C});let E=await o.getDimensions(s.floating);return m!==E.width||h!==E.height?{reset:{rects:!0}}:{}}}};function Qf(e){let t=Sl(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=ll(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=Nu(n)!==a||Nu(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function $f(e){return G(e)?e:e.contextElement}function ep(e){let t=$f(e);if(!ll(t))return Fu(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=Qf(t),o=(a?Nu(n.width):n.width)/r,s=(a?Nu(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}var tp=Fu(0);function np(e){let t=ol(e);return!bl()||!t.visualViewport?tp:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function rp(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==ol(e)?!1:t}function ip(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=$f(e),o=Fu(1);t&&(r?G(r)&&(o=ep(r)):o=ep(e));let s=rp(a,n,r)?np(a):Fu(0),c=(i.left+s.x)/o.x,l=(i.top+s.y)/o.y,u=i.width/o.x,d=i.height/o.y;if(a){let e=ol(a),t=r&&G(r)?ol(r):r,n=e,i=Dl(n);for(;i&&r&&t!==n;){let e=ep(i),t=i.getBoundingClientRect(),r=Sl(i),a=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,d*=e.y,c+=a,l+=o,n=ol(i),i=Dl(n)}}return rd({width:u,height:d,x:c,y:l})}function ap(e,t){let n=Cl(e).scrollLeft;return t?t.left+n:ip(sl(e)).left+n}function op(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-ap(e,n),y:n.top+t.scrollTop}}function sp(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=sl(r),s=t?pl(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=Fu(1),u=Fu(0),d=ll(r);if((d||!d&&!a)&&((al(r)!==`body`||dl(o))&&(c=Cl(r)),d)){let e=ip(r);l=ep(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=o&&!d&&!a?op(o,c):Fu(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+f.x,y:n.y*l.y-c.scrollTop*l.y+u.y+f.y}}function cp(e){return Array.from(e.getClientRects())}function lp(e){let t=sl(e),n=Cl(e),r=e.ownerDocument.body,i=Mu(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=Mu(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),o=-n.scrollLeft+ap(e),s=-n.scrollTop;return Sl(r).direction===`rtl`&&(o+=Mu(t.clientWidth,r.clientWidth)-i),{width:i,height:a,x:o,y:s}}var up=25;function dp(e,t){let n=ol(e),r=sl(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,c=0;if(i){a=i.width,o=i.height;let e=bl();(!e||e&&t===`fixed`)&&(s=i.offsetLeft,c=i.offsetTop)}let l=ap(r);if(l<=0){let e=r.ownerDocument,t=e.body,n=getComputedStyle(t),i=e.compatMode===`CSS1Compat`&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,o=Math.abs(r.clientWidth-t.clientWidth-i);o<=up&&(a-=o)}else l<=up&&(a+=l);return{width:a,height:o,x:s,y:c}}function fp(e,t){let n=ip(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=ll(e)?ep(e):Fu(1);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function pp(e,t,n){let r;if(t===`viewport`)r=dp(e,n);else if(t===`document`)r=lp(sl(e));else if(G(t))r=fp(t,n);else{let n=np(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return rd(r)}function mp(e,t){let n=wl(e);return n===t||!G(n)||xl(n)?!1:Sl(n).position===`fixed`||mp(n,t)}function hp(e,t){let n=t.get(e);if(n)return n;let r=El(e,[],!1).filter(e=>G(e)&&al(e)!==`body`),i=null,a=Sl(e).position===`fixed`,o=a?wl(e):e;for(;G(o)&&!xl(o);){let t=Sl(o),n=vl(o);!n&&t.position===`fixed`&&(i=null),(a?!n&&!i:!n&&t.position===`static`&&i&&(i.position===`absolute`||i.position===`fixed`)||dl(o)&&!n&&mp(e,o))?r=r.filter(e=>e!==o):i=t,o=wl(o)}return t.set(e,r),r}function gp(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?pl(t)?[]:hp(t,this._c):[].concat(n),r],o=pp(t,a[0],i),s=o.top,c=o.right,l=o.bottom,u=o.left;for(let e=1;e<a.length;e++){let n=pp(t,a[e],i);s=Mu(n.top,s),c=ju(n.right,c),l=ju(n.bottom,l),u=Mu(n.left,u)}return{width:c-u,height:l-s,x:u,y:s}}function _p(e){let{width:t,height:n}=Qf(e);return{width:t,height:n}}function vp(e,t,n){let r=ll(t),i=sl(t),a=n===`fixed`,o=ip(e,!0,a,t),s={scrollLeft:0,scrollTop:0},c=Fu(0);function l(){c.x=ap(i)}if(r||!r&&!a)if((al(t)!==`body`||dl(i))&&(s=Cl(t)),r){let e=ip(t,!0,a,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}else i&&l();a&&!r&&i&&l();let u=i&&!r&&!a?op(i,s):Fu(0);return{x:o.left+s.scrollLeft-c.x-u.x,y:o.top+s.scrollTop-c.y-u.y,width:o.width,height:o.height}}function yp(e){return Sl(e).position===`static`}function bp(e,t){if(!ll(e)||Sl(e).position===`fixed`)return null;if(t)return t(e);let n=e.offsetParent;return sl(e)===n&&(n=n.ownerDocument.body),n}function xp(e,t){let n=ol(e);if(pl(e))return n;if(!ll(e)){let t=wl(e);for(;t&&!xl(t);){if(G(t)&&!yp(t))return t;t=wl(t)}return n}let r=bp(e,t);for(;r&&fl(r)&&yp(r);)r=bp(r,t);return r&&xl(r)&&yp(r)&&!vl(r)?n:r||yl(e)||n}var Sp=async function(e){let t=this.getOffsetParent||xp,n=this.getDimensions,r=await n(e.floating);return{reference:vp(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Cp(e){return Sl(e).direction===`rtl`}var wp={convertOffsetParentRelativeRectToViewportRelativeRect:sp,getDocumentElement:sl,getClippingRect:gp,getOffsetParent:xp,getElementRects:Sp,getClientRects:cp,getDimensions:_p,getScale:ep,isElement:G,isRTL:Cp};function Tp(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Ep(e,t){let n=null,r,i=sl(e);function a(){var e;clearTimeout(r),(e=n)==null||e.disconnect(),n=null}function o(s,c){s===void 0&&(s=!1),c===void 0&&(c=1),a();let l=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=l;if(s||t(),!f||!p)return;let m=Pu(d),h=Pu(i.clientWidth-(u+f)),g=Pu(i.clientHeight-(d+p)),_=Pu(u),v={rootMargin:-m+`px `+-h+`px `+-g+`px `+-_+`px`,threshold:Mu(0,ju(1,c))||1},y=!0;function b(t){let n=t[0].intersectionRatio;if(n!==c){if(!y)return o();n?o(!1,n):r=setTimeout(()=>{o(!1,1e-7)},1e3)}n===1&&!Tp(l,e.getBoundingClientRect())&&o(),y=!1}try{n=new IntersectionObserver(b,{...v,root:i.ownerDocument})}catch{n=new IntersectionObserver(b,v)}n.observe(e)}return o(!0),a}function Dp(e,t,n,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver==`function`,layoutShift:s=typeof IntersectionObserver==`function`,animationFrame:c=!1}=r,l=$f(e),u=i||a?[...l?El(l):[],...t?El(t):[]]:[];u.forEach(e=>{i&&e.addEventListener(`scroll`,n,{passive:!0}),a&&e.addEventListener(`resize`,n)});let d=l&&s?Ep(l,n):null,f=-1,p=null;o&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===l&&p&&t&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;(e=p)==null||e.observe(t)})),n()}),l&&!c&&p.observe(l),t&&p.observe(t));let m,h=c?ip(e):null;c&&g();function g(){let t=ip(e);h&&!Tp(h,t)&&n(),h=t,m=requestAnimationFrame(g)}return n(),()=>{var e;u.forEach(e=>{i&&e.removeEventListener(`scroll`,n),a&&e.removeEventListener(`resize`,n)}),d?.(),(e=p)==null||e.disconnect(),p=null,c&&cancelAnimationFrame(m)}}var Op=Jf,kp=Yf,Ap=Hf,jp=Zf,Mp=Gf,Np=Xf,Pp=(e,t,n)=>{let r=new Map,i={platform:wp,...n},a={...i.platform,_c:r};return Vf(e,t,{...i,platform:a})},Fp=typeof document<`u`?H.useLayoutEffect:function(){};function Ip(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e==`function`&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e==`object`){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Ip(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){let n=i[r];if(!(n===`_owner`&&e.$$typeof)&&!Ip(e[n],t[n]))return!1}return!0}return e!==e&&t!==t}function Lp(e){return typeof window>`u`?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Rp(e,t){let n=Lp(e);return Math.round(t*n)/n}function zp(e){let t=H.useRef(e);return Fp(()=>{t.current=e}),t}function Bp(e){e===void 0&&(e={});let{placement:t=`bottom`,strategy:n=`absolute`,middleware:r=[],platform:i,elements:{reference:a,floating:o}={},transform:s=!0,whileElementsMounted:c,open:l}=e,[u,d]=H.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=H.useState(r);Ip(f,r)||p(r);let[m,h]=H.useState(null),[g,_]=H.useState(null),v=H.useCallback(e=>{e!==S.current&&(S.current=e,h(e))},[]),y=H.useCallback(e=>{e!==C.current&&(C.current=e,_(e))},[]),b=a||m,x=o||g,S=H.useRef(null),C=H.useRef(null),w=H.useRef(u),E=c!=null,D=zp(c),O=zp(i),k=zp(l),A=H.useCallback(()=>{if(!S.current||!C.current)return;let e={placement:t,strategy:n,middleware:f};O.current&&(e.platform=O.current),Pp(S.current,C.current,e).then(e=>{let t={...e,isPositioned:k.current!==!1};j.current&&!Ip(w.current,t)&&(w.current=t,gf.flushSync(()=>{d(t)}))})},[f,t,n,O,k]);Fp(()=>{l===!1&&w.current.isPositioned&&(w.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[l]);let j=H.useRef(!1);Fp(()=>(j.current=!0,()=>{j.current=!1}),[]),Fp(()=>{if(b&&(S.current=b),x&&(C.current=x),b&&x){if(D.current)return D.current(b,x,A);A()}},[b,x,A,D,E]);let M=H.useMemo(()=>({reference:S,floating:C,setReference:v,setFloating:y}),[v,y]),N=H.useMemo(()=>({reference:b,floating:x}),[b,x]),ee=H.useMemo(()=>{let e={position:n,left:0,top:0};if(!N.floating)return e;let t=Rp(N.floating,u.x),r=Rp(N.floating,u.y);return s?{...e,transform:`translate(`+t+`px, `+r+`px)`,...Lp(N.floating)>=1.5&&{willChange:`transform`}}:{position:n,left:t,top:r}},[n,s,N.floating,u.x,u.y]);return H.useMemo(()=>({...u,update:A,refs:M,elements:N,floatingStyles:ee}),[u,A,M,N,ee])}var Vp=(e,t)=>{let n=Op(e);return{name:n.name,fn:n.fn,options:[e,t]}},Hp=(e,t)=>{let n=kp(e);return{name:n.name,fn:n.fn,options:[e,t]}},Up=(e,t)=>({fn:Np(e).fn,options:[e,t]}),Wp=(e,t)=>{let n=Ap(e);return{name:n.name,fn:n.fn,options:[e,t]}},Gp=(e,t)=>{let n=jp(e);return{name:n.name,fn:n.fn,options:[e,t]}},Kp=(e,t)=>{let n=Mp(e);return{name:n.name,fn:n.fn,options:[e,t]}};function qp(e){let t=H.useRef(!0);t.current&&(t.current=!1,e())}var Jp=(e,t,n,r,i,a,...o)=>{if(o.length>0)throw Error(Ac(1));let s;if(e&&t&&n&&r&&i&&a)s=(o,s,c,l)=>a(e(o,s,c,l),t(o,s,c,l),n(o,s,c,l),r(o,s,c,l),i(o,s,c,l),s,c,l);else if(e&&t&&n&&r&&i)s=(a,o,s,c)=>i(e(a,o,s,c),t(a,o,s,c),n(a,o,s,c),r(a,o,s,c),o,s,c);else if(e&&t&&n&&r)s=(i,a,o,s)=>r(e(i,a,o,s),t(i,a,o,s),n(i,a,o,s),a,o,s);else if(e&&t&&n)s=(r,i,a,o)=>n(e(r,i,a,o),t(r,i,a,o),i,a,o);else if(e&&t)s=(n,r,i,a)=>t(e(n,r,i,a),r,i,a);else if(e)s=e;else throw Error(`Missing arguments`);return s},Yp=ee(),Xp=I(),Zp=Rd(19)?em:tm;function Qp(e,t,n,r,i){return Zp(e,t,n,r,i)}function $p(e,t,n,r,i){let a=H.useCallback(()=>t(e.getSnapshot(),n,r,i),[e,t,n,r,i]);return(0,Yp.useSyncExternalStore)(e.subscribe,a,a)}Tc({before(e){e.syncIndex=0,e.didInitialize||(e.syncTick=1,e.syncHooks=[],e.didChangeStore=!0,e.getSnapshot=()=>{let t=!1;for(let n=0;n<e.syncHooks.length;n+=1){let r=e.syncHooks[n],i=r.selector(r.store.state,r.a1,r.a2,r.a3);Object.is(r.value,i)||(t=!0,r.value=i)}return t&&(e.syncTick+=1),e.syncTick})},after(e){e.syncHooks.length>0&&(e.didChangeStore&&(e.didChangeStore=!1,e.subscribe=t=>{let n=new Set;for(let t of e.syncHooks)n.add(t.store);let r=[];for(let e of n)r.push(e.subscribe(t));return()=>{for(let e of r)e()}}),(0,Yp.useSyncExternalStore)(e.subscribe,e.getSnapshot,e.getSnapshot))}});function em(e,t,n,r,i){let a=wc();if(!a)return $p(e,t,n,r,i);let o=a.syncIndex;a.syncIndex+=1;let s;return a.didInitialize?(s=a.syncHooks[o],(s.store!==e||s.selector!==t||!Object.is(s.a1,n)||!Object.is(s.a2,r)||!Object.is(s.a3,i))&&(s.store!==e&&(a.didChangeStore=!0),s.store=e,s.selector=t,s.a1=n,s.a2=r,s.a3=i,s.value=t(e.getSnapshot(),n,r,i))):(s={store:e,selector:t,a1:n,a2:r,a3:i,value:t(e.getSnapshot(),n,r,i)},a.syncHooks.push(s)),s.value}function tm(e,t,n,r,i){return(0,Xp.useSyncExternalStoreWithSelector)(e.subscribe,e.getSnapshot,e.getSnapshot,e=>t(e,n,r,i))}var nm=class{constructor(e){this.state=e,this.listeners=new Set,this.updateTick=0}subscribe=e=>(this.listeners.add(e),()=>{this.listeners.delete(e)});getSnapshot=()=>this.state;setState(e){if(this.state===e)return;this.state=e,this.updateTick+=1;let t=this.updateTick;for(let n of this.listeners){if(t!==this.updateTick)return;n(e)}}update(e){for(let t in e)if(!Object.is(this.state[t],e[t])){this.setState({...this.state,...e});return}}set(e,t){Object.is(this.state[e],t)||this.setState({...this.state,[e]:t})}notifyAll(){let e={...this.state};this.setState(e)}use(e,t,n,r){return Qp(this,e,t,n,r)}},rm=class extends nm{constructor(e,t={},n){super(e),this.context=t,this.selectors=n}useSyncedValue(e,t){H.useDebugValue(e);let n=this;W(()=>{n.state[e]!==t&&n.set(e,t)},[n,e,t])}useSyncedValueWithCleanup(e,t){let n=this;W(()=>(n.state[e]!==t&&n.set(e,t),()=>{n.set(e,void 0)}),[n,e,t])}useSyncedValues(e){let t=this;W(()=>{t.update(e)},[t,...Object.values(e)])}useControlledProp(e,t){H.useDebugValue(e);let n=this,r=t!==void 0;W(()=>{r&&!Object.is(n.state[e],t)&&n.setState({...n.state,[e]:t})},[n,e,t,r])}select(e,t,n,r){let i=this.selectors[e];return i(this.state,t,n,r)}useState(e,t,n,r){return H.useDebugValue(e),Qp(this,this.selectors[e],t,n,r)}useContextCallback(e,t){H.useDebugValue(e);let n=vu(t??Wl);this.context[e]=n}useStateSetter(e){let t=H.useRef(void 0);return t.current===void 0&&(t.current=t=>{this.set(e,t)}),t.current}observe(e,t){let n;n=typeof e==`function`?e:this.selectors[e];let r=n(this.state);return t(r,r,this),this.subscribe(e=>{let i=n(e);if(!Object.is(r,i)){let e=r;r=i,t(i,e,this)}})}},im={open:Jp(e=>e.open),transitionStatus:Jp(e=>e.transitionStatus),domReferenceElement:Jp(e=>e.domReferenceElement),referenceElement:Jp(e=>e.positionReference??e.referenceElement),floatingElement:Jp(e=>e.floatingElement),floatingId:Jp(e=>e.floatingId)},am=class extends rm{constructor(e){let{syncOnly:t,nested:n,onOpenChange:r,triggerElements:i,...a}=e;super({...a,positionReference:a.referenceElement,domReferenceElement:a.referenceElement},{onOpenChange:r,dataRef:{current:{}},events:Sf(),nested:n,triggerElements:i},im),this.syncOnly=t}syncOpenEvent=(e,t)=>{(!e||!this.state.open||t!=null&&rl(t))&&(this.context.dataRef.current.openEvent=e?t:void 0)};dispatchOpenChange=(e,t)=>{this.syncOpenEvent(e,t.event);let n={open:e,reason:t.reason,nativeEvent:t.event,nested:this.context.nested,triggerElement:t.trigger};this.context.events.emit(`openchange`,n)};setOpen=(e,t)=>{if(this.syncOnly){this.context.onOpenChange?.(e,t);return}this.dispatchOpenChange(e,t),this.context.onOpenChange?.(e,t)}};function om(e){let{popupStore:t,treatPopupAsFloatingElement:n=!1,floatingRootContext:r,floatingId:i,nested:a,onOpenChange:o}=e,s=t.useState(`open`),c=t.useState(`activeTriggerElement`),l=t.useState(n?`popupElement`:`positionerElement`),u=t.context.triggerElements,d=o,f=H.useRef(null);r===void 0&&f.current===null&&(f.current=new am({open:s,transitionStatus:void 0,referenceElement:c,floatingElement:l,triggerElements:u,onOpenChange:d,floatingId:i,syncOnly:!0,nested:a}));let p=r??f.current;return t.useSyncedValue(`floatingId`,i),W(()=>{let e={open:s,floatingId:i,referenceElement:c,floatingElement:l};G(c)&&(e.domReferenceElement=c),p.state.positionReference===p.state.referenceElement&&(e.positionReference=c),p.update(e)},[s,i,c,l,p]),p.context.onOpenChange=d,p.context.nested=a,p}function sm(e,t=!1,n=!1){let[r,i]=H.useState(e&&t?`idle`:void 0),[a,o]=H.useState(e);return e&&!a&&(o(!0),i(`starting`)),!e&&a&&r!==`ending`&&!n&&i(`ending`),!e&&!a&&r===`ending`&&i(void 0),W(()=>{if(!e&&a&&r!==`ending`&&n){let e=Cu.request(()=>{i(`ending`)});return()=>{Cu.cancel(e)}}},[e,a,r,n]),W(()=>{if(!e||t)return;let n=Cu.request(()=>{i(void 0)});return()=>{Cu.cancel(n)}},[t,e]),W(()=>{if(!e||!t)return;e&&a&&r!==`idle`&&i(`starting`);let n=Cu.request(()=>{i(`idle`)});return()=>{Cu.cancel(n)}},[t,e,a,r]),{mounted:a,setMounted:o,transitionStatus:r}}var cm=function(e){return e.startingStyle=`data-starting-style`,e.endingStyle=`data-ending-style`,e}({}),lm={[cm.startingStyle]:``},um={[cm.endingStyle]:``},dm={transitionStatus(e){return e===`starting`?lm:e===`ending`?um:null}};function fm(e,t=!1,n=!0){let r=wu();return vu((i,a=null)=>{r.cancel();let o=jf(e);if(o==null)return;let s=o,c=()=>{gf.flushSync(i)};if(typeof s.getAnimations!=`function`||globalThis.BASE_UI_ANIMATIONS_DISABLED){i();return}function l(){Promise.all(s.getAnimations().map(e=>e.finished)).then(()=>{a?.aborted||c()}).catch(()=>{if(n){a?.aborted||c();return}let e=s.getAnimations();!a?.aborted&&e.length>0&&e.some(e=>e.pending||e.playState!==`finished`)&&l()})}if(t){let e=cm.startingStyle;if(!s.hasAttribute(e)){r.request(l);return}let t=new MutationObserver(()=>{s.hasAttribute(e)||(t.disconnect(),l())});t.observe(s,{attributes:!0,attributeFilter:[e]}),a?.addEventListener(`abort`,()=>t.disconnect(),{once:!0});return}r.request(l)})}function pm(e){let{enabled:t=!0,open:n,ref:r,onComplete:i}=e,a=vu(i),o=fm(r,n,!1);H.useEffect(()=>{if(!t)return;let e=new AbortController;return o(a,e.signal),()=>{e.abort()}},[t,n,a,o])}var mm={tabIndex:-1,[Ol]:``};function hm(e){return t=>t===`touch`?e.current:!0}function gm(e,t,n=!1){let r=Id(),i=Ef()!=null,a=H.useRef(null);e===void 0&&a.current===null&&(a.current=t(r,i));let o=e??a.current;return om({popupStore:o,treatPopupAsFloatingElement:n,floatingRootContext:o.state.floatingRootContext,floatingId:r,nested:i,onOpenChange:o.setOpen}),{store:o,internalStore:a.current}}function _m(e,t){let n=H.useRef(null),r=H.useRef(null);return H.useCallback(i=>{if(e===void 0)return;let a=!1;if(n.current!==null){let e=n.current,i=r.current,o=t.context.triggerElements.getById(e);i&&o===i&&(t.context.triggerElements.delete(e),a=!0),n.current=null,r.current=null}if(i!==null&&(n.current=e,r.current=i,t.context.triggerElements.add(e,i),a=!0),a){let e=t.context.triggerElements.size;t.select(`open`)&&t.state.triggerCount!==e&&t.set(`triggerCount`,e)}},[t,e])}function vm(e,t,n,r=!1){t?e.preventUnmountingOnClose=!1:r&&(e.preventUnmountingOnClose=!0);let i=n?.id??null;(i||t)&&(e.activeTriggerId=i,e.activeTriggerElement=n??null)}function ym(e){let t=!1;return e.preventUnmountOnClose=()=>{t=!0},()=>t}function bm(e,t,n,r={}){let i=n.reason,a=i===J,o=t&&i===`trigger-focus`,s=!t&&(i===`trigger-press`||i===`escape-key`),c=ym(n);if(e.context.onOpenChange?.(t,n),n.isCanceled)return;r.onBeforeDispatch?.(),e.state.floatingRootContext.dispatchOpenChange(t,n);let l=()=>{let i={...r.extraState,open:t};o?i.instantType=`focus`:s?i.instantType=`dismiss`:a&&(i.instantType=void 0),vm(i,t,n.trigger,c()),e.update(i)};a?gf.flushSync(l):l()}function xm(e,t,n,r){qp(()=>{t===void 0&&e.state.open===!1&&n&&(e.state={...e.state,open:!0,activeTriggerId:r,preventUnmountingOnClose:!1})})}function Sm(e,t,n,r){let i=n.useState(`isMountedByTrigger`,e),a=_m(e,n),o=vu(t=>{if(a(t),!t)return;let i=n.select(`open`),o=n.select(`activeTriggerId`);if(o===e){n.update({activeTriggerElement:t,...i?r:null});return}o==null&&i&&n.update({activeTriggerId:e,activeTriggerElement:t,...r})});return W(()=>{i&&n.update({activeTriggerElement:t.current,...r})},[i,n,t,...Object.values(r)]),{registerTrigger:o,isMountedByThisTrigger:i}}function Cm(e,t={}){let{closeOnActiveTriggerUnmount:n=!1}=t,r=e.useState(`open`);W(()=>{if(!r){e.state.triggerCount!==0&&e.set(`triggerCount`,0);return}let t=e.context.triggerElements.size,i={};e.state.triggerCount!==t&&(i.triggerCount=t);let a=e.select(`activeTriggerId`),o=null;if(a){let t=e.context.triggerElements.getById(a);t?t!==e.state.activeTriggerElement&&(i.activeTriggerElement=t):o=a}if(!o&&!a&&t===1){let t=e.context.triggerElements.entries().next();if(!t.done){let[e,n]=t.value;i.activeTriggerId=e,i.activeTriggerElement=n}}(i.triggerCount!==void 0||i.activeTriggerId!==void 0||i.activeTriggerElement!==void 0)&&e.update(i),o&&n&&queueMicrotask(()=>{if(e.select(`open`)&&e.select(`activeTriggerId`)===o&&!e.context.triggerElements.getById(o)){let t=tu(Kl);e.setOpen(!1,t),t.isCanceled||e.update({activeTriggerId:null,activeTriggerElement:null})}})},[r,e,e.useState(`triggerCount`),n])}function wm(e,t,n){let{mounted:r,setMounted:i,transitionStatus:a}=sm(e),o=t.useState(`preventUnmountingOnClose`),s=e?!1:o;t.useSyncedValues({mounted:r,transitionStatus:a,preventUnmountingOnClose:s});let c=vu(()=>{i(!1),t.update({activeTriggerId:null,activeTriggerElement:null,mounted:!1,preventUnmountingOnClose:!1}),n?.(),t.context.onOpenChangeComplete?.(!1)});return pm({enabled:r&&!e&&!s,open:e,ref:t.context.popupRef,onComplete(){e||c()}}),{forceUnmount:c,transitionStatus:a}}function Tm(e,t){e.useSyncedValues(t),W(()=>()=>{e.update({activeTriggerProps:Gl,inactiveTriggerProps:Gl,popupProps:Gl})},[e])}function Em(e,t){W(()=>{!t&&e.state.openMethod!==null&&e.set(`openMethod`,null)},[t,e]),W(()=>()=>{e.state.openMethod!==null&&e.set(`openMethod`,null)},[e])}var Dm=class{constructor(){this.elementsSet=new Set,this.idMap=new Map}add(e,t){let n=this.idMap.get(e);n!==t&&(n!==void 0&&this.elementsSet.delete(n),this.elementsSet.add(t),this.idMap.set(e,t))}delete(e){let t=this.idMap.get(e);t&&(this.elementsSet.delete(t),this.idMap.delete(e))}hasElement(e){return this.elementsSet.has(e)}hasMatchingElement(e){for(let t of this.elementsSet)if(e(t))return!0;return!1}getById(e){return this.idMap.get(e)}entries(){return this.idMap.entries()}elements(){return this.elementsSet.values()}get size(){return this.idMap.size}};function Om(){return new am({open:!1,transitionStatus:void 0,floatingElement:null,referenceElement:null,triggerElements:new Dm,floatingId:void 0,syncOnly:!1,nested:!1,onOpenChange:void 0})}function km(){return{open:!1,openProp:void 0,mounted:!1,transitionStatus:void 0,floatingRootContext:Om(),floatingId:void 0,triggerCount:0,preventUnmountingOnClose:!1,payload:void 0,activeTriggerId:null,activeTriggerElement:null,triggerIdProp:void 0,popupElement:null,positionerElement:null,activeTriggerProps:Gl,inactiveTriggerProps:Gl,popupProps:Gl}}function Am(e,t,n=!1){return new am({open:!1,transitionStatus:void 0,floatingElement:null,referenceElement:null,triggerElements:e,floatingId:t,syncOnly:!0,nested:n,onOpenChange:void 0})}var jm=Jp(e=>e.triggerIdProp??e.activeTriggerId),Mm=Jp(e=>e.openProp??e.open),Nm=Jp(e=>(e.popupElement?.id??e.floatingId)||void 0);function Pm(e,t){return t!==void 0&&Mm(e)&&jm(e)===t}function Fm(e,t){return Pm(e,t)?!0:t!==void 0&&Mm(e)&&jm(e)==null&&e.triggerCount===1}var Im={open:Mm,mounted:Jp(e=>e.mounted),transitionStatus:Jp(e=>e.transitionStatus),floatingRootContext:Jp(e=>e.floatingRootContext),triggerCount:Jp(e=>e.triggerCount),preventUnmountingOnClose:Jp(e=>e.preventUnmountingOnClose),payload:Jp(e=>e.payload),activeTriggerId:jm,activeTriggerElement:Jp(e=>e.mounted?e.activeTriggerElement:null),popupId:Nm,isTriggerActive:Jp((e,t)=>t!==void 0&&jm(e)===t),isOpenedByTrigger:Jp((e,t)=>Pm(e,t)),isMountedByTrigger:Jp((e,t)=>t!==void 0&&jm(e)===t&&e.mounted),triggerProps:Jp((e,t)=>t?e.activeTriggerProps:e.inactiveTriggerProps),triggerPopupId:Jp((e,t)=>Fm(e,t)?Nm(e):void 0),popupProps:Jp(e=>e.popupProps),popupElement:Jp(e=>e.popupElement),positionerElement:Jp(e=>e.positionerElement)};function Lm(e){let{open:t=!1,onOpenChange:n,elements:r={}}=e,i=Id(),a=Ef()!=null,o=xc(()=>new am({open:t,transitionStatus:void 0,onOpenChange:n,referenceElement:r.reference??null,floatingElement:r.floating??null,triggerElements:new Dm,floatingId:i,syncOnly:!1,nested:a})).current;return W(()=>{let e={open:t,floatingId:i};r.reference!==void 0&&(e.referenceElement=r.reference,e.domReferenceElement=G(r.reference)?r.reference:null),r.floating!==void 0&&(e.floatingElement=r.floating),o.update(e)},[t,i,r.reference,r.floating,o]),o.context.onOpenChange=n,o.context.nested=a,o}function Rm(e={}){let{nodeId:t,externalTree:n}=e,r=Lm(e),i=e.rootContext||r,a=i.useState(`referenceElement`),o=i.useState(`floatingElement`),s=i.useState(`domReferenceElement`),c=i.useState(`open`),l=i.useState(`floatingId`),[u,d]=H.useState(null),[f,p]=H.useState(void 0),[m,h]=H.useState(void 0),g=H.useRef(null),_=Df(n),v=H.useMemo(()=>({reference:a,floating:o,domReference:s}),[a,o,s]),y=Bp({...e,elements:{...v,...u&&{reference:u}}}),b=G(f)?f:null,x=m===void 0?i.state.floatingElement:m;i.useSyncedValue(`referenceElement`,f??null),i.useSyncedValue(`domReferenceElement`,f===void 0?s:b),i.useSyncedValue(`floatingElement`,x);let S=H.useCallback(e=>{let t=G(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),getClientRects:()=>e.getClientRects(),contextElement:e}:e;d(t),y.refs.setReference(t)},[y.refs]),C=H.useCallback(e=>{(G(e)||e===null)&&(g.current=e,p(e)),(G(y.refs.reference.current)||y.refs.reference.current===null||e!==null&&!G(e))&&y.refs.setReference(e)},[y.refs,p]),w=H.useCallback(e=>{h(e),y.refs.setFloating(e)},[y.refs]),E=H.useMemo(()=>({...y.refs,setReference:C,setFloating:w,setPositionReference:S,domReference:g}),[y.refs,C,w,S]),D=H.useMemo(()=>({...y.elements,domReference:s}),[y.elements,s]),O=H.useMemo(()=>({...y,dataRef:i.context.dataRef,open:c,onOpenChange:i.setOpen,events:i.context.events,floatingId:l,refs:E,elements:D,nodeId:t,rootStore:i}),[y,E,D,t,i,c,l]);return W(()=>{s&&(g.current=s)},[s]),W(()=>{i.context.dataRef.current.floatingContext=O;let e=_?.nodesRef.current.find(e=>e.id===t);e&&(e.context=O)}),H.useMemo(()=>({...y,context:O,refs:E,elements:D,rootStore:i}),[y,E,D,O,i])}var zm=qc&&Yc;function Bm(e,t={}){let{enabled:n=!0,delay:r}=t,i=`rootStore`in e?e.rootStore:e,{events:a,dataRef:o}=i.context,s=H.useRef(!1),c=H.useRef(null),l=H.useRef(!0),u=Lc();H.useEffect(()=>{let e=i.select(`domReferenceElement`);if(!n)return;let t=ol(e);function r(){let e=i.select(`domReferenceElement`);!i.select(`open`)&&ll(e)&&e===Al(Tu(e))&&(s.current=!0)}function a(){l.current=!0}function o(){l.current=!1}return ou(Y(t,`blur`,r),zm&&Y(t,`keydown`,a,!0),zm&&Y(t,`pointerdown`,o,!0))},[i,n]),H.useEffect(()=>{if(!n)return;function e(e){if(e.reason===`trigger-press`||e.reason===`escape-key`){let e=i.select(`domReferenceElement`);G(e)&&(c.current=e,s.current=!0)}}return a.on(`openchange`,e),()=>{a.off(`openchange`,e)}},[a,n,i]);let d=H.useMemo(()=>{function e(){s.current=!1,c.current=null}return{onMouseLeave(){e()},onFocus(t){let n=t.currentTarget;if(s.current){if(c.current===n)return;e()}let a=Ml(t.nativeEvent);if(G(a)){if(zm&&!t.relatedTarget){if(!l.current&&!Il(a))return}else if(!zl(a))return}let o=Nl(t.relatedTarget,i.context.triggerElements),{nativeEvent:d,currentTarget:f}=t,p=typeof r==`function`?r():r;if(i.select(`open`)&&o||p===0||p===void 0){i.setOpen(!0,tu(Jl,d,f));return}u.start(p,()=>{s.current||i.setOpen(!0,tu(Jl,d,f))})},onBlur(t){e();let n=t.relatedTarget,r=t.nativeEvent,a=G(n)&&n.hasAttribute(Md(`focus-guard`))&&n.getAttribute(`data-type`)===`outside`;u.start(0,()=>{let e=i.select(`domReferenceElement`),t=Al(Tu(e));!n&&t===e||jl(o.current.floatingContext?.refs.floating.current,t)||jl(e,t)||a||Nl(n??t,i.context.triggerElements)||i.setOpen(!1,tu(Jl,r))})}}},[o,r,i,u]);return H.useMemo(()=>n?{reference:d,trigger:d}:{},[n,d])}var Vm=class e{constructor(){this.pointerType=void 0,this.interactedInside=!1,this.handler=void 0,this.blockMouseMove=!0,this.performedPointerEventsMutation=!1,this.pointerEventsScopeElement=null,this.pointerEventsReferenceElement=null,this.pointerEventsFloatingElement=null,this.restTimeoutPending=!1,this.openChangeTimeout=new Ic,this.restTimeout=new Ic,this.handleCloseOptions=void 0}static create(){return new e}dispose=()=>{this.openChangeTimeout.clear(),this.restTimeout.clear()};disposeEffect=()=>this.dispose},Hm=new WeakMap;function Um(e){if(!e.performedPointerEventsMutation)return;let t=e.pointerEventsScopeElement;t&&Hm.get(t)===e&&(e.pointerEventsScopeElement?.style.removeProperty(`pointer-events`),e.pointerEventsReferenceElement?.style.removeProperty(`pointer-events`),e.pointerEventsFloatingElement?.style.removeProperty(`pointer-events`),Hm.delete(t)),e.performedPointerEventsMutation=!1,e.pointerEventsScopeElement=null,e.pointerEventsReferenceElement=null,e.pointerEventsFloatingElement=null}function Wm(e,t){let{scopeElement:n,referenceElement:r,floatingElement:i}=t,a=Hm.get(n);a&&a!==e&&Um(a),Um(e),e.performedPointerEventsMutation=!0,e.pointerEventsScopeElement=n,e.pointerEventsReferenceElement=r,e.pointerEventsFloatingElement=i,Hm.set(n,e),n.style.pointerEvents=`none`,r.style.pointerEvents=`auto`,i.style.pointerEvents=`auto`}function Gm(e){let t=e.context.dataRef.current,n=xc(()=>t.hoverInteractionState??Vm.create()).current;return t.hoverInteractionState||=n,Pc(t.hoverInteractionState.disposeEffect),t.hoverInteractionState}function Km(e,t={}){let{enabled:n=!0,closeDelay:r=0,nodeId:i}=t,a=`rootStore`in e?e.rootStore:e,o=a.useState(`open`),s=a.useState(`floatingElement`),c=a.useState(`domReferenceElement`),{dataRef:l}=a.context,u=Df(),d=Ef(),f=Gm(a),p=Lc(),m=vu(()=>Hl(l.current.openEvent?.type,f.interactedInside)),h=vu(()=>Ul(l.current.openEvent?.type)),g=vu(()=>{Um(f)});W(()=>{o||(f.pointerType=void 0,f.restTimeoutPending=!1,f.interactedInside=!1,g())},[o,f,g]),H.useEffect(()=>g,[g]),W(()=>{if(n&&o&&f.handleCloseOptions?.blockPointerEvents&&h()&&G(c)&&s){let e=c,t=s,n=Tu(s),r=u?.nodesRef.current.find(e=>e.id===d)?.context?.elements.floating;r&&(r.style.pointerEvents=``);let i=f.pointerEventsScopeElement===t?null:f.pointerEventsScopeElement,a=r===t?null:r;return Wm(f,{scopeElement:f.handleCloseOptions?.getScope?.()??i??a??e.closest(`[data-rootownerid]`)??n.body,referenceElement:e,floatingElement:t}),()=>{g()}}},[n,o,c,s,f,h,u,d,g]),H.useEffect(()=>{if(!n)return;function e(){return!!(u&&d&&Ad(u.nodesRef.current,d).length>0)}function t(e){let t=K(r,`close`,f.pointerType),n=()=>{a.setOpen(!1,tu(J,e)),u?.events.emit(`floating.closed`,e)};t?f.openChangeTimeout.start(t,n):(f.openChangeTimeout.clear(),n())}function o(e){let t=Ml(e);if(!Ll(t)){f.interactedInside=!1;return}f.interactedInside=t?.closest(`[aria-haspopup]`)!=null}function c(){f.openChangeTimeout.clear(),p.clear(),u?.events.off(`floating.closed`,v),g()}function _(n){if(e()&&u){u.events.on(`floating.closed`,v);return}if(Nl(n.relatedTarget,a.context.triggerElements))return;let r=l.current.floatingContext?.nodeId??i,o=n.relatedTarget;if(!(u&&r&&G(o)&&Ad(u.nodesRef.current,r,!1).some(e=>jl(e.context?.elements.floating,o)))){if(f.handler){f.handler(n);return}g(),h()&&!m()&&t(n)}}function v(t){!u||!d||e()||p.start(0,()=>{u.events.off(`floating.closed`,v),a.setOpen(!1,tu(J,t)),u.events.emit(`floating.closed`,t)})}let y=s;return ou(y&&Y(y,`mouseenter`,c),y&&Y(y,`mouseleave`,_),y&&Y(y,`pointerdown`,o,!0),()=>{u?.events.off(`floating.closed`,v)})},[n,s,a,l,r,i,h,m,g,f,u,d,p])}var qm={current:null};function Jm(e,t={}){let{enabled:n=!0,delay:r=0,handleClose:i=null,mouseOnly:a=!1,restMs:o=0,move:s=!0,triggerElementRef:c=qm,externalTree:l,isActiveTrigger:u=!0,getHandleCloseContext:d,isClosing:f,shouldOpen:p}=t,m=`rootStore`in e?e.rootStore:e,{dataRef:h,events:g}=m.context,_=Df(l),v=Gm(m),y=H.useRef(!1),b=pu(i),x=pu(r),S=pu(o),C=pu(n),w=pu(p),E=pu(f),D=vu(()=>Hl(h.current.openEvent?.type,v.interactedInside)),O=vu(()=>w.current?.()!==!1),k=vu((e,t,n)=>{let r=m.context.triggerElements;if(r.hasElement(t))return!e||!jl(e,t);if(!G(n))return!1;let i=n;return r.hasMatchingElement(e=>jl(e,i))&&(!e||!jl(e,i))}),A=vu(()=>{v.handler&&=(Tu(m.select(`domReferenceElement`)).removeEventListener(`mousemove`,v.handler),void 0)}),j=vu(()=>{Um(v)});return u&&(v.handleCloseOptions=b.current?.__options),H.useEffect(()=>A,[A]),H.useEffect(()=>{if(!n)return;function e(e){e.open?y.current=!1:(y.current=e.reason===J,A(),v.openChangeTimeout.clear(),v.restTimeout.clear(),v.blockMouseMove=!0,v.restTimeoutPending=!1)}return g.on(`openchange`,e),()=>{g.off(`openchange`,e)}},[n,g,v,A]),H.useEffect(()=>{if(!n)return;function e(e,t=!0){let n=K(x.current,`close`,v.pointerType);n?v.openChangeTimeout.start(n,()=>{m.setOpen(!1,tu(J,e)),_?.events.emit(`floating.closed`,e)}):t&&(v.openChangeTimeout.clear(),m.setOpen(!1,tu(J,e)),_?.events.emit(`floating.closed`,e))}let t=c.current??(u?m.select(`domReferenceElement`):null);if(!G(t))return;function r(e){if(v.openChangeTimeout.clear(),v.blockMouseMove=!1,a&&!nl(v.pointerType))return;let t=q(S.current),n=K(x.current,`open`,v.pointerType),r=Ml(e),i=e.currentTarget??null,o=m.select(`domReferenceElement`),s=i;if(G(r)&&!m.context.triggerElements.hasElement(r)){for(let e of m.context.triggerElements.elements())if(jl(e,r)){s=e;break}}G(i)&&G(o)&&!m.context.triggerElements.hasElement(i)&&jl(i,o)&&(s=o);let c=s==null?!1:k(o,s,r),l=m.select(`open`),u=E.current?.()??m.select(`transitionStatus`)===`ending`,d=!l&&u&&y.current,f=!c&&G(s)&&G(o)&&jl(o,s)&&d,p=t>0&&!n,h=c&&(l||d)||f,g=!l||c;if(h){O()&&m.setOpen(!0,tu(J,e,s));return}p||(n?v.openChangeTimeout.start(n,()=>{g&&O()&&m.setOpen(!0,tu(J,e,s))}):g&&O()&&m.setOpen(!0,tu(J,e,s)))}function i(t){if(D()){j();return}A();let n=Tu(m.select(`domReferenceElement`));v.restTimeout.clear(),v.restTimeoutPending=!1;let r=h.current.floatingContext??d?.();if(!Nl(t.relatedTarget,m.context.triggerElements)){if(b.current&&r){m.select(`open`)||v.openChangeTimeout.clear();let i=c.current;v.handler=b.current({...r,tree:_,x:t.clientX,y:t.clientY,onClose(){j(),A(),C.current&&!D()&&i===m.select(`domReferenceElement`)&&e(t,!0)}}),n.addEventListener(`mousemove`,v.handler),v.handler(t);return}(v.pointerType!==`touch`||!jl(m.select(`floatingElement`),t.relatedTarget))&&e(t)}}return s?ou(Y(t,`mousemove`,r,{once:!0}),Y(t,`mouseenter`,r),Y(t,`mouseleave`,i)):ou(Y(t,`mouseenter`,r),Y(t,`mouseleave`,i))},[A,j,h,x,m,n,b,v,u,k,D,a,s,S,c,_,C,d,E,O]),H.useMemo(()=>{if(!n)return;function e(e){v.pointerType=e.pointerType}return{onPointerDown:e,onPointerEnter:e,onMouseMove(e){let{nativeEvent:t}=e,n=e.currentTarget,r=m.select(`domReferenceElement`),i=m.select(`open`),o=k(r,n,e.target);if(a&&!nl(v.pointerType))return;if(i&&o&&v.handleCloseOptions?.blockPointerEvents){let e=m.select(`floatingElement`);e&&Wm(v,{scopeElement:v.handleCloseOptions?.getScope?.()??n.ownerDocument.body,referenceElement:n,floatingElement:e})}let s=q(S.current);if(i&&!o||s===0||!o&&v.restTimeoutPending&&e.movementX**2+e.movementY**2<2)return;v.restTimeout.clear();function c(){if(v.restTimeoutPending=!1,D())return;let e=m.select(`open`);!v.blockMouseMove&&(!e||o)&&O()&&m.setOpen(!0,tu(J,t,n))}v.pointerType===`touch`?gf.flushSync(()=>{c()}):o&&i?c():(v.restTimeoutPending=!0,v.restTimeout.start(s,c))}}},[n,v,D,k,a,m,S,O])}var Ym=.1,Xm=Ym*Ym,Zm=.5;function Qm(e,t,n,r,i,a){return r>=t!=a>=t&&e<=(i-n)*(t-r)/(a-r)+n}function $m(e,t,n,r,i,a,o,s,c,l){let u=!1;return Qm(e,t,n,r,i,a)&&(u=!u),Qm(e,t,i,a,o,s)&&(u=!u),Qm(e,t,o,s,c,l)&&(u=!u),Qm(e,t,c,l,n,r)&&(u=!u),u}function eh(e,t,n){return e>=n.x&&e<=n.x+n.width&&t>=n.y&&t<=n.y+n.height}function th(e,t,n,r,i,a){return e>=Math.min(n,i)&&e<=Math.max(n,i)&&t>=Math.min(r,a)&&t<=Math.max(r,a)}function nh(e={}){let{blockPointerEvents:t=!1}=e,n=new Ic,r=({x:e,y:t,placement:r,elements:i,onClose:a,nodeId:o,tree:s})=>{let c=r?.split(`-`)[0],l=!1,u=null,d=null,f=typeof performance<`u`?performance.now():0;function p(e,t){let n=performance.now(),r=n-f;if(u===null||d===null||r===0)return u=e,d=t,f=n,!1;let i=e-u,a=t-d,o=i*i+a*a,s=r*r*Xm;return u=e,d=t,f=n,o<s}function m(){n.clear(),a()}return function(r){n.clear();let a=i.domReference,u=i.floating;if(!a||!u||c==null||e==null||t==null)return;let{clientX:d,clientY:f}=r,h=Ml(r),g=r.type===`mouseleave`,_=jl(u,h),v=jl(a,h);if(_&&(l=!0,!g))return;if(v&&(l=!1,!g)){l=!0;return}if(g&&G(r.relatedTarget)&&jl(u,r.relatedTarget))return;function y(){return!!(s&&Ad(s.nodesRef.current,o).length>0)}function b(){y()||m()}if(y())return;let x=a.getBoundingClientRect(),S=u.getBoundingClientRect(),C=e>S.right-S.width/2,w=t>S.bottom-S.height/2,E=S.width>x.width,D=S.height>x.height,O=(E?x:S).left,k=(E?x:S).right,A=(D?x:S).top,j=(D?x:S).bottom;if(c===`top`&&t>=x.bottom-1||c===`bottom`&&t<=x.top+1||c===`left`&&e>=x.right-1||c===`right`&&e<=x.left+1){b();return}let M=!1;switch(c){case`top`:M=th(d,f,O,x.top+1,k,S.bottom-1);break;case`bottom`:M=th(d,f,O,S.top+1,k,x.bottom-1);break;case`left`:M=th(d,f,S.right-1,j,x.left+1,A);break;case`right`:M=th(d,f,x.right-1,j,S.left+1,A);break;default:}if(M)return;if(l&&!eh(d,f,x)){b();return}if(!g&&p(d,f)){b();return}let N=!1;switch(c){case`top`:{let n=E?Zm/2:Zm*4,r=E||C?e+n:e-n,i=E?e-n:C?e+n:e-n,a=t+Zm+1,o=C||E?S.bottom-Zm:S.top,s=C?E?S.bottom-Zm:S.top:S.bottom-Zm;N=$m(d,f,r,a,i,a,S.left,o,S.right,s);break}case`bottom`:{let n=E?Zm/2:Zm*4,r=E||C?e+n:e-n,i=E?e-n:C?e+n:e-n,a=t-Zm,o=C||E?S.top+Zm:S.bottom,s=C?E?S.top+Zm:S.bottom:S.top+Zm;N=$m(d,f,r,a,i,a,S.left,o,S.right,s);break}case`left`:{let n=D?Zm/2:Zm*4,r=D||w?t+n:t-n,i=D?t-n:w?t+n:t-n,a=e+Zm+1,o=w||D?S.right-Zm:S.left,s=w?D?S.right-Zm:S.left:S.right-Zm;N=$m(d,f,o,S.top,s,S.bottom,a,r,a,i);break}case`right`:{let n=D?Zm/2:Zm*4,r=D||w?t+n:t-n,i=D?t-n:w?t+n:t-n,a=e-Zm,o=w||D?S.left+Zm:S.right,s=w?D?S.left+Zm:S.right:S.left+Zm;N=$m(d,f,a,r,a,i,o,S.top,s,S.bottom);break}default:}N?l||n.start(40,b):b()}};return r.__options={...e,blockPointerEvents:t},r}var rh={...Im,disabled:Jp(e=>e.disabled),instantType:Jp(e=>e.instantType),isInstantPhase:Jp(e=>e.isInstantPhase),trackCursorAxis:Jp(e=>e.trackCursorAxis),disableHoverablePopup:Jp(e=>e.disableHoverablePopup),lastOpenChangeReason:Jp(e=>e.openChangeReason),closeOnClick:Jp(e=>e.closeOnClick),closeDelay:Jp(e=>e.closeDelay),hasViewport:Jp(e=>e.hasViewport)},ih=class e extends rm{constructor(e,t,n=!1){let r=new Dm,i={...ah(),...e};i.floatingRootContext=Am(r,t,n),super(i,{popupRef:H.createRef(),onOpenChange:void 0,onOpenChangeComplete:void 0,triggerElements:r},rh)}setOpen=(e,t)=>{bm(this,e,t,{extraState:{openChangeReason:t.reason}})};cancelPendingOpen(e){this.state.floatingRootContext.dispatchOpenChange(!1,tu(ql,e))}static useStore(t,n){return gm(t,(t,r)=>new e(n,t,r)).store}};function ah(){return{...km(),disabled:!1,instantType:void 0,isInstantPhase:!1,trackCursorAxis:`none`,disableHoverablePopup:!1,openChangeReason:null,closeOnClick:!0,closeDelay:0,hasViewport:!1}}var oh=Ec(function(e){let{disabled:t=!1,defaultOpen:n=!1,open:r,disableHoverablePopup:i=!1,trackCursorAxis:a=`none`,actionsRef:o,onOpenChange:s,onOpenChangeComplete:c,handle:l,triggerId:u,defaultTriggerId:d=null,children:f}=e,p=ih.useStore(l?.store,{open:n,openProp:r,activeTriggerId:d,triggerIdProp:u});xm(p,r,n,d),p.useControlledProp(`openProp`,r),p.useControlledProp(`triggerIdProp`,u),p.useContextCallback(`onOpenChange`,s),p.useContextCallback(`onOpenChangeComplete`,c);let m=p.useState(`open`),h=!t&&m,g=p.useState(`activeTriggerId`),_=p.useState(`mounted`),v=p.useState(`payload`);p.useSyncedValues({trackCursorAxis:a,disableHoverablePopup:i}),p.useSyncedValue(`disabled`,t),Cm(p,{closeOnActiveTriggerUnmount:!0});let{forceUnmount:y,transitionStatus:b}=wm(h,p),x=p.useState(`isInstantPhase`),S=p.useState(`instantType`),C=p.useState(`lastOpenChangeReason`),w=H.useRef(null);W(()=>{m&&t&&p.setOpen(!1,tu($l))},[m,t,p]),W(()=>{b===`ending`&&C===`none`||b!==`ending`&&x?(S!==`delay`&&(w.current=S),p.set(`instantType`,`delay`)):w.current!==null&&(p.set(`instantType`,w.current),w.current=null)},[b,x,C,S,p]),W(()=>{h&&(g??p.set(`payload`,void 0))},[p,g,h]);let E=H.useCallback(()=>{p.setOpen(!1,tu(eu))},[p]);H.useImperativeHandle(o,()=>({unmount:y,close:E}),[y,E]);let D=h||_||!t&&a!==`none`;return(0,U.jsxs)(jc.Provider,{value:p,children:[D&&(0,U.jsx)(sh,{store:p,disabled:t,trackCursorAxis:a}),typeof f==`function`?f({payload:v}):f]})});function sh({store:e,disabled:t,trackCursorAxis:n}){let r=e.useState(`floatingRootContext`),i=Lf(r,{enabled:!t,referencePress:()=>e.select(`closeOnClick`)}),a=Pf(r,{enabled:!t&&n!==`none`,axis:n===`none`?void 0:n});return Tm(e,{activeTriggerProps:H.useMemo(()=>Gd(a.reference,i.reference),[a.reference,i.reference]),inactiveTriggerProps:H.useMemo(()=>Gd(a.trigger,i.trigger),[a.trigger,i.trigger]),popupProps:H.useMemo(()=>Gd(mm,a.floating,i.floating),[a.floating,i.floating])}),null}var ch=function(e){return e.open=`data-open`,e.closed=`data-closed`,e[e.startingStyle=cm.startingStyle]=`startingStyle`,e[e.endingStyle=cm.endingStyle]=`endingStyle`,e.anchorHidden=`data-anchor-hidden`,e.side=`data-side`,e.align=`data-align`,e}({}),lh=function(e){return e.popupOpen=`data-popup-open`,e.pressed=`data-pressed`,e}({}),uh={[lh.popupOpen]:``},dh={[lh.popupOpen]:``,[lh.pressed]:``},fh={[ch.open]:``},ph={[ch.closed]:``},mh={[ch.anchorHidden]:``},hh={open(e){return e?uh:null}},gh={open(e){return e?dh:null}},_h={open(e){return e?fh:ph},anchorHidden(e){return e?mh:null}};function vh(e){return Id(e,`base-ui`)}var yh=H.createContext(void 0);function bh(){return H.useContext(yh)}var xh=function(e){return e[e.popupOpen=lh.popupOpen]=`popupOpen`,e.triggerDisabled=`data-trigger-disabled`,e}({}),Sh=`data-base-ui-tooltip-trigger`;function Ch(e){if(`composedPath`in e){let t=e.composedPath();for(let e=0;e<t.length;e+=1){let n=t[e];if(G(n))return n}}let t=e.target;return G(t)?t:null}function wh(e){let t=e;for(;t;){if(t.hasAttribute(Sh))return t;let e=t.parentElement;if(e){t=e;continue}let n=t.getRootNode();t=`host`in n&&G(n.host)?n.host:null}return null}var Th=Dc(function(e,t){let{render:n,className:r,style:i,handle:a,payload:o,disabled:s,delay:c,closeOnClick:l=!0,closeDelay:u,id:d,...f}=e,p=Mc(!0),m=a?.store??p;if(!m)throw Error(Ac(82));let h=vh(d),g=m.useState(`isTriggerActive`,h),_=m.useState(`isOpenedByTrigger`,h),v=m.useState(`floatingRootContext`),y=H.useRef(null),b=c??600,x=u??0,{registerTrigger:S,isMountedByThisTrigger:C}=Sm(h,y,m,{payload:o,closeOnClick:l,closeDelay:x}),w=bh(),{delayRef:E,isInstantPhase:D,hasProvider:O}=au(v,{open:_}),k=Gm(v);m.useSyncedValue(`isInstantPhase`,D);let A=m.useState(`disabled`),j=s??A,M=pu(j),N=m.useState(`trackCursorAxis`),ee=m.useState(`disableHoverablePopup`),te=H.useRef(!1),P=Lc(),F=H.useRef(void 0);function ne(){let e=w?.delay,t=typeof E.current==`object`?E.current.open:void 0,n=b;return O&&(n=t===0?0:c??e??b),n}function re(e){let t=y.current;if(!t||!e)return!1;let n=wh(e);return n!==null&&n!==t&&jl(t,n)}function ie(e){let t=re(e);return te.current=t,t&&(k.openChangeTimeout.clear(),k.restTimeout.clear(),k.restTimeoutPending=!1,P.clear()),t}let ae=Jm(v,{enabled:!j,mouseOnly:!0,move:!1,handleClose:!ee&&N!==`both`?nh():null,restMs:ne,delay(){let e=typeof E.current==`object`?E.current.close:void 0,t=x;return u==null&&O&&(t=e),{close:t}},triggerElementRef:y,isActiveTrigger:g,isClosing:()=>m.select(`transitionStatus`)===`ending`,shouldOpen(){return!te.current}}),I=Bm(v,{enabled:!j}).reference,L=e=>{let t=te.current,n=Ch(e),r=ie(n),i=y.current,a=i&&n&&jl(i,n);if(r&&m.select(`open`)&&m.select(`lastOpenChangeReason`)===`trigger-hover`){m.setOpen(!1,tu(J,e));return}if(t&&!r&&a&&!M.current&&!m.select(`open`)&&i&&nl(F.current)){let t=()=>{!te.current&&!M.current&&!m.select(`open`)&&m.setOpen(!0,tu(J,e,i))},n=ne();n===0?(P.clear(),t()):P.start(n,t)}},oe=m.useState(`triggerProps`,C);return of(`button`,e,{state:{open:_},ref:[t,S,y],props:[ae,I,C||N!==`none`?oe:void 0,{onMouseOver(e){L(e.nativeEvent)},onFocus(e){re(Ch(e.nativeEvent))&&e.preventBaseUIHandler()},onMouseLeave(){te.current=!1,P.clear(),F.current=void 0},onPointerEnter(e){F.current=e.pointerType},onPointerDown(e){F.current=e.pointerType,m.set(`closeOnClick`,l),l&&!m.select(`open`)&&m.cancelPendingOpen(e.nativeEvent)},onClick(e){l&&!m.select(`open`)&&m.cancelPendingOpen(e.nativeEvent)},id:h,[xh.triggerDisabled]:j?``:void 0,[Sh]:j?void 0:``},f],stateAttributesMapping:hh})}),Eh=H.createContext(void 0);function Dh(){let e=H.useContext(Eh);if(e===void 0)throw Error(Ac(70));return e}var Oh=H.forwardRef(function(e,t){let{children:n,container:r,className:i,render:a,style:o,...s}=e,{portalNode:c,portalSubtree:l}=bf({container:r,ref:t,componentProps:e,elementProps:s});return!l&&!c?null:(0,U.jsxs)(H.Fragment,{children:[l,c&&gf.createPortal(n,c)]})}),kh=H.forwardRef(function(e,t){let{keepMounted:n=!1,...r}=e;return Mc().useState(`mounted`)||n?(0,U.jsx)(Eh.Provider,{value:n,children:(0,U.jsx)(Oh,{ref:t,...r})}):null}),Ah=H.createContext(void 0);function jh(){let e=H.useContext(Ah);if(e===void 0)throw Error(Ac(71));return e}var Mh=H.createContext(void 0);function Nh(){return H.useContext(Mh)?.direction??`ltr`}var Ph=e=>({name:`arrow`,options:e,async fn(t){let{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:c}=t,{element:l,padding:u=0,offsetParent:d=`real`}=Ru(e,t)||{};if(l==null)return{};let f=nd(u),p={x:n,y:r},m=Wu(i),h=Hu(m),g=await o.getDimensions(l),_=m===`y`,v=_?`top`:`left`,y=_?`bottom`:`right`,b=_?`clientHeight`:`clientWidth`,x=a.reference[h]+a.reference[m]-p[m]-a.floating[h],S=p[m]-a.reference[m],C=d===`real`?await o.getOffsetParent?.(l):s.floating,w=s.floating[b]||a.floating[h];(!w||!await o.isElement?.(C))&&(w=s.floating[b]||a.floating[h]);let E=x/2-S/2,D=w/2-g[h]/2-1,O=Math.min(f[v],D),k=Math.min(f[y],D),A=O,j=w-g[h]-k,M=w/2-g[h]/2+E,N=Lu(A,M,j),ee=!c.arrow&&Bu(i)!=null&&M!==N&&a.reference[h]/2-(M<A?O:k)-g[h]/2<0,te=ee?M<A?M-A:M-j:0;return{[m]:p[m]+te,data:{[m]:N,centerOffset:M-N-te,...ee&&{alignmentOffset:te}},reset:ee}}}),Fh=(e,t)=>({...Ph(e),options:[e,t]}),Ih=Kp().fn,Lh={name:`hide`,async fn(e){let{width:t,height:n,x:r,y:i}=e.rects.reference,a=t===0&&n===0&&r===0&&i===0;return{data:{referenceHidden:(await Ih(e)).data?.referenceHidden||a}}}},Rh={sideX:`left`,sideY:`top`},zh={name:`adaptiveOrigin`,async fn(e){let{x:t,y:n,rects:{floating:r},elements:{floating:i},platform:a,strategy:o,placement:s}=e,c=ol(i),l=c.getComputedStyle(i);if(!(l.transitionDuration!==`0s`&&l.transitionDuration!==``))return{x:t,y:n,data:Rh};let u=await a.getOffsetParent?.(i),d={width:0,height:0};if(o===`fixed`&&c?.visualViewport)d={width:c.visualViewport.width,height:c.visualViewport.height};else if(u===c){let e=Tu(i);d={width:e.documentElement.clientWidth,height:e.documentElement.clientHeight}}else await a.isElement?.(u)&&(d=await a.getDimensions(u));let f=zu(s),p=t,m=n;f===`left`&&(p=d.width-(t+r.width)),f===`top`&&(m=d.height-(n+r.height));let h=f===`left`?`right`:Rh.sideX,g=f===`top`?`bottom`:Rh.sideY;return{x:p,y:m,data:{sideX:h,sideY:g}}}};function Bh(e,t,n){let r=e===`inline-start`||e===`inline-end`;return{top:`top`,right:r?n?`inline-start`:`inline-end`:`right`,bottom:`bottom`,left:r?n?`inline-end`:`inline-start`:`left`}[t]}function Vh(e,t,n){let{rects:r,placement:i}=e;return{side:Bh(t,zu(i),n),align:Bu(i)||`center`,anchor:{width:r.reference.width,height:r.reference.height},positioner:{width:r.floating.width,height:r.floating.height}}}function Hh(e){let{anchor:t,positionMethod:n=`absolute`,side:r=`bottom`,sideOffset:i=0,align:a=`center`,alignOffset:o=0,collisionBoundary:s,collisionPadding:c=5,sticky:l=!1,arrowPadding:u=5,disableAnchorTracking:d=!1,inline:f,keepMounted:p=!1,floatingRootContext:m,mounted:h,collisionAvoidance:g,shiftCrossAxis:_=!1,nodeId:v,adaptiveOrigin:y,lazyFlip:b=!1,externalTree:x}=e,[S,C]=H.useState(null);!h&&S!==null&&C(null);let w=g.side||`flip`,E=g.align||`flip`,D=g.fallbackAxisSide||`end`,O=typeof t==`function`?t:void 0,k=vu(O),A=O?k:t,j=pu(t),M=pu(h),N=Nh()===`rtl`,ee=S||{top:`top`,right:`right`,bottom:`bottom`,left:`left`,"inline-end":N?`left`:`right`,"inline-start":N?`right`:`left`}[r],te=a===`center`?ee:`${ee}-${a}`,P=c,F=+(r===`bottom`),ne=+(r===`top`),re=+(r===`right`),ie=+(r===`left`);typeof P==`number`?P={top:P+F,right:P+ie,bottom:P+ne,left:P+re}:P&&={top:(P.top||0)+F,right:(P.right||0)+ie,bottom:(P.bottom||0)+ne,left:(P.left||0)+re};let ae={boundary:s===`clipping-ancestors`?`clippingAncestors`:s,padding:P},I=H.useRef(null),L=pu(i),oe=pu(o),se=typeof i==`function`?0:i,ce=typeof o==`function`?0:o,le=[];f&&le.push(f),le.push(Vp(e=>{let t=Vh(e,r,N),n=typeof L.current==`function`?L.current(t):L.current,i=typeof oe.current==`function`?oe.current(t):oe.current;return{mainAxis:n,crossAxis:i,alignmentAxis:i}},[se,ce,N,r]));let ue=E===`none`&&w!==`shift`,de=!ue&&(l||_||w===`shift`),fe=w===`none`?null:Wp({...ae,padding:{top:P.top+1,right:P.right+1,bottom:P.bottom+1,left:P.left+1},mainAxis:!_&&w===`flip`,crossAxis:E===`flip`?`alignment`:!1,fallbackAxisSideDirection:D}),pe=ue?null:Hp(e=>{let t=Tu(e.elements.floating).documentElement;return{...ae,rootBoundary:_?{x:0,y:0,width:t.clientWidth,height:t.clientHeight}:void 0,mainAxis:E!==`none`,crossAxis:de,limiter:l||_?void 0:Up(e=>{if(!I.current)return{};let{width:t,height:n}=I.current.getBoundingClientRect(),r=Uu(zu(e.placement)),i=r===`y`?t:n,a=r===`y`?P.left+P.right:P.top+P.bottom;return{offset:i/2+a/2}})}},[ae,l,_,P,E]);w===`shift`||E===`shift`||a===`center`?le.push(pe,fe):le.push(fe,pe),le.push(Gp({...ae,apply({elements:{floating:e},availableWidth:t,availableHeight:n,rects:r}){if(!M.current)return;let i=e.style;i.setProperty(`--available-width`,`${t}px`),i.setProperty(`--available-height`,`${n}px`);let a=ol(e).devicePixelRatio||1,{x:o,y:s,width:c,height:l}=r.reference,u=(Math.round((o+c)*a)-Math.round(o*a))/a,d=(Math.round((s+l)*a)-Math.round(s*a))/a;i.setProperty(`--anchor-width`,`${u}px`),i.setProperty(`--anchor-height`,`${d}px`)}}),Fh(e=>({element:I.current||Tu(e.elements.floating).createElement(`div`),padding:u,offsetParent:`floating`}),[u]),{name:`transformOrigin`,fn(e){let{elements:t,middlewareData:n,placement:a,rects:o,y:s}=e,c=zu(a),l=Uu(c),u=I.current,d=n.arrow?.x||0,f=n.arrow?.y||0,p=u?.clientWidth||0,m=u?.clientHeight||0,h=d+p/2,g=f+m/2,_=Math.abs(n.shift?.y||0),v=o.reference.height/2,y=typeof i==`function`?i(Vh(e,r,N)):i,b=_>y,x={top:`${h}px calc(100% + ${y}px)`,bottom:`${h}px ${-y}px`,left:`calc(100% + ${y}px) ${g}px`,right:`${-y}px ${g}px`}[c],S=`${h}px ${o.reference.y+v-s}px`;return t.floating.style.setProperty(`--transform-origin`,de&&l===`y`&&b?S:x),{}}},Lh,y),W(()=>{!h&&m&&m.update({referenceElement:null,floatingElement:null,domReferenceElement:null,positionReference:null})},[h,m]);let me=H.useMemo(()=>({elementResize:!d&&typeof ResizeObserver<`u`,layoutShift:!d&&typeof IntersectionObserver<`u`}),[d]),{refs:he,elements:ge,x:_e,y:ve,middlewareData:ye,update:be,placement:xe,context:Se,isPositioned:Ce,floatingStyles:we}=Rm({rootContext:m,open:p?h:void 0,placement:te,middleware:le,strategy:n,whileElementsMounted:p?void 0:(...e)=>Dp(...e,me),nodeId:v,externalTree:x}),{sideX:Te,sideY:Ee}=ye.adaptiveOrigin||Rh,De=Ce?n:`fixed`,Oe=H.useMemo(()=>{let e=y?{position:De,[Te]:_e,[Ee]:ve}:{position:De,...we};return Ce||(e.opacity=0),e},[y,De,Te,_e,Ee,ve,we,Ce]),ke=H.useRef(null);W(()=>{if(!h)return;let e=j.current,t=typeof e==`function`?e():e,n=(Uh(t)?t.current:t)||null;n!==ke.current&&(he.setPositionReference(n),ke.current=n)},[h,he,A,j]),H.useEffect(()=>{if(!h)return;let e=j.current;typeof e!=`function`&&Uh(e)&&e.current!==ke.current&&(he.setPositionReference(e.current),ke.current=e.current)},[h,he,A,j]),H.useEffect(()=>{if(p&&h&&ge.reference&&ge.floating)return Dp(ge.reference,ge.floating,be,me)},[p,h,ge,be,me]);let Ae=zu(xe),je=Bh(r,Ae,N),Me=Bu(xe)||`center`,Ne=!!ye.hide?.referenceHidden;W(()=>{b&&h&&Ce&&C(Ae)},[b,h,Ce,Ae]);let Pe=H.useMemo(()=>({position:`absolute`,top:ye.arrow?.y,left:ye.arrow?.x}),[ye.arrow]),Fe=ye.arrow?.centerOffset!==0;return H.useMemo(()=>({positionerStyles:Oe,arrowStyles:Pe,arrowRef:I,arrowUncentered:Fe,side:je,align:Me,physicalSide:Ae,anchorHidden:Ne,refs:he,context:Se,isPositioned:Ce,update:be}),[Oe,Pe,I,Fe,je,Me,Ae,Ne,he,Se,Ce,be])}function Uh(e){return e!=null&&`current`in e}function Wh(e){return e===`starting`?ff:Gl}function Gh(e,t,{styles:n,transitionStatus:r,props:i,refs:a,hidden:o,inert:s=!1}){let c={...n};return s&&(c.pointerEvents=`none`),of(`div`,e,{state:t,ref:a,props:[{role:`presentation`,hidden:o,style:c},Wh(r),i],stateAttributesMapping:_h})}var Kh=H.forwardRef(function(e,t){let{render:n,className:r,anchor:i,positionMethod:a=`absolute`,side:o=`top`,align:s=`center`,sideOffset:c=0,alignOffset:l=0,collisionBoundary:u=`clipping-ancestors`,collisionPadding:d=5,arrowPadding:f=5,sticky:p=!1,disableAnchorTracking:m=!1,collisionAvoidance:h=mf,style:g,..._}=e,v=Mc(),y=Dh(),b=v.useState(`open`),x=v.useState(`mounted`),S=v.useState(`trackCursorAxis`),C=v.useState(`disableHoverablePopup`),w=v.useState(`floatingRootContext`),E=v.useState(`instantType`),D=v.useState(`transitionStatus`),O=Hh({anchor:i,positionMethod:a,floatingRootContext:w,mounted:x,side:o,sideOffset:c,align:s,alignOffset:l,collisionBoundary:u,collisionPadding:d,sticky:p,arrowPadding:f,disableAnchorTracking:m,keepMounted:y,collisionAvoidance:h,adaptiveOrigin:v.useState(`hasViewport`)?zh:void 0}),k=Gh(e,H.useMemo(()=>({open:b,side:O.side,align:O.align,anchorHidden:O.anchorHidden,instant:S===`none`?E:`tracking-cursor`}),[b,O.side,O.align,O.anchorHidden,S,E]),{styles:O.positionerStyles,transitionStatus:D,props:_,refs:[t,v.useStateSetter(`positionerElement`)],hidden:!x,inert:!b||S===`both`||C});return(0,U.jsx)(Ah.Provider,{value:O,children:k})}),qh={..._h,...dm},Jh=H.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,o=Mc(),{side:s,align:c}=jh(),l=o.useState(`open`),u=o.useState(`instantType`),d=o.useState(`transitionStatus`),f=o.useState(`popupProps`),p=o.useState(`floatingRootContext`),m=o.useState(`disabled`),h=o.useState(`closeDelay`);pm({open:l,ref:o.context.popupRef,onComplete(){l&&o.context.onOpenChangeComplete?.(!0)}}),Km(p,{enabled:!m,closeDelay:h});let g=o.useStateSetter(`popupElement`);return of(`div`,e,{state:{open:l,side:s,align:c,instant:u,transitionStatus:d},ref:[t,o.context.popupRef,g],props:[f,Wh(d),a],stateAttributesMapping:qh})}),Yh=H.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,o=Mc(),{arrowRef:s,side:c,align:l,arrowUncentered:u,arrowStyles:d}=jh();return of(`div`,e,{state:{open:o.useState(`open`),side:c,align:l,uncentered:u,instant:o.useState(`instantType`)},ref:[t,s],props:[{style:d,"aria-hidden":!0},a],stateAttributesMapping:_h})}),Xh=function(e){let{delay:t,closeDelay:n,timeout:r=400}=e,i=H.useMemo(()=>({delay:t,closeDelay:n}),[t,n]),a=H.useMemo(()=>({open:t,close:n}),[t,n]);return(0,U.jsx)(yh.Provider,{value:i,children:(0,U.jsx)(iu,{delay:a,timeoutMs:r,children:e.children})})};function Zh(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`)if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=Zh(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n);return r}function Qh(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=Zh(e))&&(r&&(r+=` `),r+=t);return r}var $h=(e,t)=>{let n=Array(e.length+t.length);for(let t=0;t<e.length;t++)n[t]=e[t];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},eg=(e,t)=>({classGroupId:e,validator:t}),tg=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),ng=`-`,rg=[],ig=`arbitrary..`,ag=e=>{let t=cg(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{if(e.startsWith(`[`)&&e.endsWith(`]`))return sg(e);let n=e.split(ng);return og(n,+(n[0]===``&&n.length>1),t)},getConflictingClassGroupIds:(e,t)=>{if(t){let t=r[e],i=n[e];return t?i?$h(i,t):t:i||rg}return n[e]||rg}}},og=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;let r=e[t],i=n.nextPart.get(r);if(i){let n=og(e,t+1,i);if(n)return n}let a=n.validators;if(a===null)return;let o=t===0?e.join(ng):e.slice(t).join(ng),s=a.length;for(let e=0;e<s;e++){let t=a[e];if(t.validator(o))return t.classGroupId}},sg=e=>e.slice(1,-1).indexOf(`:`)===-1?void 0:(()=>{let t=e.slice(1,-1),n=t.indexOf(`:`),r=t.slice(0,n);return r?ig+r:void 0})(),cg=e=>{let{theme:t,classGroups:n}=e;return lg(n,t)},lg=(e,t)=>{let n=tg();for(let r in e){let i=e[r];ug(i,n,r,t)}return n},ug=(e,t,n,r)=>{let i=e.length;for(let a=0;a<i;a++){let i=e[a];dg(i,t,n,r)}},dg=(e,t,n,r)=>{if(typeof e==`string`){fg(e,t,n);return}if(typeof e==`function`){pg(e,t,n,r);return}mg(e,t,n,r)},fg=(e,t,n)=>{let r=e===``?t:hg(t,e);r.classGroupId=n},pg=(e,t,n,r)=>{if(gg(e)){ug(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(eg(n,e))},mg=(e,t,n,r)=>{let i=Object.entries(e),a=i.length;for(let e=0;e<a;e++){let[a,o]=i[e];ug(o,hg(t,a),n,r)}},hg=(e,t)=>{let n=e,r=t.split(ng),i=r.length;for(let e=0;e<i;e++){let t=r[e],i=n.nextPart.get(t);i||(i=tg(),n.nextPart.set(t,i)),n=i}return n},gg=e=>`isThemeGetter`in e&&e.isThemeGetter===!0,_g=e=>{if(e<1)return{get:()=>void 0,set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null),i=(i,a)=>{n[i]=a,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(e){let t=n[e];if(t!==void 0)return t;if((t=r[e])!==void 0)return i(e,t),t},set(e,t){e in n?n[e]=t:i(e,t)}}},vg=`!`,yg=`:`,bg=[],xg=(e,t,n,r,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),Sg=e=>{let{prefix:t,experimentalParseClassName:n}=e,r=e=>{let t=[],n=0,r=0,i=0,a,o=e.length;for(let s=0;s<o;s++){let o=e[s];if(n===0&&r===0){if(o===yg){t.push(e.slice(i,s)),i=s+1;continue}if(o===`/`){a=s;continue}}o===`[`?n++:o===`]`?n--:o===`(`?r++:o===`)`&&r--}let s=t.length===0?e:e.slice(i),c=s,l=!1;s.endsWith(vg)?(c=s.slice(0,-1),l=!0):s.startsWith(vg)&&(c=s.slice(1),l=!0);let u=a&&a>i?a-i:void 0;return xg(t,l,c,u)};if(t){let e=t+yg,n=r;r=t=>t.startsWith(e)?n(t.slice(e.length)):xg(bg,!1,t,void 0,!0)}if(n){let e=r;r=t=>n({className:t,parseClassName:e})}return r},Cg=e=>{let t=new Map;return e.orderSensitiveModifiers.forEach((e,n)=>{t.set(e,1e6+n)}),e=>{let n=[],r=[];for(let i=0;i<e.length;i++){let a=e[i],o=a[0]===`[`,s=t.has(a);o||s?(r.length>0&&(r.sort(),n.push(...r),r=[]),n.push(a)):r.push(a)}return r.length>0&&(r.sort(),n.push(...r)),n}},wg=e=>({cache:_g(e.cacheSize),parseClassName:Sg(e),sortModifiers:Cg(e),postfixLookupClassGroupIds:Tg(e),...ag(e)}),Tg=e=>{let t=Object.create(null),n=e.postfixLookupClassGroups;if(n)for(let e=0;e<n.length;e++)t[n[e]]=!0;return t},Eg=/\s+/,Dg=(e,t)=>{let{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:a,postfixLookupClassGroupIds:o}=t,s=[],c=e.trim().split(Eg),l=``;for(let e=c.length-1;e>=0;--e){let t=c[e],{isExternal:u,modifiers:d,hasImportantModifier:f,baseClassName:p,maybePostfixModifierPosition:m}=n(t);if(u){l=t+(l.length>0?` `+l:l);continue}let h=!!m,g;if(h){g=r(p.substring(0,m));let e=g&&o[g]?r(p):void 0;e&&e!==g&&(g=e,h=!1)}else g=r(p);if(!g){if(!h){l=t+(l.length>0?` `+l:l);continue}if(g=r(p),!g){l=t+(l.length>0?` `+l:l);continue}h=!1}let _=d.length===0?``:d.length===1?d[0]:a(d).join(`:`),v=f?_+vg:_,y=v+g;if(s.indexOf(y)>-1)continue;s.push(y);let b=i(g,h);for(let e=0;e<b.length;++e){let t=b[e];s.push(v+t)}l=t+(l.length>0?` `+l:l)}return l},Og=(...e)=>{let t=0,n,r,i=``;for(;t<e.length;)(n=e[t++])&&(r=kg(n))&&(i&&(i+=` `),i+=r);return i},kg=e=>{if(typeof e==`string`)return e;let t,n=``;for(let r=0;r<e.length;r++)e[r]&&(t=kg(e[r]))&&(n&&(n+=` `),n+=t);return n},Ag=(e,...t)=>{let n,r,i,a,o=o=>(n=wg(t.reduce((e,t)=>t(e),e())),r=n.cache.get,i=n.cache.set,a=s,s(o)),s=e=>{let t=r(e);if(t)return t;let a=Dg(e,n);return i(e,a),a};return a=o,(...e)=>a(Og(...e))},jg=[],Mg=e=>{let t=t=>t[e]||jg;return t.isThemeGetter=!0,t},Ng=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Pg=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Fg=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,Ig=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Lg=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Rg=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,zg=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Bg=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Vg=e=>Fg.test(e),Z=e=>!!e&&!Number.isNaN(Number(e)),Hg=e=>!!e&&Number.isInteger(Number(e)),Ug=e=>e.endsWith(`%`)&&Z(e.slice(0,-1)),Wg=e=>Ig.test(e),Gg=()=>!0,Kg=e=>Lg.test(e)&&!Rg.test(e),qg=()=>!1,Jg=e=>zg.test(e),Yg=e=>Bg.test(e),Xg=e=>!Q(e)&&!$(e),Zg=e=>e.startsWith(`@container`)&&(e[10]===`/`&&e[11]!==void 0||e[11]===`s`&&e[16]!==void 0&&e.startsWith(`-size/`,10)||e[11]===`n`&&e[18]!==void 0&&e.startsWith(`-normal/`,10)),Qg=e=>p_(e,__,qg),Q=e=>Ng.test(e),$g=e=>p_(e,v_,Kg),e_=e=>p_(e,y_,Z),t_=e=>p_(e,x_,Gg),n_=e=>p_(e,b_,qg),r_=e=>p_(e,h_,qg),i_=e=>p_(e,g_,Yg),a_=e=>p_(e,S_,Jg),$=e=>Pg.test(e),o_=e=>m_(e,v_),s_=e=>m_(e,b_),c_=e=>m_(e,h_),l_=e=>m_(e,__),u_=e=>m_(e,g_),d_=e=>m_(e,S_,!0),f_=e=>m_(e,x_,!0),p_=(e,t,n)=>{let r=Ng.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},m_=(e,t,n=!1)=>{let r=Pg.exec(e);return r?r[1]?t(r[1]):n:!1},h_=e=>e===`position`||e===`percentage`,g_=e=>e===`image`||e===`url`,__=e=>e===`length`||e===`size`||e===`bg-size`,v_=e=>e===`length`,y_=e=>e===`number`,b_=e=>e===`family-name`,x_=e=>e===`number`||e===`weight`,S_=e=>e===`shadow`,C_=Ag(()=>{let e=Mg(`color`),t=Mg(`font`),n=Mg(`text`),r=Mg(`font-weight`),i=Mg(`tracking`),a=Mg(`leading`),o=Mg(`breakpoint`),s=Mg(`container`),c=Mg(`spacing`),l=Mg(`radius`),u=Mg(`shadow`),d=Mg(`inset-shadow`),f=Mg(`text-shadow`),p=Mg(`drop-shadow`),m=Mg(`blur`),h=Mg(`perspective`),g=Mg(`aspect`),_=Mg(`ease`),v=Mg(`animate`),y=()=>[`auto`,`avoid`,`all`,`avoid-page`,`page`,`left`,`right`,`column`],b=()=>[`center`,`top`,`bottom`,`left`,`right`,`top-left`,`left-top`,`top-right`,`right-top`,`bottom-right`,`right-bottom`,`bottom-left`,`left-bottom`],x=()=>[...b(),$,Q],S=()=>[`auto`,`hidden`,`clip`,`visible`,`scroll`],C=()=>[`auto`,`contain`,`none`],w=()=>[$,Q,c],E=()=>[Vg,`full`,`auto`,...w()],D=()=>[Hg,`none`,`subgrid`,$,Q],O=()=>[`auto`,{span:[`full`,Hg,$,Q]},Hg,$,Q],k=()=>[Hg,`auto`,$,Q],A=()=>[`auto`,`min`,`max`,`fr`,$,Q],j=()=>[`start`,`end`,`center`,`between`,`around`,`evenly`,`stretch`,`baseline`,`center-safe`,`end-safe`],M=()=>[`start`,`end`,`center`,`stretch`,`center-safe`,`end-safe`],N=()=>[`auto`,...w()],ee=()=>[Vg,`auto`,`full`,`dvw`,`dvh`,`lvw`,`lvh`,`svw`,`svh`,`min`,`max`,`fit`,...w()],te=()=>[Vg,`screen`,`full`,`dvw`,`lvw`,`svw`,`min`,`max`,`fit`,...w()],P=()=>[Vg,`screen`,`full`,`lh`,`dvh`,`lvh`,`svh`,`min`,`max`,`fit`,...w()],F=()=>[e,$,Q],ne=()=>[...b(),c_,r_,{position:[$,Q]}],re=()=>[`no-repeat`,{repeat:[``,`x`,`y`,`space`,`round`]}],ie=()=>[`auto`,`cover`,`contain`,l_,Qg,{size:[$,Q]}],ae=()=>[Ug,o_,$g],I=()=>[``,`none`,`full`,l,$,Q],L=()=>[``,Z,o_,$g],oe=()=>[`solid`,`dashed`,`dotted`,`double`],se=()=>[`normal`,`multiply`,`screen`,`overlay`,`darken`,`lighten`,`color-dodge`,`color-burn`,`hard-light`,`soft-light`,`difference`,`exclusion`,`hue`,`saturation`,`color`,`luminosity`],ce=()=>[Z,Ug,c_,r_],le=()=>[``,`none`,m,$,Q],ue=()=>[`none`,Z,$,Q],de=()=>[`none`,Z,$,Q],fe=()=>[Z,$,Q],pe=()=>[Vg,`full`,...w()];return{cacheSize:500,theme:{animate:[`spin`,`ping`,`pulse`,`bounce`],aspect:[`video`],blur:[Wg],breakpoint:[Wg],color:[Gg],container:[Wg],"drop-shadow":[Wg],ease:[`in`,`out`,`in-out`],font:[Xg],"font-weight":[`thin`,`extralight`,`light`,`normal`,`medium`,`semibold`,`bold`,`extrabold`,`black`],"inset-shadow":[Wg],leading:[`none`,`tight`,`snug`,`normal`,`relaxed`,`loose`],perspective:[`dramatic`,`near`,`normal`,`midrange`,`distant`,`none`],radius:[Wg],shadow:[Wg],spacing:[`px`,Z],text:[Wg],"text-shadow":[Wg],tracking:[`tighter`,`tight`,`normal`,`wide`,`wider`,`widest`]},classGroups:{aspect:[{aspect:[`auto`,`square`,Vg,Q,$,g]}],container:[`container`],"container-type":[{"@container":[``,`normal`,`size`,$,Q]}],"container-named":[Zg],columns:[{columns:[Z,Q,$,s]}],"break-after":[{"break-after":y()}],"break-before":[{"break-before":y()}],"break-inside":[{"break-inside":[`auto`,`avoid`,`avoid-page`,`avoid-column`]}],"box-decoration":[{"box-decoration":[`slice`,`clone`]}],box:[{box:[`border`,`content`]}],display:[`block`,`inline-block`,`inline`,`flex`,`inline-flex`,`table`,`inline-table`,`table-caption`,`table-cell`,`table-column`,`table-column-group`,`table-footer-group`,`table-header-group`,`table-row-group`,`table-row`,`flow-root`,`grid`,`inline-grid`,`contents`,`list-item`,`hidden`],sr:[`sr-only`,`not-sr-only`],float:[{float:[`right`,`left`,`none`,`start`,`end`]}],clear:[{clear:[`left`,`right`,`both`,`none`,`start`,`end`]}],isolation:[`isolate`,`isolation-auto`],"object-fit":[{object:[`contain`,`cover`,`fill`,`none`,`scale-down`]}],"object-position":[{object:x()}],overflow:[{overflow:S()}],"overflow-x":[{"overflow-x":S()}],"overflow-y":[{"overflow-y":S()}],overscroll:[{overscroll:C()}],"overscroll-x":[{"overscroll-x":C()}],"overscroll-y":[{"overscroll-y":C()}],position:[`static`,`fixed`,`absolute`,`relative`,`sticky`],inset:[{inset:E()}],"inset-x":[{"inset-x":E()}],"inset-y":[{"inset-y":E()}],start:[{"inset-s":E(),start:E()}],end:[{"inset-e":E(),end:E()}],"inset-bs":[{"inset-bs":E()}],"inset-be":[{"inset-be":E()}],top:[{top:E()}],right:[{right:E()}],bottom:[{bottom:E()}],left:[{left:E()}],visibility:[`visible`,`invisible`,`collapse`],z:[{z:[Hg,`auto`,$,Q]}],basis:[{basis:[Vg,`full`,`auto`,s,...w()]}],"flex-direction":[{flex:[`row`,`row-reverse`,`col`,`col-reverse`]}],"flex-wrap":[{flex:[`nowrap`,`wrap`,`wrap-reverse`]}],flex:[{flex:[Z,Vg,`auto`,`initial`,`none`,Q]}],grow:[{grow:[``,Z,$,Q]}],shrink:[{shrink:[``,Z,$,Q]}],order:[{order:[Hg,`first`,`last`,`none`,$,Q]}],"grid-cols":[{"grid-cols":D()}],"col-start-end":[{col:O()}],"col-start":[{"col-start":k()}],"col-end":[{"col-end":k()}],"grid-rows":[{"grid-rows":D()}],"row-start-end":[{row:O()}],"row-start":[{"row-start":k()}],"row-end":[{"row-end":k()}],"grid-flow":[{"grid-flow":[`row`,`col`,`dense`,`row-dense`,`col-dense`]}],"auto-cols":[{"auto-cols":A()}],"auto-rows":[{"auto-rows":A()}],gap:[{gap:w()}],"gap-x":[{"gap-x":w()}],"gap-y":[{"gap-y":w()}],"justify-content":[{justify:[...j(),`normal`]}],"justify-items":[{"justify-items":[...M(),`normal`]}],"justify-self":[{"justify-self":[`auto`,...M()]}],"align-content":[{content:[`normal`,...j()]}],"align-items":[{items:[...M(),{baseline:[``,`last`]}]}],"align-self":[{self:[`auto`,...M(),{baseline:[``,`last`]}]}],"place-content":[{"place-content":j()}],"place-items":[{"place-items":[...M(),`baseline`]}],"place-self":[{"place-self":[`auto`,...M()]}],p:[{p:w()}],px:[{px:w()}],py:[{py:w()}],ps:[{ps:w()}],pe:[{pe:w()}],pbs:[{pbs:w()}],pbe:[{pbe:w()}],pt:[{pt:w()}],pr:[{pr:w()}],pb:[{pb:w()}],pl:[{pl:w()}],m:[{m:N()}],mx:[{mx:N()}],my:[{my:N()}],ms:[{ms:N()}],me:[{me:N()}],mbs:[{mbs:N()}],mbe:[{mbe:N()}],mt:[{mt:N()}],mr:[{mr:N()}],mb:[{mb:N()}],ml:[{ml:N()}],"space-x":[{"space-x":w()}],"space-x-reverse":[`space-x-reverse`],"space-y":[{"space-y":w()}],"space-y-reverse":[`space-y-reverse`],size:[{size:ee()}],"inline-size":[{inline:[`auto`,...te()]}],"min-inline-size":[{"min-inline":[`auto`,...te()]}],"max-inline-size":[{"max-inline":[`none`,...te()]}],"block-size":[{block:[`auto`,...P()]}],"min-block-size":[{"min-block":[`auto`,...P()]}],"max-block-size":[{"max-block":[`none`,...P()]}],w:[{w:[s,`screen`,...ee()]}],"min-w":[{"min-w":[s,`screen`,`none`,...ee()]}],"max-w":[{"max-w":[s,`screen`,`none`,`prose`,{screen:[o]},...ee()]}],h:[{h:[`screen`,`lh`,...ee()]}],"min-h":[{"min-h":[`screen`,`lh`,`none`,...ee()]}],"max-h":[{"max-h":[`screen`,`lh`,...ee()]}],"font-size":[{text:[`base`,n,o_,$g]}],"font-smoothing":[`antialiased`,`subpixel-antialiased`],"font-style":[`italic`,`not-italic`],"font-weight":[{font:[r,f_,t_]}],"font-stretch":[{"font-stretch":[`ultra-condensed`,`extra-condensed`,`condensed`,`semi-condensed`,`normal`,`semi-expanded`,`expanded`,`extra-expanded`,`ultra-expanded`,Ug,Q]}],"font-family":[{font:[s_,n_,t]}],"font-features":[{"font-features":[Q]}],"fvn-normal":[`normal-nums`],"fvn-ordinal":[`ordinal`],"fvn-slashed-zero":[`slashed-zero`],"fvn-figure":[`lining-nums`,`oldstyle-nums`],"fvn-spacing":[`proportional-nums`,`tabular-nums`],"fvn-fraction":[`diagonal-fractions`,`stacked-fractions`],tracking:[{tracking:[i,$,Q]}],"line-clamp":[{"line-clamp":[Z,`none`,$,e_]}],leading:[{leading:[a,...w()]}],"list-image":[{"list-image":[`none`,$,Q]}],"list-style-position":[{list:[`inside`,`outside`]}],"list-style-type":[{list:[`disc`,`decimal`,`none`,$,Q]}],"text-alignment":[{text:[`left`,`center`,`right`,`justify`,`start`,`end`]}],"placeholder-color":[{placeholder:F()}],"text-color":[{text:F()}],"text-decoration":[`underline`,`overline`,`line-through`,`no-underline`],"text-decoration-style":[{decoration:[...oe(),`wavy`]}],"text-decoration-thickness":[{decoration:[Z,`from-font`,`auto`,$,$g]}],"text-decoration-color":[{decoration:F()}],"underline-offset":[{"underline-offset":[Z,`auto`,$,Q]}],"text-transform":[`uppercase`,`lowercase`,`capitalize`,`normal-case`],"text-overflow":[`truncate`,`text-ellipsis`,`text-clip`],"text-wrap":[{text:[`wrap`,`nowrap`,`balance`,`pretty`]}],indent:[{indent:w()}],"tab-size":[{tab:[Hg,$,Q]}],"vertical-align":[{align:[`baseline`,`top`,`middle`,`bottom`,`text-top`,`text-bottom`,`sub`,`super`,$,Q]}],whitespace:[{whitespace:[`normal`,`nowrap`,`pre`,`pre-line`,`pre-wrap`,`break-spaces`]}],break:[{break:[`normal`,`words`,`all`,`keep`]}],wrap:[{wrap:[`break-word`,`anywhere`,`normal`]}],hyphens:[{hyphens:[`none`,`manual`,`auto`]}],content:[{content:[`none`,$,Q]}],"bg-attachment":[{bg:[`fixed`,`local`,`scroll`]}],"bg-clip":[{"bg-clip":[`border`,`padding`,`content`,`text`]}],"bg-origin":[{"bg-origin":[`border`,`padding`,`content`]}],"bg-position":[{bg:ne()}],"bg-repeat":[{bg:re()}],"bg-size":[{bg:ie()}],"bg-image":[{bg:[`none`,{linear:[{to:[`t`,`tr`,`r`,`br`,`b`,`bl`,`l`,`tl`]},Hg,$,Q],radial:[``,$,Q],conic:[Hg,$,Q]},u_,i_]}],"bg-color":[{bg:F()}],"gradient-from-pos":[{from:ae()}],"gradient-via-pos":[{via:ae()}],"gradient-to-pos":[{to:ae()}],"gradient-from":[{from:F()}],"gradient-via":[{via:F()}],"gradient-to":[{to:F()}],rounded:[{rounded:I()}],"rounded-s":[{"rounded-s":I()}],"rounded-e":[{"rounded-e":I()}],"rounded-t":[{"rounded-t":I()}],"rounded-r":[{"rounded-r":I()}],"rounded-b":[{"rounded-b":I()}],"rounded-l":[{"rounded-l":I()}],"rounded-ss":[{"rounded-ss":I()}],"rounded-se":[{"rounded-se":I()}],"rounded-ee":[{"rounded-ee":I()}],"rounded-es":[{"rounded-es":I()}],"rounded-tl":[{"rounded-tl":I()}],"rounded-tr":[{"rounded-tr":I()}],"rounded-br":[{"rounded-br":I()}],"rounded-bl":[{"rounded-bl":I()}],"border-w":[{border:L()}],"border-w-x":[{"border-x":L()}],"border-w-y":[{"border-y":L()}],"border-w-s":[{"border-s":L()}],"border-w-e":[{"border-e":L()}],"border-w-bs":[{"border-bs":L()}],"border-w-be":[{"border-be":L()}],"border-w-t":[{"border-t":L()}],"border-w-r":[{"border-r":L()}],"border-w-b":[{"border-b":L()}],"border-w-l":[{"border-l":L()}],"divide-x":[{"divide-x":L()}],"divide-x-reverse":[`divide-x-reverse`],"divide-y":[{"divide-y":L()}],"divide-y-reverse":[`divide-y-reverse`],"border-style":[{border:[...oe(),`hidden`,`none`]}],"divide-style":[{divide:[...oe(),`hidden`,`none`]}],"border-color":[{border:F()}],"border-color-x":[{"border-x":F()}],"border-color-y":[{"border-y":F()}],"border-color-s":[{"border-s":F()}],"border-color-e":[{"border-e":F()}],"border-color-bs":[{"border-bs":F()}],"border-color-be":[{"border-be":F()}],"border-color-t":[{"border-t":F()}],"border-color-r":[{"border-r":F()}],"border-color-b":[{"border-b":F()}],"border-color-l":[{"border-l":F()}],"divide-color":[{divide:F()}],"outline-style":[{outline:[...oe(),`none`,`hidden`]}],"outline-offset":[{"outline-offset":[Z,$,Q]}],"outline-w":[{outline:[``,Z,o_,$g]}],"outline-color":[{outline:F()}],shadow:[{shadow:[``,`none`,u,d_,a_]}],"shadow-color":[{shadow:F()}],"inset-shadow":[{"inset-shadow":[`none`,d,d_,a_]}],"inset-shadow-color":[{"inset-shadow":F()}],"ring-w":[{ring:L()}],"ring-w-inset":[`ring-inset`],"ring-color":[{ring:F()}],"ring-offset-w":[{"ring-offset":[Z,$g]}],"ring-offset-color":[{"ring-offset":F()}],"inset-ring-w":[{"inset-ring":L()}],"inset-ring-color":[{"inset-ring":F()}],"text-shadow":[{"text-shadow":[`none`,f,d_,a_]}],"text-shadow-color":[{"text-shadow":F()}],opacity:[{opacity:[Z,$,Q]}],"mix-blend":[{"mix-blend":[...se(),`plus-darker`,`plus-lighter`]}],"bg-blend":[{"bg-blend":se()}],"mask-clip":[{"mask-clip":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]},`mask-no-clip`],"mask-composite":[{mask:[`add`,`subtract`,`intersect`,`exclude`]}],"mask-image-linear-pos":[{"mask-linear":[Z]}],"mask-image-linear-from-pos":[{"mask-linear-from":ce()}],"mask-image-linear-to-pos":[{"mask-linear-to":ce()}],"mask-image-linear-from-color":[{"mask-linear-from":F()}],"mask-image-linear-to-color":[{"mask-linear-to":F()}],"mask-image-t-from-pos":[{"mask-t-from":ce()}],"mask-image-t-to-pos":[{"mask-t-to":ce()}],"mask-image-t-from-color":[{"mask-t-from":F()}],"mask-image-t-to-color":[{"mask-t-to":F()}],"mask-image-r-from-pos":[{"mask-r-from":ce()}],"mask-image-r-to-pos":[{"mask-r-to":ce()}],"mask-image-r-from-color":[{"mask-r-from":F()}],"mask-image-r-to-color":[{"mask-r-to":F()}],"mask-image-b-from-pos":[{"mask-b-from":ce()}],"mask-image-b-to-pos":[{"mask-b-to":ce()}],"mask-image-b-from-color":[{"mask-b-from":F()}],"mask-image-b-to-color":[{"mask-b-to":F()}],"mask-image-l-from-pos":[{"mask-l-from":ce()}],"mask-image-l-to-pos":[{"mask-l-to":ce()}],"mask-image-l-from-color":[{"mask-l-from":F()}],"mask-image-l-to-color":[{"mask-l-to":F()}],"mask-image-x-from-pos":[{"mask-x-from":ce()}],"mask-image-x-to-pos":[{"mask-x-to":ce()}],"mask-image-x-from-color":[{"mask-x-from":F()}],"mask-image-x-to-color":[{"mask-x-to":F()}],"mask-image-y-from-pos":[{"mask-y-from":ce()}],"mask-image-y-to-pos":[{"mask-y-to":ce()}],"mask-image-y-from-color":[{"mask-y-from":F()}],"mask-image-y-to-color":[{"mask-y-to":F()}],"mask-image-radial":[{"mask-radial":[$,Q]}],"mask-image-radial-from-pos":[{"mask-radial-from":ce()}],"mask-image-radial-to-pos":[{"mask-radial-to":ce()}],"mask-image-radial-from-color":[{"mask-radial-from":F()}],"mask-image-radial-to-color":[{"mask-radial-to":F()}],"mask-image-radial-shape":[{"mask-radial":[`circle`,`ellipse`]}],"mask-image-radial-size":[{"mask-radial":[{closest:[`side`,`corner`],farthest:[`side`,`corner`]}]}],"mask-image-radial-pos":[{"mask-radial-at":b()}],"mask-image-conic-pos":[{"mask-conic":[Z]}],"mask-image-conic-from-pos":[{"mask-conic-from":ce()}],"mask-image-conic-to-pos":[{"mask-conic-to":ce()}],"mask-image-conic-from-color":[{"mask-conic-from":F()}],"mask-image-conic-to-color":[{"mask-conic-to":F()}],"mask-mode":[{mask:[`alpha`,`luminance`,`match`]}],"mask-origin":[{"mask-origin":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]}],"mask-position":[{mask:ne()}],"mask-repeat":[{mask:re()}],"mask-size":[{mask:ie()}],"mask-type":[{"mask-type":[`alpha`,`luminance`]}],"mask-image":[{mask:[`none`,$,Q]}],filter:[{filter:[``,`none`,$,Q]}],blur:[{blur:le()}],brightness:[{brightness:[Z,$,Q]}],contrast:[{contrast:[Z,$,Q]}],"drop-shadow":[{"drop-shadow":[``,`none`,p,d_,a_]}],"drop-shadow-color":[{"drop-shadow":F()}],grayscale:[{grayscale:[``,Z,$,Q]}],"hue-rotate":[{"hue-rotate":[Z,$,Q]}],invert:[{invert:[``,Z,$,Q]}],saturate:[{saturate:[Z,$,Q]}],sepia:[{sepia:[``,Z,$,Q]}],"backdrop-filter":[{"backdrop-filter":[``,`none`,$,Q]}],"backdrop-blur":[{"backdrop-blur":le()}],"backdrop-brightness":[{"backdrop-brightness":[Z,$,Q]}],"backdrop-contrast":[{"backdrop-contrast":[Z,$,Q]}],"backdrop-grayscale":[{"backdrop-grayscale":[``,Z,$,Q]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Z,$,Q]}],"backdrop-invert":[{"backdrop-invert":[``,Z,$,Q]}],"backdrop-opacity":[{"backdrop-opacity":[Z,$,Q]}],"backdrop-saturate":[{"backdrop-saturate":[Z,$,Q]}],"backdrop-sepia":[{"backdrop-sepia":[``,Z,$,Q]}],"border-collapse":[{border:[`collapse`,`separate`]}],"border-spacing":[{"border-spacing":w()}],"border-spacing-x":[{"border-spacing-x":w()}],"border-spacing-y":[{"border-spacing-y":w()}],"table-layout":[{table:[`auto`,`fixed`]}],caption:[{caption:[`top`,`bottom`]}],transition:[{transition:[``,`all`,`colors`,`opacity`,`shadow`,`transform`,`none`,$,Q]}],"transition-behavior":[{transition:[`normal`,`discrete`]}],duration:[{duration:[Z,`initial`,$,Q]}],ease:[{ease:[`linear`,`initial`,_,$,Q]}],delay:[{delay:[Z,$,Q]}],animate:[{animate:[`none`,v,$,Q]}],backface:[{backface:[`hidden`,`visible`]}],perspective:[{perspective:[h,$,Q]}],"perspective-origin":[{"perspective-origin":x()}],rotate:[{rotate:ue()}],"rotate-x":[{"rotate-x":ue()}],"rotate-y":[{"rotate-y":ue()}],"rotate-z":[{"rotate-z":ue()}],scale:[{scale:de()}],"scale-x":[{"scale-x":de()}],"scale-y":[{"scale-y":de()}],"scale-z":[{"scale-z":de()}],"scale-3d":[`scale-3d`],skew:[{skew:fe()}],"skew-x":[{"skew-x":fe()}],"skew-y":[{"skew-y":fe()}],transform:[{transform:[$,Q,``,`none`,`gpu`,`cpu`]}],"transform-origin":[{origin:x()}],"transform-style":[{transform:[`3d`,`flat`]}],translate:[{translate:pe()}],"translate-x":[{"translate-x":pe()}],"translate-y":[{"translate-y":pe()}],"translate-z":[{"translate-z":pe()}],"translate-none":[`translate-none`],zoom:[{zoom:[Hg,$,Q]}],accent:[{accent:F()}],appearance:[{appearance:[`none`,`auto`]}],"caret-color":[{caret:F()}],"color-scheme":[{scheme:[`normal`,`dark`,`light`,`light-dark`,`only-dark`,`only-light`]}],cursor:[{cursor:[`auto`,`default`,`pointer`,`wait`,`text`,`move`,`help`,`not-allowed`,`none`,`context-menu`,`progress`,`cell`,`crosshair`,`vertical-text`,`alias`,`copy`,`no-drop`,`grab`,`grabbing`,`all-scroll`,`col-resize`,`row-resize`,`n-resize`,`e-resize`,`s-resize`,`w-resize`,`ne-resize`,`nw-resize`,`se-resize`,`sw-resize`,`ew-resize`,`ns-resize`,`nesw-resize`,`nwse-resize`,`zoom-in`,`zoom-out`,$,Q]}],"field-sizing":[{"field-sizing":[`fixed`,`content`]}],"pointer-events":[{"pointer-events":[`auto`,`none`]}],resize:[{resize:[`none`,``,`y`,`x`]}],"scroll-behavior":[{scroll:[`auto`,`smooth`]}],"scrollbar-thumb-color":[{"scrollbar-thumb":F()}],"scrollbar-track-color":[{"scrollbar-track":F()}],"scrollbar-gutter":[{"scrollbar-gutter":[`auto`,`stable`,`both`]}],"scrollbar-w":[{scrollbar:[`auto`,`thin`,`none`]}],"scroll-m":[{"scroll-m":w()}],"scroll-mx":[{"scroll-mx":w()}],"scroll-my":[{"scroll-my":w()}],"scroll-ms":[{"scroll-ms":w()}],"scroll-me":[{"scroll-me":w()}],"scroll-mbs":[{"scroll-mbs":w()}],"scroll-mbe":[{"scroll-mbe":w()}],"scroll-mt":[{"scroll-mt":w()}],"scroll-mr":[{"scroll-mr":w()}],"scroll-mb":[{"scroll-mb":w()}],"scroll-ml":[{"scroll-ml":w()}],"scroll-p":[{"scroll-p":w()}],"scroll-px":[{"scroll-px":w()}],"scroll-py":[{"scroll-py":w()}],"scroll-ps":[{"scroll-ps":w()}],"scroll-pe":[{"scroll-pe":w()}],"scroll-pbs":[{"scroll-pbs":w()}],"scroll-pbe":[{"scroll-pbe":w()}],"scroll-pt":[{"scroll-pt":w()}],"scroll-pr":[{"scroll-pr":w()}],"scroll-pb":[{"scroll-pb":w()}],"scroll-pl":[{"scroll-pl":w()}],"snap-align":[{snap:[`start`,`end`,`center`,`align-none`]}],"snap-stop":[{snap:[`normal`,`always`]}],"snap-type":[{snap:[`none`,`x`,`y`,`both`]}],"snap-strictness":[{snap:[`mandatory`,`proximity`]}],touch:[{touch:[`auto`,`none`,`manipulation`]}],"touch-x":[{"touch-pan":[`x`,`left`,`right`]}],"touch-y":[{"touch-pan":[`y`,`up`,`down`]}],"touch-pz":[`touch-pinch-zoom`],select:[{select:[`none`,`text`,`all`,`auto`]}],"will-change":[{"will-change":[`auto`,`scroll`,`contents`,`transform`,$,Q]}],fill:[{fill:[`none`,...F()]}],"stroke-w":[{stroke:[Z,o_,$g,e_]}],stroke:[{stroke:[`none`,...F()]}],"forced-color-adjust":[{"forced-color-adjust":[`auto`,`none`]}]},conflictingClassGroups:{"container-named":[`container-type`],overflow:[`overflow-x`,`overflow-y`],overscroll:[`overscroll-x`,`overscroll-y`],inset:[`inset-x`,`inset-y`,`inset-bs`,`inset-be`,`start`,`end`,`top`,`right`,`bottom`,`left`],"inset-x":[`right`,`left`],"inset-y":[`top`,`bottom`],flex:[`basis`,`grow`,`shrink`],gap:[`gap-x`,`gap-y`],p:[`px`,`py`,`ps`,`pe`,`pbs`,`pbe`,`pt`,`pr`,`pb`,`pl`],px:[`pr`,`pl`],py:[`pt`,`pb`],m:[`mx`,`my`,`ms`,`me`,`mbs`,`mbe`,`mt`,`mr`,`mb`,`ml`],mx:[`mr`,`ml`],my:[`mt`,`mb`],size:[`w`,`h`],"font-size":[`leading`],"fvn-normal":[`fvn-ordinal`,`fvn-slashed-zero`,`fvn-figure`,`fvn-spacing`,`fvn-fraction`],"fvn-ordinal":[`fvn-normal`],"fvn-slashed-zero":[`fvn-normal`],"fvn-figure":[`fvn-normal`],"fvn-spacing":[`fvn-normal`],"fvn-fraction":[`fvn-normal`],"line-clamp":[`display`,`overflow`],rounded:[`rounded-s`,`rounded-e`,`rounded-t`,`rounded-r`,`rounded-b`,`rounded-l`,`rounded-ss`,`rounded-se`,`rounded-ee`,`rounded-es`,`rounded-tl`,`rounded-tr`,`rounded-br`,`rounded-bl`],"rounded-s":[`rounded-ss`,`rounded-es`],"rounded-e":[`rounded-se`,`rounded-ee`],"rounded-t":[`rounded-tl`,`rounded-tr`],"rounded-r":[`rounded-tr`,`rounded-br`],"rounded-b":[`rounded-br`,`rounded-bl`],"rounded-l":[`rounded-tl`,`rounded-bl`],"border-spacing":[`border-spacing-x`,`border-spacing-y`],"border-w":[`border-w-x`,`border-w-y`,`border-w-s`,`border-w-e`,`border-w-bs`,`border-w-be`,`border-w-t`,`border-w-r`,`border-w-b`,`border-w-l`],"border-w-x":[`border-w-r`,`border-w-l`],"border-w-y":[`border-w-t`,`border-w-b`],"border-color":[`border-color-x`,`border-color-y`,`border-color-s`,`border-color-e`,`border-color-bs`,`border-color-be`,`border-color-t`,`border-color-r`,`border-color-b`,`border-color-l`],"border-color-x":[`border-color-r`,`border-color-l`],"border-color-y":[`border-color-t`,`border-color-b`],translate:[`translate-x`,`translate-y`,`translate-none`],"translate-none":[`translate`,`translate-x`,`translate-y`,`translate-z`],"scroll-m":[`scroll-mx`,`scroll-my`,`scroll-ms`,`scroll-me`,`scroll-mbs`,`scroll-mbe`,`scroll-mt`,`scroll-mr`,`scroll-mb`,`scroll-ml`],"scroll-mx":[`scroll-mr`,`scroll-ml`],"scroll-my":[`scroll-mt`,`scroll-mb`],"scroll-p":[`scroll-px`,`scroll-py`,`scroll-ps`,`scroll-pe`,`scroll-pbs`,`scroll-pbe`,`scroll-pt`,`scroll-pr`,`scroll-pb`,`scroll-pl`],"scroll-px":[`scroll-pr`,`scroll-pl`],"scroll-py":[`scroll-pt`,`scroll-pb`],touch:[`touch-x`,`touch-y`,`touch-pz`],"touch-x":[`touch`],"touch-y":[`touch`],"touch-pz":[`touch`]},conflictingClassGroupModifiers:{"font-size":[`leading`]},postfixLookupClassGroups:[`container-type`],orderSensitiveModifiers:[`*`,`**`,`after`,`backdrop`,`before`,`details-content`,`file`,`first-letter`,`first-line`,`marker`,`placeholder`,`selection`]}});function w_(...e){return C_(Qh(e))}function T_({delay:e=0,...t}){return(0,U.jsx)(Xh,{"data-slot":`tooltip-provider`,delay:e,...t})}function E_({...e}){return(0,U.jsx)(oh,{"data-slot":`tooltip`,...e})}function D_({...e}){return(0,U.jsx)(Th,{"data-slot":`tooltip-trigger`,...e})}function O_({className:e,side:t=`top`,sideOffset:n=4,align:r=`center`,alignOffset:i=0,children:a,...o}){return(0,U.jsx)(kh,{children:(0,U.jsx)(Kh,{align:r,alignOffset:i,side:t,sideOffset:n,className:`isolate z-50`,children:(0,U.jsxs)(Jh,{"data-slot":`tooltip-content`,className:w_(`z-50 inline-flex w-fit max-w-xs origin-(--transform-origin) items-center gap-1.5 rounded-xl bg-foreground px-3 py-1.5 text-xs text-background has-data-[slot=kbd]:pr-1.5 data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-left-2 data-[side=inline-start]:slide-in-from-right-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 **:data-[slot=kbd]:relative **:data-[slot=kbd]:isolate **:data-[slot=kbd]:z-50 **:data-[slot=kbd]:rounded-lg data-[state=delayed-open]:animate-in data-[state=delayed-open]:fade-in-0 data-[state=delayed-open]:zoom-in-95 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95`,e),...o,children:[a,(0,U.jsx)(Yh,{className:`z-50 size-2.5 translate-y-[calc(-50%-2px)] rotate-45 rounded-[2px] bg-foreground fill-foreground data-[side=bottom]:top-1 data-[side=inline-end]:top-1/2! data-[side=inline-end]:-left-1 data-[side=inline-end]:translate-x-[1.5px] data-[side=inline-end]:-translate-y-1/2 data-[side=inline-start]:top-1/2! data-[side=inline-start]:-right-1 data-[side=inline-start]:translate-x-[-1.5px] data-[side=inline-start]:-translate-y-1/2 data-[side=left]:top-1/2! data-[side=left]:-right-1 data-[side=left]:translate-x-[-1.5px] data-[side=left]:-translate-y-1/2 data-[side=right]:top-1/2! data-[side=right]:-left-1 data-[side=right]:translate-x-[1.5px] data-[side=right]:-translate-y-1/2 data-[side=top]:-bottom-2.5`})]})})})}var k_=`https://lanework.dev`,A_=`Visualize your AI coding agent's review checklists as a Kanban board.`,j_=`${k_}/og.png`;tc().handler(Oo(`398380cad01774b31b3410fb75a104c88e423eadf39c2022b2b46f10804116f0`));var M_=xs({beforeLoad:async()=>{},head:()=>({meta:[{charSet:`utf-8`},{name:`viewport`,content:`width=device-width, initial-scale=1`},{title:`Lanework`},{name:`description`,content:A_},{name:`theme-color`,content:`#059669`},{property:`og:type`,content:`website`},{property:`og:url`,content:k_},{property:`og:title`,content:`Lanework`},{property:`og:description`,content:A_},{property:`og:image`,content:j_},{property:`og:image:width`,content:`1200`},{property:`og:image:height`,content:`630`},{property:`og:image:alt`,content:`Lanework — every agent review, in its lane.`},{property:`og:site_name`,content:`Lanework`},{name:`twitter:card`,content:`summary_large_image`},{name:`twitter:title`,content:`Lanework`},{name:`twitter:description`,content:A_},{name:`twitter:image`,content:j_}],links:[{rel:`stylesheet`,href:yc},{rel:`icon`,href:`/favicon.ico`,sizes:`any`},{rel:`icon`,type:`image/png`,sizes:`32x32`,href:`/favicon-32x32.png`},{rel:`icon`,type:`image/png`,sizes:`16x16`,href:`/favicon-16x16.png`},{rel:`apple-touch-icon`,sizes:`180x180`,href:`/apple-touch-icon.png`},{rel:`manifest`,href:`/site.webmanifest`}]}),shellComponent:N_,component:()=>(0,U.jsx)(Fs,{})});function N_({children:e}){return(0,U.jsxs)(`html`,{lang:`en`,children:[(0,U.jsx)(`head`,{children:(0,U.jsx)(Js,{})}),(0,U.jsxs)(`body`,{className:`min-h-screen bg-background text-foreground antialiased`,children:[(0,U.jsx)(vc,{reducedMotion:`user`,children:(0,U.jsx)(T_,{children:e})}),(0,U.jsx)(Ys,{})]})]})}var P_=tc({method:`GET`}).handler(Oo(`a102db744a359aef9a0a6335c0f6cce730279bb2e26fa5e778639c5803f3ebce`)),F_=tc({method:`GET`}).handler(Oo(`ef794f9db99392d3fdb07f34656fa69dfdbf02de31f4f127a19865046b64be27`)),I_=tc({method:`GET`}).handler(Oo(`163dbda880cb3a3b81e5442b90d81c7f97cd8e53e4bbd445dc2e8b58facee955`));tc({method:`GET`}).handler(Oo(`146357c14cdd179fa19927fbc6cc2d08d73b55952f15cbb027f78ee1f8005ebc`));var L_=tc({method:`GET`}).handler(Oo(`86feddf0300a9465155a4c337e84fd04f52a3d2a8785a5950d10ead55296987e`)),R_=tc({method:`GET`}).handler(Oo(`1c7000333f4be48c6e4fdd485a667b06b074e37640ac6d9c50503f435e606520`)),z_=`modulepreload`,B_=function(e){return`/`+e},V_={},H_=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}r=o(t.map(t=>{if(t=B_(t,n),t in V_)return;V_[t]=!0;let r=t.endsWith(`.css`),i=r?`[rel="stylesheet"]`:``;if(n)for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}else if(document.querySelector(`link[href="${t}"]${i}`))return;let o=document.createElement(`link`);if(o.rel=r?`stylesheet`:z_,r||(o.as=`script`),o.crossOrigin=``,o.href=t,a&&o.setAttribute(`nonce`,a),document.head.appendChild(o),r)return new Promise((e,n)=>{o.addEventListener(`load`,e),o.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})},U_=Ss(`/guide`)({loader:async()=>({user:await P_()}),head:()=>({meta:[{title:`How to use - Lanework`}]}),component:ws(()=>H_(()=>import(`./guide-BcU07F30.js`),__vite__mapDeps([0,1,2,3,4,5])),`component`)}),W_=Ss(`/`)({loader:async()=>{let e=await P_();if(e)throw Fe({to:`/board/$owner/$repo`,params:{owner:`local`,repo:e.name.replace(/[^A-Za-z0-9._-]/g,`-`)||`local`}});return{user:e}},head:({loaderData:e})=>({meta:[{title:e?.user?`Projects - Lanework`:`Lanework — every agent review, in its lane.`}]}),component:ws(()=>H_(()=>import(`./routes-0vSeDi9u.js`),__vite__mapDeps([6,1,2,3,4,7])),`component`)});function G_({className:e,...t}){return(0,U.jsx)(`div`,{"data-slot":`skeleton`,className:w_(`animate-pulse rounded-2xl bg-muted`,e),...t})}function K_({owner:e,repo:t}){return(0,U.jsx)(`div`,{className:`h-screen w-screen overflow-hidden bg-neutral-200/60 p-2 dark:bg-neutral-900 sm:p-3`,children:(0,U.jsxs)(`div`,{className:`flex h-full overflow-hidden rounded-2xl border bg-background shadow-sm`,children:[(0,U.jsxs)(`aside`,{className:`flex w-64 shrink-0 flex-col gap-3 border-r bg-sidebar p-3`,children:[(0,U.jsx)(G_,{className:`mt-1 h-10 w-full rounded-lg`}),(0,U.jsxs)(`div`,{className:`mt-2 space-y-1.5`,children:[(0,U.jsx)(G_,{className:`h-3 w-16`}),(0,U.jsx)(G_,{className:`h-8 w-full rounded-lg`}),(0,U.jsx)(G_,{className:`h-8 w-full rounded-lg`})]}),(0,U.jsxs)(`div`,{className:`mt-2 space-y-1.5`,children:[(0,U.jsx)(G_,{className:`h-3 w-12`}),Array.from({length:4}).map((e,t)=>(0,U.jsx)(G_,{className:`h-8 w-full rounded-lg`},t))]}),(0,U.jsx)(`div`,{className:`mt-auto`,children:(0,U.jsx)(G_,{className:`h-10 w-full rounded-lg`})})]}),(0,U.jsxs)(`main`,{className:`flex min-w-0 flex-1 flex-col`,children:[(0,U.jsxs)(`div`,{className:`px-6 pt-5`,children:[(0,U.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:e}),(0,U.jsx)(`h1`,{className:`mt-1 font-heading text-2xl font-semibold tracking-tight`,children:t}),(0,U.jsxs)(`div`,{className:`mt-4 flex gap-2 border-b pb-2`,children:[(0,U.jsx)(G_,{className:`h-7 w-16 rounded-lg`}),(0,U.jsx)(G_,{className:`h-7 w-14 rounded-lg`}),(0,U.jsx)(G_,{className:`h-7 w-20 rounded-lg`})]})]}),(0,U.jsx)(`div`,{className:`flex flex-1 gap-4 overflow-hidden px-6 pt-5 pb-6`,children:Array.from({length:4}).map((e,t)=>(0,U.jsxs)(`div`,{className:`flex w-80 shrink-0 flex-col rounded-2xl bg-muted/40`,children:[(0,U.jsxs)(`div`,{className:`flex items-center gap-2 px-4 py-3`,children:[(0,U.jsx)(G_,{className:`size-2 rounded-full`}),(0,U.jsx)(G_,{className:`h-4 w-24`})]}),(0,U.jsx)(`div`,{className:`flex flex-col gap-2.5 px-2.5 pb-2.5`,children:Array.from({length:3}).map((e,t)=>(0,U.jsx)(q_,{},t))})]},t))})]})]})})}function q_(){return(0,U.jsxs)(`div`,{className:`space-y-3 rounded-xl border bg-card p-3.5`,children:[(0,U.jsx)(G_,{className:`h-4 w-4/5`}),(0,U.jsx)(G_,{className:`h-3 w-2/5`}),(0,U.jsxs)(`div`,{className:`flex items-center gap-3 border-t pt-2.5`,children:[(0,U.jsx)(G_,{className:`h-3 w-10`}),(0,U.jsx)(G_,{className:`h-3 w-8`}),(0,U.jsx)(G_,{className:`ml-auto h-4 w-10 rounded-md`})]})]})}var J_=Ss(`/board/$owner/$repo`)({validateSearch:e=>({mine:e.mine===!0||e.mine===`true`?!0:void 0,tag:typeof e.tag==`string`&&e.tag?e.tag:void 0,branch:typeof e.branch==`string`&&e.branch?e.branch:void 0}),beforeLoad:async()=>{let e=await P_();if(!e)throw Fe({to:`/`});return{user:e}},loaderDeps:({search:{branch:e}})=>({branch:e}),loader:async({params:e,deps:t})=>({board:await L_({data:{owner:e.owner,repo:e.repo,branch:t.branch}})}),head:({params:e})=>({meta:[{title:`${e.owner}/${e.repo} - Lanework`}]}),component:ws(()=>H_(()=>import(`./board._owner._repo-BahBdjhM.js`),__vite__mapDeps([8,1,2,3,7,9,5])),`component`),pendingMs:120,pendingMinMs:400,pendingComponent:Y_,errorComponent:ws(()=>H_(()=>import(`./board._owner._repo-DyrvTwhk.js`),__vite__mapDeps([10,3,1])),`errorComponent`)});function Y_(){let{owner:e,repo:t}=J_.useParams();return(0,U.jsx)(K_,{owner:e,repo:t})}var X_=U_.update({id:`/guide`,path:`/guide`,getParentRoute:()=>M_}),Z_={IndexRoute:W_.update({id:`/`,path:`/`,getParentRoute:()=>M_}),GuideRoute:X_,BoardOwnerRepoRoute:J_.update({id:`/board/$owner/$repo`,path:`/board/$owner/$repo`,getParentRoute:()=>M_})},Q_=M_._addFileChildren(Z_);function $_(){return Bs({routeTree:Q_,defaultPreload:`intent`,defaultStaleTime:1/0,scrollRestoration:!0,defaultNotFoundComponent:()=>(0,U.jsx)(`div`,{className:`p-8`,children:`Not found.`})})}async function ev(){let e=await $_(),t=[];return window.__TSS_START_OPTIONS__={serializationAdapters:t},t.push(ko),e.options.serializationAdapters&&t.push(...e.options.serializationAdapters),e.update({basepath:``,serializationAdapters:t}),e.stores.matchesId.get().length||await Fo(e),e}var tv=ev;async function nv(){let e=await tv();return window.$_TSR?.h(),e}var rv;function iv(){return rv||=nv(),(0,U.jsx)(Lo,{promise:rv,children:e=>(0,U.jsx)(Us,{router:e})})}var av=ge();(0,H.startTransition)(()=>{(0,av.hydrateRoot)(document,(0,U.jsx)(H.StrictMode,{children:(0,U.jsx)(iv,{})}))});export{Of as $,dl as $t,Dm as A,su as At,gm as B,J as Bt,hh as C,Du as Ct,km as D,wu as Dt,Km as E,Cu as Et,Cm as F,Ql as Ft,sm as G,Rl as Gt,pm as H,Gl as Ht,xm as I,Zl as It,qp as J,jl as Jt,rm as K,Il as Kt,wm as L,eu as Lt,ym as M,Y as Mt,hm as N,tu as Nt,Am as O,vu as Ot,vm as P,Xl as Pt,Af as Q,ll as Qt,Tm as R,Kl as Rt,gh as S,ku as St,Jm as T,Tu as Tt,fm as U,Wl as Ut,Sm as V,ql as Vt,dm as W,Bl as Wt,jf as X,al as Xt,Lf as Y,Ml as Yt,kf as Z,ol as Zt,Hh as _,gs as _n,Ed as _t,H_ as a,Yc as an,mf as at,ch as b,xd as bt,R_ as c,Lc as cn,Gd as ct,O_ as d,xc as dn,jd as dt,ul as en,Ef as et,D_ as f,_c as fn,Ad as ft,Wh as g,oc as gn,Td as gt,Gh as h,sc as hn,Cd as ht,U_ as i,Qc as in,pf as it,mm as j,ou as jt,Im as k,pu as kt,I_ as l,Ac as ln,Rd as lt,Qh as m,cc as mn,X as mt,G_ as n,el as nn,xf as nt,F_ as o,Wc as on,of as ot,w_ as p,lc as pn,bd as pt,Jp as q,Al as qt,W_ as r,tl as rn,vf as rt,L_ as s,Ic as sn,nf as st,J_ as t,nl as tn,Df as tt,E_ as u,W as un,Md as ut,zh as v,Dd as vt,nh as w,Ou as wt,_h as x,ad as xt,vh as y,yd as yt,Em as z,Yl as zt};
|